@public-ui/sample-react 3.1.1 → 3.1.2-rc.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.
- package/dist/assets/{Alert-DLfEpSKk-DIvCnqeU.js → Alert-2oCWu44q-BDCyWBLz.js} +2 -2
- package/dist/assets/{Alert-DLfEpSKk-DIvCnqeU.js.map → Alert-2oCWu44q-BDCyWBLz.js.map} +1 -1
- package/dist/assets/{Collapsible-Cr0o8XnS-CgwUz7qP.js → Collapsible-DE_dCCdn-DBR1B2Oy.js} +2 -2
- package/dist/assets/{Collapsible-Cr0o8XnS-CgwUz7qP.js.map → Collapsible-DE_dCCdn-DBR1B2Oy.js.map} +1 -1
- package/dist/assets/{CustomSuggestionsOptionsGroup-Ds5nlKtT-2fhy5erX.js → CustomSuggestionsOptionsGroup-FVIwBS7A-B8oawa34.js} +2 -2
- package/dist/assets/{CustomSuggestionsOptionsGroup-Ds5nlKtT-2fhy5erX.js.map → CustomSuggestionsOptionsGroup-FVIwBS7A-B8oawa34.js.map} +1 -1
- package/dist/assets/{FieldControlStateWrapper-nwKT3b3J-zSvwRk6M.js → FieldControlStateWrapper-rxM70qjj-DaVgGZdJ.js} +2 -2
- package/dist/assets/{FieldControlStateWrapper-nwKT3b3J-zSvwRk6M.js.map → FieldControlStateWrapper-rxM70qjj-DaVgGZdJ.js.map} +1 -1
- package/dist/assets/{FormFieldStateWrapper-ldG0UX14-CdoDFpZN.js → FormFieldStateWrapper-DfOSzRLI-ChcBWt1o.js} +2 -2
- package/dist/assets/{FormFieldStateWrapper-ldG0UX14-CdoDFpZN.js.map → FormFieldStateWrapper-DfOSzRLI-ChcBWt1o.js.map} +1 -1
- package/dist/assets/{Heading-C4_IYeCe-Dm2VxnTB.js → Heading-DiAUxd4g-tQbHrF3W.js} +2 -2
- package/dist/assets/{Heading-C4_IYeCe-Dm2VxnTB.js.map → Heading-DiAUxd4g-tQbHrF3W.js.map} +1 -1
- package/dist/assets/{Icon-BvOGL2OY-QXF-CUmr.js → Icon-BrAia08G-DDns7ZlV.js} +2 -2
- package/dist/assets/{Icon-BvOGL2OY-QXF-CUmr.js.map → Icon-BrAia08G-DDns7ZlV.js.map} +1 -1
- package/dist/assets/{Input-Bnukngzx-CvuCpPyv.js → Input-oHGCoBjV-DVREvsJT.js} +2 -2
- package/dist/assets/{Input-Bnukngzx-CvuCpPyv.js.map → Input-oHGCoBjV-DVREvsJT.js.map} +1 -1
- package/dist/assets/{InputStateWrapper-DleM7oKg-CsgKe4x1.js → InputStateWrapper-BttyPep1-DS5hLDKG.js} +2 -2
- package/dist/assets/{InputStateWrapper-DleM7oKg-CsgKe4x1.js.map → InputStateWrapper-BttyPep1-DS5hLDKG.js.map} +1 -1
- package/dist/assets/{InternalUnderlinedBadgeText-B4MJKsjm-Cl8oAw2u.js → InternalUnderlinedBadgeText-Bc9qUmf_-CJX7HiJo.js} +2 -2
- package/dist/assets/{InternalUnderlinedBadgeText-B4MJKsjm-Cl8oAw2u.js.map → InternalUnderlinedBadgeText-Bc9qUmf_-CJX7HiJo.js.map} +1 -1
- package/dist/assets/{Span-D7zdcwRa-XzuS6EqZ.js → Span-D7oadOd4-B8-ZlLvN.js} +2 -2
- package/dist/assets/{Span-D7zdcwRa-XzuS6EqZ.js.map → Span-D7oadOd4-B8-ZlLvN.js.map} +1 -1
- package/dist/assets/{access-and-short-key-B37XLwy2-BAgOMZkf.js → access-and-short-key-B37XLwy2-BPIMW2i-.js} +2 -2
- package/dist/assets/{access-and-short-key-B37XLwy2-BAgOMZkf.js.map → access-and-short-key-B37XLwy2-BPIMW2i-.js.map} +1 -1
- package/dist/assets/{align-D-ifSKu8-C8mkOV_S.js → align-D-ifSKu8-CPQJOBV-.js} +2 -2
- package/dist/assets/{align-D-ifSKu8-C8mkOV_S.js.map → align-D-ifSKu8-CPQJOBV-.js.map} +1 -1
- package/dist/assets/align-floating-elements-7Np6z5EU-CP7jpkxh.js +2 -0
- package/dist/assets/align-floating-elements-7Np6z5EU-CP7jpkxh.js.map +1 -0
- package/dist/assets/{associated.controller-B9GDDaFL-DuJfpldx.js → associated.controller-B9GDDaFL-CmkWLGn6.js} +2 -2
- package/dist/assets/{associated.controller-B9GDDaFL-DuJfpldx.js.map → associated.controller-B9GDDaFL-CmkWLGn6.js.map} +1 -1
- package/dist/assets/{auto-complete-mCkUnxg2-B-aTuPHd.js → auto-complete-mCkUnxg2-B-Pxe_ak.js} +2 -2
- package/dist/assets/{auto-complete-mCkUnxg2-B-aTuPHd.js.map → auto-complete-mCkUnxg2-B-Pxe_ak.js.map} +1 -1
- package/dist/assets/{button-variant-_wL6MroY-gYrTROjt.js → button-variant-_wL6MroY-BhLS0gNf.js} +2 -2
- package/dist/assets/{button-variant-_wL6MroY-gYrTROjt.js.map → button-variant-_wL6MroY-BhLS0gNf.js.map} +1 -1
- package/dist/assets/{color-BOIEtqEM-BPvSvjEG.js → color-BOIEtqEM-CBT4QW0t.js} +2 -2
- package/dist/assets/{color-BOIEtqEM-BPvSvjEG.js.map → color-BOIEtqEM-CBT4QW0t.js.map} +1 -1
- package/dist/assets/{controller-TzNskMMO-CR0cxy-e.js → controller-C7BrOgwL-B9bZjT2U.js} +2 -2
- package/dist/assets/{controller-TzNskMMO-CR0cxy-e.js.map → controller-C7BrOgwL-B9bZjT2U.js.map} +1 -1
- package/dist/assets/{controller-CM5wW8Ij-NwFH69xQ.js → controller-CM5wW8Ij-Db5IBI5q.js} +2 -2
- package/dist/assets/{controller-CM5wW8Ij-NwFH69xQ.js.map → controller-CM5wW8Ij-Db5IBI5q.js.map} +1 -1
- package/dist/assets/{controller-B-Tb2fiE-D_oiyYCr.js → controller-CN4_gI8T-Dq2RlsxF.js} +2 -2
- package/dist/assets/{controller-B-Tb2fiE-D_oiyYCr.js.map → controller-CN4_gI8T-Dq2RlsxF.js.map} +1 -1
- package/dist/assets/{controller-DyyDUmiD-CfHQQaqV.js → controller-DffMBbzp-CjsiMMvI.js} +2 -2
- package/dist/assets/{controller-DyyDUmiD-CfHQQaqV.js.map → controller-DffMBbzp-CjsiMMvI.js.map} +1 -1
- package/dist/assets/{controller-icon-DUBFy2CD-BXAxuig4.js → controller-icon-BhYm7X7q-11Hgw4bL.js} +2 -2
- package/dist/assets/{controller-icon-DUBFy2CD-BXAxuig4.js.map → controller-icon-BhYm7X7q-11Hgw4bL.js.map} +1 -1
- package/dist/assets/custom-class-nuoQ9Aml-D3f7n0Ir.js +2 -0
- package/dist/assets/{custom-class-nuoQ9Aml-C0BTklw2.js.map → custom-class-nuoQ9Aml-D3f7n0Ir.js.map} +1 -1
- package/dist/assets/{dev.utils-DuX3ZEJu-D2_C4nlH.js → dev.utils-ClF4EFkG-iyWyfmPT.js} +2 -2
- package/dist/assets/{dev.utils-DuX3ZEJu-D2_C4nlH.js.map → dev.utils-ClF4EFkG-iyWyfmPT.js.map} +1 -1
- package/dist/assets/{devtools-BjOG8v-K-C-0OumAv.js → devtools-Dc462omO-B2BUJ00B.js} +2 -2
- package/dist/assets/{devtools-BjOG8v-K-C-0OumAv.js.map → devtools-Dc462omO-B2BUJ00B.js.map} +1 -1
- package/dist/assets/disabled-BhpAFgSp-QQIKryzu.js +2 -0
- package/dist/assets/{disabled-BhpAFgSp-CqxwQWmC.js.map → disabled-BhpAFgSp-QQIKryzu.js.map} +1 -1
- package/dist/assets/has-closer-CQzjaTkv-DOf6r95S.js +2 -0
- package/dist/assets/{has-closer-CQzjaTkv-DlClIllR.js.map → has-closer-CQzjaTkv-DOf6r95S.js.map} +1 -1
- package/dist/assets/hide-label-B9FhGrWP-BStXtd6B.js +2 -0
- package/dist/assets/{hide-label-B9FhGrWP-CI-52mVf.js.map → hide-label-B9FhGrWP-BStXtd6B.js.map} +1 -1
- package/dist/assets/href-rwDd36rS-zNI-kfg1.js +2 -0
- package/dist/assets/{href-rwDd36rS-mxgf0x0T.js.map → href-rwDd36rS-zNI-kfg1.js.map} +1 -1
- package/dist/assets/i18n-LBpyQ66X-DqXhJaLR.js +2 -0
- package/dist/assets/{i18n-LBpyQ66X-FYRdsujR.js.map → i18n-LBpyQ66X-DqXhJaLR.js.map} +1 -1
- package/dist/assets/{icons-DNTuScEN-B6q55Frt.js → icons-DNTuScEN-l8_M_8i9.js} +2 -2
- package/dist/assets/{icons-DNTuScEN-B6q55Frt.js.map → icons-DNTuScEN-l8_M_8i9.js.map} +1 -1
- package/dist/assets/image-source-BfBEJ0rX-CL6QEBud.js +2 -0
- package/dist/assets/{image-source-BfBEJ0rX-DVqF31P8.js.map → image-source-BfBEJ0rX-CL6QEBud.js.map} +1 -1
- package/dist/assets/{index-CHECPbf5.js → index-BoZZX1To.js} +37 -37
- package/dist/assets/index-BoZZX1To.js.map +1 -0
- package/dist/assets/{index-BqJWXvn5.css → index-DpgDK9DM.css} +1 -1
- package/dist/assets/inline-cDaqwSfK-BS0XvMJe.js +2 -0
- package/dist/assets/{inline-cDaqwSfK-B6QbipBu.js.map → inline-cDaqwSfK-BS0XvMJe.js.map} +1 -1
- package/dist/assets/{kol-abbr.entry-DtquhRwX.js → kol-abbr.entry-B--8_dqy.js} +2 -2
- package/dist/assets/{kol-abbr.entry-DtquhRwX.js.map → kol-abbr.entry-B--8_dqy.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-D4ZTW_10.js → kol-accordion.entry-jt9d0qqK.js} +2 -2
- package/dist/assets/{kol-accordion.entry-D4ZTW_10.js.map → kol-accordion.entry-jt9d0qqK.js.map} +1 -1
- package/dist/assets/{kol-alert-wc.entry-Dwp0f9bM.js → kol-alert-wc.entry-D5mvhAEk.js} +2 -2
- package/dist/assets/{kol-alert-wc.entry-Dwp0f9bM.js.map → kol-alert-wc.entry-D5mvhAEk.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-0OJQpauL.js → kol-alert.entry-BrzJ1kQz.js} +2 -2
- package/dist/assets/{kol-alert.entry-0OJQpauL.js.map → kol-alert.entry-BrzJ1kQz.js.map} +1 -1
- package/dist/assets/{kol-avatar-wc.entry-BAmxAzJQ.js → kol-avatar-wc.entry-Dj3T9ebU.js} +2 -2
- package/dist/assets/{kol-avatar-wc.entry-BAmxAzJQ.js.map → kol-avatar-wc.entry-Dj3T9ebU.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-Cd6Rnz9D.js → kol-avatar.entry-B43kIR9r.js} +2 -2
- package/dist/assets/{kol-avatar.entry-Cd6Rnz9D.js.map → kol-avatar.entry-B43kIR9r.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-Cp6upoVc.js → kol-badge.entry-DijVw6lO.js} +2 -2
- package/dist/assets/{kol-badge.entry-Cp6upoVc.js.map → kol-badge.entry-DijVw6lO.js.map} +1 -1
- package/dist/assets/{kol-breadcrumb.entry-C2hL558R.js → kol-breadcrumb.entry-CZnxtlIM.js} +2 -2
- package/dist/assets/{kol-breadcrumb.entry-C2hL558R.js.map → kol-breadcrumb.entry-CZnxtlIM.js.map} +1 -1
- package/dist/assets/{kol-button-link.entry-Hu7w20nQ.js → kol-button-link.entry-CJ_vcvEI.js} +2 -2
- package/dist/assets/{kol-button-link.entry-Hu7w20nQ.js.map → kol-button-link.entry-CJ_vcvEI.js.map} +1 -1
- package/dist/assets/{kol-button-wc.entry-pR4i25DA.js → kol-button-wc.entry-Dpq7VZ9m.js} +2 -2
- package/dist/assets/{kol-button-wc.entry-pR4i25DA.js.map → kol-button-wc.entry-Dpq7VZ9m.js.map} +1 -1
- package/dist/assets/{kol-button.entry--kvpfoqj.js → kol-button.entry-BxpNkuyt.js} +2 -2
- package/dist/assets/{kol-button.entry--kvpfoqj.js.map → kol-button.entry-BxpNkuyt.js.map} +1 -1
- package/dist/assets/{kol-card-wc.entry-xwzwzjf4.js → kol-card-wc.entry-xZqmg19V.js} +2 -2
- package/dist/assets/{kol-card-wc.entry-xwzwzjf4.js.map → kol-card-wc.entry-xZqmg19V.js.map} +1 -1
- package/dist/assets/{kol-card.entry-CIT2rXDs.js → kol-card.entry-BBEewU4k.js} +2 -2
- package/dist/assets/{kol-card.entry-CIT2rXDs.js.map → kol-card.entry-BBEewU4k.js.map} +1 -1
- package/dist/assets/{kol-combobox.entry-CejHnakx.js → kol-combobox.entry-C22d2KTt.js} +2 -2
- package/dist/assets/{kol-combobox.entry-CejHnakx.js.map → kol-combobox.entry-C22d2KTt.js.map} +1 -1
- package/dist/assets/{kol-details.entry-BoFJzE4l.js → kol-details.entry-DcovraIB.js} +2 -2
- package/dist/assets/{kol-details.entry-BoFJzE4l.js.map → kol-details.entry-DcovraIB.js.map} +1 -1
- package/dist/assets/{kol-drawer.entry-nUI2zSbg.js → kol-drawer.entry-D_zrj2Hh.js} +2 -2
- package/dist/assets/{kol-drawer.entry-nUI2zSbg.js.map → kol-drawer.entry-D_zrj2Hh.js.map} +1 -1
- package/dist/assets/{kol-form.entry-D7Ebm7FI.js → kol-form.entry-PKvJ8YW1.js} +2 -2
- package/dist/assets/{kol-form.entry-D7Ebm7FI.js.map → kol-form.entry-PKvJ8YW1.js.map} +1 -1
- package/dist/assets/{kol-heading.entry-y6gTh-6H.js → kol-heading.entry-CqGMPkfi.js} +2 -2
- package/dist/assets/{kol-heading.entry-y6gTh-6H.js.map → kol-heading.entry-CqGMPkfi.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-DE3nUGO-.js → kol-icon.entry-D1F9Oo26.js} +2 -2
- package/dist/assets/{kol-icon.entry-DE3nUGO-.js.map → kol-icon.entry-D1F9Oo26.js.map} +1 -1
- package/dist/assets/{kol-image.entry-DaHmnpAS.js → kol-image.entry-R0fXHGZi.js} +2 -2
- package/dist/assets/{kol-image.entry-DaHmnpAS.js.map → kol-image.entry-R0fXHGZi.js.map} +1 -1
- package/dist/assets/{kol-input-checkbox.entry-C0IXqp7I.js → kol-input-checkbox.entry-DD0JMujb.js} +2 -2
- package/dist/assets/{kol-input-checkbox.entry-C0IXqp7I.js.map → kol-input-checkbox.entry-DD0JMujb.js.map} +1 -1
- package/dist/assets/{kol-input-color.entry-DsY-IAqz.js → kol-input-color.entry-DOlC8iG9.js} +2 -2
- package/dist/assets/{kol-input-color.entry-DsY-IAqz.js.map → kol-input-color.entry-DOlC8iG9.js.map} +1 -1
- package/dist/assets/{kol-input-date.entry-Cnl-Vavm.js → kol-input-date.entry-CeCzrF36.js} +2 -2
- package/dist/assets/{kol-input-date.entry-Cnl-Vavm.js.map → kol-input-date.entry-CeCzrF36.js.map} +1 -1
- package/dist/assets/{kol-input-email.entry-Bw224om6.js → kol-input-email.entry-Y9ARNUDf.js} +2 -2
- package/dist/assets/{kol-input-email.entry-Bw224om6.js.map → kol-input-email.entry-Y9ARNUDf.js.map} +1 -1
- package/dist/assets/{kol-input-file.entry-BPpbjE51.js → kol-input-file.entry-BWTMAdRa.js} +2 -2
- package/dist/assets/{kol-input-file.entry-BPpbjE51.js.map → kol-input-file.entry-BWTMAdRa.js.map} +1 -1
- package/dist/assets/{kol-input-number.entry-DsG6psuL.js → kol-input-number.entry-DdWiGbyJ.js} +2 -2
- package/dist/assets/{kol-input-number.entry-DsG6psuL.js.map → kol-input-number.entry-DdWiGbyJ.js.map} +1 -1
- package/dist/assets/{kol-input-password.entry-C77bjnrq.js → kol-input-password.entry-DW_CW-bb.js} +2 -2
- package/dist/assets/{kol-input-password.entry-C77bjnrq.js.map → kol-input-password.entry-DW_CW-bb.js.map} +1 -1
- package/dist/assets/{kol-input-radio.entry-NeQxeDeY.js → kol-input-radio.entry-CSi4kAiq.js} +2 -2
- package/dist/assets/{kol-input-radio.entry-NeQxeDeY.js.map → kol-input-radio.entry-CSi4kAiq.js.map} +1 -1
- package/dist/assets/{kol-input-range.entry-DDgdxR9E.js → kol-input-range.entry-TJ6AJvR0.js} +2 -2
- package/dist/assets/{kol-input-range.entry-DDgdxR9E.js.map → kol-input-range.entry-TJ6AJvR0.js.map} +1 -1
- package/dist/assets/{kol-input-text.entry-Cwqz51e7.js → kol-input-text.entry-DOgLyIci.js} +2 -2
- package/dist/assets/{kol-input-text.entry-Cwqz51e7.js.map → kol-input-text.entry-DOgLyIci.js.map} +1 -1
- package/dist/assets/{kol-kolibri.entry-DWSvI_gd.js → kol-kolibri.entry-D2h8gNQ_.js} +2 -2
- package/dist/assets/{kol-kolibri.entry-DWSvI_gd.js.map → kol-kolibri.entry-D2h8gNQ_.js.map} +1 -1
- package/dist/assets/{kol-link-button.entry-CrT5KFud.js → kol-link-button.entry-DdU33d_z.js} +2 -2
- package/dist/assets/{kol-link-button.entry-CrT5KFud.js.map → kol-link-button.entry-DdU33d_z.js.map} +1 -1
- package/dist/assets/{kol-link-wc.entry-tbUaeE6T.js → kol-link-wc.entry-4wLk9gOC.js} +2 -2
- package/dist/assets/{kol-link-wc.entry-tbUaeE6T.js.map → kol-link-wc.entry-4wLk9gOC.js.map} +1 -1
- package/dist/assets/{kol-link.entry-DS3kMTqz.js → kol-link.entry-CBFak7lS.js} +2 -2
- package/dist/assets/{kol-link.entry-DS3kMTqz.js.map → kol-link.entry-CBFak7lS.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-D57KUUFa.js → kol-modal.entry-CEp7ZLr5.js} +2 -2
- package/dist/assets/{kol-modal.entry-D57KUUFa.js.map → kol-modal.entry-CEp7ZLr5.js.map} +1 -1
- package/dist/assets/{kol-nav.entry-BBfCJHOL.js → kol-nav.entry-CFdteo4X.js} +2 -2
- package/dist/assets/{kol-nav.entry-BBfCJHOL.js.map → kol-nav.entry-CFdteo4X.js.map} +1 -1
- package/dist/assets/{kol-pagination-wc.entry-CkeuVuR6.js → kol-pagination-wc.entry-DjOv5DKA.js} +2 -2
- package/dist/assets/{kol-pagination-wc.entry-CkeuVuR6.js.map → kol-pagination-wc.entry-DjOv5DKA.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-BOu6UM47.js → kol-pagination.entry-KtRq3-5L.js} +2 -2
- package/dist/assets/{kol-pagination.entry-BOu6UM47.js.map → kol-pagination.entry-KtRq3-5L.js.map} +1 -1
- package/dist/assets/{kol-popover-button-wc.entry-BHSWNEUg.js → kol-popover-button-wc.entry-D-hUUj7q.js} +2 -2
- package/dist/assets/{kol-popover-button-wc.entry-BHSWNEUg.js.map → kol-popover-button-wc.entry-D-hUUj7q.js.map} +1 -1
- package/dist/assets/{kol-popover-button.entry-B4DaEgoX.js → kol-popover-button.entry-m4J8xRbV.js} +2 -2
- package/dist/assets/{kol-popover-button.entry-B4DaEgoX.js.map → kol-popover-button.entry-m4J8xRbV.js.map} +1 -1
- package/dist/assets/{kol-popover-wc.entry-ISwBQokS.js → kol-popover-wc.entry-DEdy93Vz.js} +2 -2
- package/dist/assets/{kol-popover-wc.entry-ISwBQokS.js.map → kol-popover-wc.entry-DEdy93Vz.js.map} +1 -1
- package/dist/assets/{kol-progress.entry-sRCTMouK.js → kol-progress.entry-BF4tX0vf.js} +2 -2
- package/dist/assets/{kol-progress.entry-sRCTMouK.js.map → kol-progress.entry-BF4tX0vf.js.map} +1 -1
- package/dist/assets/{kol-quote.entry-D-q1vPQw.js → kol-quote.entry-Cwr6MWE6.js} +2 -2
- package/dist/assets/{kol-quote.entry-D-q1vPQw.js.map → kol-quote.entry-Cwr6MWE6.js.map} +1 -1
- package/dist/assets/{kol-select-wc.entry-BODW1e8-.js → kol-select-wc.entry-CJpU94m-.js} +2 -2
- package/dist/assets/{kol-select-wc.entry-BODW1e8-.js.map → kol-select-wc.entry-CJpU94m-.js.map} +1 -1
- package/dist/assets/{kol-select.entry-DP_igS8k.js → kol-select.entry-DTQCufY3.js} +2 -2
- package/dist/assets/{kol-select.entry-DP_igS8k.js.map → kol-select.entry-DTQCufY3.js.map} +1 -1
- package/dist/assets/{kol-single-select.entry-CW3cQI5F.js → kol-single-select.entry-DCaGuRw4.js} +2 -2
- package/dist/assets/{kol-single-select.entry-CW3cQI5F.js.map → kol-single-select.entry-DCaGuRw4.js.map} +1 -1
- package/dist/assets/{kol-skip-nav.entry-CloIcdEQ.js → kol-skip-nav.entry-BUhPIieC.js} +2 -2
- package/dist/assets/{kol-skip-nav.entry-CloIcdEQ.js.map → kol-skip-nav.entry-BUhPIieC.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-pr5UTAez.js → kol-spin.entry-BmV7zPDu.js} +2 -2
- package/dist/assets/{kol-spin.entry-pr5UTAez.js.map → kol-spin.entry-BmV7zPDu.js.map} +1 -1
- package/dist/assets/{kol-split-button.entry-DegyNHIs.js → kol-split-button.entry-B5GkLmIr.js} +2 -2
- package/dist/assets/{kol-split-button.entry-DegyNHIs.js.map → kol-split-button.entry-B5GkLmIr.js.map} +1 -1
- package/dist/assets/{kol-table-settings-wc.entry-D1X74Pe0.js → kol-table-settings-wc.entry-CGQwOXX_.js} +2 -2
- package/dist/assets/{kol-table-settings-wc.entry-D1X74Pe0.js.map → kol-table-settings-wc.entry-CGQwOXX_.js.map} +1 -1
- package/dist/assets/{kol-table-stateful.entry-ZljQpB8x.js → kol-table-stateful.entry-B5RmzgXh.js} +2 -2
- package/dist/assets/{kol-table-stateful.entry-ZljQpB8x.js.map → kol-table-stateful.entry-B5RmzgXh.js.map} +1 -1
- package/dist/assets/{kol-table-stateless-wc.entry-CCg2O12L.js → kol-table-stateless-wc.entry-BpaHo8VU.js} +2 -2
- package/dist/assets/{kol-table-stateless-wc.entry-CCg2O12L.js.map → kol-table-stateless-wc.entry-BpaHo8VU.js.map} +1 -1
- package/dist/assets/{kol-table-stateless.entry-JyATXFze.js → kol-table-stateless.entry-CtA5xRqQ.js} +2 -2
- package/dist/assets/{kol-table-stateless.entry-JyATXFze.js.map → kol-table-stateless.entry-CtA5xRqQ.js.map} +1 -1
- package/dist/assets/{kol-tabs.entry-B8XVC0q5.js → kol-tabs.entry-C07RIaFG.js} +2 -2
- package/dist/assets/{kol-tabs.entry-B8XVC0q5.js.map → kol-tabs.entry-C07RIaFG.js.map} +1 -1
- package/dist/assets/{kol-textarea.entry-D3_5qopC.js → kol-textarea.entry-D1P12Mcl.js} +2 -2
- package/dist/assets/{kol-textarea.entry-D3_5qopC.js.map → kol-textarea.entry-D1P12Mcl.js.map} +1 -1
- package/dist/assets/{kol-toast-container.entry-Bjl9kFGy.js → kol-toast-container.entry-1AqQW2B2.js} +2 -2
- package/dist/assets/{kol-toast-container.entry-Bjl9kFGy.js.map → kol-toast-container.entry-1AqQW2B2.js.map} +1 -1
- package/dist/assets/{kol-toolbar.entry-BeQf9wuc.js → kol-toolbar.entry-BoeUlOW7.js} +2 -2
- package/dist/assets/{kol-toolbar.entry-BeQf9wuc.js.map → kol-toolbar.entry-BoeUlOW7.js.map} +1 -1
- package/dist/assets/kol-tooltip-wc.entry-DB2JG_iO.js +2 -0
- package/dist/assets/kol-tooltip-wc.entry-DB2JG_iO.js.map +1 -0
- package/dist/assets/{kol-tree-item-wc.entry-DKZiIes0.js → kol-tree-item-wc.entry-C9sSVHl_.js} +2 -2
- package/dist/assets/{kol-tree-item-wc.entry-DKZiIes0.js.map → kol-tree-item-wc.entry-C9sSVHl_.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-ByWAtDwk.js → kol-tree-item.entry-B-Porrjr.js} +2 -2
- package/dist/assets/{kol-tree-item.entry-ByWAtDwk.js.map → kol-tree-item.entry-B-Porrjr.js.map} +1 -1
- package/dist/assets/{kol-tree-wc.entry-CrM5roWS.js → kol-tree-wc.entry-BegDOeOF.js} +2 -2
- package/dist/assets/{kol-tree-wc.entry-CrM5roWS.js.map → kol-tree-wc.entry-BegDOeOF.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-BoQgiKlf.js → kol-tree.entry-DiALeBzV.js} +2 -2
- package/dist/assets/{kol-tree.entry-BoQgiKlf.js.map → kol-tree.entry-DiALeBzV.js.map} +1 -1
- package/dist/assets/{kol-version.entry-CPw_P-wi.js → kol-version.entry-DKSFNIcV.js} +2 -2
- package/dist/assets/{kol-version.entry-CPw_P-wi.js.map → kol-version.entry-DKSFNIcV.js.map} +1 -1
- package/dist/assets/{label-Dnmzb2S_-BxskbY8W.js → label-Dnmzb2S_-D9dWmWTz.js} +2 -2
- package/dist/assets/{label-Dnmzb2S_-BxskbY8W.js.map → label-Dnmzb2S_-D9dWmWTz.js.map} +1 -1
- package/dist/assets/{markdown-BSkXjaSn-Dygxx2IE.js → markdown-BSkXjaSn-_a5Thq-W.js} +2 -2
- package/dist/assets/{markdown-BSkXjaSn-Dygxx2IE.js.map → markdown-BSkXjaSn-_a5Thq-W.js.map} +1 -1
- package/dist/assets/{max-length-behavior-nTw1Zuyf-BhEoXwAH.js → max-length-behavior-nTw1Zuyf-ZKXbj7kF.js} +2 -2
- package/dist/assets/{max-length-behavior-nTw1Zuyf-BhEoXwAH.js.map → max-length-behavior-nTw1Zuyf-ZKXbj7kF.js.map} +1 -1
- package/dist/assets/multiple-Cj3JQafH-DAIe9nfd.js +2 -0
- package/dist/assets/{multiple-Cj3JQafH-BkbjVxA-.js.map → multiple-Cj3JQafH-DAIe9nfd.js.map} +1 -1
- package/dist/assets/open-CbvHO4XG-DW5XcWZw.js +2 -0
- package/dist/assets/{open-CbvHO4XG-DgQAfw5P.js.map → open-CbvHO4XG-DW5XcWZw.js.map} +1 -1
- package/dist/assets/{orientation-eCMt8CD1-DScvKFHN.js → orientation-eCMt8CD1-UUfuxG6Z.js} +2 -2
- package/dist/assets/{orientation-eCMt8CD1-DScvKFHN.js.map → orientation-eCMt8CD1-UUfuxG6Z.js.map} +1 -1
- package/dist/assets/placeholder-BVhy3BzI-WZ0pItMk.js +2 -0
- package/dist/assets/{placeholder-BVhy3BzI-BU6mWOxP.js.map → placeholder-BVhy3BzI-WZ0pItMk.js.map} +1 -1
- package/dist/assets/read-only-BetTuumR-Di2O6bst.js +2 -0
- package/dist/assets/{read-only-BetTuumR-BU9fEIhR.js.map → read-only-BetTuumR-Di2O6bst.js.map} +1 -1
- package/dist/assets/required-CnTTpFCN-DUkXYVaZ.js +2 -0
- package/dist/assets/{required-CnTTpFCN-BDKVgqy_.js.map → required-CnTTpFCN-DUkXYVaZ.js.map} +1 -1
- package/dist/assets/rows-DtS-0sp9-Bd5ZJC9m.js +2 -0
- package/dist/assets/{rows-DtS-0sp9-5byf2DPF.js.map → rows-DtS-0sp9-Bd5ZJC9m.js.map} +1 -1
- package/dist/assets/show-DdPK3aM7-Nbex-up6.js +2 -0
- package/dist/assets/{show-DdPK3aM7-B49sbvcy.js.map → show-DdPK3aM7-Nbex-up6.js.map} +1 -1
- package/dist/assets/spell-check-B9ot-4t--C-CBQm0a.js +2 -0
- package/dist/assets/{spell-check-B9ot-4t--6xK9FiQ8.js.map → spell-check-B9ot-4t--C-CBQm0a.js.map} +1 -1
- package/dist/assets/{suggestions-B-jLvT4L-CjyKqQXC.js → suggestions-B-jLvT4L-BaHe7Khx.js} +2 -2
- package/dist/assets/{suggestions-B-jLvT4L-CjyKqQXC.js.map → suggestions-B-jLvT4L-BaHe7Khx.js.map} +1 -1
- package/dist/assets/{table-settings-DxLvhwRE-xEKlbOkt.js → table-settings-DxLvhwRE-DivvS59t.js} +2 -2
- package/dist/assets/{table-settings-DxLvhwRE-xEKlbOkt.js.map → table-settings-DxLvhwRE-DivvS59t.js.map} +1 -1
- package/dist/assets/test-component.entry-Ci6dYLLJ.js +2 -0
- package/dist/assets/{test-component.entry-BX3rqk_t.js.map → test-component.entry-Ci6dYLLJ.js.map} +1 -1
- package/dist/assets/tooltip-align-Cnin7S26-Cn2UA2cK.js +2 -0
- package/dist/assets/{tooltip-align-Cnin7S26-DQvbsZbI.js.map → tooltip-align-Cnin7S26-Cn2UA2cK.js.map} +1 -1
- package/dist/assets/{unique-nav-labels-CrfmPC99-xEDMvvMw.js → unique-nav-labels-CrfmPC99-CymHy7K9.js} +2 -2
- package/dist/assets/{unique-nav-labels-CrfmPC99-xEDMvvMw.js.map → unique-nav-labels-CrfmPC99-CymHy7K9.js.map} +1 -1
- package/dist/assets/{validation-BfjI5un_-CJJgmSwv.js → validation-BfjI5un_-C6sOZi34.js} +2 -2
- package/dist/assets/{validation-BfjI5un_-CJJgmSwv.js.map → validation-BfjI5un_-C6sOZi34.js.map} +1 -1
- package/dist/assets/validation-aqgnZOL6-08-Mvg1e.js +2 -0
- package/dist/assets/{validation-aqgnZOL6-DiOdo1K0.js.map → validation-aqgnZOL6-08-Mvg1e.js.map} +1 -1
- package/dist/index.html +2 -2
- package/package.json +14 -14
- package/src/components/button/partials/cases.tsx +10 -0
- package/src/components/button/partials/tooltip.scss +103 -0
- package/dist/assets/align-floating-elements-BkpeqvtE-ms12ZXVF.js +0 -2
- package/dist/assets/align-floating-elements-BkpeqvtE-ms12ZXVF.js.map +0 -1
- package/dist/assets/custom-class-nuoQ9Aml-C0BTklw2.js +0 -2
- package/dist/assets/disabled-BhpAFgSp-CqxwQWmC.js +0 -2
- package/dist/assets/has-closer-CQzjaTkv-DlClIllR.js +0 -2
- package/dist/assets/hide-label-B9FhGrWP-CI-52mVf.js +0 -2
- package/dist/assets/href-rwDd36rS-mxgf0x0T.js +0 -2
- package/dist/assets/i18n-LBpyQ66X-FYRdsujR.js +0 -2
- package/dist/assets/image-source-BfBEJ0rX-DVqF31P8.js +0 -2
- package/dist/assets/index-CHECPbf5.js.map +0 -1
- package/dist/assets/inline-cDaqwSfK-B6QbipBu.js +0 -2
- package/dist/assets/kol-tooltip-wc.entry-CNvRWq3U.js +0 -2
- package/dist/assets/kol-tooltip-wc.entry-CNvRWq3U.js.map +0 -1
- package/dist/assets/multiple-Cj3JQafH-BkbjVxA-.js +0 -2
- package/dist/assets/open-CbvHO4XG-DgQAfw5P.js +0 -2
- package/dist/assets/placeholder-BVhy3BzI-BU6mWOxP.js +0 -2
- package/dist/assets/read-only-BetTuumR-BU9fEIhR.js +0 -2
- package/dist/assets/required-CnTTpFCN-BDKVgqy_.js +0 -2
- package/dist/assets/rows-DtS-0sp9-5byf2DPF.js +0 -2
- package/dist/assets/show-DdPK3aM7-B49sbvcy.js +0 -2
- package/dist/assets/spell-check-B9ot-4t--6xK9FiQ8.js +0 -2
- package/dist/assets/test-component.entry-BX3rqk_t.js +0 -2
- package/dist/assets/tooltip-align-Cnin7S26-DQvbsZbI.js +0 -2
- package/dist/assets/validation-aqgnZOL6-DiOdo1K0.js +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/kol-abbr.entry-
|
|
2
|
-
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(s){if(s.ep)return;s.ep=!0;const d=r(s);fetch(s.href,d)}})();function $z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},xi={};var Hv;function Nz(){if(Hv)return xi;Hv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,s,d){var u=null;if(d!==void 0&&(u=""+d),s.key!==void 0&&(u=""+s.key),"key"in s){d={};for(var m in s)m!=="key"&&(d[m]=s[m])}else d=s;return s=d.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:d}}return xi.Fragment=n,xi.jsx=r,xi.jsxs=r,xi}var Fv;function Bz(){return Fv||(Fv=1,jf.exports=Nz()),jf.exports}var a=Bz(),Tf={exports:{}},Be={};var Kv;function Rz(){if(Kv)return Be;Kv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function z(C){return C===null||typeof C!="object"?null:(C=_&&C[_]||C["@@iterator"],typeof C=="function"?C:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,O={};function E(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}E.prototype.isReactComponent={},E.prototype.setState=function(C,P){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,P,"setState")},E.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function x(){}x.prototype=E.prototype;function w(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}var $=w.prototype=new x;$.constructor=w,j($,E.prototype),$.isPureReactComponent=!0;var D=Array.isArray;function H(){}var Z={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function se(C,P,le){var fe=le.ref;return{$$typeof:e,type:C,key:P,ref:fe!==void 0?fe:null,props:le}}function $e(C,P){return se(C.type,P,C.props)}function ce(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ne(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return P[le]})}var we=/\/+/g;function De(C,P){return typeof C=="object"&&C!==null&&C.key!=null?ne(""+C.key):P.toString(36)}function Fe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(H,H):(C.status="pending",C.then(function(P){C.status==="pending"&&(C.status="fulfilled",C.value=P)},function(P){C.status==="pending"&&(C.status="rejected",C.reason=P)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function M(C,P,le,fe,Ce){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var Ge=!1;if(C===null)Ge=!0;else switch(Ne){case"bigint":case"string":case"number":Ge=!0;break;case"object":switch(C.$$typeof){case e:case n:Ge=!0;break;case g:return Ge=C._init,M(Ge(C._payload),P,le,fe,Ce)}}if(Ge)return Ce=Ce(C),Ge=fe===""?"."+De(C,0):fe,D(Ce)?(le="",Ge!=null&&(le=Ge.replace(we,"$&/")+"/"),M(Ce,P,le,"",function(vt){return vt})):Ce!=null&&(ce(Ce)&&(Ce=$e(Ce,le+(Ce.key==null||C&&C.key===Ce.key?"":(""+Ce.key).replace(we,"$&/")+"/")+Ge)),P.push(Ce)),1;Ge=0;var Co=fe===""?".":fe+":";if(D(C))for(var _o=0;_o<C.length;_o++)fe=C[_o],Ne=Co+De(fe,_o),Ge+=M(fe,P,le,Ne,Ce);else if(_o=z(C),typeof _o=="function")for(C=_o.call(C),_o=0;!(fe=C.next()).done;)fe=fe.value,Ne=Co+De(fe,_o++),Ge+=M(fe,P,le,Ne,Ce);else if(Ne==="object"){if(typeof C.then=="function")return M(Fe(C),P,le,fe,Ce);throw P=String(C),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return Ge}function G(C,P,le){if(C==null)return C;var fe=[],Ce=0;return M(C,fe,"","",function(Ne){return P.call(le,Ne,Ce++)}),fe}function ie(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(le){(C._status===0||C._status===-1)&&(C._status=1,C._result=le)},function(le){(C._status===0||C._status===-1)&&(C._status=2,C._result=le)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var je=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},Te={map:G,forEach:function(C,P,le){G(C,function(){P.apply(this,arguments)},le)},count:function(C){var P=0;return G(C,function(){P++}),P},toArray:function(C){return G(C,function(P){return P})||[]},only:function(C){if(!ce(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Be.Activity=v,Be.Children=Te,Be.Component=E,Be.Fragment=r,Be.Profiler=s,Be.PureComponent=w,Be.StrictMode=i,Be.Suspense=h,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,Be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Z.H.useMemoCache(C)}},Be.cache=function(C){return function(){return C.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(C,P,le){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var fe=j({},C.props),Ce=C.key;if(P!=null)for(Ne in P.key!==void 0&&(Ce=""+P.key),P)!ee.call(P,Ne)||Ne==="key"||Ne==="__self"||Ne==="__source"||Ne==="ref"&&P.ref===void 0||(fe[Ne]=P[Ne]);var Ne=arguments.length-2;if(Ne===1)fe.children=le;else if(1<Ne){for(var Ge=Array(Ne),Co=0;Co<Ne;Co++)Ge[Co]=arguments[Co+2];fe.children=Ge}return se(C.type,Ce,fe)},Be.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},Be.createElement=function(C,P,le){var fe,Ce={},Ne=null;if(P!=null)for(fe in P.key!==void 0&&(Ne=""+P.key),P)ee.call(P,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(Ce[fe]=P[fe]);var Ge=arguments.length-2;if(Ge===1)Ce.children=le;else if(1<Ge){for(var Co=Array(Ge),_o=0;_o<Ge;_o++)Co[_o]=arguments[_o+2];Ce.children=Co}if(C&&C.defaultProps)for(fe in Ge=C.defaultProps,Ge)Ce[fe]===void 0&&(Ce[fe]=Ge[fe]);return se(C,Ne,Ce)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(C){return{$$typeof:m,render:C}},Be.isValidElement=ce,Be.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ie}},Be.memo=function(C,P){return{$$typeof:p,type:C,compare:P===void 0?null:P}},Be.startTransition=function(C){var P=Z.T,le={};Z.T=le;try{var fe=C(),Ce=Z.S;Ce!==null&&Ce(le,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(H,je)}catch(Ne){je(Ne)}finally{P!==null&&le.types!==null&&(P.types=le.types),Z.T=P}},Be.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},Be.use=function(C){return Z.H.use(C)},Be.useActionState=function(C,P,le){return Z.H.useActionState(C,P,le)},Be.useCallback=function(C,P){return Z.H.useCallback(C,P)},Be.useContext=function(C){return Z.H.useContext(C)},Be.useDebugValue=function(){},Be.useDeferredValue=function(C,P){return Z.H.useDeferredValue(C,P)},Be.useEffect=function(C,P){return Z.H.useEffect(C,P)},Be.useEffectEvent=function(C){return Z.H.useEffectEvent(C)},Be.useId=function(){return Z.H.useId()},Be.useImperativeHandle=function(C,P,le){return Z.H.useImperativeHandle(C,P,le)},Be.useInsertionEffect=function(C,P){return Z.H.useInsertionEffect(C,P)},Be.useLayoutEffect=function(C,P){return Z.H.useLayoutEffect(C,P)},Be.useMemo=function(C,P){return Z.H.useMemo(C,P)},Be.useOptimistic=function(C,P){return Z.H.useOptimistic(C,P)},Be.useReducer=function(C,P,le){return Z.H.useReducer(C,P,le)},Be.useRef=function(C){return Z.H.useRef(C)},Be.useState=function(C){return Z.H.useState(C)},Be.useSyncExternalStore=function(C,P,le){return Z.H.useSyncExternalStore(C,P,le)},Be.useTransition=function(){return Z.H.useTransition()},Be.version="19.2.3",Be}var Vv;function Qb(){return Vv||(Vv=1,Tf.exports=Rz()),Tf.exports}var S=Qb();const ae=$z(S),Dz=e=>e.toLowerCase().split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),xx=e=>e.replace(/([A-Z])/g,n=>`-${n[0].toLowerCase()}`),Mz=(e,n,r={})=>{if(e instanceof Element){const i=Iz(e.classList,n,r);i!==""&&(e.className=i),Object.keys(n).forEach(s=>{if(!(s==="children"||s==="style"||s==="ref"||s==="class"||s==="className"||s==="forwardedRef"))if(s.indexOf("on")===0&&s[2]===s[2].toUpperCase()){const d=s.substring(2),u=d[0].toLowerCase()+d.substring(1);yx(u)||Hz(e,u,n[s])}else e[s]=n[s],typeof n[s]==="string"&&e.setAttribute(xx(s),n[s])})}},Iz=(e,n,r)=>{const i=n.className||n.class,s=r.className||r.class,d=Af(e),u=Af(i?i.split(" "):[]),m=Af(s?s.split(" "):[]),h=[];return d.forEach(p=>{u.has(p)?(h.push(p),u.delete(p)):m.has(p)||h.push(p)}),u.forEach(p=>h.push(p)),h.join(" ")},Uz=e=>{switch(e){case"doubleclick":return"dblclick"}return e};const yx=e=>{if(typeof document>"u")return!0;{const n="on"+Uz(e);let r=n in document;if(!r){const i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return r}},Hz=(e,n,r)=>{const i=e.__events||(e.__events={}),s=i[n];s&&e.removeEventListener(n,s),e.addEventListener(n,i[n]=function(u){r&&r.call(this,u)})},Af=e=>{const n=new Map;return e.forEach(r=>n.set(r,r)),n};let sb;const Fz=e=>{sb=e},Kz=(e,n)=>{typeof e=="function"?e(n):e!=null&&(e.current=n)},Vz=(...e)=>n=>{e.forEach(r=>{Kz(r,n)})},qz=(e,n)=>{const r=(i,s)=>ae.createElement(e,{...i,forwardedRef:s});return r.displayName=n,ae.forwardRef(r)},Ee=(e,n,r,i)=>{const s=Dz(e),d=class extends ae.Component{componentEl;setComponentElRef=u=>{this.componentEl=u};constructor(u){super(u)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){Mz(this.componentEl,this.props,u)}render(){const{children:u,forwardedRef:m,style:h,className:p,ref:g,...v}=this.props,z={...Object.keys(v).reduce((j,O)=>{const E=v[O];if(O.indexOf("on")===0&&O[2]===O[2].toUpperCase()){const x=O.substring(2).toLowerCase();typeof document<"u"&&yx(x)&&(j[O]=E)}else{const x=typeof E;(x==="string"||x==="boolean"||x==="number")&&(j[xx(O)]=E)}return j},{}),ref:Vz(m,this.setComponentElRef),style:h},N=typeof sb=="function"?sb(e):e;return S.createElement(N,z,u)}static get displayName(){return s}};return qz(d,s)},Ri=Ee("kol-abbr"),rn=Ee("kol-accordion"),gn=Ee("kol-alert"),hs=Ee("kol-avatar"),wo=Ee("kol-badge"),zs=Ee("kol-breadcrumb"),W=Ee("kol-button"),Pe=Ee("kol-button-link"),Le=Ee("kol-card"),_n=Ee("kol-combobox"),rr=Ee("kol-details"),em=Ee("kol-drawer"),An=Ee("kol-form"),be=Ee("kol-heading"),pt=Ee("kol-icon"),Zz=Ee("kol-image"),ro=Ee("kol-input-checkbox"),Go=Ee("kol-input-color"),He=Ee("kol-input-date"),Yo=Ee("kol-input-email"),Ro=Ee("kol-input-file"),jo=Ee("kol-input-number"),Eo=Ee("kol-input-password"),Lo=Ee("kol-input-radio"),en=Ee("kol-input-range"),Oe=Ee("kol-input-text"),Ss=Ee("kol-kolibri"),_e=Ee("kol-link"),Xe=Ee("kol-link-button"),qv=Ee("kol-modal"),yl=Ee("kol-nav"),yi=Ee("kol-pagination"),db=Ee("kol-popover-button"),nr=Ee("kol-progress"),wx=Ee("kol-quote"),Jo=Ee("kol-select"),bn=Ee("kol-single-select"),Pz=Ee("kol-skip-nav"),Xs=Ee("kol-spin"),gl=Ee("kol-split-button"),mo=Ee("kol-table-stateful"),Sl=Ee("kol-table-stateless"),cr=Ee("kol-tabs"),Qe=Ee("kol-textarea"),ga=Ee("kol-toolbar"),zx=Ee("kol-tree"),Qo=Ee("kol-tree-item"),Ws=Ee("kol-version");function Fr(e){const n=document.createElement("div");return n.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(n),n}var Cf={exports:{}},wi={},Ef={exports:{}},Lf={};var Zv;function Gz(){return Zv||(Zv=1,(function(e){function n(M,G){var ie=M.length;M.push(G);e:for(;0<ie;){var je=ie-1>>>1,Te=M[je];if(0<s(Te,G))M[je]=G,M[ie]=Te,ie=je;else break e}}function r(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var G=M[0],ie=M.pop();if(ie!==G){M[0]=ie;e:for(var je=0,Te=M.length,C=Te>>>1;je<C;){var P=2*(je+1)-1,le=M[P],fe=P+1,Ce=M[fe];if(0>s(le,ie))fe<Te&&0>s(Ce,le)?(M[je]=Ce,M[fe]=ie,je=fe):(M[je]=le,M[P]=ie,je=P);else if(fe<Te&&0>s(Ce,ie))M[je]=Ce,M[fe]=ie,je=fe;else break e}}return G}function s(M,G){var ie=M.sortIndex-G.sortIndex;return ie!==0?ie:M.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var h=[],p=[],g=1,v=null,_=3,z=!1,N=!1,j=!1,O=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function $(M){for(var G=r(p);G!==null;){if(G.callback===null)i(p);else if(G.startTime<=M)i(p),G.sortIndex=G.expirationTime,n(h,G);else break;G=r(p)}}function D(M){if(j=!1,$(M),!N)if(r(h)!==null)N=!0,H||(H=!0,ne());else{var G=r(p);G!==null&&Fe(D,G.startTime-M)}}var H=!1,Z=-1,ee=5,se=-1;function $e(){return O?!0:!(e.unstable_now()-se<ee)}function ce(){if(O=!1,H){var M=e.unstable_now();se=M;var G=!0;try{e:{N=!1,j&&(j=!1,x(Z),Z=-1),z=!0;var ie=_;try{o:{for($(M),v=r(h);v!==null&&!(v.expirationTime>M&&$e());){var je=v.callback;if(typeof je=="function"){v.callback=null,_=v.priorityLevel;var Te=je(v.expirationTime<=M);if(M=e.unstable_now(),typeof Te=="function"){v.callback=Te,$(M),G=!0;break o}v===r(h)&&i(h),$(M)}else i(h);v=r(h)}if(v!==null)G=!0;else{var C=r(p);C!==null&&Fe(D,C.startTime-M),G=!1}}break e}finally{v=null,_=ie,z=!1}G=void 0}}finally{G?ne():H=!1}}}var ne;if(typeof w=="function")ne=function(){w(ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,De=we.port2;we.port1.onmessage=ce,ne=function(){De.postMessage(null)}}else ne=function(){E(ce,0)};function Fe(M,G){Z=E(function(){M(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(M){switch(_){case 1:case 2:case 3:var G=3;break;default:G=_}var ie=_;_=G;try{return M()}finally{_=ie}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=_;_=M;try{return G()}finally{_=ie}},e.unstable_scheduleCallback=function(M,G,ie){var je=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?je+ie:je):ie=je,M){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ie+Te,M={id:g++,callback:G,priorityLevel:M,startTime:ie,expirationTime:Te,sortIndex:-1},ie>je?(M.sortIndex=ie,n(p,M),r(h)===null&&M===r(p)&&(j?(x(Z),Z=-1):j=!0,Fe(D,ie-je))):(M.sortIndex=Te,n(h,M),N||z||(N=!0,H||(H=!0,ne()))),M},e.unstable_shouldYield=$e,e.unstable_wrapCallback=function(M){var G=_;return function(){var ie=_;_=G;try{return M.apply(this,arguments)}finally{_=ie}}}})(Lf)),Lf}var Pv;function Yz(){return Pv||(Pv=1,Ef.exports=Gz()),Ef.exports}var Of={exports:{}},kn={};var Gv;function Jz(){if(Gv)return kn;Gv=1;var e=Qb();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function d(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,kn.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return d(h,p,null,g)},kn.flushSync=function(h){var p=u.T,g=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=p,i.p=g,i.d.f()}},kn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},kn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},kn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:z}):g==="script"&&i.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},kn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);i.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},kn.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=m(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},kn.requestFormReset=function(h){i.d.r(h)},kn.unstable_batchedUpdates=function(h,p){return h(p)},kn.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},kn.useFormStatus=function(){return u.H.useHostTransitionStatus()},kn.version="19.2.3",kn}var Yv;function Xz(){if(Yv)return Of.exports;Yv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Of.exports=Jz(),Of.exports}var Jv;function Wz(){if(Jv)return wi;Jv=1;var e=Yz(),n=Qb(),r=Xz();function i(o){var t="https://react.dev/errors/"+o;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function d(o){var t=o,l=o;if(o.alternate)for(;t.return;)t=t.return;else{o=t;do t=o,(t.flags&4098)!==0&&(l=t.return),o=t.return;while(o)}return t.tag===3?l:null}function u(o){if(o.tag===13){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function m(o){if(o.tag===31){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function h(o){if(d(o)!==o)throw Error(i(188))}function p(o){var t=o.alternate;if(!t){if(t=d(o),t===null)throw Error(i(188));return t!==o?null:o}for(var l=o,c=t;;){var f=l.return;if(f===null)break;var b=f.alternate;if(b===null){if(c=f.return,c!==null){l=c;continue}break}if(f.child===b.child){for(b=f.child;b;){if(b===l)return h(f),o;if(b===c)return h(f),t;b=b.sibling}throw Error(i(188))}if(l.return!==c.return)l=f,c=b;else{for(var k=!1,y=f.child;y;){if(y===l){k=!0,l=f,c=b;break}if(y===c){k=!0,c=f,l=b;break}y=y.sibling}if(!k){for(y=b.child;y;){if(y===l){k=!0,l=b,c=f;break}if(y===c){k=!0,c=b,l=f;break}y=y.sibling}if(!k)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?o:t}function g(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o;for(o=o.child;o!==null;){if(t=g(o),t!==null)return t;o=o.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),$e=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ne(o){return o===null||typeof o!="object"?null:(o=ce&&o[ce]||o["@@iterator"],typeof o=="function"?o:null)}var we=Symbol.for("react.client.reference");function De(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===we?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case E:return"Profiler";case O:return"StrictMode";case D:return"Suspense";case H:return"SuspenseList";case se:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case N:return"Portal";case w:return o.displayName||"Context";case x:return(o._context.displayName||"Context")+".Consumer";case $:var t=o.render;return o=o.displayName,o||(o=t.displayName||t.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Z:return t=o.displayName||null,t!==null?t:De(o.type)||"Memo";case ee:t=o._payload,o=o._init;try{return De(o(t))}catch{}}return null}var Fe=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},je=[],Te=-1;function C(o){return{current:o}}function P(o){0>Te||(o.current=je[Te],je[Te]=null,Te--)}function le(o,t){Te++,je[Te]=o.current,o.current=t}var fe=C(null),Ce=C(null),Ne=C(null),Ge=C(null);function Co(o,t){switch(le(Ne,t),le(Ce,o),le(fe,null),t.nodeType){case 9:case 11:o=(o=t.documentElement)&&(o=o.namespaceURI)?dv(o):0;break;default:if(o=t.tagName,t=t.namespaceURI)t=dv(t),o=uv(t,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}P(fe),le(fe,o)}function _o(){P(fe),P(Ce),P(Ne)}function vt(o){o.memoizedState!==null&&le(Ge,o);var t=fe.current,l=uv(t,o.type);t!==l&&(le(Ce,o),le(fe,l))}function jt(o){Ce.current===o&&(P(fe),P(Ce)),Ge.current===o&&(P(Ge),ki._currentValue=ie)}var Pr,Gr;function gt(o){if(Pr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Pr=t&&t[1]||"",Gr=-1<l.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/kol-abbr.entry-B--8_dqy.js","assets/label-Dnmzb2S_-D9dWmWTz.js","assets/kol-accordion.entry-jt9d0qqK.js","assets/Collapsible-DE_dCCdn-DBR1B2Oy.js","assets/tslib.es6-CxX45GIN-BGVaTf34.js","assets/clsx-eK3rPvPS-B-dksMZM.js","assets/Heading-DiAUxd4g-tQbHrF3W.js","assets/disabled-BhpAFgSp-QQIKryzu.js","assets/open-CbvHO4XG-DW5XcWZw.js","assets/dev.utils-ClF4EFkG-iyWyfmPT.js","assets/validation-aqgnZOL6-08-Mvg1e.js","assets/kol-badge.entry-DijVw6lO.js","assets/Alert-2oCWu44q-BDCyWBLz.js","assets/i18n-LBpyQ66X-DqXhJaLR.js","assets/color-BOIEtqEM-CBT4QW0t.js","assets/icons-DNTuScEN-l8_M_8i9.js","assets/Span-D7oadOd4-B8-ZlLvN.js","assets/Icon-BrAia08G-DDns7ZlV.js","assets/reuse-CX4AQDkS-BaVSFETn.js","assets/markdown-BSkXjaSn-_a5Thq-W.js","assets/InternalUnderlinedBadgeText-Bc9qUmf_-CJX7HiJo.js","assets/isObject-DvSELytj-DhzEQer1.js","assets/kol-breadcrumb.entry-CZnxtlIM.js","assets/unique-nav-labels-CrfmPC99-CymHy7K9.js","assets/validation-BfjI5un_-C6sOZi34.js","assets/kol-details.entry-DcovraIB.js","assets/kol-drawer.entry-D_zrj2Hh.js","assets/align-D-ifSKu8-CPQJOBV-.js","assets/has-closer-CQzjaTkv-DOf6r95S.js","assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js","assets/kol-form.entry-PKvJ8YW1.js","assets/kol-heading.entry-CqGMPkfi.js","assets/kol-icon.entry-D1F9Oo26.js","assets/kol-image.entry-R0fXHGZi.js","assets/image-source-BfBEJ0rX-CL6QEBud.js","assets/kol-input-checkbox.entry-DD0JMujb.js","assets/controller-C7BrOgwL-B9bZjT2U.js","assets/required-CnTTpFCN-DUkXYVaZ.js","assets/orientation-eCMt8CD1-UUfuxG6Z.js","assets/FormFieldStateWrapper-DfOSzRLI-ChcBWt1o.js","assets/access-and-short-key-B37XLwy2-BPIMW2i-.js","assets/hide-label-B9FhGrWP-BStXtd6B.js","assets/tooltip-align-Cnin7S26-Cn2UA2cK.js","assets/associated.controller-B9GDDaFL-CmkWLGn6.js","assets/Input-oHGCoBjV-DVREvsJT.js","assets/FieldControlStateWrapper-rxM70qjj-DaVgGZdJ.js","assets/controller-CM5wW8Ij-Db5IBI5q.js","assets/kol-input-color.entry-DOlC8iG9.js","assets/controller-icon-BhYm7X7q-11Hgw4bL.js","assets/InputStateWrapper-BttyPep1-DS5hLDKG.js","assets/auto-complete-mCkUnxg2-B-Pxe_ak.js","assets/suggestions-B-jLvT4L-BaHe7Khx.js","assets/kol-input-date.entry-CeCzrF36.js","assets/read-only-BetTuumR-Di2O6bst.js","assets/kol-input-email.entry-Y9ARNUDf.js","assets/max-length-behavior-nTw1Zuyf-ZKXbj7kF.js","assets/multiple-Cj3JQafH-DAIe9nfd.js","assets/controller-DffMBbzp-CjsiMMvI.js","assets/spell-check-B9ot-4t--C-CBQm0a.js","assets/controller-CN4_gI8T-Dq2RlsxF.js","assets/placeholder-BVhy3BzI-WZ0pItMk.js","assets/kol-input-file.entry-BWTMAdRa.js","assets/kol-input-number.entry-DdWiGbyJ.js","assets/kol-input-password.entry-DW_CW-bb.js","assets/kol-input-radio.entry-CSi4kAiq.js","assets/kol-input-text.entry-DOgLyIci.js","assets/kol-kolibri.entry-D2h8gNQ_.js","assets/kol-modal.entry-CEp7ZLr5.js","assets/kol-nav.entry-CFdteo4X.js","assets/kol-progress.entry-BF4tX0vf.js","assets/kol-quote.entry-Cwr6MWE6.js","assets/kol-skip-nav.entry-BUhPIieC.js","assets/kol-spin.entry-BmV7zPDu.js","assets/show-DdPK3aM7-Nbex-up6.js","assets/kol-split-button.entry-B5GkLmIr.js","assets/kol-table-stateful.entry-B5RmzgXh.js","assets/table-settings-DxLvhwRE-DivvS59t.js","assets/keyboard-D6PoWr38-BGYQJqo4.js","assets/kol-tabs.entry-C07RIaFG.js","assets/kol-textarea.entry-D1P12Mcl.js","assets/rows-DtS-0sp9-Bd5ZJC9m.js","assets/kol-toast-container.entry-1AqQW2B2.js","assets/kol-toolbar.entry-BoeUlOW7.js","assets/kol-version.entry-DKSFNIcV.js","assets/kol-alert-wc.entry-D5mvhAEk.js","assets/kol-avatar-wc.entry-Dj3T9ebU.js","assets/kol-button-wc.entry-Dpq7VZ9m.js","assets/button-variant-_wL6MroY-BhLS0gNf.js","assets/custom-class-nuoQ9Aml-D3f7n0Ir.js","assets/inline-cDaqwSfK-BS0XvMJe.js","assets/kol-card-wc.entry-xZqmg19V.js","assets/kol-combobox.entry-C22d2KTt.js","assets/CustomSuggestionsOptionsGroup-FVIwBS7A-B8oawa34.js","assets/kol-input-range.entry-TJ6AJvR0.js","assets/kol-link-wc.entry-4wLk9gOC.js","assets/href-rwDd36rS-zNI-kfg1.js","assets/kol-pagination-wc.entry-DjOv5DKA.js","assets/kol-popover-button-wc.entry-D-hUUj7q.js","assets/align-floating-elements-7Np6z5EU-CP7jpkxh.js","assets/kol-popover-wc.entry-DEdy93Vz.js","assets/kol-select-wc.entry-CJpU94m-.js","assets/kol-single-select.entry-DCaGuRw4.js","assets/kol-table-settings-wc.entry-CGQwOXX_.js","assets/kol-table-stateless-wc.entry-BpaHo8VU.js","assets/kol-tooltip-wc.entry-DB2JG_iO.js","assets/kol-tree-item-wc.entry-C9sSVHl_.js","assets/kol-tree-wc.entry-BegDOeOF.js","assets/devtools-Dc462omO-B2BUJ00B.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(s){if(s.ep)return;s.ep=!0;const d=r(s);fetch(s.href,d)}})();function $z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tf={exports:{}},yi={};var Fv;function Nz(){if(Fv)return yi;Fv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,s,d){var u=null;if(d!==void 0&&(u=""+d),s.key!==void 0&&(u=""+s.key),"key"in s){d={};for(var m in s)m!=="key"&&(d[m]=s[m])}else d=s;return s=d.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:d}}return yi.Fragment=n,yi.jsx=r,yi.jsxs=r,yi}var Kv;function Bz(){return Kv||(Kv=1,Tf.exports=Nz()),Tf.exports}var a=Bz(),Af={exports:{}},Be={};var Vv;function Rz(){if(Vv)return Be;Vv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function z(C){return C===null||typeof C!="object"?null:(C=_&&C[_]||C["@@iterator"],typeof C=="function"?C:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,O={};function E(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}E.prototype.isReactComponent={},E.prototype.setState=function(C,P){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,P,"setState")},E.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function x(){}x.prototype=E.prototype;function w(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}var $=w.prototype=new x;$.constructor=w,S($,E.prototype),$.isPureReactComponent=!0;var D=Array.isArray;function H(){}var Z={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function se(C,P,le){var fe=le.ref;return{$$typeof:e,type:C,key:P,ref:fe!==void 0?fe:null,props:le}}function $e(C,P){return se(C.type,P,C.props)}function ce(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ne(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return P[le]})}var we=/\/+/g;function De(C,P){return typeof C=="object"&&C!==null&&C.key!=null?ne(""+C.key):P.toString(36)}function Fe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(H,H):(C.status="pending",C.then(function(P){C.status==="pending"&&(C.status="fulfilled",C.value=P)},function(P){C.status==="pending"&&(C.status="rejected",C.reason=P)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function M(C,P,le,fe,Ce){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var Ge=!1;if(C===null)Ge=!0;else switch(Ne){case"bigint":case"string":case"number":Ge=!0;break;case"object":switch(C.$$typeof){case e:case n:Ge=!0;break;case g:return Ge=C._init,M(Ge(C._payload),P,le,fe,Ce)}}if(Ge)return Ce=Ce(C),Ge=fe===""?"."+De(C,0):fe,D(Ce)?(le="",Ge!=null&&(le=Ge.replace(we,"$&/")+"/"),M(Ce,P,le,"",function(vt){return vt})):Ce!=null&&(ce(Ce)&&(Ce=$e(Ce,le+(Ce.key==null||C&&C.key===Ce.key?"":(""+Ce.key).replace(we,"$&/")+"/")+Ge)),P.push(Ce)),1;Ge=0;var Co=fe===""?".":fe+":";if(D(C))for(var _o=0;_o<C.length;_o++)fe=C[_o],Ne=Co+De(fe,_o),Ge+=M(fe,P,le,Ne,Ce);else if(_o=z(C),typeof _o=="function")for(C=_o.call(C),_o=0;!(fe=C.next()).done;)fe=fe.value,Ne=Co+De(fe,_o++),Ge+=M(fe,P,le,Ne,Ce);else if(Ne==="object"){if(typeof C.then=="function")return M(Fe(C),P,le,fe,Ce);throw P=String(C),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return Ge}function G(C,P,le){if(C==null)return C;var fe=[],Ce=0;return M(C,fe,"","",function(Ne){return P.call(le,Ne,Ce++)}),fe}function ie(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(le){(C._status===0||C._status===-1)&&(C._status=1,C._result=le)},function(le){(C._status===0||C._status===-1)&&(C._status=2,C._result=le)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var Se=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},Te={map:G,forEach:function(C,P,le){G(C,function(){P.apply(this,arguments)},le)},count:function(C){var P=0;return G(C,function(){P++}),P},toArray:function(C){return G(C,function(P){return P})||[]},only:function(C){if(!ce(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Be.Activity=v,Be.Children=Te,Be.Component=E,Be.Fragment=r,Be.Profiler=s,Be.PureComponent=w,Be.StrictMode=i,Be.Suspense=h,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,Be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Z.H.useMemoCache(C)}},Be.cache=function(C){return function(){return C.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(C,P,le){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var fe=S({},C.props),Ce=C.key;if(P!=null)for(Ne in P.key!==void 0&&(Ce=""+P.key),P)!ee.call(P,Ne)||Ne==="key"||Ne==="__self"||Ne==="__source"||Ne==="ref"&&P.ref===void 0||(fe[Ne]=P[Ne]);var Ne=arguments.length-2;if(Ne===1)fe.children=le;else if(1<Ne){for(var Ge=Array(Ne),Co=0;Co<Ne;Co++)Ge[Co]=arguments[Co+2];fe.children=Ge}return se(C.type,Ce,fe)},Be.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},Be.createElement=function(C,P,le){var fe,Ce={},Ne=null;if(P!=null)for(fe in P.key!==void 0&&(Ne=""+P.key),P)ee.call(P,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(Ce[fe]=P[fe]);var Ge=arguments.length-2;if(Ge===1)Ce.children=le;else if(1<Ge){for(var Co=Array(Ge),_o=0;_o<Ge;_o++)Co[_o]=arguments[_o+2];Ce.children=Co}if(C&&C.defaultProps)for(fe in Ge=C.defaultProps,Ge)Ce[fe]===void 0&&(Ce[fe]=Ge[fe]);return se(C,Ne,Ce)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(C){return{$$typeof:m,render:C}},Be.isValidElement=ce,Be.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ie}},Be.memo=function(C,P){return{$$typeof:p,type:C,compare:P===void 0?null:P}},Be.startTransition=function(C){var P=Z.T,le={};Z.T=le;try{var fe=C(),Ce=Z.S;Ce!==null&&Ce(le,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(H,Se)}catch(Ne){Se(Ne)}finally{P!==null&&le.types!==null&&(P.types=le.types),Z.T=P}},Be.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},Be.use=function(C){return Z.H.use(C)},Be.useActionState=function(C,P,le){return Z.H.useActionState(C,P,le)},Be.useCallback=function(C,P){return Z.H.useCallback(C,P)},Be.useContext=function(C){return Z.H.useContext(C)},Be.useDebugValue=function(){},Be.useDeferredValue=function(C,P){return Z.H.useDeferredValue(C,P)},Be.useEffect=function(C,P){return Z.H.useEffect(C,P)},Be.useEffectEvent=function(C){return Z.H.useEffectEvent(C)},Be.useId=function(){return Z.H.useId()},Be.useImperativeHandle=function(C,P,le){return Z.H.useImperativeHandle(C,P,le)},Be.useInsertionEffect=function(C,P){return Z.H.useInsertionEffect(C,P)},Be.useLayoutEffect=function(C,P){return Z.H.useLayoutEffect(C,P)},Be.useMemo=function(C,P){return Z.H.useMemo(C,P)},Be.useOptimistic=function(C,P){return Z.H.useOptimistic(C,P)},Be.useReducer=function(C,P,le){return Z.H.useReducer(C,P,le)},Be.useRef=function(C){return Z.H.useRef(C)},Be.useState=function(C){return Z.H.useState(C)},Be.useSyncExternalStore=function(C,P,le){return Z.H.useSyncExternalStore(C,P,le)},Be.useTransition=function(){return Z.H.useTransition()},Be.version="19.2.4",Be}var qv;function em(){return qv||(qv=1,Af.exports=Rz()),Af.exports}var j=em();const ae=$z(j),Dz=e=>e.toLowerCase().split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),yx=e=>e.replace(/([A-Z])/g,n=>`-${n[0].toLowerCase()}`),Mz=(e,n,r={})=>{if(e instanceof Element){const i=Iz(e.classList,n,r);i!==""&&(e.className=i),Object.keys(n).forEach(s=>{if(!(s==="children"||s==="style"||s==="ref"||s==="class"||s==="className"||s==="forwardedRef"))if(s.indexOf("on")===0&&s[2]===s[2].toUpperCase()){const d=s.substring(2),u=d[0].toLowerCase()+d.substring(1);wx(u)||Hz(e,u,n[s])}else e[s]=n[s],typeof n[s]==="string"&&e.setAttribute(yx(s),n[s])})}},Iz=(e,n,r)=>{const i=n.className||n.class,s=r.className||r.class,d=Cf(e),u=Cf(i?i.split(" "):[]),m=Cf(s?s.split(" "):[]),h=[];return d.forEach(p=>{u.has(p)?(h.push(p),u.delete(p)):m.has(p)||h.push(p)}),u.forEach(p=>h.push(p)),h.join(" ")},Uz=e=>{switch(e){case"doubleclick":return"dblclick"}return e};const wx=e=>{if(typeof document>"u")return!0;{const n="on"+Uz(e);let r=n in document;if(!r){const i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return r}},Hz=(e,n,r)=>{const i=e.__events||(e.__events={}),s=i[n];s&&e.removeEventListener(n,s),e.addEventListener(n,i[n]=function(u){r&&r.call(this,u)})},Cf=e=>{const n=new Map;return e.forEach(r=>n.set(r,r)),n};let db;const Fz=e=>{db=e},Kz=(e,n)=>{typeof e=="function"?e(n):e!=null&&(e.current=n)},Vz=(...e)=>n=>{e.forEach(r=>{Kz(r,n)})},qz=(e,n)=>{const r=(i,s)=>ae.createElement(e,{...i,forwardedRef:s});return r.displayName=n,ae.forwardRef(r)},Ee=(e,n,r,i)=>{const s=Dz(e),d=class extends ae.Component{componentEl;setComponentElRef=u=>{this.componentEl=u};constructor(u){super(u)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){Mz(this.componentEl,this.props,u)}render(){const{children:u,forwardedRef:m,style:h,className:p,ref:g,...v}=this.props,z={...Object.keys(v).reduce((S,O)=>{const E=v[O];if(O.indexOf("on")===0&&O[2]===O[2].toUpperCase()){const x=O.substring(2).toLowerCase();typeof document<"u"&&wx(x)&&(S[O]=E)}else{const x=typeof E;(x==="string"||x==="boolean"||x==="number")&&(S[yx(O)]=E)}return S},{}),ref:Vz(m,this.setComponentElRef),style:h},N=typeof db=="function"?db(e):e;return j.createElement(N,z,u)}static get displayName(){return s}};return qz(d,s)},Di=Ee("kol-abbr"),rn=Ee("kol-accordion"),gn=Ee("kol-alert"),ps=Ee("kol-avatar"),wo=Ee("kol-badge"),js=Ee("kol-breadcrumb"),W=Ee("kol-button"),Pe=Ee("kol-button-link"),Le=Ee("kol-card"),_n=Ee("kol-combobox"),rr=Ee("kol-details"),om=Ee("kol-drawer"),An=Ee("kol-form"),be=Ee("kol-heading"),pt=Ee("kol-icon"),Zz=Ee("kol-image"),ro=Ee("kol-input-checkbox"),Go=Ee("kol-input-color"),He=Ee("kol-input-date"),Yo=Ee("kol-input-email"),Ro=Ee("kol-input-file"),So=Ee("kol-input-number"),Eo=Ee("kol-input-password"),Lo=Ee("kol-input-radio"),en=Ee("kol-input-range"),Oe=Ee("kol-input-text"),Ss=Ee("kol-kolibri"),_e=Ee("kol-link"),Xe=Ee("kol-link-button"),Zv=Ee("kol-modal"),wl=Ee("kol-nav"),wi=Ee("kol-pagination"),ub=Ee("kol-popover-button"),nr=Ee("kol-progress"),zx=Ee("kol-quote"),Jo=Ee("kol-select"),bn=Ee("kol-single-select"),Pz=Ee("kol-skip-nav"),Ws=Ee("kol-spin"),_l=Ee("kol-split-button"),mo=Ee("kol-table-stateful"),Sl=Ee("kol-table-stateless"),cr=Ee("kol-tabs"),Qe=Ee("kol-textarea"),ga=Ee("kol-toolbar"),jx=Ee("kol-tree"),Qo=Ee("kol-tree-item"),Qs=Ee("kol-version");function Fr(e){const n=document.createElement("div");return n.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(n),n}var Ef={exports:{}},zi={},Lf={exports:{}},Of={};var Pv;function Gz(){return Pv||(Pv=1,(function(e){function n(M,G){var ie=M.length;M.push(G);e:for(;0<ie;){var Se=ie-1>>>1,Te=M[Se];if(0<s(Te,G))M[Se]=G,M[ie]=Te,ie=Se;else break e}}function r(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var G=M[0],ie=M.pop();if(ie!==G){M[0]=ie;e:for(var Se=0,Te=M.length,C=Te>>>1;Se<C;){var P=2*(Se+1)-1,le=M[P],fe=P+1,Ce=M[fe];if(0>s(le,ie))fe<Te&&0>s(Ce,le)?(M[Se]=Ce,M[fe]=ie,Se=fe):(M[Se]=le,M[P]=ie,Se=P);else if(fe<Te&&0>s(Ce,ie))M[Se]=Ce,M[fe]=ie,Se=fe;else break e}}return G}function s(M,G){var ie=M.sortIndex-G.sortIndex;return ie!==0?ie:M.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var h=[],p=[],g=1,v=null,_=3,z=!1,N=!1,S=!1,O=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function $(M){for(var G=r(p);G!==null;){if(G.callback===null)i(p);else if(G.startTime<=M)i(p),G.sortIndex=G.expirationTime,n(h,G);else break;G=r(p)}}function D(M){if(S=!1,$(M),!N)if(r(h)!==null)N=!0,H||(H=!0,ne());else{var G=r(p);G!==null&&Fe(D,G.startTime-M)}}var H=!1,Z=-1,ee=5,se=-1;function $e(){return O?!0:!(e.unstable_now()-se<ee)}function ce(){if(O=!1,H){var M=e.unstable_now();se=M;var G=!0;try{e:{N=!1,S&&(S=!1,x(Z),Z=-1),z=!0;var ie=_;try{o:{for($(M),v=r(h);v!==null&&!(v.expirationTime>M&&$e());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,_=v.priorityLevel;var Te=Se(v.expirationTime<=M);if(M=e.unstable_now(),typeof Te=="function"){v.callback=Te,$(M),G=!0;break o}v===r(h)&&i(h),$(M)}else i(h);v=r(h)}if(v!==null)G=!0;else{var C=r(p);C!==null&&Fe(D,C.startTime-M),G=!1}}break e}finally{v=null,_=ie,z=!1}G=void 0}}finally{G?ne():H=!1}}}var ne;if(typeof w=="function")ne=function(){w(ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,De=we.port2;we.port1.onmessage=ce,ne=function(){De.postMessage(null)}}else ne=function(){E(ce,0)};function Fe(M,G){Z=E(function(){M(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(M){switch(_){case 1:case 2:case 3:var G=3;break;default:G=_}var ie=_;_=G;try{return M()}finally{_=ie}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=_;_=M;try{return G()}finally{_=ie}},e.unstable_scheduleCallback=function(M,G,ie){var Se=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Se+ie:Se):ie=Se,M){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ie+Te,M={id:g++,callback:G,priorityLevel:M,startTime:ie,expirationTime:Te,sortIndex:-1},ie>Se?(M.sortIndex=ie,n(p,M),r(h)===null&&M===r(p)&&(S?(x(Z),Z=-1):S=!0,Fe(D,ie-Se))):(M.sortIndex=Te,n(h,M),N||z||(N=!0,H||(H=!0,ne()))),M},e.unstable_shouldYield=$e,e.unstable_wrapCallback=function(M){var G=_;return function(){var ie=_;_=G;try{return M.apply(this,arguments)}finally{_=ie}}}})(Of)),Of}var Gv;function Yz(){return Gv||(Gv=1,Lf.exports=Gz()),Lf.exports}var $f={exports:{}},kn={};var Yv;function Jz(){if(Yv)return kn;Yv=1;var e=em();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function d(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,kn.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return d(h,p,null,g)},kn.flushSync=function(h){var p=u.T,g=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=p,i.p=g,i.d.f()}},kn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},kn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},kn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:z}):g==="script"&&i.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},kn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);i.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},kn.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=m(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},kn.requestFormReset=function(h){i.d.r(h)},kn.unstable_batchedUpdates=function(h,p){return h(p)},kn.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},kn.useFormStatus=function(){return u.H.useHostTransitionStatus()},kn.version="19.2.4",kn}var Jv;function Xz(){if(Jv)return $f.exports;Jv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),$f.exports=Jz(),$f.exports}var Xv;function Wz(){if(Xv)return zi;Xv=1;var e=Yz(),n=em(),r=Xz();function i(o){var t="https://react.dev/errors/"+o;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function d(o){var t=o,l=o;if(o.alternate)for(;t.return;)t=t.return;else{o=t;do t=o,(t.flags&4098)!==0&&(l=t.return),o=t.return;while(o)}return t.tag===3?l:null}function u(o){if(o.tag===13){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function m(o){if(o.tag===31){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function h(o){if(d(o)!==o)throw Error(i(188))}function p(o){var t=o.alternate;if(!t){if(t=d(o),t===null)throw Error(i(188));return t!==o?null:o}for(var l=o,c=t;;){var f=l.return;if(f===null)break;var b=f.alternate;if(b===null){if(c=f.return,c!==null){l=c;continue}break}if(f.child===b.child){for(b=f.child;b;){if(b===l)return h(f),o;if(b===c)return h(f),t;b=b.sibling}throw Error(i(188))}if(l.return!==c.return)l=f,c=b;else{for(var k=!1,y=f.child;y;){if(y===l){k=!0,l=f,c=b;break}if(y===c){k=!0,c=f,l=b;break}y=y.sibling}if(!k){for(y=b.child;y;){if(y===l){k=!0,l=b,c=f;break}if(y===c){k=!0,c=b,l=f;break}y=y.sibling}if(!k)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?o:t}function g(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o;for(o=o.child;o!==null;){if(t=g(o),t!==null)return t;o=o.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),$e=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ne(o){return o===null||typeof o!="object"?null:(o=ce&&o[ce]||o["@@iterator"],typeof o=="function"?o:null)}var we=Symbol.for("react.client.reference");function De(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===we?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case E:return"Profiler";case O:return"StrictMode";case D:return"Suspense";case H:return"SuspenseList";case se:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case N:return"Portal";case w:return o.displayName||"Context";case x:return(o._context.displayName||"Context")+".Consumer";case $:var t=o.render;return o=o.displayName,o||(o=t.displayName||t.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Z:return t=o.displayName||null,t!==null?t:De(o.type)||"Memo";case ee:t=o._payload,o=o._init;try{return De(o(t))}catch{}}return null}var Fe=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},Se=[],Te=-1;function C(o){return{current:o}}function P(o){0>Te||(o.current=Se[Te],Se[Te]=null,Te--)}function le(o,t){Te++,Se[Te]=o.current,o.current=t}var fe=C(null),Ce=C(null),Ne=C(null),Ge=C(null);function Co(o,t){switch(le(Ne,t),le(Ce,o),le(fe,null),t.nodeType){case 9:case 11:o=(o=t.documentElement)&&(o=o.namespaceURI)?uv(o):0;break;default:if(o=t.tagName,t=t.namespaceURI)t=uv(t),o=fv(t,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}P(fe),le(fe,o)}function _o(){P(fe),P(Ce),P(Ne)}function vt(o){o.memoizedState!==null&&le(Ge,o);var t=fe.current,l=fv(t,o.type);t!==l&&(le(Ce,o),le(fe,l))}function St(o){Ce.current===o&&(P(fe),P(Ce)),Ge.current===o&&(P(Ge),vi._currentValue=ie)}var Pr,Gr;function gt(o){if(Pr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Pr=t&&t[1]||"",Gr=-1<l.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+Pr+o+Gr}var Nt=!1;function fr(o,t){if(!o||Nt)return"";Nt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var K=q}Reflect.construct(o,[],Q)}else{try{Q.call()}catch(q){K=q}o.call(Q.prototype)}}else{try{throw Error()}catch(q){K=q}(Q=o())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&K&&typeof q.stack=="string")return[q.stack,K.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=c.DetermineComponentFrameRoot(),k=b[0],y=b[1];if(k&&y){var A=k.split(`
|
|
5
5
|
`),U=y.split(`
|
|
6
6
|
`);for(f=c=0;c<A.length&&!A[c].includes("DetermineComponentFrameRoot");)c++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(c===A.length||f===U.length)for(c=A.length-1,f=U.length-1;1<=c&&0<=f&&A[c]!==U[f];)f--;for(;1<=c&&0<=f;c--,f--)if(A[c]!==U[f]){if(c!==1||f!==1)do if(c--,f--,0>f||A[c]!==U[f]){var Y=`
|
|
7
7
|
`+A[c].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=c&&0<=f);break}}}finally{Nt=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?gt(l):""}function he(o,t){switch(o.tag){case 26:case 27:case 5:return gt(o.type);case 16:return gt("Lazy");case 13:return o.child!==t&&t!==null?gt("Suspense Fallback"):gt("Suspense");case 19:return gt("SuspenseList");case 0:case 15:return fr(o.type,!1);case 11:return fr(o.type.render,!1);case 1:return fr(o.type,!0);case 31:return gt("Activity");default:return""}}function ke(o){try{var t="",l=null;do t+=he(o,l),l=o,o=o.return;while(o);return t}catch(c){return`
|
|
8
8
|
Error generating stack: `+c.message+`
|
|
9
|
-
`+c.stack}}var Re=Object.prototype.hasOwnProperty,lo=e.unstable_scheduleCallback,T=e.unstable_cancelCallback,B=e.unstable_shouldYield,F=e.unstable_requestPaint,te=e.unstable_now,re=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ve=e.unstable_UserBlockingPriority,eo=e.unstable_NormalPriority,io=e.unstable_LowPriority,on=e.unstable_IdlePriority,Bt=e.log,Tt=e.unstable_setDisableYieldValue,Yr=null,an=null;function at(o){if(typeof Bt=="function"&&Tt(o),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Yr,o)}catch{}}var wn=Math.clz32?Math.clz32:Wi,Xi=Math.log,fd=Math.LN2;function Wi(o){return o>>>=0,o===0?32:31-(Xi(o)/fd|0)|0}var Qi=256,ec=262144,oc=4194304;function Jr(o){var t=o&42;if(t!==0)return t;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function nc(o,t,l){var c=o.pendingLanes;if(c===0)return 0;var f=0,b=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var y=c&134217727;return y!==0?(c=y&~b,c!==0?f=Jr(c):(k&=y,k!==0?f=Jr(k):l||(l=y&~o,l!==0&&(f=Jr(l))))):(y=c&~b,y!==0?f=Jr(y):k!==0?f=Jr(k):l||(l=c&~o,l!==0&&(f=Jr(l)))),f===0?0:t!==0&&t!==f&&(t&b)===0&&(b=f&-f,l=t&-t,b>=l||b===32&&(l&4194048)!==0)?t:f}function El(o,t){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&t)===0}function _w(o,t){switch(o){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qm(){var o=oc;return oc<<=1,(oc&62914560)===0&&(oc=4194304),o}function bd(o){for(var t=[],l=0;31>l;l++)t.push(o);return t}function Ll(o,t){o.pendingLanes|=t,t!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function xw(o,t,l,c,f,b){var k=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var y=o.entanglements,A=o.expirationTimes,U=o.hiddenUpdates;for(l=k&~l;0<l;){var Y=31-wn(l),Q=1<<Y;y[Y]=0,A[Y]=-1;var K=U[Y];if(K!==null)for(U[Y]=null,Y=0;Y<K.length;Y++){var q=K[Y];q!==null&&(q.lane&=-536870913)}l&=~Q}c!==0&&Zm(o,c,0),b!==0&&f===0&&o.tag!==0&&(o.suspendedLanes|=b&~(k&~t))}function Zm(o,t,l){o.pendingLanes|=t,o.suspendedLanes&=~t;var c=31-wn(t);o.entangledLanes|=t,o.entanglements[c]=o.entanglements[c]|1073741824|l&261930}function Pm(o,t){var l=o.entangledLanes|=t;for(o=o.entanglements;l;){var c=31-wn(l),f=1<<c;f&t|o[c]&t&&(o[c]|=t),l&=~f}}function Gm(o,t){var l=t&-t;return l=(l&42)!==0?1:md(l),(l&(o.suspendedLanes|t))!==0?0:l}function md(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function hd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Ym(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Nv(o.type))}function Jm(o,t){var l=G.p;try{return G.p=o,t()}finally{G.p=l}}var br=Math.random().toString(36).slice(2),ln="__reactFiber$"+br,En="__reactProps$"+br,Aa="__reactContainer$"+br,pd="__reactEvents$"+br,yw="__reactListeners$"+br,ww="__reactHandles$"+br,Xm="__reactResources$"+br,Ol="__reactMarker$"+br;function kd(o){delete o[ln],delete o[En],delete o[pd],delete o[yw],delete o[ww]}function Ca(o){var t=o[ln];if(t)return t;for(var l=o.parentNode;l;){if(t=l[Aa]||l[ln]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(o=vv(o);o!==null;){if(l=o[ln])return l;o=vv(o)}return t}o=l,l=o.parentNode}return null}function Ea(o){if(o=o[ln]||o[Aa]){var t=o.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return o}return null}function $l(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o.stateNode;throw Error(i(33))}function La(o){var t=o[Xm];return t||(t=o[Xm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nn(o){o[Ol]=!0}var Wm=new Set,Qm={};function Xr(o,t){Oa(o,t),Oa(o+"Capture",t)}function Oa(o,t){for(Qm[o]=t,o=0;o<t.length;o++)Wm.add(t[o])}var zw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eh={},oh={};function Sw(o){return Re.call(oh,o)?!0:Re.call(eh,o)?!1:zw.test(o)?oh[o]=!0:(eh[o]=!0,!1)}function tc(o,t,l){if(Sw(t))if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(t);return;case"boolean":var c=t.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){o.removeAttribute(t);return}}o.setAttribute(t,""+l)}}function rc(o,t,l){if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(t);return}o.setAttribute(t,""+l)}}function Rt(o,t,l,c){if(c===null)o.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(t,l,""+c)}}function lt(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function nh(o){var t=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jw(o,t,l){var c=Object.getOwnPropertyDescriptor(o.constructor.prototype,t);if(!o.hasOwnProperty(t)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,b=c.set;return Object.defineProperty(o,t,{configurable:!0,get:function(){return f.call(this)},set:function(k){l=""+k,b.call(this,k)}}),Object.defineProperty(o,t,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(k){l=""+k},stopTracking:function(){o._valueTracker=null,delete o[t]}}}}function vd(o){if(!o._valueTracker){var t=nh(o)?"checked":"value";o._valueTracker=jw(o,t,""+o[t])}}function th(o){if(!o)return!1;var t=o._valueTracker;if(!t)return!0;var l=t.getValue(),c="";return o&&(c=nh(o)?o.checked?"true":"false":o.value),o=c,o!==l?(t.setValue(o),!0):!1}function ac(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Tw=/[\n"\\]/g;function it(o){return o.replace(Tw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gd(o,t,l,c,f,b,k,y){o.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?o.type=k:o.removeAttribute("type"),t!=null?k==="number"?(t===0&&o.value===""||o.value!=t)&&(o.value=""+lt(t)):o.value!==""+lt(t)&&(o.value=""+lt(t)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),t!=null?_d(o,k,lt(t)):l!=null?_d(o,k,lt(l)):c!=null&&o.removeAttribute("value"),f==null&&b!=null&&(o.defaultChecked=!!b),f!=null&&(o.checked=f&&typeof f!="function"&&typeof f!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?o.name=""+lt(y):o.removeAttribute("name")}function rh(o,t,l,c,f,b,k,y){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),t!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||t!=null)){vd(o);return}l=l!=null?""+lt(l):"",t=t!=null?""+lt(t):l,y||t===o.value||(o.value=t),o.defaultValue=t}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,o.checked=y?o.checked:!!c,o.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),vd(o)}function _d(o,t,l){t==="number"&&ac(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function $a(o,t,l,c){if(o=o.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<o.length;l++)f=t.hasOwnProperty("$"+o[l].value),o[l].selected!==f&&(o[l].selected=f),f&&c&&(o[l].defaultSelected=!0)}else{for(l=""+lt(l),t=null,f=0;f<o.length;f++){if(o[f].value===l){o[f].selected=!0,c&&(o[f].defaultSelected=!0);return}t!==null||o[f].disabled||(t=o[f])}t!==null&&(t.selected=!0)}}function ah(o,t,l){if(t!=null&&(t=""+lt(t),t!==o.value&&(o.value=t),l==null)){o.defaultValue!==t&&(o.defaultValue=t);return}o.defaultValue=l!=null?""+lt(l):""}function lh(o,t,l,c){if(t==null){if(c!=null){if(l!=null)throw Error(i(92));if(Fe(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),t=l}l=lt(t),o.defaultValue=l,c=o.textContent,c===l&&c!==""&&c!==null&&(o.value=c),vd(o)}function Na(o,t){if(t){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=t;return}}o.textContent=t}var Aw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ih(o,t,l){var c=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?o.setProperty(t,""):t==="float"?o.cssFloat="":o[t]="":c?o.setProperty(t,l):typeof l!="number"||l===0||Aw.has(t)?t==="float"?o.cssFloat=l:o[t]=(""+l).trim():o[t]=l+"px"}function ch(o,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(o=o.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||t!=null&&t.hasOwnProperty(c)||(c.indexOf("--")===0?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="");for(var f in t)c=t[f],t.hasOwnProperty(f)&&l[f]!==c&&ih(o,f,c)}else for(var b in t)t.hasOwnProperty(b)&&ih(o,b,t[b])}function xd(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ew=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lc(o){return Ew.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Dt(){}var yd=null;function wd(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ba=null,Ra=null;function sh(o){var t=Ea(o);if(t&&(o=t.stateNode)){var l=o[En]||null;e:switch(o=t.stateNode,t.type){case"input":if(gd(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+it(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var c=l[t];if(c!==o&&c.form===o.form){var f=c[En]||null;if(!f)throw Error(i(90));gd(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)c=l[t],c.form===o.form&&th(c)}break e;case"textarea":ah(o,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$a(o,!!l.multiple,t,!1)}}}var zd=!1;function dh(o,t,l){if(zd)return o(t,l);zd=!0;try{var c=o(t);return c}finally{if(zd=!1,(Ba!==null||Ra!==null)&&(Pc(),Ba&&(t=Ba,o=Ra,Ra=Ba=null,sh(t),o)))for(t=0;t<o.length;t++)sh(o[t])}}function Nl(o,t){var l=o.stateNode;if(l===null)return null;var c=l[En]||null;if(c===null)return null;l=c[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(o=o.type,c=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!c;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sd=!1;if(Mt)try{var Bl={};Object.defineProperty(Bl,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",Bl,Bl),window.removeEventListener("test",Bl,Bl)}catch{Sd=!1}var mr=null,jd=null,ic=null;function uh(){if(ic)return ic;var o,t=jd,l=t.length,c,f="value"in mr?mr.value:mr.textContent,b=f.length;for(o=0;o<l&&t[o]===f[o];o++);var k=l-o;for(c=1;c<=k&&t[l-c]===f[b-c];c++);return ic=f.slice(o,1<c?1-c:void 0)}function cc(o){var t=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&t===13&&(o=13)):o=t,o===10&&(o=13),32<=o||o===13?o:0}function sc(){return!0}function fh(){return!1}function Ln(o){function t(l,c,f,b,k){this._reactName=l,this._targetInst=f,this.type=c,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var y in o)o.hasOwnProperty(y)&&(l=o[y],this[y]=l?l(b):b[y]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?sc:fh,this.isPropagationStopped=fh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=sc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=sc)},persist:function(){},isPersistent:sc}),t}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dc=Ln(Wr),Rl=v({},Wr,{view:0,detail:0}),Lw=Ln(Rl),Td,Ad,Dl,uc=v({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ed,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Dl&&(Dl&&o.type==="mousemove"?(Td=o.screenX-Dl.screenX,Ad=o.screenY-Dl.screenY):Ad=Td=0,Dl=o),Td)},movementY:function(o){return"movementY"in o?o.movementY:Ad}}),bh=Ln(uc),Ow=v({},uc,{dataTransfer:0}),$w=Ln(Ow),Nw=v({},Rl,{relatedTarget:0}),Cd=Ln(Nw),Bw=v({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),Rw=Ln(Bw),Dw=v({},Wr,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Mw=Ln(Dw),Iw=v({},Wr,{data:0}),mh=Ln(Iw),Uw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Fw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kw(o){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(o):(o=Fw[o])?!!t[o]:!1}function Ed(){return Kw}var Vw=v({},Rl,{key:function(o){if(o.key){var t=Uw[o.key]||o.key;if(t!=="Unidentified")return t}return o.type==="keypress"?(o=cc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Hw[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ed,charCode:function(o){return o.type==="keypress"?cc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?cc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),qw=Ln(Vw),Zw=v({},uc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hh=Ln(Zw),Pw=v({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ed}),Gw=Ln(Pw),Yw=v({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jw=Ln(Yw),Xw=v({},uc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Ww=Ln(Xw),Qw=v({},Wr,{newState:0,oldState:0}),e2=Ln(Qw),o2=[9,13,27,32],Ld=Mt&&"CompositionEvent"in window,Ml=null;Mt&&"documentMode"in document&&(Ml=document.documentMode);var n2=Mt&&"TextEvent"in window&&!Ml,ph=Mt&&(!Ld||Ml&&8<Ml&&11>=Ml),kh=" ",vh=!1;function gh(o,t){switch(o){case"keyup":return o2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Da=!1;function t2(o,t){switch(o){case"compositionend":return _h(t);case"keypress":return t.which!==32?null:(vh=!0,kh);case"textInput":return o=t.data,o===kh&&vh?null:o;default:return null}}function r2(o,t){if(Da)return o==="compositionend"||!Ld&&gh(o,t)?(o=uh(),ic=jd=mr=null,Da=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ph&&t.locale!=="ko"?null:t.data;default:return null}}var a2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xh(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t==="input"?!!a2[o.type]:t==="textarea"}function yh(o,t,l,c){Ba?Ra?Ra.push(c):Ra=[c]:Ba=c,t=es(t,"onChange"),0<t.length&&(l=new dc("onChange","change",null,l,c),o.push({event:l,listeners:t}))}var Il=null,Ul=null;function l2(o){rv(o,0)}function fc(o){var t=$l(o);if(th(t))return o}function wh(o,t){if(o==="change")return t}var zh=!1;if(Mt){var Od;if(Mt){var $d="oninput"in document;if(!$d){var Sh=document.createElement("div");Sh.setAttribute("oninput","return;"),$d=typeof Sh.oninput=="function"}Od=$d}else Od=!1;zh=Od&&(!document.documentMode||9<document.documentMode)}function jh(){Il&&(Il.detachEvent("onpropertychange",Th),Ul=Il=null)}function Th(o){if(o.propertyName==="value"&&fc(Ul)){var t=[];yh(t,Ul,o,wd(o)),dh(l2,t)}}function i2(o,t,l){o==="focusin"?(jh(),Il=t,Ul=l,Il.attachEvent("onpropertychange",Th)):o==="focusout"&&jh()}function c2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return fc(Ul)}function s2(o,t){if(o==="click")return fc(t)}function d2(o,t){if(o==="input"||o==="change")return fc(t)}function u2(o,t){return o===t&&(o!==0||1/o===1/t)||o!==o&&t!==t}var Vn=typeof Object.is=="function"?Object.is:u2;function Hl(o,t){if(Vn(o,t))return!0;if(typeof o!="object"||o===null||typeof t!="object"||t===null)return!1;var l=Object.keys(o),c=Object.keys(t);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var f=l[c];if(!Re.call(t,f)||!Vn(o[f],t[f]))return!1}return!0}function Ah(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Ch(o,t){var l=Ah(o);o=0;for(var c;l;){if(l.nodeType===3){if(c=o+l.textContent.length,o<=t&&c>=t)return{node:l,offset:t-o};o=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ah(l)}}function Eh(o,t){return o&&t?o===t?!0:o&&o.nodeType===3?!1:t&&t.nodeType===3?Eh(o,t.parentNode):"contains"in o?o.contains(t):o.compareDocumentPosition?!!(o.compareDocumentPosition(t)&16):!1:!1}function Lh(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var t=ac(o.document);t instanceof o.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)o=t.contentWindow;else break;t=ac(o.document)}return t}function Nd(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t&&(t==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||t==="textarea"||o.contentEditable==="true")}var f2=Mt&&"documentMode"in document&&11>=document.documentMode,Ma=null,Bd=null,Fl=null,Rd=!1;function Oh(o,t,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Rd||Ma==null||Ma!==ac(c)||(c=Ma,"selectionStart"in c&&Nd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Fl&&Hl(Fl,c)||(Fl=c,c=es(Bd,"onSelect"),0<c.length&&(t=new dc("onSelect","select",null,t,l),o.push({event:t,listeners:c}),t.target=Ma)))}function Qr(o,t){var l={};return l[o.toLowerCase()]=t.toLowerCase(),l["Webkit"+o]="webkit"+t,l["Moz"+o]="moz"+t,l}var Ia={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionrun:Qr("Transition","TransitionRun"),transitionstart:Qr("Transition","TransitionStart"),transitioncancel:Qr("Transition","TransitionCancel"),transitionend:Qr("Transition","TransitionEnd")},Dd={},$h={};Mt&&($h=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function ea(o){if(Dd[o])return Dd[o];if(!Ia[o])return o;var t=Ia[o],l;for(l in t)if(t.hasOwnProperty(l)&&l in $h)return Dd[o]=t[l];return o}var Nh=ea("animationend"),Bh=ea("animationiteration"),Rh=ea("animationstart"),b2=ea("transitionrun"),m2=ea("transitionstart"),h2=ea("transitioncancel"),Dh=ea("transitionend"),Mh=new Map,Md="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Md.push("scrollEnd");function _t(o,t){Mh.set(o,t),Xr(t,[o])}var bc=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ct=[],Ua=0,Id=0;function mc(){for(var o=Ua,t=Id=Ua=0;t<o;){var l=ct[t];ct[t++]=null;var c=ct[t];ct[t++]=null;var f=ct[t];ct[t++]=null;var b=ct[t];if(ct[t++]=null,c!==null&&f!==null){var k=c.pending;k===null?f.next=f:(f.next=k.next,k.next=f),c.pending=f}b!==0&&Ih(l,f,b)}}function hc(o,t,l,c){ct[Ua++]=o,ct[Ua++]=t,ct[Ua++]=l,ct[Ua++]=c,Id|=c,o.lanes|=c,o=o.alternate,o!==null&&(o.lanes|=c)}function Ud(o,t,l,c){return hc(o,t,l,c),pc(o)}function oa(o,t){return hc(o,null,null,t),pc(o)}function Ih(o,t,l){o.lanes|=l;var c=o.alternate;c!==null&&(c.lanes|=l);for(var f=!1,b=o.return;b!==null;)b.childLanes|=l,c=b.alternate,c!==null&&(c.childLanes|=l),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(f=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,f&&t!==null&&(f=31-wn(l),o=b.hiddenUpdates,c=o[f],c===null?o[f]=[t]:c.push(t),t.lane=l|536870912),b):null}function pc(o){if(50<di)throw di=0,Yu=null,Error(i(185));for(var t=o.return;t!==null;)o=t,t=o.return;return o.tag===3?o.stateNode:null}var Ha={};function p2(o,t,l,c){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qn(o,t,l,c){return new p2(o,t,l,c)}function Hd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function It(o,t){var l=o.alternate;return l===null?(l=qn(o.tag,t,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=t,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,t=o.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function Uh(o,t){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,t=l.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o}function kc(o,t,l,c,f,b){var k=0;if(c=o,typeof o=="function")Hd(o)&&(k=1);else if(typeof o=="string")k=xz(o,l,fe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case se:return o=qn(31,l,t,f),o.elementType=se,o.lanes=b,o;case j:return na(l.children,f,b,t);case O:k=8,f|=24;break;case E:return o=qn(12,l,t,f|2),o.elementType=E,o.lanes=b,o;case D:return o=qn(13,l,t,f),o.elementType=D,o.lanes=b,o;case H:return o=qn(19,l,t,f),o.elementType=H,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:k=10;break e;case x:k=9;break e;case $:k=11;break e;case Z:k=14;break e;case ee:k=16,c=null;break e}k=29,l=Error(i(130,o===null?"null":typeof o,"")),c=null}return t=qn(k,l,t,f),t.elementType=o,t.type=c,t.lanes=b,t}function na(o,t,l,c){return o=qn(7,o,c,t),o.lanes=l,o}function Fd(o,t,l){return o=qn(6,o,null,t),o.lanes=l,o}function Hh(o){var t=qn(18,null,null,0);return t.stateNode=o,t}function Kd(o,t,l){return t=qn(4,o.children!==null?o.children:[],o.key,t),t.lanes=l,t.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},t}var Fh=new WeakMap;function st(o,t){if(typeof o=="object"&&o!==null){var l=Fh.get(o);return l!==void 0?l:(t={value:o,source:t,stack:ke(t)},Fh.set(o,t),t)}return{value:o,source:t,stack:ke(t)}}var Fa=[],Ka=0,vc=null,Kl=0,dt=[],ut=0,hr=null,At=1,Ct="";function Ut(o,t){Fa[Ka++]=Kl,Fa[Ka++]=vc,vc=o,Kl=t}function Kh(o,t,l){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,hr=o;var c=At;o=Ct;var f=32-wn(c)-1;c&=~(1<<f),l+=1;var b=32-wn(t)+f;if(30<b){var k=f-f%5;b=(c&(1<<k)-1).toString(32),c>>=k,f-=k,At=1<<32-wn(t)+f|l<<f|c,Ct=b+o}else At=1<<b|l<<f|c,Ct=o}function Vd(o){o.return!==null&&(Ut(o,1),Kh(o,1,0))}function qd(o){for(;o===vc;)vc=Fa[--Ka],Fa[Ka]=null,Kl=Fa[--Ka],Fa[Ka]=null;for(;o===hr;)hr=dt[--ut],dt[ut]=null,Ct=dt[--ut],dt[ut]=null,At=dt[--ut],dt[ut]=null}function Vh(o,t){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,At=t.id,Ct=t.overflow,hr=o}var cn=null,xo=null,We=!1,pr=null,ft=!1,Zd=Error(i(519));function kr(o){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vl(st(t,o)),Zd}function qh(o){var t=o.stateNode,l=o.type,c=o.memoizedProps;switch(t[ln]=o,t[En]=c,l){case"dialog":Ze("cancel",t),Ze("close",t);break;case"iframe":case"object":case"embed":Ze("load",t);break;case"video":case"audio":for(l=0;l<fi.length;l++)Ze(fi[l],t);break;case"source":Ze("error",t);break;case"img":case"image":case"link":Ze("error",t),Ze("load",t);break;case"details":Ze("toggle",t);break;case"input":Ze("invalid",t),rh(t,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ze("invalid",t);break;case"textarea":Ze("invalid",t),lh(t,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||c.suppressHydrationWarning===!0||cv(t.textContent,l)?(c.popover!=null&&(Ze("beforetoggle",t),Ze("toggle",t)),c.onScroll!=null&&Ze("scroll",t),c.onScrollEnd!=null&&Ze("scrollend",t),c.onClick!=null&&(t.onclick=Dt),t=!0):t=!1,t||kr(o,!0)}function Zh(o){for(cn=o.return;cn;)switch(cn.tag){case 5:case 31:case 13:ft=!1;return;case 27:case 3:ft=!0;return;default:cn=cn.return}}function Va(o){if(o!==cn)return!1;if(!We)return Zh(o),We=!0,!1;var t=o.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||uf(o.type,o.memoizedProps)),l=!l),l&&xo&&kr(o),Zh(o),t===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=kv(o)}else if(t===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=kv(o)}else t===27?(t=xo,Lr(o.type)?(o=pf,pf=null,xo=o):xo=t):xo=cn?mt(o.stateNode.nextSibling):null;return!0}function ta(){xo=cn=null,We=!1}function Pd(){var o=pr;return o!==null&&(Bn===null?Bn=o:Bn.push.apply(Bn,o),pr=null),o}function Vl(o){pr===null?pr=[o]:pr.push(o)}var Gd=C(null),ra=null,Ht=null;function vr(o,t,l){le(Gd,t._currentValue),t._currentValue=l}function Ft(o){o._currentValue=Gd.current,P(Gd)}function Yd(o,t,l){for(;o!==null;){var c=o.alternate;if((o.childLanes&t)!==t?(o.childLanes|=t,c!==null&&(c.childLanes|=t)):c!==null&&(c.childLanes&t)!==t&&(c.childLanes|=t),o===l)break;o=o.return}}function Jd(o,t,l,c){var f=o.child;for(f!==null&&(f.return=o);f!==null;){var b=f.dependencies;if(b!==null){var k=f.child;b=b.firstContext;e:for(;b!==null;){var y=b;b=f;for(var A=0;A<t.length;A++)if(y.context===t[A]){b.lanes|=l,y=b.alternate,y!==null&&(y.lanes|=l),Yd(b.return,l,o),c||(k=null);break e}b=y.next}}else if(f.tag===18){if(k=f.return,k===null)throw Error(i(341));k.lanes|=l,b=k.alternate,b!==null&&(b.lanes|=l),Yd(k,l,o),k=null}else k=f.child;if(k!==null)k.return=f;else for(k=f;k!==null;){if(k===o){k=null;break}if(f=k.sibling,f!==null){f.return=k.return,k=f;break}k=k.return}f=k}}function qa(o,t,l,c){o=null;for(var f=t,b=!1;f!==null;){if(!b){if((f.flags&524288)!==0)b=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var k=f.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var y=f.type;Vn(f.pendingProps.value,k.value)||(o!==null?o.push(y):o=[y])}}else if(f===Ge.current){if(k=f.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(o!==null?o.push(ki):o=[ki])}f=f.return}o!==null&&Jd(t,o,l,c),t.flags|=262144}function gc(o){for(o=o.firstContext;o!==null;){if(!Vn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function aa(o){ra=o,Ht=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function sn(o){return Ph(ra,o)}function _c(o,t){return ra===null&&aa(o),Ph(o,t)}function Ph(o,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ht===null){if(o===null)throw Error(i(308));Ht=t,o.dependencies={lanes:0,firstContext:t},o.flags|=524288}else Ht=Ht.next=t;return l}var k2=typeof AbortController<"u"?AbortController:function(){var o=[],t=this.signal={aborted:!1,addEventListener:function(l,c){o.push(c)}};this.abort=function(){t.aborted=!0,o.forEach(function(l){return l()})}},v2=e.unstable_scheduleCallback,g2=e.unstable_NormalPriority,Fo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xd(){return{controller:new k2,data:new Map,refCount:0}}function ql(o){o.refCount--,o.refCount===0&&v2(g2,function(){o.controller.abort()})}var Zl=null,Wd=0,Za=0,Pa=null;function _2(o,t){if(Zl===null){var l=Zl=[];Wd=0,Za=of(),Pa={status:"pending",value:void 0,then:function(c){l.push(c)}}}return Wd++,t.then(Gh,Gh),t}function Gh(){if(--Wd===0&&Zl!==null){Pa!==null&&(Pa.status="fulfilled");var o=Zl;Zl=null,Za=0,Pa=null;for(var t=0;t<o.length;t++)(0,o[t])()}}function x2(o,t){var l=[],c={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return o.then(function(){c.status="fulfilled",c.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(c.status="rejected",c.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),c}var Yh=M.S;M.S=function(o,t){Ok=te(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_2(o,t),Yh!==null&&Yh(o,t)};var la=C(null);function Qd(){var o=la.current;return o!==null?o:go.pooledCache}function xc(o,t){t===null?le(la,la.current):le(la,t.pool)}function Jh(){var o=Qd();return o===null?null:{parent:Fo._currentValue,pool:o}}var Ga=Error(i(460)),eu=Error(i(474)),yc=Error(i(542)),wc={then:function(){}};function Xh(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Wh(o,t,l){switch(l=o[l],l===void 0?o.push(t):l!==t&&(t.then(Dt,Dt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,ep(o),o;default:if(typeof t.status=="string")t.then(Dt,Dt);else{if(o=go,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=t,o.status="pending",o.then(function(c){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=c}},function(c){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,ep(o),o}throw ca=t,Ga}}function ia(o){try{var t=o._init;return t(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ca=l,Ga):l}}var ca=null;function Qh(){if(ca===null)throw Error(i(459));var o=ca;return ca=null,o}function ep(o){if(o===Ga||o===yc)throw Error(i(483))}var Ya=null,Pl=0;function zc(o){var t=Pl;return Pl+=1,Ya===null&&(Ya=[]),Wh(Ya,o,t)}function Gl(o,t){t=t.props.ref,o.ref=t!==void 0?t:null}function Sc(o,t){throw t.$$typeof===_?Error(i(525)):(o=Object.prototype.toString.call(t),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)))}function op(o){function t(R,L){if(o){var I=R.deletions;I===null?(R.deletions=[L],R.flags|=16):I.push(L)}}function l(R,L){if(!o)return null;for(;L!==null;)t(R,L),L=L.sibling;return null}function c(R){for(var L=new Map;R!==null;)R.key!==null?L.set(R.key,R):L.set(R.index,R),R=R.sibling;return L}function f(R,L){return R=It(R,L),R.index=0,R.sibling=null,R}function b(R,L,I){return R.index=I,o?(I=R.alternate,I!==null?(I=I.index,I<L?(R.flags|=67108866,L):I):(R.flags|=67108866,L)):(R.flags|=1048576,L)}function k(R){return o&&R.alternate===null&&(R.flags|=67108866),R}function y(R,L,I,J){return L===null||L.tag!==6?(L=Fd(I,R.mode,J),L.return=R,L):(L=f(L,I),L.return=R,L)}function A(R,L,I,J){var ze=I.type;return ze===j?Y(R,L,I.props.children,J,I.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type)?(L=f(L,I.props),Gl(L,I),L.return=R,L):(L=kc(I.type,I.key,I.props,null,R.mode,J),Gl(L,I),L.return=R,L)}function U(R,L,I,J){return L===null||L.tag!==4||L.stateNode.containerInfo!==I.containerInfo||L.stateNode.implementation!==I.implementation?(L=Kd(I,R.mode,J),L.return=R,L):(L=f(L,I.children||[]),L.return=R,L)}function Y(R,L,I,J,ze){return L===null||L.tag!==7?(L=na(I,R.mode,J,ze),L.return=R,L):(L=f(L,I),L.return=R,L)}function Q(R,L,I){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Fd(""+L,R.mode,I),L.return=R,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case z:return I=kc(L.type,L.key,L.props,null,R.mode,I),Gl(I,L),I.return=R,I;case N:return L=Kd(L,R.mode,I),L.return=R,L;case ee:return L=ia(L),Q(R,L,I)}if(Fe(L)||ne(L))return L=na(L,R.mode,I,null),L.return=R,L;if(typeof L.then=="function")return Q(R,zc(L),I);if(L.$$typeof===w)return Q(R,_c(R,L),I);Sc(R,L)}return null}function K(R,L,I,J){var ze=L!==null?L.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return ze!==null?null:y(R,L,""+I,J);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return I.key===ze?A(R,L,I,J):null;case N:return I.key===ze?U(R,L,I,J):null;case ee:return I=ia(I),K(R,L,I,J)}if(Fe(I)||ne(I))return ze!==null?null:Y(R,L,I,J,null);if(typeof I.then=="function")return K(R,L,zc(I),J);if(I.$$typeof===w)return K(R,L,_c(R,I),J);Sc(R,I)}return null}function q(R,L,I,J,ze){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return R=R.get(I)||null,y(L,R,""+J,ze);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case z:return R=R.get(J.key===null?I:J.key)||null,A(L,R,J,ze);case N:return R=R.get(J.key===null?I:J.key)||null,U(L,R,J,ze);case ee:return J=ia(J),q(R,L,I,J,ze)}if(Fe(J)||ne(J))return R=R.get(I)||null,Y(L,R,J,ze,null);if(typeof J.then=="function")return q(R,L,I,zc(J),ze);if(J.$$typeof===w)return q(R,L,I,_c(L,J),ze);Sc(L,J)}return null}function pe(R,L,I,J){for(var ze=null,no=null,ge=L,Ie=L=0,Je=null;ge!==null&&Ie<I.length;Ie++){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var to=K(R,ge,I[Ie],J);if(to===null){ge===null&&(ge=Je);break}o&&ge&&to.alternate===null&&t(R,ge),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to,ge=Je}if(Ie===I.length)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;Ie<I.length;Ie++)ge=Q(R,I[Ie],J),ge!==null&&(L=b(ge,L,Ie),no===null?ze=ge:no.sibling=ge,no=ge);return We&&Ut(R,Ie),ze}for(ge=c(ge);Ie<I.length;Ie++)Je=q(ge,R,Ie,I[Ie],J),Je!==null&&(o&&Je.alternate!==null&&ge.delete(Je.key===null?Ie:Je.key),L=b(Je,L,Ie),no===null?ze=Je:no.sibling=Je,no=Je);return o&&ge.forEach(function(Rr){return t(R,Rr)}),We&&Ut(R,Ie),ze}function Ae(R,L,I,J){if(I==null)throw Error(i(151));for(var ze=null,no=null,ge=L,Ie=L=0,Je=null,to=I.next();ge!==null&&!to.done;Ie++,to=I.next()){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var Rr=K(R,ge,to.value,J);if(Rr===null){ge===null&&(ge=Je);break}o&&ge&&Rr.alternate===null&&t(R,ge),L=b(Rr,L,Ie),no===null?ze=Rr:no.sibling=Rr,no=Rr,ge=Je}if(to.done)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;!to.done;Ie++,to=I.next())to=Q(R,to.value,J),to!==null&&(L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return We&&Ut(R,Ie),ze}for(ge=c(ge);!to.done;Ie++,to=I.next())to=q(ge,R,Ie,to.value,J),to!==null&&(o&&to.alternate!==null&&ge.delete(to.key===null?Ie:to.key),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return o&&ge.forEach(function(Oz){return t(R,Oz)}),We&&Ut(R,Ie),ze}function vo(R,L,I,J){if(typeof I=="object"&&I!==null&&I.type===j&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var ze=I.key;L!==null;){if(L.key===ze){if(ze=I.type,ze===j){if(L.tag===7){l(R,L.sibling),J=f(L,I.props.children),J.return=R,R=J;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type){l(R,L.sibling),J=f(L,I.props),Gl(J,I),J.return=R,R=J;break e}l(R,L);break}else t(R,L);L=L.sibling}I.type===j?(J=na(I.props.children,R.mode,J,I.key),J.return=R,R=J):(J=kc(I.type,I.key,I.props,null,R.mode,J),Gl(J,I),J.return=R,R=J)}return k(R);case N:e:{for(ze=I.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===I.containerInfo&&L.stateNode.implementation===I.implementation){l(R,L.sibling),J=f(L,I.children||[]),J.return=R,R=J;break e}else{l(R,L);break}else t(R,L);L=L.sibling}J=Kd(I,R.mode,J),J.return=R,R=J}return k(R);case ee:return I=ia(I),vo(R,L,I,J)}if(Fe(I))return pe(R,L,I,J);if(ne(I)){if(ze=ne(I),typeof ze!="function")throw Error(i(150));return I=ze.call(I),Ae(R,L,I,J)}if(typeof I.then=="function")return vo(R,L,zc(I),J);if(I.$$typeof===w)return vo(R,L,_c(R,I),J);Sc(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,L!==null&&L.tag===6?(l(R,L.sibling),J=f(L,I),J.return=R,R=J):(l(R,L),J=Fd(I,R.mode,J),J.return=R,R=J),k(R)):l(R,L)}return function(R,L,I,J){try{Pl=0;var ze=vo(R,L,I,J);return Ya=null,ze}catch(ge){if(ge===Ga||ge===yc)throw ge;var no=qn(29,ge,null,R.mode);return no.lanes=J,no.return=R,no}finally{}}}var sa=op(!0),np=op(!1),gr=!1;function ou(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nu(o,t){o=o.updateQueue,t.updateQueue===o&&(t.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function _r(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function xr(o,t,l){var c=o.updateQueue;if(c===null)return null;if(c=c.shared,(co&2)!==0){var f=c.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),c.pending=t,t=pc(o),Ih(o,null,l),t}return hc(o,c,t,l),pc(o)}function Yl(o,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var c=t.lanes;c&=o.pendingLanes,l|=c,t.lanes=l,Pm(o,l)}}function tu(o,t){var l=o.updateQueue,c=o.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var f=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?f=b=k:b=b.next=k,l=l.next}while(l!==null);b===null?f=b=t:b=b.next=t}else f=b=t;l={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:b,shared:c.shared,callbacks:c.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=t:o.next=t,l.lastBaseUpdate=t}var ru=!1;function Jl(){if(ru){var o=Pa;if(o!==null)throw o}}function Xl(o,t,l,c){ru=!1;var f=o.updateQueue;gr=!1;var b=f.firstBaseUpdate,k=f.lastBaseUpdate,y=f.shared.pending;if(y!==null){f.shared.pending=null;var A=y,U=A.next;A.next=null,k===null?b=U:k.next=U,k=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,y=Y.lastBaseUpdate,y!==k&&(y===null?Y.firstBaseUpdate=U:y.next=U,Y.lastBaseUpdate=A))}if(b!==null){var Q=f.baseState;k=0,Y=U=A=null,y=b;do{var K=y.lane&-536870913,q=K!==y.lane;if(q?(Ye&K)===K:(c&K)===K){K!==0&&K===Za&&(ru=!0),Y!==null&&(Y=Y.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var pe=o,Ae=y;K=t;var vo=l;switch(Ae.tag){case 1:if(pe=Ae.payload,typeof pe=="function"){Q=pe.call(vo,Q,K);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ae.payload,K=typeof pe=="function"?pe.call(vo,Q,K):pe,K==null)break e;Q=v({},Q,K);break e;case 2:gr=!0}}K=y.callback,K!==null&&(o.flags|=64,q&&(o.flags|=8192),q=f.callbacks,q===null?f.callbacks=[K]:q.push(K))}else q={lane:K,tag:y.tag,payload:y.payload,callback:y.callback,next:null},Y===null?(U=Y=q,A=Q):Y=Y.next=q,k|=K;if(y=y.next,y===null){if(y=f.shared.pending,y===null)break;q=y,y=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);Y===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=U,f.lastBaseUpdate=Y,b===null&&(f.shared.lanes=0),jr|=k,o.lanes=k,o.memoizedState=Q}}function tp(o,t){if(typeof o!="function")throw Error(i(191,o));o.call(t)}function rp(o,t){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)tp(l[o],t)}var Ja=C(null),jc=C(0);function ap(o,t){o=Xt,le(jc,o),le(Ja,t),Xt=o|t.baseLanes}function au(){le(jc,Xt),le(Ja,Ja.current)}function lu(){Xt=jc.current,P(Ja),P(jc)}var Zn=C(null),bt=null;function yr(o){var t=o.alternate;le(Uo,Uo.current&1),le(Zn,o),bt===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(bt=o)}function iu(o){le(Uo,Uo.current),le(Zn,o),bt===null&&(bt=o)}function lp(o){o.tag===22?(le(Uo,Uo.current),le(Zn,o),bt===null&&(bt=o)):wr()}function wr(){le(Uo,Uo.current),le(Zn,Zn.current)}function Pn(o){P(Zn),bt===o&&(bt=null),P(Uo)}var Uo=C(0);function Tc(o){for(var t=o;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||mf(l)||hf(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kt=0,Me=null,po=null,Ko=null,Ac=!1,Xa=!1,da=!1,Cc=0,Wl=0,Wa=null,y2=0;function No(){throw Error(i(321))}function cu(o,t){if(t===null)return!1;for(var l=0;l<t.length&&l<o.length;l++)if(!Vn(o[l],t[l]))return!1;return!0}function su(o,t,l,c,f,b){return Kt=b,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=o===null||o.memoizedState===null?Kp:zu,da=!1,b=l(c,f),da=!1,Xa&&(b=cp(t,l,c,f)),ip(o),b}function ip(o){M.H=oi;var t=po!==null&&po.next!==null;if(Kt=0,Ko=po=Me=null,Ac=!1,Wl=0,Wa=null,t)throw Error(i(300));o===null||Vo||(o=o.dependencies,o!==null&&gc(o)&&(Vo=!0))}function cp(o,t,l,c){Me=o;var f=0;do{if(Xa&&(Wa=null),Wl=0,Xa=!1,25<=f)throw Error(i(301));if(f+=1,Ko=po=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}M.H=Vp,b=t(l,c)}while(Xa);return b}function w2(){var o=M.H,t=o.useState()[0];return t=typeof t.then=="function"?Ql(t):t,o=o.useState()[0],(po!==null?po.memoizedState:null)!==o&&(Me.flags|=1024),t}function du(){var o=Cc!==0;return Cc=0,o}function uu(o,t,l){t.updateQueue=o.updateQueue,t.flags&=-2053,o.lanes&=~l}function fu(o){if(Ac){for(o=o.memoizedState;o!==null;){var t=o.queue;t!==null&&(t.pending=null),o=o.next}Ac=!1}Kt=0,Ko=po=Me=null,Xa=!1,Wl=Cc=0,Wa=null}function zn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o,Ko}function Ho(){if(po===null){var o=Me.alternate;o=o!==null?o.memoizedState:null}else o=po.next;var t=Ko===null?Me.memoizedState:Ko.next;if(t!==null)Ko=t,po=o;else{if(o===null)throw Me.alternate===null?Error(i(467)):Error(i(310));po=o,o={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o}return Ko}function Ec(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(o){var t=Wl;return Wl+=1,Wa===null&&(Wa=[]),o=Wh(Wa,o,t),t=Me,(Ko===null?t.memoizedState:Ko.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Kp:zu),o}function Lc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Ql(o);if(o.$$typeof===w)return sn(o)}throw Error(i(438,String(o)))}function bu(o){var t=null,l=Me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var c=Me.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(t={data:c.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ec(),Me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(o),c=0;c<o;c++)l[c]=$e;return t.index++,l}function Vt(o,t){return typeof t=="function"?t(o):t}function Oc(o){var t=Ho();return mu(t,po,o)}function mu(o,t,l){var c=o.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var f=o.baseQueue,b=c.pending;if(b!==null){if(f!==null){var k=f.next;f.next=b.next,b.next=k}t.baseQueue=f=b,c.pending=null}if(b=o.baseState,f===null)o.memoizedState=b;else{t=f.next;var y=k=null,A=null,U=t,Y=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ye&Q)===Q:(Kt&Q)===Q){var K=U.revertLane;if(K===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Za&&(Y=!0);else if((Kt&K)===K){U=U.next,K===Za&&(Y=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=Q,k=b):A=A.next=Q,Me.lanes|=K,jr|=K;Q=U.action,da&&l(b,Q),b=U.hasEagerState?U.eagerState:l(b,Q)}else K={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=K,k=b):A=A.next=K,Me.lanes|=Q,jr|=Q;U=U.next}while(U!==null&&U!==t);if(A===null?k=b:A.next=y,!Vn(b,o.memoizedState)&&(Vo=!0,Y&&(l=Pa,l!==null)))throw l;o.memoizedState=b,o.baseState=k,o.baseQueue=A,c.lastRenderedState=b}return f===null&&(c.lanes=0),[o.memoizedState,c.dispatch]}function hu(o){var t=Ho(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var c=l.dispatch,f=l.pending,b=t.memoizedState;if(f!==null){l.pending=null;var k=f=f.next;do b=o(b,k.action),k=k.next;while(k!==f);Vn(b,t.memoizedState)||(Vo=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,c]}function sp(o,t,l){var c=Me,f=Ho(),b=We;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=t();var k=!Vn((po||f).memoizedState,l);if(k&&(f.memoizedState=l,Vo=!0),f=f.queue,vu(fp.bind(null,c,f,o),[o]),f.getSnapshot!==t||k||Ko!==null&&Ko.memoizedState.tag&1){if(c.flags|=2048,Qa(9,{destroy:void 0},up.bind(null,c,f,l,t),null),go===null)throw Error(i(349));b||(Kt&127)!==0||dp(c,t,l)}return l}function dp(o,t,l){o.flags|=16384,o={getSnapshot:t,value:l},t=Me.updateQueue,t===null?(t=Ec(),Me.updateQueue=t,t.stores=[o]):(l=t.stores,l===null?t.stores=[o]:l.push(o))}function up(o,t,l,c){t.value=l,t.getSnapshot=c,bp(t)&&mp(o)}function fp(o,t,l){return l(function(){bp(t)&&mp(o)})}function bp(o){var t=o.getSnapshot;o=o.value;try{var l=t();return!Vn(o,l)}catch{return!0}}function mp(o){var t=oa(o,2);t!==null&&Rn(t,o,2)}function pu(o){var t=zn();if(typeof o=="function"){var l=o;if(o=l(),da){at(!0);try{l()}finally{at(!1)}}}return t.memoizedState=t.baseState=o,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:o},t}function hp(o,t,l,c){return o.baseState=l,mu(o,po,typeof c=="function"?c:Vt)}function z2(o,t,l,c,f){if(Bc(o))throw Error(i(485));if(o=t.action,o!==null){var b={payload:f,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};M.T!==null?l(!0):b.isTransition=!1,c(b),l=t.pending,l===null?(b.next=t.pending=b,pp(t,b)):(b.next=l.next,t.pending=l.next=b)}}function pp(o,t){var l=t.action,c=t.payload,f=o.state;if(t.isTransition){var b=M.T,k={};M.T=k;try{var y=l(f,c),A=M.S;A!==null&&A(k,y),kp(o,t,y)}catch(U){ku(o,t,U)}finally{b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}else try{b=l(f,c),kp(o,t,b)}catch(U){ku(o,t,U)}}function kp(o,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){vp(o,t,c)},function(c){return ku(o,t,c)}):vp(o,t,l)}function vp(o,t,l){t.status="fulfilled",t.value=l,gp(t),o.state=l,t=o.pending,t!==null&&(l=t.next,l===t?o.pending=null:(l=l.next,t.next=l,pp(o,l)))}function ku(o,t,l){var c=o.pending;if(o.pending=null,c!==null){c=c.next;do t.status="rejected",t.reason=l,gp(t),t=t.next;while(t!==c)}o.action=null}function gp(o){o=o.listeners;for(var t=0;t<o.length;t++)(0,o[t])()}function _p(o,t){return t}function xp(o,t){if(We){var l=go.formState;if(l!==null){e:{var c=Me;if(We){if(xo){o:{for(var f=xo,b=ft;f.nodeType!==8;){if(!b){f=null;break o}if(f=mt(f.nextSibling),f===null){f=null;break o}}b=f.data,f=b==="F!"||b==="F"?f:null}if(f){xo=mt(f.nextSibling),c=f.data==="F!";break e}}kr(c)}c=!1}c&&(t=l[0])}}return l=zn(),l.memoizedState=l.baseState=t,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:t},l.queue=c,l=Up.bind(null,Me,c),c.dispatch=l,c=pu(!1),b=wu.bind(null,Me,!1,c.queue),c=zn(),f={state:t,dispatch:null,action:o,pending:null},c.queue=f,l=z2.bind(null,Me,f,b,l),f.dispatch=l,c.memoizedState=o,[t,l,!1]}function yp(o){var t=Ho();return wp(t,po,o)}function wp(o,t,l){if(t=mu(o,t,_p)[0],o=Oc(Vt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var c=Ql(t)}catch(k){throw k===Ga?yc:k}else c=t;t=Ho();var f=t.queue,b=f.dispatch;return l!==t.memoizedState&&(Me.flags|=2048,Qa(9,{destroy:void 0},S2.bind(null,f,l),null)),[c,b,o]}function S2(o,t){o.action=t}function zp(o){var t=Ho(),l=po;if(l!==null)return wp(t,l,o);Ho(),t=t.memoizedState,l=Ho();var c=l.queue.dispatch;return l.memoizedState=o,[t,c,!1]}function Qa(o,t,l,c){return o={tag:o,create:l,deps:c,inst:t,next:null},t=Me.updateQueue,t===null&&(t=Ec(),Me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=o.next=o:(c=l.next,l.next=o,o.next=c,t.lastEffect=o),o}function Sp(){return Ho().memoizedState}function $c(o,t,l,c){var f=zn();Me.flags|=o,f.memoizedState=Qa(1|t,{destroy:void 0},l,c===void 0?null:c)}function Nc(o,t,l,c){var f=Ho();c=c===void 0?null:c;var b=f.memoizedState.inst;po!==null&&c!==null&&cu(c,po.memoizedState.deps)?f.memoizedState=Qa(t,b,l,c):(Me.flags|=o,f.memoizedState=Qa(1|t,b,l,c))}function jp(o,t){$c(8390656,8,o,t)}function vu(o,t){Nc(2048,8,o,t)}function j2(o){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=Ec(),Me.updateQueue=t,t.events=[o];else{var l=t.events;l===null?t.events=[o]:l.push(o)}}function Tp(o){var t=Ho().memoizedState;return j2({ref:t,nextImpl:o}),function(){if((co&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ap(o,t){return Nc(4,2,o,t)}function Cp(o,t){return Nc(4,4,o,t)}function Ep(o,t){if(typeof t=="function"){o=o();var l=t(o);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return o=o(),t.current=o,function(){t.current=null}}function Lp(o,t,l){l=l!=null?l.concat([o]):null,Nc(4,4,Ep.bind(null,t,o),l)}function gu(){}function Op(o,t){var l=Ho();t=t===void 0?null:t;var c=l.memoizedState;return t!==null&&cu(t,c[1])?c[0]:(l.memoizedState=[o,t],o)}function $p(o,t){var l=Ho();t=t===void 0?null:t;var c=l.memoizedState;if(t!==null&&cu(t,c[1]))return c[0];if(c=o(),da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[c,t],c}function _u(o,t,l){return l===void 0||(Kt&1073741824)!==0&&(Ye&261930)===0?o.memoizedState=t:(o.memoizedState=l,o=Nk(),Me.lanes|=o,jr|=o,l)}function Np(o,t,l,c){return Vn(l,t)?l:Ja.current!==null?(o=_u(o,l,c),Vn(o,t)||(Vo=!0),o):(Kt&42)===0||(Kt&1073741824)!==0&&(Ye&261930)===0?(Vo=!0,o.memoizedState=l):(o=Nk(),Me.lanes|=o,jr|=o,t)}function Bp(o,t,l,c,f){var b=G.p;G.p=b!==0&&8>b?b:8;var k=M.T,y={};M.T=y,wu(o,!1,t,l);try{var A=f(),U=M.S;if(U!==null&&U(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=x2(A,c);ei(o,t,Y,Jn(o))}else ei(o,t,c,Jn(o))}catch(Q){ei(o,t,{then:function(){},status:"rejected",reason:Q},Jn())}finally{G.p=b,k!==null&&y.types!==null&&(k.types=y.types),M.T=k}}function T2(){}function xu(o,t,l,c){if(o.tag!==5)throw Error(i(476));var f=Rp(o).queue;Bp(o,f,t,ie,l===null?T2:function(){return Dp(o),l(c)})}function Rp(o){var t=o.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:l},next:null},o.memoizedState=t,o=o.alternate,o!==null&&(o.memoizedState=t),t}function Dp(o){var t=Rp(o);t.next===null&&(t=o.alternate.memoizedState),ei(o,t.next.queue,{},Jn())}function yu(){return sn(ki)}function Mp(){return Ho().memoizedState}function Ip(){return Ho().memoizedState}function A2(o){for(var t=o.return;t!==null;){switch(t.tag){case 24:case 3:var l=Jn();o=_r(l);var c=xr(t,o,l);c!==null&&(Rn(c,t,l),Yl(c,t,l)),t={cache:Xd()},o.payload=t;return}t=t.return}}function C2(o,t,l){var c=Jn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bc(o)?Hp(t,l):(l=Ud(o,t,l,c),l!==null&&(Rn(l,o,c),Fp(l,t,c)))}function Up(o,t,l){var c=Jn();ei(o,t,l,c)}function ei(o,t,l,c){var f={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bc(o))Hp(t,f);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=t.lastRenderedReducer,b!==null))try{var k=t.lastRenderedState,y=b(k,l);if(f.hasEagerState=!0,f.eagerState=y,Vn(y,k))return hc(o,t,f,0),go===null&&mc(),!1}catch{}finally{}if(l=Ud(o,t,f,c),l!==null)return Rn(l,o,c),Fp(l,t,c),!0}return!1}function wu(o,t,l,c){if(c={lane:2,revertLane:of(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Bc(o)){if(t)throw Error(i(479))}else t=Ud(o,l,c,2),t!==null&&Rn(t,o,2)}function Bc(o){var t=o.alternate;return o===Me||t!==null&&t===Me}function Hp(o,t){Xa=Ac=!0;var l=o.pending;l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t}function Fp(o,t,l){if((l&4194048)!==0){var c=t.lanes;c&=o.pendingLanes,l|=c,t.lanes=l,Pm(o,l)}}var oi={readContext:sn,use:Lc,useCallback:No,useContext:No,useEffect:No,useImperativeHandle:No,useLayoutEffect:No,useInsertionEffect:No,useMemo:No,useReducer:No,useRef:No,useState:No,useDebugValue:No,useDeferredValue:No,useTransition:No,useSyncExternalStore:No,useId:No,useHostTransitionStatus:No,useFormState:No,useActionState:No,useOptimistic:No,useMemoCache:No,useCacheRefresh:No};oi.useEffectEvent=No;var Kp={readContext:sn,use:Lc,useCallback:function(o,t){return zn().memoizedState=[o,t===void 0?null:t],o},useContext:sn,useEffect:jp,useImperativeHandle:function(o,t,l){l=l!=null?l.concat([o]):null,$c(4194308,4,Ep.bind(null,t,o),l)},useLayoutEffect:function(o,t){return $c(4194308,4,o,t)},useInsertionEffect:function(o,t){$c(4,2,o,t)},useMemo:function(o,t){var l=zn();t=t===void 0?null:t;var c=o();if(da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[c,t],c},useReducer:function(o,t,l){var c=zn();if(l!==void 0){var f=l(t);if(da){at(!0);try{l(t)}finally{at(!1)}}}else f=t;return c.memoizedState=c.baseState=f,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:f},c.queue=o,o=o.dispatch=C2.bind(null,Me,o),[c.memoizedState,o]},useRef:function(o){var t=zn();return o={current:o},t.memoizedState=o},useState:function(o){o=pu(o);var t=o.queue,l=Up.bind(null,Me,t);return t.dispatch=l,[o.memoizedState,l]},useDebugValue:gu,useDeferredValue:function(o,t){var l=zn();return _u(l,o,t)},useTransition:function(){var o=pu(!1);return o=Bp.bind(null,Me,o.queue,!0,!1),zn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,t,l){var c=Me,f=zn();if(We){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),go===null)throw Error(i(349));(Ye&127)!==0||dp(c,t,l)}f.memoizedState=l;var b={value:l,getSnapshot:t};return f.queue=b,jp(fp.bind(null,c,b,o),[o]),c.flags|=2048,Qa(9,{destroy:void 0},up.bind(null,c,b,l,t),null),l},useId:function(){var o=zn(),t=go.identifierPrefix;if(We){var l=Ct,c=At;l=(c&~(1<<32-wn(c)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Cc++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=y2++,t="_"+t+"r_"+l.toString(32)+"_";return o.memoizedState=t},useHostTransitionStatus:yu,useFormState:xp,useActionState:xp,useOptimistic:function(o){var t=zn();t.memoizedState=t.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=wu.bind(null,Me,!0,l),l.dispatch=t,[o,t]},useMemoCache:bu,useCacheRefresh:function(){return zn().memoizedState=A2.bind(null,Me)},useEffectEvent:function(o){var t=zn(),l={impl:o};return t.memoizedState=l,function(){if((co&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},zu={readContext:sn,use:Lc,useCallback:Op,useContext:sn,useEffect:vu,useImperativeHandle:Lp,useInsertionEffect:Ap,useLayoutEffect:Cp,useMemo:$p,useReducer:Oc,useRef:Sp,useState:function(){return Oc(Vt)},useDebugValue:gu,useDeferredValue:function(o,t){var l=Ho();return Np(l,po.memoizedState,o,t)},useTransition:function(){var o=Oc(Vt)[0],t=Ho().memoizedState;return[typeof o=="boolean"?o:Ql(o),t]},useSyncExternalStore:sp,useId:Mp,useHostTransitionStatus:yu,useFormState:yp,useActionState:yp,useOptimistic:function(o,t){var l=Ho();return hp(l,po,o,t)},useMemoCache:bu,useCacheRefresh:Ip};zu.useEffectEvent=Tp;var Vp={readContext:sn,use:Lc,useCallback:Op,useContext:sn,useEffect:vu,useImperativeHandle:Lp,useInsertionEffect:Ap,useLayoutEffect:Cp,useMemo:$p,useReducer:hu,useRef:Sp,useState:function(){return hu(Vt)},useDebugValue:gu,useDeferredValue:function(o,t){var l=Ho();return po===null?_u(l,o,t):Np(l,po.memoizedState,o,t)},useTransition:function(){var o=hu(Vt)[0],t=Ho().memoizedState;return[typeof o=="boolean"?o:Ql(o),t]},useSyncExternalStore:sp,useId:Mp,useHostTransitionStatus:yu,useFormState:zp,useActionState:zp,useOptimistic:function(o,t){var l=Ho();return po!==null?hp(l,po,o,t):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:bu,useCacheRefresh:Ip};Vp.useEffectEvent=Tp;function Su(o,t,l,c){t=o.memoizedState,l=l(c,t),l=l==null?t:v({},t,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var ju={enqueueSetState:function(o,t,l){o=o._reactInternals;var c=Jn(),f=_r(c);f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,c),t!==null&&(Rn(t,o,c),Yl(t,o,c))},enqueueReplaceState:function(o,t,l){o=o._reactInternals;var c=Jn(),f=_r(c);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,c),t!==null&&(Rn(t,o,c),Yl(t,o,c))},enqueueForceUpdate:function(o,t){o=o._reactInternals;var l=Jn(),c=_r(l);c.tag=2,t!=null&&(c.callback=t),t=xr(o,c,l),t!==null&&(Rn(t,o,l),Yl(t,o,l))}};function qp(o,t,l,c,f,b,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(c,b,k):t.prototype&&t.prototype.isPureReactComponent?!Hl(l,c)||!Hl(f,b):!0}function Zp(o,t,l,c){o=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,c),t.state!==o&&ju.enqueueReplaceState(t,t.state,null)}function ua(o,t){var l=t;if("ref"in t){l={};for(var c in t)c!=="ref"&&(l[c]=t[c])}if(o=o.defaultProps){l===t&&(l=v({},l));for(var f in o)l[f]===void 0&&(l[f]=o[f])}return l}function Pp(o){bc(o)}function Gp(o){console.error(o)}function Yp(o){bc(o)}function Rc(o,t){try{var l=o.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(c){setTimeout(function(){throw c})}}function Jp(o,t,l){try{var c=o.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Tu(o,t,l){return l=_r(l),l.tag=3,l.payload={element:null},l.callback=function(){Rc(o,t)},l}function Xp(o){return o=_r(o),o.tag=3,o}function Wp(o,t,l,c){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var b=c.value;o.payload=function(){return f(b)},o.callback=function(){Jp(t,l,c)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){Jp(t,l,c),typeof f!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var y=c.stack;this.componentDidCatch(c.value,{componentStack:y!==null?y:""})})}function E2(o,t,l,c,f){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(t=l.alternate,t!==null&&qa(t,l,f,!0),l=Zn.current,l!==null){switch(l.tag){case 31:case 13:return bt===null?Gc():l.alternate===null&&Bo===0&&(Bo=3),l.flags&=-257,l.flags|=65536,l.lanes=f,c===wc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([c]):t.add(c),Wu(o,c,f)),!1;case 22:return l.flags|=65536,c===wc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([c]):l.add(c)),Wu(o,c,f)),!1}throw Error(i(435,l.tag))}return Wu(o,c,f),Gc(),!1}if(We)return t=Zn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,c!==Zd&&(o=Error(i(422),{cause:c}),Vl(st(o,l)))):(c!==Zd&&(t=Error(i(423),{cause:c}),Vl(st(t,l))),o=o.current.alternate,o.flags|=65536,f&=-f,o.lanes|=f,c=st(c,l),f=Tu(o.stateNode,c,f),tu(o,f),Bo!==4&&(Bo=2)),!1;var b=Error(i(520),{cause:c});if(b=st(b,l),si===null?si=[b]:si.push(b),Bo!==4&&(Bo=2),t===null)return!0;c=st(c,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,o=f&-f,l.lanes|=o,o=Tu(l.stateNode,c,o),tu(l,o),!1;case 1:if(t=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Tr===null||!Tr.has(b))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Xp(f),Wp(f,o,l,c),tu(l,f),!1}l=l.return}while(l!==null);return!1}var Au=Error(i(461)),Vo=!1;function dn(o,t,l,c){t.child=o===null?np(t,null,l,c):sa(t,o.child,l,c)}function Qp(o,t,l,c,f){l=l.render;var b=t.ref;if("ref"in c){var k={};for(var y in c)y!=="ref"&&(k[y]=c[y])}else k=c;return aa(t),c=su(o,t,l,k,b,f),y=du(),o!==null&&!Vo?(uu(o,t,f),qt(o,t,f)):(We&&y&&Vd(t),t.flags|=1,dn(o,t,c,f),t.child)}function ek(o,t,l,c,f){if(o===null){var b=l.type;return typeof b=="function"&&!Hd(b)&&b.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=b,ok(o,t,b,c,f)):(o=kc(l.type,null,c,t,t.mode,f),o.ref=t.ref,o.return=t,t.child=o)}if(b=o.child,!Ru(o,f)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Hl,l(k,c)&&o.ref===t.ref)return qt(o,t,f)}return t.flags|=1,o=It(b,c),o.ref=t.ref,o.return=t,t.child=o}function ok(o,t,l,c,f){if(o!==null){var b=o.memoizedProps;if(Hl(b,c)&&o.ref===t.ref)if(Vo=!1,t.pendingProps=c=b,Ru(o,f))(o.flags&131072)!==0&&(Vo=!0);else return t.lanes=o.lanes,qt(o,t,f)}return Cu(o,t,l,c,f)}function nk(o,t,l,c){var f=c.children,b=o!==null?o.memoizedState:null;if(o===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((t.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,o!==null){for(c=t.child=o.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~b}else c=0,t.child=null;return tk(o,t,b,l,c)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},o!==null&&xc(t,b!==null?b.cachePool:null),b!==null?ap(t,b):au(),lp(t);else return c=t.lanes=536870912,tk(o,t,b!==null?b.baseLanes|l:l,l,c)}else b!==null?(xc(t,b.cachePool),ap(t,b),wr(),t.memoizedState=null):(o!==null&&xc(t,null),au(),wr());return dn(o,t,f,l),t.child}function ni(o,t){return o!==null&&o.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tk(o,t,l,c,f){var b=Qd();return b=b===null?null:{parent:Fo._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},o!==null&&xc(t,null),au(),lp(t),o!==null&&qa(o,t,c,!0),t.childLanes=f,null}function Dc(o,t){return t=Ic({mode:t.mode,children:t.children},o.mode),t.ref=o.ref,o.child=t,t.return=o,t}function rk(o,t,l){return sa(t,o.child,null,l),o=Dc(t,t.pendingProps),o.flags|=2,Pn(t),t.memoizedState=null,o}function L2(o,t,l){var c=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,o===null){if(We){if(c.mode==="hidden")return o=Dc(t,c),t.lanes=536870912,ni(null,o);if(iu(t),(o=xo)?(o=pv(o,ft),o=o!==null&&o.data==="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Hh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return t.lanes=536870912,null}return Dc(t,c)}var b=o.memoizedState;if(b!==null){var k=b.dehydrated;if(iu(t),f)if(t.flags&256)t.flags&=-257,t=rk(o,t,l);else if(t.memoizedState!==null)t.child=o.child,t.flags|=128,t=null;else throw Error(i(558));else if(Vo||qa(o,t,l,!1),f=(l&o.childLanes)!==0,Vo||f){if(c=go,c!==null&&(k=Gm(c,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,oa(o,k),Rn(c,o,k),Au;Gc(),t=rk(o,t,l)}else o=b.treeContext,xo=mt(k.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&Vh(t,o),t=Dc(t,c),t.flags|=4096;return t}return o=It(o.child,{mode:c.mode,children:c.children}),o.ref=t.ref,t.child=o,o.return=t,o}function Mc(o,t){var l=t.ref;if(l===null)o!==null&&o.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(o===null||o.ref!==l)&&(t.flags|=4194816)}}function Cu(o,t,l,c,f){return aa(t),l=su(o,t,l,c,void 0,f),c=du(),o!==null&&!Vo?(uu(o,t,f),qt(o,t,f)):(We&&c&&Vd(t),t.flags|=1,dn(o,t,l,f),t.child)}function ak(o,t,l,c,f,b){return aa(t),t.updateQueue=null,l=cp(t,c,l,f),ip(o),c=du(),o!==null&&!Vo?(uu(o,t,b),qt(o,t,b)):(We&&c&&Vd(t),t.flags|=1,dn(o,t,l,b),t.child)}function lk(o,t,l,c,f){if(aa(t),t.stateNode===null){var b=Ha,k=l.contextType;typeof k=="object"&&k!==null&&(b=sn(k)),b=new l(c,b),t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=ju,t.stateNode=b,b._reactInternals=t,b=t.stateNode,b.props=c,b.state=t.memoizedState,b.refs={},ou(t),k=l.contextType,b.context=typeof k=="object"&&k!==null?sn(k):Ha,b.state=t.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(Su(t,l,k,c),b.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&ju.enqueueReplaceState(b,b.state,null),Xl(t,c,b,f),Jl(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),c=!0}else if(o===null){b=t.stateNode;var y=t.memoizedProps,A=ua(l,y);b.props=A;var U=b.context,Y=l.contextType;k=Ha,typeof Y=="object"&&Y!==null&&(k=sn(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(y||U!==k)&&Zp(t,b,c,k),gr=!1;var K=t.memoizedState;b.state=K,Xl(t,c,b,f),Jl(),U=t.memoizedState,y||K!==U||gr?(typeof Q=="function"&&(Su(t,l,Q,c),U=t.memoizedState),(A=gr||qp(t,l,A,c,K,U,k))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=c,t.memoizedState=U),b.props=c,b.state=U,b.context=k,c=A):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),c=!1)}else{b=t.stateNode,nu(o,t),k=t.memoizedProps,Y=ua(l,k),b.props=Y,Q=t.pendingProps,K=b.context,U=l.contextType,A=Ha,typeof U=="object"&&U!==null&&(A=sn(U)),y=l.getDerivedStateFromProps,(U=typeof y=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==Q||K!==A)&&Zp(t,b,c,A),gr=!1,K=t.memoizedState,b.state=K,Xl(t,c,b,f),Jl();var q=t.memoizedState;k!==Q||K!==q||gr||o!==null&&o.dependencies!==null&&gc(o.dependencies)?(typeof y=="function"&&(Su(t,l,y,c),q=t.memoizedState),(Y=gr||qp(t,l,Y,c,K,q,A)||o!==null&&o.dependencies!==null&&gc(o.dependencies))?(U||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,q,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,q,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),t.memoizedProps=c,t.memoizedState=q),b.props=c,b.state=q,b.context=A,c=Y):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),c=!1)}return b=c,Mc(o,t),c=(t.flags&128)!==0,b||c?(b=t.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:b.render(),t.flags|=1,o!==null&&c?(t.child=sa(t,o.child,null,f),t.child=sa(t,null,l,f)):dn(o,t,l,f),t.memoizedState=b.state,o=t.child):o=qt(o,t,f),o}function ik(o,t,l,c){return ta(),t.flags|=256,dn(o,t,l,c),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lu(o){return{baseLanes:o,cachePool:Jh()}}function Ou(o,t,l){return o=o!==null?o.childLanes&~l:0,t&&(o|=Yn),o}function ck(o,t,l){var c=t.pendingProps,f=!1,b=(t.flags&128)!==0,k;if((k=b)||(k=o!==null&&o.memoizedState===null?!1:(Uo.current&2)!==0),k&&(f=!0,t.flags&=-129),k=(t.flags&32)!==0,t.flags&=-33,o===null){if(We){if(f?yr(t):wr(),(o=xo)?(o=pv(o,ft),o=o!==null&&o.data!=="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Hh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return hf(o)?t.lanes=32:t.lanes=536870912,null}var y=c.children;return c=c.fallback,f?(wr(),f=t.mode,y=Ic({mode:"hidden",children:y},f),c=na(c,f,l,null),y.return=t,c.return=t,y.sibling=c,t.child=y,c=t.child,c.memoizedState=Lu(l),c.childLanes=Ou(o,k,l),t.memoizedState=Eu,ni(null,c)):(yr(t),$u(t,y))}var A=o.memoizedState;if(A!==null&&(y=A.dehydrated,y!==null)){if(b)t.flags&256?(yr(t),t.flags&=-257,t=Nu(o,t,l)):t.memoizedState!==null?(wr(),t.child=o.child,t.flags|=128,t=null):(wr(),y=c.fallback,f=t.mode,c=Ic({mode:"visible",children:c.children},f),y=na(y,f,l,null),y.flags|=2,c.return=t,y.return=t,c.sibling=y,t.child=c,sa(t,o.child,null,l),c=t.child,c.memoizedState=Lu(l),c.childLanes=Ou(o,k,l),t.memoizedState=Eu,t=ni(null,c));else if(yr(t),hf(y)){if(k=y.nextSibling&&y.nextSibling.dataset,k)var U=k.dgst;k=U,c=Error(i(419)),c.stack="",c.digest=k,Vl({value:c,source:null,stack:null}),t=Nu(o,t,l)}else if(Vo||qa(o,t,l,!1),k=(l&o.childLanes)!==0,Vo||k){if(k=go,k!==null&&(c=Gm(k,l),c!==0&&c!==A.retryLane))throw A.retryLane=c,oa(o,c),Rn(k,o,c),Au;mf(y)||Gc(),t=Nu(o,t,l)}else mf(y)?(t.flags|=192,t.child=o.child,t=null):(o=A.treeContext,xo=mt(y.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&Vh(t,o),t=$u(t,c.children),t.flags|=4096);return t}return f?(wr(),y=c.fallback,f=t.mode,A=o.child,U=A.sibling,c=It(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,U!==null?y=It(U,y):(y=na(y,f,l,null),y.flags|=2),y.return=t,c.return=t,c.sibling=y,t.child=c,ni(null,c),c=t.child,y=o.child.memoizedState,y===null?y=Lu(l):(f=y.cachePool,f!==null?(A=Fo._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=Jh(),y={baseLanes:y.baseLanes|l,cachePool:f}),c.memoizedState=y,c.childLanes=Ou(o,k,l),t.memoizedState=Eu,ni(o.child,c)):(yr(t),l=o.child,o=l.sibling,l=It(l,{mode:"visible",children:c.children}),l.return=t,l.sibling=null,o!==null&&(k=t.deletions,k===null?(t.deletions=[o],t.flags|=16):k.push(o)),t.child=l,t.memoizedState=null,l)}function $u(o,t){return t=Ic({mode:"visible",children:t},o.mode),t.return=o,o.child=t}function Ic(o,t){return o=qn(22,o,null,t),o.lanes=0,o}function Nu(o,t,l){return sa(t,o.child,null,l),o=$u(t,t.pendingProps.children),o.flags|=2,t.memoizedState=null,o}function sk(o,t,l){o.lanes|=t;var c=o.alternate;c!==null&&(c.lanes|=t),Yd(o.return,t,l)}function Bu(o,t,l,c,f,b){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:f,treeForkCount:b}:(k.isBackwards=t,k.rendering=null,k.renderingStartTime=0,k.last=c,k.tail=l,k.tailMode=f,k.treeForkCount=b)}function dk(o,t,l){var c=t.pendingProps,f=c.revealOrder,b=c.tail;c=c.children;var k=Uo.current,y=(k&2)!==0;if(y?(k=k&1|2,t.flags|=128):k&=1,le(Uo,k),dn(o,t,c,l),c=We?Kl:0,!y&&o!==null&&(o.flags&128)!==0)e:for(o=t.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&sk(o,l,t);else if(o.tag===19)sk(o,l,t);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)o=l.alternate,o!==null&&Tc(o)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Bu(t,!1,f,l,b,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(o=f.alternate,o!==null&&Tc(o)===null){t.child=f;break}o=f.sibling,f.sibling=l,l=f,f=o}Bu(t,!0,l,null,b,c);break;case"together":Bu(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function qt(o,t,l){if(o!==null&&(t.dependencies=o.dependencies),jr|=t.lanes,(l&t.childLanes)===0)if(o!==null){if(qa(o,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(o!==null&&t.child!==o.child)throw Error(i(153));if(t.child!==null){for(o=t.child,l=It(o,o.pendingProps),t.child=l,l.return=t;o.sibling!==null;)o=o.sibling,l=l.sibling=It(o,o.pendingProps),l.return=t;l.sibling=null}return t.child}function Ru(o,t){return(o.lanes&t)!==0?!0:(o=o.dependencies,!!(o!==null&&gc(o)))}function O2(o,t,l){switch(t.tag){case 3:Co(t,t.stateNode.containerInfo),vr(t,Fo,o.memoizedState.cache),ta();break;case 27:case 5:vt(t);break;case 4:Co(t,t.stateNode.containerInfo);break;case 10:vr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,iu(t),null;break;case 13:var c=t.memoizedState;if(c!==null)return c.dehydrated!==null?(yr(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ck(o,t,l):(yr(t),o=qt(o,t,l),o!==null?o.sibling:null);yr(t);break;case 19:var f=(o.flags&128)!==0;if(c=(l&t.childLanes)!==0,c||(qa(o,t,l,!1),c=(l&t.childLanes)!==0),f){if(c)return dk(o,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),le(Uo,Uo.current),c)break;return null;case 22:return t.lanes=0,nk(o,t,l,t.pendingProps);case 24:vr(t,Fo,o.memoizedState.cache)}return qt(o,t,l)}function uk(o,t,l){if(o!==null)if(o.memoizedProps!==t.pendingProps)Vo=!0;else{if(!Ru(o,l)&&(t.flags&128)===0)return Vo=!1,O2(o,t,l);Vo=(o.flags&131072)!==0}else Vo=!1,We&&(t.flags&1048576)!==0&&Kh(t,Kl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var c=t.pendingProps;if(o=ia(t.elementType),t.type=o,typeof o=="function")Hd(o)?(c=ua(o,c),t.tag=1,t=lk(null,t,o,c,l)):(t.tag=0,t=Cu(null,t,o,c,l));else{if(o!=null){var f=o.$$typeof;if(f===$){t.tag=11,t=Qp(null,t,o,c,l);break e}else if(f===Z){t.tag=14,t=ek(null,t,o,c,l);break e}}throw t=De(o)||o,Error(i(306,t,""))}}return t;case 0:return Cu(o,t,t.type,t.pendingProps,l);case 1:return c=t.type,f=ua(c,t.pendingProps),lk(o,t,c,f,l);case 3:e:{if(Co(t,t.stateNode.containerInfo),o===null)throw Error(i(387));c=t.pendingProps;var b=t.memoizedState;f=b.element,nu(o,t),Xl(t,c,null,l);var k=t.memoizedState;if(c=k.cache,vr(t,Fo,c),c!==b.cache&&Jd(t,[Fo],l,!0),Jl(),c=k.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:k.cache},t.updateQueue.baseState=b,t.memoizedState=b,t.flags&256){t=ik(o,t,c,l);break e}else if(c!==f){f=st(Error(i(424)),t),Vl(f),t=ik(o,t,c,l);break e}else{switch(o=t.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(xo=mt(o.firstChild),cn=t,We=!0,pr=null,ft=!0,l=np(t,null,c,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ta(),c===f){t=qt(o,t,l);break e}dn(o,t,c,l)}t=t.child}return t;case 26:return Mc(o,t),o===null?(l=yv(t.type,null,t.pendingProps,null))?t.memoizedState=l:We||(l=t.type,o=t.pendingProps,c=os(Ne.current).createElement(l),c[ln]=t,c[En]=o,un(c,l,o),nn(c),t.stateNode=c):t.memoizedState=yv(t.type,o.memoizedProps,t.pendingProps,o.memoizedState),null;case 27:return vt(t),o===null&&We&&(c=t.stateNode=gv(t.type,t.pendingProps,Ne.current),cn=t,ft=!0,f=xo,Lr(t.type)?(pf=f,xo=mt(c.firstChild)):xo=f),dn(o,t,t.pendingProps.children,l),Mc(o,t),o===null&&(t.flags|=4194304),t.child;case 5:return o===null&&We&&((f=c=xo)&&(c=cz(c,t.type,t.pendingProps,ft),c!==null?(t.stateNode=c,cn=t,xo=mt(c.firstChild),ft=!1,f=!0):f=!1),f||kr(t)),vt(t),f=t.type,b=t.pendingProps,k=o!==null?o.memoizedProps:null,c=b.children,uf(f,b)?c=null:k!==null&&uf(f,k)&&(t.flags|=32),t.memoizedState!==null&&(f=su(o,t,w2,null,null,l),ki._currentValue=f),Mc(o,t),dn(o,t,c,l),t.child;case 6:return o===null&&We&&((o=l=xo)&&(l=sz(l,t.pendingProps,ft),l!==null?(t.stateNode=l,cn=t,xo=null,o=!0):o=!1),o||kr(t)),null;case 13:return ck(o,t,l);case 4:return Co(t,t.stateNode.containerInfo),c=t.pendingProps,o===null?t.child=sa(t,null,c,l):dn(o,t,c,l),t.child;case 11:return Qp(o,t,t.type,t.pendingProps,l);case 7:return dn(o,t,t.pendingProps,l),t.child;case 8:return dn(o,t,t.pendingProps.children,l),t.child;case 12:return dn(o,t,t.pendingProps.children,l),t.child;case 10:return c=t.pendingProps,vr(t,t.type,c.value),dn(o,t,c.children,l),t.child;case 9:return f=t.type._context,c=t.pendingProps.children,aa(t),f=sn(f),c=c(f),t.flags|=1,dn(o,t,c,l),t.child;case 14:return ek(o,t,t.type,t.pendingProps,l);case 15:return ok(o,t,t.type,t.pendingProps,l);case 19:return dk(o,t,l);case 31:return L2(o,t,l);case 22:return nk(o,t,l,t.pendingProps);case 24:return aa(t),c=sn(Fo),o===null?(f=Qd(),f===null&&(f=go,b=Xd(),f.pooledCache=b,b.refCount++,b!==null&&(f.pooledCacheLanes|=l),f=b),t.memoizedState={parent:c,cache:f},ou(t),vr(t,Fo,f)):((o.lanes&l)!==0&&(nu(o,t),Xl(t,null,null,l),Jl()),f=o.memoizedState,b=t.memoizedState,f.parent!==c?(f={parent:c,cache:c},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),vr(t,Fo,c)):(c=b.cache,vr(t,Fo,c),c!==f.cache&&Jd(t,[Fo],l,!0))),dn(o,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Zt(o){o.flags|=4}function Du(o,t,l,c,f){if((t=(o.mode&32)!==0)&&(t=!1),t){if(o.flags|=16777216,(f&335544128)===f)if(o.stateNode.complete)o.flags|=8192;else if(Mk())o.flags|=8192;else throw ca=wc,eu}else o.flags&=-16777217}function fk(o,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Tv(t))if(Mk())o.flags|=8192;else throw ca=wc,eu}function Uc(o,t){t!==null&&(o.flags|=4),o.flags&16384&&(t=o.tag!==22?qm():536870912,o.lanes|=t,tl|=t)}function ti(o,t){if(!We)switch(o.tailMode){case"hidden":t=o.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?t||o.tail===null?o.tail=null:o.tail.sibling=null:c.sibling=null}}function yo(o){var t=o.alternate!==null&&o.alternate.child===o.child,l=0,c=0;if(t)for(var f=o.child;f!==null;)l|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=o,f=f.sibling;else for(f=o.child;f!==null;)l|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=o,f=f.sibling;return o.subtreeFlags|=c,o.childLanes=l,t}function $2(o,t,l){var c=t.pendingProps;switch(qd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yo(t),null;case 1:return yo(t),null;case 3:return l=t.stateNode,c=null,o!==null&&(c=o.memoizedState.cache),t.memoizedState.cache!==c&&(t.flags|=2048),Ft(Fo),_o(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Va(t)?Zt(t):o===null||o.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pd())),yo(t),null;case 26:var f=t.type,b=t.memoizedState;return o===null?(Zt(t),b!==null?(yo(t),fk(t,b)):(yo(t),Du(t,f,null,c,l))):b?b!==o.memoizedState?(Zt(t),yo(t),fk(t,b)):(yo(t),t.flags&=-16777217):(o=o.memoizedProps,o!==c&&Zt(t),yo(t),Du(t,f,o,c,l)),null;case 27:if(jt(t),l=Ne.current,f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(!c){if(t.stateNode===null)throw Error(i(166));return yo(t),null}o=fe.current,Va(t)?qh(t):(o=gv(f,c,l),t.stateNode=o,Zt(t))}return yo(t),null;case 5:if(jt(t),f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(!c){if(t.stateNode===null)throw Error(i(166));return yo(t),null}if(b=fe.current,Va(t))qh(t);else{var k=os(Ne.current);switch(b){case 1:b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":b=k.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof c.is=="string"?k.createElement("select",{is:c.is}):k.createElement("select"),c.multiple?b.multiple=!0:c.size&&(b.size=c.size);break;default:b=typeof c.is=="string"?k.createElement(f,{is:c.is}):k.createElement(f)}}b[ln]=t,b[En]=c;e:for(k=t.child;k!==null;){if(k.tag===5||k.tag===6)b.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===t)break e;for(;k.sibling===null;){if(k.return===null||k.return===t)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}t.stateNode=b;e:switch(un(b,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Zt(t)}}return yo(t),Du(t,t.type,o===null?null:o.memoizedProps,t.pendingProps,l),null;case 6:if(o&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(typeof c!="string"&&t.stateNode===null)throw Error(i(166));if(o=Ne.current,Va(t)){if(o=t.stateNode,l=t.memoizedProps,c=null,f=cn,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}o[ln]=t,o=!!(o.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||cv(o.nodeValue,l)),o||kr(t,!0)}else o=os(o).createTextNode(c),o[ln]=t,t.stateNode=o}return yo(t),null;case 31:if(l=t.memoizedState,o===null||o.memoizedState!==null){if(c=Va(t),l!==null){if(o===null){if(!c)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),o=!1}else l=Pd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return t.flags&256?(Pn(t),t):(Pn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return yo(t),null;case 13:if(c=t.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(f=Va(t),c!==null&&c.dehydrated!==null){if(o===null){if(!f)throw Error(i(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),f=!1}else f=Pd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Pn(t),t):(Pn(t),null)}return Pn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=c!==null,o=o!==null&&o.memoizedState!==null,l&&(c=t.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==f&&(c.flags|=2048)),l!==o&&l&&(t.child.flags|=8192),Uc(t,t.updateQueue),yo(t),null);case 4:return _o(),o===null&&af(t.stateNode.containerInfo),yo(t),null;case 10:return Ft(t.type),yo(t),null;case 19:if(P(Uo),c=t.memoizedState,c===null)return yo(t),null;if(f=(t.flags&128)!==0,b=c.rendering,b===null)if(f)ti(c,!1);else{if(Bo!==0||o!==null&&(o.flags&128)!==0)for(o=t.child;o!==null;){if(b=Tc(o),b!==null){for(t.flags|=128,ti(c,!1),o=b.updateQueue,t.updateQueue=o,Uc(t,o),t.subtreeFlags=0,o=l,l=t.child;l!==null;)Uh(l,o),l=l.sibling;return le(Uo,Uo.current&1|2),We&&Ut(t,c.treeForkCount),t.child}o=o.sibling}c.tail!==null&&te()>qc&&(t.flags|=128,f=!0,ti(c,!1),t.lanes=4194304)}else{if(!f)if(o=Tc(b),o!==null){if(t.flags|=128,f=!0,o=o.updateQueue,t.updateQueue=o,Uc(t,o),ti(c,!0),c.tail===null&&c.tailMode==="hidden"&&!b.alternate&&!We)return yo(t),null}else 2*te()-c.renderingStartTime>qc&&l!==536870912&&(t.flags|=128,f=!0,ti(c,!1),t.lanes=4194304);c.isBackwards?(b.sibling=t.child,t.child=b):(o=c.last,o!==null?o.sibling=b:t.child=b,c.last=b)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=te(),o.sibling=null,l=Uo.current,le(Uo,f?l&1|2:l&1),We&&Ut(t,c.treeForkCount),o):(yo(t),null);case 22:case 23:return Pn(t),lu(),c=t.memoizedState!==null,o!==null?o.memoizedState!==null!==c&&(t.flags|=8192):c&&(t.flags|=8192),c?(l&536870912)!==0&&(t.flags&128)===0&&(yo(t),t.subtreeFlags&6&&(t.flags|=8192)):yo(t),l=t.updateQueue,l!==null&&Uc(t,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),c=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(c=t.memoizedState.cachePool.pool),c!==l&&(t.flags|=2048),o!==null&&P(la),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(Fo),yo(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function N2(o,t){switch(qd(t),t.tag){case 1:return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 3:return Ft(Fo),_o(),o=t.flags,(o&65536)!==0&&(o&128)===0?(t.flags=o&-65537|128,t):null;case 26:case 27:case 5:return jt(t),null;case 31:if(t.memoizedState!==null){if(Pn(t),t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 13:if(Pn(t),o=t.memoizedState,o!==null&&o.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 19:return P(Uo),null;case 4:return _o(),null;case 10:return Ft(t.type),null;case 22:case 23:return Pn(t),lu(),o!==null&&P(la),o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 24:return Ft(Fo),null;case 25:return null;default:return null}}function bk(o,t){switch(qd(t),t.tag){case 3:Ft(Fo),_o();break;case 26:case 27:case 5:jt(t);break;case 4:_o();break;case 31:t.memoizedState!==null&&Pn(t);break;case 13:Pn(t);break;case 19:P(Uo);break;case 10:Ft(t.type);break;case 22:case 23:Pn(t),lu(),o!==null&&P(la);break;case 24:Ft(Fo)}}function ri(o,t){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var f=c.next;l=f;do{if((l.tag&o)===o){c=void 0;var b=l.create,k=l.inst;c=b(),k.destroy=c}l=l.next}while(l!==f)}}catch(y){uo(t,t.return,y)}}function zr(o,t,l){try{var c=t.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var b=f.next;c=b;do{if((c.tag&o)===o){var k=c.inst,y=k.destroy;if(y!==void 0){k.destroy=void 0,f=t;var A=l,U=y;try{U()}catch(Y){uo(f,A,Y)}}}c=c.next}while(c!==b)}}catch(Y){uo(t,t.return,Y)}}function mk(o){var t=o.updateQueue;if(t!==null){var l=o.stateNode;try{rp(t,l)}catch(c){uo(o,o.return,c)}}}function hk(o,t,l){l.props=ua(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(c){uo(o,t,c)}}function ai(o,t){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var c=o.stateNode;break;case 30:c=o.stateNode;break;default:c=o.stateNode}typeof l=="function"?o.refCleanup=l(c):l.current=c}}catch(f){uo(o,t,f)}}function Et(o,t){var l=o.ref,c=o.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(f){uo(o,t,f)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){uo(o,t,f)}else l.current=null}function pk(o){var t=o.type,l=o.memoizedProps,c=o.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(f){uo(o,o.return,f)}}function Mu(o,t,l){try{var c=o.stateNode;nz(c,o.type,l,t),c[En]=t}catch(f){uo(o,o.return,f)}}function kk(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Lr(o.type)||o.tag===4}function Iu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||kk(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Lr(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Uu(o,t,l){var c=o.tag;if(c===5||c===6)o=o.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(o),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Dt));else if(c!==4&&(c===27&&Lr(o.type)&&(l=o.stateNode,t=null),o=o.child,o!==null))for(Uu(o,t,l),o=o.sibling;o!==null;)Uu(o,t,l),o=o.sibling}function Hc(o,t,l){var c=o.tag;if(c===5||c===6)o=o.stateNode,t?l.insertBefore(o,t):l.appendChild(o);else if(c!==4&&(c===27&&Lr(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(Hc(o,t,l),o=o.sibling;o!==null;)Hc(o,t,l),o=o.sibling}function vk(o){var t=o.stateNode,l=o.memoizedProps;try{for(var c=o.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);un(t,c,l),t[ln]=o,t[En]=l}catch(b){uo(o,o.return,b)}}var Pt=!1,qo=!1,Hu=!1,gk=typeof WeakSet=="function"?WeakSet:Set,tn=null;function B2(o,t){if(o=o.containerInfo,sf=cs,o=Lh(o),Nd(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var f=c.anchorOffset,b=c.focusNode;c=c.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,y=-1,A=-1,U=0,Y=0,Q=o,K=null;o:for(;;){for(var q;Q!==l||f!==0&&Q.nodeType!==3||(y=k+f),Q!==b||c!==0&&Q.nodeType!==3||(A=k+c),Q.nodeType===3&&(k+=Q.nodeValue.length),(q=Q.firstChild)!==null;)K=Q,Q=q;for(;;){if(Q===o)break o;if(K===l&&++U===f&&(y=k),K===b&&++Y===c&&(A=k),(q=Q.nextSibling)!==null)break;Q=K,K=Q.parentNode}Q=q}l=y===-1||A===-1?null:{start:y,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(df={focusedElem:o,selectionRange:l},cs=!1,tn=t;tn!==null;)if(t=tn,o=t.child,(t.subtreeFlags&1028)!==0&&o!==null)o.return=t,tn=o;else for(;tn!==null;){switch(t=tn,b=t.alternate,o=t.flags,t.tag){case 0:if((o&4)!==0&&(o=t.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)f=o[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,l=t,f=b.memoizedProps,b=b.memoizedState,c=l.stateNode;try{var pe=ua(l.type,f);o=c.getSnapshotBeforeUpdate(pe,b),c.__reactInternalSnapshotBeforeUpdate=o}catch(Ae){uo(l,l.return,Ae)}}break;case 3:if((o&1024)!==0){if(o=t.stateNode.containerInfo,l=o.nodeType,l===9)bf(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":bf(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=t.sibling,o!==null){o.return=t.return,tn=o;break}tn=t.return}}function _k(o,t,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:Yt(o,l),c&4&&ri(5,l);break;case 1:if(Yt(o,l),c&4)if(o=l.stateNode,t===null)try{o.componentDidMount()}catch(k){uo(l,l.return,k)}else{var f=ua(l.type,t.memoizedProps);t=t.memoizedState;try{o.componentDidUpdate(f,t,o.__reactInternalSnapshotBeforeUpdate)}catch(k){uo(l,l.return,k)}}c&64&&mk(l),c&512&&ai(l,l.return);break;case 3:if(Yt(o,l),c&64&&(o=l.updateQueue,o!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{rp(o,t)}catch(k){uo(l,l.return,k)}}break;case 27:t===null&&c&4&&vk(l);case 26:case 5:Yt(o,l),t===null&&c&4&&pk(l),c&512&&ai(l,l.return);break;case 12:Yt(o,l);break;case 31:Yt(o,l),c&4&&wk(o,l);break;case 13:Yt(o,l),c&4&&zk(o,l),c&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=V2.bind(null,l),dz(o,l))));break;case 22:if(c=l.memoizedState!==null||Pt,!c){t=t!==null&&t.memoizedState!==null||qo,f=Pt;var b=qo;Pt=c,(qo=t)&&!b?Jt(o,l,(l.subtreeFlags&8772)!==0):Yt(o,l),Pt=f,qo=b}break;case 30:break;default:Yt(o,l)}}function xk(o){var t=o.alternate;t!==null&&(o.alternate=null,xk(t)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(t=o.stateNode,t!==null&&kd(t)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var So=null,On=!1;function Gt(o,t,l){for(l=l.child;l!==null;)yk(o,t,l),l=l.sibling}function yk(o,t,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Yr,l)}catch{}switch(l.tag){case 26:qo||Et(l,t),Gt(o,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qo||Et(l,t);var c=So,f=On;Lr(l.type)&&(So=l.stateNode,On=!1),Gt(o,t,l),mi(l.stateNode),So=c,On=f;break;case 5:qo||Et(l,t);case 6:if(c=So,f=On,So=null,Gt(o,t,l),So=c,On=f,So!==null)if(On)try{(So.nodeType===9?So.body:So.nodeName==="HTML"?So.ownerDocument.body:So).removeChild(l.stateNode)}catch(b){uo(l,t,b)}else try{So.removeChild(l.stateNode)}catch(b){uo(l,t,b)}break;case 18:So!==null&&(On?(o=So,mv(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),ul(o)):mv(So,l.stateNode));break;case 4:c=So,f=On,So=l.stateNode.containerInfo,On=!0,Gt(o,t,l),So=c,On=f;break;case 0:case 11:case 14:case 15:zr(2,l,t),qo||zr(4,l,t),Gt(o,t,l);break;case 1:qo||(Et(l,t),c=l.stateNode,typeof c.componentWillUnmount=="function"&&hk(l,t,c)),Gt(o,t,l);break;case 21:Gt(o,t,l);break;case 22:qo=(c=qo)||l.memoizedState!==null,Gt(o,t,l),qo=c;break;default:Gt(o,t,l)}}function wk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ul(o)}catch(l){uo(t,t.return,l)}}}function zk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ul(o)}catch(l){uo(t,t.return,l)}}function R2(o){switch(o.tag){case 31:case 13:case 19:var t=o.stateNode;return t===null&&(t=o.stateNode=new gk),t;case 22:return o=o.stateNode,t=o._retryCache,t===null&&(t=o._retryCache=new gk),t;default:throw Error(i(435,o.tag))}}function Fc(o,t){var l=R2(o);t.forEach(function(c){if(!l.has(c)){l.add(c);var f=q2.bind(null,o,c);c.then(f,f)}})}function $n(o,t){var l=t.deletions;if(l!==null)for(var c=0;c<l.length;c++){var f=l[c],b=o,k=t,y=k;e:for(;y!==null;){switch(y.tag){case 27:if(Lr(y.type)){So=y.stateNode,On=!1;break e}break;case 5:So=y.stateNode,On=!1;break e;case 3:case 4:So=y.stateNode.containerInfo,On=!0;break e}y=y.return}if(So===null)throw Error(i(160));yk(b,k,f),So=null,On=!1,b=f.alternate,b!==null&&(b.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sk(t,o),t=t.sibling}var xt=null;function Sk(o,t){var l=o.alternate,c=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:$n(t,o),Nn(o),c&4&&(zr(3,o,o.return),ri(3,o),zr(5,o,o.return));break;case 1:$n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),c&64&&Pt&&(o=o.updateQueue,o!==null&&(c=o.callbacks,c!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var f=xt;if($n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),c&4){var b=l!==null?l.memoizedState:null;if(c=o.memoizedState,l===null)if(c===null)if(o.stateNode===null){e:{c=o.type,l=o.memoizedProps,f=f.ownerDocument||f;o:switch(c){case"title":b=f.getElementsByTagName("title")[0],(!b||b[Ol]||b[ln]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=f.createElement(c),f.head.insertBefore(b,f.querySelector("head > title"))),un(b,c,l),b[ln]=o,nn(b),c=b;break e;case"link":var k=Sv("link","href",f).get(c+(l.href||""));if(k){for(var y=0;y<k.length;y++)if(b=k[y],b.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&b.getAttribute("rel")===(l.rel==null?null:l.rel)&&b.getAttribute("title")===(l.title==null?null:l.title)&&b.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){k.splice(y,1);break o}}b=f.createElement(c),un(b,c,l),f.head.appendChild(b);break;case"meta":if(k=Sv("meta","content",f).get(c+(l.content||""))){for(y=0;y<k.length;y++)if(b=k[y],b.getAttribute("content")===(l.content==null?null:""+l.content)&&b.getAttribute("name")===(l.name==null?null:l.name)&&b.getAttribute("property")===(l.property==null?null:l.property)&&b.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute("charset")===(l.charSet==null?null:l.charSet)){k.splice(y,1);break o}}b=f.createElement(c),un(b,c,l),f.head.appendChild(b);break;default:throw Error(i(468,c))}b[ln]=o,nn(b),c=b}o.stateNode=c}else jv(f,o.type,o.stateNode);else o.stateNode=zv(f,c,o.memoizedProps);else b!==c?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,c===null?jv(f,o.type,o.stateNode):zv(f,c,o.memoizedProps)):c===null&&o.stateNode!==null&&Mu(o,o.memoizedProps,l.memoizedProps)}break;case 27:$n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),l!==null&&c&4&&Mu(o,o.memoizedProps,l.memoizedProps);break;case 5:if($n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),o.flags&32){f=o.stateNode;try{Na(f,"")}catch(pe){uo(o,o.return,pe)}}c&4&&o.stateNode!=null&&(f=o.memoizedProps,Mu(o,f,l!==null?l.memoizedProps:f)),c&1024&&(Hu=!0);break;case 6:if($n(t,o),Nn(o),c&4){if(o.stateNode===null)throw Error(i(162));c=o.memoizedProps,l=o.stateNode;try{l.nodeValue=c}catch(pe){uo(o,o.return,pe)}}break;case 3:if(rs=null,f=xt,xt=ns(t.containerInfo),$n(t,o),xt=f,Nn(o),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(pe){uo(o,o.return,pe)}Hu&&(Hu=!1,jk(o));break;case 4:c=xt,xt=ns(o.stateNode.containerInfo),$n(t,o),Nn(o),xt=c;break;case 12:$n(t,o),Nn(o);break;case 31:$n(t,o),Nn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Fc(o,c)));break;case 13:$n(t,o),Nn(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Vc=te()),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Fc(o,c)));break;case 22:f=o.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,U=Pt,Y=qo;if(Pt=U||f,qo=Y||A,$n(t,o),qo=Y,Pt=U,Nn(o),c&8192)e:for(t=o.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||A||Pt||qo||fa(o)),l=null,t=o;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(b=A.stateNode,f)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{y=A.stateNode;var Q=A.memoizedProps.style,K=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===18){if(l===null){A=t;try{var q=A.stateNode;f?hv(q,!0):hv(A.stateNode,!1)}catch(pe){uo(A,A.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===o)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}c&4&&(c=o.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,Fc(o,l))));break;case 19:$n(t,o),Nn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Fc(o,c)));break;case 30:break;case 21:break;default:$n(t,o),Nn(o)}}function Nn(o){var t=o.flags;if(t&2){try{for(var l,c=o.return;c!==null;){if(kk(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,b=Iu(o);Hc(o,b,f);break;case 5:var k=l.stateNode;l.flags&32&&(Na(k,""),l.flags&=-33);var y=Iu(o);Hc(o,y,k);break;case 3:case 4:var A=l.stateNode.containerInfo,U=Iu(o);Uu(o,U,A);break;default:throw Error(i(161))}}catch(Y){uo(o,o.return,Y)}o.flags&=-3}t&4096&&(o.flags&=-4097)}function jk(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var t=o;jk(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),o=o.sibling}}function Yt(o,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_k(o,t.alternate,t),t=t.sibling}function fa(o){for(o=o.child;o!==null;){var t=o;switch(t.tag){case 0:case 11:case 14:case 15:zr(4,t,t.return),fa(t);break;case 1:Et(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&hk(t,t.return,l),fa(t);break;case 27:mi(t.stateNode);case 26:case 5:Et(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}o=o.sibling}}function Jt(o,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var c=t.alternate,f=o,b=t,k=b.flags;switch(b.tag){case 0:case 11:case 15:Jt(f,b,l),ri(4,b);break;case 1:if(Jt(f,b,l),c=b,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){uo(c,c.return,U)}if(c=b,f=c.updateQueue,f!==null){var y=c.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)tp(A[f],y)}catch(U){uo(c,c.return,U)}}l&&k&64&&mk(b),ai(b,b.return);break;case 27:vk(b);case 26:case 5:Jt(f,b,l),l&&c===null&&k&4&&pk(b),ai(b,b.return);break;case 12:Jt(f,b,l);break;case 31:Jt(f,b,l),l&&k&4&&wk(f,b);break;case 13:Jt(f,b,l),l&&k&4&&zk(f,b);break;case 22:b.memoizedState===null&&Jt(f,b,l),ai(b,b.return);break;case 30:break;default:Jt(f,b,l)}t=t.sibling}}function Fu(o,t){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&ql(l))}function Ku(o,t){o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&ql(o))}function yt(o,t,l,c){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tk(o,t,l,c),t=t.sibling}function Tk(o,t,l,c){var f=t.flags;switch(t.tag){case 0:case 11:case 15:yt(o,t,l,c),f&2048&&ri(9,t);break;case 1:yt(o,t,l,c);break;case 3:yt(o,t,l,c),f&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&ql(o)));break;case 12:if(f&2048){yt(o,t,l,c),o=t.stateNode;try{var b=t.memoizedProps,k=b.id,y=b.onPostCommit;typeof y=="function"&&y(k,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){uo(t,t.return,A)}}else yt(o,t,l,c);break;case 31:yt(o,t,l,c);break;case 13:yt(o,t,l,c);break;case 23:break;case 22:b=t.stateNode,k=t.alternate,t.memoizedState!==null?b._visibility&2?yt(o,t,l,c):li(o,t):b._visibility&2?yt(o,t,l,c):(b._visibility|=2,el(o,t,l,c,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Fu(k,t);break;case 24:yt(o,t,l,c),f&2048&&Ku(t.alternate,t);break;default:yt(o,t,l,c)}}function el(o,t,l,c,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var b=o,k=t,y=l,A=c,U=k.flags;switch(k.tag){case 0:case 11:case 15:el(b,k,y,A,f),ri(8,k);break;case 23:break;case 22:var Y=k.stateNode;k.memoizedState!==null?Y._visibility&2?el(b,k,y,A,f):li(b,k):(Y._visibility|=2,el(b,k,y,A,f)),f&&U&2048&&Fu(k.alternate,k);break;case 24:el(b,k,y,A,f),f&&U&2048&&Ku(k.alternate,k);break;default:el(b,k,y,A,f)}t=t.sibling}}function li(o,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=o,c=t,f=c.flags;switch(c.tag){case 22:li(l,c),f&2048&&Fu(c.alternate,c);break;case 24:li(l,c),f&2048&&Ku(c.alternate,c);break;default:li(l,c)}t=t.sibling}}var ii=8192;function ol(o,t,l){if(o.subtreeFlags&ii)for(o=o.child;o!==null;)Ak(o,t,l),o=o.sibling}function Ak(o,t,l){switch(o.tag){case 26:ol(o,t,l),o.flags&ii&&o.memoizedState!==null&&yz(l,xt,o.memoizedState,o.memoizedProps);break;case 5:ol(o,t,l);break;case 3:case 4:var c=xt;xt=ns(o.stateNode.containerInfo),ol(o,t,l),xt=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=ii,ii=16777216,ol(o,t,l),ii=c):ol(o,t,l));break;default:ol(o,t,l)}}function Ck(o){var t=o.alternate;if(t!==null&&(o=t.child,o!==null)){t.child=null;do t=o.sibling,o.sibling=null,o=t;while(o!==null)}}function ci(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var c=t[l];tn=c,Lk(c,o)}Ck(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Ek(o),o=o.sibling}function Ek(o){switch(o.tag){case 0:case 11:case 15:ci(o),o.flags&2048&&zr(9,o,o.return);break;case 3:ci(o);break;case 12:ci(o);break;case 22:var t=o.stateNode;o.memoizedState!==null&&t._visibility&2&&(o.return===null||o.return.tag!==13)?(t._visibility&=-3,Kc(o)):ci(o);break;default:ci(o)}}function Kc(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var c=t[l];tn=c,Lk(c,o)}Ck(o)}for(o=o.child;o!==null;){switch(t=o,t.tag){case 0:case 11:case 15:zr(8,t,t.return),Kc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Kc(t));break;default:Kc(t)}o=o.sibling}}function Lk(o,t){for(;tn!==null;){var l=tn;switch(l.tag){case 0:case 11:case 15:zr(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:ql(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,tn=c;else e:for(l=o;tn!==null;){c=tn;var f=c.sibling,b=c.return;if(xk(c),c===l){tn=null;break e}if(f!==null){f.return=b,tn=f;break e}tn=b}}}var D2={getCacheForType:function(o){var t=sn(Fo),l=t.data.get(o);return l===void 0&&(l=o(),t.data.set(o,l)),l},cacheSignal:function(){return sn(Fo).controller.signal}},M2=typeof WeakMap=="function"?WeakMap:Map,co=0,go=null,qe=null,Ye=0,so=0,Gn=null,Sr=!1,nl=!1,Vu=!1,Xt=0,Bo=0,jr=0,ba=0,qu=0,Yn=0,tl=0,si=null,Bn=null,Zu=!1,Vc=0,Ok=0,qc=1/0,Zc=null,Tr=null,Wo=0,Ar=null,rl=null,Wt=0,Pu=0,Gu=null,$k=null,di=0,Yu=null;function Jn(){return(co&2)!==0&&Ye!==0?Ye&-Ye:M.T!==null?of():Ym()}function Nk(){if(Yn===0)if((Ye&536870912)===0||We){var o=ec;ec<<=1,(ec&3932160)===0&&(ec=262144),Yn=o}else Yn=536870912;return o=Zn.current,o!==null&&(o.flags|=32),Yn}function Rn(o,t,l){(o===go&&(so===2||so===9)||o.cancelPendingCommit!==null)&&(al(o,0),Cr(o,Ye,Yn,!1)),Ll(o,l),((co&2)===0||o!==go)&&(o===go&&((co&2)===0&&(ba|=l),Bo===4&&Cr(o,Ye,Yn,!1)),Lt(o))}function Bk(o,t,l){if((co&6)!==0)throw Error(i(327));var c=!l&&(t&127)===0&&(t&o.expiredLanes)===0||El(o,t),f=c?H2(o,t):Xu(o,t,!0),b=c;do{if(f===0){nl&&!c&&Cr(o,t,0,!1);break}else{if(l=o.current.alternate,b&&!I2(l)){f=Xu(o,t,!1),b=!1;continue}if(f===2){if(b=t,o.errorRecoveryDisabledLanes&b)var k=0;else k=o.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){t=k;e:{var y=o;f=si;var A=y.current.memoizedState.isDehydrated;if(A&&(al(y,k).flags|=256),k=Xu(y,k,!1),k!==2){if(Vu&&!A){y.errorRecoveryDisabledLanes|=b,ba|=b,f=4;break e}b=Bn,Bn=f,b!==null&&(Bn===null?Bn=b:Bn.push.apply(Bn,b))}f=k}if(b=!1,f!==2)continue}}if(f===1){al(o,0),Cr(o,t,0,!0);break}e:{switch(c=o,b=f,b){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cr(c,t,Yn,!Sr);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(f=Vc+300-te(),10<f)){if(Cr(c,t,Yn,!Sr),nc(c,0,!0)!==0)break e;Wt=t,c.timeoutHandle=fv(Rk.bind(null,c,l,Bn,Zc,Zu,t,Yn,ba,tl,Sr,b,"Throttled",-0,0),f);break e}Rk(c,l,Bn,Zc,Zu,t,Yn,ba,tl,Sr,b,null,-0,0)}}break}while(!0);Lt(o)}function Rk(o,t,l,c,f,b,k,y,A,U,Y,Q,K,q){if(o.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Dt},Ak(t,b,Q);var pe=(b&62914560)===b?Vc-te():(b&4194048)===b?Ok-te():0;if(pe=wz(Q,pe),pe!==null){Wt=b,o.cancelPendingCommit=pe(Vk.bind(null,o,t,b,l,c,f,k,y,A,Y,Q,null,K,q)),Cr(o,b,k,!U);return}}Vk(o,t,b,l,c,f,k,y,A)}function I2(o){for(var t=o;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var f=l[c],b=f.getSnapshot;f=f.value;try{if(!Vn(b(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cr(o,t,l,c){t&=~qu,t&=~ba,o.suspendedLanes|=t,o.pingedLanes&=~t,c&&(o.warmLanes|=t),c=o.expirationTimes;for(var f=t;0<f;){var b=31-wn(f),k=1<<b;c[b]=-1,f&=~k}l!==0&&Zm(o,l,t)}function Pc(){return(co&6)===0?(ui(0),!1):!0}function Ju(){if(qe!==null){if(so===0)var o=qe.return;else o=qe,Ht=ra=null,fu(o),Ya=null,Pl=0,o=qe;for(;o!==null;)bk(o.alternate,o),o=o.return;qe=null}}function al(o,t){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,az(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),Wt=0,Ju(),go=o,qe=l=It(o.current,null),Ye=t,so=0,Gn=null,Sr=!1,nl=El(o,t),Vu=!1,tl=Yn=qu=ba=jr=Bo=0,Bn=si=null,Zu=!1,(t&8)!==0&&(t|=t&32);var c=o.entangledLanes;if(c!==0)for(o=o.entanglements,c&=t;0<c;){var f=31-wn(c),b=1<<f;t|=o[f],c&=~b}return Xt=t,mc(),l}function Dk(o,t){Me=null,M.H=oi,t===Ga||t===yc?(t=Qh(),so=3):t===eu?(t=Qh(),so=4):so=t===Au?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gn=t,qe===null&&(Bo=1,Rc(o,st(t,o.current)))}function Mk(){var o=Zn.current;return o===null?!0:(Ye&4194048)===Ye?bt===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?o===bt:!1}function Ik(){var o=M.H;return M.H=oi,o===null?oi:o}function Uk(){var o=M.A;return M.A=D2,o}function Gc(){Bo=4,Sr||(Ye&4194048)!==Ye&&Zn.current!==null||(nl=!0),(jr&134217727)===0&&(ba&134217727)===0||go===null||Cr(go,Ye,Yn,!1)}function Xu(o,t,l){var c=co;co|=2;var f=Ik(),b=Uk();(go!==o||Ye!==t)&&(Zc=null,al(o,t)),t=!1;var k=Bo;e:do try{if(so!==0&&qe!==null){var y=qe,A=Gn;switch(so){case 8:Ju(),k=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(t=!0);var U=so;if(so=0,Gn=null,ll(o,y,A,U),l&&nl){k=0;break e}break;default:U=so,so=0,Gn=null,ll(o,y,A,U)}}U2(),k=Bo;break}catch(Y){Dk(o,Y)}while(!0);return t&&o.shellSuspendCounter++,Ht=ra=null,co=c,M.H=f,M.A=b,qe===null&&(go=null,Ye=0,mc()),k}function U2(){for(;qe!==null;)Hk(qe)}function H2(o,t){var l=co;co|=2;var c=Ik(),f=Uk();go!==o||Ye!==t?(Zc=null,qc=te()+500,al(o,t)):nl=El(o,t);e:do try{if(so!==0&&qe!==null){t=qe;var b=Gn;o:switch(so){case 1:so=0,Gn=null,ll(o,t,b,1);break;case 2:case 9:if(Xh(b)){so=0,Gn=null,Fk(t);break}t=function(){so!==2&&so!==9||go!==o||(so=7),Lt(o)},b.then(t,t);break e;case 3:so=7;break e;case 4:so=5;break e;case 7:Xh(b)?(so=0,Gn=null,Fk(t)):(so=0,Gn=null,ll(o,t,b,7));break;case 5:var k=null;switch(qe.tag){case 26:k=qe.memoizedState;case 5:case 27:var y=qe;if(k?Tv(k):y.stateNode.complete){so=0,Gn=null;var A=y.sibling;if(A!==null)qe=A;else{var U=y.return;U!==null?(qe=U,Yc(U)):qe=null}break o}}so=0,Gn=null,ll(o,t,b,5);break;case 6:so=0,Gn=null,ll(o,t,b,6);break;case 8:Ju(),Bo=6;break e;default:throw Error(i(462))}}F2();break}catch(Y){Dk(o,Y)}while(!0);return Ht=ra=null,M.H=c,M.A=f,co=l,qe!==null?0:(go=null,Ye=0,mc(),Bo)}function F2(){for(;qe!==null&&!B();)Hk(qe)}function Hk(o){var t=uk(o.alternate,o,Xt);o.memoizedProps=o.pendingProps,t===null?Yc(o):qe=t}function Fk(o){var t=o,l=t.alternate;switch(t.tag){case 15:case 0:t=ak(l,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=ak(l,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:fu(t);default:bk(l,t),t=qe=Uh(t,Xt),t=uk(l,t,Xt)}o.memoizedProps=o.pendingProps,t===null?Yc(o):qe=t}function ll(o,t,l,c){Ht=ra=null,fu(t),Ya=null,Pl=0;var f=t.return;try{if(E2(o,f,t,l,Ye)){Bo=1,Rc(o,st(l,o.current)),qe=null;return}}catch(b){if(f!==null)throw qe=f,b;Bo=1,Rc(o,st(l,o.current)),qe=null;return}t.flags&32768?(We||c===1?o=!0:nl||(Ye&536870912)!==0?o=!1:(Sr=o=!0,(c===2||c===9||c===3||c===6)&&(c=Zn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Kk(t,o)):Yc(t)}function Yc(o){var t=o;do{if((t.flags&32768)!==0){Kk(t,Sr);return}o=t.return;var l=$2(t.alternate,t,Xt);if(l!==null){qe=l;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=o}while(t!==null);Bo===0&&(Bo=5)}function Kk(o,t){do{var l=N2(o.alternate,o);if(l!==null){l.flags&=32767,qe=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(o=o.sibling,o!==null)){qe=o;return}qe=o=l}while(o!==null);Bo=6,qe=null}function Vk(o,t,l,c,f,b,k,y,A){o.cancelPendingCommit=null;do Jc();while(Wo!==0);if((co&6)!==0)throw Error(i(327));if(t!==null){if(t===o.current)throw Error(i(177));if(b=t.lanes|t.childLanes,b|=Id,xw(o,l,b,k,y,A),o===go&&(qe=go=null,Ye=0),rl=t,Ar=o,Wt=l,Pu=b,Gu=f,$k=c,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,Z2(eo,function(){return Yk(),null})):(o.callbackNode=null,o.callbackPriority=0),c=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||c){c=M.T,M.T=null,f=G.p,G.p=2,k=co,co|=4;try{B2(o,t,l)}finally{co=k,G.p=f,M.T=c}}Wo=1,qk(),Zk(),Pk()}}function qk(){if(Wo===1){Wo=0;var o=Ar,t=rl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var c=G.p;G.p=2;var f=co;co|=4;try{Sk(t,o);var b=df,k=Lh(o.containerInfo),y=b.focusedElem,A=b.selectionRange;if(k!==y&&y&&y.ownerDocument&&Eh(y.ownerDocument.documentElement,y)){if(A!==null&&Nd(y)){var U=A.start,Y=A.end;if(Y===void 0&&(Y=U),"selectionStart"in y)y.selectionStart=U,y.selectionEnd=Math.min(Y,y.value.length);else{var Q=y.ownerDocument||document,K=Q&&Q.defaultView||window;if(K.getSelection){var q=K.getSelection(),pe=y.textContent.length,Ae=Math.min(A.start,pe),vo=A.end===void 0?Ae:Math.min(A.end,pe);!q.extend&&Ae>vo&&(k=vo,vo=Ae,Ae=k);var R=Ch(y,Ae),L=Ch(y,vo);if(R&&L&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==L.node||q.focusOffset!==L.offset)){var I=Q.createRange();I.setStart(R.node,R.offset),q.removeAllRanges(),Ae>vo?(q.addRange(I),q.extend(L.node,L.offset)):(I.setEnd(L.node,L.offset),q.addRange(I))}}}}for(Q=[],q=y;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Q.length;y++){var J=Q[y];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}cs=!!sf,df=sf=null}finally{co=f,G.p=c,M.T=l}}o.current=t,Wo=2}}function Zk(){if(Wo===2){Wo=0;var o=Ar,t=rl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var c=G.p;G.p=2;var f=co;co|=4;try{_k(o,t.alternate,t)}finally{co=f,G.p=c,M.T=l}}Wo=3}}function Pk(){if(Wo===4||Wo===3){Wo=0,F();var o=Ar,t=rl,l=Wt,c=$k;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Wo=5:(Wo=0,rl=Ar=null,Gk(o,o.pendingLanes));var f=o.pendingLanes;if(f===0&&(Tr=null),hd(l),t=t.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Yr,t,void 0,(t.current.flags&128)===128)}catch{}if(c!==null){t=M.T,f=G.p,G.p=2,M.T=null;try{for(var b=o.onRecoverableError,k=0;k<c.length;k++){var y=c[k];b(y.value,{componentStack:y.stack})}}finally{M.T=t,G.p=f}}(Wt&3)!==0&&Jc(),Lt(o),f=o.pendingLanes,(l&261930)!==0&&(f&42)!==0?o===Yu?di++:(di=0,Yu=o):di=0,ui(0)}}function Gk(o,t){(o.pooledCacheLanes&=t)===0&&(t=o.pooledCache,t!=null&&(o.pooledCache=null,ql(t)))}function Jc(){return qk(),Zk(),Pk(),Yk()}function Yk(){if(Wo!==5)return!1;var o=Ar,t=Pu;Pu=0;var l=hd(Wt),c=M.T,f=G.p;try{G.p=32>l?32:l,M.T=null,l=Gu,Gu=null;var b=Ar,k=Wt;if(Wo=0,rl=Ar=null,Wt=0,(co&6)!==0)throw Error(i(331));var y=co;if(co|=4,Ek(b.current),Tk(b,b.current,k,l),co=y,ui(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Yr,b)}catch{}return!0}finally{G.p=f,M.T=c,Gk(o,t)}}function Jk(o,t,l){t=st(l,t),t=Tu(o.stateNode,t,2),o=xr(o,t,2),o!==null&&(Ll(o,2),Lt(o))}function uo(o,t,l){if(o.tag===3)Jk(o,o,l);else for(;t!==null;){if(t.tag===3){Jk(t,o,l);break}else if(t.tag===1){var c=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Tr===null||!Tr.has(c))){o=st(l,o),l=Xp(2),c=xr(t,l,2),c!==null&&(Wp(l,c,t,o),Ll(c,2),Lt(c));break}}t=t.return}}function Wu(o,t,l){var c=o.pingCache;if(c===null){c=o.pingCache=new M2;var f=new Set;c.set(t,f)}else f=c.get(t),f===void 0&&(f=new Set,c.set(t,f));f.has(l)||(Vu=!0,f.add(l),o=K2.bind(null,o,t,l),t.then(o,o))}function K2(o,t,l){var c=o.pingCache;c!==null&&c.delete(t),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,go===o&&(Ye&l)===l&&(Bo===4||Bo===3&&(Ye&62914560)===Ye&&300>te()-Vc?(co&2)===0&&al(o,0):qu|=l,tl===Ye&&(tl=0)),Lt(o)}function Xk(o,t){t===0&&(t=qm()),o=oa(o,t),o!==null&&(Ll(o,t),Lt(o))}function V2(o){var t=o.memoizedState,l=0;t!==null&&(l=t.retryLane),Xk(o,l)}function q2(o,t){var l=0;switch(o.tag){case 31:case 13:var c=o.stateNode,f=o.memoizedState;f!==null&&(l=f.retryLane);break;case 19:c=o.stateNode;break;case 22:c=o.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(t),Xk(o,l)}function Z2(o,t){return lo(o,t)}var Xc=null,il=null,Qu=!1,Wc=!1,ef=!1,Er=0;function Lt(o){o!==il&&o.next===null&&(il===null?Xc=il=o:il=il.next=o),Wc=!0,Qu||(Qu=!0,G2())}function ui(o,t){if(!ef&&Wc){ef=!0;do for(var l=!1,c=Xc;c!==null;){if(o!==0){var f=c.pendingLanes;if(f===0)var b=0;else{var k=c.suspendedLanes,y=c.pingedLanes;b=(1<<31-wn(42|o)+1)-1,b&=f&~(k&~y),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,ov(c,b))}else b=Ye,b=nc(c,c===go?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||El(c,b)||(l=!0,ov(c,b));c=c.next}while(l);ef=!1}}function P2(){Wk()}function Wk(){Wc=Qu=!1;var o=0;Er!==0&&rz()&&(o=Er);for(var t=te(),l=null,c=Xc;c!==null;){var f=c.next,b=Qk(c,t);b===0?(c.next=null,l===null?Xc=f:l.next=f,f===null&&(il=l)):(l=c,(o!==0||(b&3)!==0)&&(Wc=!0)),c=f}Wo!==0&&Wo!==5||ui(o),Er!==0&&(Er=0)}function Qk(o,t){for(var l=o.suspendedLanes,c=o.pingedLanes,f=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var k=31-wn(b),y=1<<k,A=f[k];A===-1?((y&l)===0||(y&c)!==0)&&(f[k]=_w(y,t)):A<=t&&(o.expiredLanes|=y),b&=~y}if(t=go,l=Ye,l=nc(o,o===t?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c=o.callbackNode,l===0||o===t&&(so===2||so===9)||o.cancelPendingCommit!==null)return c!==null&&c!==null&&T(c),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||El(o,l)){if(t=l&-l,t===o.callbackPriority)return t;switch(c!==null&&T(c),hd(l)){case 2:case 8:l=ve;break;case 32:l=eo;break;case 268435456:l=on;break;default:l=eo}return c=ev.bind(null,o),l=lo(l,c),o.callbackPriority=t,o.callbackNode=l,t}return c!==null&&c!==null&&T(c),o.callbackPriority=2,o.callbackNode=null,2}function ev(o,t){if(Wo!==0&&Wo!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(Jc()&&o.callbackNode!==l)return null;var c=Ye;return c=nc(o,o===go?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c===0?null:(Bk(o,c,t),Qk(o,te()),o.callbackNode!=null&&o.callbackNode===l?ev.bind(null,o):null)}function ov(o,t){if(Jc())return null;Bk(o,t,!0)}function G2(){lz(function(){(co&6)!==0?lo(oe,P2):Wk()})}function of(){if(Er===0){var o=Za;o===0&&(o=Qi,Qi<<=1,(Qi&261888)===0&&(Qi=256)),Er=o}return Er}function nv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:lc(""+o)}function tv(o,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,o.id&&l.setAttribute("form",o.id),t.parentNode.insertBefore(l,t),o=new FormData(o),l.parentNode.removeChild(l),o}function Y2(o,t,l,c,f){if(t==="submit"&&l&&l.stateNode===f){var b=nv((f[En]||null).action),k=c.submitter;k&&(t=(t=k[En]||null)?nv(t.formAction):k.getAttribute("formAction"),t!==null&&(b=t,k=null));var y=new dc("action","action",null,c,f);o.push({event:y,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Er!==0){var A=k?tv(f,k):new FormData(f);xu(l,{pending:!0,data:A,method:f.method,action:b},null,A)}}else typeof b=="function"&&(y.preventDefault(),A=k?tv(f,k):new FormData(f),xu(l,{pending:!0,data:A,method:f.method,action:b},b,A))},currentTarget:f}]})}}for(var nf=0;nf<Md.length;nf++){var tf=Md[nf],J2=tf.toLowerCase(),X2=tf[0].toUpperCase()+tf.slice(1);_t(J2,"on"+X2)}_t(Nh,"onAnimationEnd"),_t(Bh,"onAnimationIteration"),_t(Rh,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(b2,"onTransitionRun"),_t(m2,"onTransitionStart"),_t(h2,"onTransitionCancel"),_t(Dh,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),W2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function rv(o,t){t=(t&4)!==0;for(var l=0;l<o.length;l++){var c=o[l],f=c.event;c=c.listeners;e:{var b=void 0;if(t)for(var k=c.length-1;0<=k;k--){var y=c[k],A=y.instance,U=y.currentTarget;if(y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){bc(Y)}f.currentTarget=null,b=A}else for(k=0;k<c.length;k++){if(y=c[k],A=y.instance,U=y.currentTarget,y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){bc(Y)}f.currentTarget=null,b=A}}}}function Ze(o,t){var l=t[pd];l===void 0&&(l=t[pd]=new Set);var c=o+"__bubble";l.has(c)||(av(t,o,2,!1),l.add(c))}function rf(o,t,l){var c=0;t&&(c|=4),av(l,o,c,t)}var Qc="_reactListening"+Math.random().toString(36).slice(2);function af(o){if(!o[Qc]){o[Qc]=!0,Wm.forEach(function(l){l!=="selectionchange"&&(W2.has(l)||rf(l,!1,o),rf(l,!0,o))});var t=o.nodeType===9?o:o.ownerDocument;t===null||t[Qc]||(t[Qc]=!0,rf("selectionchange",!1,t))}}function av(o,t,l,c){switch(Nv(t)){case 2:var f=jz;break;case 8:f=Tz;break;default:f=xf}l=f.bind(null,t,l,o),f=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),c?f!==void 0?o.addEventListener(t,l,{capture:!0,passive:f}):o.addEventListener(t,l,!0):f!==void 0?o.addEventListener(t,l,{passive:f}):o.addEventListener(t,l,!1)}function lf(o,t,l,c,f){var b=c;if((t&1)===0&&(t&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var y=c.stateNode.containerInfo;if(y===f)break;if(k===4)for(k=c.return;k!==null;){var A=k.tag;if((A===3||A===4)&&k.stateNode.containerInfo===f)return;k=k.return}for(;y!==null;){if(k=Ca(y),k===null)return;if(A=k.tag,A===5||A===6||A===26||A===27){c=b=k;continue e}y=y.parentNode}}c=c.return}dh(function(){var U=b,Y=wd(l),Q=[];e:{var K=Mh.get(o);if(K!==void 0){var q=dc,pe=o;switch(o){case"keypress":if(cc(l)===0)break e;case"keydown":case"keyup":q=qw;break;case"focusin":pe="focus",q=Cd;break;case"focusout":pe="blur",q=Cd;break;case"beforeblur":case"afterblur":q=Cd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=$w;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Gw;break;case Nh:case Bh:case Rh:q=Rw;break;case Dh:q=Jw;break;case"scroll":case"scrollend":q=Lw;break;case"wheel":q=Ww;break;case"copy":case"cut":case"paste":q=Mw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=hh;break;case"toggle":case"beforetoggle":q=e2}var Ae=(t&4)!==0,vo=!Ae&&(o==="scroll"||o==="scrollend"),R=Ae?K!==null?K+"Capture":null:K;Ae=[];for(var L=U,I;L!==null;){var J=L;if(I=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||I===null||R===null||(J=Nl(L,R),J!=null&&Ae.push(bi(L,J,I))),vo)break;L=L.return}0<Ae.length&&(K=new q(K,pe,null,l,Y),Q.push({event:K,listeners:Ae}))}}if((t&7)===0){e:{if(K=o==="mouseover"||o==="pointerover",q=o==="mouseout"||o==="pointerout",K&&l!==yd&&(pe=l.relatedTarget||l.fromElement)&&(Ca(pe)||pe[Aa]))break e;if((q||K)&&(K=Y.window===Y?Y:(K=Y.ownerDocument)?K.defaultView||K.parentWindow:window,q?(pe=l.relatedTarget||l.toElement,q=U,pe=pe?Ca(pe):null,pe!==null&&(vo=d(pe),Ae=pe.tag,pe!==vo||Ae!==5&&Ae!==27&&Ae!==6)&&(pe=null)):(q=null,pe=U),q!==pe)){if(Ae=bh,J="onMouseLeave",R="onMouseEnter",L="mouse",(o==="pointerout"||o==="pointerover")&&(Ae=hh,J="onPointerLeave",R="onPointerEnter",L="pointer"),vo=q==null?K:$l(q),I=pe==null?K:$l(pe),K=new Ae(J,L+"leave",q,l,Y),K.target=vo,K.relatedTarget=I,J=null,Ca(Y)===U&&(Ae=new Ae(R,L+"enter",pe,l,Y),Ae.target=I,Ae.relatedTarget=vo,J=Ae),vo=J,q&&pe)o:{for(Ae=Q2,R=q,L=pe,I=0,J=R;J;J=Ae(J))I++;J=0;for(var ze=L;ze;ze=Ae(ze))J++;for(;0<I-J;)R=Ae(R),I--;for(;0<J-I;)L=Ae(L),J--;for(;I--;){if(R===L||L!==null&&R===L.alternate){Ae=R;break o}R=Ae(R),L=Ae(L)}Ae=null}else Ae=null;q!==null&&lv(Q,K,q,Ae,!1),pe!==null&&vo!==null&&lv(Q,vo,pe,Ae,!0)}}e:{if(K=U?$l(U):window,q=K.nodeName&&K.nodeName.toLowerCase(),q==="select"||q==="input"&&K.type==="file")var no=wh;else if(xh(K))if(zh)no=d2;else{no=c2;var ge=i2}else q=K.nodeName,!q||q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?U&&xd(U.elementType)&&(no=wh):no=s2;if(no&&(no=no(o,U))){yh(Q,no,l,Y);break e}ge&&ge(o,K,U),o==="focusout"&&U&&K.type==="number"&&U.memoizedProps.value!=null&&_d(K,"number",K.value)}switch(ge=U?$l(U):window,o){case"focusin":(xh(ge)||ge.contentEditable==="true")&&(Ma=ge,Bd=U,Fl=null);break;case"focusout":Fl=Bd=Ma=null;break;case"mousedown":Rd=!0;break;case"contextmenu":case"mouseup":case"dragend":Rd=!1,Oh(Q,l,Y);break;case"selectionchange":if(f2)break;case"keydown":case"keyup":Oh(Q,l,Y)}var Ie;if(Ld)e:{switch(o){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else Da?gh(o,l)&&(Je="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Je="onCompositionStart");Je&&(ph&&l.locale!=="ko"&&(Da||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&Da&&(Ie=uh()):(mr=Y,jd="value"in mr?mr.value:mr.textContent,Da=!0)),ge=es(U,Je),0<ge.length&&(Je=new mh(Je,o,null,l,Y),Q.push({event:Je,listeners:ge}),Ie?Je.data=Ie:(Ie=_h(l),Ie!==null&&(Je.data=Ie)))),(Ie=n2?t2(o,l):r2(o,l))&&(Je=es(U,"onBeforeInput"),0<Je.length&&(ge=new mh("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ge,listeners:Je}),ge.data=Ie)),Y2(Q,o,U,l,Y)}rv(Q,t)})}function bi(o,t,l){return{instance:o,listener:t,currentTarget:l}}function es(o,t){for(var l=t+"Capture",c=[];o!==null;){var f=o,b=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||b===null||(f=Nl(o,l),f!=null&&c.unshift(bi(o,f,b)),f=Nl(o,t),f!=null&&c.push(bi(o,f,b))),o.tag===3)return c;o=o.return}return[]}function Q2(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function lv(o,t,l,c,f){for(var b=t._reactName,k=[];l!==null&&l!==c;){var y=l,A=y.alternate,U=y.stateNode;if(y=y.tag,A!==null&&A===c)break;y!==5&&y!==26&&y!==27||U===null||(A=U,f?(U=Nl(l,b),U!=null&&k.unshift(bi(l,U,A))):f||(U=Nl(l,b),U!=null&&k.push(bi(l,U,A)))),l=l.return}k.length!==0&&o.push({event:t,listeners:k})}var ez=/\r\n?/g,oz=/\u0000|\uFFFD/g;function iv(o){return(typeof o=="string"?o:""+o).replace(ez,`
|
|
10
|
-
`).replace(oz,"")}function cv(o,t){return t=iv(t),iv(o)===t}function ko(o,t,l,c,f,b){switch(l){case"children":typeof c=="string"?t==="body"||t==="textarea"&&c===""||Na(o,c):(typeof c=="number"||typeof c=="bigint")&&t!=="body"&&Na(o,""+c);break;case"className":rc(o,"class",c);break;case"tabIndex":rc(o,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":rc(o,l,c);break;case"style":ch(o,c,b);break;case"data":if(t!=="object"){rc(o,"data",c);break}case"src":case"href":if(c===""&&(t!=="a"||l!=="href")){o.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(l);break}c=lc(""+c),o.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){o.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(t!=="input"&&ko(o,t,"name",f.name,f,null),ko(o,t,"formEncType",f.formEncType,f,null),ko(o,t,"formMethod",f.formMethod,f,null),ko(o,t,"formTarget",f.formTarget,f,null)):(ko(o,t,"encType",f.encType,f,null),ko(o,t,"method",f.method,f,null),ko(o,t,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(l);break}c=lc(""+c),o.setAttribute(l,c);break;case"onClick":c!=null&&(o.onclick=Dt);break;case"onScroll":c!=null&&Ze("scroll",o);break;case"onScrollEnd":c!=null&&Ze("scrollend",o);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"multiple":o.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":o.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){o.removeAttribute("xlink:href");break}l=lc(""+c),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,""+c):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":c===!0?o.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,c):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?o.setAttribute(l,c):o.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?o.removeAttribute(l):o.setAttribute(l,c);break;case"popover":Ze("beforetoggle",o),Ze("toggle",o),tc(o,"popover",c);break;case"xlinkActuate":Rt(o,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Rt(o,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Rt(o,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Rt(o,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Rt(o,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Rt(o,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":tc(o,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Cw.get(l)||l,tc(o,l,c))}}function cf(o,t,l,c,f,b){switch(l){case"style":ch(o,c,b);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"children":typeof c=="string"?Na(o,c):(typeof c=="number"||typeof c=="bigint")&&Na(o,""+c);break;case"onScroll":c!=null&&Ze("scroll",o);break;case"onScrollEnd":c!=null&&Ze("scrollend",o);break;case"onClick":c!=null&&(o.onclick=Dt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),b=o[En]||null,b=b!=null?b[l]:null,typeof b=="function"&&o.removeEventListener(t,b,f),typeof c=="function")){typeof b!="function"&&b!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(t,c,f);break e}l in o?o[l]=c:c===!0?o.setAttribute(l,""):tc(o,l,c)}}}function un(o,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",o),Ze("load",o);var c=!1,f=!1,b;for(b in l)if(l.hasOwnProperty(b)){var k=l[b];if(k!=null)switch(b){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,b,k,l,null)}}f&&ko(o,t,"srcSet",l.srcSet,l,null),c&&ko(o,t,"src",l.src,l,null);return;case"input":Ze("invalid",o);var y=b=k=f=null,A=null,U=null;for(c in l)if(l.hasOwnProperty(c)){var Y=l[c];if(Y!=null)switch(c){case"name":f=Y;break;case"type":k=Y;break;case"checked":A=Y;break;case"defaultChecked":U=Y;break;case"value":b=Y;break;case"defaultValue":y=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:ko(o,t,c,Y,l,null)}}rh(o,b,y,A,U,k,f,!1);return;case"select":Ze("invalid",o),c=k=b=null;for(f in l)if(l.hasOwnProperty(f)&&(y=l[f],y!=null))switch(f){case"value":b=y;break;case"defaultValue":k=y;break;case"multiple":c=y;default:ko(o,t,f,y,l,null)}t=b,l=k,o.multiple=!!c,t!=null?$a(o,!!c,t,!1):l!=null&&$a(o,!!c,l,!0);return;case"textarea":Ze("invalid",o),b=f=c=null;for(k in l)if(l.hasOwnProperty(k)&&(y=l[k],y!=null))switch(k){case"value":c=y;break;case"defaultValue":f=y;break;case"children":b=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:ko(o,t,k,y,l,null)}lh(o,c,f,b);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(c=l[A],c!=null))switch(A){case"selected":o.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ko(o,t,A,c,l,null)}return;case"dialog":Ze("beforetoggle",o),Ze("toggle",o),Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":Ze("load",o);break;case"video":case"audio":for(c=0;c<fi.length;c++)Ze(fi[c],o);break;case"image":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"embed":case"source":case"link":Ze("error",o),Ze("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in l)if(l.hasOwnProperty(U)&&(c=l[U],c!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,U,c,l,null)}return;default:if(xd(t)){for(Y in l)l.hasOwnProperty(Y)&&(c=l[Y],c!==void 0&&cf(o,t,Y,c,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(c=l[y],c!=null&&ko(o,t,y,c,l,null))}function nz(o,t,l,c){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,b=null,k=null,y=null,A=null,U=null,Y=null;for(q in l){var Q=l[q];if(l.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=Q;default:c.hasOwnProperty(q)||ko(o,t,q,null,c,Q)}}for(var K in c){var q=c[K];if(Q=l[K],c.hasOwnProperty(K)&&(q!=null||Q!=null))switch(K){case"type":b=q;break;case"name":f=q;break;case"checked":U=q;break;case"defaultChecked":Y=q;break;case"value":k=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==Q&&ko(o,t,K,q,c,Q)}}gd(o,k,y,A,U,Y,b,f);return;case"select":q=k=y=K=null;for(b in l)if(A=l[b],l.hasOwnProperty(b)&&A!=null)switch(b){case"value":break;case"multiple":q=A;default:c.hasOwnProperty(b)||ko(o,t,b,null,c,A)}for(f in c)if(b=c[f],A=l[f],c.hasOwnProperty(f)&&(b!=null||A!=null))switch(f){case"value":K=b;break;case"defaultValue":y=b;break;case"multiple":k=b;default:b!==A&&ko(o,t,f,b,c,A)}t=y,l=k,c=q,K!=null?$a(o,!!l,K,!1):!!c!=!!l&&(t!=null?$a(o,!!l,t,!0):$a(o,!!l,l?[]:"",!1));return;case"textarea":q=K=null;for(y in l)if(f=l[y],l.hasOwnProperty(y)&&f!=null&&!c.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ko(o,t,y,null,c,f)}for(k in c)if(f=c[k],b=l[k],c.hasOwnProperty(k)&&(f!=null||b!=null))switch(k){case"value":K=f;break;case"defaultValue":q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==b&&ko(o,t,k,f,c,b)}ah(o,K,q);return;case"option":for(var pe in l)if(K=l[pe],l.hasOwnProperty(pe)&&K!=null&&!c.hasOwnProperty(pe))switch(pe){case"selected":o.selected=!1;break;default:ko(o,t,pe,null,c,K)}for(A in c)if(K=c[A],q=l[A],c.hasOwnProperty(A)&&K!==q&&(K!=null||q!=null))switch(A){case"selected":o.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ko(o,t,A,K,c,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in l)K=l[Ae],l.hasOwnProperty(Ae)&&K!=null&&!c.hasOwnProperty(Ae)&&ko(o,t,Ae,null,c,K);for(U in c)if(K=c[U],q=l[U],c.hasOwnProperty(U)&&K!==q&&(K!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:ko(o,t,U,K,c,q)}return;default:if(xd(t)){for(var vo in l)K=l[vo],l.hasOwnProperty(vo)&&K!==void 0&&!c.hasOwnProperty(vo)&&cf(o,t,vo,void 0,c,K);for(Y in c)K=c[Y],q=l[Y],!c.hasOwnProperty(Y)||K===q||K===void 0&&q===void 0||cf(o,t,Y,K,c,q);return}}for(var R in l)K=l[R],l.hasOwnProperty(R)&&K!=null&&!c.hasOwnProperty(R)&&ko(o,t,R,null,c,K);for(Q in c)K=c[Q],q=l[Q],!c.hasOwnProperty(Q)||K===q||K==null&&q==null||ko(o,t,Q,K,c,q)}function sv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tz(){if(typeof performance.getEntriesByType=="function"){for(var o=0,t=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var f=l[c],b=f.transferSize,k=f.initiatorType,y=f.duration;if(b&&y&&sv(k)){for(k=0,y=f.responseEnd,c+=1;c<l.length;c++){var A=l[c],U=A.startTime;if(U>y)break;var Y=A.transferSize,Q=A.initiatorType;Y&&sv(Q)&&(A=A.responseEnd,k+=Y*(A<y?1:(y-U)/(A-U)))}if(--c,t+=8*(b+k)/(f.duration/1e3),o++,10<o)break}}if(0<o)return t/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var sf=null,df=null;function os(o){return o.nodeType===9?o:o.ownerDocument}function dv(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function uv(o,t){if(o===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&t==="foreignObject"?0:o}function uf(o,t){return o==="textarea"||o==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ff=null;function rz(){var o=window.event;return o&&o.type==="popstate"?o===ff?!1:(ff=o,!0):(ff=null,!1)}var fv=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,bv=typeof Promise=="function"?Promise:void 0,lz=typeof queueMicrotask=="function"?queueMicrotask:typeof bv<"u"?function(o){return bv.resolve(null).then(o).catch(iz)}:fv;function iz(o){setTimeout(function(){throw o})}function Lr(o){return o==="head"}function mv(o,t){var l=t,c=0;do{var f=l.nextSibling;if(o.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(c===0){o.removeChild(f),ul(t);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")mi(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,mi(l);for(var b=l.firstChild;b;){var k=b.nextSibling,y=b.nodeName;b[Ol]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=k}}else l==="body"&&mi(o.ownerDocument.body);l=f}while(l);ul(t)}function hv(o,t){var l=o;o=0;do{var c=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=c}while(l)}function bf(o){var t=o.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":bf(l),kd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function cz(o,t,l,c){for(;o.nodeType===1;){var f=l;if(o.nodeName.toLowerCase()!==t.toLowerCase()){if(!c&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(c){if(!o[Ol])switch(t){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==f.rel||o.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||o.getAttribute("title")!==(f.title==null?null:f.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(f.src==null?null:f.src)||o.getAttribute("type")!==(f.type==null?null:f.type)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(t==="input"&&o.type==="hidden"){var b=f.name==null?null:""+f.name;if(f.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=mt(o.nextSibling),o===null)break}return null}function sz(o,t,l){if(t==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=mt(o.nextSibling),o===null))return null;return o}function pv(o,t){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!t||(o=mt(o.nextSibling),o===null))return null;return o}function mf(o){return o.data==="$?"||o.data==="$~"}function hf(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function dz(o,t){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=t;else if(o.data!=="$?"||l.readyState!=="loading")t();else{var c=function(){t(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),o._reactRetry=c}}function mt(o){for(;o!=null;o=o.nextSibling){var t=o.nodeType;if(t===1||t===3)break;if(t===8){if(t=o.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return o}var pf=null;function kv(o){o=o.nextSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(t===0)return mt(o.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}o=o.nextSibling}return null}function vv(o){o=o.previousSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return o;t--}else l!=="/$"&&l!=="/&"||t++}o=o.previousSibling}return null}function gv(o,t,l){switch(t=os(l),o){case"html":if(o=t.documentElement,!o)throw Error(i(452));return o;case"head":if(o=t.head,!o)throw Error(i(453));return o;case"body":if(o=t.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function mi(o){for(var t=o.attributes;t.length;)o.removeAttributeNode(t[0]);kd(o)}var ht=new Map,_v=new Set;function ns(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Qt=G.d;G.d={f:uz,r:fz,D:bz,C:mz,L:hz,m:pz,X:vz,S:kz,M:gz};function uz(){var o=Qt.f(),t=Pc();return o||t}function fz(o){var t=Ea(o);t!==null&&t.tag===5&&t.type==="form"?Dp(t):Qt.r(o)}var cl=typeof document>"u"?null:document;function xv(o,t,l){var c=cl;if(c&&typeof t=="string"&&t){var f=it(t);f='link[rel="'+o+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),_v.has(f)||(_v.add(f),o={rel:o,crossOrigin:l,href:t},c.querySelector(f)===null&&(t=c.createElement("link"),un(t,"link",o),nn(t),c.head.appendChild(t)))}}function bz(o){Qt.D(o),xv("dns-prefetch",o,null)}function mz(o,t){Qt.C(o,t),xv("preconnect",o,t)}function hz(o,t,l){Qt.L(o,t,l);var c=cl;if(c&&o&&t){var f='link[rel="preload"][as="'+it(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+it(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+it(l.imageSizes)+'"]')):f+='[href="'+it(o)+'"]';var b=f;switch(t){case"style":b=sl(o);break;case"script":b=dl(o)}ht.has(b)||(o=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:o,as:t},l),ht.set(b,o),c.querySelector(f)!==null||t==="style"&&c.querySelector(hi(b))||t==="script"&&c.querySelector(pi(b))||(t=c.createElement("link"),un(t,"link",o),nn(t),c.head.appendChild(t)))}}function pz(o,t){Qt.m(o,t);var l=cl;if(l&&o){var c=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+it(c)+'"][href="'+it(o)+'"]',b=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=dl(o)}if(!ht.has(b)&&(o=v({rel:"modulepreload",href:o},t),ht.set(b,o),l.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(pi(b)))return}c=l.createElement("link"),un(c,"link",o),nn(c),l.head.appendChild(c)}}}function kz(o,t,l){Qt.S(o,t,l);var c=cl;if(c&&o){var f=La(c).hoistableStyles,b=sl(o);t=t||"default";var k=f.get(b);if(!k){var y={loading:0,preload:null};if(k=c.querySelector(hi(b)))y.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":t},l),(l=ht.get(b))&&kf(o,l);var A=k=c.createElement("link");nn(A),un(A,"link",o),A._p=new Promise(function(U,Y){A.onload=U,A.onerror=Y}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ts(k,t,c)}k={type:"stylesheet",instance:k,count:1,state:y},f.set(b,k)}}}function vz(o,t){Qt.X(o,t);var l=cl;if(l&&o){var c=La(l).hoistableScripts,f=dl(o),b=c.get(f);b||(b=l.querySelector(pi(f)),b||(o=v({src:o,async:!0},t),(t=ht.get(f))&&vf(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(f,b))}}function gz(o,t){Qt.M(o,t);var l=cl;if(l&&o){var c=La(l).hoistableScripts,f=dl(o),b=c.get(f);b||(b=l.querySelector(pi(f)),b||(o=v({src:o,async:!0,type:"module"},t),(t=ht.get(f))&&vf(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(f,b))}}function yv(o,t,l,c){var f=(f=Ne.current)?ns(f):null;if(!f)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=sl(l.href),l=La(f).hoistableStyles,c=l.get(t),c||(c={type:"style",instance:null,count:0,state:null},l.set(t,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=sl(l.href);var b=La(f).hoistableStyles,k=b.get(o);if(k||(f=f.ownerDocument||f,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,k),(b=f.querySelector(hi(o)))&&!b._p&&(k.instance=b,k.state.loading=5),ht.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ht.set(o,l),b||_z(f,o,l,k.state))),t&&c===null)throw Error(i(528,""));return k}if(t&&c!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(l),l=La(f).hoistableScripts,c=l.get(t),c||(c={type:"script",instance:null,count:0,state:null},l.set(t,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function sl(o){return'href="'+it(o)+'"'}function hi(o){return'link[rel="stylesheet"]['+o+"]"}function wv(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function _z(o,t,l,c){o.querySelector('link[rel="preload"][as="style"]['+t+"]")?c.loading=1:(t=o.createElement("link"),c.preload=t,t.addEventListener("load",function(){return c.loading|=1}),t.addEventListener("error",function(){return c.loading|=2}),un(t,"link",l),nn(t),o.head.appendChild(t))}function dl(o){return'[src="'+it(o)+'"]'}function pi(o){return"script[async]"+o}function zv(o,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var c=o.querySelector('style[data-href~="'+it(l.href)+'"]');if(c)return t.instance=c,nn(c),c;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(o.ownerDocument||o).createElement("style"),nn(c),un(c,"style",f),ts(c,l.precedence,o),t.instance=c;case"stylesheet":f=sl(l.href);var b=o.querySelector(hi(f));if(b)return t.state.loading|=4,t.instance=b,nn(b),b;c=wv(l),(f=ht.get(f))&&kf(c,f),b=(o.ownerDocument||o).createElement("link"),nn(b);var k=b;return k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",c),t.state.loading|=4,ts(b,l.precedence,o),t.instance=b;case"script":return b=dl(l.src),(f=o.querySelector(pi(b)))?(t.instance=f,nn(f),f):(c=l,(f=ht.get(b))&&(c=v({},l),vf(c,f)),o=o.ownerDocument||o,f=o.createElement("script"),nn(f),un(f,"link",c),o.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(c=t.instance,t.state.loading|=4,ts(c,l.precedence,o));return t.instance}function ts(o,t,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,b=f,k=0;k<c.length;k++){var y=c[k];if(y.dataset.precedence===t)b=y;else if(b!==f)break}b?b.parentNode.insertBefore(o,b.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(o,t.firstChild))}function kf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.title==null&&(o.title=t.title)}function vf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.integrity==null&&(o.integrity=t.integrity)}var rs=null;function Sv(o,t,l){if(rs===null){var c=new Map,f=rs=new Map;f.set(l,c)}else f=rs,c=f.get(l),c||(c=new Map,f.set(l,c));if(c.has(o))return c;for(c.set(o,null),l=l.getElementsByTagName(o),f=0;f<l.length;f++){var b=l[f];if(!(b[Ol]||b[ln]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(t)||"";k=o+k;var y=c.get(k);y?y.push(b):c.set(k,[b])}}return c}function jv(o,t,l){o=o.ownerDocument||o,o.head.insertBefore(l,t==="title"?o.querySelector("head > title"):null)}function xz(o,t,l){if(l===1||t.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return o=t.disabled,typeof t.precedence=="string"&&o==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tv(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function yz(o,t,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=sl(c.href),b=t.querySelector(hi(f));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=as.bind(o),t.then(o,o)),l.state.loading|=4,l.instance=b,nn(b);return}b=t.ownerDocument||t,c=wv(c),(f=ht.get(f))&&kf(c,f),b=b.createElement("link"),nn(b);var k=b;k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",c),l.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=as.bind(o),t.addEventListener("load",l),t.addEventListener("error",l))}}var gf=0;function wz(o,t){return o.stylesheets&&o.count===0&&is(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var c=setTimeout(function(){if(o.stylesheets&&is(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+t);0<o.imgBytes&&gf===0&&(gf=62500*tz());var f=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&is(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>gf?50:800)+t);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function as(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)is(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var ls=null;function is(o,t){o.stylesheets=null,o.unsuspend!==null&&(o.count++,ls=new Map,t.forEach(zz,o),ls=null,as.call(o))}function zz(o,t){if(!(t.state.loading&4)){var l=ls.get(o);if(l)var c=l.get(null);else{l=new Map,ls.set(o,l);for(var f=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<f.length;b++){var k=f[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(l.set(k.dataset.precedence,k),c=k)}c&&l.set(null,c)}f=t.instance,k=f.getAttribute("data-precedence"),b=l.get(k)||c,b===c&&l.set(null,f),l.set(k,f),this.count++,c=as.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),b?b.parentNode.insertBefore(f,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(f,o.firstChild)),t.state.loading|=4}}var ki={$$typeof:w,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Sz(o,t,l,c,f,b,k,y,A){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bd(0),this.hiddenUpdates=bd(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Av(o,t,l,c,f,b,k,y,A,U,Y,Q){return o=new Sz(o,t,l,k,A,U,Y,Q,y),t=1,b===!0&&(t|=24),b=qn(3,null,null,t),o.current=b,b.stateNode=o,t=Xd(),t.refCount++,o.pooledCache=t,t.refCount++,b.memoizedState={element:c,isDehydrated:l,cache:t},ou(b),o}function Cv(o){return o?(o=Ha,o):Ha}function Ev(o,t,l,c,f,b){f=Cv(f),c.context===null?c.context=f:c.pendingContext=f,c=_r(t),c.payload={element:l},b=b===void 0?null:b,b!==null&&(c.callback=b),l=xr(o,c,t),l!==null&&(Rn(l,o,t),Yl(l,o,t))}function Lv(o,t){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<t?l:t}}function _f(o,t){Lv(o,t),(o=o.alternate)&&Lv(o,t)}function Ov(o){if(o.tag===13||o.tag===31){var t=oa(o,67108864);t!==null&&Rn(t,o,67108864),_f(o,67108864)}}function $v(o){if(o.tag===13||o.tag===31){var t=Jn();t=md(t);var l=oa(o,t);l!==null&&Rn(l,o,t),_f(o,t)}}var cs=!0;function jz(o,t,l,c){var f=M.T;M.T=null;var b=G.p;try{G.p=2,xf(o,t,l,c)}finally{G.p=b,M.T=f}}function Tz(o,t,l,c){var f=M.T;M.T=null;var b=G.p;try{G.p=8,xf(o,t,l,c)}finally{G.p=b,M.T=f}}function xf(o,t,l,c){if(cs){var f=yf(c);if(f===null)lf(o,t,c,ss,l),Bv(o,c);else if(Cz(f,o,t,l,c))c.stopPropagation();else if(Bv(o,c),t&4&&-1<Az.indexOf(o)){for(;f!==null;){var b=Ea(f);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Jr(b.pendingLanes);if(k!==0){var y=b;for(y.pendingLanes|=2,y.entangledLanes|=2;k;){var A=1<<31-wn(k);y.entanglements[1]|=A,k&=~A}Lt(b),(co&6)===0&&(qc=te()+500,ui(0))}}break;case 31:case 13:y=oa(b,2),y!==null&&Rn(y,b,2),Pc(),_f(b,2)}if(b=yf(c),b===null&&lf(o,t,c,ss,l),b===f)break;f=b}f!==null&&c.stopPropagation()}else lf(o,t,c,null,l)}}function yf(o){return o=wd(o),wf(o)}var ss=null;function wf(o){if(ss=null,o=Ca(o),o!==null){var t=d(o);if(t===null)o=null;else{var l=t.tag;if(l===13){if(o=u(t),o!==null)return o;o=null}else if(l===31){if(o=m(t),o!==null)return o;o=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;o=null}else t!==o&&(o=null)}}return ss=o,null}function Nv(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case oe:return 2;case ve:return 8;case eo:case io:return 32;case on:return 268435456;default:return 32}default:return 32}}var zf=!1,Or=null,$r=null,Nr=null,vi=new Map,gi=new Map,Br=[],Az="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Bv(o,t){switch(o){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":vi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(t.pointerId)}}function _i(o,t,l,c,f,b){return o===null||o.nativeEvent!==b?(o={blockedOn:t,domEventName:l,eventSystemFlags:c,nativeEvent:b,targetContainers:[f]},t!==null&&(t=Ea(t),t!==null&&Ov(t)),o):(o.eventSystemFlags|=c,t=o.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),o)}function Cz(o,t,l,c,f){switch(t){case"focusin":return Or=_i(Or,o,t,l,c,f),!0;case"dragenter":return $r=_i($r,o,t,l,c,f),!0;case"mouseover":return Nr=_i(Nr,o,t,l,c,f),!0;case"pointerover":var b=f.pointerId;return vi.set(b,_i(vi.get(b)||null,o,t,l,c,f)),!0;case"gotpointercapture":return b=f.pointerId,gi.set(b,_i(gi.get(b)||null,o,t,l,c,f)),!0}return!1}function Rv(o){var t=Ca(o.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=u(l),t!==null){o.blockedOn=t,Jm(o.priority,function(){$v(l)});return}}else if(t===31){if(t=m(l),t!==null){o.blockedOn=t,Jm(o.priority,function(){$v(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function ds(o){if(o.blockedOn!==null)return!1;for(var t=o.targetContainers;0<t.length;){var l=yf(o.nativeEvent);if(l===null){l=o.nativeEvent;var c=new l.constructor(l.type,l);yd=c,l.target.dispatchEvent(c),yd=null}else return t=Ea(l),t!==null&&Ov(t),o.blockedOn=l,!1;t.shift()}return!0}function Dv(o,t,l){ds(o)&&l.delete(t)}function Ez(){zf=!1,Or!==null&&ds(Or)&&(Or=null),$r!==null&&ds($r)&&($r=null),Nr!==null&&ds(Nr)&&(Nr=null),vi.forEach(Dv),gi.forEach(Dv)}function us(o,t){o.blockedOn===t&&(o.blockedOn=null,zf||(zf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ez)))}var fs=null;function Mv(o){fs!==o&&(fs=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){fs===o&&(fs=null);for(var t=0;t<o.length;t+=3){var l=o[t],c=o[t+1],f=o[t+2];if(typeof c!="function"){if(wf(c||l)===null)continue;break}var b=Ea(l);b!==null&&(o.splice(t,3),t-=3,xu(b,{pending:!0,data:f,method:l.method,action:c},c,f))}}))}function ul(o){function t(A){return us(A,o)}Or!==null&&us(Or,o),$r!==null&&us($r,o),Nr!==null&&us(Nr,o),vi.forEach(t),gi.forEach(t);for(var l=0;l<Br.length;l++){var c=Br[l];c.blockedOn===o&&(c.blockedOn=null)}for(;0<Br.length&&(l=Br[0],l.blockedOn===null);)Rv(l),l.blockedOn===null&&Br.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var f=l[c],b=l[c+1],k=f[En]||null;if(typeof b=="function")k||Mv(l);else if(k){var y=null;if(b&&b.hasAttribute("formAction")){if(f=b,k=b[En]||null)y=k.formAction;else if(wf(f)!==null)continue}else y=k.action;typeof y=="function"?l[c+1]=y:(l.splice(c,3),c-=3),Mv(l)}}}function Iv(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(k){return f=k})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function Sf(o){this._internalRoot=o}bs.prototype.render=Sf.prototype.render=function(o){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,c=Jn();Ev(l,c,o,t,null,null)},bs.prototype.unmount=Sf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var t=o.containerInfo;Ev(o.current,2,null,o,null,null),Pc(),t[Aa]=null}};function bs(o){this._internalRoot=o}bs.prototype.unstable_scheduleHydration=function(o){if(o){var t=Ym();o={blockedOn:null,target:o,priority:t};for(var l=0;l<Br.length&&t!==0&&t<Br[l].priority;l++);Br.splice(l,0,o),l===0&&Rv(o)}};var Uv=n.version;if(Uv!=="19.2.3")throw Error(i(527,Uv,"19.2.3"));G.findDOMNode=function(o){var t=o._reactInternals;if(t===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=p(t),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var Lz={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ms=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ms.isDisabled&&ms.supportsFiber)try{Yr=ms.inject(Lz),an=ms}catch{}}return wi.createRoot=function(o,t){if(!s(o))throw Error(i(299));var l=!1,c="",f=Pp,b=Gp,k=Yp;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(b=t.onCaughtError),t.onRecoverableError!==void 0&&(k=t.onRecoverableError)),t=Av(o,1,!1,null,null,l,c,null,f,b,k,Iv),o[Aa]=t.current,af(o),new Sf(t)},wi.hydrateRoot=function(o,t,l){if(!s(o))throw Error(i(299));var c=!1,f="",b=Pp,k=Gp,y=Yp,A=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Av(o,1,!0,t,l??null,c,f,A,b,k,y,Iv),t.context=Cv(null),l=t.current,c=Jn(),c=md(c),f=_r(c),f.callback=null,xr(l,f,c),l=c,t.current.lanes=l,Ll(t,l),Lt(t),o[Aa]=t.current,af(o),new bs(t)},wi.version="19.2.3",wi}var Xv;function Qz(){if(Xv)return Cf.exports;Xv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Cf.exports=Wz(),Cf.exports}var Sx=Qz();var Wv="popstate";function e4(e={}){function n(s,d){let{pathname:u="/",search:m="",hash:h=""}=za(s.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),ub("",{pathname:u,search:m,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(s,d){let u=s.document.querySelector("base"),m="";if(u&&u.getAttribute("href")){let h=s.location.href,p=h.indexOf("#");m=p===-1?h:h.slice(0,p)}return m+"#"+(typeof d=="string"?d:Ii(d))}function i(s,d){Hn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return n4(n,r,i,e)}function zo(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Hn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o4(){return Math.random().toString(36).substring(2,10)}function Qv(e,n){return{usr:e.state,key:e.key,idx:n}}function ub(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?za(n):n,state:r,key:n&&n.key||i||o4()}}function Ii({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function za(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function n4(e,n,r,i={}){let{window:s=document.defaultView,v5Compat:d=!1}=i,u=s.history,m="POP",h=null,p=g();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function v(){m="POP";let O=g(),E=O==null?null:O-p;p=O,h&&h({action:m,location:j.location,delta:E})}function _(O,E){m="PUSH";let x=ub(j.location,O,E);r&&r(x,O),p=g()+1;let w=Qv(x,p),$=j.createHref(x);try{u.pushState(w,"",$)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;s.location.assign($)}d&&h&&h({action:m,location:j.location,delta:1})}function z(O,E){m="REPLACE";let x=ub(j.location,O,E);r&&r(x,O),p=g();let w=Qv(x,p),$=j.createHref(x);u.replaceState(w,"",$),d&&h&&h({action:m,location:j.location,delta:0})}function N(O){return t4(O)}let j={get action(){return m},get location(){return e(s,u)},listen(O){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Wv,v),h=O,()=>{s.removeEventListener(Wv,v),h=null}},createHref(O){return n(s,O)},createURL:N,encodeLocation(O){let E=N(O);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:_,replace:z,go(O){return u.go(O)}};return j}function t4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),zo(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ii(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function jx(e,n,r="/"){return r4(e,n,r,!1)}function r4(e,n,r,i){let s=typeof n=="string"?za(n):n,d=sr(s.pathname||"/",r);if(d==null)return null;let u=Tx(e);a4(u);let m=null;for(let h=0;m==null&&h<u.length;++h){let p=Cx(d);m=m4(u[h],p,i)}return m}function Tx(e,n=[],r=[],i="",s=!1){let d=(u,m,h=s,p)=>{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:m,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&h)return;zo(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let v=lr([i,g.relativePath]),_=r.concat(g);u.children&&u.children.length>0&&(zo(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Tx(u.children,n,_,v,h)),!(u.path==null&&!u.index)&&n.push({path:v,score:f4(v,u.index),routesMeta:_})};return e.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let h of Ax(u.path))d(u,m,!0,h)}),n}function Ax(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,s=r.endsWith("?"),d=r.replace(/\?$/,"");if(i.length===0)return s?[d,""]:[d];let u=Ax(i.join("/")),m=[];return m.push(...u.map(h=>h===""?d:[d,h].join("/"))),s&&m.push(...u),m.map(h=>e.startsWith("/")&&h===""?"/":h)}function a4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:b4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var l4=/^:[\w-]+$/,i4=3,c4=2,s4=1,d4=10,u4=-2,eg=e=>e==="*";function f4(e,n){let r=e.split("/"),i=r.length;return r.some(eg)&&(i+=u4),n&&(i+=c4),r.filter(s=>!eg(s)).reduce((s,d)=>s+(l4.test(d)?i4:d===""?s4:d4),i)}function b4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function m4(e,n,r=!1){let{routesMeta:i}=e,s={},d="/",u=[];for(let m=0;m<i.length;++m){let h=i[m],p=m===i.length-1,g=d==="/"?n:n.slice(d.length)||"/",v=Ui({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),_=h.route;if(!v&&p&&r&&!i[i.length-1].route.index&&(v=Ui({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(s,v.params),u.push({params:s,pathname:lr([d,v.pathname]),pathnameBase:g4(lr([d,v.pathnameBase])),route:_}),v.pathnameBase!=="/"&&(d=lr([d,v.pathnameBase]))}return u}function Ui(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=h4(e.path,e.caseSensitive,e.end),s=n.match(r);if(!s)return null;let d=s[0],u=d.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:v},_)=>{if(g==="*"){let N=m[_]||"";u=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const z=m[_];return v&&!z?p[g]=void 0:p[g]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:u,pattern:e}}function h4(e,n=!1,r=!0){Hn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,h)=>(i.push({paramName:m,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function Cx(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Hn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function sr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}var Ex=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p4=e=>Ex.test(e);function k4(e,n="/"){let{pathname:r,search:i="",hash:s=""}=typeof e=="string"?za(e):e,d;if(r)if(p4(r))d=r;else{if(r.includes("//")){let u=r;r=r.replace(/\/\/+/g,"/"),Hn(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${r}`)}r.startsWith("/")?d=og(r.substring(1),"/"):d=og(r,n)}else d=n;return{pathname:d,search:_4(i),hash:x4(s)}}function og(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function $f(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function v4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function om(e){let n=v4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function nm(e,n,r,i=!1){let s;typeof e=="string"?s=za(e):(s={...e},zo(!s.pathname||!s.pathname.includes("?"),$f("?","pathname","search",s)),zo(!s.pathname||!s.pathname.includes("#"),$f("#","pathname","hash",s)),zo(!s.search||!s.search.includes("#"),$f("#","search","hash",s)));let d=e===""||s.pathname==="",u=d?"/":s.pathname,m;if(u==null)m=r;else{let v=n.length-1;if(!i&&u.startsWith("..")){let _=u.split("/");for(;_[0]==="..";)_.shift(),v-=1;s.pathname=_.join("/")}m=v>=0?n[v]:"/"}let h=k4(s,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var lr=e=>e.join("/").replace(/\/\/+/g,"/"),g4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,x4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,y4=class{constructor(e,n,r,i=!1){this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function w4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z4(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Lx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ox(e,n){let r=e;if(typeof r!="string"||!Ex.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,s=!1;if(Lx)try{let d=new URL(window.location.href),u=r.startsWith("//")?new URL(d.protocol+r):new URL(r),m=sr(u.pathname,n);u.origin===d.origin&&m!=null?r=m+u.search+u.hash:s=!0}catch{Hn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $x=["POST","PUT","PATCH","DELETE"];new Set($x);var S4=["GET",...$x];new Set(S4);var Tl=S.createContext(null);Tl.displayName="DataRouter";var Qs=S.createContext(null);Qs.displayName="DataRouterState";var j4=S.createContext(!1),Nx=S.createContext({isTransitioning:!1});Nx.displayName="ViewTransition";var T4=S.createContext(new Map);T4.displayName="Fetchers";var A4=S.createContext(null);A4.displayName="Await";var tt=S.createContext(null);tt.displayName="Navigation";var Yi=S.createContext(null);Yi.displayName="Location";var St=S.createContext({outlet:null,matches:[],isDataRoute:!1});St.displayName="Route";var tm=S.createContext(null);tm.displayName="RouteError";var Bx="REACT_ROUTER_ERROR",C4="REDIRECT",E4="ROUTE_ERROR_RESPONSE";function L4(e){if(e.startsWith(`${Bx}:${C4}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function O4(e){if(e.startsWith(`${Bx}:${E4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new y4(n.status,n.statusText,n.data)}catch{}}function Rx(e,{relative:n}={}){zo(Sa(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=S.useContext(tt),{hash:s,pathname:d,search:u}=Al(e,{relative:n}),m=d;return r!=="/"&&(m=d==="/"?r:lr([r,d])),i.createHref({pathname:m,search:u,hash:s})}function Sa(){return S.useContext(Yi)!=null}function rt(){return zo(Sa(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Yi).location}function $4(e){zo(Sa(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=rt();return S.useMemo(()=>Ui(e,Cx(n)),[n,e])}var Dx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mx(e){S.useContext(tt).static||S.useLayoutEffect(e)}function ed(){let{isDataRoute:e}=S.useContext(St);return e?P4():N4()}function N4(){zo(Sa(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Tl),{basename:n,navigator:r}=S.useContext(tt),{matches:i}=S.useContext(St),{pathname:s}=rt(),d=JSON.stringify(om(i)),u=S.useRef(!1);return Mx(()=>{u.current=!0}),S.useCallback((h,p={})=>{if(Hn(u.current,Dx),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=nm(h,JSON.parse(d),s,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:lr([n,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[n,r,d,s,e])}S.createContext(null);function B4(){let{matches:e}=S.useContext(St),n=e[e.length-1];return n?n.params:{}}function Al(e,{relative:n}={}){let{matches:r}=S.useContext(St),{pathname:i}=rt(),s=JSON.stringify(om(r));return S.useMemo(()=>nm(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function R4(e,n){return Ix(e,n)}function Ix(e,n,r,i,s){zo(Sa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=S.useContext(tt),{matches:u}=S.useContext(St),m=u[u.length-1],h=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let x=v&&v.path||"";Hx(p,!v||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
9
|
+
`+c.stack}}var Re=Object.prototype.hasOwnProperty,lo=e.unstable_scheduleCallback,T=e.unstable_cancelCallback,B=e.unstable_shouldYield,F=e.unstable_requestPaint,te=e.unstable_now,re=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ve=e.unstable_UserBlockingPriority,eo=e.unstable_NormalPriority,io=e.unstable_LowPriority,on=e.unstable_IdlePriority,Bt=e.log,Tt=e.unstable_setDisableYieldValue,Yr=null,an=null;function at(o){if(typeof Bt=="function"&&Tt(o),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Yr,o)}catch{}}var wn=Math.clz32?Math.clz32:Qi,Wi=Math.log,bd=Math.LN2;function Qi(o){return o>>>=0,o===0?32:31-(Wi(o)/bd|0)|0}var ec=256,oc=262144,nc=4194304;function Jr(o){var t=o&42;if(t!==0)return t;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function tc(o,t,l){var c=o.pendingLanes;if(c===0)return 0;var f=0,b=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var y=c&134217727;return y!==0?(c=y&~b,c!==0?f=Jr(c):(k&=y,k!==0?f=Jr(k):l||(l=y&~o,l!==0&&(f=Jr(l))))):(y=c&~b,y!==0?f=Jr(y):k!==0?f=Jr(k):l||(l=c&~o,l!==0&&(f=Jr(l)))),f===0?0:t!==0&&t!==f&&(t&b)===0&&(b=f&-f,l=t&-t,b>=l||b===32&&(l&4194048)!==0)?t:f}function Ll(o,t){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&t)===0}function _w(o,t){switch(o){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zm(){var o=nc;return nc<<=1,(nc&62914560)===0&&(nc=4194304),o}function md(o){for(var t=[],l=0;31>l;l++)t.push(o);return t}function Ol(o,t){o.pendingLanes|=t,t!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function xw(o,t,l,c,f,b){var k=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var y=o.entanglements,A=o.expirationTimes,U=o.hiddenUpdates;for(l=k&~l;0<l;){var Y=31-wn(l),Q=1<<Y;y[Y]=0,A[Y]=-1;var K=U[Y];if(K!==null)for(U[Y]=null,Y=0;Y<K.length;Y++){var q=K[Y];q!==null&&(q.lane&=-536870913)}l&=~Q}c!==0&&Pm(o,c,0),b!==0&&f===0&&o.tag!==0&&(o.suspendedLanes|=b&~(k&~t))}function Pm(o,t,l){o.pendingLanes|=t,o.suspendedLanes&=~t;var c=31-wn(t);o.entangledLanes|=t,o.entanglements[c]=o.entanglements[c]|1073741824|l&261930}function Gm(o,t){var l=o.entangledLanes|=t;for(o=o.entanglements;l;){var c=31-wn(l),f=1<<c;f&t|o[c]&t&&(o[c]|=t),l&=~f}}function Ym(o,t){var l=t&-t;return l=(l&42)!==0?1:hd(l),(l&(o.suspendedLanes|t))!==0?0:l}function hd(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function pd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Jm(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Bv(o.type))}function Xm(o,t){var l=G.p;try{return G.p=o,t()}finally{G.p=l}}var br=Math.random().toString(36).slice(2),ln="__reactFiber$"+br,En="__reactProps$"+br,Aa="__reactContainer$"+br,kd="__reactEvents$"+br,yw="__reactListeners$"+br,ww="__reactHandles$"+br,Wm="__reactResources$"+br,$l="__reactMarker$"+br;function vd(o){delete o[ln],delete o[En],delete o[kd],delete o[yw],delete o[ww]}function Ca(o){var t=o[ln];if(t)return t;for(var l=o.parentNode;l;){if(t=l[Aa]||l[ln]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(o=gv(o);o!==null;){if(l=o[ln])return l;o=gv(o)}return t}o=l,l=o.parentNode}return null}function Ea(o){if(o=o[ln]||o[Aa]){var t=o.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return o}return null}function Nl(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o.stateNode;throw Error(i(33))}function La(o){var t=o[Wm];return t||(t=o[Wm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nn(o){o[$l]=!0}var Qm=new Set,eh={};function Xr(o,t){Oa(o,t),Oa(o+"Capture",t)}function Oa(o,t){for(eh[o]=t,o=0;o<t.length;o++)Qm.add(t[o])}var zw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oh={},nh={};function jw(o){return Re.call(nh,o)?!0:Re.call(oh,o)?!1:zw.test(o)?nh[o]=!0:(oh[o]=!0,!1)}function rc(o,t,l){if(jw(t))if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(t);return;case"boolean":var c=t.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){o.removeAttribute(t);return}}o.setAttribute(t,""+l)}}function ac(o,t,l){if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(t);return}o.setAttribute(t,""+l)}}function Rt(o,t,l,c){if(c===null)o.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(t,l,""+c)}}function lt(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function th(o){var t=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sw(o,t,l){var c=Object.getOwnPropertyDescriptor(o.constructor.prototype,t);if(!o.hasOwnProperty(t)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,b=c.set;return Object.defineProperty(o,t,{configurable:!0,get:function(){return f.call(this)},set:function(k){l=""+k,b.call(this,k)}}),Object.defineProperty(o,t,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(k){l=""+k},stopTracking:function(){o._valueTracker=null,delete o[t]}}}}function gd(o){if(!o._valueTracker){var t=th(o)?"checked":"value";o._valueTracker=Sw(o,t,""+o[t])}}function rh(o){if(!o)return!1;var t=o._valueTracker;if(!t)return!0;var l=t.getValue(),c="";return o&&(c=th(o)?o.checked?"true":"false":o.value),o=c,o!==l?(t.setValue(o),!0):!1}function lc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Tw=/[\n"\\]/g;function it(o){return o.replace(Tw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _d(o,t,l,c,f,b,k,y){o.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?o.type=k:o.removeAttribute("type"),t!=null?k==="number"?(t===0&&o.value===""||o.value!=t)&&(o.value=""+lt(t)):o.value!==""+lt(t)&&(o.value=""+lt(t)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),t!=null?xd(o,k,lt(t)):l!=null?xd(o,k,lt(l)):c!=null&&o.removeAttribute("value"),f==null&&b!=null&&(o.defaultChecked=!!b),f!=null&&(o.checked=f&&typeof f!="function"&&typeof f!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?o.name=""+lt(y):o.removeAttribute("name")}function ah(o,t,l,c,f,b,k,y){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),t!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||t!=null)){gd(o);return}l=l!=null?""+lt(l):"",t=t!=null?""+lt(t):l,y||t===o.value||(o.value=t),o.defaultValue=t}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,o.checked=y?o.checked:!!c,o.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),gd(o)}function xd(o,t,l){t==="number"&&lc(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function $a(o,t,l,c){if(o=o.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<o.length;l++)f=t.hasOwnProperty("$"+o[l].value),o[l].selected!==f&&(o[l].selected=f),f&&c&&(o[l].defaultSelected=!0)}else{for(l=""+lt(l),t=null,f=0;f<o.length;f++){if(o[f].value===l){o[f].selected=!0,c&&(o[f].defaultSelected=!0);return}t!==null||o[f].disabled||(t=o[f])}t!==null&&(t.selected=!0)}}function lh(o,t,l){if(t!=null&&(t=""+lt(t),t!==o.value&&(o.value=t),l==null)){o.defaultValue!==t&&(o.defaultValue=t);return}o.defaultValue=l!=null?""+lt(l):""}function ih(o,t,l,c){if(t==null){if(c!=null){if(l!=null)throw Error(i(92));if(Fe(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),t=l}l=lt(t),o.defaultValue=l,c=o.textContent,c===l&&c!==""&&c!==null&&(o.value=c),gd(o)}function Na(o,t){if(t){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=t;return}}o.textContent=t}var Aw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ch(o,t,l){var c=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?o.setProperty(t,""):t==="float"?o.cssFloat="":o[t]="":c?o.setProperty(t,l):typeof l!="number"||l===0||Aw.has(t)?t==="float"?o.cssFloat=l:o[t]=(""+l).trim():o[t]=l+"px"}function sh(o,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(o=o.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||t!=null&&t.hasOwnProperty(c)||(c.indexOf("--")===0?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="");for(var f in t)c=t[f],t.hasOwnProperty(f)&&l[f]!==c&&ch(o,f,c)}else for(var b in t)t.hasOwnProperty(b)&&ch(o,b,t[b])}function yd(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ew=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ic(o){return Ew.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Dt(){}var wd=null;function zd(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ba=null,Ra=null;function dh(o){var t=Ea(o);if(t&&(o=t.stateNode)){var l=o[En]||null;e:switch(o=t.stateNode,t.type){case"input":if(_d(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+it(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var c=l[t];if(c!==o&&c.form===o.form){var f=c[En]||null;if(!f)throw Error(i(90));_d(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)c=l[t],c.form===o.form&&rh(c)}break e;case"textarea":lh(o,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$a(o,!!l.multiple,t,!1)}}}var jd=!1;function uh(o,t,l){if(jd)return o(t,l);jd=!0;try{var c=o(t);return c}finally{if(jd=!1,(Ba!==null||Ra!==null)&&(Gc(),Ba&&(t=Ba,o=Ra,Ra=Ba=null,dh(t),o)))for(t=0;t<o.length;t++)dh(o[t])}}function Bl(o,t){var l=o.stateNode;if(l===null)return null;var c=l[En]||null;if(c===null)return null;l=c[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(o=o.type,c=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!c;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sd=!1;if(Mt)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Sd=!1}var mr=null,Td=null,cc=null;function fh(){if(cc)return cc;var o,t=Td,l=t.length,c,f="value"in mr?mr.value:mr.textContent,b=f.length;for(o=0;o<l&&t[o]===f[o];o++);var k=l-o;for(c=1;c<=k&&t[l-c]===f[b-c];c++);return cc=f.slice(o,1<c?1-c:void 0)}function sc(o){var t=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&t===13&&(o=13)):o=t,o===10&&(o=13),32<=o||o===13?o:0}function dc(){return!0}function bh(){return!1}function Ln(o){function t(l,c,f,b,k){this._reactName=l,this._targetInst=f,this.type=c,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var y in o)o.hasOwnProperty(y)&&(l=o[y],this[y]=l?l(b):b[y]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?dc:bh,this.isPropagationStopped=bh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=dc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),t}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uc=Ln(Wr),Dl=v({},Wr,{view:0,detail:0}),Lw=Ln(Dl),Ad,Cd,Ml,fc=v({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ld,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ml&&(Ml&&o.type==="mousemove"?(Ad=o.screenX-Ml.screenX,Cd=o.screenY-Ml.screenY):Cd=Ad=0,Ml=o),Ad)},movementY:function(o){return"movementY"in o?o.movementY:Cd}}),mh=Ln(fc),Ow=v({},fc,{dataTransfer:0}),$w=Ln(Ow),Nw=v({},Dl,{relatedTarget:0}),Ed=Ln(Nw),Bw=v({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),Rw=Ln(Bw),Dw=v({},Wr,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Mw=Ln(Dw),Iw=v({},Wr,{data:0}),hh=Ln(Iw),Uw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Fw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kw(o){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(o):(o=Fw[o])?!!t[o]:!1}function Ld(){return Kw}var Vw=v({},Dl,{key:function(o){if(o.key){var t=Uw[o.key]||o.key;if(t!=="Unidentified")return t}return o.type==="keypress"?(o=sc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Hw[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ld,charCode:function(o){return o.type==="keypress"?sc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?sc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),qw=Ln(Vw),Zw=v({},fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ph=Ln(Zw),Pw=v({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ld}),Gw=Ln(Pw),Yw=v({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jw=Ln(Yw),Xw=v({},fc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Ww=Ln(Xw),Qw=v({},Wr,{newState:0,oldState:0}),e2=Ln(Qw),o2=[9,13,27,32],Od=Mt&&"CompositionEvent"in window,Il=null;Mt&&"documentMode"in document&&(Il=document.documentMode);var n2=Mt&&"TextEvent"in window&&!Il,kh=Mt&&(!Od||Il&&8<Il&&11>=Il),vh=" ",gh=!1;function _h(o,t){switch(o){case"keyup":return o2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xh(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Da=!1;function t2(o,t){switch(o){case"compositionend":return xh(t);case"keypress":return t.which!==32?null:(gh=!0,vh);case"textInput":return o=t.data,o===vh&&gh?null:o;default:return null}}function r2(o,t){if(Da)return o==="compositionend"||!Od&&_h(o,t)?(o=fh(),cc=Td=mr=null,Da=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kh&&t.locale!=="ko"?null:t.data;default:return null}}var a2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yh(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t==="input"?!!a2[o.type]:t==="textarea"}function wh(o,t,l,c){Ba?Ra?Ra.push(c):Ra=[c]:Ba=c,t=os(t,"onChange"),0<t.length&&(l=new uc("onChange","change",null,l,c),o.push({event:l,listeners:t}))}var Ul=null,Hl=null;function l2(o){av(o,0)}function bc(o){var t=Nl(o);if(rh(t))return o}function zh(o,t){if(o==="change")return t}var jh=!1;if(Mt){var $d;if(Mt){var Nd="oninput"in document;if(!Nd){var Sh=document.createElement("div");Sh.setAttribute("oninput","return;"),Nd=typeof Sh.oninput=="function"}$d=Nd}else $d=!1;jh=$d&&(!document.documentMode||9<document.documentMode)}function Th(){Ul&&(Ul.detachEvent("onpropertychange",Ah),Hl=Ul=null)}function Ah(o){if(o.propertyName==="value"&&bc(Hl)){var t=[];wh(t,Hl,o,zd(o)),uh(l2,t)}}function i2(o,t,l){o==="focusin"?(Th(),Ul=t,Hl=l,Ul.attachEvent("onpropertychange",Ah)):o==="focusout"&&Th()}function c2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return bc(Hl)}function s2(o,t){if(o==="click")return bc(t)}function d2(o,t){if(o==="input"||o==="change")return bc(t)}function u2(o,t){return o===t&&(o!==0||1/o===1/t)||o!==o&&t!==t}var Kn=typeof Object.is=="function"?Object.is:u2;function Fl(o,t){if(Kn(o,t))return!0;if(typeof o!="object"||o===null||typeof t!="object"||t===null)return!1;var l=Object.keys(o),c=Object.keys(t);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var f=l[c];if(!Re.call(t,f)||!Kn(o[f],t[f]))return!1}return!0}function Ch(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Eh(o,t){var l=Ch(o);o=0;for(var c;l;){if(l.nodeType===3){if(c=o+l.textContent.length,o<=t&&c>=t)return{node:l,offset:t-o};o=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ch(l)}}function Lh(o,t){return o&&t?o===t?!0:o&&o.nodeType===3?!1:t&&t.nodeType===3?Lh(o,t.parentNode):"contains"in o?o.contains(t):o.compareDocumentPosition?!!(o.compareDocumentPosition(t)&16):!1:!1}function Oh(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var t=lc(o.document);t instanceof o.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)o=t.contentWindow;else break;t=lc(o.document)}return t}function Bd(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t&&(t==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||t==="textarea"||o.contentEditable==="true")}var f2=Mt&&"documentMode"in document&&11>=document.documentMode,Ma=null,Rd=null,Kl=null,Dd=!1;function $h(o,t,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Dd||Ma==null||Ma!==lc(c)||(c=Ma,"selectionStart"in c&&Bd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Kl&&Fl(Kl,c)||(Kl=c,c=os(Rd,"onSelect"),0<c.length&&(t=new uc("onSelect","select",null,t,l),o.push({event:t,listeners:c}),t.target=Ma)))}function Qr(o,t){var l={};return l[o.toLowerCase()]=t.toLowerCase(),l["Webkit"+o]="webkit"+t,l["Moz"+o]="moz"+t,l}var Ia={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionrun:Qr("Transition","TransitionRun"),transitionstart:Qr("Transition","TransitionStart"),transitioncancel:Qr("Transition","TransitionCancel"),transitionend:Qr("Transition","TransitionEnd")},Md={},Nh={};Mt&&(Nh=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function ea(o){if(Md[o])return Md[o];if(!Ia[o])return o;var t=Ia[o],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nh)return Md[o]=t[l];return o}var Bh=ea("animationend"),Rh=ea("animationiteration"),Dh=ea("animationstart"),b2=ea("transitionrun"),m2=ea("transitionstart"),h2=ea("transitioncancel"),Mh=ea("transitionend"),Ih=new Map,Id="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Id.push("scrollEnd");function _t(o,t){Ih.set(o,t),Xr(t,[o])}var mc=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ct=[],Ua=0,Ud=0;function hc(){for(var o=Ua,t=Ud=Ua=0;t<o;){var l=ct[t];ct[t++]=null;var c=ct[t];ct[t++]=null;var f=ct[t];ct[t++]=null;var b=ct[t];if(ct[t++]=null,c!==null&&f!==null){var k=c.pending;k===null?f.next=f:(f.next=k.next,k.next=f),c.pending=f}b!==0&&Uh(l,f,b)}}function pc(o,t,l,c){ct[Ua++]=o,ct[Ua++]=t,ct[Ua++]=l,ct[Ua++]=c,Ud|=c,o.lanes|=c,o=o.alternate,o!==null&&(o.lanes|=c)}function Hd(o,t,l,c){return pc(o,t,l,c),kc(o)}function oa(o,t){return pc(o,null,null,t),kc(o)}function Uh(o,t,l){o.lanes|=l;var c=o.alternate;c!==null&&(c.lanes|=l);for(var f=!1,b=o.return;b!==null;)b.childLanes|=l,c=b.alternate,c!==null&&(c.childLanes|=l),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(f=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,f&&t!==null&&(f=31-wn(l),o=b.hiddenUpdates,c=o[f],c===null?o[f]=[t]:c.push(t),t.lane=l|536870912),b):null}function kc(o){if(50<ui)throw ui=0,Ju=null,Error(i(185));for(var t=o.return;t!==null;)o=t,t=o.return;return o.tag===3?o.stateNode:null}var Ha={};function p2(o,t,l,c){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(o,t,l,c){return new p2(o,t,l,c)}function Fd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function It(o,t){var l=o.alternate;return l===null?(l=Vn(o.tag,t,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=t,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,t=o.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function Hh(o,t){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,t=l.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o}function vc(o,t,l,c,f,b){var k=0;if(c=o,typeof o=="function")Fd(o)&&(k=1);else if(typeof o=="string")k=xz(o,l,fe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case se:return o=Vn(31,l,t,f),o.elementType=se,o.lanes=b,o;case S:return na(l.children,f,b,t);case O:k=8,f|=24;break;case E:return o=Vn(12,l,t,f|2),o.elementType=E,o.lanes=b,o;case D:return o=Vn(13,l,t,f),o.elementType=D,o.lanes=b,o;case H:return o=Vn(19,l,t,f),o.elementType=H,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:k=10;break e;case x:k=9;break e;case $:k=11;break e;case Z:k=14;break e;case ee:k=16,c=null;break e}k=29,l=Error(i(130,o===null?"null":typeof o,"")),c=null}return t=Vn(k,l,t,f),t.elementType=o,t.type=c,t.lanes=b,t}function na(o,t,l,c){return o=Vn(7,o,c,t),o.lanes=l,o}function Kd(o,t,l){return o=Vn(6,o,null,t),o.lanes=l,o}function Fh(o){var t=Vn(18,null,null,0);return t.stateNode=o,t}function Vd(o,t,l){return t=Vn(4,o.children!==null?o.children:[],o.key,t),t.lanes=l,t.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},t}var Kh=new WeakMap;function st(o,t){if(typeof o=="object"&&o!==null){var l=Kh.get(o);return l!==void 0?l:(t={value:o,source:t,stack:ke(t)},Kh.set(o,t),t)}return{value:o,source:t,stack:ke(t)}}var Fa=[],Ka=0,gc=null,Vl=0,dt=[],ut=0,hr=null,At=1,Ct="";function Ut(o,t){Fa[Ka++]=Vl,Fa[Ka++]=gc,gc=o,Vl=t}function Vh(o,t,l){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,hr=o;var c=At;o=Ct;var f=32-wn(c)-1;c&=~(1<<f),l+=1;var b=32-wn(t)+f;if(30<b){var k=f-f%5;b=(c&(1<<k)-1).toString(32),c>>=k,f-=k,At=1<<32-wn(t)+f|l<<f|c,Ct=b+o}else At=1<<b|l<<f|c,Ct=o}function qd(o){o.return!==null&&(Ut(o,1),Vh(o,1,0))}function Zd(o){for(;o===gc;)gc=Fa[--Ka],Fa[Ka]=null,Vl=Fa[--Ka],Fa[Ka]=null;for(;o===hr;)hr=dt[--ut],dt[ut]=null,Ct=dt[--ut],dt[ut]=null,At=dt[--ut],dt[ut]=null}function qh(o,t){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,At=t.id,Ct=t.overflow,hr=o}var cn=null,xo=null,We=!1,pr=null,ft=!1,Pd=Error(i(519));function kr(o){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ql(st(t,o)),Pd}function Zh(o){var t=o.stateNode,l=o.type,c=o.memoizedProps;switch(t[ln]=o,t[En]=c,l){case"dialog":Ze("cancel",t),Ze("close",t);break;case"iframe":case"object":case"embed":Ze("load",t);break;case"video":case"audio":for(l=0;l<bi.length;l++)Ze(bi[l],t);break;case"source":Ze("error",t);break;case"img":case"image":case"link":Ze("error",t),Ze("load",t);break;case"details":Ze("toggle",t);break;case"input":Ze("invalid",t),ah(t,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ze("invalid",t);break;case"textarea":Ze("invalid",t),ih(t,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||c.suppressHydrationWarning===!0||sv(t.textContent,l)?(c.popover!=null&&(Ze("beforetoggle",t),Ze("toggle",t)),c.onScroll!=null&&Ze("scroll",t),c.onScrollEnd!=null&&Ze("scrollend",t),c.onClick!=null&&(t.onclick=Dt),t=!0):t=!1,t||kr(o,!0)}function Ph(o){for(cn=o.return;cn;)switch(cn.tag){case 5:case 31:case 13:ft=!1;return;case 27:case 3:ft=!0;return;default:cn=cn.return}}function Va(o){if(o!==cn)return!1;if(!We)return Ph(o),We=!0,!1;var t=o.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||ff(o.type,o.memoizedProps)),l=!l),l&&xo&&kr(o),Ph(o),t===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=vv(o)}else if(t===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=vv(o)}else t===27?(t=xo,Lr(o.type)?(o=kf,kf=null,xo=o):xo=t):xo=cn?mt(o.stateNode.nextSibling):null;return!0}function ta(){xo=cn=null,We=!1}function Gd(){var o=pr;return o!==null&&(Bn===null?Bn=o:Bn.push.apply(Bn,o),pr=null),o}function ql(o){pr===null?pr=[o]:pr.push(o)}var Yd=C(null),ra=null,Ht=null;function vr(o,t,l){le(Yd,t._currentValue),t._currentValue=l}function Ft(o){o._currentValue=Yd.current,P(Yd)}function Jd(o,t,l){for(;o!==null;){var c=o.alternate;if((o.childLanes&t)!==t?(o.childLanes|=t,c!==null&&(c.childLanes|=t)):c!==null&&(c.childLanes&t)!==t&&(c.childLanes|=t),o===l)break;o=o.return}}function Xd(o,t,l,c){var f=o.child;for(f!==null&&(f.return=o);f!==null;){var b=f.dependencies;if(b!==null){var k=f.child;b=b.firstContext;e:for(;b!==null;){var y=b;b=f;for(var A=0;A<t.length;A++)if(y.context===t[A]){b.lanes|=l,y=b.alternate,y!==null&&(y.lanes|=l),Jd(b.return,l,o),c||(k=null);break e}b=y.next}}else if(f.tag===18){if(k=f.return,k===null)throw Error(i(341));k.lanes|=l,b=k.alternate,b!==null&&(b.lanes|=l),Jd(k,l,o),k=null}else k=f.child;if(k!==null)k.return=f;else for(k=f;k!==null;){if(k===o){k=null;break}if(f=k.sibling,f!==null){f.return=k.return,k=f;break}k=k.return}f=k}}function qa(o,t,l,c){o=null;for(var f=t,b=!1;f!==null;){if(!b){if((f.flags&524288)!==0)b=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var k=f.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var y=f.type;Kn(f.pendingProps.value,k.value)||(o!==null?o.push(y):o=[y])}}else if(f===Ge.current){if(k=f.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(o!==null?o.push(vi):o=[vi])}f=f.return}o!==null&&Xd(t,o,l,c),t.flags|=262144}function _c(o){for(o=o.firstContext;o!==null;){if(!Kn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function aa(o){ra=o,Ht=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function sn(o){return Gh(ra,o)}function xc(o,t){return ra===null&&aa(o),Gh(o,t)}function Gh(o,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ht===null){if(o===null)throw Error(i(308));Ht=t,o.dependencies={lanes:0,firstContext:t},o.flags|=524288}else Ht=Ht.next=t;return l}var k2=typeof AbortController<"u"?AbortController:function(){var o=[],t=this.signal={aborted:!1,addEventListener:function(l,c){o.push(c)}};this.abort=function(){t.aborted=!0,o.forEach(function(l){return l()})}},v2=e.unstable_scheduleCallback,g2=e.unstable_NormalPriority,Fo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wd(){return{controller:new k2,data:new Map,refCount:0}}function Zl(o){o.refCount--,o.refCount===0&&v2(g2,function(){o.controller.abort()})}var Pl=null,Qd=0,Za=0,Pa=null;function _2(o,t){if(Pl===null){var l=Pl=[];Qd=0,Za=nf(),Pa={status:"pending",value:void 0,then:function(c){l.push(c)}}}return Qd++,t.then(Yh,Yh),t}function Yh(){if(--Qd===0&&Pl!==null){Pa!==null&&(Pa.status="fulfilled");var o=Pl;Pl=null,Za=0,Pa=null;for(var t=0;t<o.length;t++)(0,o[t])()}}function x2(o,t){var l=[],c={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return o.then(function(){c.status="fulfilled",c.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(c.status="rejected",c.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),c}var Jh=M.S;M.S=function(o,t){$k=te(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_2(o,t),Jh!==null&&Jh(o,t)};var la=C(null);function eu(){var o=la.current;return o!==null?o:go.pooledCache}function yc(o,t){t===null?le(la,la.current):le(la,t.pool)}function Xh(){var o=eu();return o===null?null:{parent:Fo._currentValue,pool:o}}var Ga=Error(i(460)),ou=Error(i(474)),wc=Error(i(542)),zc={then:function(){}};function Wh(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Qh(o,t,l){switch(l=o[l],l===void 0?o.push(t):l!==t&&(t.then(Dt,Dt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,op(o),o;default:if(typeof t.status=="string")t.then(Dt,Dt);else{if(o=go,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=t,o.status="pending",o.then(function(c){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=c}},function(c){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,op(o),o}throw ca=t,Ga}}function ia(o){try{var t=o._init;return t(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ca=l,Ga):l}}var ca=null;function ep(){if(ca===null)throw Error(i(459));var o=ca;return ca=null,o}function op(o){if(o===Ga||o===wc)throw Error(i(483))}var Ya=null,Gl=0;function jc(o){var t=Gl;return Gl+=1,Ya===null&&(Ya=[]),Qh(Ya,o,t)}function Yl(o,t){t=t.props.ref,o.ref=t!==void 0?t:null}function Sc(o,t){throw t.$$typeof===_?Error(i(525)):(o=Object.prototype.toString.call(t),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)))}function np(o){function t(R,L){if(o){var I=R.deletions;I===null?(R.deletions=[L],R.flags|=16):I.push(L)}}function l(R,L){if(!o)return null;for(;L!==null;)t(R,L),L=L.sibling;return null}function c(R){for(var L=new Map;R!==null;)R.key!==null?L.set(R.key,R):L.set(R.index,R),R=R.sibling;return L}function f(R,L){return R=It(R,L),R.index=0,R.sibling=null,R}function b(R,L,I){return R.index=I,o?(I=R.alternate,I!==null?(I=I.index,I<L?(R.flags|=67108866,L):I):(R.flags|=67108866,L)):(R.flags|=1048576,L)}function k(R){return o&&R.alternate===null&&(R.flags|=67108866),R}function y(R,L,I,J){return L===null||L.tag!==6?(L=Kd(I,R.mode,J),L.return=R,L):(L=f(L,I),L.return=R,L)}function A(R,L,I,J){var ze=I.type;return ze===S?Y(R,L,I.props.children,J,I.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type)?(L=f(L,I.props),Yl(L,I),L.return=R,L):(L=vc(I.type,I.key,I.props,null,R.mode,J),Yl(L,I),L.return=R,L)}function U(R,L,I,J){return L===null||L.tag!==4||L.stateNode.containerInfo!==I.containerInfo||L.stateNode.implementation!==I.implementation?(L=Vd(I,R.mode,J),L.return=R,L):(L=f(L,I.children||[]),L.return=R,L)}function Y(R,L,I,J,ze){return L===null||L.tag!==7?(L=na(I,R.mode,J,ze),L.return=R,L):(L=f(L,I),L.return=R,L)}function Q(R,L,I){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Kd(""+L,R.mode,I),L.return=R,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case z:return I=vc(L.type,L.key,L.props,null,R.mode,I),Yl(I,L),I.return=R,I;case N:return L=Vd(L,R.mode,I),L.return=R,L;case ee:return L=ia(L),Q(R,L,I)}if(Fe(L)||ne(L))return L=na(L,R.mode,I,null),L.return=R,L;if(typeof L.then=="function")return Q(R,jc(L),I);if(L.$$typeof===w)return Q(R,xc(R,L),I);Sc(R,L)}return null}function K(R,L,I,J){var ze=L!==null?L.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return ze!==null?null:y(R,L,""+I,J);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return I.key===ze?A(R,L,I,J):null;case N:return I.key===ze?U(R,L,I,J):null;case ee:return I=ia(I),K(R,L,I,J)}if(Fe(I)||ne(I))return ze!==null?null:Y(R,L,I,J,null);if(typeof I.then=="function")return K(R,L,jc(I),J);if(I.$$typeof===w)return K(R,L,xc(R,I),J);Sc(R,I)}return null}function q(R,L,I,J,ze){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return R=R.get(I)||null,y(L,R,""+J,ze);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case z:return R=R.get(J.key===null?I:J.key)||null,A(L,R,J,ze);case N:return R=R.get(J.key===null?I:J.key)||null,U(L,R,J,ze);case ee:return J=ia(J),q(R,L,I,J,ze)}if(Fe(J)||ne(J))return R=R.get(I)||null,Y(L,R,J,ze,null);if(typeof J.then=="function")return q(R,L,I,jc(J),ze);if(J.$$typeof===w)return q(R,L,I,xc(L,J),ze);Sc(L,J)}return null}function pe(R,L,I,J){for(var ze=null,no=null,ge=L,Ie=L=0,Je=null;ge!==null&&Ie<I.length;Ie++){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var to=K(R,ge,I[Ie],J);if(to===null){ge===null&&(ge=Je);break}o&&ge&&to.alternate===null&&t(R,ge),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to,ge=Je}if(Ie===I.length)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;Ie<I.length;Ie++)ge=Q(R,I[Ie],J),ge!==null&&(L=b(ge,L,Ie),no===null?ze=ge:no.sibling=ge,no=ge);return We&&Ut(R,Ie),ze}for(ge=c(ge);Ie<I.length;Ie++)Je=q(ge,R,Ie,I[Ie],J),Je!==null&&(o&&Je.alternate!==null&&ge.delete(Je.key===null?Ie:Je.key),L=b(Je,L,Ie),no===null?ze=Je:no.sibling=Je,no=Je);return o&&ge.forEach(function(Rr){return t(R,Rr)}),We&&Ut(R,Ie),ze}function Ae(R,L,I,J){if(I==null)throw Error(i(151));for(var ze=null,no=null,ge=L,Ie=L=0,Je=null,to=I.next();ge!==null&&!to.done;Ie++,to=I.next()){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var Rr=K(R,ge,to.value,J);if(Rr===null){ge===null&&(ge=Je);break}o&&ge&&Rr.alternate===null&&t(R,ge),L=b(Rr,L,Ie),no===null?ze=Rr:no.sibling=Rr,no=Rr,ge=Je}if(to.done)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;!to.done;Ie++,to=I.next())to=Q(R,to.value,J),to!==null&&(L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return We&&Ut(R,Ie),ze}for(ge=c(ge);!to.done;Ie++,to=I.next())to=q(ge,R,Ie,to.value,J),to!==null&&(o&&to.alternate!==null&&ge.delete(to.key===null?Ie:to.key),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return o&&ge.forEach(function(Oz){return t(R,Oz)}),We&&Ut(R,Ie),ze}function vo(R,L,I,J){if(typeof I=="object"&&I!==null&&I.type===S&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var ze=I.key;L!==null;){if(L.key===ze){if(ze=I.type,ze===S){if(L.tag===7){l(R,L.sibling),J=f(L,I.props.children),J.return=R,R=J;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type){l(R,L.sibling),J=f(L,I.props),Yl(J,I),J.return=R,R=J;break e}l(R,L);break}else t(R,L);L=L.sibling}I.type===S?(J=na(I.props.children,R.mode,J,I.key),J.return=R,R=J):(J=vc(I.type,I.key,I.props,null,R.mode,J),Yl(J,I),J.return=R,R=J)}return k(R);case N:e:{for(ze=I.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===I.containerInfo&&L.stateNode.implementation===I.implementation){l(R,L.sibling),J=f(L,I.children||[]),J.return=R,R=J;break e}else{l(R,L);break}else t(R,L);L=L.sibling}J=Vd(I,R.mode,J),J.return=R,R=J}return k(R);case ee:return I=ia(I),vo(R,L,I,J)}if(Fe(I))return pe(R,L,I,J);if(ne(I)){if(ze=ne(I),typeof ze!="function")throw Error(i(150));return I=ze.call(I),Ae(R,L,I,J)}if(typeof I.then=="function")return vo(R,L,jc(I),J);if(I.$$typeof===w)return vo(R,L,xc(R,I),J);Sc(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,L!==null&&L.tag===6?(l(R,L.sibling),J=f(L,I),J.return=R,R=J):(l(R,L),J=Kd(I,R.mode,J),J.return=R,R=J),k(R)):l(R,L)}return function(R,L,I,J){try{Gl=0;var ze=vo(R,L,I,J);return Ya=null,ze}catch(ge){if(ge===Ga||ge===wc)throw ge;var no=Vn(29,ge,null,R.mode);return no.lanes=J,no.return=R,no}finally{}}}var sa=np(!0),tp=np(!1),gr=!1;function nu(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(o,t){o=o.updateQueue,t.updateQueue===o&&(t.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function _r(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function xr(o,t,l){var c=o.updateQueue;if(c===null)return null;if(c=c.shared,(co&2)!==0){var f=c.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),c.pending=t,t=kc(o),Uh(o,null,l),t}return pc(o,c,t,l),kc(o)}function Jl(o,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var c=t.lanes;c&=o.pendingLanes,l|=c,t.lanes=l,Gm(o,l)}}function ru(o,t){var l=o.updateQueue,c=o.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var f=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?f=b=k:b=b.next=k,l=l.next}while(l!==null);b===null?f=b=t:b=b.next=t}else f=b=t;l={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:b,shared:c.shared,callbacks:c.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=t:o.next=t,l.lastBaseUpdate=t}var au=!1;function Xl(){if(au){var o=Pa;if(o!==null)throw o}}function Wl(o,t,l,c){au=!1;var f=o.updateQueue;gr=!1;var b=f.firstBaseUpdate,k=f.lastBaseUpdate,y=f.shared.pending;if(y!==null){f.shared.pending=null;var A=y,U=A.next;A.next=null,k===null?b=U:k.next=U,k=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,y=Y.lastBaseUpdate,y!==k&&(y===null?Y.firstBaseUpdate=U:y.next=U,Y.lastBaseUpdate=A))}if(b!==null){var Q=f.baseState;k=0,Y=U=A=null,y=b;do{var K=y.lane&-536870913,q=K!==y.lane;if(q?(Ye&K)===K:(c&K)===K){K!==0&&K===Za&&(au=!0),Y!==null&&(Y=Y.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var pe=o,Ae=y;K=t;var vo=l;switch(Ae.tag){case 1:if(pe=Ae.payload,typeof pe=="function"){Q=pe.call(vo,Q,K);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ae.payload,K=typeof pe=="function"?pe.call(vo,Q,K):pe,K==null)break e;Q=v({},Q,K);break e;case 2:gr=!0}}K=y.callback,K!==null&&(o.flags|=64,q&&(o.flags|=8192),q=f.callbacks,q===null?f.callbacks=[K]:q.push(K))}else q={lane:K,tag:y.tag,payload:y.payload,callback:y.callback,next:null},Y===null?(U=Y=q,A=Q):Y=Y.next=q,k|=K;if(y=y.next,y===null){if(y=f.shared.pending,y===null)break;q=y,y=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);Y===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=U,f.lastBaseUpdate=Y,b===null&&(f.shared.lanes=0),Sr|=k,o.lanes=k,o.memoizedState=Q}}function rp(o,t){if(typeof o!="function")throw Error(i(191,o));o.call(t)}function ap(o,t){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)rp(l[o],t)}var Ja=C(null),Tc=C(0);function lp(o,t){o=Xt,le(Tc,o),le(Ja,t),Xt=o|t.baseLanes}function lu(){le(Tc,Xt),le(Ja,Ja.current)}function iu(){Xt=Tc.current,P(Ja),P(Tc)}var qn=C(null),bt=null;function yr(o){var t=o.alternate;le(Uo,Uo.current&1),le(qn,o),bt===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(bt=o)}function cu(o){le(Uo,Uo.current),le(qn,o),bt===null&&(bt=o)}function ip(o){o.tag===22?(le(Uo,Uo.current),le(qn,o),bt===null&&(bt=o)):wr()}function wr(){le(Uo,Uo.current),le(qn,qn.current)}function Zn(o){P(qn),bt===o&&(bt=null),P(Uo)}var Uo=C(0);function Ac(o){for(var t=o;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||hf(l)||pf(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kt=0,Me=null,po=null,Ko=null,Cc=!1,Xa=!1,da=!1,Ec=0,Ql=0,Wa=null,y2=0;function No(){throw Error(i(321))}function su(o,t){if(t===null)return!1;for(var l=0;l<t.length&&l<o.length;l++)if(!Kn(o[l],t[l]))return!1;return!0}function du(o,t,l,c,f,b){return Kt=b,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=o===null||o.memoizedState===null?Vp:ju,da=!1,b=l(c,f),da=!1,Xa&&(b=sp(t,l,c,f)),cp(o),b}function cp(o){M.H=ni;var t=po!==null&&po.next!==null;if(Kt=0,Ko=po=Me=null,Cc=!1,Ql=0,Wa=null,t)throw Error(i(300));o===null||Vo||(o=o.dependencies,o!==null&&_c(o)&&(Vo=!0))}function sp(o,t,l,c){Me=o;var f=0;do{if(Xa&&(Wa=null),Ql=0,Xa=!1,25<=f)throw Error(i(301));if(f+=1,Ko=po=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}M.H=qp,b=t(l,c)}while(Xa);return b}function w2(){var o=M.H,t=o.useState()[0];return t=typeof t.then=="function"?ei(t):t,o=o.useState()[0],(po!==null?po.memoizedState:null)!==o&&(Me.flags|=1024),t}function uu(){var o=Ec!==0;return Ec=0,o}function fu(o,t,l){t.updateQueue=o.updateQueue,t.flags&=-2053,o.lanes&=~l}function bu(o){if(Cc){for(o=o.memoizedState;o!==null;){var t=o.queue;t!==null&&(t.pending=null),o=o.next}Cc=!1}Kt=0,Ko=po=Me=null,Xa=!1,Ql=Ec=0,Wa=null}function zn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o,Ko}function Ho(){if(po===null){var o=Me.alternate;o=o!==null?o.memoizedState:null}else o=po.next;var t=Ko===null?Me.memoizedState:Ko.next;if(t!==null)Ko=t,po=o;else{if(o===null)throw Me.alternate===null?Error(i(467)):Error(i(310));po=o,o={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o}return Ko}function Lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ei(o){var t=Ql;return Ql+=1,Wa===null&&(Wa=[]),o=Qh(Wa,o,t),t=Me,(Ko===null?t.memoizedState:Ko.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Vp:ju),o}function Oc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ei(o);if(o.$$typeof===w)return sn(o)}throw Error(i(438,String(o)))}function mu(o){var t=null,l=Me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var c=Me.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(t={data:c.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Lc(),Me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(o),c=0;c<o;c++)l[c]=$e;return t.index++,l}function Vt(o,t){return typeof t=="function"?t(o):t}function $c(o){var t=Ho();return hu(t,po,o)}function hu(o,t,l){var c=o.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var f=o.baseQueue,b=c.pending;if(b!==null){if(f!==null){var k=f.next;f.next=b.next,b.next=k}t.baseQueue=f=b,c.pending=null}if(b=o.baseState,f===null)o.memoizedState=b;else{t=f.next;var y=k=null,A=null,U=t,Y=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ye&Q)===Q:(Kt&Q)===Q){var K=U.revertLane;if(K===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Za&&(Y=!0);else if((Kt&K)===K){U=U.next,K===Za&&(Y=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=Q,k=b):A=A.next=Q,Me.lanes|=K,Sr|=K;Q=U.action,da&&l(b,Q),b=U.hasEagerState?U.eagerState:l(b,Q)}else K={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=K,k=b):A=A.next=K,Me.lanes|=Q,Sr|=Q;U=U.next}while(U!==null&&U!==t);if(A===null?k=b:A.next=y,!Kn(b,o.memoizedState)&&(Vo=!0,Y&&(l=Pa,l!==null)))throw l;o.memoizedState=b,o.baseState=k,o.baseQueue=A,c.lastRenderedState=b}return f===null&&(c.lanes=0),[o.memoizedState,c.dispatch]}function pu(o){var t=Ho(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var c=l.dispatch,f=l.pending,b=t.memoizedState;if(f!==null){l.pending=null;var k=f=f.next;do b=o(b,k.action),k=k.next;while(k!==f);Kn(b,t.memoizedState)||(Vo=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,c]}function dp(o,t,l){var c=Me,f=Ho(),b=We;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=t();var k=!Kn((po||f).memoizedState,l);if(k&&(f.memoizedState=l,Vo=!0),f=f.queue,gu(bp.bind(null,c,f,o),[o]),f.getSnapshot!==t||k||Ko!==null&&Ko.memoizedState.tag&1){if(c.flags|=2048,Qa(9,{destroy:void 0},fp.bind(null,c,f,l,t),null),go===null)throw Error(i(349));b||(Kt&127)!==0||up(c,t,l)}return l}function up(o,t,l){o.flags|=16384,o={getSnapshot:t,value:l},t=Me.updateQueue,t===null?(t=Lc(),Me.updateQueue=t,t.stores=[o]):(l=t.stores,l===null?t.stores=[o]:l.push(o))}function fp(o,t,l,c){t.value=l,t.getSnapshot=c,mp(t)&&hp(o)}function bp(o,t,l){return l(function(){mp(t)&&hp(o)})}function mp(o){var t=o.getSnapshot;o=o.value;try{var l=t();return!Kn(o,l)}catch{return!0}}function hp(o){var t=oa(o,2);t!==null&&Rn(t,o,2)}function ku(o){var t=zn();if(typeof o=="function"){var l=o;if(o=l(),da){at(!0);try{l()}finally{at(!1)}}}return t.memoizedState=t.baseState=o,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:o},t}function pp(o,t,l,c){return o.baseState=l,hu(o,po,typeof c=="function"?c:Vt)}function z2(o,t,l,c,f){if(Rc(o))throw Error(i(485));if(o=t.action,o!==null){var b={payload:f,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};M.T!==null?l(!0):b.isTransition=!1,c(b),l=t.pending,l===null?(b.next=t.pending=b,kp(t,b)):(b.next=l.next,t.pending=l.next=b)}}function kp(o,t){var l=t.action,c=t.payload,f=o.state;if(t.isTransition){var b=M.T,k={};M.T=k;try{var y=l(f,c),A=M.S;A!==null&&A(k,y),vp(o,t,y)}catch(U){vu(o,t,U)}finally{b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}else try{b=l(f,c),vp(o,t,b)}catch(U){vu(o,t,U)}}function vp(o,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){gp(o,t,c)},function(c){return vu(o,t,c)}):gp(o,t,l)}function gp(o,t,l){t.status="fulfilled",t.value=l,_p(t),o.state=l,t=o.pending,t!==null&&(l=t.next,l===t?o.pending=null:(l=l.next,t.next=l,kp(o,l)))}function vu(o,t,l){var c=o.pending;if(o.pending=null,c!==null){c=c.next;do t.status="rejected",t.reason=l,_p(t),t=t.next;while(t!==c)}o.action=null}function _p(o){o=o.listeners;for(var t=0;t<o.length;t++)(0,o[t])()}function xp(o,t){return t}function yp(o,t){if(We){var l=go.formState;if(l!==null){e:{var c=Me;if(We){if(xo){o:{for(var f=xo,b=ft;f.nodeType!==8;){if(!b){f=null;break o}if(f=mt(f.nextSibling),f===null){f=null;break o}}b=f.data,f=b==="F!"||b==="F"?f:null}if(f){xo=mt(f.nextSibling),c=f.data==="F!";break e}}kr(c)}c=!1}c&&(t=l[0])}}return l=zn(),l.memoizedState=l.baseState=t,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xp,lastRenderedState:t},l.queue=c,l=Hp.bind(null,Me,c),c.dispatch=l,c=ku(!1),b=zu.bind(null,Me,!1,c.queue),c=zn(),f={state:t,dispatch:null,action:o,pending:null},c.queue=f,l=z2.bind(null,Me,f,b,l),f.dispatch=l,c.memoizedState=o,[t,l,!1]}function wp(o){var t=Ho();return zp(t,po,o)}function zp(o,t,l){if(t=hu(o,t,xp)[0],o=$c(Vt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var c=ei(t)}catch(k){throw k===Ga?wc:k}else c=t;t=Ho();var f=t.queue,b=f.dispatch;return l!==t.memoizedState&&(Me.flags|=2048,Qa(9,{destroy:void 0},j2.bind(null,f,l),null)),[c,b,o]}function j2(o,t){o.action=t}function jp(o){var t=Ho(),l=po;if(l!==null)return zp(t,l,o);Ho(),t=t.memoizedState,l=Ho();var c=l.queue.dispatch;return l.memoizedState=o,[t,c,!1]}function Qa(o,t,l,c){return o={tag:o,create:l,deps:c,inst:t,next:null},t=Me.updateQueue,t===null&&(t=Lc(),Me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=o.next=o:(c=l.next,l.next=o,o.next=c,t.lastEffect=o),o}function Sp(){return Ho().memoizedState}function Nc(o,t,l,c){var f=zn();Me.flags|=o,f.memoizedState=Qa(1|t,{destroy:void 0},l,c===void 0?null:c)}function Bc(o,t,l,c){var f=Ho();c=c===void 0?null:c;var b=f.memoizedState.inst;po!==null&&c!==null&&su(c,po.memoizedState.deps)?f.memoizedState=Qa(t,b,l,c):(Me.flags|=o,f.memoizedState=Qa(1|t,b,l,c))}function Tp(o,t){Nc(8390656,8,o,t)}function gu(o,t){Bc(2048,8,o,t)}function S2(o){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=Lc(),Me.updateQueue=t,t.events=[o];else{var l=t.events;l===null?t.events=[o]:l.push(o)}}function Ap(o){var t=Ho().memoizedState;return S2({ref:t,nextImpl:o}),function(){if((co&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Cp(o,t){return Bc(4,2,o,t)}function Ep(o,t){return Bc(4,4,o,t)}function Lp(o,t){if(typeof t=="function"){o=o();var l=t(o);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return o=o(),t.current=o,function(){t.current=null}}function Op(o,t,l){l=l!=null?l.concat([o]):null,Bc(4,4,Lp.bind(null,t,o),l)}function _u(){}function $p(o,t){var l=Ho();t=t===void 0?null:t;var c=l.memoizedState;return t!==null&&su(t,c[1])?c[0]:(l.memoizedState=[o,t],o)}function Np(o,t){var l=Ho();t=t===void 0?null:t;var c=l.memoizedState;if(t!==null&&su(t,c[1]))return c[0];if(c=o(),da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[c,t],c}function xu(o,t,l){return l===void 0||(Kt&1073741824)!==0&&(Ye&261930)===0?o.memoizedState=t:(o.memoizedState=l,o=Bk(),Me.lanes|=o,Sr|=o,l)}function Bp(o,t,l,c){return Kn(l,t)?l:Ja.current!==null?(o=xu(o,l,c),Kn(o,t)||(Vo=!0),o):(Kt&42)===0||(Kt&1073741824)!==0&&(Ye&261930)===0?(Vo=!0,o.memoizedState=l):(o=Bk(),Me.lanes|=o,Sr|=o,t)}function Rp(o,t,l,c,f){var b=G.p;G.p=b!==0&&8>b?b:8;var k=M.T,y={};M.T=y,zu(o,!1,t,l);try{var A=f(),U=M.S;if(U!==null&&U(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=x2(A,c);oi(o,t,Y,Yn(o))}else oi(o,t,c,Yn(o))}catch(Q){oi(o,t,{then:function(){},status:"rejected",reason:Q},Yn())}finally{G.p=b,k!==null&&y.types!==null&&(k.types=y.types),M.T=k}}function T2(){}function yu(o,t,l,c){if(o.tag!==5)throw Error(i(476));var f=Dp(o).queue;Rp(o,f,t,ie,l===null?T2:function(){return Mp(o),l(c)})}function Dp(o){var t=o.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:l},next:null},o.memoizedState=t,o=o.alternate,o!==null&&(o.memoizedState=t),t}function Mp(o){var t=Dp(o);t.next===null&&(t=o.alternate.memoizedState),oi(o,t.next.queue,{},Yn())}function wu(){return sn(vi)}function Ip(){return Ho().memoizedState}function Up(){return Ho().memoizedState}function A2(o){for(var t=o.return;t!==null;){switch(t.tag){case 24:case 3:var l=Yn();o=_r(l);var c=xr(t,o,l);c!==null&&(Rn(c,t,l),Jl(c,t,l)),t={cache:Wd()},o.payload=t;return}t=t.return}}function C2(o,t,l){var c=Yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Rc(o)?Fp(t,l):(l=Hd(o,t,l,c),l!==null&&(Rn(l,o,c),Kp(l,t,c)))}function Hp(o,t,l){var c=Yn();oi(o,t,l,c)}function oi(o,t,l,c){var f={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Rc(o))Fp(t,f);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=t.lastRenderedReducer,b!==null))try{var k=t.lastRenderedState,y=b(k,l);if(f.hasEagerState=!0,f.eagerState=y,Kn(y,k))return pc(o,t,f,0),go===null&&hc(),!1}catch{}finally{}if(l=Hd(o,t,f,c),l!==null)return Rn(l,o,c),Kp(l,t,c),!0}return!1}function zu(o,t,l,c){if(c={lane:2,revertLane:nf(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Rc(o)){if(t)throw Error(i(479))}else t=Hd(o,l,c,2),t!==null&&Rn(t,o,2)}function Rc(o){var t=o.alternate;return o===Me||t!==null&&t===Me}function Fp(o,t){Xa=Cc=!0;var l=o.pending;l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t}function Kp(o,t,l){if((l&4194048)!==0){var c=t.lanes;c&=o.pendingLanes,l|=c,t.lanes=l,Gm(o,l)}}var ni={readContext:sn,use:Oc,useCallback:No,useContext:No,useEffect:No,useImperativeHandle:No,useLayoutEffect:No,useInsertionEffect:No,useMemo:No,useReducer:No,useRef:No,useState:No,useDebugValue:No,useDeferredValue:No,useTransition:No,useSyncExternalStore:No,useId:No,useHostTransitionStatus:No,useFormState:No,useActionState:No,useOptimistic:No,useMemoCache:No,useCacheRefresh:No};ni.useEffectEvent=No;var Vp={readContext:sn,use:Oc,useCallback:function(o,t){return zn().memoizedState=[o,t===void 0?null:t],o},useContext:sn,useEffect:Tp,useImperativeHandle:function(o,t,l){l=l!=null?l.concat([o]):null,Nc(4194308,4,Lp.bind(null,t,o),l)},useLayoutEffect:function(o,t){return Nc(4194308,4,o,t)},useInsertionEffect:function(o,t){Nc(4,2,o,t)},useMemo:function(o,t){var l=zn();t=t===void 0?null:t;var c=o();if(da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[c,t],c},useReducer:function(o,t,l){var c=zn();if(l!==void 0){var f=l(t);if(da){at(!0);try{l(t)}finally{at(!1)}}}else f=t;return c.memoizedState=c.baseState=f,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:f},c.queue=o,o=o.dispatch=C2.bind(null,Me,o),[c.memoizedState,o]},useRef:function(o){var t=zn();return o={current:o},t.memoizedState=o},useState:function(o){o=ku(o);var t=o.queue,l=Hp.bind(null,Me,t);return t.dispatch=l,[o.memoizedState,l]},useDebugValue:_u,useDeferredValue:function(o,t){var l=zn();return xu(l,o,t)},useTransition:function(){var o=ku(!1);return o=Rp.bind(null,Me,o.queue,!0,!1),zn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,t,l){var c=Me,f=zn();if(We){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),go===null)throw Error(i(349));(Ye&127)!==0||up(c,t,l)}f.memoizedState=l;var b={value:l,getSnapshot:t};return f.queue=b,Tp(bp.bind(null,c,b,o),[o]),c.flags|=2048,Qa(9,{destroy:void 0},fp.bind(null,c,b,l,t),null),l},useId:function(){var o=zn(),t=go.identifierPrefix;if(We){var l=Ct,c=At;l=(c&~(1<<32-wn(c)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ec++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=y2++,t="_"+t+"r_"+l.toString(32)+"_";return o.memoizedState=t},useHostTransitionStatus:wu,useFormState:yp,useActionState:yp,useOptimistic:function(o){var t=zn();t.memoizedState=t.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=zu.bind(null,Me,!0,l),l.dispatch=t,[o,t]},useMemoCache:mu,useCacheRefresh:function(){return zn().memoizedState=A2.bind(null,Me)},useEffectEvent:function(o){var t=zn(),l={impl:o};return t.memoizedState=l,function(){if((co&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},ju={readContext:sn,use:Oc,useCallback:$p,useContext:sn,useEffect:gu,useImperativeHandle:Op,useInsertionEffect:Cp,useLayoutEffect:Ep,useMemo:Np,useReducer:$c,useRef:Sp,useState:function(){return $c(Vt)},useDebugValue:_u,useDeferredValue:function(o,t){var l=Ho();return Bp(l,po.memoizedState,o,t)},useTransition:function(){var o=$c(Vt)[0],t=Ho().memoizedState;return[typeof o=="boolean"?o:ei(o),t]},useSyncExternalStore:dp,useId:Ip,useHostTransitionStatus:wu,useFormState:wp,useActionState:wp,useOptimistic:function(o,t){var l=Ho();return pp(l,po,o,t)},useMemoCache:mu,useCacheRefresh:Up};ju.useEffectEvent=Ap;var qp={readContext:sn,use:Oc,useCallback:$p,useContext:sn,useEffect:gu,useImperativeHandle:Op,useInsertionEffect:Cp,useLayoutEffect:Ep,useMemo:Np,useReducer:pu,useRef:Sp,useState:function(){return pu(Vt)},useDebugValue:_u,useDeferredValue:function(o,t){var l=Ho();return po===null?xu(l,o,t):Bp(l,po.memoizedState,o,t)},useTransition:function(){var o=pu(Vt)[0],t=Ho().memoizedState;return[typeof o=="boolean"?o:ei(o),t]},useSyncExternalStore:dp,useId:Ip,useHostTransitionStatus:wu,useFormState:jp,useActionState:jp,useOptimistic:function(o,t){var l=Ho();return po!==null?pp(l,po,o,t):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:mu,useCacheRefresh:Up};qp.useEffectEvent=Ap;function Su(o,t,l,c){t=o.memoizedState,l=l(c,t),l=l==null?t:v({},t,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var Tu={enqueueSetState:function(o,t,l){o=o._reactInternals;var c=Yn(),f=_r(c);f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,c),t!==null&&(Rn(t,o,c),Jl(t,o,c))},enqueueReplaceState:function(o,t,l){o=o._reactInternals;var c=Yn(),f=_r(c);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,c),t!==null&&(Rn(t,o,c),Jl(t,o,c))},enqueueForceUpdate:function(o,t){o=o._reactInternals;var l=Yn(),c=_r(l);c.tag=2,t!=null&&(c.callback=t),t=xr(o,c,l),t!==null&&(Rn(t,o,l),Jl(t,o,l))}};function Zp(o,t,l,c,f,b,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(c,b,k):t.prototype&&t.prototype.isPureReactComponent?!Fl(l,c)||!Fl(f,b):!0}function Pp(o,t,l,c){o=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,c),t.state!==o&&Tu.enqueueReplaceState(t,t.state,null)}function ua(o,t){var l=t;if("ref"in t){l={};for(var c in t)c!=="ref"&&(l[c]=t[c])}if(o=o.defaultProps){l===t&&(l=v({},l));for(var f in o)l[f]===void 0&&(l[f]=o[f])}return l}function Gp(o){mc(o)}function Yp(o){console.error(o)}function Jp(o){mc(o)}function Dc(o,t){try{var l=o.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(c){setTimeout(function(){throw c})}}function Xp(o,t,l){try{var c=o.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Au(o,t,l){return l=_r(l),l.tag=3,l.payload={element:null},l.callback=function(){Dc(o,t)},l}function Wp(o){return o=_r(o),o.tag=3,o}function Qp(o,t,l,c){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var b=c.value;o.payload=function(){return f(b)},o.callback=function(){Xp(t,l,c)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){Xp(t,l,c),typeof f!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var y=c.stack;this.componentDidCatch(c.value,{componentStack:y!==null?y:""})})}function E2(o,t,l,c,f){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(t=l.alternate,t!==null&&qa(t,l,f,!0),l=qn.current,l!==null){switch(l.tag){case 31:case 13:return bt===null?Yc():l.alternate===null&&Bo===0&&(Bo=3),l.flags&=-257,l.flags|=65536,l.lanes=f,c===zc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([c]):t.add(c),Qu(o,c,f)),!1;case 22:return l.flags|=65536,c===zc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([c]):l.add(c)),Qu(o,c,f)),!1}throw Error(i(435,l.tag))}return Qu(o,c,f),Yc(),!1}if(We)return t=qn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,c!==Pd&&(o=Error(i(422),{cause:c}),ql(st(o,l)))):(c!==Pd&&(t=Error(i(423),{cause:c}),ql(st(t,l))),o=o.current.alternate,o.flags|=65536,f&=-f,o.lanes|=f,c=st(c,l),f=Au(o.stateNode,c,f),ru(o,f),Bo!==4&&(Bo=2)),!1;var b=Error(i(520),{cause:c});if(b=st(b,l),di===null?di=[b]:di.push(b),Bo!==4&&(Bo=2),t===null)return!0;c=st(c,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,o=f&-f,l.lanes|=o,o=Au(l.stateNode,c,o),ru(l,o),!1;case 1:if(t=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Tr===null||!Tr.has(b))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Wp(f),Qp(f,o,l,c),ru(l,f),!1}l=l.return}while(l!==null);return!1}var Cu=Error(i(461)),Vo=!1;function dn(o,t,l,c){t.child=o===null?tp(t,null,l,c):sa(t,o.child,l,c)}function ek(o,t,l,c,f){l=l.render;var b=t.ref;if("ref"in c){var k={};for(var y in c)y!=="ref"&&(k[y]=c[y])}else k=c;return aa(t),c=du(o,t,l,k,b,f),y=uu(),o!==null&&!Vo?(fu(o,t,f),qt(o,t,f)):(We&&y&&qd(t),t.flags|=1,dn(o,t,c,f),t.child)}function ok(o,t,l,c,f){if(o===null){var b=l.type;return typeof b=="function"&&!Fd(b)&&b.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=b,nk(o,t,b,c,f)):(o=vc(l.type,null,c,t,t.mode,f),o.ref=t.ref,o.return=t,t.child=o)}if(b=o.child,!Du(o,f)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Fl,l(k,c)&&o.ref===t.ref)return qt(o,t,f)}return t.flags|=1,o=It(b,c),o.ref=t.ref,o.return=t,t.child=o}function nk(o,t,l,c,f){if(o!==null){var b=o.memoizedProps;if(Fl(b,c)&&o.ref===t.ref)if(Vo=!1,t.pendingProps=c=b,Du(o,f))(o.flags&131072)!==0&&(Vo=!0);else return t.lanes=o.lanes,qt(o,t,f)}return Eu(o,t,l,c,f)}function tk(o,t,l,c){var f=c.children,b=o!==null?o.memoizedState:null;if(o===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((t.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,o!==null){for(c=t.child=o.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~b}else c=0,t.child=null;return rk(o,t,b,l,c)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},o!==null&&yc(t,b!==null?b.cachePool:null),b!==null?lp(t,b):lu(),ip(t);else return c=t.lanes=536870912,rk(o,t,b!==null?b.baseLanes|l:l,l,c)}else b!==null?(yc(t,b.cachePool),lp(t,b),wr(),t.memoizedState=null):(o!==null&&yc(t,null),lu(),wr());return dn(o,t,f,l),t.child}function ti(o,t){return o!==null&&o.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rk(o,t,l,c,f){var b=eu();return b=b===null?null:{parent:Fo._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},o!==null&&yc(t,null),lu(),ip(t),o!==null&&qa(o,t,c,!0),t.childLanes=f,null}function Mc(o,t){return t=Uc({mode:t.mode,children:t.children},o.mode),t.ref=o.ref,o.child=t,t.return=o,t}function ak(o,t,l){return sa(t,o.child,null,l),o=Mc(t,t.pendingProps),o.flags|=2,Zn(t),t.memoizedState=null,o}function L2(o,t,l){var c=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,o===null){if(We){if(c.mode==="hidden")return o=Mc(t,c),t.lanes=536870912,ti(null,o);if(cu(t),(o=xo)?(o=kv(o,ft),o=o!==null&&o.data==="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Fh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return t.lanes=536870912,null}return Mc(t,c)}var b=o.memoizedState;if(b!==null){var k=b.dehydrated;if(cu(t),f)if(t.flags&256)t.flags&=-257,t=ak(o,t,l);else if(t.memoizedState!==null)t.child=o.child,t.flags|=128,t=null;else throw Error(i(558));else if(Vo||qa(o,t,l,!1),f=(l&o.childLanes)!==0,Vo||f){if(c=go,c!==null&&(k=Ym(c,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,oa(o,k),Rn(c,o,k),Cu;Yc(),t=ak(o,t,l)}else o=b.treeContext,xo=mt(k.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&qh(t,o),t=Mc(t,c),t.flags|=4096;return t}return o=It(o.child,{mode:c.mode,children:c.children}),o.ref=t.ref,t.child=o,o.return=t,o}function Ic(o,t){var l=t.ref;if(l===null)o!==null&&o.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(o===null||o.ref!==l)&&(t.flags|=4194816)}}function Eu(o,t,l,c,f){return aa(t),l=du(o,t,l,c,void 0,f),c=uu(),o!==null&&!Vo?(fu(o,t,f),qt(o,t,f)):(We&&c&&qd(t),t.flags|=1,dn(o,t,l,f),t.child)}function lk(o,t,l,c,f,b){return aa(t),t.updateQueue=null,l=sp(t,c,l,f),cp(o),c=uu(),o!==null&&!Vo?(fu(o,t,b),qt(o,t,b)):(We&&c&&qd(t),t.flags|=1,dn(o,t,l,b),t.child)}function ik(o,t,l,c,f){if(aa(t),t.stateNode===null){var b=Ha,k=l.contextType;typeof k=="object"&&k!==null&&(b=sn(k)),b=new l(c,b),t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Tu,t.stateNode=b,b._reactInternals=t,b=t.stateNode,b.props=c,b.state=t.memoizedState,b.refs={},nu(t),k=l.contextType,b.context=typeof k=="object"&&k!==null?sn(k):Ha,b.state=t.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(Su(t,l,k,c),b.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&Tu.enqueueReplaceState(b,b.state,null),Wl(t,c,b,f),Xl(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),c=!0}else if(o===null){b=t.stateNode;var y=t.memoizedProps,A=ua(l,y);b.props=A;var U=b.context,Y=l.contextType;k=Ha,typeof Y=="object"&&Y!==null&&(k=sn(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(y||U!==k)&&Pp(t,b,c,k),gr=!1;var K=t.memoizedState;b.state=K,Wl(t,c,b,f),Xl(),U=t.memoizedState,y||K!==U||gr?(typeof Q=="function"&&(Su(t,l,Q,c),U=t.memoizedState),(A=gr||Zp(t,l,A,c,K,U,k))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=c,t.memoizedState=U),b.props=c,b.state=U,b.context=k,c=A):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),c=!1)}else{b=t.stateNode,tu(o,t),k=t.memoizedProps,Y=ua(l,k),b.props=Y,Q=t.pendingProps,K=b.context,U=l.contextType,A=Ha,typeof U=="object"&&U!==null&&(A=sn(U)),y=l.getDerivedStateFromProps,(U=typeof y=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==Q||K!==A)&&Pp(t,b,c,A),gr=!1,K=t.memoizedState,b.state=K,Wl(t,c,b,f),Xl();var q=t.memoizedState;k!==Q||K!==q||gr||o!==null&&o.dependencies!==null&&_c(o.dependencies)?(typeof y=="function"&&(Su(t,l,y,c),q=t.memoizedState),(Y=gr||Zp(t,l,Y,c,K,q,A)||o!==null&&o.dependencies!==null&&_c(o.dependencies))?(U||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,q,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,q,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),t.memoizedProps=c,t.memoizedState=q),b.props=c,b.state=q,b.context=A,c=Y):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),c=!1)}return b=c,Ic(o,t),c=(t.flags&128)!==0,b||c?(b=t.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:b.render(),t.flags|=1,o!==null&&c?(t.child=sa(t,o.child,null,f),t.child=sa(t,null,l,f)):dn(o,t,l,f),t.memoizedState=b.state,o=t.child):o=qt(o,t,f),o}function ck(o,t,l,c){return ta(),t.flags|=256,dn(o,t,l,c),t.child}var Lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ou(o){return{baseLanes:o,cachePool:Xh()}}function $u(o,t,l){return o=o!==null?o.childLanes&~l:0,t&&(o|=Gn),o}function sk(o,t,l){var c=t.pendingProps,f=!1,b=(t.flags&128)!==0,k;if((k=b)||(k=o!==null&&o.memoizedState===null?!1:(Uo.current&2)!==0),k&&(f=!0,t.flags&=-129),k=(t.flags&32)!==0,t.flags&=-33,o===null){if(We){if(f?yr(t):wr(),(o=xo)?(o=kv(o,ft),o=o!==null&&o.data!=="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Fh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return pf(o)?t.lanes=32:t.lanes=536870912,null}var y=c.children;return c=c.fallback,f?(wr(),f=t.mode,y=Uc({mode:"hidden",children:y},f),c=na(c,f,l,null),y.return=t,c.return=t,y.sibling=c,t.child=y,c=t.child,c.memoizedState=Ou(l),c.childLanes=$u(o,k,l),t.memoizedState=Lu,ti(null,c)):(yr(t),Nu(t,y))}var A=o.memoizedState;if(A!==null&&(y=A.dehydrated,y!==null)){if(b)t.flags&256?(yr(t),t.flags&=-257,t=Bu(o,t,l)):t.memoizedState!==null?(wr(),t.child=o.child,t.flags|=128,t=null):(wr(),y=c.fallback,f=t.mode,c=Uc({mode:"visible",children:c.children},f),y=na(y,f,l,null),y.flags|=2,c.return=t,y.return=t,c.sibling=y,t.child=c,sa(t,o.child,null,l),c=t.child,c.memoizedState=Ou(l),c.childLanes=$u(o,k,l),t.memoizedState=Lu,t=ti(null,c));else if(yr(t),pf(y)){if(k=y.nextSibling&&y.nextSibling.dataset,k)var U=k.dgst;k=U,c=Error(i(419)),c.stack="",c.digest=k,ql({value:c,source:null,stack:null}),t=Bu(o,t,l)}else if(Vo||qa(o,t,l,!1),k=(l&o.childLanes)!==0,Vo||k){if(k=go,k!==null&&(c=Ym(k,l),c!==0&&c!==A.retryLane))throw A.retryLane=c,oa(o,c),Rn(k,o,c),Cu;hf(y)||Yc(),t=Bu(o,t,l)}else hf(y)?(t.flags|=192,t.child=o.child,t=null):(o=A.treeContext,xo=mt(y.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&qh(t,o),t=Nu(t,c.children),t.flags|=4096);return t}return f?(wr(),y=c.fallback,f=t.mode,A=o.child,U=A.sibling,c=It(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,U!==null?y=It(U,y):(y=na(y,f,l,null),y.flags|=2),y.return=t,c.return=t,c.sibling=y,t.child=c,ti(null,c),c=t.child,y=o.child.memoizedState,y===null?y=Ou(l):(f=y.cachePool,f!==null?(A=Fo._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=Xh(),y={baseLanes:y.baseLanes|l,cachePool:f}),c.memoizedState=y,c.childLanes=$u(o,k,l),t.memoizedState=Lu,ti(o.child,c)):(yr(t),l=o.child,o=l.sibling,l=It(l,{mode:"visible",children:c.children}),l.return=t,l.sibling=null,o!==null&&(k=t.deletions,k===null?(t.deletions=[o],t.flags|=16):k.push(o)),t.child=l,t.memoizedState=null,l)}function Nu(o,t){return t=Uc({mode:"visible",children:t},o.mode),t.return=o,o.child=t}function Uc(o,t){return o=Vn(22,o,null,t),o.lanes=0,o}function Bu(o,t,l){return sa(t,o.child,null,l),o=Nu(t,t.pendingProps.children),o.flags|=2,t.memoizedState=null,o}function dk(o,t,l){o.lanes|=t;var c=o.alternate;c!==null&&(c.lanes|=t),Jd(o.return,t,l)}function Ru(o,t,l,c,f,b){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:f,treeForkCount:b}:(k.isBackwards=t,k.rendering=null,k.renderingStartTime=0,k.last=c,k.tail=l,k.tailMode=f,k.treeForkCount=b)}function uk(o,t,l){var c=t.pendingProps,f=c.revealOrder,b=c.tail;c=c.children;var k=Uo.current,y=(k&2)!==0;if(y?(k=k&1|2,t.flags|=128):k&=1,le(Uo,k),dn(o,t,c,l),c=We?Vl:0,!y&&o!==null&&(o.flags&128)!==0)e:for(o=t.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&dk(o,l,t);else if(o.tag===19)dk(o,l,t);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)o=l.alternate,o!==null&&Ac(o)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Ru(t,!1,f,l,b,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(o=f.alternate,o!==null&&Ac(o)===null){t.child=f;break}o=f.sibling,f.sibling=l,l=f,f=o}Ru(t,!0,l,null,b,c);break;case"together":Ru(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function qt(o,t,l){if(o!==null&&(t.dependencies=o.dependencies),Sr|=t.lanes,(l&t.childLanes)===0)if(o!==null){if(qa(o,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(o!==null&&t.child!==o.child)throw Error(i(153));if(t.child!==null){for(o=t.child,l=It(o,o.pendingProps),t.child=l,l.return=t;o.sibling!==null;)o=o.sibling,l=l.sibling=It(o,o.pendingProps),l.return=t;l.sibling=null}return t.child}function Du(o,t){return(o.lanes&t)!==0?!0:(o=o.dependencies,!!(o!==null&&_c(o)))}function O2(o,t,l){switch(t.tag){case 3:Co(t,t.stateNode.containerInfo),vr(t,Fo,o.memoizedState.cache),ta();break;case 27:case 5:vt(t);break;case 4:Co(t,t.stateNode.containerInfo);break;case 10:vr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cu(t),null;break;case 13:var c=t.memoizedState;if(c!==null)return c.dehydrated!==null?(yr(t),t.flags|=128,null):(l&t.child.childLanes)!==0?sk(o,t,l):(yr(t),o=qt(o,t,l),o!==null?o.sibling:null);yr(t);break;case 19:var f=(o.flags&128)!==0;if(c=(l&t.childLanes)!==0,c||(qa(o,t,l,!1),c=(l&t.childLanes)!==0),f){if(c)return uk(o,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),le(Uo,Uo.current),c)break;return null;case 22:return t.lanes=0,tk(o,t,l,t.pendingProps);case 24:vr(t,Fo,o.memoizedState.cache)}return qt(o,t,l)}function fk(o,t,l){if(o!==null)if(o.memoizedProps!==t.pendingProps)Vo=!0;else{if(!Du(o,l)&&(t.flags&128)===0)return Vo=!1,O2(o,t,l);Vo=(o.flags&131072)!==0}else Vo=!1,We&&(t.flags&1048576)!==0&&Vh(t,Vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var c=t.pendingProps;if(o=ia(t.elementType),t.type=o,typeof o=="function")Fd(o)?(c=ua(o,c),t.tag=1,t=ik(null,t,o,c,l)):(t.tag=0,t=Eu(null,t,o,c,l));else{if(o!=null){var f=o.$$typeof;if(f===$){t.tag=11,t=ek(null,t,o,c,l);break e}else if(f===Z){t.tag=14,t=ok(null,t,o,c,l);break e}}throw t=De(o)||o,Error(i(306,t,""))}}return t;case 0:return Eu(o,t,t.type,t.pendingProps,l);case 1:return c=t.type,f=ua(c,t.pendingProps),ik(o,t,c,f,l);case 3:e:{if(Co(t,t.stateNode.containerInfo),o===null)throw Error(i(387));c=t.pendingProps;var b=t.memoizedState;f=b.element,tu(o,t),Wl(t,c,null,l);var k=t.memoizedState;if(c=k.cache,vr(t,Fo,c),c!==b.cache&&Xd(t,[Fo],l,!0),Xl(),c=k.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:k.cache},t.updateQueue.baseState=b,t.memoizedState=b,t.flags&256){t=ck(o,t,c,l);break e}else if(c!==f){f=st(Error(i(424)),t),ql(f),t=ck(o,t,c,l);break e}else{switch(o=t.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(xo=mt(o.firstChild),cn=t,We=!0,pr=null,ft=!0,l=tp(t,null,c,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ta(),c===f){t=qt(o,t,l);break e}dn(o,t,c,l)}t=t.child}return t;case 26:return Ic(o,t),o===null?(l=wv(t.type,null,t.pendingProps,null))?t.memoizedState=l:We||(l=t.type,o=t.pendingProps,c=ns(Ne.current).createElement(l),c[ln]=t,c[En]=o,un(c,l,o),nn(c),t.stateNode=c):t.memoizedState=wv(t.type,o.memoizedProps,t.pendingProps,o.memoizedState),null;case 27:return vt(t),o===null&&We&&(c=t.stateNode=_v(t.type,t.pendingProps,Ne.current),cn=t,ft=!0,f=xo,Lr(t.type)?(kf=f,xo=mt(c.firstChild)):xo=f),dn(o,t,t.pendingProps.children,l),Ic(o,t),o===null&&(t.flags|=4194304),t.child;case 5:return o===null&&We&&((f=c=xo)&&(c=cz(c,t.type,t.pendingProps,ft),c!==null?(t.stateNode=c,cn=t,xo=mt(c.firstChild),ft=!1,f=!0):f=!1),f||kr(t)),vt(t),f=t.type,b=t.pendingProps,k=o!==null?o.memoizedProps:null,c=b.children,ff(f,b)?c=null:k!==null&&ff(f,k)&&(t.flags|=32),t.memoizedState!==null&&(f=du(o,t,w2,null,null,l),vi._currentValue=f),Ic(o,t),dn(o,t,c,l),t.child;case 6:return o===null&&We&&((o=l=xo)&&(l=sz(l,t.pendingProps,ft),l!==null?(t.stateNode=l,cn=t,xo=null,o=!0):o=!1),o||kr(t)),null;case 13:return sk(o,t,l);case 4:return Co(t,t.stateNode.containerInfo),c=t.pendingProps,o===null?t.child=sa(t,null,c,l):dn(o,t,c,l),t.child;case 11:return ek(o,t,t.type,t.pendingProps,l);case 7:return dn(o,t,t.pendingProps,l),t.child;case 8:return dn(o,t,t.pendingProps.children,l),t.child;case 12:return dn(o,t,t.pendingProps.children,l),t.child;case 10:return c=t.pendingProps,vr(t,t.type,c.value),dn(o,t,c.children,l),t.child;case 9:return f=t.type._context,c=t.pendingProps.children,aa(t),f=sn(f),c=c(f),t.flags|=1,dn(o,t,c,l),t.child;case 14:return ok(o,t,t.type,t.pendingProps,l);case 15:return nk(o,t,t.type,t.pendingProps,l);case 19:return uk(o,t,l);case 31:return L2(o,t,l);case 22:return tk(o,t,l,t.pendingProps);case 24:return aa(t),c=sn(Fo),o===null?(f=eu(),f===null&&(f=go,b=Wd(),f.pooledCache=b,b.refCount++,b!==null&&(f.pooledCacheLanes|=l),f=b),t.memoizedState={parent:c,cache:f},nu(t),vr(t,Fo,f)):((o.lanes&l)!==0&&(tu(o,t),Wl(t,null,null,l),Xl()),f=o.memoizedState,b=t.memoizedState,f.parent!==c?(f={parent:c,cache:c},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),vr(t,Fo,c)):(c=b.cache,vr(t,Fo,c),c!==f.cache&&Xd(t,[Fo],l,!0))),dn(o,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Zt(o){o.flags|=4}function Mu(o,t,l,c,f){if((t=(o.mode&32)!==0)&&(t=!1),t){if(o.flags|=16777216,(f&335544128)===f)if(o.stateNode.complete)o.flags|=8192;else if(Ik())o.flags|=8192;else throw ca=zc,ou}else o.flags&=-16777217}function bk(o,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Av(t))if(Ik())o.flags|=8192;else throw ca=zc,ou}function Hc(o,t){t!==null&&(o.flags|=4),o.flags&16384&&(t=o.tag!==22?Zm():536870912,o.lanes|=t,tl|=t)}function ri(o,t){if(!We)switch(o.tailMode){case"hidden":t=o.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?t||o.tail===null?o.tail=null:o.tail.sibling=null:c.sibling=null}}function yo(o){var t=o.alternate!==null&&o.alternate.child===o.child,l=0,c=0;if(t)for(var f=o.child;f!==null;)l|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=o,f=f.sibling;else for(f=o.child;f!==null;)l|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=o,f=f.sibling;return o.subtreeFlags|=c,o.childLanes=l,t}function $2(o,t,l){var c=t.pendingProps;switch(Zd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yo(t),null;case 1:return yo(t),null;case 3:return l=t.stateNode,c=null,o!==null&&(c=o.memoizedState.cache),t.memoizedState.cache!==c&&(t.flags|=2048),Ft(Fo),_o(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Va(t)?Zt(t):o===null||o.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gd())),yo(t),null;case 26:var f=t.type,b=t.memoizedState;return o===null?(Zt(t),b!==null?(yo(t),bk(t,b)):(yo(t),Mu(t,f,null,c,l))):b?b!==o.memoizedState?(Zt(t),yo(t),bk(t,b)):(yo(t),t.flags&=-16777217):(o=o.memoizedProps,o!==c&&Zt(t),yo(t),Mu(t,f,o,c,l)),null;case 27:if(St(t),l=Ne.current,f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(!c){if(t.stateNode===null)throw Error(i(166));return yo(t),null}o=fe.current,Va(t)?Zh(t):(o=_v(f,c,l),t.stateNode=o,Zt(t))}return yo(t),null;case 5:if(St(t),f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(!c){if(t.stateNode===null)throw Error(i(166));return yo(t),null}if(b=fe.current,Va(t))Zh(t);else{var k=ns(Ne.current);switch(b){case 1:b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":b=k.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof c.is=="string"?k.createElement("select",{is:c.is}):k.createElement("select"),c.multiple?b.multiple=!0:c.size&&(b.size=c.size);break;default:b=typeof c.is=="string"?k.createElement(f,{is:c.is}):k.createElement(f)}}b[ln]=t,b[En]=c;e:for(k=t.child;k!==null;){if(k.tag===5||k.tag===6)b.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===t)break e;for(;k.sibling===null;){if(k.return===null||k.return===t)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}t.stateNode=b;e:switch(un(b,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Zt(t)}}return yo(t),Mu(t,t.type,o===null?null:o.memoizedProps,t.pendingProps,l),null;case 6:if(o&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(typeof c!="string"&&t.stateNode===null)throw Error(i(166));if(o=Ne.current,Va(t)){if(o=t.stateNode,l=t.memoizedProps,c=null,f=cn,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}o[ln]=t,o=!!(o.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||sv(o.nodeValue,l)),o||kr(t,!0)}else o=ns(o).createTextNode(c),o[ln]=t,t.stateNode=o}return yo(t),null;case 31:if(l=t.memoizedState,o===null||o.memoizedState!==null){if(c=Va(t),l!==null){if(o===null){if(!c)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),o=!1}else l=Gd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return t.flags&256?(Zn(t),t):(Zn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return yo(t),null;case 13:if(c=t.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(f=Va(t),c!==null&&c.dehydrated!==null){if(o===null){if(!f)throw Error(i(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),f=!1}else f=Gd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Zn(t),t):(Zn(t),null)}return Zn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=c!==null,o=o!==null&&o.memoizedState!==null,l&&(c=t.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==f&&(c.flags|=2048)),l!==o&&l&&(t.child.flags|=8192),Hc(t,t.updateQueue),yo(t),null);case 4:return _o(),o===null&&lf(t.stateNode.containerInfo),yo(t),null;case 10:return Ft(t.type),yo(t),null;case 19:if(P(Uo),c=t.memoizedState,c===null)return yo(t),null;if(f=(t.flags&128)!==0,b=c.rendering,b===null)if(f)ri(c,!1);else{if(Bo!==0||o!==null&&(o.flags&128)!==0)for(o=t.child;o!==null;){if(b=Ac(o),b!==null){for(t.flags|=128,ri(c,!1),o=b.updateQueue,t.updateQueue=o,Hc(t,o),t.subtreeFlags=0,o=l,l=t.child;l!==null;)Hh(l,o),l=l.sibling;return le(Uo,Uo.current&1|2),We&&Ut(t,c.treeForkCount),t.child}o=o.sibling}c.tail!==null&&te()>Zc&&(t.flags|=128,f=!0,ri(c,!1),t.lanes=4194304)}else{if(!f)if(o=Ac(b),o!==null){if(t.flags|=128,f=!0,o=o.updateQueue,t.updateQueue=o,Hc(t,o),ri(c,!0),c.tail===null&&c.tailMode==="hidden"&&!b.alternate&&!We)return yo(t),null}else 2*te()-c.renderingStartTime>Zc&&l!==536870912&&(t.flags|=128,f=!0,ri(c,!1),t.lanes=4194304);c.isBackwards?(b.sibling=t.child,t.child=b):(o=c.last,o!==null?o.sibling=b:t.child=b,c.last=b)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=te(),o.sibling=null,l=Uo.current,le(Uo,f?l&1|2:l&1),We&&Ut(t,c.treeForkCount),o):(yo(t),null);case 22:case 23:return Zn(t),iu(),c=t.memoizedState!==null,o!==null?o.memoizedState!==null!==c&&(t.flags|=8192):c&&(t.flags|=8192),c?(l&536870912)!==0&&(t.flags&128)===0&&(yo(t),t.subtreeFlags&6&&(t.flags|=8192)):yo(t),l=t.updateQueue,l!==null&&Hc(t,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),c=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(c=t.memoizedState.cachePool.pool),c!==l&&(t.flags|=2048),o!==null&&P(la),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(Fo),yo(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function N2(o,t){switch(Zd(t),t.tag){case 1:return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 3:return Ft(Fo),_o(),o=t.flags,(o&65536)!==0&&(o&128)===0?(t.flags=o&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(Zn(t),t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 13:if(Zn(t),o=t.memoizedState,o!==null&&o.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 19:return P(Uo),null;case 4:return _o(),null;case 10:return Ft(t.type),null;case 22:case 23:return Zn(t),iu(),o!==null&&P(la),o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 24:return Ft(Fo),null;case 25:return null;default:return null}}function mk(o,t){switch(Zd(t),t.tag){case 3:Ft(Fo),_o();break;case 26:case 27:case 5:St(t);break;case 4:_o();break;case 31:t.memoizedState!==null&&Zn(t);break;case 13:Zn(t);break;case 19:P(Uo);break;case 10:Ft(t.type);break;case 22:case 23:Zn(t),iu(),o!==null&&P(la);break;case 24:Ft(Fo)}}function ai(o,t){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var f=c.next;l=f;do{if((l.tag&o)===o){c=void 0;var b=l.create,k=l.inst;c=b(),k.destroy=c}l=l.next}while(l!==f)}}catch(y){uo(t,t.return,y)}}function zr(o,t,l){try{var c=t.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var b=f.next;c=b;do{if((c.tag&o)===o){var k=c.inst,y=k.destroy;if(y!==void 0){k.destroy=void 0,f=t;var A=l,U=y;try{U()}catch(Y){uo(f,A,Y)}}}c=c.next}while(c!==b)}}catch(Y){uo(t,t.return,Y)}}function hk(o){var t=o.updateQueue;if(t!==null){var l=o.stateNode;try{ap(t,l)}catch(c){uo(o,o.return,c)}}}function pk(o,t,l){l.props=ua(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(c){uo(o,t,c)}}function li(o,t){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var c=o.stateNode;break;case 30:c=o.stateNode;break;default:c=o.stateNode}typeof l=="function"?o.refCleanup=l(c):l.current=c}}catch(f){uo(o,t,f)}}function Et(o,t){var l=o.ref,c=o.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(f){uo(o,t,f)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){uo(o,t,f)}else l.current=null}function kk(o){var t=o.type,l=o.memoizedProps,c=o.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(f){uo(o,o.return,f)}}function Iu(o,t,l){try{var c=o.stateNode;nz(c,o.type,l,t),c[En]=t}catch(f){uo(o,o.return,f)}}function vk(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Lr(o.type)||o.tag===4}function Uu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||vk(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Lr(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Hu(o,t,l){var c=o.tag;if(c===5||c===6)o=o.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(o),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Dt));else if(c!==4&&(c===27&&Lr(o.type)&&(l=o.stateNode,t=null),o=o.child,o!==null))for(Hu(o,t,l),o=o.sibling;o!==null;)Hu(o,t,l),o=o.sibling}function Fc(o,t,l){var c=o.tag;if(c===5||c===6)o=o.stateNode,t?l.insertBefore(o,t):l.appendChild(o);else if(c!==4&&(c===27&&Lr(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(Fc(o,t,l),o=o.sibling;o!==null;)Fc(o,t,l),o=o.sibling}function gk(o){var t=o.stateNode,l=o.memoizedProps;try{for(var c=o.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);un(t,c,l),t[ln]=o,t[En]=l}catch(b){uo(o,o.return,b)}}var Pt=!1,qo=!1,Fu=!1,_k=typeof WeakSet=="function"?WeakSet:Set,tn=null;function B2(o,t){if(o=o.containerInfo,df=ss,o=Oh(o),Bd(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var f=c.anchorOffset,b=c.focusNode;c=c.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,y=-1,A=-1,U=0,Y=0,Q=o,K=null;o:for(;;){for(var q;Q!==l||f!==0&&Q.nodeType!==3||(y=k+f),Q!==b||c!==0&&Q.nodeType!==3||(A=k+c),Q.nodeType===3&&(k+=Q.nodeValue.length),(q=Q.firstChild)!==null;)K=Q,Q=q;for(;;){if(Q===o)break o;if(K===l&&++U===f&&(y=k),K===b&&++Y===c&&(A=k),(q=Q.nextSibling)!==null)break;Q=K,K=Q.parentNode}Q=q}l=y===-1||A===-1?null:{start:y,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(uf={focusedElem:o,selectionRange:l},ss=!1,tn=t;tn!==null;)if(t=tn,o=t.child,(t.subtreeFlags&1028)!==0&&o!==null)o.return=t,tn=o;else for(;tn!==null;){switch(t=tn,b=t.alternate,o=t.flags,t.tag){case 0:if((o&4)!==0&&(o=t.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)f=o[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,l=t,f=b.memoizedProps,b=b.memoizedState,c=l.stateNode;try{var pe=ua(l.type,f);o=c.getSnapshotBeforeUpdate(pe,b),c.__reactInternalSnapshotBeforeUpdate=o}catch(Ae){uo(l,l.return,Ae)}}break;case 3:if((o&1024)!==0){if(o=t.stateNode.containerInfo,l=o.nodeType,l===9)mf(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":mf(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=t.sibling,o!==null){o.return=t.return,tn=o;break}tn=t.return}}function xk(o,t,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:Yt(o,l),c&4&&ai(5,l);break;case 1:if(Yt(o,l),c&4)if(o=l.stateNode,t===null)try{o.componentDidMount()}catch(k){uo(l,l.return,k)}else{var f=ua(l.type,t.memoizedProps);t=t.memoizedState;try{o.componentDidUpdate(f,t,o.__reactInternalSnapshotBeforeUpdate)}catch(k){uo(l,l.return,k)}}c&64&&hk(l),c&512&&li(l,l.return);break;case 3:if(Yt(o,l),c&64&&(o=l.updateQueue,o!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ap(o,t)}catch(k){uo(l,l.return,k)}}break;case 27:t===null&&c&4&&gk(l);case 26:case 5:Yt(o,l),t===null&&c&4&&kk(l),c&512&&li(l,l.return);break;case 12:Yt(o,l);break;case 31:Yt(o,l),c&4&&zk(o,l);break;case 13:Yt(o,l),c&4&&jk(o,l),c&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=V2.bind(null,l),dz(o,l))));break;case 22:if(c=l.memoizedState!==null||Pt,!c){t=t!==null&&t.memoizedState!==null||qo,f=Pt;var b=qo;Pt=c,(qo=t)&&!b?Jt(o,l,(l.subtreeFlags&8772)!==0):Yt(o,l),Pt=f,qo=b}break;case 30:break;default:Yt(o,l)}}function yk(o){var t=o.alternate;t!==null&&(o.alternate=null,yk(t)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(t=o.stateNode,t!==null&&vd(t)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var jo=null,On=!1;function Gt(o,t,l){for(l=l.child;l!==null;)wk(o,t,l),l=l.sibling}function wk(o,t,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Yr,l)}catch{}switch(l.tag){case 26:qo||Et(l,t),Gt(o,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qo||Et(l,t);var c=jo,f=On;Lr(l.type)&&(jo=l.stateNode,On=!1),Gt(o,t,l),hi(l.stateNode),jo=c,On=f;break;case 5:qo||Et(l,t);case 6:if(c=jo,f=On,jo=null,Gt(o,t,l),jo=c,On=f,jo!==null)if(On)try{(jo.nodeType===9?jo.body:jo.nodeName==="HTML"?jo.ownerDocument.body:jo).removeChild(l.stateNode)}catch(b){uo(l,t,b)}else try{jo.removeChild(l.stateNode)}catch(b){uo(l,t,b)}break;case 18:jo!==null&&(On?(o=jo,hv(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),ul(o)):hv(jo,l.stateNode));break;case 4:c=jo,f=On,jo=l.stateNode.containerInfo,On=!0,Gt(o,t,l),jo=c,On=f;break;case 0:case 11:case 14:case 15:zr(2,l,t),qo||zr(4,l,t),Gt(o,t,l);break;case 1:qo||(Et(l,t),c=l.stateNode,typeof c.componentWillUnmount=="function"&&pk(l,t,c)),Gt(o,t,l);break;case 21:Gt(o,t,l);break;case 22:qo=(c=qo)||l.memoizedState!==null,Gt(o,t,l),qo=c;break;default:Gt(o,t,l)}}function zk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ul(o)}catch(l){uo(t,t.return,l)}}}function jk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ul(o)}catch(l){uo(t,t.return,l)}}function R2(o){switch(o.tag){case 31:case 13:case 19:var t=o.stateNode;return t===null&&(t=o.stateNode=new _k),t;case 22:return o=o.stateNode,t=o._retryCache,t===null&&(t=o._retryCache=new _k),t;default:throw Error(i(435,o.tag))}}function Kc(o,t){var l=R2(o);t.forEach(function(c){if(!l.has(c)){l.add(c);var f=q2.bind(null,o,c);c.then(f,f)}})}function $n(o,t){var l=t.deletions;if(l!==null)for(var c=0;c<l.length;c++){var f=l[c],b=o,k=t,y=k;e:for(;y!==null;){switch(y.tag){case 27:if(Lr(y.type)){jo=y.stateNode,On=!1;break e}break;case 5:jo=y.stateNode,On=!1;break e;case 3:case 4:jo=y.stateNode.containerInfo,On=!0;break e}y=y.return}if(jo===null)throw Error(i(160));wk(b,k,f),jo=null,On=!1,b=f.alternate,b!==null&&(b.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sk(t,o),t=t.sibling}var xt=null;function Sk(o,t){var l=o.alternate,c=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:$n(t,o),Nn(o),c&4&&(zr(3,o,o.return),ai(3,o),zr(5,o,o.return));break;case 1:$n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),c&64&&Pt&&(o=o.updateQueue,o!==null&&(c=o.callbacks,c!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var f=xt;if($n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),c&4){var b=l!==null?l.memoizedState:null;if(c=o.memoizedState,l===null)if(c===null)if(o.stateNode===null){e:{c=o.type,l=o.memoizedProps,f=f.ownerDocument||f;o:switch(c){case"title":b=f.getElementsByTagName("title")[0],(!b||b[$l]||b[ln]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=f.createElement(c),f.head.insertBefore(b,f.querySelector("head > title"))),un(b,c,l),b[ln]=o,nn(b),c=b;break e;case"link":var k=Sv("link","href",f).get(c+(l.href||""));if(k){for(var y=0;y<k.length;y++)if(b=k[y],b.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&b.getAttribute("rel")===(l.rel==null?null:l.rel)&&b.getAttribute("title")===(l.title==null?null:l.title)&&b.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){k.splice(y,1);break o}}b=f.createElement(c),un(b,c,l),f.head.appendChild(b);break;case"meta":if(k=Sv("meta","content",f).get(c+(l.content||""))){for(y=0;y<k.length;y++)if(b=k[y],b.getAttribute("content")===(l.content==null?null:""+l.content)&&b.getAttribute("name")===(l.name==null?null:l.name)&&b.getAttribute("property")===(l.property==null?null:l.property)&&b.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute("charset")===(l.charSet==null?null:l.charSet)){k.splice(y,1);break o}}b=f.createElement(c),un(b,c,l),f.head.appendChild(b);break;default:throw Error(i(468,c))}b[ln]=o,nn(b),c=b}o.stateNode=c}else Tv(f,o.type,o.stateNode);else o.stateNode=jv(f,c,o.memoizedProps);else b!==c?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,c===null?Tv(f,o.type,o.stateNode):jv(f,c,o.memoizedProps)):c===null&&o.stateNode!==null&&Iu(o,o.memoizedProps,l.memoizedProps)}break;case 27:$n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),l!==null&&c&4&&Iu(o,o.memoizedProps,l.memoizedProps);break;case 5:if($n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),o.flags&32){f=o.stateNode;try{Na(f,"")}catch(pe){uo(o,o.return,pe)}}c&4&&o.stateNode!=null&&(f=o.memoizedProps,Iu(o,f,l!==null?l.memoizedProps:f)),c&1024&&(Fu=!0);break;case 6:if($n(t,o),Nn(o),c&4){if(o.stateNode===null)throw Error(i(162));c=o.memoizedProps,l=o.stateNode;try{l.nodeValue=c}catch(pe){uo(o,o.return,pe)}}break;case 3:if(as=null,f=xt,xt=ts(t.containerInfo),$n(t,o),xt=f,Nn(o),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(pe){uo(o,o.return,pe)}Fu&&(Fu=!1,Tk(o));break;case 4:c=xt,xt=ts(o.stateNode.containerInfo),$n(t,o),Nn(o),xt=c;break;case 12:$n(t,o),Nn(o);break;case 31:$n(t,o),Nn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Kc(o,c)));break;case 13:$n(t,o),Nn(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qc=te()),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Kc(o,c)));break;case 22:f=o.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,U=Pt,Y=qo;if(Pt=U||f,qo=Y||A,$n(t,o),qo=Y,Pt=U,Nn(o),c&8192)e:for(t=o.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||A||Pt||qo||fa(o)),l=null,t=o;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(b=A.stateNode,f)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{y=A.stateNode;var Q=A.memoizedProps.style,K=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===18){if(l===null){A=t;try{var q=A.stateNode;f?pv(q,!0):pv(A.stateNode,!1)}catch(pe){uo(A,A.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===o)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}c&4&&(c=o.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,Kc(o,l))));break;case 19:$n(t,o),Nn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Kc(o,c)));break;case 30:break;case 21:break;default:$n(t,o),Nn(o)}}function Nn(o){var t=o.flags;if(t&2){try{for(var l,c=o.return;c!==null;){if(vk(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,b=Uu(o);Fc(o,b,f);break;case 5:var k=l.stateNode;l.flags&32&&(Na(k,""),l.flags&=-33);var y=Uu(o);Fc(o,y,k);break;case 3:case 4:var A=l.stateNode.containerInfo,U=Uu(o);Hu(o,U,A);break;default:throw Error(i(161))}}catch(Y){uo(o,o.return,Y)}o.flags&=-3}t&4096&&(o.flags&=-4097)}function Tk(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var t=o;Tk(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),o=o.sibling}}function Yt(o,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xk(o,t.alternate,t),t=t.sibling}function fa(o){for(o=o.child;o!==null;){var t=o;switch(t.tag){case 0:case 11:case 14:case 15:zr(4,t,t.return),fa(t);break;case 1:Et(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&pk(t,t.return,l),fa(t);break;case 27:hi(t.stateNode);case 26:case 5:Et(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}o=o.sibling}}function Jt(o,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var c=t.alternate,f=o,b=t,k=b.flags;switch(b.tag){case 0:case 11:case 15:Jt(f,b,l),ai(4,b);break;case 1:if(Jt(f,b,l),c=b,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){uo(c,c.return,U)}if(c=b,f=c.updateQueue,f!==null){var y=c.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)rp(A[f],y)}catch(U){uo(c,c.return,U)}}l&&k&64&&hk(b),li(b,b.return);break;case 27:gk(b);case 26:case 5:Jt(f,b,l),l&&c===null&&k&4&&kk(b),li(b,b.return);break;case 12:Jt(f,b,l);break;case 31:Jt(f,b,l),l&&k&4&&zk(f,b);break;case 13:Jt(f,b,l),l&&k&4&&jk(f,b);break;case 22:b.memoizedState===null&&Jt(f,b,l),li(b,b.return);break;case 30:break;default:Jt(f,b,l)}t=t.sibling}}function Ku(o,t){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&Zl(l))}function Vu(o,t){o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Zl(o))}function yt(o,t,l,c){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ak(o,t,l,c),t=t.sibling}function Ak(o,t,l,c){var f=t.flags;switch(t.tag){case 0:case 11:case 15:yt(o,t,l,c),f&2048&&ai(9,t);break;case 1:yt(o,t,l,c);break;case 3:yt(o,t,l,c),f&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Zl(o)));break;case 12:if(f&2048){yt(o,t,l,c),o=t.stateNode;try{var b=t.memoizedProps,k=b.id,y=b.onPostCommit;typeof y=="function"&&y(k,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){uo(t,t.return,A)}}else yt(o,t,l,c);break;case 31:yt(o,t,l,c);break;case 13:yt(o,t,l,c);break;case 23:break;case 22:b=t.stateNode,k=t.alternate,t.memoizedState!==null?b._visibility&2?yt(o,t,l,c):ii(o,t):b._visibility&2?yt(o,t,l,c):(b._visibility|=2,el(o,t,l,c,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Ku(k,t);break;case 24:yt(o,t,l,c),f&2048&&Vu(t.alternate,t);break;default:yt(o,t,l,c)}}function el(o,t,l,c,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var b=o,k=t,y=l,A=c,U=k.flags;switch(k.tag){case 0:case 11:case 15:el(b,k,y,A,f),ai(8,k);break;case 23:break;case 22:var Y=k.stateNode;k.memoizedState!==null?Y._visibility&2?el(b,k,y,A,f):ii(b,k):(Y._visibility|=2,el(b,k,y,A,f)),f&&U&2048&&Ku(k.alternate,k);break;case 24:el(b,k,y,A,f),f&&U&2048&&Vu(k.alternate,k);break;default:el(b,k,y,A,f)}t=t.sibling}}function ii(o,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=o,c=t,f=c.flags;switch(c.tag){case 22:ii(l,c),f&2048&&Ku(c.alternate,c);break;case 24:ii(l,c),f&2048&&Vu(c.alternate,c);break;default:ii(l,c)}t=t.sibling}}var ci=8192;function ol(o,t,l){if(o.subtreeFlags&ci)for(o=o.child;o!==null;)Ck(o,t,l),o=o.sibling}function Ck(o,t,l){switch(o.tag){case 26:ol(o,t,l),o.flags&ci&&o.memoizedState!==null&&yz(l,xt,o.memoizedState,o.memoizedProps);break;case 5:ol(o,t,l);break;case 3:case 4:var c=xt;xt=ts(o.stateNode.containerInfo),ol(o,t,l),xt=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=ci,ci=16777216,ol(o,t,l),ci=c):ol(o,t,l));break;default:ol(o,t,l)}}function Ek(o){var t=o.alternate;if(t!==null&&(o=t.child,o!==null)){t.child=null;do t=o.sibling,o.sibling=null,o=t;while(o!==null)}}function si(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var c=t[l];tn=c,Ok(c,o)}Ek(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Lk(o),o=o.sibling}function Lk(o){switch(o.tag){case 0:case 11:case 15:si(o),o.flags&2048&&zr(9,o,o.return);break;case 3:si(o);break;case 12:si(o);break;case 22:var t=o.stateNode;o.memoizedState!==null&&t._visibility&2&&(o.return===null||o.return.tag!==13)?(t._visibility&=-3,Vc(o)):si(o);break;default:si(o)}}function Vc(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var c=t[l];tn=c,Ok(c,o)}Ek(o)}for(o=o.child;o!==null;){switch(t=o,t.tag){case 0:case 11:case 15:zr(8,t,t.return),Vc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Vc(t));break;default:Vc(t)}o=o.sibling}}function Ok(o,t){for(;tn!==null;){var l=tn;switch(l.tag){case 0:case 11:case 15:zr(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Zl(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,tn=c;else e:for(l=o;tn!==null;){c=tn;var f=c.sibling,b=c.return;if(yk(c),c===l){tn=null;break e}if(f!==null){f.return=b,tn=f;break e}tn=b}}}var D2={getCacheForType:function(o){var t=sn(Fo),l=t.data.get(o);return l===void 0&&(l=o(),t.data.set(o,l)),l},cacheSignal:function(){return sn(Fo).controller.signal}},M2=typeof WeakMap=="function"?WeakMap:Map,co=0,go=null,qe=null,Ye=0,so=0,Pn=null,jr=!1,nl=!1,qu=!1,Xt=0,Bo=0,Sr=0,ba=0,Zu=0,Gn=0,tl=0,di=null,Bn=null,Pu=!1,qc=0,$k=0,Zc=1/0,Pc=null,Tr=null,Wo=0,Ar=null,rl=null,Wt=0,Gu=0,Yu=null,Nk=null,ui=0,Ju=null;function Yn(){return(co&2)!==0&&Ye!==0?Ye&-Ye:M.T!==null?nf():Jm()}function Bk(){if(Gn===0)if((Ye&536870912)===0||We){var o=oc;oc<<=1,(oc&3932160)===0&&(oc=262144),Gn=o}else Gn=536870912;return o=qn.current,o!==null&&(o.flags|=32),Gn}function Rn(o,t,l){(o===go&&(so===2||so===9)||o.cancelPendingCommit!==null)&&(al(o,0),Cr(o,Ye,Gn,!1)),Ol(o,l),((co&2)===0||o!==go)&&(o===go&&((co&2)===0&&(ba|=l),Bo===4&&Cr(o,Ye,Gn,!1)),Lt(o))}function Rk(o,t,l){if((co&6)!==0)throw Error(i(327));var c=!l&&(t&127)===0&&(t&o.expiredLanes)===0||Ll(o,t),f=c?H2(o,t):Wu(o,t,!0),b=c;do{if(f===0){nl&&!c&&Cr(o,t,0,!1);break}else{if(l=o.current.alternate,b&&!I2(l)){f=Wu(o,t,!1),b=!1;continue}if(f===2){if(b=t,o.errorRecoveryDisabledLanes&b)var k=0;else k=o.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){t=k;e:{var y=o;f=di;var A=y.current.memoizedState.isDehydrated;if(A&&(al(y,k).flags|=256),k=Wu(y,k,!1),k!==2){if(qu&&!A){y.errorRecoveryDisabledLanes|=b,ba|=b,f=4;break e}b=Bn,Bn=f,b!==null&&(Bn===null?Bn=b:Bn.push.apply(Bn,b))}f=k}if(b=!1,f!==2)continue}}if(f===1){al(o,0),Cr(o,t,0,!0);break}e:{switch(c=o,b=f,b){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cr(c,t,Gn,!jr);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(f=qc+300-te(),10<f)){if(Cr(c,t,Gn,!jr),tc(c,0,!0)!==0)break e;Wt=t,c.timeoutHandle=bv(Dk.bind(null,c,l,Bn,Pc,Pu,t,Gn,ba,tl,jr,b,"Throttled",-0,0),f);break e}Dk(c,l,Bn,Pc,Pu,t,Gn,ba,tl,jr,b,null,-0,0)}}break}while(!0);Lt(o)}function Dk(o,t,l,c,f,b,k,y,A,U,Y,Q,K,q){if(o.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Dt},Ck(t,b,Q);var pe=(b&62914560)===b?qc-te():(b&4194048)===b?$k-te():0;if(pe=wz(Q,pe),pe!==null){Wt=b,o.cancelPendingCommit=pe(qk.bind(null,o,t,b,l,c,f,k,y,A,Y,Q,null,K,q)),Cr(o,b,k,!U);return}}qk(o,t,b,l,c,f,k,y,A)}function I2(o){for(var t=o;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var f=l[c],b=f.getSnapshot;f=f.value;try{if(!Kn(b(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cr(o,t,l,c){t&=~Zu,t&=~ba,o.suspendedLanes|=t,o.pingedLanes&=~t,c&&(o.warmLanes|=t),c=o.expirationTimes;for(var f=t;0<f;){var b=31-wn(f),k=1<<b;c[b]=-1,f&=~k}l!==0&&Pm(o,l,t)}function Gc(){return(co&6)===0?(fi(0),!1):!0}function Xu(){if(qe!==null){if(so===0)var o=qe.return;else o=qe,Ht=ra=null,bu(o),Ya=null,Gl=0,o=qe;for(;o!==null;)mk(o.alternate,o),o=o.return;qe=null}}function al(o,t){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,az(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),Wt=0,Xu(),go=o,qe=l=It(o.current,null),Ye=t,so=0,Pn=null,jr=!1,nl=Ll(o,t),qu=!1,tl=Gn=Zu=ba=Sr=Bo=0,Bn=di=null,Pu=!1,(t&8)!==0&&(t|=t&32);var c=o.entangledLanes;if(c!==0)for(o=o.entanglements,c&=t;0<c;){var f=31-wn(c),b=1<<f;t|=o[f],c&=~b}return Xt=t,hc(),l}function Mk(o,t){Me=null,M.H=ni,t===Ga||t===wc?(t=ep(),so=3):t===ou?(t=ep(),so=4):so=t===Cu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,qe===null&&(Bo=1,Dc(o,st(t,o.current)))}function Ik(){var o=qn.current;return o===null?!0:(Ye&4194048)===Ye?bt===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?o===bt:!1}function Uk(){var o=M.H;return M.H=ni,o===null?ni:o}function Hk(){var o=M.A;return M.A=D2,o}function Yc(){Bo=4,jr||(Ye&4194048)!==Ye&&qn.current!==null||(nl=!0),(Sr&134217727)===0&&(ba&134217727)===0||go===null||Cr(go,Ye,Gn,!1)}function Wu(o,t,l){var c=co;co|=2;var f=Uk(),b=Hk();(go!==o||Ye!==t)&&(Pc=null,al(o,t)),t=!1;var k=Bo;e:do try{if(so!==0&&qe!==null){var y=qe,A=Pn;switch(so){case 8:Xu(),k=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(t=!0);var U=so;if(so=0,Pn=null,ll(o,y,A,U),l&&nl){k=0;break e}break;default:U=so,so=0,Pn=null,ll(o,y,A,U)}}U2(),k=Bo;break}catch(Y){Mk(o,Y)}while(!0);return t&&o.shellSuspendCounter++,Ht=ra=null,co=c,M.H=f,M.A=b,qe===null&&(go=null,Ye=0,hc()),k}function U2(){for(;qe!==null;)Fk(qe)}function H2(o,t){var l=co;co|=2;var c=Uk(),f=Hk();go!==o||Ye!==t?(Pc=null,Zc=te()+500,al(o,t)):nl=Ll(o,t);e:do try{if(so!==0&&qe!==null){t=qe;var b=Pn;o:switch(so){case 1:so=0,Pn=null,ll(o,t,b,1);break;case 2:case 9:if(Wh(b)){so=0,Pn=null,Kk(t);break}t=function(){so!==2&&so!==9||go!==o||(so=7),Lt(o)},b.then(t,t);break e;case 3:so=7;break e;case 4:so=5;break e;case 7:Wh(b)?(so=0,Pn=null,Kk(t)):(so=0,Pn=null,ll(o,t,b,7));break;case 5:var k=null;switch(qe.tag){case 26:k=qe.memoizedState;case 5:case 27:var y=qe;if(k?Av(k):y.stateNode.complete){so=0,Pn=null;var A=y.sibling;if(A!==null)qe=A;else{var U=y.return;U!==null?(qe=U,Jc(U)):qe=null}break o}}so=0,Pn=null,ll(o,t,b,5);break;case 6:so=0,Pn=null,ll(o,t,b,6);break;case 8:Xu(),Bo=6;break e;default:throw Error(i(462))}}F2();break}catch(Y){Mk(o,Y)}while(!0);return Ht=ra=null,M.H=c,M.A=f,co=l,qe!==null?0:(go=null,Ye=0,hc(),Bo)}function F2(){for(;qe!==null&&!B();)Fk(qe)}function Fk(o){var t=fk(o.alternate,o,Xt);o.memoizedProps=o.pendingProps,t===null?Jc(o):qe=t}function Kk(o){var t=o,l=t.alternate;switch(t.tag){case 15:case 0:t=lk(l,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=lk(l,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:bu(t);default:mk(l,t),t=qe=Hh(t,Xt),t=fk(l,t,Xt)}o.memoizedProps=o.pendingProps,t===null?Jc(o):qe=t}function ll(o,t,l,c){Ht=ra=null,bu(t),Ya=null,Gl=0;var f=t.return;try{if(E2(o,f,t,l,Ye)){Bo=1,Dc(o,st(l,o.current)),qe=null;return}}catch(b){if(f!==null)throw qe=f,b;Bo=1,Dc(o,st(l,o.current)),qe=null;return}t.flags&32768?(We||c===1?o=!0:nl||(Ye&536870912)!==0?o=!1:(jr=o=!0,(c===2||c===9||c===3||c===6)&&(c=qn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Vk(t,o)):Jc(t)}function Jc(o){var t=o;do{if((t.flags&32768)!==0){Vk(t,jr);return}o=t.return;var l=$2(t.alternate,t,Xt);if(l!==null){qe=l;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=o}while(t!==null);Bo===0&&(Bo=5)}function Vk(o,t){do{var l=N2(o.alternate,o);if(l!==null){l.flags&=32767,qe=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(o=o.sibling,o!==null)){qe=o;return}qe=o=l}while(o!==null);Bo=6,qe=null}function qk(o,t,l,c,f,b,k,y,A){o.cancelPendingCommit=null;do Xc();while(Wo!==0);if((co&6)!==0)throw Error(i(327));if(t!==null){if(t===o.current)throw Error(i(177));if(b=t.lanes|t.childLanes,b|=Ud,xw(o,l,b,k,y,A),o===go&&(qe=go=null,Ye=0),rl=t,Ar=o,Wt=l,Gu=b,Yu=f,Nk=c,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,Z2(eo,function(){return Jk(),null})):(o.callbackNode=null,o.callbackPriority=0),c=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||c){c=M.T,M.T=null,f=G.p,G.p=2,k=co,co|=4;try{B2(o,t,l)}finally{co=k,G.p=f,M.T=c}}Wo=1,Zk(),Pk(),Gk()}}function Zk(){if(Wo===1){Wo=0;var o=Ar,t=rl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var c=G.p;G.p=2;var f=co;co|=4;try{Sk(t,o);var b=uf,k=Oh(o.containerInfo),y=b.focusedElem,A=b.selectionRange;if(k!==y&&y&&y.ownerDocument&&Lh(y.ownerDocument.documentElement,y)){if(A!==null&&Bd(y)){var U=A.start,Y=A.end;if(Y===void 0&&(Y=U),"selectionStart"in y)y.selectionStart=U,y.selectionEnd=Math.min(Y,y.value.length);else{var Q=y.ownerDocument||document,K=Q&&Q.defaultView||window;if(K.getSelection){var q=K.getSelection(),pe=y.textContent.length,Ae=Math.min(A.start,pe),vo=A.end===void 0?Ae:Math.min(A.end,pe);!q.extend&&Ae>vo&&(k=vo,vo=Ae,Ae=k);var R=Eh(y,Ae),L=Eh(y,vo);if(R&&L&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==L.node||q.focusOffset!==L.offset)){var I=Q.createRange();I.setStart(R.node,R.offset),q.removeAllRanges(),Ae>vo?(q.addRange(I),q.extend(L.node,L.offset)):(I.setEnd(L.node,L.offset),q.addRange(I))}}}}for(Q=[],q=y;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Q.length;y++){var J=Q[y];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}ss=!!df,uf=df=null}finally{co=f,G.p=c,M.T=l}}o.current=t,Wo=2}}function Pk(){if(Wo===2){Wo=0;var o=Ar,t=rl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var c=G.p;G.p=2;var f=co;co|=4;try{xk(o,t.alternate,t)}finally{co=f,G.p=c,M.T=l}}Wo=3}}function Gk(){if(Wo===4||Wo===3){Wo=0,F();var o=Ar,t=rl,l=Wt,c=Nk;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Wo=5:(Wo=0,rl=Ar=null,Yk(o,o.pendingLanes));var f=o.pendingLanes;if(f===0&&(Tr=null),pd(l),t=t.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Yr,t,void 0,(t.current.flags&128)===128)}catch{}if(c!==null){t=M.T,f=G.p,G.p=2,M.T=null;try{for(var b=o.onRecoverableError,k=0;k<c.length;k++){var y=c[k];b(y.value,{componentStack:y.stack})}}finally{M.T=t,G.p=f}}(Wt&3)!==0&&Xc(),Lt(o),f=o.pendingLanes,(l&261930)!==0&&(f&42)!==0?o===Ju?ui++:(ui=0,Ju=o):ui=0,fi(0)}}function Yk(o,t){(o.pooledCacheLanes&=t)===0&&(t=o.pooledCache,t!=null&&(o.pooledCache=null,Zl(t)))}function Xc(){return Zk(),Pk(),Gk(),Jk()}function Jk(){if(Wo!==5)return!1;var o=Ar,t=Gu;Gu=0;var l=pd(Wt),c=M.T,f=G.p;try{G.p=32>l?32:l,M.T=null,l=Yu,Yu=null;var b=Ar,k=Wt;if(Wo=0,rl=Ar=null,Wt=0,(co&6)!==0)throw Error(i(331));var y=co;if(co|=4,Lk(b.current),Ak(b,b.current,k,l),co=y,fi(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Yr,b)}catch{}return!0}finally{G.p=f,M.T=c,Yk(o,t)}}function Xk(o,t,l){t=st(l,t),t=Au(o.stateNode,t,2),o=xr(o,t,2),o!==null&&(Ol(o,2),Lt(o))}function uo(o,t,l){if(o.tag===3)Xk(o,o,l);else for(;t!==null;){if(t.tag===3){Xk(t,o,l);break}else if(t.tag===1){var c=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Tr===null||!Tr.has(c))){o=st(l,o),l=Wp(2),c=xr(t,l,2),c!==null&&(Qp(l,c,t,o),Ol(c,2),Lt(c));break}}t=t.return}}function Qu(o,t,l){var c=o.pingCache;if(c===null){c=o.pingCache=new M2;var f=new Set;c.set(t,f)}else f=c.get(t),f===void 0&&(f=new Set,c.set(t,f));f.has(l)||(qu=!0,f.add(l),o=K2.bind(null,o,t,l),t.then(o,o))}function K2(o,t,l){var c=o.pingCache;c!==null&&c.delete(t),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,go===o&&(Ye&l)===l&&(Bo===4||Bo===3&&(Ye&62914560)===Ye&&300>te()-qc?(co&2)===0&&al(o,0):Zu|=l,tl===Ye&&(tl=0)),Lt(o)}function Wk(o,t){t===0&&(t=Zm()),o=oa(o,t),o!==null&&(Ol(o,t),Lt(o))}function V2(o){var t=o.memoizedState,l=0;t!==null&&(l=t.retryLane),Wk(o,l)}function q2(o,t){var l=0;switch(o.tag){case 31:case 13:var c=o.stateNode,f=o.memoizedState;f!==null&&(l=f.retryLane);break;case 19:c=o.stateNode;break;case 22:c=o.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(t),Wk(o,l)}function Z2(o,t){return lo(o,t)}var Wc=null,il=null,ef=!1,Qc=!1,of=!1,Er=0;function Lt(o){o!==il&&o.next===null&&(il===null?Wc=il=o:il=il.next=o),Qc=!0,ef||(ef=!0,G2())}function fi(o,t){if(!of&&Qc){of=!0;do for(var l=!1,c=Wc;c!==null;){if(o!==0){var f=c.pendingLanes;if(f===0)var b=0;else{var k=c.suspendedLanes,y=c.pingedLanes;b=(1<<31-wn(42|o)+1)-1,b&=f&~(k&~y),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,nv(c,b))}else b=Ye,b=tc(c,c===go?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||Ll(c,b)||(l=!0,nv(c,b));c=c.next}while(l);of=!1}}function P2(){Qk()}function Qk(){Qc=ef=!1;var o=0;Er!==0&&rz()&&(o=Er);for(var t=te(),l=null,c=Wc;c!==null;){var f=c.next,b=ev(c,t);b===0?(c.next=null,l===null?Wc=f:l.next=f,f===null&&(il=l)):(l=c,(o!==0||(b&3)!==0)&&(Qc=!0)),c=f}Wo!==0&&Wo!==5||fi(o),Er!==0&&(Er=0)}function ev(o,t){for(var l=o.suspendedLanes,c=o.pingedLanes,f=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var k=31-wn(b),y=1<<k,A=f[k];A===-1?((y&l)===0||(y&c)!==0)&&(f[k]=_w(y,t)):A<=t&&(o.expiredLanes|=y),b&=~y}if(t=go,l=Ye,l=tc(o,o===t?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c=o.callbackNode,l===0||o===t&&(so===2||so===9)||o.cancelPendingCommit!==null)return c!==null&&c!==null&&T(c),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Ll(o,l)){if(t=l&-l,t===o.callbackPriority)return t;switch(c!==null&&T(c),pd(l)){case 2:case 8:l=ve;break;case 32:l=eo;break;case 268435456:l=on;break;default:l=eo}return c=ov.bind(null,o),l=lo(l,c),o.callbackPriority=t,o.callbackNode=l,t}return c!==null&&c!==null&&T(c),o.callbackPriority=2,o.callbackNode=null,2}function ov(o,t){if(Wo!==0&&Wo!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(Xc()&&o.callbackNode!==l)return null;var c=Ye;return c=tc(o,o===go?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c===0?null:(Rk(o,c,t),ev(o,te()),o.callbackNode!=null&&o.callbackNode===l?ov.bind(null,o):null)}function nv(o,t){if(Xc())return null;Rk(o,t,!0)}function G2(){lz(function(){(co&6)!==0?lo(oe,P2):Qk()})}function nf(){if(Er===0){var o=Za;o===0&&(o=ec,ec<<=1,(ec&261888)===0&&(ec=256)),Er=o}return Er}function tv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:ic(""+o)}function rv(o,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,o.id&&l.setAttribute("form",o.id),t.parentNode.insertBefore(l,t),o=new FormData(o),l.parentNode.removeChild(l),o}function Y2(o,t,l,c,f){if(t==="submit"&&l&&l.stateNode===f){var b=tv((f[En]||null).action),k=c.submitter;k&&(t=(t=k[En]||null)?tv(t.formAction):k.getAttribute("formAction"),t!==null&&(b=t,k=null));var y=new uc("action","action",null,c,f);o.push({event:y,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Er!==0){var A=k?rv(f,k):new FormData(f);yu(l,{pending:!0,data:A,method:f.method,action:b},null,A)}}else typeof b=="function"&&(y.preventDefault(),A=k?rv(f,k):new FormData(f),yu(l,{pending:!0,data:A,method:f.method,action:b},b,A))},currentTarget:f}]})}}for(var tf=0;tf<Id.length;tf++){var rf=Id[tf],J2=rf.toLowerCase(),X2=rf[0].toUpperCase()+rf.slice(1);_t(J2,"on"+X2)}_t(Bh,"onAnimationEnd"),_t(Rh,"onAnimationIteration"),_t(Dh,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(b2,"onTransitionRun"),_t(m2,"onTransitionStart"),_t(h2,"onTransitionCancel"),_t(Mh,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),W2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bi));function av(o,t){t=(t&4)!==0;for(var l=0;l<o.length;l++){var c=o[l],f=c.event;c=c.listeners;e:{var b=void 0;if(t)for(var k=c.length-1;0<=k;k--){var y=c[k],A=y.instance,U=y.currentTarget;if(y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){mc(Y)}f.currentTarget=null,b=A}else for(k=0;k<c.length;k++){if(y=c[k],A=y.instance,U=y.currentTarget,y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){mc(Y)}f.currentTarget=null,b=A}}}}function Ze(o,t){var l=t[kd];l===void 0&&(l=t[kd]=new Set);var c=o+"__bubble";l.has(c)||(lv(t,o,2,!1),l.add(c))}function af(o,t,l){var c=0;t&&(c|=4),lv(l,o,c,t)}var es="_reactListening"+Math.random().toString(36).slice(2);function lf(o){if(!o[es]){o[es]=!0,Qm.forEach(function(l){l!=="selectionchange"&&(W2.has(l)||af(l,!1,o),af(l,!0,o))});var t=o.nodeType===9?o:o.ownerDocument;t===null||t[es]||(t[es]=!0,af("selectionchange",!1,t))}}function lv(o,t,l,c){switch(Bv(t)){case 2:var f=Sz;break;case 8:f=Tz;break;default:f=yf}l=f.bind(null,t,l,o),f=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),c?f!==void 0?o.addEventListener(t,l,{capture:!0,passive:f}):o.addEventListener(t,l,!0):f!==void 0?o.addEventListener(t,l,{passive:f}):o.addEventListener(t,l,!1)}function cf(o,t,l,c,f){var b=c;if((t&1)===0&&(t&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var y=c.stateNode.containerInfo;if(y===f)break;if(k===4)for(k=c.return;k!==null;){var A=k.tag;if((A===3||A===4)&&k.stateNode.containerInfo===f)return;k=k.return}for(;y!==null;){if(k=Ca(y),k===null)return;if(A=k.tag,A===5||A===6||A===26||A===27){c=b=k;continue e}y=y.parentNode}}c=c.return}uh(function(){var U=b,Y=zd(l),Q=[];e:{var K=Ih.get(o);if(K!==void 0){var q=uc,pe=o;switch(o){case"keypress":if(sc(l)===0)break e;case"keydown":case"keyup":q=qw;break;case"focusin":pe="focus",q=Ed;break;case"focusout":pe="blur",q=Ed;break;case"beforeblur":case"afterblur":q=Ed;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=mh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=$w;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Gw;break;case Bh:case Rh:case Dh:q=Rw;break;case Mh:q=Jw;break;case"scroll":case"scrollend":q=Lw;break;case"wheel":q=Ww;break;case"copy":case"cut":case"paste":q=Mw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ph;break;case"toggle":case"beforetoggle":q=e2}var Ae=(t&4)!==0,vo=!Ae&&(o==="scroll"||o==="scrollend"),R=Ae?K!==null?K+"Capture":null:K;Ae=[];for(var L=U,I;L!==null;){var J=L;if(I=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||I===null||R===null||(J=Bl(L,R),J!=null&&Ae.push(mi(L,J,I))),vo)break;L=L.return}0<Ae.length&&(K=new q(K,pe,null,l,Y),Q.push({event:K,listeners:Ae}))}}if((t&7)===0){e:{if(K=o==="mouseover"||o==="pointerover",q=o==="mouseout"||o==="pointerout",K&&l!==wd&&(pe=l.relatedTarget||l.fromElement)&&(Ca(pe)||pe[Aa]))break e;if((q||K)&&(K=Y.window===Y?Y:(K=Y.ownerDocument)?K.defaultView||K.parentWindow:window,q?(pe=l.relatedTarget||l.toElement,q=U,pe=pe?Ca(pe):null,pe!==null&&(vo=d(pe),Ae=pe.tag,pe!==vo||Ae!==5&&Ae!==27&&Ae!==6)&&(pe=null)):(q=null,pe=U),q!==pe)){if(Ae=mh,J="onMouseLeave",R="onMouseEnter",L="mouse",(o==="pointerout"||o==="pointerover")&&(Ae=ph,J="onPointerLeave",R="onPointerEnter",L="pointer"),vo=q==null?K:Nl(q),I=pe==null?K:Nl(pe),K=new Ae(J,L+"leave",q,l,Y),K.target=vo,K.relatedTarget=I,J=null,Ca(Y)===U&&(Ae=new Ae(R,L+"enter",pe,l,Y),Ae.target=I,Ae.relatedTarget=vo,J=Ae),vo=J,q&&pe)o:{for(Ae=Q2,R=q,L=pe,I=0,J=R;J;J=Ae(J))I++;J=0;for(var ze=L;ze;ze=Ae(ze))J++;for(;0<I-J;)R=Ae(R),I--;for(;0<J-I;)L=Ae(L),J--;for(;I--;){if(R===L||L!==null&&R===L.alternate){Ae=R;break o}R=Ae(R),L=Ae(L)}Ae=null}else Ae=null;q!==null&&iv(Q,K,q,Ae,!1),pe!==null&&vo!==null&&iv(Q,vo,pe,Ae,!0)}}e:{if(K=U?Nl(U):window,q=K.nodeName&&K.nodeName.toLowerCase(),q==="select"||q==="input"&&K.type==="file")var no=zh;else if(yh(K))if(jh)no=d2;else{no=c2;var ge=i2}else q=K.nodeName,!q||q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?U&&yd(U.elementType)&&(no=zh):no=s2;if(no&&(no=no(o,U))){wh(Q,no,l,Y);break e}ge&&ge(o,K,U),o==="focusout"&&U&&K.type==="number"&&U.memoizedProps.value!=null&&xd(K,"number",K.value)}switch(ge=U?Nl(U):window,o){case"focusin":(yh(ge)||ge.contentEditable==="true")&&(Ma=ge,Rd=U,Kl=null);break;case"focusout":Kl=Rd=Ma=null;break;case"mousedown":Dd=!0;break;case"contextmenu":case"mouseup":case"dragend":Dd=!1,$h(Q,l,Y);break;case"selectionchange":if(f2)break;case"keydown":case"keyup":$h(Q,l,Y)}var Ie;if(Od)e:{switch(o){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else Da?_h(o,l)&&(Je="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Je="onCompositionStart");Je&&(kh&&l.locale!=="ko"&&(Da||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&Da&&(Ie=fh()):(mr=Y,Td="value"in mr?mr.value:mr.textContent,Da=!0)),ge=os(U,Je),0<ge.length&&(Je=new hh(Je,o,null,l,Y),Q.push({event:Je,listeners:ge}),Ie?Je.data=Ie:(Ie=xh(l),Ie!==null&&(Je.data=Ie)))),(Ie=n2?t2(o,l):r2(o,l))&&(Je=os(U,"onBeforeInput"),0<Je.length&&(ge=new hh("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ge,listeners:Je}),ge.data=Ie)),Y2(Q,o,U,l,Y)}av(Q,t)})}function mi(o,t,l){return{instance:o,listener:t,currentTarget:l}}function os(o,t){for(var l=t+"Capture",c=[];o!==null;){var f=o,b=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||b===null||(f=Bl(o,l),f!=null&&c.unshift(mi(o,f,b)),f=Bl(o,t),f!=null&&c.push(mi(o,f,b))),o.tag===3)return c;o=o.return}return[]}function Q2(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function iv(o,t,l,c,f){for(var b=t._reactName,k=[];l!==null&&l!==c;){var y=l,A=y.alternate,U=y.stateNode;if(y=y.tag,A!==null&&A===c)break;y!==5&&y!==26&&y!==27||U===null||(A=U,f?(U=Bl(l,b),U!=null&&k.unshift(mi(l,U,A))):f||(U=Bl(l,b),U!=null&&k.push(mi(l,U,A)))),l=l.return}k.length!==0&&o.push({event:t,listeners:k})}var ez=/\r\n?/g,oz=/\u0000|\uFFFD/g;function cv(o){return(typeof o=="string"?o:""+o).replace(ez,`
|
|
10
|
+
`).replace(oz,"")}function sv(o,t){return t=cv(t),cv(o)===t}function ko(o,t,l,c,f,b){switch(l){case"children":typeof c=="string"?t==="body"||t==="textarea"&&c===""||Na(o,c):(typeof c=="number"||typeof c=="bigint")&&t!=="body"&&Na(o,""+c);break;case"className":ac(o,"class",c);break;case"tabIndex":ac(o,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":ac(o,l,c);break;case"style":sh(o,c,b);break;case"data":if(t!=="object"){ac(o,"data",c);break}case"src":case"href":if(c===""&&(t!=="a"||l!=="href")){o.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(l);break}c=ic(""+c),o.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){o.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(t!=="input"&&ko(o,t,"name",f.name,f,null),ko(o,t,"formEncType",f.formEncType,f,null),ko(o,t,"formMethod",f.formMethod,f,null),ko(o,t,"formTarget",f.formTarget,f,null)):(ko(o,t,"encType",f.encType,f,null),ko(o,t,"method",f.method,f,null),ko(o,t,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(l);break}c=ic(""+c),o.setAttribute(l,c);break;case"onClick":c!=null&&(o.onclick=Dt);break;case"onScroll":c!=null&&Ze("scroll",o);break;case"onScrollEnd":c!=null&&Ze("scrollend",o);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"multiple":o.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":o.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){o.removeAttribute("xlink:href");break}l=ic(""+c),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,""+c):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":c===!0?o.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,c):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?o.setAttribute(l,c):o.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?o.removeAttribute(l):o.setAttribute(l,c);break;case"popover":Ze("beforetoggle",o),Ze("toggle",o),rc(o,"popover",c);break;case"xlinkActuate":Rt(o,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Rt(o,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Rt(o,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Rt(o,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Rt(o,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Rt(o,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":rc(o,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Cw.get(l)||l,rc(o,l,c))}}function sf(o,t,l,c,f,b){switch(l){case"style":sh(o,c,b);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"children":typeof c=="string"?Na(o,c):(typeof c=="number"||typeof c=="bigint")&&Na(o,""+c);break;case"onScroll":c!=null&&Ze("scroll",o);break;case"onScrollEnd":c!=null&&Ze("scrollend",o);break;case"onClick":c!=null&&(o.onclick=Dt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!eh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),b=o[En]||null,b=b!=null?b[l]:null,typeof b=="function"&&o.removeEventListener(t,b,f),typeof c=="function")){typeof b!="function"&&b!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(t,c,f);break e}l in o?o[l]=c:c===!0?o.setAttribute(l,""):rc(o,l,c)}}}function un(o,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",o),Ze("load",o);var c=!1,f=!1,b;for(b in l)if(l.hasOwnProperty(b)){var k=l[b];if(k!=null)switch(b){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,b,k,l,null)}}f&&ko(o,t,"srcSet",l.srcSet,l,null),c&&ko(o,t,"src",l.src,l,null);return;case"input":Ze("invalid",o);var y=b=k=f=null,A=null,U=null;for(c in l)if(l.hasOwnProperty(c)){var Y=l[c];if(Y!=null)switch(c){case"name":f=Y;break;case"type":k=Y;break;case"checked":A=Y;break;case"defaultChecked":U=Y;break;case"value":b=Y;break;case"defaultValue":y=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:ko(o,t,c,Y,l,null)}}ah(o,b,y,A,U,k,f,!1);return;case"select":Ze("invalid",o),c=k=b=null;for(f in l)if(l.hasOwnProperty(f)&&(y=l[f],y!=null))switch(f){case"value":b=y;break;case"defaultValue":k=y;break;case"multiple":c=y;default:ko(o,t,f,y,l,null)}t=b,l=k,o.multiple=!!c,t!=null?$a(o,!!c,t,!1):l!=null&&$a(o,!!c,l,!0);return;case"textarea":Ze("invalid",o),b=f=c=null;for(k in l)if(l.hasOwnProperty(k)&&(y=l[k],y!=null))switch(k){case"value":c=y;break;case"defaultValue":f=y;break;case"children":b=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:ko(o,t,k,y,l,null)}ih(o,c,f,b);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(c=l[A],c!=null))switch(A){case"selected":o.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ko(o,t,A,c,l,null)}return;case"dialog":Ze("beforetoggle",o),Ze("toggle",o),Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":Ze("load",o);break;case"video":case"audio":for(c=0;c<bi.length;c++)Ze(bi[c],o);break;case"image":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"embed":case"source":case"link":Ze("error",o),Ze("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in l)if(l.hasOwnProperty(U)&&(c=l[U],c!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,U,c,l,null)}return;default:if(yd(t)){for(Y in l)l.hasOwnProperty(Y)&&(c=l[Y],c!==void 0&&sf(o,t,Y,c,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(c=l[y],c!=null&&ko(o,t,y,c,l,null))}function nz(o,t,l,c){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,b=null,k=null,y=null,A=null,U=null,Y=null;for(q in l){var Q=l[q];if(l.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=Q;default:c.hasOwnProperty(q)||ko(o,t,q,null,c,Q)}}for(var K in c){var q=c[K];if(Q=l[K],c.hasOwnProperty(K)&&(q!=null||Q!=null))switch(K){case"type":b=q;break;case"name":f=q;break;case"checked":U=q;break;case"defaultChecked":Y=q;break;case"value":k=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==Q&&ko(o,t,K,q,c,Q)}}_d(o,k,y,A,U,Y,b,f);return;case"select":q=k=y=K=null;for(b in l)if(A=l[b],l.hasOwnProperty(b)&&A!=null)switch(b){case"value":break;case"multiple":q=A;default:c.hasOwnProperty(b)||ko(o,t,b,null,c,A)}for(f in c)if(b=c[f],A=l[f],c.hasOwnProperty(f)&&(b!=null||A!=null))switch(f){case"value":K=b;break;case"defaultValue":y=b;break;case"multiple":k=b;default:b!==A&&ko(o,t,f,b,c,A)}t=y,l=k,c=q,K!=null?$a(o,!!l,K,!1):!!c!=!!l&&(t!=null?$a(o,!!l,t,!0):$a(o,!!l,l?[]:"",!1));return;case"textarea":q=K=null;for(y in l)if(f=l[y],l.hasOwnProperty(y)&&f!=null&&!c.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ko(o,t,y,null,c,f)}for(k in c)if(f=c[k],b=l[k],c.hasOwnProperty(k)&&(f!=null||b!=null))switch(k){case"value":K=f;break;case"defaultValue":q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==b&&ko(o,t,k,f,c,b)}lh(o,K,q);return;case"option":for(var pe in l)if(K=l[pe],l.hasOwnProperty(pe)&&K!=null&&!c.hasOwnProperty(pe))switch(pe){case"selected":o.selected=!1;break;default:ko(o,t,pe,null,c,K)}for(A in c)if(K=c[A],q=l[A],c.hasOwnProperty(A)&&K!==q&&(K!=null||q!=null))switch(A){case"selected":o.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ko(o,t,A,K,c,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in l)K=l[Ae],l.hasOwnProperty(Ae)&&K!=null&&!c.hasOwnProperty(Ae)&&ko(o,t,Ae,null,c,K);for(U in c)if(K=c[U],q=l[U],c.hasOwnProperty(U)&&K!==q&&(K!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:ko(o,t,U,K,c,q)}return;default:if(yd(t)){for(var vo in l)K=l[vo],l.hasOwnProperty(vo)&&K!==void 0&&!c.hasOwnProperty(vo)&&sf(o,t,vo,void 0,c,K);for(Y in c)K=c[Y],q=l[Y],!c.hasOwnProperty(Y)||K===q||K===void 0&&q===void 0||sf(o,t,Y,K,c,q);return}}for(var R in l)K=l[R],l.hasOwnProperty(R)&&K!=null&&!c.hasOwnProperty(R)&&ko(o,t,R,null,c,K);for(Q in c)K=c[Q],q=l[Q],!c.hasOwnProperty(Q)||K===q||K==null&&q==null||ko(o,t,Q,K,c,q)}function dv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tz(){if(typeof performance.getEntriesByType=="function"){for(var o=0,t=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var f=l[c],b=f.transferSize,k=f.initiatorType,y=f.duration;if(b&&y&&dv(k)){for(k=0,y=f.responseEnd,c+=1;c<l.length;c++){var A=l[c],U=A.startTime;if(U>y)break;var Y=A.transferSize,Q=A.initiatorType;Y&&dv(Q)&&(A=A.responseEnd,k+=Y*(A<y?1:(y-U)/(A-U)))}if(--c,t+=8*(b+k)/(f.duration/1e3),o++,10<o)break}}if(0<o)return t/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var df=null,uf=null;function ns(o){return o.nodeType===9?o:o.ownerDocument}function uv(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fv(o,t){if(o===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&t==="foreignObject"?0:o}function ff(o,t){return o==="textarea"||o==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bf=null;function rz(){var o=window.event;return o&&o.type==="popstate"?o===bf?!1:(bf=o,!0):(bf=null,!1)}var bv=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,mv=typeof Promise=="function"?Promise:void 0,lz=typeof queueMicrotask=="function"?queueMicrotask:typeof mv<"u"?function(o){return mv.resolve(null).then(o).catch(iz)}:bv;function iz(o){setTimeout(function(){throw o})}function Lr(o){return o==="head"}function hv(o,t){var l=t,c=0;do{var f=l.nextSibling;if(o.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(c===0){o.removeChild(f),ul(t);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")hi(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,hi(l);for(var b=l.firstChild;b;){var k=b.nextSibling,y=b.nodeName;b[$l]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=k}}else l==="body"&&hi(o.ownerDocument.body);l=f}while(l);ul(t)}function pv(o,t){var l=o;o=0;do{var c=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=c}while(l)}function mf(o){var t=o.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":mf(l),vd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function cz(o,t,l,c){for(;o.nodeType===1;){var f=l;if(o.nodeName.toLowerCase()!==t.toLowerCase()){if(!c&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(c){if(!o[$l])switch(t){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==f.rel||o.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||o.getAttribute("title")!==(f.title==null?null:f.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(f.src==null?null:f.src)||o.getAttribute("type")!==(f.type==null?null:f.type)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(t==="input"&&o.type==="hidden"){var b=f.name==null?null:""+f.name;if(f.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=mt(o.nextSibling),o===null)break}return null}function sz(o,t,l){if(t==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=mt(o.nextSibling),o===null))return null;return o}function kv(o,t){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!t||(o=mt(o.nextSibling),o===null))return null;return o}function hf(o){return o.data==="$?"||o.data==="$~"}function pf(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function dz(o,t){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=t;else if(o.data!=="$?"||l.readyState!=="loading")t();else{var c=function(){t(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),o._reactRetry=c}}function mt(o){for(;o!=null;o=o.nextSibling){var t=o.nodeType;if(t===1||t===3)break;if(t===8){if(t=o.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return o}var kf=null;function vv(o){o=o.nextSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(t===0)return mt(o.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}o=o.nextSibling}return null}function gv(o){o=o.previousSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return o;t--}else l!=="/$"&&l!=="/&"||t++}o=o.previousSibling}return null}function _v(o,t,l){switch(t=ns(l),o){case"html":if(o=t.documentElement,!o)throw Error(i(452));return o;case"head":if(o=t.head,!o)throw Error(i(453));return o;case"body":if(o=t.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function hi(o){for(var t=o.attributes;t.length;)o.removeAttributeNode(t[0]);vd(o)}var ht=new Map,xv=new Set;function ts(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Qt=G.d;G.d={f:uz,r:fz,D:bz,C:mz,L:hz,m:pz,X:vz,S:kz,M:gz};function uz(){var o=Qt.f(),t=Gc();return o||t}function fz(o){var t=Ea(o);t!==null&&t.tag===5&&t.type==="form"?Mp(t):Qt.r(o)}var cl=typeof document>"u"?null:document;function yv(o,t,l){var c=cl;if(c&&typeof t=="string"&&t){var f=it(t);f='link[rel="'+o+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),xv.has(f)||(xv.add(f),o={rel:o,crossOrigin:l,href:t},c.querySelector(f)===null&&(t=c.createElement("link"),un(t,"link",o),nn(t),c.head.appendChild(t)))}}function bz(o){Qt.D(o),yv("dns-prefetch",o,null)}function mz(o,t){Qt.C(o,t),yv("preconnect",o,t)}function hz(o,t,l){Qt.L(o,t,l);var c=cl;if(c&&o&&t){var f='link[rel="preload"][as="'+it(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+it(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+it(l.imageSizes)+'"]')):f+='[href="'+it(o)+'"]';var b=f;switch(t){case"style":b=sl(o);break;case"script":b=dl(o)}ht.has(b)||(o=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:o,as:t},l),ht.set(b,o),c.querySelector(f)!==null||t==="style"&&c.querySelector(pi(b))||t==="script"&&c.querySelector(ki(b))||(t=c.createElement("link"),un(t,"link",o),nn(t),c.head.appendChild(t)))}}function pz(o,t){Qt.m(o,t);var l=cl;if(l&&o){var c=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+it(c)+'"][href="'+it(o)+'"]',b=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=dl(o)}if(!ht.has(b)&&(o=v({rel:"modulepreload",href:o},t),ht.set(b,o),l.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ki(b)))return}c=l.createElement("link"),un(c,"link",o),nn(c),l.head.appendChild(c)}}}function kz(o,t,l){Qt.S(o,t,l);var c=cl;if(c&&o){var f=La(c).hoistableStyles,b=sl(o);t=t||"default";var k=f.get(b);if(!k){var y={loading:0,preload:null};if(k=c.querySelector(pi(b)))y.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":t},l),(l=ht.get(b))&&vf(o,l);var A=k=c.createElement("link");nn(A),un(A,"link",o),A._p=new Promise(function(U,Y){A.onload=U,A.onerror=Y}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,rs(k,t,c)}k={type:"stylesheet",instance:k,count:1,state:y},f.set(b,k)}}}function vz(o,t){Qt.X(o,t);var l=cl;if(l&&o){var c=La(l).hoistableScripts,f=dl(o),b=c.get(f);b||(b=l.querySelector(ki(f)),b||(o=v({src:o,async:!0},t),(t=ht.get(f))&&gf(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(f,b))}}function gz(o,t){Qt.M(o,t);var l=cl;if(l&&o){var c=La(l).hoistableScripts,f=dl(o),b=c.get(f);b||(b=l.querySelector(ki(f)),b||(o=v({src:o,async:!0,type:"module"},t),(t=ht.get(f))&&gf(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(f,b))}}function wv(o,t,l,c){var f=(f=Ne.current)?ts(f):null;if(!f)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=sl(l.href),l=La(f).hoistableStyles,c=l.get(t),c||(c={type:"style",instance:null,count:0,state:null},l.set(t,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=sl(l.href);var b=La(f).hoistableStyles,k=b.get(o);if(k||(f=f.ownerDocument||f,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,k),(b=f.querySelector(pi(o)))&&!b._p&&(k.instance=b,k.state.loading=5),ht.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ht.set(o,l),b||_z(f,o,l,k.state))),t&&c===null)throw Error(i(528,""));return k}if(t&&c!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(l),l=La(f).hoistableScripts,c=l.get(t),c||(c={type:"script",instance:null,count:0,state:null},l.set(t,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function sl(o){return'href="'+it(o)+'"'}function pi(o){return'link[rel="stylesheet"]['+o+"]"}function zv(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function _z(o,t,l,c){o.querySelector('link[rel="preload"][as="style"]['+t+"]")?c.loading=1:(t=o.createElement("link"),c.preload=t,t.addEventListener("load",function(){return c.loading|=1}),t.addEventListener("error",function(){return c.loading|=2}),un(t,"link",l),nn(t),o.head.appendChild(t))}function dl(o){return'[src="'+it(o)+'"]'}function ki(o){return"script[async]"+o}function jv(o,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var c=o.querySelector('style[data-href~="'+it(l.href)+'"]');if(c)return t.instance=c,nn(c),c;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(o.ownerDocument||o).createElement("style"),nn(c),un(c,"style",f),rs(c,l.precedence,o),t.instance=c;case"stylesheet":f=sl(l.href);var b=o.querySelector(pi(f));if(b)return t.state.loading|=4,t.instance=b,nn(b),b;c=zv(l),(f=ht.get(f))&&vf(c,f),b=(o.ownerDocument||o).createElement("link"),nn(b);var k=b;return k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",c),t.state.loading|=4,rs(b,l.precedence,o),t.instance=b;case"script":return b=dl(l.src),(f=o.querySelector(ki(b)))?(t.instance=f,nn(f),f):(c=l,(f=ht.get(b))&&(c=v({},l),gf(c,f)),o=o.ownerDocument||o,f=o.createElement("script"),nn(f),un(f,"link",c),o.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(c=t.instance,t.state.loading|=4,rs(c,l.precedence,o));return t.instance}function rs(o,t,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,b=f,k=0;k<c.length;k++){var y=c[k];if(y.dataset.precedence===t)b=y;else if(b!==f)break}b?b.parentNode.insertBefore(o,b.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(o,t.firstChild))}function vf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.title==null&&(o.title=t.title)}function gf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.integrity==null&&(o.integrity=t.integrity)}var as=null;function Sv(o,t,l){if(as===null){var c=new Map,f=as=new Map;f.set(l,c)}else f=as,c=f.get(l),c||(c=new Map,f.set(l,c));if(c.has(o))return c;for(c.set(o,null),l=l.getElementsByTagName(o),f=0;f<l.length;f++){var b=l[f];if(!(b[$l]||b[ln]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(t)||"";k=o+k;var y=c.get(k);y?y.push(b):c.set(k,[b])}}return c}function Tv(o,t,l){o=o.ownerDocument||o,o.head.insertBefore(l,t==="title"?o.querySelector("head > title"):null)}function xz(o,t,l){if(l===1||t.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return o=t.disabled,typeof t.precedence=="string"&&o==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Av(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function yz(o,t,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=sl(c.href),b=t.querySelector(pi(f));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=ls.bind(o),t.then(o,o)),l.state.loading|=4,l.instance=b,nn(b);return}b=t.ownerDocument||t,c=zv(c),(f=ht.get(f))&&vf(c,f),b=b.createElement("link"),nn(b);var k=b;k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",c),l.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=ls.bind(o),t.addEventListener("load",l),t.addEventListener("error",l))}}var _f=0;function wz(o,t){return o.stylesheets&&o.count===0&&cs(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var c=setTimeout(function(){if(o.stylesheets&&cs(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+t);0<o.imgBytes&&_f===0&&(_f=62500*tz());var f=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&cs(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>_f?50:800)+t);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function ls(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cs(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var is=null;function cs(o,t){o.stylesheets=null,o.unsuspend!==null&&(o.count++,is=new Map,t.forEach(zz,o),is=null,ls.call(o))}function zz(o,t){if(!(t.state.loading&4)){var l=is.get(o);if(l)var c=l.get(null);else{l=new Map,is.set(o,l);for(var f=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<f.length;b++){var k=f[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(l.set(k.dataset.precedence,k),c=k)}c&&l.set(null,c)}f=t.instance,k=f.getAttribute("data-precedence"),b=l.get(k)||c,b===c&&l.set(null,f),l.set(k,f),this.count++,c=ls.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),b?b.parentNode.insertBefore(f,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(f,o.firstChild)),t.state.loading|=4}}var vi={$$typeof:w,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function jz(o,t,l,c,f,b,k,y,A){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=md(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=md(0),this.hiddenUpdates=md(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Cv(o,t,l,c,f,b,k,y,A,U,Y,Q){return o=new jz(o,t,l,k,A,U,Y,Q,y),t=1,b===!0&&(t|=24),b=Vn(3,null,null,t),o.current=b,b.stateNode=o,t=Wd(),t.refCount++,o.pooledCache=t,t.refCount++,b.memoizedState={element:c,isDehydrated:l,cache:t},nu(b),o}function Ev(o){return o?(o=Ha,o):Ha}function Lv(o,t,l,c,f,b){f=Ev(f),c.context===null?c.context=f:c.pendingContext=f,c=_r(t),c.payload={element:l},b=b===void 0?null:b,b!==null&&(c.callback=b),l=xr(o,c,t),l!==null&&(Rn(l,o,t),Jl(l,o,t))}function Ov(o,t){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<t?l:t}}function xf(o,t){Ov(o,t),(o=o.alternate)&&Ov(o,t)}function $v(o){if(o.tag===13||o.tag===31){var t=oa(o,67108864);t!==null&&Rn(t,o,67108864),xf(o,67108864)}}function Nv(o){if(o.tag===13||o.tag===31){var t=Yn();t=hd(t);var l=oa(o,t);l!==null&&Rn(l,o,t),xf(o,t)}}var ss=!0;function Sz(o,t,l,c){var f=M.T;M.T=null;var b=G.p;try{G.p=2,yf(o,t,l,c)}finally{G.p=b,M.T=f}}function Tz(o,t,l,c){var f=M.T;M.T=null;var b=G.p;try{G.p=8,yf(o,t,l,c)}finally{G.p=b,M.T=f}}function yf(o,t,l,c){if(ss){var f=wf(c);if(f===null)cf(o,t,c,ds,l),Rv(o,c);else if(Cz(f,o,t,l,c))c.stopPropagation();else if(Rv(o,c),t&4&&-1<Az.indexOf(o)){for(;f!==null;){var b=Ea(f);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Jr(b.pendingLanes);if(k!==0){var y=b;for(y.pendingLanes|=2,y.entangledLanes|=2;k;){var A=1<<31-wn(k);y.entanglements[1]|=A,k&=~A}Lt(b),(co&6)===0&&(Zc=te()+500,fi(0))}}break;case 31:case 13:y=oa(b,2),y!==null&&Rn(y,b,2),Gc(),xf(b,2)}if(b=wf(c),b===null&&cf(o,t,c,ds,l),b===f)break;f=b}f!==null&&c.stopPropagation()}else cf(o,t,c,null,l)}}function wf(o){return o=zd(o),zf(o)}var ds=null;function zf(o){if(ds=null,o=Ca(o),o!==null){var t=d(o);if(t===null)o=null;else{var l=t.tag;if(l===13){if(o=u(t),o!==null)return o;o=null}else if(l===31){if(o=m(t),o!==null)return o;o=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;o=null}else t!==o&&(o=null)}}return ds=o,null}function Bv(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case oe:return 2;case ve:return 8;case eo:case io:return 32;case on:return 268435456;default:return 32}default:return 32}}var jf=!1,Or=null,$r=null,Nr=null,gi=new Map,_i=new Map,Br=[],Az="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Rv(o,t){switch(o){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_i.delete(t.pointerId)}}function xi(o,t,l,c,f,b){return o===null||o.nativeEvent!==b?(o={blockedOn:t,domEventName:l,eventSystemFlags:c,nativeEvent:b,targetContainers:[f]},t!==null&&(t=Ea(t),t!==null&&$v(t)),o):(o.eventSystemFlags|=c,t=o.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),o)}function Cz(o,t,l,c,f){switch(t){case"focusin":return Or=xi(Or,o,t,l,c,f),!0;case"dragenter":return $r=xi($r,o,t,l,c,f),!0;case"mouseover":return Nr=xi(Nr,o,t,l,c,f),!0;case"pointerover":var b=f.pointerId;return gi.set(b,xi(gi.get(b)||null,o,t,l,c,f)),!0;case"gotpointercapture":return b=f.pointerId,_i.set(b,xi(_i.get(b)||null,o,t,l,c,f)),!0}return!1}function Dv(o){var t=Ca(o.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=u(l),t!==null){o.blockedOn=t,Xm(o.priority,function(){Nv(l)});return}}else if(t===31){if(t=m(l),t!==null){o.blockedOn=t,Xm(o.priority,function(){Nv(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function us(o){if(o.blockedOn!==null)return!1;for(var t=o.targetContainers;0<t.length;){var l=wf(o.nativeEvent);if(l===null){l=o.nativeEvent;var c=new l.constructor(l.type,l);wd=c,l.target.dispatchEvent(c),wd=null}else return t=Ea(l),t!==null&&$v(t),o.blockedOn=l,!1;t.shift()}return!0}function Mv(o,t,l){us(o)&&l.delete(t)}function Ez(){jf=!1,Or!==null&&us(Or)&&(Or=null),$r!==null&&us($r)&&($r=null),Nr!==null&&us(Nr)&&(Nr=null),gi.forEach(Mv),_i.forEach(Mv)}function fs(o,t){o.blockedOn===t&&(o.blockedOn=null,jf||(jf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ez)))}var bs=null;function Iv(o){bs!==o&&(bs=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bs===o&&(bs=null);for(var t=0;t<o.length;t+=3){var l=o[t],c=o[t+1],f=o[t+2];if(typeof c!="function"){if(zf(c||l)===null)continue;break}var b=Ea(l);b!==null&&(o.splice(t,3),t-=3,yu(b,{pending:!0,data:f,method:l.method,action:c},c,f))}}))}function ul(o){function t(A){return fs(A,o)}Or!==null&&fs(Or,o),$r!==null&&fs($r,o),Nr!==null&&fs(Nr,o),gi.forEach(t),_i.forEach(t);for(var l=0;l<Br.length;l++){var c=Br[l];c.blockedOn===o&&(c.blockedOn=null)}for(;0<Br.length&&(l=Br[0],l.blockedOn===null);)Dv(l),l.blockedOn===null&&Br.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var f=l[c],b=l[c+1],k=f[En]||null;if(typeof b=="function")k||Iv(l);else if(k){var y=null;if(b&&b.hasAttribute("formAction")){if(f=b,k=b[En]||null)y=k.formAction;else if(zf(f)!==null)continue}else y=k.action;typeof y=="function"?l[c+1]=y:(l.splice(c,3),c-=3),Iv(l)}}}function Uv(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(k){return f=k})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function Sf(o){this._internalRoot=o}ms.prototype.render=Sf.prototype.render=function(o){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,c=Yn();Lv(l,c,o,t,null,null)},ms.prototype.unmount=Sf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var t=o.containerInfo;Lv(o.current,2,null,o,null,null),Gc(),t[Aa]=null}};function ms(o){this._internalRoot=o}ms.prototype.unstable_scheduleHydration=function(o){if(o){var t=Jm();o={blockedOn:null,target:o,priority:t};for(var l=0;l<Br.length&&t!==0&&t<Br[l].priority;l++);Br.splice(l,0,o),l===0&&Dv(o)}};var Hv=n.version;if(Hv!=="19.2.4")throw Error(i(527,Hv,"19.2.4"));G.findDOMNode=function(o){var t=o._reactInternals;if(t===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=p(t),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var Lz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Yr=hs.inject(Lz),an=hs}catch{}}return zi.createRoot=function(o,t){if(!s(o))throw Error(i(299));var l=!1,c="",f=Gp,b=Yp,k=Jp;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(b=t.onCaughtError),t.onRecoverableError!==void 0&&(k=t.onRecoverableError)),t=Cv(o,1,!1,null,null,l,c,null,f,b,k,Uv),o[Aa]=t.current,lf(o),new Sf(t)},zi.hydrateRoot=function(o,t,l){if(!s(o))throw Error(i(299));var c=!1,f="",b=Gp,k=Yp,y=Jp,A=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Cv(o,1,!0,t,l??null,c,f,A,b,k,y,Uv),t.context=Ev(null),l=t.current,c=Yn(),c=hd(c),f=_r(c),f.callback=null,xr(l,f,c),l=c,t.current.lanes=l,Ol(t,l),Lt(t),o[Aa]=t.current,lf(o),new ms(t)},zi.version="19.2.4",zi}var Wv;function Qz(){if(Wv)return Ef.exports;Wv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Ef.exports=Wz(),Ef.exports}var Sx=Qz();var Qv="popstate";function e4(e={}){function n(s,d){let{pathname:u="/",search:m="",hash:h=""}=za(s.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),fb("",{pathname:u,search:m,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(s,d){let u=s.document.querySelector("base"),m="";if(u&&u.getAttribute("href")){let h=s.location.href,p=h.indexOf("#");m=p===-1?h:h.slice(0,p)}return m+"#"+(typeof d=="string"?d:Ui(d))}function i(s,d){nt(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return n4(n,r,i,e)}function zo(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function nt(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o4(){return Math.random().toString(36).substring(2,10)}function eg(e,n){return{usr:e.state,key:e.key,idx:n}}function fb(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?za(n):n,state:r,key:n&&n.key||i||o4()}}function Ui({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function za(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function n4(e,n,r,i={}){let{window:s=document.defaultView,v5Compat:d=!1}=i,u=s.history,m="POP",h=null,p=g();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function v(){m="POP";let O=g(),E=O==null?null:O-p;p=O,h&&h({action:m,location:S.location,delta:E})}function _(O,E){m="PUSH";let x=fb(S.location,O,E);r&&r(x,O),p=g()+1;let w=eg(x,p),$=S.createHref(x);try{u.pushState(w,"",$)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;s.location.assign($)}d&&h&&h({action:m,location:S.location,delta:1})}function z(O,E){m="REPLACE";let x=fb(S.location,O,E);r&&r(x,O),p=g();let w=eg(x,p),$=S.createHref(x);u.replaceState(w,"",$),d&&h&&h({action:m,location:S.location,delta:0})}function N(O){return t4(O)}let S={get action(){return m},get location(){return e(s,u)},listen(O){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Qv,v),h=O,()=>{s.removeEventListener(Qv,v),h=null}},createHref(O){return n(s,O)},createURL:N,encodeLocation(O){let E=N(O);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:_,replace:z,go(O){return u.go(O)}};return S}function t4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),zo(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ui(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Tx(e,n,r="/"){return r4(e,n,r,!1)}function r4(e,n,r,i){let s=typeof n=="string"?za(n):n,d=sr(s.pathname||"/",r);if(d==null)return null;let u=Ax(e);a4(u);let m=null;for(let h=0;m==null&&h<u.length;++h){let p=Ex(d);m=m4(u[h],p,i)}return m}function Ax(e,n=[],r=[],i="",s=!1){let d=(u,m,h=s,p)=>{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:m,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&h)return;zo(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let v=lr([i,g.relativePath]),_=r.concat(g);u.children&&u.children.length>0&&(zo(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ax(u.children,n,_,v,h)),!(u.path==null&&!u.index)&&n.push({path:v,score:f4(v,u.index),routesMeta:_})};return e.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let h of Cx(u.path))d(u,m,!0,h)}),n}function Cx(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,s=r.endsWith("?"),d=r.replace(/\?$/,"");if(i.length===0)return s?[d,""]:[d];let u=Cx(i.join("/")),m=[];return m.push(...u.map(h=>h===""?d:[d,h].join("/"))),s&&m.push(...u),m.map(h=>e.startsWith("/")&&h===""?"/":h)}function a4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:b4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var l4=/^:[\w-]+$/,i4=3,c4=2,s4=1,d4=10,u4=-2,og=e=>e==="*";function f4(e,n){let r=e.split("/"),i=r.length;return r.some(og)&&(i+=u4),n&&(i+=c4),r.filter(s=>!og(s)).reduce((s,d)=>s+(l4.test(d)?i4:d===""?s4:d4),i)}function b4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function m4(e,n,r=!1){let{routesMeta:i}=e,s={},d="/",u=[];for(let m=0;m<i.length;++m){let h=i[m],p=m===i.length-1,g=d==="/"?n:n.slice(d.length)||"/",v=Hi({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),_=h.route;if(!v&&p&&r&&!i[i.length-1].route.index&&(v=Hi({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(s,v.params),u.push({params:s,pathname:lr([d,v.pathname]),pathnameBase:g4(lr([d,v.pathnameBase])),route:_}),v.pathnameBase!=="/"&&(d=lr([d,v.pathnameBase]))}return u}function Hi(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=h4(e.path,e.caseSensitive,e.end),s=n.match(r);if(!s)return null;let d=s[0],u=d.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:v},_)=>{if(g==="*"){let N=m[_]||"";u=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const z=m[_];return v&&!z?p[g]=void 0:p[g]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:u,pattern:e}}function h4(e,n=!1,r=!0){nt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,h)=>(i.push({paramName:m,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function Ex(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return nt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function sr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}var p4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function k4(e,n="/"){let{pathname:r,search:i="",hash:s=""}=typeof e=="string"?za(e):e,d;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?d=ng(r.substring(1),"/"):d=ng(r,n)):d=n,{pathname:d,search:_4(i),hash:x4(s)}}function ng(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Nf(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function v4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function nm(e){let n=v4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function tm(e,n,r,i=!1){let s;typeof e=="string"?s=za(e):(s={...e},zo(!s.pathname||!s.pathname.includes("?"),Nf("?","pathname","search",s)),zo(!s.pathname||!s.pathname.includes("#"),Nf("#","pathname","hash",s)),zo(!s.search||!s.search.includes("#"),Nf("#","search","hash",s)));let d=e===""||s.pathname==="",u=d?"/":s.pathname,m;if(u==null)m=r;else{let v=n.length-1;if(!i&&u.startsWith("..")){let _=u.split("/");for(;_[0]==="..";)_.shift(),v-=1;s.pathname=_.join("/")}m=v>=0?n[v]:"/"}let h=k4(s,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var lr=e=>e.join("/").replace(/\/\/+/g,"/"),g4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,x4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,y4=class{constructor(e,n,r,i=!1){this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function w4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z4(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Lx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ox(e,n){let r=e;if(typeof r!="string"||!p4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,s=!1;if(Lx)try{let d=new URL(window.location.href),u=r.startsWith("//")?new URL(d.protocol+r):new URL(r),m=sr(u.pathname,n);u.origin===d.origin&&m!=null?r=m+u.search+u.hash:s=!0}catch{nt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $x=["POST","PUT","PATCH","DELETE"];new Set($x);var j4=["GET",...$x];new Set(j4);var Al=j.createContext(null);Al.displayName="DataRouter";var ed=j.createContext(null);ed.displayName="DataRouterState";var S4=j.createContext(!1),Nx=j.createContext({isTransitioning:!1});Nx.displayName="ViewTransition";var T4=j.createContext(new Map);T4.displayName="Fetchers";var A4=j.createContext(null);A4.displayName="Await";var tt=j.createContext(null);tt.displayName="Navigation";var Ji=j.createContext(null);Ji.displayName="Location";var jt=j.createContext({outlet:null,matches:[],isDataRoute:!1});jt.displayName="Route";var rm=j.createContext(null);rm.displayName="RouteError";var Bx="REACT_ROUTER_ERROR",C4="REDIRECT",E4="ROUTE_ERROR_RESPONSE";function L4(e){if(e.startsWith(`${Bx}:${C4}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function O4(e){if(e.startsWith(`${Bx}:${E4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new y4(n.status,n.statusText,n.data)}catch{}}function Rx(e,{relative:n}={}){zo(ja(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=j.useContext(tt),{hash:s,pathname:d,search:u}=Cl(e,{relative:n}),m=d;return r!=="/"&&(m=d==="/"?r:lr([r,d])),i.createHref({pathname:m,search:u,hash:s})}function ja(){return j.useContext(Ji)!=null}function rt(){return zo(ja(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Ji).location}function $4(e){zo(ja(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=rt();return j.useMemo(()=>Hi(e,Ex(n)),[n,e])}var Dx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mx(e){j.useContext(tt).static||j.useLayoutEffect(e)}function od(){let{isDataRoute:e}=j.useContext(jt);return e?P4():N4()}function N4(){zo(ja(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(Al),{basename:n,navigator:r}=j.useContext(tt),{matches:i}=j.useContext(jt),{pathname:s}=rt(),d=JSON.stringify(nm(i)),u=j.useRef(!1);return Mx(()=>{u.current=!0}),j.useCallback((h,p={})=>{if(nt(u.current,Dx),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=tm(h,JSON.parse(d),s,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:lr([n,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[n,r,d,s,e])}j.createContext(null);function B4(){let{matches:e}=j.useContext(jt),n=e[e.length-1];return n?n.params:{}}function Cl(e,{relative:n}={}){let{matches:r}=j.useContext(jt),{pathname:i}=rt(),s=JSON.stringify(nm(r));return j.useMemo(()=>tm(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function R4(e,n){return Ix(e,n)}function Ix(e,n,r,i,s){zo(ja(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=j.useContext(tt),{matches:u}=j.useContext(jt),m=u[u.length-1],h=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let x=v&&v.path||"";Hx(p,!v||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
11
|
|
|
12
|
-
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let _=rt(),z;if(n){let x=typeof n=="string"?za(n):n;zo(g==="/"||x.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${x.pathname}" was given in the \`location\` prop.`),z=x}else z=_;let N=z.pathname||"/",j=N;if(g!=="/"){let x=g.replace(/^\//,"").split("/");j="/"+N.replace(/^\//,"").split("/").slice(x.length).join("/")}let O=jx(e,{pathname:j});Hn(v||O!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),Hn(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=H4(O&&O.map(x=>Object.assign({},x,{params:Object.assign({},h,x.params),pathname:lr([g,d.encodeLocation?d.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?g:lr([g,d.encodeLocation?d.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),u,r,i,s);return n&&E?S.createElement(Yi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},E):E}function D4(){let e=Z4(),n=w4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),r?S.createElement("pre",{style:s},r):null,u)}var M4=S.createElement(D4,null),Ux=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=O4(e.digest);r&&(e=r)}let n=e!==void 0?S.createElement(St.Provider,{value:this.props.routeContext},S.createElement(tm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(I4,{error:e},n):n}};Ux.contextType=j4;var Nf=new WeakMap;function I4({children:e,error:n}){let{basename:r}=S.useContext(tt);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=L4(n.digest);if(i){let s=Nf.get(n);if(s)throw s;let d=Ox(i.location,r);if(Lx&&!Nf.get(n))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw Nf.set(n,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return e}function U4({routeContext:e,match:n,children:r}){let i=S.useContext(Tl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(St.Provider,{value:e},r)}function H4(e,n=[],r=null,i=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let d=e,u=r?.errors;if(u!=null){let g=d.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);zo(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),d=d.slice(0,Math.min(d.length,g+1))}let m=!1,h=-1;if(r)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:_,errors:z}=r,N=v.route.loader&&!_.hasOwnProperty(v.route.id)&&(!z||z[v.route.id]===void 0);if(v.route.lazy||N){m=!0,h>=0?d=d.slice(0,h+1):d=[d[0]];break}}}let p=r&&i?(g,v)=>{i(g,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:z4(r.matches),errorInfo:v})}:void 0;return d.reduceRight((g,v,_)=>{let z,N=!1,j=null,O=null;r&&(z=u&&v.route.id?u[v.route.id]:void 0,j=v.route.errorElement||M4,m&&(h<0&&_===0?(Hx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,O=null):h===_&&(N=!0,O=v.route.hydrateFallbackElement||null)));let E=n.concat(d.slice(0,_+1)),x=()=>{let w;return z?w=j:N?w=O:v.route.Component?w=S.createElement(v.route.Component,null):v.route.element?w=v.route.element:w=g,S.createElement(U4,{match:v,routeContext:{outlet:g,matches:E,isDataRoute:r!=null},children:w})};return r&&(v.route.ErrorBoundary||v.route.errorElement||_===0)?S.createElement(Ux,{location:r.location,revalidation:r.revalidation,component:j,error:z,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:p}):x()},null)}function rm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F4(e){let n=S.useContext(Tl);return zo(n,rm(e)),n}function K4(e){let n=S.useContext(Qs);return zo(n,rm(e)),n}function V4(e){let n=S.useContext(St);return zo(n,rm(e)),n}function am(e){let n=V4(e),r=n.matches[n.matches.length-1];return zo(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function q4(){return am("useRouteId")}function Z4(){let e=S.useContext(tm),n=K4("useRouteError"),r=am("useRouteError");return e!==void 0?e:n.errors?.[r]}function P4(){let{router:e}=F4("useNavigate"),n=am("useNavigate"),r=S.useRef(!1);return Mx(()=>{r.current=!0}),S.useCallback(async(s,d={})=>{Hn(r.current,Dx),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...d}))},[e,n])}var ng={};function Hx(e,n,r){!n&&!ng[e]&&(ng[e]=!0,Hn(!1,r))}S.memo(G4);function G4({routes:e,future:n,state:r,onError:i}){return Ix(e,void 0,r,i,n)}function Fx({to:e,replace:n,state:r,relative:i}){zo(Sa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=S.useContext(tt);Hn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=S.useContext(St),{pathname:u}=rt(),m=ed(),h=nm(e,om(d),u,i==="path"),p=JSON.stringify(h);return S.useEffect(()=>{m(JSON.parse(p),{replace:n,state:r,relative:i})},[m,p,i,n,r]),null}function ka(e){zo(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Y4({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:s,static:d=!1,unstable_useTransitions:u}){zo(!Sa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:m,navigator:s,static:d,unstable_useTransitions:u,future:{}}),[m,s,d,u]);typeof r=="string"&&(r=za(r));let{pathname:p="/",search:g="",hash:v="",state:_=null,key:z="default"}=r,N=S.useMemo(()=>{let j=sr(p,m);return j==null?null:{location:{pathname:j,search:g,hash:v,state:_,key:z},navigationType:i}},[m,p,g,v,_,z,i]);return Hn(N!=null,`<Router basename="${m}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:S.createElement(tt.Provider,{value:h},S.createElement(Yi.Provider,{children:n,value:N}))}function Kx({children:e,location:n}){return R4(fb(e),n)}function fb(e,n=[]){let r=[];return S.Children.forEach(e,(i,s)=>{if(!S.isValidElement(i))return;let d=[...n,s];if(i.type===S.Fragment){r.push.apply(r,fb(i.props.children,d));return}zo(i.type===ka,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),zo(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||d.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=fb(i.props.children,d)),r.push(u)}),r}var js="get",Ts="application/x-www-form-urlencoded";function od(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function J4(e){return od(e)&&e.tagName.toLowerCase()==="button"}function X4(e){return od(e)&&e.tagName.toLowerCase()==="form"}function W4(e){return od(e)&&e.tagName.toLowerCase()==="input"}function Q4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e6(e,n){return e.button===0&&(!n||n==="_self")&&!Q4(e)}function bb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(s=>[r,s]):[[r,i]])},[]))}function o6(e,n){let r=bb(e);return n&&n.forEach((i,s)=>{r.has(s)||n.getAll(s).forEach(d=>{r.append(s,d)})}),r}var ps=null;function n6(){if(ps===null)try{new FormData(document.createElement("form"),0),ps=!1}catch{ps=!0}return ps}var t6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bf(e){return e!=null&&!t6.has(e)?(Hn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ts}"`),null):e}function r6(e,n){let r,i,s,d,u;if(X4(e)){let m=e.getAttribute("action");i=m?sr(m,n):null,r=e.getAttribute("method")||js,s=Bf(e.getAttribute("enctype"))||Ts,d=new FormData(e)}else if(J4(e)||W4(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||m.getAttribute("action");if(i=h?sr(h,n):null,r=e.getAttribute("formmethod")||m.getAttribute("method")||js,s=Bf(e.getAttribute("formenctype"))||Bf(m.getAttribute("enctype"))||Ts,d=new FormData(m,e),!n6()){let{name:p,type:g,value:v}=e;if(g==="image"){let _=p?`${p}.`:"";d.append(`${_}x`,"0"),d.append(`${_}y`,"0")}else p&&d.append(p,v)}}else{if(od(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=js,i=null,s=Ts,u=e}return d&&s==="text/plain"&&(u=d,d=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:d,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function lm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function a6(e,n,r,i){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:n&&sr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function l6(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function i6(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function c6(e,n,r){let i=await Promise.all(e.map(async s=>{let d=n.routes[s.route.id];if(d){let u=await l6(d,r);return u.links?u.links():[]}return[]}));return f6(i.flat(1).filter(i6).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function tg(e,n,r,i,s,d){let u=(h,p)=>r[p]?h.route.id!==r[p].route.id:!0,m=(h,p)=>r[p].pathname!==h.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==h.params["*"];return d==="assets"?n.filter((h,p)=>u(h,p)||m(h,p)):d==="data"?n.filter((h,p)=>{let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(u(h,p)||m(h,p))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function s6(e,n,{includeHydrateFallback:r}={}){return d6(e.map(i=>{let s=n.routes[i.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function d6(e){return[...new Set(e)]}function u6(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function f6(e,n){let r=new Set;return new Set(n),e.reduce((i,s)=>{let d=JSON.stringify(u6(s));return r.has(d)||(r.add(d),i.push({key:d,link:s})),i},[])}function Vx(){let e=S.useContext(Tl);return lm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b6(){let e=S.useContext(Qs);return lm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var im=S.createContext(void 0);im.displayName="FrameworkContext";function qx(){let e=S.useContext(im);return lm(e,"You must render this element inside a <HydratedRouter> element"),e}function m6(e,n){let r=S.useContext(im),[i,s]=S.useState(!1),[d,u]=S.useState(!1),{onFocus:m,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,_=S.useRef(null);S.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let j=E=>{E.forEach(x=>{u(x.isIntersecting)})},O=new IntersectionObserver(j,{threshold:.5});return _.current&&O.observe(_.current),()=>{O.disconnect()}}},[e]),S.useEffect(()=>{if(i){let j=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(j)}}},[i]);let z=()=>{s(!0)},N=()=>{s(!1),u(!1)};return r?e!=="intent"?[d,_,{}]:[d,_,{onFocus:zi(m,z),onBlur:zi(h,N),onMouseEnter:zi(p,z),onMouseLeave:zi(g,N),onTouchStart:zi(v,z)}]:[!1,_,{}]}function zi(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function h6({page:e,...n}){let{router:r}=Vx(),i=S.useMemo(()=>jx(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?S.createElement(k6,{page:e,matches:i,...n}):null}function p6(e){let{manifest:n,routeModules:r}=qx(),[i,s]=S.useState([]);return S.useEffect(()=>{let d=!1;return c6(e,n,r).then(u=>{d||s(u)}),()=>{d=!0}},[e,n,r]),i}function k6({page:e,matches:n,...r}){let i=rt(),{future:s,manifest:d,routeModules:u}=qx(),{basename:m}=Vx(),{loaderData:h,matches:p}=b6(),g=S.useMemo(()=>tg(e,n,p,d,i,"data"),[e,n,p,d,i]),v=S.useMemo(()=>tg(e,n,p,d,i,"assets"),[e,n,p,d,i]),_=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let j=new Set,O=!1;if(n.forEach(x=>{let w=d.routes[x.route.id];!w||!w.hasLoader||(!g.some($=>$.route.id===x.route.id)&&x.route.id in h&&u[x.route.id]?.shouldRevalidate||w.hasClientLoader?O=!0:j.add(x.route.id))}),j.size===0)return[];let E=a6(e,m,s.unstable_trailingSlashAwareDataRequests,"data");return O&&j.size>0&&E.searchParams.set("_routes",n.filter(x=>j.has(x.route.id)).map(x=>x.route.id).join(",")),[E.pathname+E.search]},[m,s.unstable_trailingSlashAwareDataRequests,h,i,d,g,n,e,u]),z=S.useMemo(()=>s6(v,d),[v,d]),N=p6(v);return S.createElement(S.Fragment,null,_.map(j=>S.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),z.map(j=>S.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),N.map(({key:j,link:O})=>S.createElement("link",{key:j,nonce:r.nonce,...O})))}function v6(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g6&&(window.__reactRouterVersion="7.12.0")}catch{}function _6({basename:e,children:n,unstable_useTransitions:r,window:i}){let s=S.useRef();s.current==null&&(s.current=e4({window:i,v5Compat:!0}));let d=s.current,[u,m]=S.useState({action:d.action,location:d.location}),h=S.useCallback(p=>{r===!1?m(p):S.startTransition(()=>m(p))},[r]);return S.useLayoutEffect(()=>d.listen(h),[d,h]),S.createElement(Y4,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:r})}var Zx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Px=S.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:s,reloadDocument:d,replace:u,state:m,target:h,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},N){let{basename:j,unstable_useTransitions:O}=S.useContext(tt),E=typeof p=="string"&&Zx.test(p),x=Ox(p,j);p=x.to;let w=Rx(p,{relative:s}),[$,D,H]=m6(i,z),Z=z6(p,{replace:u,state:m,target:h,preventScrollReset:g,relative:s,viewTransition:v,unstable_defaultShouldRevalidate:_,unstable_useTransitions:O});function ee($e){n&&n($e),$e.defaultPrevented||Z($e)}let se=S.createElement("a",{...z,...H,href:x.absoluteURL||w,onClick:x.isExternal||d?n:ee,ref:v6(N,D),target:h,"data-discover":!E&&r==="render"?"true":void 0});return $&&!E?S.createElement(S.Fragment,null,se,S.createElement(h6,{page:w})):se});Px.displayName="Link";var x6=S.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:s=!1,style:d,to:u,viewTransition:m,children:h,...p},g){let v=Al(u,{relative:p.relative}),_=rt(),z=S.useContext(Qs),{navigator:N,basename:j}=S.useContext(tt),O=z!=null&&C6(v)&&m===!0,E=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,x=_.pathname,w=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(x=x.toLowerCase(),w=w?w.toLowerCase():null,E=E.toLowerCase()),w&&j&&(w=sr(w,j)||w);const $=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let D=x===E||!s&&x.startsWith(E)&&x.charAt($)==="/",H=w!=null&&(w===E||!s&&w.startsWith(E)&&w.charAt(E.length)==="/"),Z={isActive:D,isPending:H,isTransitioning:O},ee=D?n:void 0,se;typeof i=="function"?se=i(Z):se=[i,D?"active":null,H?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let $e=typeof d=="function"?d(Z):d;return S.createElement(Px,{...p,"aria-current":ee,className:se,ref:g,style:$e,to:u,viewTransition:m},typeof h=="function"?h(Z):h)});x6.displayName="NavLink";var y6=S.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:d,method:u=js,action:m,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},N)=>{let{unstable_useTransitions:j}=S.useContext(tt),O=T6(),E=A6(m,{relative:p}),x=u.toLowerCase()==="get"?"get":"post",w=typeof m=="string"&&Zx.test(m),$=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let H=D.nativeEvent.submitter,Z=H?.getAttribute("formmethod")||u,ee=()=>O(H||D.currentTarget,{fetcherKey:n,method:Z,navigate:r,replace:s,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_});j&&r!==!1?S.startTransition(()=>ee()):ee()};return S.createElement("form",{ref:N,method:x,action:E,onSubmit:i?h:$,...z,"data-discover":!w&&e==="render"?"true":void 0})});y6.displayName="Form";function w6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gx(e){let n=S.useContext(Tl);return zo(n,w6(e)),n}function z6(e,{target:n,replace:r,state:i,preventScrollReset:s,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let p=ed(),g=rt(),v=Al(e,{relative:d});return S.useCallback(_=>{if(e6(_,n)){_.preventDefault();let z=r!==void 0?r:Ii(g)===Ii(v),N=()=>p(e,{replace:z,state:i,preventScrollReset:s,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m});h?S.startTransition(()=>N()):N()}},[g,p,v,r,i,n,e,s,d,u,m,h])}function Kr(e){Hn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=S.useRef(bb(e)),r=S.useRef(!1),i=rt(),s=S.useMemo(()=>o6(i.search,r.current?null:n.current),[i.search]),d=ed(),u=S.useCallback((m,h)=>{const p=bb(typeof m=="function"?m(new URLSearchParams(s)):m);r.current=!0,d("?"+p,h)},[d,s]);return[s,u]}var S6=0,j6=()=>`__${String(++S6)}__`;function T6(){let{router:e}=Gx("useSubmit"),{basename:n}=S.useContext(tt),r=q4(),i=e.fetch,s=e.navigate;return S.useCallback(async(d,u={})=>{let{action:m,method:h,encType:p,formData:g,body:v}=r6(d,n);if(u.navigate===!1){let _=u.fetcherKey||j6();await i(_,r,u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,flushSync:u.flushSync})}else await s(u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,s,n,r])}function A6(e,{relative:n}={}){let{basename:r}=S.useContext(tt),i=S.useContext(St);zo(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),d={...Al(e||".",{relative:n})},u=rt();if(e==null){d.search=u.search;let m=new URLSearchParams(d.search),h=m.getAll("index");if(h.some(g=>g==="")){m.delete("index"),h.filter(v=>v).forEach(v=>m.append("index",v));let g=m.toString();d.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:lr([r,d.pathname])),Ii(d)}function C6(e,{relative:n}={}){let r=S.useContext(Nx);zo(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Gx("useViewTransitionState"),s=Al(e,{relative:n});if(!r.isTransitioning)return!1;let d=sr(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=sr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Ui(s.pathname,u)!=null||Ui(s.pathname,d)!=null}var mb={};function nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var As={exports:{}},E6=As.exports,rg;function L6(){return rg||(rg=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(E6,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],d={},u=null;function m(j,O){var E=j[O];if(typeof E.bind=="function")return E.bind(j);try{return Function.prototype.bind.call(E,j)}catch{return function(){return Function.prototype.apply.apply(E,[j,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(j){return j==="debug"&&(j="log"),typeof console===r?!1:j==="trace"&&i?h:console[j]!==void 0?m(console,j):console.log!==void 0?m(console,"log"):n}function g(){for(var j=this.getLevel(),O=0;O<s.length;O++){var E=s[O];this[E]=O<j?n:this.methodFactory(E,j,this.name)}if(this.log=this.debug,typeof console===r&&j<this.levels.SILENT)return"No console available for logging"}function v(j){return function(){typeof console!==r&&(g.call(this),this[j].apply(this,arguments))}}function _(j,O,E){return p(j)||v.apply(this,arguments)}function z(j,O){var E=this,x,w,$,D="loglevel";typeof j=="string"?D+=":"+j:typeof j=="symbol"&&(D=void 0);function H(ce){var ne=(s[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=j,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||_,E.getLevel=function(){return $??w??x},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&H($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(x=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},x=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})(As)),As.exports}var O6=L6(),Bs=nd(O6);const $6=()=>{const e=typeof process<"u"&&mb?mb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,s="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||s||d||u||m||h},ao={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:$6(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of ao.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,s]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:s}]))),e}}};let hb=!0,Rs=!1;const N6=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,B6=e=>typeof e=="string"&&N6.test(e),Yx=e=>{if(!B6(e))throw new Error(`[Theming] The theme identifier "${typeof e=="string"?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},ag=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),R6=(e,n,r,i)=>Jx(e,n,r,i),Jx=(e,n,r,i)=>{i=i??{},i.append=i.append??!1,Yx(e),hb&&!Rs&&(Rs=!0,Bs.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.
|
|
12
|
+
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let _=rt(),z;if(n){let x=typeof n=="string"?za(n):n;zo(g==="/"||x.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${x.pathname}" was given in the \`location\` prop.`),z=x}else z=_;let N=z.pathname||"/",S=N;if(g!=="/"){let x=g.replace(/^\//,"").split("/");S="/"+N.replace(/^\//,"").split("/").slice(x.length).join("/")}let O=Tx(e,{pathname:S});nt(v||O!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),nt(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=H4(O&&O.map(x=>Object.assign({},x,{params:Object.assign({},h,x.params),pathname:lr([g,d.encodeLocation?d.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?g:lr([g,d.encodeLocation?d.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),u,r,i,s);return n&&E?j.createElement(Ji.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},E):E}function D4(){let e=Z4(),n=w4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:d},"ErrorBoundary")," or"," ",j.createElement("code",{style:d},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},n),r?j.createElement("pre",{style:s},r):null,u)}var M4=j.createElement(D4,null),Ux=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=O4(e.digest);r&&(e=r)}let n=e!==void 0?j.createElement(jt.Provider,{value:this.props.routeContext},j.createElement(rm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(I4,{error:e},n):n}};Ux.contextType=S4;var Bf=new WeakMap;function I4({children:e,error:n}){let{basename:r}=j.useContext(tt);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=L4(n.digest);if(i){let s=Bf.get(n);if(s)throw s;let d=Ox(i.location,r);if(Lx&&!Bf.get(n))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw Bf.set(n,u),u}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return e}function U4({routeContext:e,match:n,children:r}){let i=j.useContext(Al);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(jt.Provider,{value:e},r)}function H4(e,n=[],r=null,i=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let d=e,u=r?.errors;if(u!=null){let g=d.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);zo(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),d=d.slice(0,Math.min(d.length,g+1))}let m=!1,h=-1;if(r)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:_,errors:z}=r,N=v.route.loader&&!_.hasOwnProperty(v.route.id)&&(!z||z[v.route.id]===void 0);if(v.route.lazy||N){m=!0,h>=0?d=d.slice(0,h+1):d=[d[0]];break}}}let p=r&&i?(g,v)=>{i(g,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:z4(r.matches),errorInfo:v})}:void 0;return d.reduceRight((g,v,_)=>{let z,N=!1,S=null,O=null;r&&(z=u&&v.route.id?u[v.route.id]:void 0,S=v.route.errorElement||M4,m&&(h<0&&_===0?(Hx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,O=null):h===_&&(N=!0,O=v.route.hydrateFallbackElement||null)));let E=n.concat(d.slice(0,_+1)),x=()=>{let w;return z?w=S:N?w=O:v.route.Component?w=j.createElement(v.route.Component,null):v.route.element?w=v.route.element:w=g,j.createElement(U4,{match:v,routeContext:{outlet:g,matches:E,isDataRoute:r!=null},children:w})};return r&&(v.route.ErrorBoundary||v.route.errorElement||_===0)?j.createElement(Ux,{location:r.location,revalidation:r.revalidation,component:S,error:z,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:p}):x()},null)}function am(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F4(e){let n=j.useContext(Al);return zo(n,am(e)),n}function K4(e){let n=j.useContext(ed);return zo(n,am(e)),n}function V4(e){let n=j.useContext(jt);return zo(n,am(e)),n}function lm(e){let n=V4(e),r=n.matches[n.matches.length-1];return zo(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function q4(){return lm("useRouteId")}function Z4(){let e=j.useContext(rm),n=K4("useRouteError"),r=lm("useRouteError");return e!==void 0?e:n.errors?.[r]}function P4(){let{router:e}=F4("useNavigate"),n=lm("useNavigate"),r=j.useRef(!1);return Mx(()=>{r.current=!0}),j.useCallback(async(s,d={})=>{nt(r.current,Dx),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...d}))},[e,n])}var tg={};function Hx(e,n,r){!n&&!tg[e]&&(tg[e]=!0,nt(!1,r))}j.memo(G4);function G4({routes:e,future:n,state:r,onError:i}){return Ix(e,void 0,r,i,n)}function Fx({to:e,replace:n,state:r,relative:i}){zo(ja(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=j.useContext(tt);nt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=j.useContext(jt),{pathname:u}=rt(),m=od(),h=tm(e,nm(d),u,i==="path"),p=JSON.stringify(h);return j.useEffect(()=>{m(JSON.parse(p),{replace:n,state:r,relative:i})},[m,p,i,n,r]),null}function ka(e){zo(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Y4({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:s,static:d=!1,unstable_useTransitions:u}){zo(!ja(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),h=j.useMemo(()=>({basename:m,navigator:s,static:d,unstable_useTransitions:u,future:{}}),[m,s,d,u]);typeof r=="string"&&(r=za(r));let{pathname:p="/",search:g="",hash:v="",state:_=null,key:z="default"}=r,N=j.useMemo(()=>{let S=sr(p,m);return S==null?null:{location:{pathname:S,search:g,hash:v,state:_,key:z},navigationType:i}},[m,p,g,v,_,z,i]);return nt(N!=null,`<Router basename="${m}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:j.createElement(tt.Provider,{value:h},j.createElement(Ji.Provider,{children:n,value:N}))}function Kx({children:e,location:n}){return R4(bb(e),n)}function bb(e,n=[]){let r=[];return j.Children.forEach(e,(i,s)=>{if(!j.isValidElement(i))return;let d=[...n,s];if(i.type===j.Fragment){r.push.apply(r,bb(i.props.children,d));return}zo(i.type===ka,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),zo(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||d.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=bb(i.props.children,d)),r.push(u)}),r}var Ts="get",As="application/x-www-form-urlencoded";function nd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function J4(e){return nd(e)&&e.tagName.toLowerCase()==="button"}function X4(e){return nd(e)&&e.tagName.toLowerCase()==="form"}function W4(e){return nd(e)&&e.tagName.toLowerCase()==="input"}function Q4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e6(e,n){return e.button===0&&(!n||n==="_self")&&!Q4(e)}function mb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(s=>[r,s]):[[r,i]])},[]))}function o6(e,n){let r=mb(e);return n&&n.forEach((i,s)=>{r.has(s)||n.getAll(s).forEach(d=>{r.append(s,d)})}),r}var ks=null;function n6(){if(ks===null)try{new FormData(document.createElement("form"),0),ks=!1}catch{ks=!0}return ks}var t6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Rf(e){return e!=null&&!t6.has(e)?(nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${As}"`),null):e}function r6(e,n){let r,i,s,d,u;if(X4(e)){let m=e.getAttribute("action");i=m?sr(m,n):null,r=e.getAttribute("method")||Ts,s=Rf(e.getAttribute("enctype"))||As,d=new FormData(e)}else if(J4(e)||W4(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||m.getAttribute("action");if(i=h?sr(h,n):null,r=e.getAttribute("formmethod")||m.getAttribute("method")||Ts,s=Rf(e.getAttribute("formenctype"))||Rf(m.getAttribute("enctype"))||As,d=new FormData(m,e),!n6()){let{name:p,type:g,value:v}=e;if(g==="image"){let _=p?`${p}.`:"";d.append(`${_}x`,"0"),d.append(`${_}y`,"0")}else p&&d.append(p,v)}}else{if(nd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ts,i=null,s=As,u=e}return d&&s==="text/plain"&&(u=d,d=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:d,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function im(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function a6(e,n,r,i){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:n&&sr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function l6(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function i6(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function c6(e,n,r){let i=await Promise.all(e.map(async s=>{let d=n.routes[s.route.id];if(d){let u=await l6(d,r);return u.links?u.links():[]}return[]}));return f6(i.flat(1).filter(i6).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function rg(e,n,r,i,s,d){let u=(h,p)=>r[p]?h.route.id!==r[p].route.id:!0,m=(h,p)=>r[p].pathname!==h.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==h.params["*"];return d==="assets"?n.filter((h,p)=>u(h,p)||m(h,p)):d==="data"?n.filter((h,p)=>{let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(u(h,p)||m(h,p))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function s6(e,n,{includeHydrateFallback:r}={}){return d6(e.map(i=>{let s=n.routes[i.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function d6(e){return[...new Set(e)]}function u6(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function f6(e,n){let r=new Set;return new Set(n),e.reduce((i,s)=>{let d=JSON.stringify(u6(s));return r.has(d)||(r.add(d),i.push({key:d,link:s})),i},[])}function Vx(){let e=j.useContext(Al);return im(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b6(){let e=j.useContext(ed);return im(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var cm=j.createContext(void 0);cm.displayName="FrameworkContext";function qx(){let e=j.useContext(cm);return im(e,"You must render this element inside a <HydratedRouter> element"),e}function m6(e,n){let r=j.useContext(cm),[i,s]=j.useState(!1),[d,u]=j.useState(!1),{onFocus:m,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,_=j.useRef(null);j.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=E=>{E.forEach(x=>{u(x.isIntersecting)})},O=new IntersectionObserver(S,{threshold:.5});return _.current&&O.observe(_.current),()=>{O.disconnect()}}},[e]),j.useEffect(()=>{if(i){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[i]);let z=()=>{s(!0)},N=()=>{s(!1),u(!1)};return r?e!=="intent"?[d,_,{}]:[d,_,{onFocus:ji(m,z),onBlur:ji(h,N),onMouseEnter:ji(p,z),onMouseLeave:ji(g,N),onTouchStart:ji(v,z)}]:[!1,_,{}]}function ji(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function h6({page:e,...n}){let{router:r}=Vx(),i=j.useMemo(()=>Tx(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?j.createElement(k6,{page:e,matches:i,...n}):null}function p6(e){let{manifest:n,routeModules:r}=qx(),[i,s]=j.useState([]);return j.useEffect(()=>{let d=!1;return c6(e,n,r).then(u=>{d||s(u)}),()=>{d=!0}},[e,n,r]),i}function k6({page:e,matches:n,...r}){let i=rt(),{future:s,manifest:d,routeModules:u}=qx(),{basename:m}=Vx(),{loaderData:h,matches:p}=b6(),g=j.useMemo(()=>rg(e,n,p,d,i,"data"),[e,n,p,d,i]),v=j.useMemo(()=>rg(e,n,p,d,i,"assets"),[e,n,p,d,i]),_=j.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let S=new Set,O=!1;if(n.forEach(x=>{let w=d.routes[x.route.id];!w||!w.hasLoader||(!g.some($=>$.route.id===x.route.id)&&x.route.id in h&&u[x.route.id]?.shouldRevalidate||w.hasClientLoader?O=!0:S.add(x.route.id))}),S.size===0)return[];let E=a6(e,m,s.unstable_trailingSlashAwareDataRequests,"data");return O&&S.size>0&&E.searchParams.set("_routes",n.filter(x=>S.has(x.route.id)).map(x=>x.route.id).join(",")),[E.pathname+E.search]},[m,s.unstable_trailingSlashAwareDataRequests,h,i,d,g,n,e,u]),z=j.useMemo(()=>s6(v,d),[v,d]),N=p6(v);return j.createElement(j.Fragment,null,_.map(S=>j.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),z.map(S=>j.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),N.map(({key:S,link:O})=>j.createElement("link",{key:S,nonce:r.nonce,...O,crossOrigin:O.crossOrigin??r.crossOrigin})))}function v6(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g6&&(window.__reactRouterVersion="7.13.0")}catch{}function _6({basename:e,children:n,unstable_useTransitions:r,window:i}){let s=j.useRef();s.current==null&&(s.current=e4({window:i,v5Compat:!0}));let d=s.current,[u,m]=j.useState({action:d.action,location:d.location}),h=j.useCallback(p=>{r===!1?m(p):j.startTransition(()=>m(p))},[r]);return j.useLayoutEffect(()=>d.listen(h),[d,h]),j.createElement(Y4,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:r})}var Zx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Px=j.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:s,reloadDocument:d,replace:u,state:m,target:h,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},N){let{basename:S,unstable_useTransitions:O}=j.useContext(tt),E=typeof p=="string"&&Zx.test(p),x=Ox(p,S);p=x.to;let w=Rx(p,{relative:s}),[$,D,H]=m6(i,z),Z=z6(p,{replace:u,state:m,target:h,preventScrollReset:g,relative:s,viewTransition:v,unstable_defaultShouldRevalidate:_,unstable_useTransitions:O});function ee($e){n&&n($e),$e.defaultPrevented||Z($e)}let se=j.createElement("a",{...z,...H,href:x.absoluteURL||w,onClick:x.isExternal||d?n:ee,ref:v6(N,D),target:h,"data-discover":!E&&r==="render"?"true":void 0});return $&&!E?j.createElement(j.Fragment,null,se,j.createElement(h6,{page:w})):se});Px.displayName="Link";var x6=j.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:s=!1,style:d,to:u,viewTransition:m,children:h,...p},g){let v=Cl(u,{relative:p.relative}),_=rt(),z=j.useContext(ed),{navigator:N,basename:S}=j.useContext(tt),O=z!=null&&C6(v)&&m===!0,E=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,x=_.pathname,w=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(x=x.toLowerCase(),w=w?w.toLowerCase():null,E=E.toLowerCase()),w&&S&&(w=sr(w,S)||w);const $=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let D=x===E||!s&&x.startsWith(E)&&x.charAt($)==="/",H=w!=null&&(w===E||!s&&w.startsWith(E)&&w.charAt(E.length)==="/"),Z={isActive:D,isPending:H,isTransitioning:O},ee=D?n:void 0,se;typeof i=="function"?se=i(Z):se=[i,D?"active":null,H?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let $e=typeof d=="function"?d(Z):d;return j.createElement(Px,{...p,"aria-current":ee,className:se,ref:g,style:$e,to:u,viewTransition:m},typeof h=="function"?h(Z):h)});x6.displayName="NavLink";var y6=j.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:d,method:u=Ts,action:m,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},N)=>{let{unstable_useTransitions:S}=j.useContext(tt),O=T6(),E=A6(m,{relative:p}),x=u.toLowerCase()==="get"?"get":"post",w=typeof m=="string"&&Zx.test(m),$=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let H=D.nativeEvent.submitter,Z=H?.getAttribute("formmethod")||u,ee=()=>O(H||D.currentTarget,{fetcherKey:n,method:Z,navigate:r,replace:s,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_});S&&r!==!1?j.startTransition(()=>ee()):ee()};return j.createElement("form",{ref:N,method:x,action:E,onSubmit:i?h:$,...z,"data-discover":!w&&e==="render"?"true":void 0})});y6.displayName="Form";function w6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gx(e){let n=j.useContext(Al);return zo(n,w6(e)),n}function z6(e,{target:n,replace:r,state:i,preventScrollReset:s,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let p=od(),g=rt(),v=Cl(e,{relative:d});return j.useCallback(_=>{if(e6(_,n)){_.preventDefault();let z=r!==void 0?r:Ui(g)===Ui(v),N=()=>p(e,{replace:z,state:i,preventScrollReset:s,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m});h?j.startTransition(()=>N()):N()}},[g,p,v,r,i,n,e,s,d,u,m,h])}function Kr(e){nt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=j.useRef(mb(e)),r=j.useRef(!1),i=rt(),s=j.useMemo(()=>o6(i.search,r.current?null:n.current),[i.search]),d=od(),u=j.useCallback((m,h)=>{const p=mb(typeof m=="function"?m(new URLSearchParams(s)):m);r.current=!0,d("?"+p,h)},[d,s]);return[s,u]}var j6=0,S6=()=>`__${String(++j6)}__`;function T6(){let{router:e}=Gx("useSubmit"),{basename:n}=j.useContext(tt),r=q4(),i=e.fetch,s=e.navigate;return j.useCallback(async(d,u={})=>{let{action:m,method:h,encType:p,formData:g,body:v}=r6(d,n);if(u.navigate===!1){let _=u.fetcherKey||S6();await i(_,r,u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,flushSync:u.flushSync})}else await s(u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,s,n,r])}function A6(e,{relative:n}={}){let{basename:r}=j.useContext(tt),i=j.useContext(jt);zo(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),d={...Cl(e||".",{relative:n})},u=rt();if(e==null){d.search=u.search;let m=new URLSearchParams(d.search),h=m.getAll("index");if(h.some(g=>g==="")){m.delete("index"),h.filter(v=>v).forEach(v=>m.append("index",v));let g=m.toString();d.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:lr([r,d.pathname])),Ui(d)}function C6(e,{relative:n}={}){let r=j.useContext(Nx);zo(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Gx("useViewTransitionState"),s=Cl(e,{relative:n});if(!r.isTransitioning)return!1;let d=sr(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=sr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Hi(s.pathname,u)!=null||Hi(s.pathname,d)!=null}var hb={};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cs={exports:{}},E6=Cs.exports,ag;function L6(){return ag||(ag=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(E6,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],d={},u=null;function m(S,O){var E=S[O];if(typeof E.bind=="function")return E.bind(S);try{return Function.prototype.bind.call(E,S)}catch{return function(){return Function.prototype.apply.apply(E,[S,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(S){return S==="debug"&&(S="log"),typeof console===r?!1:S==="trace"&&i?h:console[S]!==void 0?m(console,S):console.log!==void 0?m(console,"log"):n}function g(){for(var S=this.getLevel(),O=0;O<s.length;O++){var E=s[O];this[E]=O<S?n:this.methodFactory(E,S,this.name)}if(this.log=this.debug,typeof console===r&&S<this.levels.SILENT)return"No console available for logging"}function v(S){return function(){typeof console!==r&&(g.call(this),this[S].apply(this,arguments))}}function _(S,O,E){return p(S)||v.apply(this,arguments)}function z(S,O){var E=this,x,w,$,D="loglevel";typeof S=="string"?D+=":"+S:typeof S=="symbol"&&(D=void 0);function H(ce){var ne=(s[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=S,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||_,E.getLevel=function(){return $??w??x},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&H($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(x=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},x=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})(Cs)),Cs.exports}var O6=L6(),Rs=td(O6);const $6=()=>{const e=typeof process<"u"&&hb?hb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,s="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||s||d||u||m||h},ao={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:$6(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of ao.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,s]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:s}]))),e}}};let pb=!0,Ds=!1;const N6=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,B6=e=>typeof e=="string"&&N6.test(e),Yx=e=>{if(!B6(e))throw new Error(`[Theming] The theme identifier "${typeof e=="string"?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},lg=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),R6=(e,n,r,i)=>Jx(e,n,r,i),Jx=(e,n,r,i)=>{i=i??{},i.append=i.append??!1,Yx(e),pb&&!Ds&&(Ds=!0,Rs.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.
|
|
13
13
|
|
|
14
14
|
import { register } from 'adopted-style-sheets';
|
|
15
15
|
import { defineCustomElements } from '...';
|
|
@@ -19,22 +19,22 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
|
|
|
19
19
|
.then(() => {
|
|
20
20
|
// run your app or website
|
|
21
21
|
})
|
|
22
|
-
.catch(console.warn);`));let s=ao.A11yUi.THEMES.get(e);if(s||(s=new Map,ao.A11yUi.THEMES.set(e,s)),i.append&&s.has(n)){const d=s.get(n);s.set(n,ag(`${d}${r}`))}else s.set(n,ag(r))},D6=(e,n,r,i)=>Xx(e,n,r,i),Xx=(e,n,r,i)=>(Yx(e),typeof n=="object"&&n!==null&&Object.getOwnPropertyNames(n).forEach(s=>{const d=n[s],u=s.toLowerCase(),m=typeof i?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(s)?i.transformTagName(u):s;typeof d=="string"&&d.length>0&&Jx(e,m.toUpperCase(),d,r)}),e),Wx=e=>{if(e instanceof HTMLElement){if(typeof e.dataset.theme=="string")return e;{let n=e.parentNode;for(;n instanceof ShadowRoot;)n=n.host;return Wx(n)}}else return null},lg=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?!1:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},Qx=()=>typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null&&typeof ao.A11yUi.Theme.cache=="boolean"&&typeof ao.A11yUi.Theme.encroachCss=="object"&&ao.A11yUi.Theme.encroachCss!==null&&typeof ao.A11yUi.Theme.encroachCss.mode=="string"&&typeof ao.A11yUi.Theme.name=="string",M6=()=>!(typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null)||ao.A11yUi.Theme.name!=="default",I6=e=>{if(Qx())return ao.A11yUi.Theme;{const n={cache:!0,encroachCss:lg(),loglevel:"silent",mode:"csr",name:null},r=Wx(e);return r instanceof HTMLElement&&(n.cache=r.dataset.themeCache!=="false",n.encroachCss=lg(r.dataset),n.loglevel=r.dataset.themeLoglevel==="debug"?r.dataset.themeLoglevel:"silent",n.mode=r.dataset.themeMode==="ssr"?r.dataset.themeMode:"csr",n.name=r.dataset.theme||null),n}},U6=(e,n)=>({cache:n.cache!==!1,detect:n.detect==="auto"?"auto":"fixed",encroachCss:n.encroachCss===!1?!1:typeof n.encroachCss=="object"&&n.encroachCss!=null&&(n.encroachCss.mode==="after"||n.encroachCss.mode==="before")?n.encroachCss:{mode:"before"},loglevel:n.loglevel==="debug"?n.loglevel:"silent",mode:n.mode==="ssr"?n.mode:"csr",name:typeof n.name=="string"?n.name:e}),H6=(e,n)=>{Qx()===!1&&M6()&&typeof n=="object"&&n!==null&&(n=U6(e,n),n.detect==="fixed"?(n.name===null&&typeof e=="string"&&(n.name=e),e===n.name&&(ao.A11yUi.Theme=n,Bs.info(`[Theming] Theme "${e}" was set as default theme.`))):Rs||(Rs=!0,Bs.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let ig=!1;const F6=(e,n,r={})=>{ig||(ig=!0,hb=!1,typeof window<"u"&&(window.A11yUi=ao.A11yUi)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(s=>{typeof s=="function"&&s.length===1?H6(s((d,u,m)=>Xx(d,u,m,r)),{cache:r.theme?.cache,detect:r.theme?.detect,encroachCss:r.theme?.encroachCss,mode:r.theme?.mode,name:r.theme?.name}):Bs.error("[Theming] An attempt was made to load an incompatible theme.")}),hb=!0,typeof n=="function"?n=new Set([n]):Array.isArray(n)&&(n=new Set(n));const i=[];return n.forEach(s=>{const d=s();d instanceof Promise&&i.push(d)}),Promise.all(i)},ey=new Set,K6=/--[^;]+/g,V6=/:/,q6=typeof MutationObserver<"u";let oy=25,ny=()=>{oy=Math.min(25+Math.log2(ao.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const Z6=(e,n)=>{let r=n.match(K6);if(Array.isArray(r)){r=r.filter(s=>V6.test(s));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}ey.add(e)},Cs=(e,n)=>{const r=ao.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},P6=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},G6=(e,n)=>{try{if(ao.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const s=new CSSStyleSheet;s.replaceSync(i),r.push(s)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const s=document.createElement("style");switch(s.dataset.themingFallback="",i){case 4:s.dataset.themingBaseA11y="";break;case 3:s.dataset.themingBaseGlobal="";break;case 2:s.dataset.themingBaseComponent="";break;case 1:s.dataset.themingCustomGlobal="";break;case 0:s.dataset.themingCustomComponent="";break;default:s.dataset.themingUnknown="";break}s.innerHTML=r,e.insertBefore(s,e.firstChild)})}},Y6=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch{s=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),s.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),s.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},J6=(e,n,r)=>{const i=n.name||"default";let s;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(ao.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))cg(e,s,ao.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Cs(i,"PROPERTIES"),u=Cs(i,"GLOBAL"),m=Cs(i,e.tagName);ey.has(i)===!1&&Z6(i,u);const h=[d,u,m];Y6(s,h,n.encroachCss),n.cache===!0&&(ao.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&ao.A11yUi.CSS_STYLE_CACHE.set(i,new Map),ao.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),cg(e,s,h,r)}},cg=(e,n,r,i)=>{const s=performance.now();if(P6(n),G6(n,r),ay(e),i(),ao.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=ao.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-s}else ao.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-s})},ty=e=>{const n=ao.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;J6(e,i,r),ay(e)}};let cm=e=>{const n=setTimeout(()=>{clearTimeout(n),e.classList.contains("hydrated")?ty(e):cm(e)},oy)};const X6={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},W6={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},sg=q6?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(ty(i),n.observe(i,W6))}}):null;sg&&(cm=e=>sg.observe(e,X6),ny=()=>{});let ry=e=>{const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();if(n.endsWith("ms"))return parseFloat(n);if(n.endsWith("s"))return parseFloat(n)*1e3;{const r=parseFloat(n);return isNaN(r)?0:r}};ao.A11yUi.IS_TEST_ENVIRONMENT&&(ry=()=>0);const dg=(e,n)=>{e.style.setProperty("visibility",n),e.dataset.themed=""},Q6=(e,n)=>{const r=e.style.visibility||null;ao.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const i=ry(e);i>0?setTimeout(()=>{dg(e,r)},i):dg(e,r)},themeDetails:n}),e.style.setProperty("visibility","hidden","important"),cm(e)},ay=e=>{ao.A11yUi.STYLING_TASK_QUEUE.delete(e),ny()},e5=(e,n)=>{Q6(e,{...ao.A11yUi.Theme,...n})};var ug;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(ug||(ug={}));var fg;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(fg||(fg={}));const o5=()=>typeof window<"u"?window:{},sm=()=>{const e=o5();return e&&typeof e.document<"u"?e.document:{}},pb=["development","production","test"];let Ds="production";const ly=e=>{try{if(pb.includes(e))Ds=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${pb.join(", ")}.`)}catch{Ds="production"}},n5=()=>{try{const e=typeof process<"u"&&mb?"production":void 0;if(e&&pb.includes(e))return e}catch{}return"production"};ly(n5());let iy=!1,cy=!1;const t5=()=>Ds==="development",OR=()=>Ds==="test",r5=()=>iy===!0,$R=e=>{iy=e===!0},NR=()=>cy===!0,BR=e=>{cy=e===!0},a5="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",fl=e=>Array.isArray(e)?e:[e],bg=e=>`%c${e}`,l5=(e,n)=>typeof n=="string"&&n.length>0?`${bg(e)} | ${n}`:bg(e),bl=(e,n)=>[l5(e,n?.classifier),`${a5};${n?.overwriteStyle||""}`],Si=e=>t5()||e===!0;let i5=class{constructor(n){this.label=n}debug(n,r){Si(r?.forceLog)&&console.debug(...bl(this.label,r),...fl(n))}info(n,r){Si(r?.forceLog)&&console.info(...bl(this.label,r),...fl(n))}trace(n,r){Si(r?.forceLog)&&console.trace(...bl(this.label,r),...fl(n))}warn(n,r){Si(r?.forceLog)&&console.warn(...bl(this.label,r),...fl(n))}error(n,r){console.error(...bl(this.label,r),...fl(n))}throw(n,r){if(Si(r?.forceLog))throw new Error(...bl(this.label,r),...fl(n))}};const Oo=new i5("KoliBri"),mg=new Set,sy=(e,n)=>{mg.has(e)===!1&&(mg.add(e),Oo.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},hg=new Set,DR=(e,n)=>{hg.has(e)===!1&&(hg.add(e),Oo.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Ms=new Set,dy=(e,n)=>{(Ms.has(e)===!1||n?.force)&&(Ms.add(e),Oo.debug([e].concat(n?.details||[]),{classifier:"💻 dev",forceLog:!!n?.force,overwriteStyle:"; background-color: #f09"}))},MR=(e,n)=>{Ms.has(e)===!1&&(Ms.add(e),Oo.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},pg=new Set,IR=(e,n=!1,r)=>{pg.has(e)===!1&&(pg.add(e),e+=n===!0?" ✅":"",Oo.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};dy("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const kg=new Set,c5=(e,n)=>{kg.has(e)===!1&&(kg.add(e),Oo.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},UR=()=>{sy(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.
|
|
22
|
+
.catch(console.warn);`));let s=ao.A11yUi.THEMES.get(e);if(s||(s=new Map,ao.A11yUi.THEMES.set(e,s)),i.append&&s.has(n)){const d=s.get(n);s.set(n,lg(`${d}${r}`))}else s.set(n,lg(r))},D6=(e,n,r,i)=>Xx(e,n,r,i),Xx=(e,n,r,i)=>(Yx(e),typeof n=="object"&&n!==null&&Object.getOwnPropertyNames(n).forEach(s=>{const d=n[s],u=s.toLowerCase(),m=typeof i?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(s)?i.transformTagName(u):s;typeof d=="string"&&d.length>0&&Jx(e,m.toUpperCase(),d,r)}),e),Wx=e=>{if(e instanceof HTMLElement){if(typeof e.dataset.theme=="string")return e;{let n=e.parentNode;for(;n instanceof ShadowRoot;)n=n.host;return Wx(n)}}else return null},ig=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?!1:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},Qx=()=>typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null&&typeof ao.A11yUi.Theme.cache=="boolean"&&typeof ao.A11yUi.Theme.encroachCss=="object"&&ao.A11yUi.Theme.encroachCss!==null&&typeof ao.A11yUi.Theme.encroachCss.mode=="string"&&typeof ao.A11yUi.Theme.name=="string",M6=()=>!(typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null)||ao.A11yUi.Theme.name!=="default",I6=e=>{if(Qx())return ao.A11yUi.Theme;{const n={cache:!0,encroachCss:ig(),loglevel:"silent",mode:"csr",name:null},r=Wx(e);return r instanceof HTMLElement&&(n.cache=r.dataset.themeCache!=="false",n.encroachCss=ig(r.dataset),n.loglevel=r.dataset.themeLoglevel==="debug"?r.dataset.themeLoglevel:"silent",n.mode=r.dataset.themeMode==="ssr"?r.dataset.themeMode:"csr",n.name=r.dataset.theme||null),n}},U6=(e,n)=>({cache:n.cache!==!1,detect:n.detect==="auto"?"auto":"fixed",encroachCss:n.encroachCss===!1?!1:typeof n.encroachCss=="object"&&n.encroachCss!=null&&(n.encroachCss.mode==="after"||n.encroachCss.mode==="before")?n.encroachCss:{mode:"before"},loglevel:n.loglevel==="debug"?n.loglevel:"silent",mode:n.mode==="ssr"?n.mode:"csr",name:typeof n.name=="string"?n.name:e}),H6=(e,n)=>{Qx()===!1&&M6()&&typeof n=="object"&&n!==null&&(n=U6(e,n),n.detect==="fixed"?(n.name===null&&typeof e=="string"&&(n.name=e),e===n.name&&(ao.A11yUi.Theme=n,Rs.info(`[Theming] Theme "${e}" was set as default theme.`))):Ds||(Ds=!0,Rs.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let cg=!1;const F6=(e,n,r={})=>{cg||(cg=!0,pb=!1,typeof window<"u"&&(window.A11yUi=ao.A11yUi)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(s=>{typeof s=="function"&&s.length===1?H6(s((d,u,m)=>Xx(d,u,m,r)),{cache:r.theme?.cache,detect:r.theme?.detect,encroachCss:r.theme?.encroachCss,mode:r.theme?.mode,name:r.theme?.name}):Rs.error("[Theming] An attempt was made to load an incompatible theme.")}),pb=!0,typeof n=="function"?n=new Set([n]):Array.isArray(n)&&(n=new Set(n));const i=[];return n.forEach(s=>{const d=s();d instanceof Promise&&i.push(d)}),Promise.all(i)},ey=new Set,K6=/--[^;]+/g,V6=/:/,q6=typeof MutationObserver<"u";let oy=25,ny=()=>{oy=Math.min(25+Math.log2(ao.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const Z6=(e,n)=>{let r=n.match(K6);if(Array.isArray(r)){r=r.filter(s=>V6.test(s));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}ey.add(e)},Es=(e,n)=>{const r=ao.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},P6=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},G6=(e,n)=>{try{if(ao.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const s=new CSSStyleSheet;s.replaceSync(i),r.push(s)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const s=document.createElement("style");switch(s.dataset.themingFallback="",i){case 4:s.dataset.themingBaseA11y="";break;case 3:s.dataset.themingBaseGlobal="";break;case 2:s.dataset.themingBaseComponent="";break;case 1:s.dataset.themingCustomGlobal="";break;case 0:s.dataset.themingCustomComponent="";break;default:s.dataset.themingUnknown="";break}s.innerHTML=r,e.insertBefore(s,e.firstChild)})}},Y6=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch{s=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),s.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),s.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},J6=(e,n,r)=>{const i=n.name||"default";let s;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(ao.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))sg(e,s,ao.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Es(i,"PROPERTIES"),u=Es(i,"GLOBAL"),m=Es(i,e.tagName);ey.has(i)===!1&&Z6(i,u);const h=[d,u,m];Y6(s,h,n.encroachCss),n.cache===!0&&(ao.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&ao.A11yUi.CSS_STYLE_CACHE.set(i,new Map),ao.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),sg(e,s,h,r)}},sg=(e,n,r,i)=>{const s=performance.now();if(P6(n),G6(n,r),ay(e),i(),ao.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=ao.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-s}else ao.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-s})},ty=e=>{const n=ao.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;J6(e,i,r),ay(e)}};let sm=e=>{const n=setTimeout(()=>{clearTimeout(n),e.classList.contains("hydrated")?ty(e):sm(e)},oy)};const X6={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},W6={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},dg=q6?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(ty(i),n.observe(i,W6))}}):null;dg&&(sm=e=>dg.observe(e,X6),ny=()=>{});let ry=e=>{const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();if(n.endsWith("ms"))return parseFloat(n);if(n.endsWith("s"))return parseFloat(n)*1e3;{const r=parseFloat(n);return isNaN(r)?0:r}};ao.A11yUi.IS_TEST_ENVIRONMENT&&(ry=()=>0);const ug=(e,n)=>{e.style.setProperty("visibility",n),e.dataset.themed=""},Q6=(e,n)=>{const r=e.style.visibility||null;ao.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const i=ry(e);i>0?setTimeout(()=>{ug(e,r)},i):ug(e,r)},themeDetails:n}),e.style.setProperty("visibility","hidden","important"),sm(e)},ay=e=>{ao.A11yUi.STYLING_TASK_QUEUE.delete(e),ny()},e5=(e,n)=>{Q6(e,{...ao.A11yUi.Theme,...n})};var fg;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(fg||(fg={}));var bg;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(bg||(bg={}));const o5=()=>typeof window<"u"?window:{},dm=()=>{const e=o5();return e&&typeof e.document<"u"?e.document:{}},kb=["development","production","test"];let Ms="production";const ly=e=>{try{if(kb.includes(e))Ms=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${kb.join(", ")}.`)}catch{Ms="production"}},n5=()=>{try{const e=typeof process<"u"&&hb?"production":void 0;if(e&&kb.includes(e))return e}catch{}return"production"};ly(n5());let iy=!1,cy=!1;const t5=()=>Ms==="development",OR=()=>Ms==="test",r5=()=>iy===!0,$R=e=>{iy=e===!0},NR=()=>cy===!0,BR=e=>{cy=e===!0},a5="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",fl=e=>Array.isArray(e)?e:[e],mg=e=>`%c${e}`,l5=(e,n)=>typeof n=="string"&&n.length>0?`${mg(e)} | ${n}`:mg(e),bl=(e,n)=>[l5(e,n?.classifier),`${a5};${n?.overwriteStyle||""}`],Si=e=>t5()||e===!0;let i5=class{constructor(n){this.label=n}debug(n,r){Si(r?.forceLog)&&console.debug(...bl(this.label,r),...fl(n))}info(n,r){Si(r?.forceLog)&&console.info(...bl(this.label,r),...fl(n))}trace(n,r){Si(r?.forceLog)&&console.trace(...bl(this.label,r),...fl(n))}warn(n,r){Si(r?.forceLog)&&console.warn(...bl(this.label,r),...fl(n))}error(n,r){console.error(...bl(this.label,r),...fl(n))}throw(n,r){if(Si(r?.forceLog))throw new Error(...bl(this.label,r),...fl(n))}};const Oo=new i5("KoliBri"),hg=new Set,sy=(e,n)=>{hg.has(e)===!1&&(hg.add(e),Oo.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},pg=new Set,DR=(e,n)=>{pg.has(e)===!1&&(pg.add(e),Oo.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Is=new Set,dy=(e,n)=>{(Is.has(e)===!1||n?.force)&&(Is.add(e),Oo.debug([e].concat(n?.details||[]),{classifier:"💻 dev",forceLog:!!n?.force,overwriteStyle:"; background-color: #f09"}))},MR=(e,n)=>{Is.has(e)===!1&&(Is.add(e),Oo.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},kg=new Set,IR=(e,n=!1,r)=>{kg.has(e)===!1&&(kg.add(e),e+=n===!0?" ✅":"",Oo.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};dy("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const vg=new Set,c5=(e,n)=>{vg.has(e)===!1&&(vg.add(e),Oo.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},UR=()=>{sy(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.
|
|
23
23
|
- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`)},HR=e=>{(typeof e!="string"||e==="")&&sy(`Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.
|
|
24
24
|
- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`)},FR=(e,n=8)=>{n>7&&c5(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.
|
|
25
25
|
|
|
26
26
|
Link:
|
|
27
|
-
- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var s5=.2126,d5=.7152,u5=.0722,Rf=1/12.92;function Df(e){return Math.pow((e+.055)/1.055,2.4)}function vg(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,s=n<=.03928?n*Rf:Df(n),d=r<=.03928?r*Rf:Df(r),u=i<=.03928?i*Rf:Df(i);return s*s5+d*d5+u*u5}function gg(e){var n=255;(e=e.replace(/^#/,"")).length===8&&(n=parseInt(e.slice(6,8),16),e=e.substring(0,6)),e.length===4&&(n=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var r=parseInt(e,16);return[r>>16,r>>8&255,255&r,n]}function f5(e,n){return(Math.max(e,n)+.05)/(Math.min(e,n)+.05)}function b5(e,n){return f5(vg(e),vg(n))}function m5(e,n){return b5(gg(e),gg(n))}function h5(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var Mf,_g;function p5(){return _g||(_g=1,Mf={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),Mf}var If,xg;function k5(){if(xg)return If;xg=1;var e=p5();If=r;var n={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function r(i){var s,d=[],u=1,m;if(typeof i=="string")if(i=i.toLowerCase(),e[i])d=e[i].slice(),m="rgb";else if(i==="transparent")u=0,m="rgb",d=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(i)){var h=i.slice(1),p=h.length,g=p<=4;u=1,g?(d=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],p===4&&(u=parseInt(h[3]+h[3],16)/255)):(d=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],p===8&&(u=parseInt(h[6]+h[7],16)/255)),d[0]||(d[0]=0),d[1]||(d[1]=0),d[2]||(d[2]=0),m="rgb"}else if(s=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(i)){var v=s[1],_=v==="rgb",h=v.replace(/a$/,"");m=h;var p=h==="cmyk"?4:h==="gray"?1:3;d=s[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(j,O){if(/%$/.test(j))return O===p?parseFloat(j)/100:h==="rgb"?parseFloat(j)*255/100:parseFloat(j);if(h[O]==="h"){if(/deg$/.test(j))return parseFloat(j);if(n[j]!==void 0)return n[j]}return parseFloat(j)}),v===h&&d.push(1),u=_||d[p]===void 0?1:d[p],d=d.slice(0,p)}else i.length>10&&/[0-9](?:\s|\/)/.test(i)&&(d=i.match(/([0-9]+)/g).map(function(z){return parseFloat(z)}),m=i.match(/([a-z])/ig).join("").toLowerCase());else isNaN(i)?Array.isArray(i)||i.length?(d=[i[0],i[1],i[2]],m="rgb",u=i.length===4?i[3]:1):i instanceof Object&&(i.r!=null||i.red!=null||i.R!=null?(m="rgb",d=[i.r||i.red||i.R||0,i.g||i.green||i.G||0,i.b||i.blue||i.B||0]):(m="hsl",d=[i.h||i.hue||i.H||0,i.s||i.saturation||i.S||0,i.l||i.lightness||i.L||i.b||i.brightness]),u=i.a||i.alpha||i.opacity||1,i.opacity!=null&&(u/=100)):(m="rgb",d=[i>>>16,(i&65280)>>>8,i&255]);return{space:m,values:d,alpha:u}}return If}var v5=k5(),KR=nd(v5);const g5={min:[0,0,0],max:[255,255,255]};var VR={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var n=e[0]/360,r=e[1]/100,i=e[2]/100,s,d,u,m,h,p=0;if(r===0)return h=i*255,[h,h,h];for(d=i<.5?i*(1+r):i+r-i*r,s=2*i-d,m=[0,0,0];p<3;)u=n+1/3*-(p-1),u<0?u++:u>1&&u--,h=6*u<1?s+(d-s)*6*u:2*u<1?d:3*u<2?s+(d-s)*(2/3-u)*6:s,m[p++]=h*255;return m}};g5.hsl=function(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(n,r,i),d=Math.max(n,r,i),u=d-s,m,h,p;return d===s?m=0:n===d?m=(r-i)/u:r===d?m=2+(i-n)/u:i===d&&(m=4+(n-r)/u),m=Math.min(m*60,360),m<0&&(m+=360),p=(s+d)/2,d===s?h=0:p<=.5?h=u/(d+s):h=u/(2-d-s),[m,h*100,p*100]};var Dr={exports:{}},yg;function _5(){if(yg)return Dr.exports;yg=1,Dr.exports=e,Dr.exports.arr=e,Dr.exports.obj=n,Dr.exports.css=r,Dr.exports.hex=i,Dr.exports.num=s;function e(x){var w=d(x);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(x){var w=d(x);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(x){var w=d(x);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(x){var Z=d(x);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),H=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,H,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0):"#"+$+D+H:ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0)+Z.charAt(0):"#"+$+D+H+Z}function s(x){var w=d(x);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(x){return typeof x=="string"?(x=x.toLowerCase(),h(x)||g(x)||v(x)||O(x)||E(x)||[0,0,0,255]):z(x)||N(x)||j(x)||[0,0,0,255]}function u(x){var w=x.toString(16);return w.length==1?"0"+w:w}function m(x,w,$,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(x)!=-1&&H.indexOf(w)!=-1&&H.indexOf($)!=-1&&H.indexOf(D)!=-1}function h(x){if(x=="red")return[255,0,0];if(x=="green")return[0,255,0];if(x=="blue")return[0,0,255];if(x=="black")return[0,0,0];if(x=="white")return[255,255,255];if(x=="cyan")return[0,255,255];if(x=="gray")return[128,128,128];if(x=="grey")return[128,128,128];if(x=="magenta")return[255,0,255];if(x=="pink")return[255,0,255];if(x=="yellow")return[255,255,0]}function p(x){return x.length==1?parseInt(x+x,16):parseInt(x,16)}function g(x){var w=x.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),H=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function v(x){var w=x.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function _(x,w){return typeof x!="number"||w===!0&&Math.floor(x)!==x?-1:x>=0&&x<=255?x:-1}function z(x){if(Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x)===Object.getPrototypeOf({})){var w=_(x.r!=null?x.r:x.red!=null?x.red:0,!0),$=_(x.g!=null?x.g:x.green!=null?x.green:0,!0),D=_(x.b!=null?x.b:x.blue!=null?x.blue:0,!0),H=_(x.a!=null?x.a:x.alpha!=null?x.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function N(x){if(Array.isArray(x)&&(x.length==3||x.length==4)){var w=_(x[0],!0),$=_(x[1],!0),D=_(x[2],!0),H=_(x[3]!=null?x[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function j(x){if(typeof x=="number"&&Math.floor(x)==x&&x<=4294967295&&x>=0){var w=x>>24&255,$=x>>16&255,D=x>>8&255,H=x&255;return[$,D,H,w]}}function O(x){if(x.substr(0,4)=="rgb("){x=x.match(/^rgb\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if($!=-1&&D!=-1&&H!=-1)return[$,D,H,255]}}function E(x){if(x.substr(0,5)=="rgba("){x=x.match(/^rgba\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),Z=_(w[3]*255);if($!=-1&&D!=-1&&H!=-1&&Z!=-1)return[$,D,H,Z]}}return Dr.exports}var x5=_5(),wg=nd(x5),Uf={},zg;function y5(){return zg||(zg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,s)=>{s.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,s=document)=>{if(s instanceof Document||s instanceof HTMLElement||s instanceof ShadowRoot){const d=new Set;n(d,s.querySelectorAll(i));const u=s.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(Uf)),Uf}var w5=y5(),Hf={},Sg;function z5(){return Sg||(Sg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let s=i.querySelector(r);if(s===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?s=(0,e.querySelector)(r,m):s=(0,e.querySelector)(r,d[u]),s!==null)break}}return s}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(Hf)),Hf}var S5=z5();const j5=/\[object Object\]/,Ff=(e,n)=>{typeof e=="string"&&j5.test(e)||n()},T5=(e,n)=>{typeof e=="string"&&e===""||n()},qR=(e,n)=>{r5()&&(Oo.debug([e,n]),Oo.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:n,writable:!1})},A5=e=>{var n,r,i;(n=e.nextHooks)===null||n===void 0||n.forEach((s,d)=>{var u;const m=s.get("beforePatch");typeof m=="function"&&m((u=e.nextState)===null||u===void 0?void 0:u.get(d),e.nextState,e,d)}),((r=e.nextState)===null||r===void 0?void 0:r.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,(i=e.nextHooks)===null||i===void 0||i.forEach((s,d)=>{const u=s.get("afterPatch");typeof u=="function"&&u(e.state[d],e.state,e,d)})),delete e.nextHooks},kb=(e,n,r,i={})=>{var s,d;e.nextHooks===void 0&&(e.nextHooks=new Map),e.nextState===void 0&&(e.nextState=new Map),e.nextHooks.get(n)instanceof Map||e.nextHooks.set(n,new Map),typeof i.afterPatch=="function"&&((s=e.nextHooks.get(n))===null||s===void 0||s.set("afterPatch",i.afterPatch)),typeof i.beforePatch=="function"&&((d=e.nextHooks.get(n))===null||d===void 0||d.set("beforePatch",i.beforePatch)),e.nextState.set(n,r),A5(e)},C5=(e,n,r,i)=>{dy(`[${e.constructor.name}] The property value: (${r}) for '${n}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)};function dm(e,n,r,i,s,d={}){r(s)?kb(e,n,s,d.hooks):s===void 0&&d.required!==!0&&r(d.defaultValue)?kb(e,n,d.defaultValue,d.hooks):(d.required||i.add(null),C5(e,n,s,i))}const ZR=(e,n,r,i)=>{dm(e,n,s=>typeof s=="boolean",new Set(["Boolean {true, false}"]),r,i)},PR=(e,n,r,i={})=>{const s=typeof i.minLength=="number"?i?.minLength:0;dm(e,n,d=>typeof d=="string"&&d.length>=s&&(typeof i?.maxLength>"u"||d.length<=i.maxLength),new Set(["String"]),r,i)},GR=(e,n,r,i)=>{dm(e,n,s=>typeof s=="number"&&(typeof i?.min>"u"||typeof i?.min=="number"&&s>=i.min)&&(typeof i?.max>"u"||typeof i?.max=="number"&&s<=i.max),new Set(["Number"]),r,i)},YR=(e,n,r,i,s=u=>u===u,d={})=>{T5(i,()=>{Ff(i,()=>{typeof i>"u"&&(i=[]);try{try{i=O5(i)}catch{}if(Array.isArray(i)){const u=i.find(m=>!r(m));u===void 0&&s(i)?kb(e,n,i,d.hooks):Ff(u,()=>{throw Oo.debug(u),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else Ff(i,()=>{throw Oo.debug(i),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(u){Oo.debug(u)}})})},E5=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch{throw Oo.warn(["stringifyJson",e]),Oo.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},L5=/^[{[]/,O5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{if(L5.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch{Oo.warn(["parseJson",e]),Oo.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},$5=e=>typeof e=="boolean"?e===!0?"true":"false":void 0,JR=e=>typeof e=="string"?e:$5(e),N5=(e,n)=>S5.querySelector(e,n||sm()),B5=(e,n)=>w5.querySelectorAll(e,n||sm());let Kf=null;const uy=()=>(Kf=Kf||{backgroundColor:"#00000000",color:"#00000000",domNode:sm().body,level:"Fail",score:1},Kf),jg=/(\d+, ){3}0\)/,vb=(e,n=uy())=>{const r=getComputedStyle(e),i=jg.test(r.backgroundColor)?n.backgroundColor:wg.hex(r.backgroundColor),s=jg.test(r.color)?n.color:wg.hex(r.color),d=m5(i,s),u={backgroundColor:i,color:s,domNode:e,level:h5(d),score:d};return d<4.5&&Oo.error(["Color-Contrast-Error",{backgroundColor:u.backgroundColor,color:u.color,level:u.level,score:u.score},u.domNode]),u},R5=(e,n=uy())=>{n.domNode instanceof HTMLElement&&(n=vb(n.domNode,n));const r=n.domNode.querySelector(e);if(r===null){const i=n.domNode.querySelectorAll('[class="hydrated"]');for(let s=0;s<i.length&&(n.domNode=i[s],n=R5(e,n),n.domNode===null);s++);return n}else return vb(r,n)};class Xn{static queryHtmlElementColors(n,r,i=!1,s=!0){let d=null;if(i===!0||Xn.executionLock===!1)if(i===!1&&(Xn.cache.clear(),Xn.cache.set(r.domNode,r),Xn.executionLock=!0,s===!0&&Oo.debug("[KoliBriUtils] Color contrast analysis started...")),n===r.domNode)d=r;else{const u=new Set;if(r.domNode.shadowRoot){const g=r.domNode.shadowRoot.children;for(let v=0;v<g.length;v++)u.add(g[v])}const m=r.domNode;if(typeof m.assignedNodes=="function"){const g=m.assignedNodes();for(let v=0;v<g.length;v++)g[v]instanceof HTMLElement&&u.add(g[v])}const h=r.domNode.children;for(let g=0;g<h.length;g++)u.add(h[g]);const p=Array.from(u);for(let g=0;g<p.length;g++){let v=Xn.cache.get(p[g]);v===void 0&&(v=vb(p[g],r)),Xn.cache.set(p[g],v);const _=Xn.queryHtmlElementColors(n,v,!0,!1);if(_!==null){d=_;break}}}else Oo.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return i===!1&&(s===!0&&Oo.debug(`[KoliBriUtils] Color contrast analysis finished (${Xn.cache.size} DOM elements are analysed).`),Xn.executionLock=!1,Xn.cache.clear()),d}}Xn.executionLock=!1;Xn.cache=new Map;class ja{}ja.getCssStyle=Cs;ja.patchTheme=D6;ja.patchThemeTag=R6;ja.querySelector=N5;ja.querySelectorAll=B5;ja.stringifyJson=E5;const XR=e=>typeof e=="object"&&e!==null,Tg=(e,n=0)=>typeof e=="string"&&e.length>=n,WR=e=>{if(typeof e=="object"&&e!==null){for(const n in e)if(Tg(n,1)===!1)return!1}else return Tg(e,1);return!0},QR=new Event("StateChange");var Vf,Ag;function D5(){return Ag||(Ag=1,Vf=function(n){return function(r,i){if(!r)return n;var s;typeof r=="string"?s=r:i=r;var d=n;return s&&(d+="__"+s),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),Vf}var M5=D5(),I5=nd(M5);function fy(){const e=new Map,n=(r,i,s)=>{try{return e.get(r)(i,s)}catch{return e.set(r,I5(r)).get(r)(i,s)}};return n.forBlock=r=>{const i=(s,d)=>n(r,s,d);return i.forElement=s=>d=>n(r,s,d),i},n}const by=fy(),eD=by("kol-icon"),oD=by("kol-icon","icon");let gb;const Es=[],U5=e=>{gb=e,Es.forEach(n=>{n(e)})},nD=(e,n=!0)=>(n&&typeof gb=="string"&&e(gb),Es.push(e),()=>{const r=Es.indexOf(e);r>=0&&Es.splice(r,1)});let Cg="kol-abbr",Eg="kol-accordion",Lg="kol-alert",Og="kol-alert-wc",$g="kol-avatar",Ng="kol-avatar-wc",Bg="kol-badge",Rg="kol-breadcrumb",Dg="kol-button-link",Mg="kol-button",Ig="kol-button-wc",Ug="kol-card",Hg="kol-card-wc",Fg="kol-combobox",Kg="kol-details",Vg="kol-drawer",qg="kol-form",Zg="kol-heading",Pg="kol-icon",Gg="kol-image",Yg="kol-input-checkbox",Jg="kol-input-color",Xg="kol-input-date",Wg="kol-input-email",Qg="kol-input-file",e_="kol-input-number",o_="kol-input-password",n_="kol-input-radio",t_="kol-input-range",r_="kol-input",a_="kol-input-text",l_="kol-kolibri",i_="kol-link-button",c_="kol-link",s_="kol-link-wc",d_="kol-modal",u_="kol-nav",f_="kol-pagination",b_="kol-pagination-wc",m_="kol-popover-wc",h_="kol-popover-button",p_="kol-popover-button-wc",k_="kol-progress",v_="kol-quote",g_="kol-select",__="kol-select-wc",x_="kol-single-select",y_="kol-skip-nav",w_="kol-spin",z_="kol-split-button",S_="kol-table-settings-wc",j_="kol-table-stateful",T_="kol-table-stateless",A_="kol-table-stateless-wc",C_="kol-tabs",E_="kol-textarea",_b="kol-toast-container",qf="kol-tooltip-wc",L_="kol-tree-item",O_="kol-tree-item-wc",$_="kol-tree",N_="kol-tree-wc",B_="kol-version";const H5=e=>{Cg=e(Cg),Eg=e(Eg),Lg=e(Lg),Og=e(Og),$g=e($g),Ng=e(Ng),Bg=e(Bg),Rg=e(Rg),Dg=e(Dg),Mg=e(Mg),Ig=e(Ig),Ug=e(Ug),Hg=e(Hg),Fg=e(Fg),Kg=e(Kg),Vg=e(Vg),qg=e(qg),Zg=e(Zg),Pg=e(Pg),Gg=e(Gg),Yg=e(Yg),Jg=e(Jg),Xg=e(Xg),Wg=e(Wg),Qg=e(Qg),e_=e(e_),o_=e(o_),n_=e(n_),t_=e(t_),r_=e(r_),a_=e(a_),l_=e(l_),i_=e(i_),c_=e(c_),s_=e(s_),d_=e(d_),u_=e(u_),f_=e(f_),b_=e(b_),m_=e(m_),h_=e(h_),p_=e(p_),k_=e(k_),v_=e(v_),g_=e(g_),__=e(__),x_=e(x_),y_=e(y_),w_=e(w_),z_=e(z_),S_=e(S_),j_=e(j_),T_=e(T_),A_=e(A_),C_=e(C_),E_=e(E_),_b=e(_b),e(qf),qf=e(qf),L_=e(L_),O_=e(O_),$_=e($_),N_=e(N_),B_=e(B_)};var F5={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","split-button-dropdown-label-open":"Optionen anzeigen","split-button-dropdown-label-close":"Optionen schließen","toast-close-all":"Alle Benachrichtigungen schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","table-selection-all":"Alle auswählen","table-selection-none":"Alle abwählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl","table-settings":"Tabellenkonfiguration","table-settings-cancel":"Abbrechen","table-settings-apply":"Übernehmen","table-settings-show-column":"Spalte {{column}} anzeigen","table-settings-column-width":"Breite von {{column}}","table-settings-move-up":"Spalte {{column}} nach oben verschieben","table-settings-move-down":"Spalte {{column}} nach unten verschieben","table-settings-error-all-invisible":"Mindestens eine Spalte muss sichtbar sein.","table-settings-column-not-hidable":"nicht ausblendbar",dropdown:"Auswahlliste","nav-label-open":"Untermenü zu {{label}} öffnen","nav-label-close":"Untermenü zu {{label}} schließen","close-alert":"Benachrichtigung schließen","show-password":"einblenden","hide-password":"ausblenden","no-results-message":"Keine Ergebnisse gefunden.","delete-selection":"Auswahl entfernen","filename-text":"Datei auswählen oder hier ablegen...","data-browse-text":"Datei auswählen",sort:"sortieren","pagination-position-top":"oben","pagination-position-bottom":"unten","character-limit-hint":"Es können bis zu {{limit}} Zeichen eingegeben werden.","character-limit-remaining":"Es sind noch {{remaining}} Zeichen verfügbar.","character-limit-exceeded":"Es sind {{over}} Zeichen zu viel.","character-counter-current":"{{current}} Zeichen","character-counter-current-of-max":"{{current}}/{{max}} Zeichen","character-counter-current-of-max-aria":"{{current}} von {{max}} Zeichen",readonly:"schreibgeschützt"},K5={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"Entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","split-button-dropdown-label-open":"Show options","split-button-dropdown-label-close":"Hide options","toast-close-all":"Close all notifications","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","table-selection-all":"Select all","table-selection-none":"Deselect all","table-selection-indeterminate":"Select all with partial selection","table-settings":"Table configuration","table-settings-cancel":"Cancel","table-settings-apply":"Apply","table-settings-show-column":"Show column {{column}}","table-settings-column-width":"{{column}} width","table-settings-move-up":"Move {{column}} column up","table-settings-move-down":"Move {{column}} column down","table-settings-error-all-invisible":"At least one column must be visible.","table-settings-column-not-hidable":"cannot be hidden",dropdown:"Dropdown","nav-label-open":"Submenu for {{label}} open","nav-label-close":"Submenu for {{label}} close","close-alert":"Close notification","show-password":"Show","hide-password":"Hide","no-results-message":"No results found.","delete-selection":"Delete selection","filename-text":"Choose a file or drop it here...","data-browse-text":"Browse",sort:"sort","pagination-position-top":"top","pagination-position-bottom":"bottom","character-limit-hint":"You can enter up to {{limit}} characters","character-limit-remaining":"You have {{remaining}} characters remaining.","character-limit-exceeded":"You have {{over}} characters too many.","character-counter-current":"{{current}} characters","character-counter-current-of-max":"{{current}}/{{max}} characters","character-counter-current-of-max-aria":"{{current}} of {{max}} characters",readonly:"read-only"};const R_=e=>Object.keys(e).reduce((n,r)=>(n[`kol-${r}`]=e[r],n),{}),V5=new Set([e=>e("en",R_(K5)),e=>e("de",R_(F5))]),q5=function(e,n,r){return e.split(n).join(r)};class Z5{constructor(n){this.resourceMap=new Map,this.language=n??"de"}addTranslations(n){Array.isArray(n)?n=new Set(n):typeof n=="function"&&(n=new Set([n])),n!==void 0&&n.forEach(r=>r((i,s)=>{let d=this.resourceMap.get(i);return d||(d=new Map,this.resourceMap.set(i,d)),Object.entries(s).forEach(([u,m])=>{m&&d.set(u,m)}),i}))}setLanguage(n){this.language=n}translate(n,r){var i;let s=(i=this.resourceMap.get(this.language))===null||i===void 0?void 0:i.get(n);return s?r?.placeholders&&Object.entries(r.placeholders).forEach(([d,u])=>{s=q5(s,`{{${d}}}`,u)}):s=n,s}}let Ls;const tD=()=>Ls,P5=(e,n=V5)=>(Ls=new Z5(e),Ls.addTranslations(n),Ls);var G5={};let my=!1,hy;const Y5=async(e,n,r)=>{var i,s;const d=typeof process<"u"&&G5?"production":void 0;ly(r?.environment||d||"production"),P5((s=(i=r?.translation)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"de",r?.translations),r?.transformTagName&&H5(r?.transformTagName);const u=await F6(e,n,r);return my=!0,hy=r,Oo.info("Development mode active - Enhanced debugging features available"),u},J5=()=>my,rD=()=>hy;const um=fy(),aD=um("kol-alert","closer")+" kol-close-button",lD=um("kol-alert","content"),iD=um("kol-alert","icon");var Ot;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(Ot||(Ot={}));function X5(e,n){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}function cD(e,n,r){e.dispatchEvent(X5(n,r))}class Vr{constructor(n,r){var i;this.document=n,this.options=r,this.toastContainerElement=this.document.createElement(_b),this.document.body.prepend(this.toastContainerElement),!((i=this.options)===null||i===void 0)&&i.defaultVariant&&Oo.info("ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.")}static getInstance(n,r){if(!J5())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let i=this.instances.get(n);return i||(i=new Vr(n,r),this.instances.set(n,i)),i}dispose(){const n=this.toastContainerElement;n?(this.toastContainerElement=void 0,n.remove()):Oo.warn("Toaster service is already disposed.")}enqueue(n){if(this.toastContainerElement&&typeof this.toastContainerElement.enqueue=="function")return this.toastContainerElement.enqueue(n)}closeAll(n=!1){this.toastContainerElement&&typeof this.toastContainerElement.closeAll=="function"&&this.toastContainerElement.closeAll(n)}}Vr.instances=new Map;var mn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(mn||(mn={}));var Ke;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(Ke||(Ke={}));var dr;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(dr||(dr={}));const xe=new Map;xe.set(mn["Die Bundesregierung"],["Die","Bundesregierung"]);xe.set(mn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);xe.set(mn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);xe.set(mn["Auswärtiges Amt"],["Auswärtiges Amt"]);xe.set(mn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);xe.set(mn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);xe.set(mn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);xe.set(mn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);xe.set(mn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);xe.set(mn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);xe.set(mn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);xe.set(mn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);xe.set(mn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);xe.set(mn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);xe.set(mn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);xe.set(Ke["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);xe.set(Ke["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);xe.set(Ke["Bundesamt für äußere Restitutionen"],[]);xe.set(Ke["Bundesamt für Bauwesen und Raumordnung"],[]);xe.set(Ke["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);xe.set(Ke["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);xe.set(Ke["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);xe.set(Ke["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);xe.set(Ke["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);xe.set(Ke["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);xe.set(Ke["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);xe.set(Ke["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);xe.set(Ke["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);xe.set(Ke["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);xe.set(Ke["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);xe.set(Ke["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);xe.set(Ke["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);xe.set(Ke.Bundesarchiv,["Das","Bundesarchiv"]);xe.set(Ke["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);xe.set(Ke.Bundesausgleichsamt,["Bundesausgleichsamt"]);xe.set(Ke.Bundeskartellamt,["Bundeskartellamt"]);xe.set(Ke.Bundeskriminalamt,["Bundeskriminalamt"]);xe.set(Ke.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);xe.set(Ke["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);xe.set(Ke.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);xe.set(Ke["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);xe.set(Ke.Bundessortenamt,["Bundessortenamt"]);xe.set(Ke.Bundessprachenamt,["Bundessprachenamt"]);xe.set(Ke["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);xe.set(Ke.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);xe.set(Ke["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);xe.set(Ke["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);xe.set(Ke["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);xe.set(Ke.Generalzolldirektion,["Generalzolldirektion"]);xe.set(Ke["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);xe.set(Ke["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);xe.set(dr["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);xe.set(dr["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);xe.set(dr["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);xe.set(dr["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);xe.set(dr["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);xe.set(dr["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);xe.set(dr["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);const W5="modulepreload",Q5=function(e){return"/"+e},D_={},me=function(n,r,i){let s=Promise.resolve();if(r&&r.length>0){let h=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),m=u?.nonce||u?.getAttribute("nonce");s=h(r.map(p=>{if(p=Q5(p),p in D_)return;D_[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":W5,g||(_.as="script"),_.crossOrigin="",_.href=p,m&&_.setAttribute("nonce",m),document.head.appendChild(_),g)return new Promise((z,N)=>{_.addEventListener("load",z),_.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(u){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=u,window.dispatchEvent(m),!m.defaultPrevented)throw u}return s.then(u=>{for(const m of u||[])m.status==="rejected"&&d(m.reason);return n().catch(d)})},eS="kolibri",_a={hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,slotRelocation:!0,state:!0,updatable:!0},sD={kolibriVersion:"3.1.1"};var oS=Object.defineProperty,nS=(e,n)=>{for(var r in n)oS(e,r,{get:n[r],enumerable:!0})},tS="http://www.w3.org/2000/svg",rS="http://www.w3.org/1999/xhtml",py=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(py||{}),ky=(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",e))(ky||{}),Zf="type",Pf="value",xb="serialized:",aS=(e,n)=>{var r;const i=n.$cmpMeta$;Object.entries((r=i.$members$)!=null?r:{}).map(([d,[u]])=>{if(u&31||u&32){const m=e[d],h=lS(Object.getPrototypeOf(e),d)||Object.getOwnPropertyDescriptor(e,d);h&&Object.defineProperty(e,d,{get(){return h.get.call(this)},set(p){h.set.call(this,p)},configurable:!0,enumerable:!0}),e[d]=n.$instanceValues$.has(d)?n.$instanceValues$.get(d):m}})};function lS(e,n){for(;e;){const r=Object.getOwnPropertyDescriptor(e,n);if(r?.get)return r;e=Object.getPrototypeOf(e)}}var nt=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},dD=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.$lazyInstance$=e,n.$cmpMeta$.$flags$&512&&_a.state&&aS(e,n))},iS=(e,n)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map,$serializerValues$:new Map};r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],r.$fetchedCbList$=[];const i=r;return e.__stencil__getHostRef=()=>i,i},M_=(e,n)=>n in e,ue=(e,n)=>(0,console.error)(e,n),Gf=new Map,cS=(e,n,r)=>{const i=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$;if(!s)return;const d=Gf.get(s);if(d)return d[i];{const u=m=>(Gf.set(s,m),m[i]);switch(s){case"kol-abbr":return me(()=>import("./kol-abbr.entry-DtquhRwX.js"),__vite__mapDeps([0,1])).then(u,ue);case"kol-accordion":return me(()=>import("./kol-accordion.entry-D4ZTW_10.js"),__vite__mapDeps([2,3,4,5,6,7,1,8,9,10])).then(u,ue);case"kol-alert":return me(()=>import("./kol-alert.entry-0OJQpauL.js"),[]).then(u,ue);case"kol-avatar":return me(()=>import("./kol-avatar.entry-Cd6Rnz9D.js"),[]).then(u,ue);case"kol-badge":return me(()=>import("./kol-badge.entry-Cp6upoVc.js"),__vite__mapDeps([11,12,4,5,13,6,14,15,16,17,18,19,20,21,9])).then(u,ue);case"kol-breadcrumb":return me(()=>import("./kol-breadcrumb.entry-C2hL558R.js"),__vite__mapDeps([22,1,23,24])).then(u,ue);case"kol-button":return me(()=>import("./kol-button.entry--kvpfoqj.js"),[]).then(u,ue);case"kol-button-link":return me(()=>import("./kol-button-link.entry-Hu7w20nQ.js"),[]).then(u,ue);case"kol-card":return me(()=>import("./kol-card.entry-CIT2rXDs.js"),[]).then(u,ue);case"kol-details":return me(()=>import("./kol-details.entry-BoFJzE4l.js"),__vite__mapDeps([25,3,4,5,6,7,1,8,9,10])).then(u,ue);case"kol-drawer":return me(()=>import("./kol-drawer.entry-nUI2zSbg.js"),__vite__mapDeps([26,5,27,28,1,8,29])).then(u,ue);case"kol-form":return me(()=>import("./kol-form.entry-D7Ebm7FI.js"),__vite__mapDeps([30,13,12,4,5,6])).then(u,ue);case"kol-heading":return me(()=>import("./kol-heading.entry-y6gTh-6H.js"),__vite__mapDeps([31,12,4,5,13,6,1,19,10])).then(u,ue);case"kol-icon":return me(()=>import("./kol-icon.entry-DE3nUGO-.js"),__vite__mapDeps([32,1,5])).then(u,ue);case"kol-image":return me(()=>import("./kol-image.entry-DaHmnpAS.js"),__vite__mapDeps([33,34])).then(u,ue);case"kol-input-checkbox":return me(()=>import("./kol-input-checkbox.entry-C0IXqp7I.js"),__vite__mapDeps([35,5,9,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,17,44,45,46])).then(u,ue);case"kol-input-color":return me(()=>import("./kol-input-color.entry-DsY-IAqz.js"),__vite__mapDeps([47,4,39,40,7,41,1,42,27,43,21,5,18,13,20,12,6,48,17,15,49,44,9,50,51])).then(u,ue);case"kol-input-date":return me(()=>import("./kol-input-date.entry-Cnl-Vavm.js"),__vite__mapDeps([52,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,53,37,51])).then(u,ue);case"kol-input-email":return me(()=>import("./kol-input-email.entry-Bw224om6.js"),__vite__mapDeps([54,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,55,56,57,58,51,59,50,60,53,37])).then(u,ue);case"kol-input-file":return me(()=>import("./kol-input-file.entry-BPpbjE51.js"),__vite__mapDeps([61,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,56,37])).then(u,ue);case"kol-input-number":return me(()=>import("./kol-input-number.entry-DsG6psuL.js"),__vite__mapDeps([62,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,60,53,37,51])).then(u,ue);case"kol-input-password":return me(()=>import("./kol-input-password.entry-C77bjnrq.js"),__vite__mapDeps([63,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,59,50,55,60,53,37])).then(u,ue);case"kol-input-radio":return me(()=>import("./kol-input-radio.entry-NeQxeDeY.js"),__vite__mapDeps([64,5,9,46,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,45,44])).then(u,ue);case"kol-input-text":return me(()=>import("./kol-input-text.entry-Cwqz51e7.js"),__vite__mapDeps([65,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,57,58,51,59,50,55,60,53,37])).then(u,ue);case"kol-kolibri":return me(()=>import("./kol-kolibri.entry-DWSvI_gd.js"),__vite__mapDeps([66,14,13])).then(u,ue);case"kol-link":return me(()=>import("./kol-link.entry-DS3kMTqz.js"),[]).then(u,ue);case"kol-link-button":return me(()=>import("./kol-link-button.entry-CrT5KFud.js"),[]).then(u,ue);case"kol-modal":return me(()=>import("./kol-modal.entry-D57KUUFa.js"),__vite__mapDeps([67,5,1,29])).then(u,ue);case"kol-nav":return me(()=>import("./kol-nav.entry-BBfCJHOL.js"),__vite__mapDeps([68,41,1,5,13,9,23,24])).then(u,ue);case"kol-pagination":return me(()=>import("./kol-pagination.entry-BOu6UM47.js"),[]).then(u,ue);case"kol-popover-button":return me(()=>import("./kol-popover-button.entry-B4DaEgoX.js"),[]).then(u,ue);case"kol-progress":return me(()=>import("./kol-progress.entry-sRCTMouK.js"),__vite__mapDeps([69,1])).then(u,ue);case"kol-quote":return me(()=>import("./kol-quote.entry-D-q1vPQw.js"),__vite__mapDeps([70,18,1,5])).then(u,ue);case"kol-select":return me(()=>import("./kol-select.entry-DP_igS8k.js"),[]).then(u,ue);case"kol-skip-nav":return me(()=>import("./kol-skip-nav.entry-CloIcdEQ.js"),__vite__mapDeps([71,1,23,24])).then(u,ue);case"kol-spin":return me(()=>import("./kol-spin.entry-pr5UTAez.js"),__vite__mapDeps([72,1,73,13,5])).then(u,ue);case"kol-split-button":return me(()=>import("./kol-split-button.entry-DegyNHIs.js"),__vite__mapDeps([74,5,13])).then(u,ue);case"kol-table-stateful":return me(()=>import("./kol-table-stateful.entry-ZljQpB8x.js"),__vite__mapDeps([75,13,76,1,77])).then(u,ue);case"kol-table-stateless":return me(()=>import("./kol-table-stateless.entry-JyATXFze.js"),[]).then(u,ue);case"kol-tabs":return me(()=>import("./kol-tabs.entry-B8XVC0q5.js"),__vite__mapDeps([78,27,1,5,13,77])).then(u,ue);case"kol-textarea":return me(()=>import("./kol-textarea.entry-D3_5qopC.js"),__vite__mapDeps([79,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,55,60,53,37,80,58])).then(u,ue);case"kol-toast-container":return me(()=>import("./kol-toast-container.entry-Bjl9kFGy.js"),__vite__mapDeps([81,13,9,12,4,5,6,19])).then(u,ue);case"kol-toolbar":return me(()=>import("./kol-toolbar.entry-BeQf9wuc.js"),__vite__mapDeps([82,4,1,77,38])).then(u,ue);case"kol-tree":return me(()=>import("./kol-tree.entry-BoQgiKlf.js"),[]).then(u,ue);case"kol-tree-item":return me(()=>import("./kol-tree-item.entry-ByWAtDwk.js"),[]).then(u,ue);case"kol-version":return me(()=>import("./kol-version.entry-CPw_P-wi.js"),__vite__mapDeps([83,1,13])).then(u,ue);case"kol-alert-wc":return me(()=>import("./kol-alert-wc.entry-Dwp0f9bM.js"),__vite__mapDeps([84,12,4,5,13,6,28,1,10])).then(u,ue);case"kol-avatar-wc":return me(()=>import("./kol-avatar-wc.entry-BAmxAzJQ.js"),__vite__mapDeps([85,14,34,1,13])).then(u,ue);case"kol-button-wc":return me(()=>import("./kol-button-wc.entry-pR4i25DA.js"),__vite__mapDeps([86,18,40,87,88,7,41,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21,46,43])).then(u,ue);case"kol-card-wc":return me(()=>import("./kol-card-wc.entry-xwzwzjf4.js"),__vite__mapDeps([90,28,1,13,10,12,4,5,6,19,9])).then(u,ue);case"kol-combobox":return me(()=>import("./kol-combobox.entry-CejHnakx.js"),__vite__mapDeps([91,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,60,37,51])).then(u,ue);case"kol-input-range":return me(()=>import("./kol-input-range.entry-DDgdxR9E.js"),__vite__mapDeps([93,4,5,39,40,7,41,1,42,27,43,21,18,13,20,12,6,48,17,15,49,44,9,46,50,51])).then(u,ue);case"kol-link-wc":return me(()=>import("./kol-link-wc.entry-tbUaeE6T.js"),__vite__mapDeps([94,18,40,87,88,7,41,95,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21])).then(u,ue);case"kol-pagination-wc":return me(()=>import("./kol-pagination-wc.entry-CkeuVuR6.js"),__vite__mapDeps([96,88,1,42,27,13,9,23])).then(u,ue);case"kol-popover-button-wc":return me(()=>import("./kol-popover-button-wc.entry-BHSWNEUg.js"),__vite__mapDeps([97,98,5,89,27])).then(u,ue);case"kol-popover-wc":return me(()=>import("./kol-popover-wc.entry-ISwBQokS.js"),__vite__mapDeps([99,98,27,73,5])).then(u,ue);case"kol-select-wc":return me(()=>import("./kol-select-wc.entry-BODW1e8-.js"),__vite__mapDeps([100,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,46,56,36,37,38,80])).then(u,ue);case"kol-single-select":return me(()=>import("./kol-single-select.entry-CW3cQI5F.js"),__vite__mapDeps([101,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,36,37,38,60])).then(u,ue);case"kol-table-settings-wc":return me(()=>import("./kol-table-settings-wc.entry-D1X74Pe0.js"),__vite__mapDeps([102,4,13])).then(u,ue);case"kol-table-stateless-wc":return me(()=>import("./kol-table-stateless-wc.entry-CCg2O12L.js"),__vite__mapDeps([103,5,13,76,1,77,9,21])).then(u,ue);case"kol-tooltip-wc":return me(()=>import("./kol-tooltip-wc.entry-CNvRWq3U.js"),__vite__mapDeps([104,98,27,1,12,4,5,13,6,16,17,18,19,20,21,29])).then(u,ue);case"kol-tree-item-wc":return me(()=>import("./kol-tree-item-wc.entry-DKZiIes0.js"),__vite__mapDeps([105,5,95,1,8,9])).then(u,ue);case"kol-tree-wc":return me(()=>import("./kol-tree-wc.entry-CrM5roWS.js"),__vite__mapDeps([106,1])).then(u,ue);case"test-component":return me(()=>import("./test-component.entry-BX3rqk_t.js"),[]).then(u,ue)}}return me(()=>import(`./${s}.entry.js`),[]).then(u=>(Gf.set(s,u),u[i]),u=>{ue(u,n.$hostElement$)})},Is=new Map,vy=[],sS="r",dS="o",yb="s",uS="t",fS="c",Hi="s-id",wb="sty-id",I_="c-id",bS="{visibility:hidden}.hydrated{visibility:inherit}",gy="slot-fb{display:contents}slot-fb[hidden]{display:none}",U_="http://www.w3.org/1999/xlink",oo=typeof window<"u"?window:{},bo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,r,i)=>e.addEventListener(n,r,i),rel:(e,n,r,i)=>e.removeEventListener(n,r,i),ce:(e,n)=>new CustomEvent(e,n)},mS=(()=>{var e;let n=!1;try{(e=oo.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),hS=e=>Promise.resolve(e),fm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),zb=fm?!!oo.document&&Object.getOwnPropertyDescriptor(oo.document.adoptedStyleSheets,"length").writable:!1,_y=e=>hS().then(e),bm=e=>(e=typeof e,e==="object"||e==="function");function xy(e){var n,r,i;return(i=(r=(n=e.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?i:void 0}var pS=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),kS=class ha{static fromLocalValue(n){const r=n[Zf],i=Pf in n?n[Pf]:void 0;switch(r){case"string":return i;case"boolean":return i;case"bigint":return BigInt(i);case"undefined":return;case"null":return null;case"number":return i==="NaN"?NaN:i==="-0"?-0:i==="Infinity"?1/0:i==="-Infinity"?-1/0:i;case"array":return i.map(p=>ha.fromLocalValue(p));case"date":return new Date(i);case"map":const s=new Map;for(const[p,g]of i){const v=typeof p=="object"&&p!==null?ha.fromLocalValue(p):p,_=ha.fromLocalValue(g);s.set(v,_)}return s;case"object":const d={};for(const[p,g]of i)d[p]=ha.fromLocalValue(g);return d;case"regexp":const{pattern:u,flags:m}=i;return new RegExp(u,m);case"set":const h=new Set;for(const p of i)h.add(ha.fromLocalValue(p));return h;case"symbol":return Symbol(i);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(n){return n.map(r=>ha.fromLocalValue(r))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(Zf))return!1;const r=n[Zf];return Object.values({...py,...ky}).includes(r)?r!=="null"&&r!=="undefined"?n.hasOwnProperty(Pf):!0:!1}},vS={};nS(vS,{err:()=>yy,map:()=>gS,ok:()=>Sb,unwrap:()=>_S,unwrapErr:()=>xS});var Sb=e=>({isOk:!0,isErr:!1,value:e}),yy=e=>({isOk:!1,isErr:!0,value:e});function gS(e,n){if(e.isOk){const r=n(e.value);return r instanceof Promise?r.then(i=>Sb(i)):Sb(r)}if(e.isErr){const r=e.value;return yy(r)}throw"should never get here"}var _S=e=>{if(e.isOk)return e.value;throw e.value},xS=e=>{if(e.isErr)return e.value;throw e.value};function yS(e){return typeof e!="string"||!e.startsWith(xb)?e:kS.fromLocalValue(JSON.parse(atob(e.slice(xb.length))))}var ji;function wS(e){var n;const r=this.attachShadow({mode:"open"});ji===void 0&&(ji=(n=void 0)!=null?n:null),ji&&(zb?r.adoptedStyleSheets.push(ji):r.adoptedStyleSheets=[...r.adoptedStyleSheets,ji])}var wy=e=>{const n=Ur(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&zy(n,e.tagName).forEach(i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(SS(i,mm(i),!1).length?i.hidden=!0:i.hidden=!1)});let r=0;for(r=0;r<n.length;r++){const i=n[r];i.nodeType===1&&Ur(i,"childNodes").length&&wy(i)}},zS=e=>{const n=[];for(let r=0;r<e.length;r++){const i=e[r]["s-nr"]||void 0;i&&i.isConnected&&n.push(i)}return n};function zy(e,n,r){let i=0,s=[],d;for(;i<e.length;i++)d=e[i],d["s-sr"]&&(!n||d["s-hn"]===n)&&r===void 0&&s.push(d),s=[...s,...zy(d.childNodes,n,r)];return s}var SS=(e,n,r=!0)=>{const i=[];(r&&e["s-sr"]||!e["s-sr"])&&i.push(e);let s=e;for(;s=s.nextSibling;)mm(s)===n&&(r||!s["s-sr"])&&i.push(s);return i},H_=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",jS=(e,n,r,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const d=n["s-cr"].parentNode,u=Ur(d,"appendChild");if(typeof i<"u"){s["s-oo"]=i;const m=Ur(d,"childNodes"),h=[s];m.forEach(p=>{p["s-nr"]&&h.push(p)}),h.sort((p,g)=>!p["s-oo"]||p["s-oo"]<(g["s-oo"]||0)?-1:!g["s-oo"]||g["s-oo"]<p["s-oo"]?1:0),h.forEach(p=>u.call(d,p))}else u.call(d,s);e["s-ol"]=s,e["s-sh"]=n["s-hn"]},mm=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Sy(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=r=>(function(i){const s=[],d=this["s-sn"];i?.flatten&&console.error(`
|
|
27
|
+
- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var s5=.2126,d5=.7152,u5=.0722,Df=1/12.92;function Mf(e){return Math.pow((e+.055)/1.055,2.4)}function gg(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,s=n<=.03928?n*Df:Mf(n),d=r<=.03928?r*Df:Mf(r),u=i<=.03928?i*Df:Mf(i);return s*s5+d*d5+u*u5}function _g(e){var n=255;(e=e.replace(/^#/,"")).length===8&&(n=parseInt(e.slice(6,8),16),e=e.substring(0,6)),e.length===4&&(n=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var r=parseInt(e,16);return[r>>16,r>>8&255,255&r,n]}function f5(e,n){return(Math.max(e,n)+.05)/(Math.min(e,n)+.05)}function b5(e,n){return f5(gg(e),gg(n))}function m5(e,n){return b5(_g(e),_g(n))}function h5(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var If,xg;function p5(){return xg||(xg=1,If={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),If}var Uf,yg;function k5(){if(yg)return Uf;yg=1;var e=p5();Uf=r;var n={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function r(i){var s,d=[],u=1,m;if(typeof i=="string")if(i=i.toLowerCase(),e[i])d=e[i].slice(),m="rgb";else if(i==="transparent")u=0,m="rgb",d=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(i)){var h=i.slice(1),p=h.length,g=p<=4;u=1,g?(d=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],p===4&&(u=parseInt(h[3]+h[3],16)/255)):(d=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],p===8&&(u=parseInt(h[6]+h[7],16)/255)),d[0]||(d[0]=0),d[1]||(d[1]=0),d[2]||(d[2]=0),m="rgb"}else if(s=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(i)){var v=s[1],_=v==="rgb",h=v.replace(/a$/,"");m=h;var p=h==="cmyk"?4:h==="gray"?1:3;d=s[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(S,O){if(/%$/.test(S))return O===p?parseFloat(S)/100:h==="rgb"?parseFloat(S)*255/100:parseFloat(S);if(h[O]==="h"){if(/deg$/.test(S))return parseFloat(S);if(n[S]!==void 0)return n[S]}return parseFloat(S)}),v===h&&d.push(1),u=_||d[p]===void 0?1:d[p],d=d.slice(0,p)}else i.length>10&&/[0-9](?:\s|\/)/.test(i)&&(d=i.match(/([0-9]+)/g).map(function(z){return parseFloat(z)}),m=i.match(/([a-z])/ig).join("").toLowerCase());else isNaN(i)?Array.isArray(i)||i.length?(d=[i[0],i[1],i[2]],m="rgb",u=i.length===4?i[3]:1):i instanceof Object&&(i.r!=null||i.red!=null||i.R!=null?(m="rgb",d=[i.r||i.red||i.R||0,i.g||i.green||i.G||0,i.b||i.blue||i.B||0]):(m="hsl",d=[i.h||i.hue||i.H||0,i.s||i.saturation||i.S||0,i.l||i.lightness||i.L||i.b||i.brightness]),u=i.a||i.alpha||i.opacity||1,i.opacity!=null&&(u/=100)):(m="rgb",d=[i>>>16,(i&65280)>>>8,i&255]);return{space:m,values:d,alpha:u}}return Uf}var v5=k5(),KR=td(v5);const g5={min:[0,0,0],max:[255,255,255]};var VR={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var n=e[0]/360,r=e[1]/100,i=e[2]/100,s,d,u,m,h,p=0;if(r===0)return h=i*255,[h,h,h];for(d=i<.5?i*(1+r):i+r-i*r,s=2*i-d,m=[0,0,0];p<3;)u=n+1/3*-(p-1),u<0?u++:u>1&&u--,h=6*u<1?s+(d-s)*6*u:2*u<1?d:3*u<2?s+(d-s)*(2/3-u)*6:s,m[p++]=h*255;return m}};g5.hsl=function(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(n,r,i),d=Math.max(n,r,i),u=d-s,m,h,p;return d===s?m=0:n===d?m=(r-i)/u:r===d?m=2+(i-n)/u:i===d&&(m=4+(n-r)/u),m=Math.min(m*60,360),m<0&&(m+=360),p=(s+d)/2,d===s?h=0:p<=.5?h=u/(d+s):h=u/(2-d-s),[m,h*100,p*100]};var Dr={exports:{}},wg;function _5(){if(wg)return Dr.exports;wg=1,Dr.exports=e,Dr.exports.arr=e,Dr.exports.obj=n,Dr.exports.css=r,Dr.exports.hex=i,Dr.exports.num=s;function e(x){var w=d(x);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(x){var w=d(x);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(x){var w=d(x);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(x){var Z=d(x);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),H=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,H,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0):"#"+$+D+H:ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0)+Z.charAt(0):"#"+$+D+H+Z}function s(x){var w=d(x);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(x){return typeof x=="string"?(x=x.toLowerCase(),h(x)||g(x)||v(x)||O(x)||E(x)||[0,0,0,255]):z(x)||N(x)||S(x)||[0,0,0,255]}function u(x){var w=x.toString(16);return w.length==1?"0"+w:w}function m(x,w,$,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(x)!=-1&&H.indexOf(w)!=-1&&H.indexOf($)!=-1&&H.indexOf(D)!=-1}function h(x){if(x=="red")return[255,0,0];if(x=="green")return[0,255,0];if(x=="blue")return[0,0,255];if(x=="black")return[0,0,0];if(x=="white")return[255,255,255];if(x=="cyan")return[0,255,255];if(x=="gray")return[128,128,128];if(x=="grey")return[128,128,128];if(x=="magenta")return[255,0,255];if(x=="pink")return[255,0,255];if(x=="yellow")return[255,255,0]}function p(x){return x.length==1?parseInt(x+x,16):parseInt(x,16)}function g(x){var w=x.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),H=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function v(x){var w=x.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function _(x,w){return typeof x!="number"||w===!0&&Math.floor(x)!==x?-1:x>=0&&x<=255?x:-1}function z(x){if(Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x)===Object.getPrototypeOf({})){var w=_(x.r!=null?x.r:x.red!=null?x.red:0,!0),$=_(x.g!=null?x.g:x.green!=null?x.green:0,!0),D=_(x.b!=null?x.b:x.blue!=null?x.blue:0,!0),H=_(x.a!=null?x.a:x.alpha!=null?x.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function N(x){if(Array.isArray(x)&&(x.length==3||x.length==4)){var w=_(x[0],!0),$=_(x[1],!0),D=_(x[2],!0),H=_(x[3]!=null?x[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function S(x){if(typeof x=="number"&&Math.floor(x)==x&&x<=4294967295&&x>=0){var w=x>>24&255,$=x>>16&255,D=x>>8&255,H=x&255;return[$,D,H,w]}}function O(x){if(x.substr(0,4)=="rgb("){x=x.match(/^rgb\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if($!=-1&&D!=-1&&H!=-1)return[$,D,H,255]}}function E(x){if(x.substr(0,5)=="rgba("){x=x.match(/^rgba\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),Z=_(w[3]*255);if($!=-1&&D!=-1&&H!=-1&&Z!=-1)return[$,D,H,Z]}}return Dr.exports}var x5=_5(),zg=td(x5),Hf={},jg;function y5(){return jg||(jg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,s)=>{s.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,s=document)=>{if(s instanceof Document||s instanceof HTMLElement||s instanceof ShadowRoot){const d=new Set;n(d,s.querySelectorAll(i));const u=s.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(Hf)),Hf}var w5=y5(),Ff={},Sg;function z5(){return Sg||(Sg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let s=i.querySelector(r);if(s===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?s=(0,e.querySelector)(r,m):s=(0,e.querySelector)(r,d[u]),s!==null)break}}return s}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(Ff)),Ff}var j5=z5();const S5=/\[object Object\]/,Kf=(e,n)=>{typeof e=="string"&&S5.test(e)||n()},T5=(e,n)=>{typeof e=="string"&&e===""||n()},qR=(e,n)=>{r5()&&(Oo.debug([e,n]),Oo.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:n,writable:!1})},A5=e=>{var n,r,i;(n=e.nextHooks)===null||n===void 0||n.forEach((s,d)=>{var u;const m=s.get("beforePatch");typeof m=="function"&&m((u=e.nextState)===null||u===void 0?void 0:u.get(d),e.nextState,e,d)}),((r=e.nextState)===null||r===void 0?void 0:r.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,(i=e.nextHooks)===null||i===void 0||i.forEach((s,d)=>{const u=s.get("afterPatch");typeof u=="function"&&u(e.state[d],e.state,e,d)})),delete e.nextHooks},vb=(e,n,r,i={})=>{var s,d;e.nextHooks===void 0&&(e.nextHooks=new Map),e.nextState===void 0&&(e.nextState=new Map),e.nextHooks.get(n)instanceof Map||e.nextHooks.set(n,new Map),typeof i.afterPatch=="function"&&((s=e.nextHooks.get(n))===null||s===void 0||s.set("afterPatch",i.afterPatch)),typeof i.beforePatch=="function"&&((d=e.nextHooks.get(n))===null||d===void 0||d.set("beforePatch",i.beforePatch)),e.nextState.set(n,r),A5(e)},C5=(e,n,r,i)=>{dy(`[${e.constructor.name}] The property value: (${r}) for '${n}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)};function um(e,n,r,i,s,d={}){r(s)?vb(e,n,s,d.hooks):s===void 0&&d.required!==!0&&r(d.defaultValue)?vb(e,n,d.defaultValue,d.hooks):(d.required||i.add(null),C5(e,n,s,i))}const ZR=(e,n,r,i)=>{um(e,n,s=>typeof s=="boolean",new Set(["Boolean {true, false}"]),r,i)},PR=(e,n,r,i={})=>{const s=typeof i.minLength=="number"?i?.minLength:0;um(e,n,d=>typeof d=="string"&&d.length>=s&&(typeof i?.maxLength>"u"||d.length<=i.maxLength),new Set(["String"]),r,i)},GR=(e,n,r,i)=>{um(e,n,s=>typeof s=="number"&&(typeof i?.min>"u"||typeof i?.min=="number"&&s>=i.min)&&(typeof i?.max>"u"||typeof i?.max=="number"&&s<=i.max),new Set(["Number"]),r,i)},YR=(e,n,r,i,s=u=>u===u,d={})=>{T5(i,()=>{Kf(i,()=>{typeof i>"u"&&(i=[]);try{try{i=O5(i)}catch{}if(Array.isArray(i)){const u=i.find(m=>!r(m));u===void 0&&s(i)?vb(e,n,i,d.hooks):Kf(u,()=>{throw Oo.debug(u),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else Kf(i,()=>{throw Oo.debug(i),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(u){Oo.debug(u)}})})},E5=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch{throw Oo.warn(["stringifyJson",e]),Oo.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},L5=/^[{[]/,O5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{if(L5.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch{Oo.warn(["parseJson",e]),Oo.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},$5=e=>typeof e=="boolean"?e===!0?"true":"false":void 0,JR=e=>typeof e=="string"?e:$5(e),N5=(e,n)=>j5.querySelector(e,n||dm()),B5=(e,n)=>w5.querySelectorAll(e,n||dm());let Vf=null;const uy=()=>(Vf=Vf||{backgroundColor:"#00000000",color:"#00000000",domNode:dm().body,level:"Fail",score:1},Vf),Tg=/(\d+, ){3}0\)/,gb=(e,n=uy())=>{const r=getComputedStyle(e),i=Tg.test(r.backgroundColor)?n.backgroundColor:zg.hex(r.backgroundColor),s=Tg.test(r.color)?n.color:zg.hex(r.color),d=m5(i,s),u={backgroundColor:i,color:s,domNode:e,level:h5(d),score:d};return d<4.5&&Oo.error(["Color-Contrast-Error",{backgroundColor:u.backgroundColor,color:u.color,level:u.level,score:u.score},u.domNode]),u},R5=(e,n=uy())=>{n.domNode instanceof HTMLElement&&(n=gb(n.domNode,n));const r=n.domNode.querySelector(e);if(r===null){const i=n.domNode.querySelectorAll('[class="hydrated"]');for(let s=0;s<i.length&&(n.domNode=i[s],n=R5(e,n),n.domNode===null);s++);return n}else return gb(r,n)};class Jn{static queryHtmlElementColors(n,r,i=!1,s=!0){let d=null;if(i===!0||Jn.executionLock===!1)if(i===!1&&(Jn.cache.clear(),Jn.cache.set(r.domNode,r),Jn.executionLock=!0,s===!0&&Oo.debug("[KoliBriUtils] Color contrast analysis started...")),n===r.domNode)d=r;else{const u=new Set;if(r.domNode.shadowRoot){const g=r.domNode.shadowRoot.children;for(let v=0;v<g.length;v++)u.add(g[v])}const m=r.domNode;if(typeof m.assignedNodes=="function"){const g=m.assignedNodes();for(let v=0;v<g.length;v++)g[v]instanceof HTMLElement&&u.add(g[v])}const h=r.domNode.children;for(let g=0;g<h.length;g++)u.add(h[g]);const p=Array.from(u);for(let g=0;g<p.length;g++){let v=Jn.cache.get(p[g]);v===void 0&&(v=gb(p[g],r)),Jn.cache.set(p[g],v);const _=Jn.queryHtmlElementColors(n,v,!0,!1);if(_!==null){d=_;break}}}else Oo.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return i===!1&&(s===!0&&Oo.debug(`[KoliBriUtils] Color contrast analysis finished (${Jn.cache.size} DOM elements are analysed).`),Jn.executionLock=!1,Jn.cache.clear()),d}}Jn.executionLock=!1;Jn.cache=new Map;class Sa{}Sa.getCssStyle=Es;Sa.patchTheme=D6;Sa.patchThemeTag=R6;Sa.querySelector=N5;Sa.querySelectorAll=B5;Sa.stringifyJson=E5;const XR=e=>typeof e=="object"&&e!==null,Ag=(e,n=0)=>typeof e=="string"&&e.length>=n,WR=e=>{if(typeof e=="object"&&e!==null){for(const n in e)if(Ag(n,1)===!1)return!1}else return Ag(e,1);return!0},QR=new Event("StateChange");var qf,Cg;function D5(){return Cg||(Cg=1,qf=function(n){return function(r,i){if(!r)return n;var s;typeof r=="string"?s=r:i=r;var d=n;return s&&(d+="__"+s),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),qf}var M5=D5(),I5=td(M5);function fy(){const e=new Map,n=(r,i,s)=>{try{return e.get(r)(i,s)}catch{return e.set(r,I5(r)).get(r)(i,s)}};return n.forBlock=r=>{const i=(s,d)=>n(r,s,d);return i.forElement=s=>d=>n(r,s,d),i},n}const by=fy(),eD=by("kol-icon"),oD=by("kol-icon","icon");let _b;const Ls=[],U5=e=>{_b=e,Ls.forEach(n=>{n(e)})},nD=(e,n=!0)=>(n&&typeof _b=="string"&&e(_b),Ls.push(e),()=>{const r=Ls.indexOf(e);r>=0&&Ls.splice(r,1)});let Eg="kol-abbr",Lg="kol-accordion",Og="kol-alert",$g="kol-alert-wc",Ng="kol-avatar",Bg="kol-avatar-wc",Rg="kol-badge",Dg="kol-breadcrumb",Mg="kol-button-link",Ig="kol-button",Ug="kol-button-wc",Hg="kol-card",Fg="kol-card-wc",Kg="kol-combobox",Vg="kol-details",qg="kol-drawer",Zg="kol-form",Pg="kol-heading",Gg="kol-icon",Yg="kol-image",Jg="kol-input-checkbox",Xg="kol-input-color",Wg="kol-input-date",Qg="kol-input-email",e_="kol-input-file",o_="kol-input-number",n_="kol-input-password",t_="kol-input-radio",r_="kol-input-range",a_="kol-input",l_="kol-input-text",i_="kol-kolibri",c_="kol-link-button",s_="kol-link",d_="kol-link-wc",u_="kol-modal",f_="kol-nav",b_="kol-pagination",m_="kol-pagination-wc",h_="kol-popover-wc",p_="kol-popover-button",k_="kol-popover-button-wc",v_="kol-progress",g_="kol-quote",__="kol-select",x_="kol-select-wc",y_="kol-single-select",w_="kol-skip-nav",z_="kol-spin",j_="kol-split-button",S_="kol-table-settings-wc",T_="kol-table-stateful",A_="kol-table-stateless",C_="kol-table-stateless-wc",E_="kol-tabs",L_="kol-textarea",xb="kol-toast-container",Zf="kol-tooltip-wc",O_="kol-tree-item",$_="kol-tree-item-wc",N_="kol-tree",B_="kol-tree-wc",R_="kol-version";const H5=e=>{Eg=e(Eg),Lg=e(Lg),Og=e(Og),$g=e($g),Ng=e(Ng),Bg=e(Bg),Rg=e(Rg),Dg=e(Dg),Mg=e(Mg),Ig=e(Ig),Ug=e(Ug),Hg=e(Hg),Fg=e(Fg),Kg=e(Kg),Vg=e(Vg),qg=e(qg),Zg=e(Zg),Pg=e(Pg),Gg=e(Gg),Yg=e(Yg),Jg=e(Jg),Xg=e(Xg),Wg=e(Wg),Qg=e(Qg),e_=e(e_),o_=e(o_),n_=e(n_),t_=e(t_),r_=e(r_),a_=e(a_),l_=e(l_),i_=e(i_),c_=e(c_),s_=e(s_),d_=e(d_),u_=e(u_),f_=e(f_),b_=e(b_),m_=e(m_),h_=e(h_),p_=e(p_),k_=e(k_),v_=e(v_),g_=e(g_),__=e(__),x_=e(x_),y_=e(y_),w_=e(w_),z_=e(z_),j_=e(j_),S_=e(S_),T_=e(T_),A_=e(A_),C_=e(C_),E_=e(E_),L_=e(L_),xb=e(xb),e(Zf),Zf=e(Zf),O_=e(O_),$_=e($_),N_=e(N_),B_=e(B_),R_=e(R_)};var F5={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","split-button-dropdown-label-open":"Optionen anzeigen","split-button-dropdown-label-close":"Optionen schließen","toast-close-all":"Alle Benachrichtigungen schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","table-selection-all":"Alle auswählen","table-selection-none":"Alle abwählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl","table-settings":"Tabellenkonfiguration","table-settings-cancel":"Abbrechen","table-settings-apply":"Übernehmen","table-settings-show-column":"Spalte {{column}} anzeigen","table-settings-column-width":"Breite von {{column}}","table-settings-move-up":"Spalte {{column}} nach oben verschieben","table-settings-move-down":"Spalte {{column}} nach unten verschieben","table-settings-error-all-invisible":"Mindestens eine Spalte muss sichtbar sein.","table-settings-column-not-hidable":"nicht ausblendbar",dropdown:"Auswahlliste","nav-label-open":"Untermenü zu {{label}} öffnen","nav-label-close":"Untermenü zu {{label}} schließen","close-alert":"Benachrichtigung schließen","show-password":"einblenden","hide-password":"ausblenden","no-results-message":"Keine Ergebnisse gefunden.","delete-selection":"Auswahl entfernen","filename-text":"Datei auswählen oder hier ablegen...","data-browse-text":"Datei auswählen",sort:"sortieren","pagination-position-top":"oben","pagination-position-bottom":"unten","character-limit-hint":"Es können bis zu {{limit}} Zeichen eingegeben werden.","character-limit-remaining":"Es sind noch {{remaining}} Zeichen verfügbar.","character-limit-exceeded":"Es sind {{over}} Zeichen zu viel.","character-counter-current":"{{current}} Zeichen","character-counter-current-of-max":"{{current}}/{{max}} Zeichen","character-counter-current-of-max-aria":"{{current}} von {{max}} Zeichen",readonly:"schreibgeschützt"},K5={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"Entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","split-button-dropdown-label-open":"Show options","split-button-dropdown-label-close":"Hide options","toast-close-all":"Close all notifications","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","table-selection-all":"Select all","table-selection-none":"Deselect all","table-selection-indeterminate":"Select all with partial selection","table-settings":"Table configuration","table-settings-cancel":"Cancel","table-settings-apply":"Apply","table-settings-show-column":"Show column {{column}}","table-settings-column-width":"{{column}} width","table-settings-move-up":"Move {{column}} column up","table-settings-move-down":"Move {{column}} column down","table-settings-error-all-invisible":"At least one column must be visible.","table-settings-column-not-hidable":"cannot be hidden",dropdown:"Dropdown","nav-label-open":"Submenu for {{label}} open","nav-label-close":"Submenu for {{label}} close","close-alert":"Close notification","show-password":"Show","hide-password":"Hide","no-results-message":"No results found.","delete-selection":"Delete selection","filename-text":"Choose a file or drop it here...","data-browse-text":"Browse",sort:"sort","pagination-position-top":"top","pagination-position-bottom":"bottom","character-limit-hint":"You can enter up to {{limit}} characters","character-limit-remaining":"You have {{remaining}} characters remaining.","character-limit-exceeded":"You have {{over}} characters too many.","character-counter-current":"{{current}} characters","character-counter-current-of-max":"{{current}}/{{max}} characters","character-counter-current-of-max-aria":"{{current}} of {{max}} characters",readonly:"read-only"};const D_=e=>Object.keys(e).reduce((n,r)=>(n[`kol-${r}`]=e[r],n),{}),V5=new Set([e=>e("en",D_(K5)),e=>e("de",D_(F5))]),q5=function(e,n,r){return e.split(n).join(r)};class Z5{constructor(n){this.resourceMap=new Map,this.language=n??"de"}addTranslations(n){Array.isArray(n)?n=new Set(n):typeof n=="function"&&(n=new Set([n])),n!==void 0&&n.forEach(r=>r((i,s)=>{let d=this.resourceMap.get(i);return d||(d=new Map,this.resourceMap.set(i,d)),Object.entries(s).forEach(([u,m])=>{m&&d.set(u,m)}),i}))}setLanguage(n){this.language=n}translate(n,r){var i;let s=(i=this.resourceMap.get(this.language))===null||i===void 0?void 0:i.get(n);return s?r?.placeholders&&Object.entries(r.placeholders).forEach(([d,u])=>{s=q5(s,`{{${d}}}`,u)}):s=n,s}}let Os;const tD=()=>Os,P5=(e,n=V5)=>(Os=new Z5(e),Os.addTranslations(n),Os);var G5={};let my=!1,hy;const Y5=async(e,n,r)=>{var i,s;const d=typeof process<"u"&&G5?"production":void 0;ly(r?.environment||d||"production"),P5((s=(i=r?.translation)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"de",r?.translations),r?.transformTagName&&H5(r?.transformTagName);const u=await F6(e,n,r);return my=!0,hy=r,Oo.info("Development mode active - Enhanced debugging features available"),u},J5=()=>my,rD=()=>hy;const fm=fy(),aD=fm("kol-alert","closer")+" kol-close-button",lD=fm("kol-alert","content"),iD=fm("kol-alert","icon");var Ot;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(Ot||(Ot={}));function X5(e,n){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}function cD(e,n,r){e.dispatchEvent(X5(n,r))}class Vr{constructor(n,r){var i;this.document=n,this.options=r,this.toastContainerElement=this.document.createElement(xb),this.document.body.prepend(this.toastContainerElement),!((i=this.options)===null||i===void 0)&&i.defaultVariant&&Oo.info("ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.")}static getInstance(n,r){if(!J5())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let i=this.instances.get(n);return i||(i=new Vr(n,r),this.instances.set(n,i)),i}dispose(){const n=this.toastContainerElement;n?(this.toastContainerElement=void 0,n.remove()):Oo.warn("Toaster service is already disposed.")}enqueue(n){if(this.toastContainerElement&&typeof this.toastContainerElement.enqueue=="function")return this.toastContainerElement.enqueue(n)}closeAll(n=!1){this.toastContainerElement&&typeof this.toastContainerElement.closeAll=="function"&&this.toastContainerElement.closeAll(n)}}Vr.instances=new Map;var mn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(mn||(mn={}));var Ke;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(Ke||(Ke={}));var dr;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(dr||(dr={}));const xe=new Map;xe.set(mn["Die Bundesregierung"],["Die","Bundesregierung"]);xe.set(mn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);xe.set(mn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);xe.set(mn["Auswärtiges Amt"],["Auswärtiges Amt"]);xe.set(mn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);xe.set(mn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);xe.set(mn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);xe.set(mn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);xe.set(mn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);xe.set(mn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);xe.set(mn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);xe.set(mn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);xe.set(mn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);xe.set(mn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);xe.set(mn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);xe.set(Ke["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);xe.set(Ke["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);xe.set(Ke["Bundesamt für äußere Restitutionen"],[]);xe.set(Ke["Bundesamt für Bauwesen und Raumordnung"],[]);xe.set(Ke["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);xe.set(Ke["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);xe.set(Ke["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);xe.set(Ke["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);xe.set(Ke["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);xe.set(Ke["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);xe.set(Ke["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);xe.set(Ke["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);xe.set(Ke["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);xe.set(Ke["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);xe.set(Ke["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);xe.set(Ke["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);xe.set(Ke["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);xe.set(Ke.Bundesarchiv,["Das","Bundesarchiv"]);xe.set(Ke["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);xe.set(Ke.Bundesausgleichsamt,["Bundesausgleichsamt"]);xe.set(Ke.Bundeskartellamt,["Bundeskartellamt"]);xe.set(Ke.Bundeskriminalamt,["Bundeskriminalamt"]);xe.set(Ke.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);xe.set(Ke["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);xe.set(Ke.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);xe.set(Ke["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);xe.set(Ke.Bundessortenamt,["Bundessortenamt"]);xe.set(Ke.Bundessprachenamt,["Bundessprachenamt"]);xe.set(Ke["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);xe.set(Ke.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);xe.set(Ke["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);xe.set(Ke["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);xe.set(Ke["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);xe.set(Ke.Generalzolldirektion,["Generalzolldirektion"]);xe.set(Ke["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);xe.set(Ke["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);xe.set(dr["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);xe.set(dr["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);xe.set(dr["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);xe.set(dr["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);xe.set(dr["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);xe.set(dr["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);xe.set(dr["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);const W5="modulepreload",Q5=function(e){return"/"+e},M_={},me=function(n,r,i){let s=Promise.resolve();if(r&&r.length>0){let h=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),m=u?.nonce||u?.getAttribute("nonce");s=h(r.map(p=>{if(p=Q5(p),p in M_)return;M_[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":W5,g||(_.as="script"),_.crossOrigin="",_.href=p,m&&_.setAttribute("nonce",m),document.head.appendChild(_),g)return new Promise((z,N)=>{_.addEventListener("load",z),_.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(u){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=u,window.dispatchEvent(m),!m.defaultPrevented)throw u}return s.then(u=>{for(const m of u||[])m.status==="rejected"&&d(m.reason);return n().catch(d)})},ej="kolibri",_a={hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,slotRelocation:!0,state:!0,updatable:!0},sD={kolibriVersion:"3.1.2-rc.0"};var oj=Object.defineProperty,nj=(e,n)=>{for(var r in n)oj(e,r,{get:n[r],enumerable:!0})},tj="http://www.w3.org/2000/svg",rj="http://www.w3.org/1999/xhtml",py=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(py||{}),ky=(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",e))(ky||{}),Pf="type",Gf="value",yb="serialized:",aj=(e,n)=>{var r;const i=n.$cmpMeta$;Object.entries((r=i.$members$)!=null?r:{}).map(([d,[u]])=>{if(u&31||u&32){const m=e[d],h=lj(Object.getPrototypeOf(e),d)||Object.getOwnPropertyDescriptor(e,d);h&&Object.defineProperty(e,d,{get(){return h.get.call(this)},set(p){h.set.call(this,p)},configurable:!0,enumerable:!0}),e[d]=n.$instanceValues$.has(d)?n.$instanceValues$.get(d):m}})};function lj(e,n){for(;e;){const r=Object.getOwnPropertyDescriptor(e,n);if(r?.get)return r;e=Object.getPrototypeOf(e)}}var ot=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},dD=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.$lazyInstance$=e,n.$cmpMeta$.$flags$&512&&_a.state&&aj(e,n))},ij=(e,n)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map,$serializerValues$:new Map};r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],r.$fetchedCbList$=[];const i=r;return e.__stencil__getHostRef=()=>i,i},I_=(e,n)=>n in e,ue=(e,n)=>(0,console.error)(e,n),Yf=new Map,cj=(e,n,r)=>{const i=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$;if(!s)return;const d=Yf.get(s);if(d)return d[i];{const u=m=>(Yf.set(s,m),m[i]);switch(s){case"kol-abbr":return me(()=>import("./kol-abbr.entry-B--8_dqy.js"),__vite__mapDeps([0,1])).then(u,ue);case"kol-accordion":return me(()=>import("./kol-accordion.entry-jt9d0qqK.js"),__vite__mapDeps([2,3,4,5,6,7,1,8,9,10])).then(u,ue);case"kol-alert":return me(()=>import("./kol-alert.entry-BrzJ1kQz.js"),[]).then(u,ue);case"kol-avatar":return me(()=>import("./kol-avatar.entry-B43kIR9r.js"),[]).then(u,ue);case"kol-badge":return me(()=>import("./kol-badge.entry-DijVw6lO.js"),__vite__mapDeps([11,12,4,5,13,6,14,15,16,17,18,19,20,21,9])).then(u,ue);case"kol-breadcrumb":return me(()=>import("./kol-breadcrumb.entry-CZnxtlIM.js"),__vite__mapDeps([22,1,23,24])).then(u,ue);case"kol-button":return me(()=>import("./kol-button.entry-BxpNkuyt.js"),[]).then(u,ue);case"kol-button-link":return me(()=>import("./kol-button-link.entry-CJ_vcvEI.js"),[]).then(u,ue);case"kol-card":return me(()=>import("./kol-card.entry-BBEewU4k.js"),[]).then(u,ue);case"kol-details":return me(()=>import("./kol-details.entry-DcovraIB.js"),__vite__mapDeps([25,3,4,5,6,7,1,8,9,10])).then(u,ue);case"kol-drawer":return me(()=>import("./kol-drawer.entry-D_zrj2Hh.js"),__vite__mapDeps([26,5,27,28,1,8,29])).then(u,ue);case"kol-form":return me(()=>import("./kol-form.entry-PKvJ8YW1.js"),__vite__mapDeps([30,13,12,4,5,6])).then(u,ue);case"kol-heading":return me(()=>import("./kol-heading.entry-CqGMPkfi.js"),__vite__mapDeps([31,12,4,5,13,6,1,19,10])).then(u,ue);case"kol-icon":return me(()=>import("./kol-icon.entry-D1F9Oo26.js"),__vite__mapDeps([32,1,5])).then(u,ue);case"kol-image":return me(()=>import("./kol-image.entry-R0fXHGZi.js"),__vite__mapDeps([33,34])).then(u,ue);case"kol-input-checkbox":return me(()=>import("./kol-input-checkbox.entry-DD0JMujb.js"),__vite__mapDeps([35,5,9,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,17,44,45,46])).then(u,ue);case"kol-input-color":return me(()=>import("./kol-input-color.entry-DOlC8iG9.js"),__vite__mapDeps([47,4,39,40,7,41,1,42,27,43,21,5,18,13,20,12,6,48,17,15,49,44,9,50,51])).then(u,ue);case"kol-input-date":return me(()=>import("./kol-input-date.entry-CeCzrF36.js"),__vite__mapDeps([52,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,53,37,51])).then(u,ue);case"kol-input-email":return me(()=>import("./kol-input-email.entry-Y9ARNUDf.js"),__vite__mapDeps([54,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,55,56,57,58,51,59,50,60,53,37])).then(u,ue);case"kol-input-file":return me(()=>import("./kol-input-file.entry-BWTMAdRa.js"),__vite__mapDeps([61,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,56,37])).then(u,ue);case"kol-input-number":return me(()=>import("./kol-input-number.entry-DdWiGbyJ.js"),__vite__mapDeps([62,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,60,53,37,51])).then(u,ue);case"kol-input-password":return me(()=>import("./kol-input-password.entry-DW_CW-bb.js"),__vite__mapDeps([63,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,59,50,55,60,53,37])).then(u,ue);case"kol-input-radio":return me(()=>import("./kol-input-radio.entry-CSi4kAiq.js"),__vite__mapDeps([64,5,9,46,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,45,44])).then(u,ue);case"kol-input-text":return me(()=>import("./kol-input-text.entry-DOgLyIci.js"),__vite__mapDeps([65,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,57,58,51,59,50,55,60,53,37])).then(u,ue);case"kol-kolibri":return me(()=>import("./kol-kolibri.entry-D2h8gNQ_.js"),__vite__mapDeps([66,14,13])).then(u,ue);case"kol-link":return me(()=>import("./kol-link.entry-CBFak7lS.js"),[]).then(u,ue);case"kol-link-button":return me(()=>import("./kol-link-button.entry-DdU33d_z.js"),[]).then(u,ue);case"kol-modal":return me(()=>import("./kol-modal.entry-CEp7ZLr5.js"),__vite__mapDeps([67,5,1,29])).then(u,ue);case"kol-nav":return me(()=>import("./kol-nav.entry-CFdteo4X.js"),__vite__mapDeps([68,41,1,5,13,9,23,24])).then(u,ue);case"kol-pagination":return me(()=>import("./kol-pagination.entry-KtRq3-5L.js"),[]).then(u,ue);case"kol-popover-button":return me(()=>import("./kol-popover-button.entry-m4J8xRbV.js"),[]).then(u,ue);case"kol-progress":return me(()=>import("./kol-progress.entry-BF4tX0vf.js"),__vite__mapDeps([69,1])).then(u,ue);case"kol-quote":return me(()=>import("./kol-quote.entry-Cwr6MWE6.js"),__vite__mapDeps([70,18,1,5])).then(u,ue);case"kol-select":return me(()=>import("./kol-select.entry-DTQCufY3.js"),[]).then(u,ue);case"kol-skip-nav":return me(()=>import("./kol-skip-nav.entry-BUhPIieC.js"),__vite__mapDeps([71,1,23,24])).then(u,ue);case"kol-spin":return me(()=>import("./kol-spin.entry-BmV7zPDu.js"),__vite__mapDeps([72,1,73,13,5])).then(u,ue);case"kol-split-button":return me(()=>import("./kol-split-button.entry-B5GkLmIr.js"),__vite__mapDeps([74,5,13])).then(u,ue);case"kol-table-stateful":return me(()=>import("./kol-table-stateful.entry-B5RmzgXh.js"),__vite__mapDeps([75,13,76,1,77])).then(u,ue);case"kol-table-stateless":return me(()=>import("./kol-table-stateless.entry-CtA5xRqQ.js"),[]).then(u,ue);case"kol-tabs":return me(()=>import("./kol-tabs.entry-C07RIaFG.js"),__vite__mapDeps([78,27,1,5,13,77])).then(u,ue);case"kol-textarea":return me(()=>import("./kol-textarea.entry-D1P12Mcl.js"),__vite__mapDeps([79,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,55,60,53,37,80,58])).then(u,ue);case"kol-toast-container":return me(()=>import("./kol-toast-container.entry-1AqQW2B2.js"),__vite__mapDeps([81,13,9,12,4,5,6,19])).then(u,ue);case"kol-toolbar":return me(()=>import("./kol-toolbar.entry-BoeUlOW7.js"),__vite__mapDeps([82,4,1,77,38])).then(u,ue);case"kol-tree":return me(()=>import("./kol-tree.entry-DiALeBzV.js"),[]).then(u,ue);case"kol-tree-item":return me(()=>import("./kol-tree-item.entry-B-Porrjr.js"),[]).then(u,ue);case"kol-version":return me(()=>import("./kol-version.entry-DKSFNIcV.js"),__vite__mapDeps([83,1,13])).then(u,ue);case"kol-alert-wc":return me(()=>import("./kol-alert-wc.entry-D5mvhAEk.js"),__vite__mapDeps([84,12,4,5,13,6,28,1,10])).then(u,ue);case"kol-avatar-wc":return me(()=>import("./kol-avatar-wc.entry-Dj3T9ebU.js"),__vite__mapDeps([85,14,34,1,13])).then(u,ue);case"kol-button-wc":return me(()=>import("./kol-button-wc.entry-Dpq7VZ9m.js"),__vite__mapDeps([86,18,40,87,88,7,41,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21,46,43])).then(u,ue);case"kol-card-wc":return me(()=>import("./kol-card-wc.entry-xZqmg19V.js"),__vite__mapDeps([90,28,1,13,10,12,4,5,6,19,9])).then(u,ue);case"kol-combobox":return me(()=>import("./kol-combobox.entry-C22d2KTt.js"),__vite__mapDeps([91,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,60,37,51])).then(u,ue);case"kol-input-range":return me(()=>import("./kol-input-range.entry-TJ6AJvR0.js"),__vite__mapDeps([93,4,5,39,40,7,41,1,42,27,43,21,18,13,20,12,6,48,17,15,49,44,9,46,50,51])).then(u,ue);case"kol-link-wc":return me(()=>import("./kol-link-wc.entry-4wLk9gOC.js"),__vite__mapDeps([94,18,40,87,88,7,41,95,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21])).then(u,ue);case"kol-pagination-wc":return me(()=>import("./kol-pagination-wc.entry-DjOv5DKA.js"),__vite__mapDeps([96,88,1,42,27,13,9,23])).then(u,ue);case"kol-popover-button-wc":return me(()=>import("./kol-popover-button-wc.entry-D-hUUj7q.js"),__vite__mapDeps([97,98,5,89,27])).then(u,ue);case"kol-popover-wc":return me(()=>import("./kol-popover-wc.entry-DEdy93Vz.js"),__vite__mapDeps([99,98,27,73,5])).then(u,ue);case"kol-select-wc":return me(()=>import("./kol-select-wc.entry-CJpU94m-.js"),__vite__mapDeps([100,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,46,56,36,37,38,80])).then(u,ue);case"kol-single-select":return me(()=>import("./kol-single-select.entry-DCaGuRw4.js"),__vite__mapDeps([101,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,36,37,38,60])).then(u,ue);case"kol-table-settings-wc":return me(()=>import("./kol-table-settings-wc.entry-CGQwOXX_.js"),__vite__mapDeps([102,4,13])).then(u,ue);case"kol-table-stateless-wc":return me(()=>import("./kol-table-stateless-wc.entry-BpaHo8VU.js"),__vite__mapDeps([103,5,13,76,1,77,9,21])).then(u,ue);case"kol-tooltip-wc":return me(()=>import("./kol-tooltip-wc.entry-DB2JG_iO.js"),__vite__mapDeps([104,98,27,1,12,4,5,13,6,16,17,18,19,20,21,29])).then(u,ue);case"kol-tree-item-wc":return me(()=>import("./kol-tree-item-wc.entry-C9sSVHl_.js"),__vite__mapDeps([105,5,95,1,8,9])).then(u,ue);case"kol-tree-wc":return me(()=>import("./kol-tree-wc.entry-BegDOeOF.js"),__vite__mapDeps([106,1])).then(u,ue);case"test-component":return me(()=>import("./test-component.entry-Ci6dYLLJ.js"),[]).then(u,ue)}}return me(()=>import(`./${s}.entry.js`),[]).then(u=>(Yf.set(s,u),u[i]),u=>{ue(u,n.$hostElement$)})},Us=new Map,vy=[],sj="r",dj="o",wb="s",uj="t",fj="c",Fi="s-id",zb="sty-id",U_="c-id",bj="{visibility:hidden}.hydrated{visibility:inherit}",gy="slot-fb{display:contents}slot-fb[hidden]{display:none}",H_="http://www.w3.org/1999/xlink",oo=typeof window<"u"?window:{},bo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,r,i)=>e.addEventListener(n,r,i),rel:(e,n,r,i)=>e.removeEventListener(n,r,i),ce:(e,n)=>new CustomEvent(e,n)},mj=(()=>{var e;let n=!1;try{(e=oo.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),hj=e=>Promise.resolve(e),bm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),jb=bm?!!oo.document&&Object.getOwnPropertyDescriptor(oo.document.adoptedStyleSheets,"length").writable:!1,_y=e=>hj().then(e),mm=e=>(e=typeof e,e==="object"||e==="function");function xy(e){var n,r,i;return(i=(r=(n=e.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?i:void 0}var pj=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),kj=class ha{static fromLocalValue(n){const r=n[Pf],i=Gf in n?n[Gf]:void 0;switch(r){case"string":return i;case"boolean":return i;case"bigint":return BigInt(i);case"undefined":return;case"null":return null;case"number":return i==="NaN"?NaN:i==="-0"?-0:i==="Infinity"?1/0:i==="-Infinity"?-1/0:i;case"array":return i.map(p=>ha.fromLocalValue(p));case"date":return new Date(i);case"map":const s=new Map;for(const[p,g]of i){const v=typeof p=="object"&&p!==null?ha.fromLocalValue(p):p,_=ha.fromLocalValue(g);s.set(v,_)}return s;case"object":const d={};for(const[p,g]of i)d[p]=ha.fromLocalValue(g);return d;case"regexp":const{pattern:u,flags:m}=i;return new RegExp(u,m);case"set":const h=new Set;for(const p of i)h.add(ha.fromLocalValue(p));return h;case"symbol":return Symbol(i);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(n){return n.map(r=>ha.fromLocalValue(r))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(Pf))return!1;const r=n[Pf];return Object.values({...py,...ky}).includes(r)?r!=="null"&&r!=="undefined"?n.hasOwnProperty(Gf):!0:!1}},vj={};nj(vj,{err:()=>yy,map:()=>gj,ok:()=>Sb,unwrap:()=>_j,unwrapErr:()=>xj});var Sb=e=>({isOk:!0,isErr:!1,value:e}),yy=e=>({isOk:!1,isErr:!0,value:e});function gj(e,n){if(e.isOk){const r=n(e.value);return r instanceof Promise?r.then(i=>Sb(i)):Sb(r)}if(e.isErr){const r=e.value;return yy(r)}throw"should never get here"}var _j=e=>{if(e.isOk)return e.value;throw e.value},xj=e=>{if(e.isErr)return e.value;throw e.value};function yj(e){return typeof e!="string"||!e.startsWith(yb)?e:kj.fromLocalValue(JSON.parse(atob(e.slice(yb.length))))}var Ti;function wj(e){var n;const r=this.attachShadow({mode:"open"});Ti===void 0&&(Ti=(n=void 0)!=null?n:null),Ti&&(jb?r.adoptedStyleSheets.push(Ti):r.adoptedStyleSheets=[...r.adoptedStyleSheets,Ti])}var wy=e=>{const n=Ur(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&zy(n,e.tagName).forEach(i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(jj(i,hm(i),!1).length?i.hidden=!0:i.hidden=!1)});let r=0;for(r=0;r<n.length;r++){const i=n[r];i.nodeType===1&&Ur(i,"childNodes").length&&wy(i)}},zj=e=>{const n=[];for(let r=0;r<e.length;r++){const i=e[r]["s-nr"]||void 0;i&&i.isConnected&&n.push(i)}return n};function zy(e,n,r){let i=0,s=[],d;for(;i<e.length;i++)d=e[i],d["s-sr"]&&(!n||d["s-hn"]===n)&&r===void 0&&s.push(d),s=[...s,...zy(d.childNodes,n,r)];return s}var jj=(e,n,r=!0)=>{const i=[];(r&&e["s-sr"]||!e["s-sr"])&&i.push(e);let s=e;for(;s=s.nextSibling;)hm(s)===n&&(r||!s["s-sr"])&&i.push(s);return i},F_=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",Sj=(e,n,r,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const d=n["s-cr"].parentNode,u=Ur(d,"appendChild");if(typeof i<"u"){s["s-oo"]=i;const m=Ur(d,"childNodes"),h=[s];m.forEach(p=>{p["s-nr"]&&h.push(p)}),h.sort((p,g)=>!p["s-oo"]||p["s-oo"]<(g["s-oo"]||0)?-1:!g["s-oo"]||g["s-oo"]<p["s-oo"]?1:0),h.forEach(p=>u.call(d,p))}else u.call(d,s);e["s-ol"]=s,e["s-sh"]=n["s-hn"]},hm=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function jy(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=r=>(function(i){const s=[],d=this["s-sn"];i?.flatten&&console.error(`
|
|
28
28
|
Flattening is not supported for Stencil non-shadow slots.
|
|
29
29
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
30
30
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
31
|
-
`);const u=this["s-cr"].parentElement;return(u.__childNodes?u.childNodes:zS(u.childNodes)).forEach(h=>{d===mm(h)&&s.push(h)}),r?s.filter(h=>h.nodeType===1):s}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function Ur(e,n){if("__"+n in e){const r=e["__"+n];return typeof r!="function"?r:r.bind(e)}else return typeof e[n]!="function"?e[n]:e[n].bind(e)}var $t=(e,n="")=>()=>{},TS=(e,n)=>()=>{},_l=new WeakMap,jy=(e,n,r)=>{let i=Is.get(e);fm&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=n:i.replaceSync(n)):i=n,Is.set(e,i)},Ty=(e,n,r)=>{var i;const s=hm(n,r),d=Is.get(s);if(!oo.document)return s;if(e=e.nodeType===11?e:oo.document,d)if(typeof d=="string"){e=e.head||e;let u=_l.get(e),m;if(u||_l.set(e,u=new Set),!u.has(s)){if(e.host&&(m=e.querySelector(`[${wb}="${s}"]`)))m.innerHTML=d;else{m=oo.document.createElement("style"),m.innerHTML=d;const h=(i=bo.$nonce$)!=null?i:xy(oo.document);if(h!=null&&m.setAttribute("nonce",h),!(n.$flags$&1))if(e.nodeName==="HEAD"){const p=e.querySelectorAll("link[rel=preconnect]"),g=p.length>0?p[p.length-1].nextSibling:e.querySelector("style");e.insertBefore(m,g?.parentNode===e?g:null)}else if("host"in e)if(fm){const p=new CSSStyleSheet;p.replaceSync(d),zb?e.adoptedStyleSheets.unshift(p):e.adoptedStyleSheets=[p,...e.adoptedStyleSheets]}else{const p=e.querySelector("style");p?p.innerHTML=d+p.innerHTML:e.prepend(m)}else e.append(m);n.$flags$&1&&e.insertBefore(m,null)}n.$flags$&4&&(m.innerHTML+=gy),u&&u.add(s)}}else e.adoptedStyleSheets.includes(d)||(zb?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d]);return s},AS=e=>{const n=e.$cmpMeta$,r=e.$hostElement$,i=n.$flags$,s=$t("attachStyles",n.$tagName$),d=Ty(r.shadowRoot?r.shadowRoot:r.getRootNode(),n,e.$modeName$);i&10&&(r["s-sc"]=d,r.classList.add(d+"-h")),s()},hm=(e,n)=>"sc-"+(n&&e.$flags$&32?e.$tagName$+"-"+n:e.$tagName$),CS=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ES=()=>{if(!oo.document)return;const e=oo.document.querySelectorAll(`[${wb}]`);let n=0;for(;n<e.length;n++)jy(e[n].getAttribute(wb),CS(e[n].innerHTML),!0)},Ay=(e,n,...r)=>{let i=null,s=null,d=null,u=!1,m=!1;const h=[],p=v=>{for(let _=0;_<v.length;_++)i=v[_],Array.isArray(i)?p(i):i!=null&&typeof i!="boolean"&&((u=typeof e!="function"&&!bm(i))&&(i=String(i)),u&&m?h[h.length-1].$text$+=i:h.push(u?jl(null,i):i),m=u)};if(p(r),n){n.key&&(s=n.key),n.name&&(d=n.name);{const v=n.className||n.class;v&&(n.class=typeof v!="object"?v:Object.keys(v).filter(_=>v[_]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,h,$S);const g=jl(e,null);return g.$attrs$=n,h.length>0&&(g.$children$=h),g.$key$=s,g.$name$=d,g},jl=(e,n)=>{const r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},LS={},OS=e=>e&&e.$tag$===LS,$S={forEach:(e,n)=>e.map(F_).forEach(n),map:(e,n)=>e.map(F_).map(n).map(NS)},F_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),NS=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),Ay(e.vtag,r,...e.vchildren||[])}const n=jl(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},BS=(e,n,r,i)=>{var s,d;const u=$t("hydrateClient",n),m=e.shadowRoot,h=[],p=[],g=[],v=m?[]:null,_=jl(n,null);_.$elm$=e,oo.document&&(!bo.$orgLocNodes$||!bo.$orgLocNodes$.size)&&Tb(oo.document.body,bo.$orgLocNodes$=new Map),e[Hi]=r,e.removeAttribute(Hi),i.$vnode$=jb(_,h,p,v,e,e,r,g);let z=0;const N=h.length;let j;for(z;z<N;z++){j=h[z];const Z=j.$hostId$+"."+j.$nodeId$,ee=bo.$orgLocNodes$.get(Z),se=j.$elm$;if(!m)se["s-hn"]=n.toUpperCase(),j.$tag$==="slot"&&(se["s-cr"]=e["s-cr"]);else if((s=j.$tag$)!=null&&s.toString().includes("-")&&j.$tag$!=="slot-fb"&&!j.$elm$.shadowRoot){const $e=nt(j.$elm$);if($e){const ce=hm($e.$cmpMeta$,j.$elm$.getAttribute("s-mode")),ne=oo.document.querySelector(`style[sty-id="${ce}"]`);ne&&e.shadowRoot.append(ne.cloneNode(!0))}}j.$tag$==="slot"&&(j.$name$=j.$elm$["s-sn"]||j.$elm$.name||null,j.$children$?(j.$flags$|=2,j.$elm$.childNodes.length||j.$children$.forEach($e=>{j.$elm$.appendChild($e.$elm$)})):j.$flags$|=1),ee&&ee.isConnected&&(ee.parentElement.shadowRoot&&ee["s-en"]===""&&ee.parentNode.insertBefore(se,ee.nextSibling),ee.parentNode.removeChild(ee),m||(se["s-oo"]=parseInt(j.$nodeId$))),ee&&!ee["s-id"]&&bo.$orgLocNodes$.delete(Z)}const O=[],E=g.length;let x=0,w,$,D,H;for(x;x<E;x++)if(w=g[x],!(!w||!w.length))for(D=w.length,$=0,$;$<D;$++){if(H=w[$],O[H.hostId]||(O[H.hostId]=bo.$orgLocNodes$.get(H.hostId)),!O[H.hostId])continue;const Z=O[H.hostId];Z.shadowRoot&&H.node.parentElement!==Z&&Z.appendChild(H.node),(!Z.shadowRoot||!m)&&(H.slot["s-cr"]||(H.slot["s-cr"]=Z["s-cr"],!H.slot["s-cr"]&&Z.shadowRoot?H.slot["s-cr"]=Z:H.slot["s-cr"]=(Z.__childNodes||Z.childNodes)[0]),jS(H.node,H.slot,!1,H.node["s-oo"]),(d=H.node.parentElement)!=null&&d.shadowRoot&&H.node.getAttribute&&H.node.getAttribute("slot")&&H.node.removeAttribute("slot"))}if(m){let Z=0;const ee=v.length;if(ee){for(Z;Z<ee;Z++){const se=v[Z];se&&m.appendChild(se)}Array.from(e.childNodes).forEach(se=>{typeof se["s-en"]!="string"&&typeof se["s-sn"]!="string"&&(se.nodeType===1&&se.slot&&se.hidden?se.removeAttribute("hidden"):(se.nodeType===8&&!se.nodeValue||se.nodeType===3&&!se.wholeText.trim())&&se.parentNode.removeChild(se))})}}i.$hostElement$=e,u()},jb=(e,n,r,i,s,d,u,m=[])=>{let h,p,g,v;if(d.nodeType===1){if(h=d.getAttribute(I_),h&&(p=h.split("."),p[0]===u||p[0]==="0")){g=K_({$flags$:0,$hostId$:p[0],$nodeId$:p[1],$depth$:p[2],$index$:p[3],$tag$:d.tagName.toLowerCase(),$elm$:d,$attrs$:{class:d.className||""}}),n.push(g),d.removeAttribute(I_),e.$children$||(e.$children$=[]);const z=g.$elm$.getAttribute("s-sn");typeof z=="string"&&(g.$tag$==="slot-fb"&&V_(z,p[2],g,d,e,n,r,i,m),g.$elm$["s-sn"]=z,g.$elm$.removeAttribute("s-sn")),g.$index$!==void 0&&(e.$children$[g.$index$]=g),e=g,i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$)}if(d.shadowRoot)for(v=d.shadowRoot.childNodes.length-1;v>=0;v--)jb(e,n,r,i,s,d.shadowRoot.childNodes[v],u,m);const _=d.__childNodes||d.childNodes;for(v=_.length-1;v>=0;v--)jb(e,n,r,i,s,_[v],u,m)}else if(d.nodeType===8){if(p=d.nodeValue.split("."),p[1]===u||p[1]==="0"){if(h=p[0],g=K_({$hostId$:p[1],$nodeId$:p[2],$depth$:p[3],$index$:p[4]||"0",$elm$:d,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),h===uS)g.$elm$=Z_(d,3),g.$elm$&&g.$elm$.nodeType===3&&(g.$text$=g.$elm$.textContent,n.push(g),d.remove(),u===g.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[g.$index$]=g),i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$));else if(h===fS)g.$elm$=Z_(d,8),g.$elm$&&g.$elm$.nodeType===8&&(n.push(g),d.remove());else if(g.$hostId$===u)if(h===yb){const _=d["s-sn"]=p[5]||"";V_(_,p[2],g,d,e,n,r,i,m)}else h===sS&&(i?d.remove():(s["s-cr"]=d,d["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const _=jl(null,d.textContent);_.$elm$=d,_.$index$="0",e.$children$=[_]}else d.nodeType===3&&!d.wholeText.trim()&&!d["s-nr"]&&d.remove();return e},Tb=(e,n)=>{if(e.nodeType===1){const r=e[Hi]||e.getAttribute(Hi);r&&n.set(r,e);let i=0;if(e.shadowRoot)for(;i<e.shadowRoot.childNodes.length;i++)Tb(e.shadowRoot.childNodes[i],n);const s=e.__childNodes||e.childNodes;for(i=0;i<s.length;i++)Tb(s[i],n)}else if(e.nodeType===8){const r=e.nodeValue.split(".");r[0]===dS&&(n.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},K_=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function V_(e,n,r,i,s,d,u,m,h){i["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";const p=s?.$elm$?s.$elm$["s-id"]||s.$elm$.getAttribute("s-id"):"";if(m&&oo.document){const g=r.$elm$=oo.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),s.$elm$.shadowRoot&&p&&p!==r.$hostId$?Ur(s.$elm$,"insertBefore")(g,Ur(s.$elm$,"children")[0]):Ur(Ur(i,"parentNode"),"insertBefore")(g,i),q_(h,n,e,i,r.$hostId$),i.remove(),r.$depth$==="0"&&(m[r.$index$]=r.$elm$)}else{const g=r.$elm$,v=p&&p!==r.$hostId$&&s.$elm$.shadowRoot;q_(h,n,e,i,v?p:r.$hostId$),Sy(i),v&&s.$elm$.insertBefore(g,s.$elm$.children[0])}d.push(r),u.push(r),s.$children$||(s.$children$=[]),s.$children$[r.$index$]=r}var q_=(e,n,r,i,s)=>{var d,u;let m=i.nextSibling;if(e[n]=e[n]||[],!(!m||(d=m.nodeValue)!=null&&d.startsWith(yb+".")))do m&&((m.getAttribute&&m.getAttribute("slot")||m["s-sn"])===r||r===""&&!m["s-sn"]&&(!m.getAttribute||!m.getAttribute("slot"))&&(m.nodeType===8||m.nodeType===3))&&(m["s-sn"]=r,e[n].push({slot:i,node:m,hostId:s})),m=m?.nextSibling;while(m&&!((u=m.nodeValue)!=null&&u.startsWith(yb+".")))},Z_=(e,n)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==n||!r.nodeValue));return r},pm=e=>{const n=pS(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};pm("::slotted");pm(":host");pm(":host-context");var RS=e=>vy.map(n=>n(e)).find(n=>!!n),DS=e=>vy.push(e),Ab=(e,n,r)=>typeof e=="string"&&e.startsWith(xb)?(e=yS(e),e):e!=null&&!bm(e)?n&4?e==="false"?!1:e===""||!!e:n&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:n&1?String(e):e:e,uD=e=>{var n;return(n=nt(e))==null?void 0:n.$hostElement$},MS=(e,n,r)=>{const i=bo.ce(n,r);return e.dispatchEvent(i),i},P_=(e,n,r,i,s,d,u)=>{if(r===i)return;let m=M_(e,n),h=n.toLowerCase();if(n==="class"){const p=e.classList,g=G_(r);let v=G_(i);if((e["s-si"]||e["s-sc"])&&u){const _=e["s-sc"]||e["s-si"];v.push(_),g.forEach(z=>{z.startsWith(_)&&v.push(z)}),v=[...new Set(v)].filter(z=>z),p.add(...v)}else p.remove(...g.filter(_=>_&&!v.includes(_))),p.add(...v.filter(_=>_&&!g.includes(_)))}else if(n==="style"){for(const p in r)(!i||i[p]==null)&&(p.includes("-")?e.style.removeProperty(p):e.style[p]="");for(const p in i)(!r||i[p]!==r[p])&&(p.includes("-")?e.style.setProperty(p,i[p]):e.style[p]=i[p])}else if(n!=="key")if(n==="ref")i&&i(e);else if(!m&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"?n=n.slice(3):M_(oo,h)?n=h.slice(2):n=h[2]+n.slice(3),r||i){const p=n.endsWith(Cy);n=n.replace(US,""),r&&bo.rel(e,n,r,p),i&&bo.ael(e,n,i,p)}}else{const p=bm(i);if((m||p&&i!==null)&&!s)try{if(e.tagName.includes("-"))e[n]!==i&&(e[n]=i);else{const v=i??"";n==="list"?m=!1:(r==null||e[n]!=v)&&(typeof e.__lookupSetter__(n)=="function"?e[n]=v:e.setAttribute(n,v))}}catch{}let g=!1;h!==(h=h.replace(/^xlink\:?/,""))&&(n=h,g=!0),i==null||i===!1?(i!==!1||e.getAttribute(n)==="")&&(g?e.removeAttributeNS(U_,n):e.removeAttribute(n)):(!m||d&4||s)&&!p&&e.nodeType===1&&(i=i===!0?"":i,g?e.setAttributeNS(U_,n,i):e.setAttribute(n,i))}},IS=/\s/,G_=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(IS)),Cy="Capture",US=new RegExp(Cy+"$"),Cb=(e,n,r,i)=>{const s=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,d=e&&e.$attrs$||{},u=n.$attrs$||{};for(const m of Y_(Object.keys(d)))m in u||P_(s,m,d[m],void 0,r,n.$flags$,i);for(const m of Y_(Object.keys(u)))P_(s,m,d[m],u[m],r,n.$flags$,i)};function Y_(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var Eb,td,Lb=!1,Us=!1,km=!1,Mn=!1,Hs=(e,n,r)=>{var i;const s=n.$children$[r];let d=0,u,m,h;if(Lb||(km=!0,s.$tag$==="slot"&&(s.$flags$|=s.$children$?2:1)),s.$text$!==null)u=s.$elm$=oo.document.createTextNode(s.$text$);else if(s.$flags$&1)u=s.$elm$=oo.document.createTextNode(""),Cb(null,s,Mn);else{if(Mn||(Mn=s.$tag$==="svg"),!oo.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(u=s.$elm$=oo.document.createElementNS(Mn?tS:rS,!Lb&&_a.slotRelocation&&s.$flags$&2?"slot-fb":s.$tag$),Mn&&s.$tag$==="foreignObject"&&(Mn=!1),Cb(null,s,Mn),s.$children$)for(d=0;d<s.$children$.length;++d)m=Hs(e,s,d),m&&u.appendChild(m);s.$tag$==="svg"?Mn=!1:u.tagName==="foreignObject"&&(Mn=!0)}return u["s-hn"]=td,s.$flags$&3&&(u["s-sr"]=!0,u["s-cr"]=Eb,u["s-sn"]=s.$name$||"",u["s-rf"]=(i=s.$attrs$)==null?void 0:i.ref,Sy(u),h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===s.$tag$&&e.$elm$&&Fi(e.$elm$,!1)),u},Fi=(e,n)=>{bo.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);for(let i=r.length-1;i>=0;i--){const s=r[i];s["s-hn"]!==td&&s["s-ol"]&&(Hr(Ki(s).parentNode,s,Ki(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,km=!0),n&&Fi(s,n)}bo.$flags$&=-2},Ey=(e,n,r,i,s,d)=>{let u=e["s-cr"]&&e["s-cr"].parentNode||e,m;for(u.shadowRoot&&u.tagName===td&&(u=u.shadowRoot);s<=d;++s)i[s]&&(m=Hs(null,r,s),m&&(i[s].$elm$=m,Hr(u,m,Ki(n))))},Ly=(e,n,r)=>{for(let i=n;i<=r;++i){const s=e[i];if(s){const d=s.$elm$;$y(s),d&&(Us=!0,d["s-ol"]?d["s-ol"].remove():Fi(d,!0),d.remove())}}},HS=(e,n,r,i,s=!1)=>{let d=0,u=0,m=0,h=0,p=n.length-1,g=n[0],v=n[p],_=i.length-1,z=i[0],N=i[_],j,O;for(;d<=p&&u<=_;)if(g==null)g=n[++d];else if(v==null)v=n[--p];else if(z==null)z=i[++u];else if(N==null)N=i[--_];else if(ks(g,z,s))kl(g,z,s),g=n[++d],z=i[++u];else if(ks(v,N,s))kl(v,N,s),v=n[--p],N=i[--_];else if(ks(g,N,s))(g.$tag$==="slot"||N.$tag$==="slot")&&Fi(g.$elm$.parentNode,!1),kl(g,N,s),Hr(e,g.$elm$,v.$elm$.nextSibling),g=n[++d],N=i[--_];else if(ks(v,z,s))(g.$tag$==="slot"||N.$tag$==="slot")&&Fi(v.$elm$.parentNode,!1),kl(v,z,s),Hr(e,v.$elm$,g.$elm$),v=n[--p],z=i[++u];else{for(m=-1,h=d;h<=p;++h)if(n[h]&&n[h].$key$!==null&&n[h].$key$===z.$key$){m=h;break}m>=0?(O=n[m],O.$tag$!==z.$tag$?j=Hs(n&&n[u],r,m):(kl(O,z,s),n[m]=void 0,j=O.$elm$),z=i[++u]):(j=Hs(n&&n[u],r,u),z=i[++u]),j&&Hr(Ki(g.$elm$).parentNode,j,Ki(g.$elm$))}d>p?Ey(e,i[_+1]==null?null:i[_+1].$elm$,r,i,u,_):u>_&&Ly(n,d,p)},ks=(e,n,r=!1)=>e.$tag$===n.$tag$?e.$tag$==="slot"?e.$name$===n.$name$:r?(r&&!e.$key$&&n.$key$&&(e.$key$=n.$key$),!0):e.$key$===n.$key$:!1,Ki=e=>e&&e["s-ol"]||e,kl=(e,n,r=!1)=>{const i=n.$elm$=e.$elm$,s=e.$children$,d=n.$children$,u=n.$tag$,m=n.$text$;let h;m===null?(Mn=u==="svg"?!0:u==="foreignObject"?!1:Mn,Cb(e,n,Mn,r),s!==null&&d!==null?HS(i,s,n,d,r):d!==null?(e.$text$!==null&&(i.textContent=""),Ey(i,null,n,d,0,d.length-1)):!r&&_a.updatable&&s!==null?Ly(s,0,s.length-1):r&&_a.updatable&&s!==null&&d===null&&(n.$children$=s),Mn&&u==="svg"&&(Mn=!1)):(h=i["s-cr"])?h.parentNode.textContent=m:e.$text$!==m&&(i.data=m)},tr=[],Oy=e=>{let n,r,i;const s=e.__childNodes||e.childNodes;for(const d of s){if(d["s-sr"]&&(n=d["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const u=d["s-sn"];for(i=r.length-1;i>=0;i--)if(n=r[i],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==d["s-hn"])if(H_(n,u)){let m=tr.find(h=>h.$nodeToRelocate$===n);Us=!0,n["s-sn"]=n["s-sn"]||u,m?(m.$nodeToRelocate$["s-sh"]=d["s-hn"],m.$slotRefNode$=d):(n["s-sh"]=d["s-hn"],tr.push({$slotRefNode$:d,$nodeToRelocate$:n})),n["s-sr"]&&tr.map(h=>{H_(h.$nodeToRelocate$,n["s-sn"])&&(m=tr.find(p=>p.$nodeToRelocate$===n),m&&!h.$slotRefNode$&&(h.$slotRefNode$=m.$slotRefNode$))})}else tr.some(m=>m.$nodeToRelocate$===n)||tr.push({$nodeToRelocate$:n})}d.nodeType===1&&Oy(d)}},$y=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map($y)},Hr=(e,n,r)=>e?.insertBefore(n,r),FS=(e,n,r=!1)=>{var i,s,d,u;const m=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||jl(null,null),v=OS(n)?n:Ay(null,null,n);if(td=m.tagName,h.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},h.$attrsToReflect$.forEach(([_,z])=>{v.$attrs$[z]=m[_]})),r&&v.$attrs$)for(const _ of Object.keys(v.$attrs$))m.hasAttribute(_)&&!["key","ref","style","class"].includes(_)&&(v.$attrs$[_]=m[_]);v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=p.$elm$=m.shadowRoot||m,Lb=!!(h.$flags$&1)&&!(h.$flags$&128),Eb=m["s-cr"],Us=!1,kl(p,v,r);{if(bo.$flags$|=1,km){Oy(v.$elm$);for(const _ of tr){const z=_.$nodeToRelocate$;if(!z["s-ol"]&&oo.document){const N=oo.document.createTextNode("");N["s-nr"]=z,Hr(z.parentNode,z["s-ol"]=N,z)}}for(const _ of tr){const z=_.$nodeToRelocate$,N=_.$slotRefNode$;if(N){const j=N.parentNode;let O=N.nextSibling;{let w=(i=z["s-ol"])==null?void 0:i.previousSibling;for(;w;){let $=(s=w["s-nr"])!=null?s:null;if($&&$["s-sn"]===z["s-sn"]&&j===($.__parentNode||$.parentNode)){for($=$.nextSibling;$===z||$?.["s-sr"];)$=$?.nextSibling;if(!$||!$["s-nr"]){O=$;break}}w=w.previousSibling}}const E=z.__parentNode||z.parentNode,x=z.__nextSibling||z.nextSibling;(!O&&j!==E||x!==O)&&z!==O&&(!z["s-hn"]&&z["s-ol"]&&(z["s-hn"]=z["s-ol"].parentNode.nodeName),Hr(j,z,O),z.nodeType===1&&z.tagName!=="SLOT-FB"&&(z.hidden=(d=z["s-ih"])!=null?d:!1)),z&&typeof N["s-rf"]=="function"&&N["s-rf"](N)}else z.nodeType===1&&(r&&(z["s-ih"]=(u=z.hidden)!=null?u:!1),z.hidden=!0)}}Us&&wy(v.$elm$),bo.$flags$&=-2,tr.length=0}Eb=void 0},Ny=(e,n)=>{if(n&&!e.$onRenderResolve$&&n["s-p"]){const r=n["s-p"].push(new Promise(i=>e.$onRenderResolve$=()=>{n["s-p"].splice(r-1,1),i()}))}},vm=(e,n)=>{if(e.$flags$&4){e.$flags$|=512;return}Ny(e,e.$ancestorComponent$);const r=()=>KS(e,n);if(n){queueMicrotask(()=>{r()});return}return r()},KS=(e,n)=>{const r=e.$hostElement$,i=$t("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;if(!s)throw new Error(`Can't render component <${r.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 d;return n?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([u,m])=>ar(s,u,m,r)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(u=>u(r)),d=ar(s,"componentWillLoad",void 0,r)):d=ar(s,"componentWillUpdate",void 0,r),d=J_(d,()=>ar(s,"componentWillRender",void 0,r)),i(),J_(d,()=>qS(e,s,n))},J_=(e,n)=>VS(e)?e.then(n).catch(r=>{console.error(r),n()}):n(),VS=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qS=async(e,n,r)=>{var i;const s=e.$hostElement$,d=$t("update",e.$cmpMeta$.$tagName$),u=s["s-rc"];r&&AS(e);const m=$t("render",e.$cmpMeta$.$tagName$);ZS(e,n,s,r),u&&(u.map(h=>h()),s["s-rc"]=void 0),m(),d();{const h=(i=s["s-p"])!=null?i:[],p=()=>PS(e);h.length===0?p():(Promise.all(h).then(p),e.$flags$|=4,h.length=0)}},ZS=(e,n,r,i)=>{try{n=n.render&&n.render(),e.$flags$|=2,FS(e,n,i)}catch(s){ue(s,e.$hostElement$)}return null},PS=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=$t("postUpdate",n),s=e.$lazyInstance$,d=e.$ancestorComponent$;ar(s,"componentDidRender",void 0,r),e.$flags$&64?(ar(s,"componentDidUpdate",void 0,r),i()):(e.$flags$|=64,GS(r),ar(s,"componentDidLoad",void 0,r),i(),e.$onReadyResolve$(r),d||By()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&_y(()=>vm(e,!1)),e.$flags$&=-517},By=e=>{var n;_y(()=>MS(oo,"appload",{detail:{namespace:eS}})),(n=bo.$orgLocNodes$)!=null&&n.size&&bo.$orgLocNodes$.clear()},ar=(e,n,r,i)=>{if(e&&e[n])try{return e[n](r)}catch(s){ue(s,i)}},GS=e=>{var n;return e.classList.add((n=_a.hydratedSelectorName)!=null?n:"hydrated")},YS=(e,n)=>nt(e).$instanceValues$.get(n),Yf=(e,n,r,i)=>{const s=nt(e);if(!s)return;if(!s)throw new Error(`Couldn't find host element for "${i.$tagName$}" 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 d=s.$hostElement$,u=s.$instanceValues$.get(n),m=s.$flags$,h=s.$lazyInstance$;r=Ab(r,i.$members$[n][0]);const p=Number.isNaN(u)&&Number.isNaN(r),g=r!==u&&!p;if((!(m&8)||u===void 0)&&g&&(s.$instanceValues$.set(n,r),h)){if(i.$watchers$&&m&128){const v=i.$watchers$[n];v&&v.map(_=>{try{h[_](r,u,n)}catch(z){ue(z,d)}})}if((m&18)===2){if(h.componentShouldUpdate&&h.componentShouldUpdate(r,u,n)===!1)return;vm(s,!1)}}},Ry=(e,n,r)=>{var i,s;const d=e.prototype;if(n.$members$||_a.propChangeCallback){e.watchers&&!n.$watchers$&&(n.$watchers$=e.watchers),e.deserializers&&!n.$deserializers$&&(n.$deserializers$=e.deserializers),e.serializers&&!n.$serializers$&&(n.$serializers$=e.serializers);const u=Object.entries((i=n.$members$)!=null?i:{});if(u.map(([m,[h]])=>{if(h&31||r&2&&h&32){const{get:p,set:g}=Object.getOwnPropertyDescriptor(d,m)||{};p&&(n.$members$[m][0]|=2048),g&&(n.$members$[m][0]|=4096),(r&1||!p)&&Object.defineProperty(d,m,{get(){{if((n.$members$[m][0]&2048)===0)return YS(this,m);const v=nt(this),_=v?v.$lazyInstance$:d;return _?_[m]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(d,m,{set(v){const _=nt(this);if(_){if(g){typeof(h&32?this[m]:_.$hostElement$[m])>"u"&&_.$instanceValues$.get(m)&&(v=_.$instanceValues$.get(m)),g.apply(this,[Ab(v,h)]),v=h&32?this[m]:_.$hostElement$[m],Yf(this,m,v,n);return}{if((r&1)===0||(n.$members$[m][0]&4096)===0){Yf(this,m,v,n),r&1&&!_.$lazyInstance$&&_.$fetchedCbList$.push(()=>{n.$members$[m][0]&4096&&_.$lazyInstance$[m]!==_.$instanceValues$.get(m)&&(_.$lazyInstance$[m]=v)});return}const z=()=>{const N=_.$lazyInstance$[m];!_.$instanceValues$.get(m)&&N&&_.$instanceValues$.set(m,N),_.$lazyInstance$[m]=Ab(v,h),Yf(this,m,_.$lazyInstance$[m],n)};_.$lazyInstance$?z():_.$fetchedCbList$.push(()=>{z()})}}}})}else r&1&&h&64&&Object.defineProperty(d,m,{value(...p){var g;const v=nt(this);return(g=v?.$onInstancePromise$)==null?void 0:g.then(()=>{var _;return(_=v.$lazyInstance$)==null?void 0:_[m](...p)})}})}),r&1){const m=new Map;d.attributeChangedCallback=function(h,p,g){bo.jmp(()=>{var v;const _=m.get(h),z=nt(this);if(this.hasOwnProperty(_)&&_a.lazyLoad&&(g=this[_],delete this[_]),d.hasOwnProperty(_)&&typeof this[_]=="number"&&this[_]==g)return;if(_==null){const O=z?.$flags$;if(z&&O&&!(O&8)&&O&128&&g!==p){const E=z.$lazyInstance$,x=(v=n.$watchers$)==null?void 0:v[h];x?.forEach(w=>{E[w]!=null&&E[w].call(E,g,p,h)})}return}const N=u.find(([O])=>O===_);N&&N[1][0]&4&&(g=!(g===null||g==="false"));const j=Object.getOwnPropertyDescriptor(d,_);g!=this[_]&&(!j.get||j.set)&&(this[_]=g)})},e.observedAttributes=Array.from(new Set([...Object.keys((s=n.$watchers$)!=null?s:{}),...u.filter(([h,p])=>p[0]&31).map(([h,p])=>{var g;const v=p[1]||h;return m.set(v,h),p[0]&512&&((g=n.$attrsToReflect$)==null||g.push([h,v])),v})]))}}return e},JS=async(e,n,r,i)=>{let s;if((n.$flags$&32)===0){if(n.$flags$|=32,r.$lazyBundleId$){const h=cS(r,n);if(h&&"then"in h){const g=TS();s=await h,g()}else s=h;if(!s)throw new Error(`Constructor for "${r.$tagName$}#${n.$modeName$}" was not found`);s.isProxied||(r.$watchers$=s.watchers,r.$serializers$=s.serializers,r.$deserializers$=s.deserializers,Ry(s,r,2),s.isProxied=!0);const p=$t("createInstance",r.$tagName$);n.$flags$|=8;try{new s(n)}catch(g){ue(g,e)}n.$flags$&=-9,n.$flags$|=128,p(),Ob(n.$lazyInstance$,e)}else{s=e.constructor;const h=e.localName;customElements.whenDefined(h).then(()=>n.$flags$|=128)}if(s&&s.style){let h;typeof s.style=="string"?h=s.style:typeof s.style!="string"&&(n.$modeName$=RS(e),n.$modeName$&&(h=s.style[n.$modeName$]));const p=hm(r,n.$modeName$);if(!Is.has(p)){const g=$t("registerStyles",r.$tagName$);jy(p,h,!!(r.$flags$&1)),g()}}}const d=n.$ancestorComponent$,u=()=>vm(n,!0);d&&d["s-rc"]?d["s-rc"].push(u):u()},Ob=(e,n)=>{ar(e,"connectedCallback",void 0,n)},XS=e=>{if((bo.$flags$&1)===0){const n=nt(e);if(!n)return;const r=n.$cmpMeta$,i=$t("connectedCallback",r.$tagName$);if(n.$flags$&1)Dy(e,n,r.$listeners$),n?.$lazyInstance$?Ob(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>Ob(n.$lazyInstance$,e));else{n.$flags$|=1;let s;if(s=e.getAttribute(Hi),s){if(r.$flags$&1){const d=Ty(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(d+"-h",d+"-s")}BS(e,r.$tagName$,s,n)}s||r.$flags$&12&&WS(e);{let d=e;for(;d=d.parentNode||d.host;)if(d.nodeType===1&&d.hasAttribute("s-id")&&d["s-p"]||d["s-p"]){Ny(n,n.$ancestorComponent$=d);break}}r.$members$&&Object.entries(r.$members$).map(([d,[u]])=>{if(u&31&&d in e&&e[d]!==Object.prototype[d]){const m=e[d];delete e[d],e[d]=m}}),JS(e,n,r)}i()}},WS=e=>{if(!oo.document)return;const n=e["s-cr"]=oo.document.createComment("");n["s-cn"]=!0,Hr(e,n,e.firstChild)},X_=(e,n)=>{ar(e,"disconnectedCallback",void 0,n||e)},QS=async e=>{if((bo.$flags$&1)===0){const n=nt(e);n?.$rmListeners$&&(n.$rmListeners$.map(r=>r()),n.$rmListeners$=void 0),n?.$lazyInstance$?X_(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>X_(n.$lazyInstance$,e))}_l.has(e)&&_l.delete(e),e.shadowRoot&&_l.has(e.shadowRoot)&&_l.delete(e.shadowRoot)},ej=(e,n={})=>{var r;if(!oo.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=$t(),s=[],d=n.exclude||[],u=oo.customElements,m=oo.document.head,h=m.querySelector("meta[charset]"),p=oo.document.createElement("style"),g=[];let v,_=!0;Object.assign(bo,n),bo.$resourcesUrl$=new URL(n.resourcesUrl||"./",oo.document.baseURI).href,bo.$flags$|=2,ES();let z=!1;if(e.map(N=>{N[1].map(j=>{var O,E,x;const w={$flags$:j[0],$tagName$:j[1],$members$:j[2],$listeners$:j[3]};w.$flags$&4&&(z=!0),w.$members$=j[2],w.$listeners$=j[3],w.$attrsToReflect$=[],w.$watchers$=(O=j[4])!=null?O:{},w.$serializers$=(E=j[5])!=null?E:{},w.$deserializers$=(x=j[6])!=null?x:{};const $=n.transformTagName?n.transformTagName(w.$tagName$):w.$tagName$,D=class extends HTMLElement{constructor(H){if(super(H),this.hasRegisteredEventListeners=!1,H=this,iS(H,w),w.$flags$&1){if(!H.shadowRoot)wS.call(H,w);else if(H.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${w.$tagName$}! Mode is set to ${H.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const H=nt(this);H&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Dy(this,H,w.$listeners$)),v&&(clearTimeout(v),v=null),_?g.push(this):bo.jmp(()=>XS(this)))}disconnectedCallback(){bo.jmp(()=>QS(this)),bo.raf(()=>{var H;const Z=nt(this);if(!Z)return;const ee=g.findIndex(se=>se===this);ee>-1&&g.splice(ee,1),((H=Z?.$vnode$)==null?void 0:H.$elm$)instanceof Node&&!Z.$vnode$.$elm$.isConnected&&delete Z.$vnode$.$elm$})}componentOnReady(){var H;return(H=nt(this))==null?void 0:H.$onReadyPromise$}};w.$lazyBundleId$=N[0],!d.includes($)&&!u.get($)&&(s.push($),u.define($,Ry(D,w,1)))})}),s.length>0&&(z&&(p.textContent+=gy),p.textContent+=s.sort()+bS,p.innerHTML.length)){p.setAttribute("data-styles","");const N=(r=bo.$nonce$)!=null?r:xy(oo.document);N!=null&&p.setAttribute("nonce",N),m.insertBefore(p,h?h.nextSibling:m.firstChild)}_=!1,g.length?g.map(N=>N.connectedCallback()):bo.jmp(()=>v=setTimeout(By,30)),i()},fD=(e,n)=>n,Dy=(e,n,r,i)=>{r&&oo.document&&r.map(([s,d,u])=>{const m=nj(oo.document,e,s),h=oj(n,u),p=tj(s);bo.ael(m,d,h,p),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>bo.rel(m,d,h,p))})},oj=(e,n)=>r=>{var i;try{e.$flags$&256?(i=e.$lazyInstance$)==null||i[n](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}catch(s){ue(s,e.$hostElement$)}},nj=(e,n,r)=>r&8?oo:n,tj=e=>mS?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,rj=()=>{DS(e=>{try{e.shadowRoot instanceof ShadowRoot&&e5(e,I6(e))}catch{}return"default"}),me(()=>import("./devtools-BjOG8v-K-C-0OumAv.js"),__vite__mapDeps([107,9])).then(e=>{typeof e=="object"&&e!==null&&typeof e.initialize=="function"&&e.initialize()}).catch(e=>{Oo.error(e)})};const aj=rj;const lj=async(e,n)=>{if(!(typeof window>"u"))return await aj(),ej(JSON.parse('[["kol-abbr",[[289,"kol-abbr",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["kol-accordion",[[289,"kol-accordion",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-alert",[[289,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]],["kol-alert-wc",[[260,"kol-alert-wc",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]},null,{"_alert":["validateAlert"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_type":["validateType"],"_variant":["validateVariant"]}]]],["kol-avatar",[[289,"kol-avatar",{"_color":[1],"_src":[1],"_label":[1]}]]],["kol-avatar-wc",[[256,"kol-avatar-wc",{"_color":[1],"_src":[1],"_label":[1],"state":[32]},null,{"_color":["validateColor"],"_src":["validateSrc"],"_label":["validateLabel"]}]]],["kol-badge",[[289,"kol-badge",{"_color":[1],"_icons":[1],"_label":[1],"_smartButton":[1,"_smart-button"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_icons":["validateIcons"],"_color":["validateColor"],"_smartButton":["validateSmartButton"]}]]],["kol-breadcrumb",[[289,"kol-breadcrumb",{"_label":[1],"_links":[1],"state":[32]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-button",[[289,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-link",[[289,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_variant":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-wc",[[260,"kol-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaHasPopup":[1,"_aria-has-popup"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaSelected":["validateAriaSelected"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_icons":["validateIcons"],"_id":["validateId"],"_inline":["validateInline"],"_label":["validateLabel"],"_name":["validateName"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_tooltipAlign":["validateTooltipAlign"],"_type":["validateType"],"_value":["validateValue"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-card",[[289,"kol-card",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2]}]]],["kol-card-wc",[[260,"kol-card-wc",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"state":[32]},null,{"_on":["validateOn"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"]}]]],["kol-combobox",[[289,"kol-combobox",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_hideClearButton":[4,"_hide-clear-button"],"_suggestions":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"blockSuggestionMouseOver":[32],"_isOpen":[32],"_filteredSuggestions":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[0,"keydown","handleKeyDown"],[8,"click","handleWindowClick"],[1,"mousemove","handleMouseEvent"],[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_hideClearButton":["validateHideClearButton"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-details",[[289,"kol-details",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-drawer",[[289,"kol-drawer",{"_open":[4],"_align":[1],"_hasCloser":[4,"_has-closer"],"_label":[1],"_on":[16],"state":[32],"open":[64],"close":[64]},null,{"_label":["validateLabel"],"_align":["validateAlign"],"_hasCloser":["validateHasCloser"],"_open":["validateOpen"],"_on":["validateOn"]}]]],["kol-form",[[289,"kol-form",{"_on":[16],"_requiredText":[8,"_required-text"],"_errorList":[16],"state":[32],"focusErrorList":[64]},null,{"_on":["validateOn"],"_requiredText":["validateRequiredText"],"_errorList":["validateErrorList"]}]]],["kol-heading",[[289,"kol-heading",{"_label":[1],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"],"state":[32]},null,{"_label":["validateLabel"],"_level":["validateLevel"],"_secondaryHeadline":["validateSecondaryHeadline"]}]]],["kol-icon",[[289,"kol-icon",{"_icons":[1],"_label":[1],"state":[32]},null,{"_icons":["validateIcons"],"_label":["validateLabel"]}]]],["kol-image",[[289,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"state":[32]},null,{"_alt":["validateAlt"],"_loading":["validateLoading"],"_sizes":["validateSizes"],"_src":["validateSrc"],"_srcset":["validateSrcset"]}]]],["kol-input-checkbox",[[289,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_checked":[1540],"_hideMsg":[4,"_hide-msg"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_indeterminate":[1540],"_label":[1],"_labelAlign":[1,"_label-align"],"_msg":[1],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"_variant":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_checked":["validateChecked"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_indeterminate":["validateIndeterminate"],"_label":["validateLabel"],"_labelAlign":["validateLabelAlign"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-input-color",[[289,"kol-input-color",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-date",[[289,"kol-input-date",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[1],"_min":[1],"_msg":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[8],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"_initialValueType":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-input-email",[[289,"kol-input-email",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_maxLengthBehavior":["validateMaxLengthBehavior"]}]]],["kol-input-file",[[289,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"filename":[32],"hasFileSelected":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accept":["validateAccept"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"]}]]],["kol-input-number",[[289,"kol-input-number",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[8],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-password",[[289,"kol-input-password",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"state":[32],"_passwordVisible":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_variant":["validateVariant"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-radio",[[289,"kol-input-radio",{"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_tooltipAlign":["validateTooltipAlign"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_hideMsg":["validateHideMsg"],"_hint":["validateHint"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_orientation":["validateOrientation"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-range",[[289,"kol-input-range",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_step":[8],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"focus":[64],"kolFocus":[64],"getValue":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_step":["validateStep"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-text",[[289,"kol-input-text",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"selectionStart":[64],"selectioconEnd":[64],"setSelectionRange":[64],"setSelectionStart":[64],"setRangeText":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-kolibri",[[289,"kol-kolibri",{"_color":[1],"_labeled":[4],"state":[32]},null,{"_color":["validateColor"],"_labeled":["validateLabeled"]}]]],["kol-link",[[289,"kol-link",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_variant":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"focus":[64],"kolFocus":[64]}]]],["kol-link-button",[[289,"kol-link-button",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"focus":[64],"kolFocus":[64]}]]],["kol-link-wc",[[260,"kol-link-wc",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaOwns":[1,"_aria-owns"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_tabIndex":[2,"_tab-index"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaCurrentValue":["validateAriaCurrentValue"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaOwns":["validateAriaOwns"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_download":["validateDownload"],"_hideLabel":["validateHideLabel"],"_href":["validateHref"],"_icons":["validateIcons"],"_inline":["validateInline"],"_label":["validateLabel"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_tabIndex":["validateTabIndex"],"_target":["validateTarget"],"_tooltipAlign":["validateTooltipAlign"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-modal",[[289,"kol-modal",{"_label":[1],"_on":[16],"_width":[1],"_variant":[1],"state":[32],"openModal":[64],"closeModal":[64]},null,{"_label":["validateLabel"],"_on":["validateOn"],"_width":["validateWidth"],"_variant":["validateVariant"]}]]],["kol-nav",[[289,"kol-nav",{"_collapsible":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hasIconsWhenExpanded":[4,"_has-icons-when-expanded"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"_orientation":[1],"state":[32]},null,{"_collapsible":["validateCollapsible"],"_hasCompactButton":["validateHasCompactButton"],"_hasIconsWhenExpanded":["validateHasIconsWhenExpanded"],"_hideLabel":["validateHideLabel"],"_label":["validateLabel"],"_links":["validateLinks"],"_orientation":["validateOrientation"]}]]],["kol-pagination",[[289,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2]}]]],["kol-pagination-wc",[[256,"kol-pagination-wc",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2],"state":[32]},null,{"_boundaryCount":["validateBoundaryCount"],"_customClass":["validateCustomClass"],"_label":["validateLabel"],"_hasButtons":["validateHasButtons"],"_on":["validateOn"],"_page":["validatePage"],"_pageSize":["validatePageSize"],"_pageSizeOptions":["validatePageSizeOptions"],"_siblingCount":["validateSiblingCount"],"_max":["validateMax"],"_tooltipAlign":["validateTooltipAlign"]}]]],["kol-popover-button",[[289,"kol-popover-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]}]]],["kol-popover-button-wc",[[260,"kol-popover-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"justClosed":[32],"popoverOpen":[32],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]},null,{"_inline":["validateInline"],"_popoverAlign":["validatePopoverAlign"]}]]],["kol-popover-wc",[[260,"kol-popover-wc",{"_align":[1],"_on":[16],"_show":[1540],"state":[32]},null,{"_align":["validateAlign"],"_on":["validateOn"],"_show":["validateShow"]}]]],["kol-progress",[[289,"kol-progress",{"_label":[1],"_max":[2],"_unit":[1],"_value":[2],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_max":["validateMax"],"_unit":["validateUnit"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-quote",[[289,"kol-quote",{"_label":[1],"_href":[1],"_quote":[1],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_href":["validateHref"],"_quote":["validateQuote"],"_variant":["validateVariant"]}]]],["kol-select",[[289,"kol-select",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-select-wc",[[256,"kol-select-wc",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-single-select",[[289,"kol-single-select",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_hideClearButton":[4,"_hide-clear-button"],"_rows":[2],"_isOpen":[32],"_filteredOptions":[32],"_inputValue":[32],"blockSuggestionMouseOver":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"],[0,"keydown","handleKeyDown"],[1,"mousemove","handleMouseEvent"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_hideClearButton":["validateHideClearButton"],"_rows":["validateRows"]}]]],["kol-skip-nav",[[289,"kol-skip-nav",{"_label":[1],"_links":[1],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-spin",[[289,"kol-spin",{"_show":[1540],"_label":[1],"_variant":[1],"state":[32]},null,{"_show":["validateShow"],"_label":["validateLabel"],"_variant":["validateVariant"]}]]],["kol-split-button",[[289,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"closePopup":[64]}]]],["kol-table-settings-wc",[[256,"kol-table-settings-wc",{"_tableSettings":[16],"tableSettings":[32],"errorMessage":[32]},null,{"_tableSettings":["handleTableSettingsChange"]}]]],["kol-table-stateful",[[289,"kol-table-stateful",{"_allowMultiSort":[4,"_allow-multi-sort"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_headers":[1],"_label":[1],"_minWidth":[1,"_min-width"],"_pagination":[8],"_paginationPosition":[1,"_pagination-position"],"_selection":[1],"_on":[16],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"getSelection":[64]},null,{"_allowMultiSort":["validateAllowMultiSort"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_paginationPosition":["validatePaginationPosition"],"_hasSettingsMenu":["validateHasSettingsMenu"],"_headers":["validateHeaders"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_selection":["validateSelection"],"_on":["validateOn"],"_tableSettings":["validateTableSettings"],"_pagination":["validatePagination"]}]]],["kol-table-stateless",[[289,"kol-table-stateless",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"]}]]],["kol-table-stateless-wc",[[256,"kol-table-stateless-wc",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"tableDivElementHasScrollbar":[32],"previousHeaderCells":[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{"_hasSettingsMenu":["validateHasSettingsMenu"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_headerCells":["validateHeaderCells"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_on":["validateOn"],"_selection":["validateSelection"],"_tableSettings":["validateTableSettings"]}]]],["kol-tabs",[[289,"kol-tabs",{"_align":[1],"_behavior":[1],"_hasCreateButton":[4,"_has-create-button"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"state":[32]},null,{"_align":["validateAlign"],"_behavior":["validateBehavior"],"_hasCreateButton":["validateHasCreateButton"],"_label":["validateLabel"],"_on":["validateOn"],"_selected":["validateSelected"],"_tabs":["validateTabs"]}]]],["kol-textarea",[[289,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_adjustHeight":["validateAdjustHeight"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_resize":["validateResize"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-toast-container",[[289,"kol-toast-container",{"state":[32],"enqueue":[64],"closeAll":[64]}]]],["kol-toolbar",[[289,"kol-toolbar",{"_label":[1],"_items":[16],"_orientation":[1],"state":[32],"currentIndex":[32]},[[0,"keydown","handleKeyDown"],[2,"blur","handleBlur"]],{"_label":["validateLabel"],"_items":["validateItems"],"_orientation":["validateOrientation"]}]]],["kol-tooltip-wc",[[256,"kol-tooltip-wc",{"_badgeText":[1,"_badge-text"],"_align":[1],"_id":[1],"_label":[1],"state":[32],"hideTooltip":[64]},null,{"_badgeText":["validateBadgeText"],"_align":["validateAlign"],"_id":["validateId"],"_label":["validateLabel"]}]]],["kol-tree",[[289,"kol-tree",{"_label":[1]}]]],["kol-tree-item",[[289,"kol-tree-item",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]}]]],["kol-tree-item-wc",[[260,"kol-tree-item-wc",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"level":[32],"state":[32],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]},null,{"_active":["validateActive"],"_label":["validateLabel"],"_open":["validateOpen"],"_href":["validateHref"]}]]],["kol-tree-wc",[[260,"kol-tree-wc",{"_label":[1],"state":[32]},[[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]],{"_label":["validateLabel"]}]]],["kol-version",[[289,"kol-version",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["test-component",[[0,"test-component"]]]]'),n)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var $b={};function ij(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Os={exports:{}},cj=Os.exports,W_;function sj(){return W_||(W_=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(cj,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],d={},u=null;function m(j,O){var E=j[O];if(typeof E.bind=="function")return E.bind(j);try{return Function.prototype.bind.call(E,j)}catch{return function(){return Function.prototype.apply.apply(E,[j,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(j){return j==="debug"&&(j="log"),typeof console===r?!1:j==="trace"&&i?h:console[j]!==void 0?m(console,j):console.log!==void 0?m(console,"log"):n}function g(){for(var j=this.getLevel(),O=0;O<s.length;O++){var E=s[O];this[E]=O<j?n:this.methodFactory(E,j,this.name)}if(this.log=this.debug,typeof console===r&&j<this.levels.SILENT)return"No console available for logging"}function v(j){return function(){typeof console!==r&&(g.call(this),this[j].apply(this,arguments))}}function _(j,O,E){return p(j)||v.apply(this,arguments)}function z(j,O){var E=this,x,w,$,D="loglevel";typeof j=="string"?D+=":"+j:typeof j=="symbol"&&(D=void 0);function H(ce){var ne=(s[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=j,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||_,E.getLevel=function(){return $??w??x},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&H($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(x=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},x=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})(Os)),Os.exports}sj();const dj=(e,n)=>r=>r(e,n),uj=(e,n)=>r=>r(e,n,{append:!1}),fj=()=>{const e=typeof process<"u"&&$b?$b:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,s="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||s||d||u||m||h},Un={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:fj(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of Un.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,s]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:s}]))),e}}},My=new Set,bj=/--[^;]+/g,mj=/:/,hj=typeof MutationObserver<"u";let Iy=()=>{Math.min(25+Math.log2(Un.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const pj=(e,n)=>{let r=n.match(bj);if(Array.isArray(r)){r=r.filter(s=>mj.test(s));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}My.add(e)},Jf=(e,n)=>{const r=Un.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},kj=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},vj=(e,n)=>{try{if(Un.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const s=new CSSStyleSheet;s.replaceSync(i),r.push(s)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const s=document.createElement("style");switch(s.dataset.themingFallback="",i){case 4:s.dataset.themingBaseA11y="";break;case 3:s.dataset.themingBaseGlobal="";break;case 2:s.dataset.themingBaseComponent="";break;case 1:s.dataset.themingCustomGlobal="";break;case 0:s.dataset.themingCustomComponent="";break;default:s.dataset.themingUnknown="";break}s.innerHTML=r,e.insertBefore(s,e.firstChild)})}},gj=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch{s=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),s.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),s.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},_j=(e,n,r)=>{const i=n.name||"default";let s;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(Un.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))Q_(e,s,Un.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Jf(i,"PROPERTIES"),u=Jf(i,"GLOBAL"),m=Jf(i,e.tagName);My.has(i)===!1&&pj(i,u);const h=[d,u,m];gj(s,h,n.encroachCss),n.cache===!0&&(Un.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&Un.A11yUi.CSS_STYLE_CACHE.set(i,new Map),Un.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),Q_(e,s,h,r)}},Q_=(e,n,r,i)=>{const s=performance.now();if(kj(n),vj(n,r),Uy(e),i(),Un.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=Un.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-s}else Un.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-s})},xj=e=>{const n=Un.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;_j(e,i,r),Uy(e)}},yj={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},wj=hj?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(xj(i),n.observe(i,yj))}}):null;wj&&(Iy=()=>{});const Uy=e=>{Un.A11yUi.STYLING_TASK_QUEUE.delete(e),Iy()};class zj{Prefix;Key;Tag;createTheme=(n,r)=>uj(n,r);createTranslation=(n,r)=>dj(n,r);constructor(n,r,i){this.Prefix=n,this.Key=Object.getOwnPropertyNames(r),this.Tag=Object.getOwnPropertyNames(i)}}var Nb;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(Nb||(Nb={}));var Bb;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(Bb||(Bb={}));const Rb=["development","production","test"];let Db="production";const Sj=e=>{try{if(Rb.includes(e))Db=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${Rb.join(", ")}.`)}catch{Db="production"}},jj=()=>{try{const e=typeof process<"u"&&$b?"production":void 0;if(e&&Rb.includes(e))return e}catch{}return"production"};Sj(jj());const Tj=()=>Db==="development",Aj="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",ml=e=>Array.isArray(e)?e:[e],e1=e=>`%c${e}`,Cj=(e,n)=>typeof n=="string"&&n.length>0?`${e1(e)} | ${n}`:e1(e),hl=(e,n)=>[Cj(e,n?.classifier),`${Aj};${n?.overwriteStyle||""}`],Ti=e=>Tj()||e===!0;class Ej{constructor(n){this.label=n}debug(n,r){Ti(r?.forceLog)&&console.debug(...hl(this.label,r),...ml(n))}info(n,r){Ti(r?.forceLog)&&console.info(...hl(this.label,r),...ml(n))}trace(n,r){Ti(r?.forceLog)&&console.trace(...hl(this.label,r),...ml(n))}warn(n,r){Ti(r?.forceLog)&&console.warn(...hl(this.label,r),...ml(n))}error(n,r){console.error(...hl(this.label,r),...ml(n))}throw(n,r){if(Ti(r?.forceLog))throw new Error(...hl(this.label,r),...ml(n))}}const Lj=new Ej("KoliBri"),o1=new Set,Oj=(e,n)=>{o1.has(e)===!1&&(o1.add(e),Lj.debug([e].concat([]),{classifier:"💻 dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))};Oj("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");var Mr={exports:{}},n1;function $j(){if(n1)return Mr.exports;n1=1,Mr.exports=e,Mr.exports.arr=e,Mr.exports.obj=n,Mr.exports.css=r,Mr.exports.hex=i,Mr.exports.num=s;function e(x){var w=d(x);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(x){var w=d(x);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(x){var w=d(x);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(x){var Z=d(x);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),H=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,H,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0):"#"+$+D+H:ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0)+Z.charAt(0):"#"+$+D+H+Z}function s(x){var w=d(x);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(x){return typeof x=="string"?(x=x.toLowerCase(),h(x)||g(x)||v(x)||O(x)||E(x)||[0,0,0,255]):z(x)||N(x)||j(x)||[0,0,0,255]}function u(x){var w=x.toString(16);return w.length==1?"0"+w:w}function m(x,w,$,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(x)!=-1&&H.indexOf(w)!=-1&&H.indexOf($)!=-1&&H.indexOf(D)!=-1}function h(x){if(x=="red")return[255,0,0];if(x=="green")return[0,255,0];if(x=="blue")return[0,0,255];if(x=="black")return[0,0,0];if(x=="white")return[255,255,255];if(x=="cyan")return[0,255,255];if(x=="gray")return[128,128,128];if(x=="grey")return[128,128,128];if(x=="magenta")return[255,0,255];if(x=="pink")return[255,0,255];if(x=="yellow")return[255,255,0]}function p(x){return x.length==1?parseInt(x+x,16):parseInt(x,16)}function g(x){var w=x.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),H=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function v(x){var w=x.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function _(x,w){return typeof x!="number"||w===!0&&Math.floor(x)!==x?-1:x>=0&&x<=255?x:-1}function z(x){if(Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x)===Object.getPrototypeOf({})){var w=_(x.r!=null?x.r:x.red!=null?x.red:0,!0),$=_(x.g!=null?x.g:x.green!=null?x.green:0,!0),D=_(x.b!=null?x.b:x.blue!=null?x.blue:0,!0),H=_(x.a!=null?x.a:x.alpha!=null?x.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function N(x){if(Array.isArray(x)&&(x.length==3||x.length==4)){var w=_(x[0],!0),$=_(x[1],!0),D=_(x[2],!0),H=_(x[3]!=null?x[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function j(x){if(typeof x=="number"&&Math.floor(x)==x&&x<=4294967295&&x>=0){var w=x>>24&255,$=x>>16&255,D=x>>8&255,H=x&255;return[$,D,H,w]}}function O(x){if(x.substr(0,4)=="rgb("){x=x.match(/^rgb\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if($!=-1&&D!=-1&&H!=-1)return[$,D,H,255]}}function E(x){if(x.substr(0,5)=="rgba("){x=x.match(/^rgba\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),Z=_(w[3]*255);if($!=-1&&D!=-1&&H!=-1&&Z!=-1)return[$,D,H,Z]}}return Mr.exports}$j();var Xf={},t1;function Nj(){return t1||(t1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,s)=>{s.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,s=document)=>{if(s instanceof Document||s instanceof HTMLElement||s instanceof ShadowRoot){const d=new Set;n(d,s.querySelectorAll(i));const u=s.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(Xf)),Xf}Nj();var Wf={},r1;function Bj(){return r1||(r1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let s=i.querySelector(r);if(s===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?s=(0,e.querySelector)(r,m):s=(0,e.querySelector)(r,d[u]),s!==null)break}}return s}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(Wf)),Wf}Bj();new Event("StateChange");var Qf,a1;function Rj(){return a1||(a1=1,Qf=function(n){return function(r,i){if(!r)return n;var s;typeof r=="string"?s=r:i=r;var d=n;return s&&(d+="__"+s),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),Qf}var Dj=Rj(),Mj=ij(Dj);function Hy(){const e=new Map,n=(r,i,s)=>{try{return e.get(r)(i,s)}catch{return e.set(r,Mj(r)).get(r)(i,s)}};return n.forBlock=r=>{const i=(s,d)=>n(r,s,d);return i.forElement=s=>d=>n(r,s,d),i},n}const Fy=Hy();Fy("kol-icon");Fy("kol-icon","icon");const gm=Hy();gm("kol-alert","closer")+"";gm("kol-alert","content");gm("kol-alert","icon");var l1;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(l1||(l1={}));const _m=new zj("kol",Nb,Bb);var hn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(hn||(hn={}));var Ve;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(Ve||(Ve={}));var ur;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(ur||(ur={}));const ye=new Map;ye.set(hn["Die Bundesregierung"],["Die","Bundesregierung"]);ye.set(hn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);ye.set(hn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);ye.set(hn["Auswärtiges Amt"],["Auswärtiges Amt"]);ye.set(hn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);ye.set(hn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);ye.set(hn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);ye.set(hn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);ye.set(hn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);ye.set(hn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);ye.set(hn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);ye.set(hn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);ye.set(hn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);ye.set(hn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);ye.set(hn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);ye.set(Ve["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);ye.set(Ve["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);ye.set(Ve["Bundesamt für äußere Restitutionen"],[]);ye.set(Ve["Bundesamt für Bauwesen und Raumordnung"],[]);ye.set(Ve["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);ye.set(Ve["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);ye.set(Ve["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);ye.set(Ve["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);ye.set(Ve["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);ye.set(Ve["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);ye.set(Ve["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);ye.set(Ve["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);ye.set(Ve["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);ye.set(Ve["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);ye.set(Ve["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);ye.set(Ve["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);ye.set(Ve["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);ye.set(Ve.Bundesarchiv,["Das","Bundesarchiv"]);ye.set(Ve["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);ye.set(Ve.Bundesausgleichsamt,["Bundesausgleichsamt"]);ye.set(Ve.Bundeskartellamt,["Bundeskartellamt"]);ye.set(Ve.Bundeskriminalamt,["Bundeskriminalamt"]);ye.set(Ve.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);ye.set(Ve["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);ye.set(Ve.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);ye.set(Ve["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);ye.set(Ve.Bundessortenamt,["Bundessortenamt"]);ye.set(Ve.Bundessprachenamt,["Bundessprachenamt"]);ye.set(Ve["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);ye.set(Ve.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);ye.set(Ve["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);ye.set(Ve["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);ye.set(Ve["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);ye.set(Ve.Generalzolldirektion,["Generalzolldirektion"]);ye.set(Ve["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);ye.set(Ve["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);ye.set(ur["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);ye.set(ur["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);ye.set(ur["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);ye.set(ur["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);ye.set(ur["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);ye.set(ur["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);ye.set(ur["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);var Ij=`/* forward the rem function */
|
|
31
|
+
`);const u=this["s-cr"].parentElement;return(u.__childNodes?u.childNodes:zj(u.childNodes)).forEach(h=>{d===hm(h)&&s.push(h)}),r?s.filter(h=>h.nodeType===1):s}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function Ur(e,n){if("__"+n in e){const r=e["__"+n];return typeof r!="function"?r:r.bind(e)}else return typeof e[n]!="function"?e[n]:e[n].bind(e)}var $t=(e,n="")=>()=>{},Tj=(e,n)=>()=>{},xl=new WeakMap,Sy=(e,n,r)=>{let i=Us.get(e);bm&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=n:i.replaceSync(n)):i=n,Us.set(e,i)},Ty=(e,n,r)=>{var i;const s=pm(n,r),d=Us.get(s);if(!oo.document)return s;if(e=e.nodeType===11?e:oo.document,d)if(typeof d=="string"){e=e.head||e;let u=xl.get(e),m;if(u||xl.set(e,u=new Set),!u.has(s)){if(e.host&&(m=e.querySelector(`[${zb}="${s}"]`)))m.innerHTML=d;else{m=oo.document.createElement("style"),m.innerHTML=d;const h=(i=bo.$nonce$)!=null?i:xy(oo.document);if(h!=null&&m.setAttribute("nonce",h),!(n.$flags$&1))if(e.nodeName==="HEAD"){const p=e.querySelectorAll("link[rel=preconnect]"),g=p.length>0?p[p.length-1].nextSibling:e.querySelector("style");e.insertBefore(m,g?.parentNode===e?g:null)}else if("host"in e)if(bm){const p=new CSSStyleSheet;p.replaceSync(d),jb?e.adoptedStyleSheets.unshift(p):e.adoptedStyleSheets=[p,...e.adoptedStyleSheets]}else{const p=e.querySelector("style");p?p.innerHTML=d+p.innerHTML:e.prepend(m)}else e.append(m);n.$flags$&1&&e.insertBefore(m,null)}n.$flags$&4&&(m.innerHTML+=gy),u&&u.add(s)}}else e.adoptedStyleSheets.includes(d)||(jb?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d]);return s},Aj=e=>{const n=e.$cmpMeta$,r=e.$hostElement$,i=n.$flags$,s=$t("attachStyles",n.$tagName$),d=Ty(r.shadowRoot?r.shadowRoot:r.getRootNode(),n,e.$modeName$);i&10&&(r["s-sc"]=d,r.classList.add(d+"-h")),s()},pm=(e,n)=>"sc-"+(n&&e.$flags$&32?e.$tagName$+"-"+n:e.$tagName$),Cj=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ej=()=>{if(!oo.document)return;const e=oo.document.querySelectorAll(`[${zb}]`);let n=0;for(;n<e.length;n++)Sy(e[n].getAttribute(zb),Cj(e[n].innerHTML),!0)},Ay=(e,n,...r)=>{let i=null,s=null,d=null,u=!1,m=!1;const h=[],p=v=>{for(let _=0;_<v.length;_++)i=v[_],Array.isArray(i)?p(i):i!=null&&typeof i!="boolean"&&((u=typeof e!="function"&&!mm(i))&&(i=String(i)),u&&m?h[h.length-1].$text$+=i:h.push(u?Tl(null,i):i),m=u)};if(p(r),n){n.key&&(s=n.key),n.name&&(d=n.name);{const v=n.className||n.class;v&&(n.class=typeof v!="object"?v:Object.keys(v).filter(_=>v[_]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,h,$j);const g=Tl(e,null);return g.$attrs$=n,h.length>0&&(g.$children$=h),g.$key$=s,g.$name$=d,g},Tl=(e,n)=>{const r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},Lj={},Oj=e=>e&&e.$tag$===Lj,$j={forEach:(e,n)=>e.map(K_).forEach(n),map:(e,n)=>e.map(K_).map(n).map(Nj)},K_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Nj=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),Ay(e.vtag,r,...e.vchildren||[])}const n=Tl(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},Bj=(e,n,r,i)=>{var s,d;const u=$t("hydrateClient",n),m=e.shadowRoot,h=[],p=[],g=[],v=m?[]:null,_=Tl(n,null);_.$elm$=e,oo.document&&(!bo.$orgLocNodes$||!bo.$orgLocNodes$.size)&&Ab(oo.document.body,bo.$orgLocNodes$=new Map),e[Fi]=r,e.removeAttribute(Fi),i.$vnode$=Tb(_,h,p,v,e,e,r,g);let z=0;const N=h.length;let S;for(z;z<N;z++){S=h[z];const Z=S.$hostId$+"."+S.$nodeId$,ee=bo.$orgLocNodes$.get(Z),se=S.$elm$;if(!m)se["s-hn"]=n.toUpperCase(),S.$tag$==="slot"&&(se["s-cr"]=e["s-cr"]);else if((s=S.$tag$)!=null&&s.toString().includes("-")&&S.$tag$!=="slot-fb"&&!S.$elm$.shadowRoot){const $e=ot(S.$elm$);if($e){const ce=pm($e.$cmpMeta$,S.$elm$.getAttribute("s-mode")),ne=oo.document.querySelector(`style[sty-id="${ce}"]`);ne&&e.shadowRoot.append(ne.cloneNode(!0))}}S.$tag$==="slot"&&(S.$name$=S.$elm$["s-sn"]||S.$elm$.name||null,S.$children$?(S.$flags$|=2,S.$elm$.childNodes.length||S.$children$.forEach($e=>{S.$elm$.appendChild($e.$elm$)})):S.$flags$|=1),ee&&ee.isConnected&&(ee.parentElement.shadowRoot&&ee["s-en"]===""&&ee.parentNode.insertBefore(se,ee.nextSibling),ee.parentNode.removeChild(ee),m||(se["s-oo"]=parseInt(S.$nodeId$))),ee&&!ee["s-id"]&&bo.$orgLocNodes$.delete(Z)}const O=[],E=g.length;let x=0,w,$,D,H;for(x;x<E;x++)if(w=g[x],!(!w||!w.length))for(D=w.length,$=0,$;$<D;$++){if(H=w[$],O[H.hostId]||(O[H.hostId]=bo.$orgLocNodes$.get(H.hostId)),!O[H.hostId])continue;const Z=O[H.hostId];Z.shadowRoot&&H.node.parentElement!==Z&&Z.appendChild(H.node),(!Z.shadowRoot||!m)&&(H.slot["s-cr"]||(H.slot["s-cr"]=Z["s-cr"],!H.slot["s-cr"]&&Z.shadowRoot?H.slot["s-cr"]=Z:H.slot["s-cr"]=(Z.__childNodes||Z.childNodes)[0]),Sj(H.node,H.slot,!1,H.node["s-oo"]),(d=H.node.parentElement)!=null&&d.shadowRoot&&H.node.getAttribute&&H.node.getAttribute("slot")&&H.node.removeAttribute("slot"))}if(m){let Z=0;const ee=v.length;if(ee){for(Z;Z<ee;Z++){const se=v[Z];se&&m.appendChild(se)}Array.from(e.childNodes).forEach(se=>{typeof se["s-en"]!="string"&&typeof se["s-sn"]!="string"&&(se.nodeType===1&&se.slot&&se.hidden?se.removeAttribute("hidden"):(se.nodeType===8&&!se.nodeValue||se.nodeType===3&&!se.wholeText.trim())&&se.parentNode.removeChild(se))})}}i.$hostElement$=e,u()},Tb=(e,n,r,i,s,d,u,m=[])=>{let h,p,g,v;if(d.nodeType===1){if(h=d.getAttribute(U_),h&&(p=h.split("."),p[0]===u||p[0]==="0")){g=V_({$flags$:0,$hostId$:p[0],$nodeId$:p[1],$depth$:p[2],$index$:p[3],$tag$:d.tagName.toLowerCase(),$elm$:d,$attrs$:{class:d.className||""}}),n.push(g),d.removeAttribute(U_),e.$children$||(e.$children$=[]);const z=g.$elm$.getAttribute("s-sn");typeof z=="string"&&(g.$tag$==="slot-fb"&&q_(z,p[2],g,d,e,n,r,i,m),g.$elm$["s-sn"]=z,g.$elm$.removeAttribute("s-sn")),g.$index$!==void 0&&(e.$children$[g.$index$]=g),e=g,i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$)}if(d.shadowRoot)for(v=d.shadowRoot.childNodes.length-1;v>=0;v--)Tb(e,n,r,i,s,d.shadowRoot.childNodes[v],u,m);const _=d.__childNodes||d.childNodes;for(v=_.length-1;v>=0;v--)Tb(e,n,r,i,s,_[v],u,m)}else if(d.nodeType===8){if(p=d.nodeValue.split("."),p[1]===u||p[1]==="0"){if(h=p[0],g=V_({$hostId$:p[1],$nodeId$:p[2],$depth$:p[3],$index$:p[4]||"0",$elm$:d,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),h===uj)g.$elm$=P_(d,3),g.$elm$&&g.$elm$.nodeType===3&&(g.$text$=g.$elm$.textContent,n.push(g),d.remove(),u===g.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[g.$index$]=g),i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$));else if(h===fj)g.$elm$=P_(d,8),g.$elm$&&g.$elm$.nodeType===8&&(n.push(g),d.remove());else if(g.$hostId$===u)if(h===wb){const _=d["s-sn"]=p[5]||"";q_(_,p[2],g,d,e,n,r,i,m)}else h===sj&&(i?d.remove():(s["s-cr"]=d,d["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const _=Tl(null,d.textContent);_.$elm$=d,_.$index$="0",e.$children$=[_]}else d.nodeType===3&&!d.wholeText.trim()&&!d["s-nr"]&&d.remove();return e},Ab=(e,n)=>{if(e.nodeType===1){const r=e[Fi]||e.getAttribute(Fi);r&&n.set(r,e);let i=0;if(e.shadowRoot)for(;i<e.shadowRoot.childNodes.length;i++)Ab(e.shadowRoot.childNodes[i],n);const s=e.__childNodes||e.childNodes;for(i=0;i<s.length;i++)Ab(s[i],n)}else if(e.nodeType===8){const r=e.nodeValue.split(".");r[0]===dj&&(n.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},V_=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function q_(e,n,r,i,s,d,u,m,h){i["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";const p=s?.$elm$?s.$elm$["s-id"]||s.$elm$.getAttribute("s-id"):"";if(m&&oo.document){const g=r.$elm$=oo.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),s.$elm$.shadowRoot&&p&&p!==r.$hostId$?Ur(s.$elm$,"insertBefore")(g,Ur(s.$elm$,"children")[0]):Ur(Ur(i,"parentNode"),"insertBefore")(g,i),Z_(h,n,e,i,r.$hostId$),i.remove(),r.$depth$==="0"&&(m[r.$index$]=r.$elm$)}else{const g=r.$elm$,v=p&&p!==r.$hostId$&&s.$elm$.shadowRoot;Z_(h,n,e,i,v?p:r.$hostId$),jy(i),v&&s.$elm$.insertBefore(g,s.$elm$.children[0])}d.push(r),u.push(r),s.$children$||(s.$children$=[]),s.$children$[r.$index$]=r}var Z_=(e,n,r,i,s)=>{var d,u;let m=i.nextSibling;if(e[n]=e[n]||[],!(!m||(d=m.nodeValue)!=null&&d.startsWith(wb+".")))do m&&((m.getAttribute&&m.getAttribute("slot")||m["s-sn"])===r||r===""&&!m["s-sn"]&&(!m.getAttribute||!m.getAttribute("slot"))&&(m.nodeType===8||m.nodeType===3))&&(m["s-sn"]=r,e[n].push({slot:i,node:m,hostId:s})),m=m?.nextSibling;while(m&&!((u=m.nodeValue)!=null&&u.startsWith(wb+".")))},P_=(e,n)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==n||!r.nodeValue));return r},km=e=>{const n=pj(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};km("::slotted");km(":host");km(":host-context");var Rj=e=>vy.map(n=>n(e)).find(n=>!!n),Dj=e=>vy.push(e),Cb=(e,n,r)=>typeof e=="string"&&e.startsWith(yb)?(e=yj(e),e):e!=null&&!mm(e)?n&4?e==="false"?!1:e===""||!!e:n&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:n&1?String(e):e:e,uD=e=>{var n;return(n=ot(e))==null?void 0:n.$hostElement$},Mj=(e,n,r)=>{const i=bo.ce(n,r);return e.dispatchEvent(i),i},G_=(e,n,r,i,s,d,u)=>{if(r===i)return;let m=I_(e,n),h=n.toLowerCase();if(n==="class"){const p=e.classList,g=Y_(r);let v=Y_(i);if((e["s-si"]||e["s-sc"])&&u){const _=e["s-sc"]||e["s-si"];v.push(_),g.forEach(z=>{z.startsWith(_)&&v.push(z)}),v=[...new Set(v)].filter(z=>z),p.add(...v)}else p.remove(...g.filter(_=>_&&!v.includes(_))),p.add(...v.filter(_=>_&&!g.includes(_)))}else if(n==="style"){for(const p in r)(!i||i[p]==null)&&(p.includes("-")?e.style.removeProperty(p):e.style[p]="");for(const p in i)(!r||i[p]!==r[p])&&(p.includes("-")?e.style.setProperty(p,i[p]):e.style[p]=i[p])}else if(n!=="key")if(n==="ref")i&&i(e);else if(!m&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"?n=n.slice(3):I_(oo,h)?n=h.slice(2):n=h[2]+n.slice(3),r||i){const p=n.endsWith(Cy);n=n.replace(Uj,""),r&&bo.rel(e,n,r,p),i&&bo.ael(e,n,i,p)}}else{const p=mm(i);if((m||p&&i!==null)&&!s)try{if(e.tagName.includes("-"))e[n]!==i&&(e[n]=i);else{const v=i??"";n==="list"?m=!1:(r==null||e[n]!=v)&&(typeof e.__lookupSetter__(n)=="function"?e[n]=v:e.setAttribute(n,v))}}catch{}let g=!1;h!==(h=h.replace(/^xlink\:?/,""))&&(n=h,g=!0),i==null||i===!1?(i!==!1||e.getAttribute(n)==="")&&(g?e.removeAttributeNS(H_,n):e.removeAttribute(n)):(!m||d&4||s)&&!p&&e.nodeType===1&&(i=i===!0?"":i,g?e.setAttributeNS(H_,n,i):e.setAttribute(n,i))}},Ij=/\s/,Y_=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(Ij)),Cy="Capture",Uj=new RegExp(Cy+"$"),Eb=(e,n,r,i)=>{const s=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,d=e&&e.$attrs$||{},u=n.$attrs$||{};for(const m of J_(Object.keys(d)))m in u||G_(s,m,d[m],void 0,r,n.$flags$,i);for(const m of J_(Object.keys(u)))G_(s,m,d[m],u[m],r,n.$flags$,i)};function J_(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var Lb,rd,Ob=!1,Hs=!1,vm=!1,Mn=!1,Fs=(e,n,r)=>{var i;const s=n.$children$[r];let d=0,u,m,h;if(Ob||(vm=!0,s.$tag$==="slot"&&(s.$flags$|=s.$children$?2:1)),s.$text$!==null)u=s.$elm$=oo.document.createTextNode(s.$text$);else if(s.$flags$&1)u=s.$elm$=oo.document.createTextNode(""),Eb(null,s,Mn);else{if(Mn||(Mn=s.$tag$==="svg"),!oo.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(u=s.$elm$=oo.document.createElementNS(Mn?tj:rj,!Ob&&_a.slotRelocation&&s.$flags$&2?"slot-fb":s.$tag$),Mn&&s.$tag$==="foreignObject"&&(Mn=!1),Eb(null,s,Mn),s.$children$)for(d=0;d<s.$children$.length;++d)m=Fs(e,s,d),m&&u.appendChild(m);s.$tag$==="svg"?Mn=!1:u.tagName==="foreignObject"&&(Mn=!0)}return u["s-hn"]=rd,s.$flags$&3&&(u["s-sr"]=!0,u["s-cr"]=Lb,u["s-sn"]=s.$name$||"",u["s-rf"]=(i=s.$attrs$)==null?void 0:i.ref,jy(u),h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===s.$tag$&&e.$elm$&&Ki(e.$elm$,!1)),u},Ki=(e,n)=>{bo.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);for(let i=r.length-1;i>=0;i--){const s=r[i];s["s-hn"]!==rd&&s["s-ol"]&&(Hr(Vi(s).parentNode,s,Vi(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,vm=!0),n&&Ki(s,n)}bo.$flags$&=-2},Ey=(e,n,r,i,s,d)=>{let u=e["s-cr"]&&e["s-cr"].parentNode||e,m;for(u.shadowRoot&&u.tagName===rd&&(u=u.shadowRoot);s<=d;++s)i[s]&&(m=Fs(null,r,s),m&&(i[s].$elm$=m,Hr(u,m,Vi(n))))},Ly=(e,n,r)=>{for(let i=n;i<=r;++i){const s=e[i];if(s){const d=s.$elm$;$y(s),d&&(Hs=!0,d["s-ol"]?d["s-ol"].remove():Ki(d,!0),d.remove())}}},Hj=(e,n,r,i,s=!1)=>{let d=0,u=0,m=0,h=0,p=n.length-1,g=n[0],v=n[p],_=i.length-1,z=i[0],N=i[_],S,O;for(;d<=p&&u<=_;)if(g==null)g=n[++d];else if(v==null)v=n[--p];else if(z==null)z=i[++u];else if(N==null)N=i[--_];else if(vs(g,z,s))vl(g,z,s),g=n[++d],z=i[++u];else if(vs(v,N,s))vl(v,N,s),v=n[--p],N=i[--_];else if(vs(g,N,s))(g.$tag$==="slot"||N.$tag$==="slot")&&Ki(g.$elm$.parentNode,!1),vl(g,N,s),Hr(e,g.$elm$,v.$elm$.nextSibling),g=n[++d],N=i[--_];else if(vs(v,z,s))(g.$tag$==="slot"||N.$tag$==="slot")&&Ki(v.$elm$.parentNode,!1),vl(v,z,s),Hr(e,v.$elm$,g.$elm$),v=n[--p],z=i[++u];else{for(m=-1,h=d;h<=p;++h)if(n[h]&&n[h].$key$!==null&&n[h].$key$===z.$key$){m=h;break}m>=0?(O=n[m],O.$tag$!==z.$tag$?S=Fs(n&&n[u],r,m):(vl(O,z,s),n[m]=void 0,S=O.$elm$),z=i[++u]):(S=Fs(n&&n[u],r,u),z=i[++u]),S&&Hr(Vi(g.$elm$).parentNode,S,Vi(g.$elm$))}d>p?Ey(e,i[_+1]==null?null:i[_+1].$elm$,r,i,u,_):u>_&&Ly(n,d,p)},vs=(e,n,r=!1)=>e.$tag$===n.$tag$?e.$tag$==="slot"?e.$name$===n.$name$:r?(r&&!e.$key$&&n.$key$&&(e.$key$=n.$key$),!0):e.$key$===n.$key$:!1,Vi=e=>e&&e["s-ol"]||e,vl=(e,n,r=!1)=>{const i=n.$elm$=e.$elm$,s=e.$children$,d=n.$children$,u=n.$tag$,m=n.$text$;let h;m===null?(Mn=u==="svg"?!0:u==="foreignObject"?!1:Mn,Eb(e,n,Mn,r),s!==null&&d!==null?Hj(i,s,n,d,r):d!==null?(e.$text$!==null&&(i.textContent=""),Ey(i,null,n,d,0,d.length-1)):!r&&_a.updatable&&s!==null?Ly(s,0,s.length-1):r&&_a.updatable&&s!==null&&d===null&&(n.$children$=s),Mn&&u==="svg"&&(Mn=!1)):(h=i["s-cr"])?h.parentNode.textContent=m:e.$text$!==m&&(i.data=m)},tr=[],Oy=e=>{let n,r,i;const s=e.__childNodes||e.childNodes;for(const d of s){if(d["s-sr"]&&(n=d["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const u=d["s-sn"];for(i=r.length-1;i>=0;i--)if(n=r[i],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==d["s-hn"])if(F_(n,u)){let m=tr.find(h=>h.$nodeToRelocate$===n);Hs=!0,n["s-sn"]=n["s-sn"]||u,m?(m.$nodeToRelocate$["s-sh"]=d["s-hn"],m.$slotRefNode$=d):(n["s-sh"]=d["s-hn"],tr.push({$slotRefNode$:d,$nodeToRelocate$:n})),n["s-sr"]&&tr.map(h=>{F_(h.$nodeToRelocate$,n["s-sn"])&&(m=tr.find(p=>p.$nodeToRelocate$===n),m&&!h.$slotRefNode$&&(h.$slotRefNode$=m.$slotRefNode$))})}else tr.some(m=>m.$nodeToRelocate$===n)||tr.push({$nodeToRelocate$:n})}d.nodeType===1&&Oy(d)}},$y=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map($y)},Hr=(e,n,r)=>e?.insertBefore(n,r),Fj=(e,n,r=!1)=>{var i,s,d,u;const m=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||Tl(null,null),v=Oj(n)?n:Ay(null,null,n);if(rd=m.tagName,h.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},h.$attrsToReflect$.forEach(([_,z])=>{v.$attrs$[z]=m[_]})),r&&v.$attrs$)for(const _ of Object.keys(v.$attrs$))m.hasAttribute(_)&&!["key","ref","style","class"].includes(_)&&(v.$attrs$[_]=m[_]);v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=p.$elm$=m.shadowRoot||m,Ob=!!(h.$flags$&1)&&!(h.$flags$&128),Lb=m["s-cr"],Hs=!1,vl(p,v,r);{if(bo.$flags$|=1,vm){Oy(v.$elm$);for(const _ of tr){const z=_.$nodeToRelocate$;if(!z["s-ol"]&&oo.document){const N=oo.document.createTextNode("");N["s-nr"]=z,Hr(z.parentNode,z["s-ol"]=N,z)}}for(const _ of tr){const z=_.$nodeToRelocate$,N=_.$slotRefNode$;if(N){const S=N.parentNode;let O=N.nextSibling;{let w=(i=z["s-ol"])==null?void 0:i.previousSibling;for(;w;){let $=(s=w["s-nr"])!=null?s:null;if($&&$["s-sn"]===z["s-sn"]&&S===($.__parentNode||$.parentNode)){for($=$.nextSibling;$===z||$?.["s-sr"];)$=$?.nextSibling;if(!$||!$["s-nr"]){O=$;break}}w=w.previousSibling}}const E=z.__parentNode||z.parentNode,x=z.__nextSibling||z.nextSibling;(!O&&S!==E||x!==O)&&z!==O&&(!z["s-hn"]&&z["s-ol"]&&(z["s-hn"]=z["s-ol"].parentNode.nodeName),Hr(S,z,O),z.nodeType===1&&z.tagName!=="SLOT-FB"&&(z.hidden=(d=z["s-ih"])!=null?d:!1)),z&&typeof N["s-rf"]=="function"&&N["s-rf"](N)}else z.nodeType===1&&(r&&(z["s-ih"]=(u=z.hidden)!=null?u:!1),z.hidden=!0)}}Hs&&wy(v.$elm$),bo.$flags$&=-2,tr.length=0}Lb=void 0},Ny=(e,n)=>{if(n&&!e.$onRenderResolve$&&n["s-p"]){const r=n["s-p"].push(new Promise(i=>e.$onRenderResolve$=()=>{n["s-p"].splice(r-1,1),i()}))}},gm=(e,n)=>{if(e.$flags$&4){e.$flags$|=512;return}Ny(e,e.$ancestorComponent$);const r=()=>Kj(e,n);if(n){queueMicrotask(()=>{r()});return}return r()},Kj=(e,n)=>{const r=e.$hostElement$,i=$t("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;if(!s)throw new Error(`Can't render component <${r.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 d;return n?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([u,m])=>ar(s,u,m,r)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(u=>u(r)),d=ar(s,"componentWillLoad",void 0,r)):d=ar(s,"componentWillUpdate",void 0,r),d=X_(d,()=>ar(s,"componentWillRender",void 0,r)),i(),X_(d,()=>qj(e,s,n))},X_=(e,n)=>Vj(e)?e.then(n).catch(r=>{console.error(r),n()}):n(),Vj=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qj=async(e,n,r)=>{var i;const s=e.$hostElement$,d=$t("update",e.$cmpMeta$.$tagName$),u=s["s-rc"];r&&Aj(e);const m=$t("render",e.$cmpMeta$.$tagName$);Zj(e,n,s,r),u&&(u.map(h=>h()),s["s-rc"]=void 0),m(),d();{const h=(i=s["s-p"])!=null?i:[],p=()=>Pj(e);h.length===0?p():(Promise.all(h).then(p),e.$flags$|=4,h.length=0)}},Zj=(e,n,r,i)=>{try{n=n.render&&n.render(),e.$flags$|=2,Fj(e,n,i)}catch(s){ue(s,e.$hostElement$)}return null},Pj=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=$t("postUpdate",n),s=e.$lazyInstance$,d=e.$ancestorComponent$;ar(s,"componentDidRender",void 0,r),e.$flags$&64?(ar(s,"componentDidUpdate",void 0,r),i()):(e.$flags$|=64,Gj(r),ar(s,"componentDidLoad",void 0,r),i(),e.$onReadyResolve$(r),d||By()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&_y(()=>gm(e,!1)),e.$flags$&=-517},By=e=>{var n;_y(()=>Mj(oo,"appload",{detail:{namespace:ej}})),(n=bo.$orgLocNodes$)!=null&&n.size&&bo.$orgLocNodes$.clear()},ar=(e,n,r,i)=>{if(e&&e[n])try{return e[n](r)}catch(s){ue(s,i)}},Gj=e=>{var n;return e.classList.add((n=_a.hydratedSelectorName)!=null?n:"hydrated")},Yj=(e,n)=>ot(e).$instanceValues$.get(n),Jf=(e,n,r,i)=>{const s=ot(e);if(!s)return;if(!s)throw new Error(`Couldn't find host element for "${i.$tagName$}" 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 d=s.$hostElement$,u=s.$instanceValues$.get(n),m=s.$flags$,h=s.$lazyInstance$;r=Cb(r,i.$members$[n][0]);const p=Number.isNaN(u)&&Number.isNaN(r),g=r!==u&&!p;if((!(m&8)||u===void 0)&&g&&(s.$instanceValues$.set(n,r),h)){if(i.$watchers$&&m&128){const v=i.$watchers$[n];v&&v.map(_=>{try{h[_](r,u,n)}catch(z){ue(z,d)}})}if((m&18)===2){if(h.componentShouldUpdate&&h.componentShouldUpdate(r,u,n)===!1)return;gm(s,!1)}}},Ry=(e,n,r)=>{var i,s;const d=e.prototype;if(n.$members$||_a.propChangeCallback){e.watchers&&!n.$watchers$&&(n.$watchers$=e.watchers),e.deserializers&&!n.$deserializers$&&(n.$deserializers$=e.deserializers),e.serializers&&!n.$serializers$&&(n.$serializers$=e.serializers);const u=Object.entries((i=n.$members$)!=null?i:{});if(u.map(([m,[h]])=>{if(h&31||r&2&&h&32){const{get:p,set:g}=Object.getOwnPropertyDescriptor(d,m)||{};p&&(n.$members$[m][0]|=2048),g&&(n.$members$[m][0]|=4096),(r&1||!p)&&Object.defineProperty(d,m,{get(){{if((n.$members$[m][0]&2048)===0)return Yj(this,m);const v=ot(this),_=v?v.$lazyInstance$:d;return _?_[m]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(d,m,{set(v){const _=ot(this);if(_){if(g){typeof(h&32?this[m]:_.$hostElement$[m])>"u"&&_.$instanceValues$.get(m)&&(v=_.$instanceValues$.get(m)),g.apply(this,[Cb(v,h)]),v=h&32?this[m]:_.$hostElement$[m],Jf(this,m,v,n);return}{if((r&1)===0||(n.$members$[m][0]&4096)===0){Jf(this,m,v,n),r&1&&!_.$lazyInstance$&&_.$fetchedCbList$.push(()=>{n.$members$[m][0]&4096&&_.$lazyInstance$[m]!==_.$instanceValues$.get(m)&&(_.$lazyInstance$[m]=v)});return}const z=()=>{const N=_.$lazyInstance$[m];!_.$instanceValues$.get(m)&&N&&_.$instanceValues$.set(m,N),_.$lazyInstance$[m]=Cb(v,h),Jf(this,m,_.$lazyInstance$[m],n)};_.$lazyInstance$?z():_.$fetchedCbList$.push(()=>{z()})}}}})}else r&1&&h&64&&Object.defineProperty(d,m,{value(...p){var g;const v=ot(this);return(g=v?.$onInstancePromise$)==null?void 0:g.then(()=>{var _;return(_=v.$lazyInstance$)==null?void 0:_[m](...p)})}})}),r&1){const m=new Map;d.attributeChangedCallback=function(h,p,g){bo.jmp(()=>{var v;const _=m.get(h),z=ot(this);if(this.hasOwnProperty(_)&&_a.lazyLoad&&(g=this[_],delete this[_]),d.hasOwnProperty(_)&&typeof this[_]=="number"&&this[_]==g)return;if(_==null){const O=z?.$flags$;if(z&&O&&!(O&8)&&O&128&&g!==p){const E=z.$lazyInstance$,x=(v=n.$watchers$)==null?void 0:v[h];x?.forEach(w=>{E[w]!=null&&E[w].call(E,g,p,h)})}return}const N=u.find(([O])=>O===_);N&&N[1][0]&4&&(g=!(g===null||g==="false"));const S=Object.getOwnPropertyDescriptor(d,_);g!=this[_]&&(!S.get||S.set)&&(this[_]=g)})},e.observedAttributes=Array.from(new Set([...Object.keys((s=n.$watchers$)!=null?s:{}),...u.filter(([h,p])=>p[0]&31).map(([h,p])=>{var g;const v=p[1]||h;return m.set(v,h),p[0]&512&&((g=n.$attrsToReflect$)==null||g.push([h,v])),v})]))}}return e},Jj=async(e,n,r,i)=>{let s;if((n.$flags$&32)===0){if(n.$flags$|=32,r.$lazyBundleId$){const h=cj(r,n);if(h&&"then"in h){const g=Tj();s=await h,g()}else s=h;if(!s)throw new Error(`Constructor for "${r.$tagName$}#${n.$modeName$}" was not found`);s.isProxied||(r.$watchers$=s.watchers,r.$serializers$=s.serializers,r.$deserializers$=s.deserializers,Ry(s,r,2),s.isProxied=!0);const p=$t("createInstance",r.$tagName$);n.$flags$|=8;try{new s(n)}catch(g){ue(g,e)}n.$flags$&=-9,n.$flags$|=128,p(),$b(n.$lazyInstance$,e)}else{s=e.constructor;const h=e.localName;customElements.whenDefined(h).then(()=>n.$flags$|=128)}if(s&&s.style){let h;typeof s.style=="string"?h=s.style:typeof s.style!="string"&&(n.$modeName$=Rj(e),n.$modeName$&&(h=s.style[n.$modeName$]));const p=pm(r,n.$modeName$);if(!Us.has(p)){const g=$t("registerStyles",r.$tagName$);Sy(p,h,!!(r.$flags$&1)),g()}}}const d=n.$ancestorComponent$,u=()=>gm(n,!0);d&&d["s-rc"]?d["s-rc"].push(u):u()},$b=(e,n)=>{ar(e,"connectedCallback",void 0,n)},Xj=e=>{if((bo.$flags$&1)===0){const n=ot(e);if(!n)return;const r=n.$cmpMeta$,i=$t("connectedCallback",r.$tagName$);if(n.$flags$&1)Dy(e,n,r.$listeners$),n?.$lazyInstance$?$b(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>$b(n.$lazyInstance$,e));else{n.$flags$|=1;let s;if(s=e.getAttribute(Fi),s){if(r.$flags$&1){const d=Ty(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(d+"-h",d+"-s")}Bj(e,r.$tagName$,s,n)}s||r.$flags$&12&&Wj(e);{let d=e;for(;d=d.parentNode||d.host;)if(d.nodeType===1&&d.hasAttribute("s-id")&&d["s-p"]||d["s-p"]){Ny(n,n.$ancestorComponent$=d);break}}r.$members$&&Object.entries(r.$members$).map(([d,[u]])=>{if(u&31&&d in e&&e[d]!==Object.prototype[d]){const m=e[d];delete e[d],e[d]=m}}),Jj(e,n,r)}i()}},Wj=e=>{if(!oo.document)return;const n=e["s-cr"]=oo.document.createComment("");n["s-cn"]=!0,Hr(e,n,e.firstChild)},W_=(e,n)=>{ar(e,"disconnectedCallback",void 0,n||e)},Qj=async e=>{if((bo.$flags$&1)===0){const n=ot(e);n?.$rmListeners$&&(n.$rmListeners$.map(r=>r()),n.$rmListeners$=void 0),n?.$lazyInstance$?W_(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>W_(n.$lazyInstance$,e))}xl.has(e)&&xl.delete(e),e.shadowRoot&&xl.has(e.shadowRoot)&&xl.delete(e.shadowRoot)},eS=(e,n={})=>{var r;if(!oo.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=$t(),s=[],d=n.exclude||[],u=oo.customElements,m=oo.document.head,h=m.querySelector("meta[charset]"),p=oo.document.createElement("style"),g=[];let v,_=!0;Object.assign(bo,n),bo.$resourcesUrl$=new URL(n.resourcesUrl||"./",oo.document.baseURI).href,bo.$flags$|=2,Ej();let z=!1;if(e.map(N=>{N[1].map(S=>{var O,E,x;const w={$flags$:S[0],$tagName$:S[1],$members$:S[2],$listeners$:S[3]};w.$flags$&4&&(z=!0),w.$members$=S[2],w.$listeners$=S[3],w.$attrsToReflect$=[],w.$watchers$=(O=S[4])!=null?O:{},w.$serializers$=(E=S[5])!=null?E:{},w.$deserializers$=(x=S[6])!=null?x:{};const $=n.transformTagName?n.transformTagName(w.$tagName$):w.$tagName$,D=class extends HTMLElement{constructor(H){if(super(H),this.hasRegisteredEventListeners=!1,H=this,ij(H,w),w.$flags$&1){if(!H.shadowRoot)wj.call(H,w);else if(H.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${w.$tagName$}! Mode is set to ${H.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const H=ot(this);H&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Dy(this,H,w.$listeners$)),v&&(clearTimeout(v),v=null),_?g.push(this):bo.jmp(()=>Xj(this)))}disconnectedCallback(){bo.jmp(()=>Qj(this)),bo.raf(()=>{var H;const Z=ot(this);if(!Z)return;const ee=g.findIndex(se=>se===this);ee>-1&&g.splice(ee,1),((H=Z?.$vnode$)==null?void 0:H.$elm$)instanceof Node&&!Z.$vnode$.$elm$.isConnected&&delete Z.$vnode$.$elm$})}componentOnReady(){var H;return(H=ot(this))==null?void 0:H.$onReadyPromise$}};w.$lazyBundleId$=N[0],!d.includes($)&&!u.get($)&&(s.push($),u.define($,Ry(D,w,1)))})}),s.length>0&&(z&&(p.textContent+=gy),p.textContent+=s.sort()+bj,p.innerHTML.length)){p.setAttribute("data-styles","");const N=(r=bo.$nonce$)!=null?r:xy(oo.document);N!=null&&p.setAttribute("nonce",N),m.insertBefore(p,h?h.nextSibling:m.firstChild)}_=!1,g.length?g.map(N=>N.connectedCallback()):bo.jmp(()=>v=setTimeout(By,30)),i()},fD=(e,n)=>n,Dy=(e,n,r,i)=>{r&&oo.document&&r.map(([s,d,u])=>{const m=nS(oo.document,e,s),h=oS(n,u),p=tS(s);bo.ael(m,d,h,p),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>bo.rel(m,d,h,p))})},oS=(e,n)=>r=>{var i;try{e.$flags$&256?(i=e.$lazyInstance$)==null||i[n](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}catch(s){ue(s,e.$hostElement$)}},nS=(e,n,r)=>r&8?oo:n,tS=e=>mj?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,rS=()=>{Dj(e=>{try{e.shadowRoot instanceof ShadowRoot&&e5(e,I6(e))}catch{}return"default"}),me(()=>import("./devtools-Dc462omO-B2BUJ00B.js"),__vite__mapDeps([107,9])).then(e=>{typeof e=="object"&&e!==null&&typeof e.initialize=="function"&&e.initialize()}).catch(e=>{Oo.error(e)})};const aS=rS;const lS=async(e,n)=>{if(!(typeof window>"u"))return await aS(),eS(JSON.parse('[["kol-abbr",[[289,"kol-abbr",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["kol-accordion",[[289,"kol-accordion",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-alert",[[289,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]],["kol-alert-wc",[[260,"kol-alert-wc",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]},null,{"_alert":["validateAlert"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_type":["validateType"],"_variant":["validateVariant"]}]]],["kol-avatar",[[289,"kol-avatar",{"_color":[1],"_src":[1],"_label":[1]}]]],["kol-avatar-wc",[[256,"kol-avatar-wc",{"_color":[1],"_src":[1],"_label":[1],"state":[32]},null,{"_color":["validateColor"],"_src":["validateSrc"],"_label":["validateLabel"]}]]],["kol-badge",[[289,"kol-badge",{"_color":[1],"_icons":[1],"_label":[1],"_smartButton":[1,"_smart-button"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_icons":["validateIcons"],"_color":["validateColor"],"_smartButton":["validateSmartButton"]}]]],["kol-breadcrumb",[[289,"kol-breadcrumb",{"_label":[1],"_links":[1],"state":[32]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-button",[[289,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-link",[[289,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_variant":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-wc",[[260,"kol-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaHasPopup":[1,"_aria-has-popup"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaSelected":["validateAriaSelected"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_icons":["validateIcons"],"_id":["validateId"],"_inline":["validateInline"],"_label":["validateLabel"],"_name":["validateName"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_tooltipAlign":["validateTooltipAlign"],"_type":["validateType"],"_value":["validateValue"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-card",[[289,"kol-card",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2]}]]],["kol-card-wc",[[260,"kol-card-wc",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"state":[32]},null,{"_on":["validateOn"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"]}]]],["kol-combobox",[[289,"kol-combobox",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_hideClearButton":[4,"_hide-clear-button"],"_suggestions":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"blockSuggestionMouseOver":[32],"_isOpen":[32],"_filteredSuggestions":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[0,"keydown","handleKeyDown"],[8,"click","handleWindowClick"],[1,"mousemove","handleMouseEvent"],[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_hideClearButton":["validateHideClearButton"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-details",[[289,"kol-details",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-drawer",[[289,"kol-drawer",{"_open":[4],"_align":[1],"_hasCloser":[4,"_has-closer"],"_label":[1],"_on":[16],"state":[32],"open":[64],"close":[64]},null,{"_label":["validateLabel"],"_align":["validateAlign"],"_hasCloser":["validateHasCloser"],"_open":["validateOpen"],"_on":["validateOn"]}]]],["kol-form",[[289,"kol-form",{"_on":[16],"_requiredText":[8,"_required-text"],"_errorList":[16],"state":[32],"focusErrorList":[64]},null,{"_on":["validateOn"],"_requiredText":["validateRequiredText"],"_errorList":["validateErrorList"]}]]],["kol-heading",[[289,"kol-heading",{"_label":[1],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"],"state":[32]},null,{"_label":["validateLabel"],"_level":["validateLevel"],"_secondaryHeadline":["validateSecondaryHeadline"]}]]],["kol-icon",[[289,"kol-icon",{"_icons":[1],"_label":[1],"state":[32]},null,{"_icons":["validateIcons"],"_label":["validateLabel"]}]]],["kol-image",[[289,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"state":[32]},null,{"_alt":["validateAlt"],"_loading":["validateLoading"],"_sizes":["validateSizes"],"_src":["validateSrc"],"_srcset":["validateSrcset"]}]]],["kol-input-checkbox",[[289,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_checked":[1540],"_hideMsg":[4,"_hide-msg"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_indeterminate":[1540],"_label":[1],"_labelAlign":[1,"_label-align"],"_msg":[1],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"_variant":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_checked":["validateChecked"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_indeterminate":["validateIndeterminate"],"_label":["validateLabel"],"_labelAlign":["validateLabelAlign"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-input-color",[[289,"kol-input-color",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-date",[[289,"kol-input-date",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[1],"_min":[1],"_msg":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[8],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"_initialValueType":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-input-email",[[289,"kol-input-email",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_maxLengthBehavior":["validateMaxLengthBehavior"]}]]],["kol-input-file",[[289,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"filename":[32],"hasFileSelected":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accept":["validateAccept"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"]}]]],["kol-input-number",[[289,"kol-input-number",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[8],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-password",[[289,"kol-input-password",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"state":[32],"_passwordVisible":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_variant":["validateVariant"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-radio",[[289,"kol-input-radio",{"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_tooltipAlign":["validateTooltipAlign"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_hideMsg":["validateHideMsg"],"_hint":["validateHint"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_orientation":["validateOrientation"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-range",[[289,"kol-input-range",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_step":[8],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"focus":[64],"kolFocus":[64],"getValue":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_step":["validateStep"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-text",[[289,"kol-input-text",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"selectionStart":[64],"selectioconEnd":[64],"setSelectionRange":[64],"setSelectionStart":[64],"setRangeText":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-kolibri",[[289,"kol-kolibri",{"_color":[1],"_labeled":[4],"state":[32]},null,{"_color":["validateColor"],"_labeled":["validateLabeled"]}]]],["kol-link",[[289,"kol-link",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_variant":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"focus":[64],"kolFocus":[64]}]]],["kol-link-button",[[289,"kol-link-button",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"focus":[64],"kolFocus":[64]}]]],["kol-link-wc",[[260,"kol-link-wc",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaOwns":[1,"_aria-owns"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_tabIndex":[2,"_tab-index"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaCurrentValue":["validateAriaCurrentValue"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaOwns":["validateAriaOwns"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_download":["validateDownload"],"_hideLabel":["validateHideLabel"],"_href":["validateHref"],"_icons":["validateIcons"],"_inline":["validateInline"],"_label":["validateLabel"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_tabIndex":["validateTabIndex"],"_target":["validateTarget"],"_tooltipAlign":["validateTooltipAlign"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-modal",[[289,"kol-modal",{"_label":[1],"_on":[16],"_width":[1],"_variant":[1],"state":[32],"openModal":[64],"closeModal":[64]},null,{"_label":["validateLabel"],"_on":["validateOn"],"_width":["validateWidth"],"_variant":["validateVariant"]}]]],["kol-nav",[[289,"kol-nav",{"_collapsible":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hasIconsWhenExpanded":[4,"_has-icons-when-expanded"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"_orientation":[1],"state":[32]},null,{"_collapsible":["validateCollapsible"],"_hasCompactButton":["validateHasCompactButton"],"_hasIconsWhenExpanded":["validateHasIconsWhenExpanded"],"_hideLabel":["validateHideLabel"],"_label":["validateLabel"],"_links":["validateLinks"],"_orientation":["validateOrientation"]}]]],["kol-pagination",[[289,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2]}]]],["kol-pagination-wc",[[256,"kol-pagination-wc",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2],"state":[32]},null,{"_boundaryCount":["validateBoundaryCount"],"_customClass":["validateCustomClass"],"_label":["validateLabel"],"_hasButtons":["validateHasButtons"],"_on":["validateOn"],"_page":["validatePage"],"_pageSize":["validatePageSize"],"_pageSizeOptions":["validatePageSizeOptions"],"_siblingCount":["validateSiblingCount"],"_max":["validateMax"],"_tooltipAlign":["validateTooltipAlign"]}]]],["kol-popover-button",[[289,"kol-popover-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]}]]],["kol-popover-button-wc",[[260,"kol-popover-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"justClosed":[32],"popoverOpen":[32],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]},null,{"_inline":["validateInline"],"_popoverAlign":["validatePopoverAlign"]}]]],["kol-popover-wc",[[260,"kol-popover-wc",{"_align":[1],"_on":[16],"_show":[1540],"state":[32]},null,{"_align":["validateAlign"],"_on":["validateOn"],"_show":["validateShow"]}]]],["kol-progress",[[289,"kol-progress",{"_label":[1],"_max":[2],"_unit":[1],"_value":[2],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_max":["validateMax"],"_unit":["validateUnit"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-quote",[[289,"kol-quote",{"_label":[1],"_href":[1],"_quote":[1],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_href":["validateHref"],"_quote":["validateQuote"],"_variant":["validateVariant"]}]]],["kol-select",[[289,"kol-select",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-select-wc",[[256,"kol-select-wc",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-single-select",[[289,"kol-single-select",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_hideClearButton":[4,"_hide-clear-button"],"_rows":[2],"_isOpen":[32],"_filteredOptions":[32],"_inputValue":[32],"blockSuggestionMouseOver":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"],[0,"keydown","handleKeyDown"],[1,"mousemove","handleMouseEvent"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_hideClearButton":["validateHideClearButton"],"_rows":["validateRows"]}]]],["kol-skip-nav",[[289,"kol-skip-nav",{"_label":[1],"_links":[1],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-spin",[[289,"kol-spin",{"_show":[1540],"_label":[1],"_variant":[1],"state":[32]},null,{"_show":["validateShow"],"_label":["validateLabel"],"_variant":["validateVariant"]}]]],["kol-split-button",[[289,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"closePopup":[64]}]]],["kol-table-settings-wc",[[256,"kol-table-settings-wc",{"_tableSettings":[16],"tableSettings":[32],"errorMessage":[32]},null,{"_tableSettings":["handleTableSettingsChange"]}]]],["kol-table-stateful",[[289,"kol-table-stateful",{"_allowMultiSort":[4,"_allow-multi-sort"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_headers":[1],"_label":[1],"_minWidth":[1,"_min-width"],"_pagination":[8],"_paginationPosition":[1,"_pagination-position"],"_selection":[1],"_on":[16],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"getSelection":[64]},null,{"_allowMultiSort":["validateAllowMultiSort"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_paginationPosition":["validatePaginationPosition"],"_hasSettingsMenu":["validateHasSettingsMenu"],"_headers":["validateHeaders"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_selection":["validateSelection"],"_on":["validateOn"],"_tableSettings":["validateTableSettings"],"_pagination":["validatePagination"]}]]],["kol-table-stateless",[[289,"kol-table-stateless",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"]}]]],["kol-table-stateless-wc",[[256,"kol-table-stateless-wc",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"tableDivElementHasScrollbar":[32],"previousHeaderCells":[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{"_hasSettingsMenu":["validateHasSettingsMenu"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_headerCells":["validateHeaderCells"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_on":["validateOn"],"_selection":["validateSelection"],"_tableSettings":["validateTableSettings"]}]]],["kol-tabs",[[289,"kol-tabs",{"_align":[1],"_behavior":[1],"_hasCreateButton":[4,"_has-create-button"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"state":[32]},null,{"_align":["validateAlign"],"_behavior":["validateBehavior"],"_hasCreateButton":["validateHasCreateButton"],"_label":["validateLabel"],"_on":["validateOn"],"_selected":["validateSelected"],"_tabs":["validateTabs"]}]]],["kol-textarea",[[289,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_adjustHeight":["validateAdjustHeight"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_resize":["validateResize"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-toast-container",[[289,"kol-toast-container",{"state":[32],"enqueue":[64],"closeAll":[64]}]]],["kol-toolbar",[[289,"kol-toolbar",{"_label":[1],"_items":[16],"_orientation":[1],"state":[32],"currentIndex":[32]},[[0,"keydown","handleKeyDown"],[2,"blur","handleBlur"]],{"_label":["validateLabel"],"_items":["validateItems"],"_orientation":["validateOrientation"]}]]],["kol-tooltip-wc",[[256,"kol-tooltip-wc",{"_badgeText":[1,"_badge-text"],"_align":[1],"_id":[1],"_label":[1],"state":[32],"hideTooltip":[64]},null,{"_badgeText":["validateBadgeText"],"_align":["validateAlign"],"_id":["validateId"],"_label":["validateLabel"]}]]],["kol-tree",[[289,"kol-tree",{"_label":[1]}]]],["kol-tree-item",[[289,"kol-tree-item",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]}]]],["kol-tree-item-wc",[[260,"kol-tree-item-wc",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"level":[32],"state":[32],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]},null,{"_active":["validateActive"],"_label":["validateLabel"],"_open":["validateOpen"],"_href":["validateHref"]}]]],["kol-tree-wc",[[260,"kol-tree-wc",{"_label":[1],"state":[32]},[[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]],{"_label":["validateLabel"]}]]],["kol-version",[[289,"kol-version",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["test-component",[[0,"test-component"]]]]'),n)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var Nb={};function iS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $s={exports:{}},cS=$s.exports,Q_;function sS(){return Q_||(Q_=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(cS,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],d={},u=null;function m(S,O){var E=S[O];if(typeof E.bind=="function")return E.bind(S);try{return Function.prototype.bind.call(E,S)}catch{return function(){return Function.prototype.apply.apply(E,[S,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(S){return S==="debug"&&(S="log"),typeof console===r?!1:S==="trace"&&i?h:console[S]!==void 0?m(console,S):console.log!==void 0?m(console,"log"):n}function g(){for(var S=this.getLevel(),O=0;O<s.length;O++){var E=s[O];this[E]=O<S?n:this.methodFactory(E,S,this.name)}if(this.log=this.debug,typeof console===r&&S<this.levels.SILENT)return"No console available for logging"}function v(S){return function(){typeof console!==r&&(g.call(this),this[S].apply(this,arguments))}}function _(S,O,E){return p(S)||v.apply(this,arguments)}function z(S,O){var E=this,x,w,$,D="loglevel";typeof S=="string"?D+=":"+S:typeof S=="symbol"&&(D=void 0);function H(ce){var ne=(s[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=S,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||_,E.getLevel=function(){return $??w??x},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&H($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(x=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},x=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})($s)),$s.exports}sS();const dS=(e,n)=>r=>r(e,n),uS=(e,n)=>r=>r(e,n,{append:!1}),fS=()=>{const e=typeof process<"u"&&Nb?Nb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,s="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||s||d||u||m||h},Un={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:fS(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of Un.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,s]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:s}]))),e}}},My=new Set,bS=/--[^;]+/g,mS=/:/,hS=typeof MutationObserver<"u";let Iy=()=>{Math.min(25+Math.log2(Un.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const pS=(e,n)=>{let r=n.match(bS);if(Array.isArray(r)){r=r.filter(s=>mS.test(s));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}My.add(e)},Xf=(e,n)=>{const r=Un.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},kS=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},vS=(e,n)=>{try{if(Un.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const s=new CSSStyleSheet;s.replaceSync(i),r.push(s)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const s=document.createElement("style");switch(s.dataset.themingFallback="",i){case 4:s.dataset.themingBaseA11y="";break;case 3:s.dataset.themingBaseGlobal="";break;case 2:s.dataset.themingBaseComponent="";break;case 1:s.dataset.themingCustomGlobal="";break;case 0:s.dataset.themingCustomComponent="";break;default:s.dataset.themingUnknown="";break}s.innerHTML=r,e.insertBefore(s,e.firstChild)})}},gS=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch{s=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),s.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),s.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},_S=(e,n,r)=>{const i=n.name||"default";let s;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(Un.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))e1(e,s,Un.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Xf(i,"PROPERTIES"),u=Xf(i,"GLOBAL"),m=Xf(i,e.tagName);My.has(i)===!1&&pS(i,u);const h=[d,u,m];gS(s,h,n.encroachCss),n.cache===!0&&(Un.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&Un.A11yUi.CSS_STYLE_CACHE.set(i,new Map),Un.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),e1(e,s,h,r)}},e1=(e,n,r,i)=>{const s=performance.now();if(kS(n),vS(n,r),Uy(e),i(),Un.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=Un.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-s}else Un.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-s})},xS=e=>{const n=Un.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;_S(e,i,r),Uy(e)}},yS={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},wS=hS?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(xS(i),n.observe(i,yS))}}):null;wS&&(Iy=()=>{});const Uy=e=>{Un.A11yUi.STYLING_TASK_QUEUE.delete(e),Iy()};class zS{Prefix;Key;Tag;createTheme=(n,r)=>uS(n,r);createTranslation=(n,r)=>dS(n,r);constructor(n,r,i){this.Prefix=n,this.Key=Object.getOwnPropertyNames(r),this.Tag=Object.getOwnPropertyNames(i)}}var Bb;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(Bb||(Bb={}));var Rb;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(Rb||(Rb={}));const Db=["development","production","test"];let Mb="production";const jS=e=>{try{if(Db.includes(e))Mb=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${Db.join(", ")}.`)}catch{Mb="production"}},SS=()=>{try{const e=typeof process<"u"&&Nb?"production":void 0;if(e&&Db.includes(e))return e}catch{}return"production"};jS(SS());const TS=()=>Mb==="development",AS="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",ml=e=>Array.isArray(e)?e:[e],o1=e=>`%c${e}`,CS=(e,n)=>typeof n=="string"&&n.length>0?`${o1(e)} | ${n}`:o1(e),hl=(e,n)=>[CS(e,n?.classifier),`${AS};${n?.overwriteStyle||""}`],Ai=e=>TS()||e===!0;class ES{constructor(n){this.label=n}debug(n,r){Ai(r?.forceLog)&&console.debug(...hl(this.label,r),...ml(n))}info(n,r){Ai(r?.forceLog)&&console.info(...hl(this.label,r),...ml(n))}trace(n,r){Ai(r?.forceLog)&&console.trace(...hl(this.label,r),...ml(n))}warn(n,r){Ai(r?.forceLog)&&console.warn(...hl(this.label,r),...ml(n))}error(n,r){console.error(...hl(this.label,r),...ml(n))}throw(n,r){if(Ai(r?.forceLog))throw new Error(...hl(this.label,r),...ml(n))}}const LS=new ES("KoliBri"),n1=new Set,OS=(e,n)=>{n1.has(e)===!1&&(n1.add(e),LS.debug([e].concat([]),{classifier:"💻 dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))};OS("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");var Mr={exports:{}},t1;function $S(){if(t1)return Mr.exports;t1=1,Mr.exports=e,Mr.exports.arr=e,Mr.exports.obj=n,Mr.exports.css=r,Mr.exports.hex=i,Mr.exports.num=s;function e(x){var w=d(x);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(x){var w=d(x);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(x){var w=d(x);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(x){var Z=d(x);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),H=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,H,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0):"#"+$+D+H:ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0)+Z.charAt(0):"#"+$+D+H+Z}function s(x){var w=d(x);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(x){return typeof x=="string"?(x=x.toLowerCase(),h(x)||g(x)||v(x)||O(x)||E(x)||[0,0,0,255]):z(x)||N(x)||S(x)||[0,0,0,255]}function u(x){var w=x.toString(16);return w.length==1?"0"+w:w}function m(x,w,$,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(x)!=-1&&H.indexOf(w)!=-1&&H.indexOf($)!=-1&&H.indexOf(D)!=-1}function h(x){if(x=="red")return[255,0,0];if(x=="green")return[0,255,0];if(x=="blue")return[0,0,255];if(x=="black")return[0,0,0];if(x=="white")return[255,255,255];if(x=="cyan")return[0,255,255];if(x=="gray")return[128,128,128];if(x=="grey")return[128,128,128];if(x=="magenta")return[255,0,255];if(x=="pink")return[255,0,255];if(x=="yellow")return[255,255,0]}function p(x){return x.length==1?parseInt(x+x,16):parseInt(x,16)}function g(x){var w=x.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),H=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function v(x){var w=x.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function _(x,w){return typeof x!="number"||w===!0&&Math.floor(x)!==x?-1:x>=0&&x<=255?x:-1}function z(x){if(Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x)===Object.getPrototypeOf({})){var w=_(x.r!=null?x.r:x.red!=null?x.red:0,!0),$=_(x.g!=null?x.g:x.green!=null?x.green:0,!0),D=_(x.b!=null?x.b:x.blue!=null?x.blue:0,!0),H=_(x.a!=null?x.a:x.alpha!=null?x.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function N(x){if(Array.isArray(x)&&(x.length==3||x.length==4)){var w=_(x[0],!0),$=_(x[1],!0),D=_(x[2],!0),H=_(x[3]!=null?x[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function S(x){if(typeof x=="number"&&Math.floor(x)==x&&x<=4294967295&&x>=0){var w=x>>24&255,$=x>>16&255,D=x>>8&255,H=x&255;return[$,D,H,w]}}function O(x){if(x.substr(0,4)=="rgb("){x=x.match(/^rgb\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if($!=-1&&D!=-1&&H!=-1)return[$,D,H,255]}}function E(x){if(x.substr(0,5)=="rgba("){x=x.match(/^rgba\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),Z=_(w[3]*255);if($!=-1&&D!=-1&&H!=-1&&Z!=-1)return[$,D,H,Z]}}return Mr.exports}$S();var Wf={},r1;function NS(){return r1||(r1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,s)=>{s.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,s=document)=>{if(s instanceof Document||s instanceof HTMLElement||s instanceof ShadowRoot){const d=new Set;n(d,s.querySelectorAll(i));const u=s.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(Wf)),Wf}NS();var Qf={},a1;function BS(){return a1||(a1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let s=i.querySelector(r);if(s===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?s=(0,e.querySelector)(r,m):s=(0,e.querySelector)(r,d[u]),s!==null)break}}return s}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(Qf)),Qf}BS();new Event("StateChange");var eb,l1;function RS(){return l1||(l1=1,eb=function(n){return function(r,i){if(!r)return n;var s;typeof r=="string"?s=r:i=r;var d=n;return s&&(d+="__"+s),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),eb}var DS=RS(),MS=iS(DS);function Hy(){const e=new Map,n=(r,i,s)=>{try{return e.get(r)(i,s)}catch{return e.set(r,MS(r)).get(r)(i,s)}};return n.forBlock=r=>{const i=(s,d)=>n(r,s,d);return i.forElement=s=>d=>n(r,s,d),i},n}const Fy=Hy();Fy("kol-icon");Fy("kol-icon","icon");const _m=Hy();_m("kol-alert","closer")+"";_m("kol-alert","content");_m("kol-alert","icon");var i1;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(i1||(i1={}));const xm=new zS("kol",Bb,Rb);var hn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(hn||(hn={}));var Ve;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(Ve||(Ve={}));var ur;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(ur||(ur={}));const ye=new Map;ye.set(hn["Die Bundesregierung"],["Die","Bundesregierung"]);ye.set(hn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);ye.set(hn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);ye.set(hn["Auswärtiges Amt"],["Auswärtiges Amt"]);ye.set(hn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);ye.set(hn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);ye.set(hn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);ye.set(hn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);ye.set(hn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);ye.set(hn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);ye.set(hn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);ye.set(hn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);ye.set(hn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);ye.set(hn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);ye.set(hn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);ye.set(Ve["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);ye.set(Ve["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);ye.set(Ve["Bundesamt für äußere Restitutionen"],[]);ye.set(Ve["Bundesamt für Bauwesen und Raumordnung"],[]);ye.set(Ve["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);ye.set(Ve["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);ye.set(Ve["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);ye.set(Ve["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);ye.set(Ve["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);ye.set(Ve["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);ye.set(Ve["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);ye.set(Ve["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);ye.set(Ve["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);ye.set(Ve["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);ye.set(Ve["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);ye.set(Ve["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);ye.set(Ve["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);ye.set(Ve.Bundesarchiv,["Das","Bundesarchiv"]);ye.set(Ve["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);ye.set(Ve.Bundesausgleichsamt,["Bundesausgleichsamt"]);ye.set(Ve.Bundeskartellamt,["Bundeskartellamt"]);ye.set(Ve.Bundeskriminalamt,["Bundeskriminalamt"]);ye.set(Ve.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);ye.set(Ve["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);ye.set(Ve.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);ye.set(Ve["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);ye.set(Ve.Bundessortenamt,["Bundessortenamt"]);ye.set(Ve.Bundessprachenamt,["Bundessprachenamt"]);ye.set(Ve["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);ye.set(Ve.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);ye.set(Ve["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);ye.set(Ve["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);ye.set(Ve["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);ye.set(Ve.Generalzolldirektion,["Generalzolldirektion"]);ye.set(Ve["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);ye.set(Ve["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);ye.set(ur["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);ye.set(ur["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);ye.set(ur["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);ye.set(ur["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);ye.set(ur["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);ye.set(ur["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);ye.set(ur["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);var IS=`/* forward the rem function */
|
|
32
32
|
@layer kol-theme-component {
|
|
33
33
|
abbr {
|
|
34
34
|
text-decoration: none;
|
|
35
35
|
border-bottom: dashed var(--color-text) calc(1 * 1rem / var(--kolibri-root-font-size, 16));
|
|
36
36
|
}
|
|
37
|
-
}`,
|
|
37
|
+
}`,US=`/* forward the rem function */
|
|
38
38
|
@layer kol-theme-component {
|
|
39
39
|
.kol-accordion {
|
|
40
40
|
display: grid;
|
|
@@ -81,7 +81,7 @@ Link:
|
|
|
81
81
|
.kol-accordion__heading-button .kol-icon {
|
|
82
82
|
color: var(--color-primary);
|
|
83
83
|
}
|
|
84
|
-
}`,
|
|
84
|
+
}`,HS=`/* forward the rem function */
|
|
85
85
|
@layer kol-theme-component {
|
|
86
86
|
.kol-alert :host {
|
|
87
87
|
--theme-visibility-delay: 0.5s;
|
|
@@ -278,7 +278,7 @@ Link:
|
|
|
278
278
|
.kol-alert--variant-card .kol-alert__content {
|
|
279
279
|
padding: calc(16 * 1rem / var(--kolibri-root-font-size, 16));
|
|
280
280
|
}
|
|
281
|
-
}`,
|
|
281
|
+
}`,FS=`/* forward the rem function */
|
|
282
282
|
@layer kol-theme-component {
|
|
283
283
|
.kol-badge {
|
|
284
284
|
border-radius: var(--border-radius);
|
|
@@ -313,7 +313,7 @@ Link:
|
|
|
313
313
|
display: flex;
|
|
314
314
|
gap: calc(4 * 1rem / var(--kolibri-root-font-size, 16));
|
|
315
315
|
}
|
|
316
|
-
}`,
|
|
316
|
+
}`,KS=`/* forward the rem function */
|
|
317
317
|
@layer kol-theme-component {
|
|
318
318
|
.kol-link {
|
|
319
319
|
color: var(--color-primary);
|
|
@@ -347,7 +347,7 @@ Link:
|
|
|
347
347
|
.kol-link {
|
|
348
348
|
line-height: 1;
|
|
349
349
|
}
|
|
350
|
-
}`,
|
|
350
|
+
}`,VS=`/* forward the rem function */
|
|
351
351
|
@layer kol-theme-component {
|
|
352
352
|
.kol-button {
|
|
353
353
|
color: var(--color-primary);
|
|
@@ -388,7 +388,7 @@ Link:
|
|
|
388
388
|
.kol-button:is(:focus, :hover):not([aria-disabled], [disabled]) .kol-button__text .kol-span__label {
|
|
389
389
|
text-decoration-thickness: 0.25em;
|
|
390
390
|
}
|
|
391
|
-
}`,
|
|
391
|
+
}`,qS=`/* forward the rem function */
|
|
392
392
|
@layer kol-theme-component {
|
|
393
393
|
:host {
|
|
394
394
|
--theme-visibility-delay: 0.5s;
|
|
@@ -491,7 +491,7 @@ Link:
|
|
|
491
491
|
--text-box-shadow: none;
|
|
492
492
|
--kol-focus-outline-offset: -2px;
|
|
493
493
|
}
|
|
494
|
-
}`,
|
|
494
|
+
}`,ZS=`/* forward the rem function */
|
|
495
495
|
@layer kol-theme-component {
|
|
496
496
|
.kol-card :host {
|
|
497
497
|
--theme-visibility-delay: 0.5s;
|
|
@@ -611,7 +611,7 @@ Link:
|
|
|
611
611
|
.kol-card__content {
|
|
612
612
|
padding: calc(8 * 1rem / var(--kolibri-root-font-size, 16)) calc(16 * 1rem / var(--kolibri-root-font-size, 16)) calc(16 * 1rem / var(--kolibri-root-font-size, 16));
|
|
613
613
|
}
|
|
614
|
-
}`,
|
|
614
|
+
}`,PS=`/* forward the rem function */
|
|
615
615
|
@layer kol-theme-component {
|
|
616
616
|
.kol-alert :host {
|
|
617
617
|
--theme-visibility-delay: 0.5s;
|
|
@@ -1192,7 +1192,7 @@ Link:
|
|
|
1192
1192
|
width: 100%;
|
|
1193
1193
|
align-items: center;
|
|
1194
1194
|
}
|
|
1195
|
-
}`,
|
|
1195
|
+
}`,GS=`/* forward the rem function */
|
|
1196
1196
|
@layer kol-theme-component {
|
|
1197
1197
|
.kol-details {
|
|
1198
1198
|
display: grid;
|
|
@@ -1227,7 +1227,7 @@ Link:
|
|
|
1227
1227
|
transition: 200ms outline-offset linear;
|
|
1228
1228
|
cursor: pointer;
|
|
1229
1229
|
}
|
|
1230
|
-
}`,
|
|
1230
|
+
}`,YS=`/* forward the rem function */
|
|
1231
1231
|
@layer kol-theme-component {
|
|
1232
1232
|
.kol-card :host {
|
|
1233
1233
|
--theme-visibility-delay: 0.5s;
|
|
@@ -1441,7 +1441,7 @@ Link:
|
|
|
1441
1441
|
to {
|
|
1442
1442
|
transform: translateY(100%);
|
|
1443
1443
|
}
|
|
1444
|
-
}`,
|
|
1444
|
+
}`,JS=`/* forward the rem function */
|
|
1445
1445
|
@layer kol-theme-component {
|
|
1446
1446
|
.kol-link {
|
|
1447
1447
|
color: var(--color-primary);
|
|
@@ -1666,7 +1666,7 @@ Link:
|
|
|
1666
1666
|
padding: 0 calc(18 * 1rem / var(--kolibri-root-font-size, 16)) 0 calc(8 * 1rem / var(--kolibri-root-font-size, 16));
|
|
1667
1667
|
border-left: 2px solid var(--color-primary-variant);
|
|
1668
1668
|
}
|
|
1669
|
-
}`,
|
|
1669
|
+
}`,XS=`/* forward the rem function */
|
|
1670
1670
|
@layer kol-theme-component {
|
|
1671
1671
|
.kol-headline--h1 {
|
|
1672
1672
|
font-size: calc(24 * 1rem / var(--kolibri-root-font-size, 16));
|
|
@@ -1687,7 +1687,7 @@ Link:
|
|
|
1687
1687
|
.kol-headline--h1, .kol-headline--h2, .kol-headline--h3 {
|
|
1688
1688
|
font-weight: 700;
|
|
1689
1689
|
}
|
|
1690
|
-
}`,
|
|
1690
|
+
}`,WS=`@layer kol-theme-component {
|
|
1691
1691
|
/*!
|
|
1692
1692
|
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
1693
1693
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -9467,7 +9467,7 @@ Link:
|
|
|
9467
9467
|
src: url("../webfonts/fa-v4compatibility.woff2") format("woff2"), url("../webfonts/fa-v4compatibility.ttf") format("truetype");
|
|
9468
9468
|
unicode-range: U+F041, U+F047, U+F065-F066, U+F07D-F07E, U+F080, U+F08B, U+F08E, U+F090, U+F09A, U+F0AC, U+F0AE, U+F0B2, U+F0D0, U+F0D6, U+F0E4, U+F0EC, U+F10A-F10B, U+F123, U+F13E, U+F148-F149, U+F14C, U+F156, U+F15E, U+F160-F161, U+F163, U+F175-F178, U+F195, U+F1F8, U+F219, U+F250, U+F252, U+F27A;
|
|
9469
9469
|
}
|
|
9470
|
-
}`,
|
|
9470
|
+
}`,QS=`/* forward the rem function */
|
|
9471
9471
|
@layer kol-theme-component {
|
|
9472
9472
|
.kol-alert :host {
|
|
9473
9473
|
--theme-visibility-delay: 0.5s;
|
|
@@ -17280,7 +17280,7 @@ Link:
|
|
|
17280
17280
|
.kol-toast-item {
|
|
17281
17281
|
margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));
|
|
17282
17282
|
}
|
|
17283
|
-
}`,
|
|
17283
|
+
}`,j3=`/* forward the rem function */
|
|
17284
17284
|
@layer kol-theme-component {
|
|
17285
17285
|
:host {
|
|
17286
17286
|
--theme-visibility-delay: 0.5s;
|
|
@@ -17518,7 +17518,7 @@ Link:
|
|
|
17518
17518
|
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
|
17519
17519
|
border-right: var(--border-width) solid var(--text-border-color);
|
|
17520
17520
|
}
|
|
17521
|
-
}`,
|
|
17521
|
+
}`,S3=`/* forward the rem function */
|
|
17522
17522
|
@layer kol-theme-component {
|
|
17523
17523
|
.kol-tree-item {
|
|
17524
17524
|
--tree-item-indentation: calc(20 * 1rem / var(--kolibri-root-font-size, 16));
|
|
@@ -17642,7 +17642,7 @@ Link:
|
|
|
17642
17642
|
transform: rotate(360deg);
|
|
17643
17643
|
}
|
|
17644
17644
|
}
|
|
17645
|
-
}`;const C3=
|
|
17645
|
+
}`;const C3=xm.createTheme("default",{GLOBAL:A3,"KOL-ABBR":IS,"KOL-ACCORDION":US,"KOL-ALERT":HS,"KOL-BADGE":FS,"KOL-BREADCRUMB":KS,"KOL-BUTTON":qS,"KOL-BUTTON-LINK":VS,"KOL-CARD":ZS,"KOL-COMBOBOX":PS,"KOL-DETAILS":GS,"KOL-DRAWER":YS,"KOL-FORM":JS,"KOL-HEADING":XS,"KOL-ICON":WS,"KOL-INPUT-CHECKBOX":QS,"KOL-INPUT-COLOR":e3,"KOL-INPUT-DATE":o3,"KOL-INPUT-EMAIL":n3,"KOL-INPUT-FILE":t3,"KOL-INPUT-NUMBER":r3,"KOL-INPUT-PASSWORD":a3,"KOL-INPUT-RADIO":l3,"KOL-INPUT-RANGE":i3,"KOL-INPUT-TEXT":c3,"KOL-LINK":d3,"KOL-LINK-BUTTON":s3,"KOL-MODAL":u3,"KOL-NAV":f3,"KOL-PAGINATION":b3,"KOL-POPOVER-BUTTON":m3,"KOL-PROGRESS":h3,"KOL-SELECT":p3,"KOL-SINGLE-SELECT":k3,"KOL-SKIP-NAV":v3,"KOL-SPLIT-BUTTON":g3,"KOL-TABLE-STATEFUL":_3,"KOL-TABLE-STATELESS":x3,"KOL-TABS":y3,"KOL-TEXTAREA":w3,"KOL-TOAST-CONTAINER":z3,"KOL-TOOLBAR":j3,"KOL-TREE":T3,"KOL-TREE-ITEM":S3});var E3=`/* forward the rem function */
|
|
17646
17646
|
@layer kol-theme-component {
|
|
17647
17647
|
.kol-accordion {
|
|
17648
17648
|
background-color: var(--color-grey-5);
|
|
@@ -21737,7 +21737,7 @@ Link:
|
|
|
21737
21737
|
border-radius: 3px;
|
|
21738
21738
|
padding: 0 0.3em;
|
|
21739
21739
|
}
|
|
21740
|
-
}`;const gT=
|
|
21740
|
+
}`;const gT=xm.createTheme("ecl-ec",{GLOBAL:vT,"KOL-ACCORDION":E3,"KOL-ALERT":L3,"KOL-BADGE":O3,"KOL-BREADCRUMB":$3,"KOL-BUTTON":B3,"KOL-BUTTON-LINK":N3,"KOL-CARD":R3,"KOL-COMBOBOX":D3,"KOL-DETAILS":M3,"KOL-DRAWER":I3,"KOL-FORM":U3,"KOL-HEADING":H3,"KOL-INPUT-CHECKBOX":F3,"KOL-INPUT-COLOR":K3,"KOL-INPUT-DATE":V3,"KOL-INPUT-EMAIL":q3,"KOL-INPUT-FILE":Z3,"KOL-INPUT-NUMBER":P3,"KOL-INPUT-PASSWORD":G3,"KOL-INPUT-RADIO":Y3,"KOL-INPUT-RANGE":J3,"KOL-INPUT-TEXT":X3,"KOL-LINK":Q3,"KOL-LINK-BUTTON":W3,"KOL-MODAL":eT,"KOL-NAV":oT,"KOL-PAGINATION":nT,"KOL-POPOVER-BUTTON":tT,"KOL-PROGRESS":rT,"KOL-SELECT":aT,"KOL-SINGLE-SELECT":lT,"KOL-SKIP-NAV":iT,"KOL-SPIN":cT,"KOL-SPLIT-BUTTON":sT,"KOL-TABLE-STATEFUL":dT,"KOL-TABLE-STATELESS":uT,"KOL-TABS":fT,"KOL-TEXTAREA":bT,"KOL-TOAST-CONTAINER":mT,"KOL-TOOLBAR":hT,"KOL-TREE":kT,"KOL-TREE-ITEM":pT});var _T=`/* forward the rem function */
|
|
21741
21741
|
@layer kol-theme-component {
|
|
21742
21742
|
.kol-accordion {
|
|
21743
21743
|
box-shadow: 0 calc(2 * 1rem / var(--kolibri-root-font-size, 16)) calc(4 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.08), 0 0 calc(10 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.04), 0 calc(4 * 1rem / var(--kolibri-root-font-size, 16)) calc(5 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.04), 0 calc(-4 * 1rem / var(--kolibri-root-font-size, 16)) calc(4 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.04);
|
|
@@ -21897,7 +21897,7 @@ Link:
|
|
|
21897
21897
|
.kol-button:hover {
|
|
21898
21898
|
color: var(--color-blue-130);
|
|
21899
21899
|
}
|
|
21900
|
-
}`,
|
|
21900
|
+
}`,jT=`/* forward the rem function */
|
|
21901
21901
|
@layer kol-theme-component {
|
|
21902
21902
|
.kol-button {
|
|
21903
21903
|
--kolibri-spacing: calc(4 * 1rem / var(--kolibri-root-font-size, 16));
|
|
@@ -21983,7 +21983,7 @@ Link:
|
|
|
21983
21983
|
.kol-button--hide-label .kol-button__text .kol-span__label {
|
|
21984
21984
|
display: none;
|
|
21985
21985
|
}
|
|
21986
|
-
}`,
|
|
21986
|
+
}`,ST=`/* forward the rem function */
|
|
21987
21987
|
@layer kol-theme-component {
|
|
21988
21988
|
.kol-card {
|
|
21989
21989
|
background-color: white;
|
|
@@ -25951,7 +25951,7 @@ Link:
|
|
|
25951
25951
|
border-radius: 3px;
|
|
25952
25952
|
padding: 0 0.3em;
|
|
25953
25953
|
}
|
|
25954
|
-
}`;const c8=_m.createTheme("ecl-eu",{GLOBAL:i8,"KOL-ACCORDION":_T,"KOL-ALERT":xT,"KOL-BADGE":yT,"KOL-BREADCRUMB":wT,"KOL-BUTTON":ST,"KOL-BUTTON-LINK":zT,"KOL-CARD":jT,"KOL-COMBOBOX":TT,"KOL-DETAILS":AT,"KOL-DRAWER":CT,"KOL-FORM":ET,"KOL-HEADING":LT,"KOL-INPUT-CHECKBOX":OT,"KOL-INPUT-COLOR":$T,"KOL-INPUT-DATE":NT,"KOL-INPUT-EMAIL":BT,"KOL-INPUT-FILE":RT,"KOL-INPUT-NUMBER":DT,"KOL-INPUT-PASSWORD":MT,"KOL-INPUT-RADIO":IT,"KOL-INPUT-RANGE":UT,"KOL-INPUT-TEXT":HT,"KOL-LINK":KT,"KOL-LINK-BUTTON":FT,"KOL-MODAL":VT,"KOL-NAV":qT,"KOL-PAGINATION":ZT,"KOL-POPOVER-BUTTON":PT,"KOL-SELECT":GT,"KOL-SINGLE-SELECT":YT,"KOL-SKIP-NAV":JT,"KOL-SPIN":XT,"KOL-SPLIT-BUTTON":WT,"KOL-TABLE-STATEFUL":QT,"KOL-TABLE-STATELESS":e8,"KOL-TABS":o8,"KOL-TEXTAREA":n8,"KOL-TOAST-CONTAINER":t8,"KOL-TOOLBAR":r8,"KOL-TREE":l8,"KOL-TREE-ITEM":a8}),s8="3.1.1",Mb={version:s8},d8=()=>{const e={onClick:()=>history.back()};return a.jsxs(gn,{_label:"This is an example page",_level:0,_type:"info",children:[a.jsx("p",{children:"You followed an example link."}),history.length>1&&a.jsx(W,{_label:"Go Back",_on:e})]})},Ky=["default","ecl-ec","ecl-eu","unstyled"],xm=e=>Ky.find(n=>n===e)!==void 0,ym=[{label:"Unstyled (Uncolored)",value:"unstyled"},{label:"Default (Tested)",value:"default"},{label:"European Commission (in progress)",value:"ecl-ec"},{label:"European Union (in progress)",value:"ecl-eu"}];function u8(){const e=matchMedia("(max-width: 1023px)"),[n,r]=S.useState(e.matches),i=()=>{r(e.matches)};return S.useEffect(()=>(i(),e.addEventListener("change",i),()=>{e.removeEventListener("change",i)}),[e]),n}function f8({children:e}){return u8()?a.jsx(rn,{_label:"All components",class:"mt",children:e}):a.jsx("div",{className:"mt scrollable-container",children:e})}function i1({label:e,to:n,children:r}){const i=Rx(n),s=Al(n),d=$4({path:s.pathname,end:!0});return a.jsx(Qo,{_label:e,_href:i,_active:!!d,children:r})}function b8({routes:e}){const n=(i,s)=>Object.keys(s).map(d=>{const u=i==="tree"&&d==="basic/:subPage",m=u?"basic/home":d,h=u?"basic":d;return a.jsx(i1,{label:h,to:[i,m].join("/")},[i,d].join("/"))}),r=Object.entries(e).map(([i,s])=>a.jsx(i1,{label:i,to:i,children:n(i,s)},i));return a.jsx(f8,{children:a.jsx("nav",{children:a.jsx(zx,{_label:"Navigation",class:"block",children:r})})})}const m8=({buildDate:e,commitHash:n})=>!e&&!n?"":a.jsx("div",{className:"text-sm font-mono color-gray-5 m-t-2",children:e&&n?a.jsxs(a.Fragment,{children:["Build: ",n,a.jsx("br",{}),"at ",e]}):n?`Build: ${n}`:`Build date: ${e}`}),h8=({version:e,theme:n,routes:r,routeList:i,sample:s,buildDate:d,commitHash:u,onThemeChange:m})=>{const h=()=>i.indexOf(s),p=()=>s.replace(/\//g," "),g=(z,N)=>{m(N)},v=()=>{const z=h(),N=z<=0?i.length-1:z-1;location.replace(`#${i[N]}`)},_=()=>{const z=h(),N=z===i.length-1?0:z+1;location.replace(`#${i[N]}`)};return a.jsx("aside",{className:"app-sidebar p-4",children:a.jsxs("div",{className:"scrollable-container-wrapper",children:[a.jsxs("div",{className:"flex flex-justify-between flex-items-center",children:[a.jsx(be,{_label:"KoliBri React"}),a.jsx(Ws,{_label:e})]}),a.jsx(m8,{buildDate:d,commitHash:u}),a.jsx(Jo,{_label:"Theme",_options:ym,_on:{onChange:g},_value:n,class:"mt"}),a.jsx(be,{_label:"Components",_level:2,className:"block mt"}),a.jsxs("div",{className:"flex flex-justify-between flex-items-center mt",children:[a.jsx(W,{_icons:"codicon codicon-arrow-left",_hideLabel:!0,_label:"Previous component",_on:{onClick:v}}),a.jsxs("span",{className:"text-base text-center",children:[p()," (",h()+1,"/",i.length,")"]}),a.jsx(W,{_icons:"codicon codicon-arrow-right",_hideLabel:!0,_label:"Next component",_on:{onClick:_}})]}),a.jsx(b8,{routes:r})]})})},p8=()=>{const e=rt();U5("#"+e.pathname)},wm=S.createContext(null),k8="https://public-ui.github.io/docs/components",v8="https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components",Ue="I am an error message!",xn="I am a hint.",V=e=>{const n=S.useContext(wm),r=rt(),i=r.pathname.split("/").slice(1),s=S.useMemo(()=>i[0]==="scenarios"?null:`${k8}/${i[0]}`,[r.hash]),d=S.useMemo(()=>i[0]==="scenarios"?null:`${v8}/${i[0]}/${i[1]}.tsx`,[r.hash]);return a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:"visually-hidden",children:r.pathname.replace(/\//g," ")}),n?null:a.jsxs("div",{className:"grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2",children:[a.jsx("div",{className:"indented-text",children:e.children}),a.jsxs("ul",{className:"flex flex-wrap gap-2 list-none m-0 p-0",children:[d&&a.jsx("li",{children:a.jsx(_e,{_href:d,_label:"Code",_target:"_blank"})}),s&&a.jsx("li",{children:a.jsx(_e,{_href:s,_label:"Documentation",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:`#${r.pathname}?hideMenus`,_label:"Standalone example",_target:"_blank"})})]})]})]})},g8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolAbbr shows an abbreviation and uses kol-tooltip-wc to display the long form, if provided."})}),a.jsxs("p",{children:["I am ",a.jsx(Ri,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Ri,{children:"e.g."})," an abbreviation without label."]})]}),_8={abbr:{basic:g8}},x8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolAccordion hides its content until opened. The open state can be toggled by clicking the headline or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. Additionally, the sample shows the disabled state for a closed and an open accordion."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Heading Accordion Tab 1 (open)",_open:!0,children:a.jsx(_n,{_label:"Combobox in Accordion",_suggestions:"['Herr','Frau','Firma']"})}),a.jsx(rn,{_label:"Heading Accordion Tab 2",children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Accordion Tab 3 (deactivated)",_disabled:!0,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Accordion Tab 4 (disabled and open)",_disabled:!0,_open:!0,children:"Contents Accordion Tab 4"})]})]}),y8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolAccordion with the different heading levels from 1-6."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Heading Level 1",_level:1,children:"Contents Accordion Tab 1"}),a.jsx(rn,{_label:"Heading Level 2",_level:2,children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Level 3",_level:3,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Level 4",_level:4,children:"Contents Accordion Tab 4"}),a.jsx(rn,{_label:"Heading Level 5",_level:5,children:"Contents Accordion Tab 5"}),a.jsx(rn,{_label:"Heading Level 6",_level:6,children:"Contents Accordion Tab 6"})]})]}),w8={accordion:{basic:x8,headlines:y8}},Ai=({level:e,type:n,variant:r})=>a.jsxs(a.Fragment,{children:[a.jsx(gn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,children:"This is the text of the alert."}),a.jsx(gn,{_type:n,_variant:r,children:"In this alert, only the text without the heading is used."}),a.jsx(gn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,_hasCloser:!0,children:"This is the text of the alert. With close button."}),a.jsx(gn,{_type:n,_variant:r,_hasCloser:!0,children:"In this alert, only the text without the heading is used. With close button."})]}),Vy=({variant:e="msg"})=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ai,{level:1,type:"default",variant:e}),a.jsx(Ai,{level:2,type:"error",variant:e}),a.jsx(Ai,{level:3,type:"info",variant:e}),a.jsx(Ai,{level:4,type:"success",variant:e}),a.jsx(Ai,{level:5,type:"warning",variant:e})]}),z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"msg"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx(Vy,{variant:"msg"})]}),S8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"card"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx("section",{className:"w-full",children:a.jsx(Vy,{variant:"card"})})]}),j8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolAlert can be used with arbitrary HTML as slot content."})}),a.jsx("div",{children:a.jsxs(gn,{_label:"Output of HTML code in the alert",_type:"info",children:[a.jsx("div",{className:"mt-2 mb-3",children:a.jsx(be,{_level:2,_label:"An H2 heading is output here"})}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("h3",{children:"Text in a left-hand column"}),a.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur dicta accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?"})]}),a.jsxs("div",{children:[a.jsx("h3",{children:"Text in einer rechten Spalte"}),a.jsx("p",{children:"Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo. Possimus, molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!"})]})]})]})})]}),T8={alert:{basic:z8,"card-msg":S8,html:j8}},A8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolAvatar shows a user's avatar with customizable colors. It can be used with or without an image. If no image is defined, the name's initials are shown instead with a configurable background color."})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(hs,{_src:"https://www.w3schools.com/howto/img_avatar.png",_label:"Elke Mustermann"}),a.jsx(hs,{_label:"Elke Mustermann "}),a.jsx(hs,{_label:"Marianne"}),a.jsx(hs,{_color:"#0000FF",_label:"Christian"})]})]}),C8={avatar:{basic:A8}},E8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolBadge shows badges with a label, background color and optional icon."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(wo,{_label:"black"}),a.jsx(wo,{_color:"#86ffc6",_label:"teal"}),a.jsx(wo,{_color:"#06539e",_label:"blue"}),a.jsx(wo,{_color:"#ae0000",_label:"red with icon",_icons:"codicon codicon-smiley"}),a.jsx(wo,{_color:"#8b008b",_label:"purple with icon",_icons:"codicon codicon-squirrel"})]})]}),Ci=e=>({_label:e,_smartButton:{_ariaDescription:e,_icons:"codicon codicon-close",_label:"Remove",_on:{onClick:()=>alert("clicked")}}}),L8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolBadge with an optional ",a.jsx("code",{children:"smartButton"}),'. The sample defines a "close" button with X-icon a click event listener.']})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(wo,{...Ci("black")}),a.jsx(wo,{_color:"#86ffc6",...Ci("teal")}),a.jsx(wo,{_color:"#06539e",...Ci("blue")}),a.jsx(wo,{_color:"#ae0000",_icons:"codicon codicon-smiley",...Ci("red with icon")}),a.jsx(wo,{_color:"#8b008b",_icons:"codicon codicon-squirrel",...Ci("purple with icon")})]})]}),O8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates the possibility of formatted text in badges via markdown syntax."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(wo,{_color:"#7db4ebff",_label:"**Bold** and _italic_ Markdown label"}),a.jsx(wo,{_color:"#8feb7dff",_label:"This is ~~strikethrough~~ text"}),a.jsx(wo,{_color:"#e6ee8eff",_label:"Source code like `y = mx + n` is possible"})]})]}),$8={badge:{basic:E8,button:L8,"formatted-label":O8}},N8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolBreadcrumb shows a breadcrumb navigation. The sample illustrates a variation of link, text and icon elements."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(zs,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(zs,{_label:"Breadcrumb from icons or text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_hideLabel:!0,_href:"#/back-page"},{_label:"Subpage of the start page with very long link test",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(zs,{_label:"Breadcrumb from icons and text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"Subpage of the main page and I_am_a_really_long_compound_word_trying_to_break_the_layout",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})]})]}),B8={breadcrumb:{basic:N8}},R8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Button Text without area description"}),a.jsx(Pe,{_label:"Button Text",_ariaDescription:"Button Area Description"})]})]});function Do(){const e=Vr.getInstance(document),n=s=>{e.enqueue({description:s||"Hello",label:"Hello",type:"info"})};return{dummyClickEventHandler:()=>{n()},buttonWithTextClickEventHandler:s=>{const d=s.currentTarget.textContent;n(d)}}}const D8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties such as ",a.jsx("code",{children:"block"}),", ",a.jsx("code",{children:"inline-block"})," and ",a.jsx("code",{children:"inline"}),". It also demonstrates the disabled-state."]})}),a.jsxs("section",{className:"text-base",children:[a.jsx(be,{_level:2,_label:"Button-Link with _inline"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(Pe,{_label:"Simple Link"})," It is rendered by default as an"," ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element.",a.jsx(Pe,{className:"m-4",style:{display:"inline-block",border:"1px dotted"},_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element.",a.jsx(Pe,{style:{display:"block"},_label:"Simple Link"}),"Therefore, I go over the entire width of the parent element to create a line break."]}),a.jsx(be,{_level:2,_label:"Button-Link with _inline={false}"}),a.jsx("p",{children:"Use the boolean _inline property to render the link inline (default) or standalone."}),a.jsx("p",{children:a.jsx(Pe,{_label:"Disabled ButtonLink",_disabled:!0,_inline:!1})}),a.jsx("p",{children:a.jsx(Pe,{_label:"With access key",_accessKey:"c",_inline:!1,_on:n})}),a.jsx("p",{children:a.jsx(Pe,{_label:"Disabled ButtonLink",_inline:!1,_shortKey:"s"})})]})]})},M8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with icons in different locations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Pe,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left"}),a.jsx(Pe,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right"}),a.jsx(Pe,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top"}),a.jsx(Pe,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below"}),a.jsx(Pe,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons"}),a.jsx(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"I am a link with icon only"})]})]}),I8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with slot-content instead of a label. The sample uses an image as content."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Pe,{_label:"I am a link that is rendered as text"}),a.jsx(Pe,{_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),U8={"button-link":{basic:D8,icons:M8,image:I8,"aria-description":R8}},H8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolButton with"," ",a.jsx(_e,{_label:"access keys",_href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey",_target:"blank"}),". The access keys can be used to trigger the buttons using the keyboard."]})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"With S access key",_accessKey:"S",_on:n}),a.jsx(W,{_label:"Very small b",_accessKey:"b",_on:n}),a.jsx(W,{_label:"Access key does not appear in label",_accessKey:"x",_on:n}),a.jsx(W,{_label:"access key without label",_hideLabel:!0,_accessKey:"a",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(W,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_accessKey:"n",_on:n})]})]})},F8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Button Text without area description",_on:n}),a.jsx(W,{_label:"Button Text",_ariaDescription:"Button Area Description",_on:n})]})]})},K8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_icons:"codicon codicon-reactions",_label:"Label-Text with Icon",_on:n})]})]})},V8=e=>{const{children:n,...r}=e,{dummyClickEventHandler:i}=Do(),s={onClick:i};return a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_icons:"codicon codicon-home",_label:"Primary",_variant:"primary",_on:s,...r,children:n}),a.jsx(W,{_icons:"codicon codicon-heart",_label:"Secondary",_variant:"secondary",_on:s,...r,children:n}),a.jsx(W,{_icons:"codicon codicon-hubot",_label:"Tertiary",_variant:"tertiary",_on:s,...r,children:n}),a.jsx(W,{_icons:"codicon codicon-hubot",_label:"Normal",_variant:"normal",_on:s,...r,children:n}),a.jsx(W,{_icons:"codicon codicon-trash",_label:"Danger",_variant:"danger",_on:s,...r,children:n}),a.jsx(W,{_icons:"codicon codicon-reactions",_label:"Ghost",_variant:"ghost",_on:s,...r,children:n})]})},qy=(e={})=>{const n=[{label:"Button",buttonProps:e},{label:"Button (disabled)",buttonProps:{...e,_disabled:!0}},{label:"Button (hideLabel)",buttonProps:{...e,_hideLabel:!0}},{label:"Button (disabled, hideLabel)",buttonProps:{...e,_disabled:!0,_hideLabel:!0}}];return a.jsx("div",{className:"grid gap-8",children:n.map(({label:r,buttonProps:i},s)=>a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:r}),a.jsx(V8,{...i})]},s))})},q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolButton shows a button-element. This sample demonstrates the basic usage with its different styling variants, icons, disabled state and hidden labels."})}),a.jsx(qy,{})]}),Z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolButton show a button-element with expert slot."})}),a.jsx(qy,{_label:"",children:a.jsx("span",{slot:"expert",children:"I am more than just a button"})})]}),P8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with icons in all alignments."})}),a.jsx("div",{children:a.jsx(W,{_icons:{bottom:"codicon codicon-arrow-down",left:{icon:"codicon codicon-arrow-left"},top:{style:{"font-size":"200%",transform:"rotate(45deg)"},icon:"codicon codicon-arrow-up"},right:"codicon codicon-arrow-right"},_label:"Label",_on:n,className:"w-10rem"})})]})},G8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates how the tooltip adapts its width when containing long text inside a row-reverse flex container. The effect becomes visible when inspecting the layout with DevTools and reducing the available width (e.g. by narrowing the screen)."})}),a.jsx("div",{className:"flex flex-row-reverse",children:a.jsx(W,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"This is a very, very long tooltip text that exceeds the width.",_variant:"primary"})})]}),eb=new WeakMap,vn=e=>(eb.has(e)===!1&&eb.set(e,Sx.createRoot(e)),eb.get(e)),Y8=({label:e})=>{const n=Vr.getInstance(document),r=S.useRef(null),i=S.useRef(null),s=()=>{n.enqueue({label:"Edit clicked",description:`The button "edit" has been clicked for ${e}`,type:"info"})},d=()=>{n.enqueue({label:"Delete clicked",description:`The button "delete" has been clicked for ${e}`,type:"warning"})},u=m=>{switch(m.code){case"KeyE":r.current?.kolFocus(),s();return;case"KeyD":i.current?.kolFocus(),d();return}};return a.jsxs("div",{style:{display:"flex",gap:"calc(10rem / var(--kolibri-root-font-size, 16))"},onKeyUp:u,children:[a.jsx(W,{ref:r,_label:"Edit",_shortKey:"e",_on:{onClick:s}}),a.jsx(W,{ref:i,_label:"Delete",_shortKey:"d",_variant:"danger",_on:{onClick:d}})]})},J8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e},r=[{label:"Row 1"},{label:"Row 2"}],i={horizontal:[[{label:"Label",key:"label",textAlign:"left"},{label:"Actions",key:"actions",textAlign:"left",render:(s,d)=>{vn(Fr(s)).render(a.jsx(Y8,{label:d.data.label}))}}]]};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"The first sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."}),a.jsx("p",{children:'The second sample showcases a table where each row contains two KolButtons, each with its own shortcut key. To trigger an action, move the focus to any of the "Actions" cells and press "e" or "d." Doing so will activate the corresponding action and display a Toast notification for demonstration purposes.'})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"With S short key",_shortKey:"S",_on:n}),a.jsx(W,{_label:"Very small b",_shortKey:"b",_on:n}),a.jsx(W,{_label:"Short key does not appear in label",_shortKey:"x",_on:n}),a.jsx(W,{_label:"short key without label",_hideLabel:!0,_shortKey:"k",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(W,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_shortKey:"n",_on:n})]}),a.jsx(be,{_level:2,_label:"Interactive sample",className:"mt"}),a.jsx(mo,{_label:'Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.',_data:r,_headers:i,_minWidth:"400px"})]})},X8=()=>{const{dummyClickEventHandler:e}=Do(),n={className:"w-8rem",_on:{onClick:e}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with adjusted widths."})}),a.jsxs("div",{className:"grid gap-14",children:[a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Primary",_variant:"primary",...n}),a.jsx(W,{_label:"Secondary",_variant:"secondary",...n}),a.jsx(W,{_label:"Normal",_variant:"normal",...n}),a.jsx(W,{_label:"Danger",_variant:"danger",...n}),a.jsx(W,{_label:"Ghost",_variant:"ghost",...n})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_disabled:!0,_label:"Primary",_variant:"primary",...n}),a.jsx(W,{_disabled:!0,_label:"Secondary",_variant:"secondary",...n}),a.jsx(W,{_disabled:!0,_label:"Normal",_variant:"normal",...n}),a.jsx(W,{_disabled:!0,_label:"Danger",_variant:"danger",...n}),a.jsx(W,{_disabled:!0,_label:"Ghost",_variant:"ghost",...n})]})]})]})},W8={button:{basic:q8,icons:P8,width:X8,"access-key":H8,"aria-description":F8,baselined:K8,"short-key":J8,"expert-slot":Z8,"row-reverse-tooltip":G8}},Q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolCard shows a card with title and slot content. The second sample features a close button."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Le,{_label:"Card with title and content",children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with closer",_hasCloser:!0,children:a.jsx("p",{children:"This card has a close button."})})]})]}),eA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows cards with all headline levels as title."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Le,{_label:"Card with headline level 0",_level:0,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 1",_level:1,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 2",_level:2,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 3",_level:3,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 4",_level:4,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 5",_level:5,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 6",_level:6,children:a.jsx("div",{children:"Card contents."})})]})]}),oA={card:{basic:Q8,headlines:eA}},yn=({RefComponent:e,showButtons:n=!0,...r})=>a.jsx(An,{className:"w-full",children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(e,{...r}),n&&a.jsxs("div",{className:"flex gap-4",children:[a.jsx(W,{_label:"Submit",_icons:"codicon codicon-arrow-right",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Bunte Icons",_icons:{left:{icon:"codicon codicon-heart-filled",style:{color:"#cc006e"}},right:{icon:"codicon codicon-squirrel",style:{color:"#b41b1b"}}},_type:"submit",_variant:"secondary"}),a.jsx(W,{_label:"Reset",_type:"reset",_variant:"tertiary"}),a.jsx(W,{_label:"Help",_variant:"ghost"})]})]})});function Cn({children:e}){const[n]=Kr(),r=n.has("noColumns");return a.jsx("div",{className:r?"":"grid md:grid-cols-2 gap-4",children:e})}const Zy=JSON.parse('[{"id":4,"alpha2":"af","alpha3":"afg","name":"Afghanistan"},{"id":818,"alpha2":"eg","alpha3":"egy","name":"Ägypten"},{"id":8,"alpha2":"al","alpha3":"alb","name":"Albanien"},{"id":12,"alpha2":"dz","alpha3":"dza","name":"Algerien"},{"id":20,"alpha2":"ad","alpha3":"and","name":"Andorra"},{"id":24,"alpha2":"ao","alpha3":"ago","name":"Angola"},{"id":28,"alpha2":"ag","alpha3":"atg","name":"Antigua und Barbuda"},{"id":226,"alpha2":"gq","alpha3":"gnq","name":"Äquatorialguinea"},{"id":32,"alpha2":"ar","alpha3":"arg","name":"Argentinien"},{"id":51,"alpha2":"am","alpha3":"arm","name":"Armenien"},{"id":31,"alpha2":"az","alpha3":"aze","name":"Aserbaidschan"},{"id":231,"alpha2":"et","alpha3":"eth","name":"Äthiopien"},{"id":36,"alpha2":"au","alpha3":"aus","name":"Australien"},{"id":44,"alpha2":"bs","alpha3":"bhs","name":"Bahamas"},{"id":48,"alpha2":"bh","alpha3":"bhr","name":"Bahrain"},{"id":50,"alpha2":"bd","alpha3":"bgd","name":"Bangladesch"},{"id":52,"alpha2":"bb","alpha3":"brb","name":"Barbados"},{"id":112,"alpha2":"by","alpha3":"blr","name":"Belarus"},{"id":56,"alpha2":"be","alpha3":"bel","name":"Belgien"},{"id":84,"alpha2":"bz","alpha3":"blz","name":"Belize"},{"id":204,"alpha2":"bj","alpha3":"ben","name":"Benin"},{"id":64,"alpha2":"bt","alpha3":"btn","name":"Bhutan"},{"id":68,"alpha2":"bo","alpha3":"bol","name":"Bolivien"},{"id":70,"alpha2":"ba","alpha3":"bih","name":"Bosnien und Herzegowina"},{"id":72,"alpha2":"bw","alpha3":"bwa","name":"Botswana"},{"id":76,"alpha2":"br","alpha3":"bra","name":"Brasilien"},{"id":96,"alpha2":"bn","alpha3":"brn","name":"Brunei"},{"id":100,"alpha2":"bg","alpha3":"bgr","name":"Bulgarien"},{"id":854,"alpha2":"bf","alpha3":"bfa","name":"Burkina Faso"},{"id":108,"alpha2":"bi","alpha3":"bdi","name":"Burundi"},{"id":152,"alpha2":"cl","alpha3":"chl","name":"Chile"},{"id":156,"alpha2":"cn","alpha3":"chn","name":"China, Volksrepublik"},{"id":188,"alpha2":"cr","alpha3":"cri","name":"Costa Rica"},{"id":208,"alpha2":"dk","alpha3":"dnk","name":"Dänemark"},{"id":276,"alpha2":"de","alpha3":"deu","name":"Deutschland"},{"id":212,"alpha2":"dm","alpha3":"dma","name":"Dominica"},{"id":214,"alpha2":"do","alpha3":"dom","name":"Dominikanische Republik"},{"id":262,"alpha2":"dj","alpha3":"dji","name":"Dschibuti"},{"id":218,"alpha2":"ec","alpha3":"ecu","name":"Ecuador"},{"id":384,"alpha2":"ci","alpha3":"civ","name":"Elfenbeinküste"},{"id":222,"alpha2":"sv","alpha3":"slv","name":"El Salvador"},{"id":232,"alpha2":"er","alpha3":"eri","name":"Eritrea"},{"id":233,"alpha2":"ee","alpha3":"est","name":"Estland"},{"id":748,"alpha2":"sz","alpha3":"swz","name":"Eswatini"},{"id":242,"alpha2":"fj","alpha3":"fji","name":"Fidschi"},{"id":246,"alpha2":"fi","alpha3":"fin","name":"Finnland"},{"id":250,"alpha2":"fr","alpha3":"fra","name":"Frankreich"},{"id":266,"alpha2":"ga","alpha3":"gab","name":"Gabun"},{"id":270,"alpha2":"gm","alpha3":"gmb","name":"Gambia"},{"id":268,"alpha2":"ge","alpha3":"geo","name":"Georgien"},{"id":288,"alpha2":"gh","alpha3":"gha","name":"Ghana"},{"id":308,"alpha2":"gd","alpha3":"grd","name":"Grenada"},{"id":300,"alpha2":"gr","alpha3":"grc","name":"Griechenland"},{"id":320,"alpha2":"gt","alpha3":"gtm","name":"Guatemala"},{"id":324,"alpha2":"gn","alpha3":"gin","name":"Guinea"},{"id":624,"alpha2":"gw","alpha3":"gnb","name":"Guinea-Bissau"},{"id":328,"alpha2":"gy","alpha3":"guy","name":"Guyana"},{"id":332,"alpha2":"ht","alpha3":"hti","name":"Haiti"},{"id":340,"alpha2":"hn","alpha3":"hnd","name":"Honduras"},{"id":356,"alpha2":"in","alpha3":"ind","name":"Indien"},{"id":360,"alpha2":"id","alpha3":"idn","name":"Indonesien"},{"id":368,"alpha2":"iq","alpha3":"irq","name":"Irak"},{"id":364,"alpha2":"ir","alpha3":"irn","name":"Iran"},{"id":372,"alpha2":"ie","alpha3":"irl","name":"Irland"},{"id":352,"alpha2":"is","alpha3":"isl","name":"Island"},{"id":376,"alpha2":"il","alpha3":"isr","name":"Israel"},{"id":380,"alpha2":"it","alpha3":"ita","name":"Italien"},{"id":388,"alpha2":"jm","alpha3":"jam","name":"Jamaika"},{"id":392,"alpha2":"jp","alpha3":"jpn","name":"Japan"},{"id":887,"alpha2":"ye","alpha3":"yem","name":"Jemen"},{"id":400,"alpha2":"jo","alpha3":"jor","name":"Jordanien"},{"id":116,"alpha2":"kh","alpha3":"khm","name":"Kambodscha"},{"id":120,"alpha2":"cm","alpha3":"cmr","name":"Kamerun"},{"id":124,"alpha2":"ca","alpha3":"can","name":"Kanada"},{"id":132,"alpha2":"cv","alpha3":"cpv","name":"Kap Verde"},{"id":398,"alpha2":"kz","alpha3":"kaz","name":"Kasachstan"},{"id":634,"alpha2":"qa","alpha3":"qat","name":"Katar"},{"id":404,"alpha2":"ke","alpha3":"ken","name":"Kenia"},{"id":417,"alpha2":"kg","alpha3":"kgz","name":"Kirgisistan"},{"id":296,"alpha2":"ki","alpha3":"kir","name":"Kiribati"},{"id":170,"alpha2":"co","alpha3":"col","name":"Kolumbien"},{"id":174,"alpha2":"km","alpha3":"com","name":"Komoren"},{"id":180,"alpha2":"cd","alpha3":"cod","name":"Kongo, Demokratische Republik"},{"id":178,"alpha2":"cg","alpha3":"cog","name":"Kongo, Republik"},{"id":408,"alpha2":"kp","alpha3":"prk","name":"Korea, Nord (Nordkorea)"},{"id":410,"alpha2":"kr","alpha3":"kor","name":"Korea, Süd (Südkorea)"},{"id":191,"alpha2":"hr","alpha3":"hrv","name":"Kroatien"},{"id":192,"alpha2":"cu","alpha3":"cub","name":"Kuba"},{"id":414,"alpha2":"kw","alpha3":"kwt","name":"Kuwait"},{"id":418,"alpha2":"la","alpha3":"lao","name":"Laos"},{"id":426,"alpha2":"ls","alpha3":"lso","name":"Lesotho"},{"id":428,"alpha2":"lv","alpha3":"lva","name":"Lettland"},{"id":422,"alpha2":"lb","alpha3":"lbn","name":"Libanon"},{"id":430,"alpha2":"lr","alpha3":"lbr","name":"Liberia"},{"id":434,"alpha2":"ly","alpha3":"lby","name":"Libyen"},{"id":438,"alpha2":"li","alpha3":"lie","name":"Liechtenstein"},{"id":440,"alpha2":"lt","alpha3":"ltu","name":"Litauen"},{"id":442,"alpha2":"lu","alpha3":"lux","name":"Luxemburg"},{"id":450,"alpha2":"mg","alpha3":"mdg","name":"Madagaskar"},{"id":454,"alpha2":"mw","alpha3":"mwi","name":"Malawi"},{"id":458,"alpha2":"my","alpha3":"mys","name":"Malaysia"},{"id":462,"alpha2":"mv","alpha3":"mdv","name":"Malediven"},{"id":466,"alpha2":"ml","alpha3":"mli","name":"Mali"},{"id":470,"alpha2":"mt","alpha3":"mlt","name":"Malta"},{"id":504,"alpha2":"ma","alpha3":"mar","name":"Marokko"},{"id":584,"alpha2":"mh","alpha3":"mhl","name":"Marshallinseln"},{"id":478,"alpha2":"mr","alpha3":"mrt","name":"Mauretanien"},{"id":480,"alpha2":"mu","alpha3":"mus","name":"Mauritius"},{"id":484,"alpha2":"mx","alpha3":"mex","name":"Mexiko"},{"id":583,"alpha2":"fm","alpha3":"fsm","name":"Mikronesien"},{"id":498,"alpha2":"md","alpha3":"mda","name":"Moldau"},{"id":492,"alpha2":"mc","alpha3":"mco","name":"Monaco"},{"id":496,"alpha2":"mn","alpha3":"mng","name":"Mongolei"},{"id":499,"alpha2":"me","alpha3":"mne","name":"Montenegro"},{"id":508,"alpha2":"mz","alpha3":"moz","name":"Mosambik"},{"id":104,"alpha2":"mm","alpha3":"mmr","name":"Myanmar"},{"id":516,"alpha2":"na","alpha3":"nam","name":"Namibia"},{"id":520,"alpha2":"nr","alpha3":"nru","name":"Nauru"},{"id":524,"alpha2":"np","alpha3":"npl","name":"Nepal"},{"id":554,"alpha2":"nz","alpha3":"nzl","name":"Neuseeland"},{"id":558,"alpha2":"ni","alpha3":"nic","name":"Nicaragua"},{"id":528,"alpha2":"nl","alpha3":"nld","name":"Niederlande"},{"id":562,"alpha2":"ne","alpha3":"ner","name":"Niger"},{"id":566,"alpha2":"ng","alpha3":"nga","name":"Nigeria"},{"id":807,"alpha2":"mk","alpha3":"mkd","name":"Nordmazedonien"},{"id":578,"alpha2":"no","alpha3":"nor","name":"Norwegen"},{"id":512,"alpha2":"om","alpha3":"omn","name":"Oman"},{"id":40,"alpha2":"at","alpha3":"aut","name":"Österreich"},{"id":626,"alpha2":"tl","alpha3":"tls","name":"Osttimor"},{"id":586,"alpha2":"pk","alpha3":"pak","name":"Pakistan"},{"id":585,"alpha2":"pw","alpha3":"plw","name":"Palau"},{"id":591,"alpha2":"pa","alpha3":"pan","name":"Panama"},{"id":598,"alpha2":"pg","alpha3":"png","name":"Papua-Neuguinea"},{"id":600,"alpha2":"py","alpha3":"pry","name":"Paraguay"},{"id":604,"alpha2":"pe","alpha3":"per","name":"Peru"},{"id":608,"alpha2":"ph","alpha3":"phl","name":"Philippinen"},{"id":616,"alpha2":"pl","alpha3":"pol","name":"Polen"},{"id":620,"alpha2":"pt","alpha3":"prt","name":"Portugal"},{"id":646,"alpha2":"rw","alpha3":"rwa","name":"Ruanda"},{"id":642,"alpha2":"ro","alpha3":"rou","name":"Rumänien"},{"id":643,"alpha2":"ru","alpha3":"rus","name":"Russland"},{"id":90,"alpha2":"sb","alpha3":"slb","name":"Salomonen"},{"id":894,"alpha2":"zm","alpha3":"zmb","name":"Sambia"},{"id":882,"alpha2":"ws","alpha3":"wsm","name":"Samoa"},{"id":674,"alpha2":"sm","alpha3":"smr","name":"San Marino"},{"id":678,"alpha2":"st","alpha3":"stp","name":"São Tomé und Príncipe"},{"id":682,"alpha2":"sa","alpha3":"sau","name":"Saudi-Arabien"},{"id":752,"alpha2":"se","alpha3":"swe","name":"Schweden"},{"id":756,"alpha2":"ch","alpha3":"che","name":"Schweiz"},{"id":686,"alpha2":"sn","alpha3":"sen","name":"Senegal"},{"id":688,"alpha2":"rs","alpha3":"srb","name":"Serbien"},{"id":690,"alpha2":"sc","alpha3":"syc","name":"Seychellen"},{"id":694,"alpha2":"sl","alpha3":"sle","name":"Sierra Leone"},{"id":716,"alpha2":"zw","alpha3":"zwe","name":"Simbabwe"},{"id":702,"alpha2":"sg","alpha3":"sgp","name":"Singapur"},{"id":703,"alpha2":"sk","alpha3":"svk","name":"Slowakei"},{"id":705,"alpha2":"si","alpha3":"svn","name":"Slowenien"},{"id":706,"alpha2":"so","alpha3":"som","name":"Somalia"},{"id":724,"alpha2":"es","alpha3":"esp","name":"Spanien"},{"id":144,"alpha2":"lk","alpha3":"lka","name":"Sri Lanka"},{"id":659,"alpha2":"kn","alpha3":"kna","name":"St. Kitts und Nevis"},{"id":662,"alpha2":"lc","alpha3":"lca","name":"St. Lucia"},{"id":670,"alpha2":"vc","alpha3":"vct","name":"St. Vincent und die Grenadinen"},{"id":710,"alpha2":"za","alpha3":"zaf","name":"Südafrika"},{"id":729,"alpha2":"sd","alpha3":"sdn","name":"Sudan"},{"id":728,"alpha2":"ss","alpha3":"ssd","name":"Südsudan"},{"id":740,"alpha2":"sr","alpha3":"sur","name":"Suriname"},{"id":760,"alpha2":"sy","alpha3":"syr","name":"Syrien"},{"id":762,"alpha2":"tj","alpha3":"tjk","name":"Tadschikistan"},{"id":834,"alpha2":"tz","alpha3":"tza","name":"Tansania"},{"id":764,"alpha2":"th","alpha3":"tha","name":"Thailand"},{"id":768,"alpha2":"tg","alpha3":"tgo","name":"Togo"},{"id":776,"alpha2":"to","alpha3":"ton","name":"Tonga"},{"id":780,"alpha2":"tt","alpha3":"tto","name":"Trinidad und Tobago"},{"id":148,"alpha2":"td","alpha3":"tcd","name":"Tschad"},{"id":203,"alpha2":"cz","alpha3":"cze","name":"Tschechien"},{"id":788,"alpha2":"tn","alpha3":"tun","name":"Tunesien"},{"id":792,"alpha2":"tr","alpha3":"tur","name":"Türkei"},{"id":795,"alpha2":"tm","alpha3":"tkm","name":"Turkmenistan"},{"id":798,"alpha2":"tv","alpha3":"tuv","name":"Tuvalu"},{"id":800,"alpha2":"ug","alpha3":"uga","name":"Uganda"},{"id":804,"alpha2":"ua","alpha3":"ukr","name":"Ukraine"},{"id":348,"alpha2":"hu","alpha3":"hun","name":"Ungarn"},{"id":858,"alpha2":"uy","alpha3":"ury","name":"Uruguay"},{"id":860,"alpha2":"uz","alpha3":"uzb","name":"Usbekistan"},{"id":548,"alpha2":"vu","alpha3":"vut","name":"Vanuatu"},{"id":862,"alpha2":"ve","alpha3":"ven","name":"Venezuela"},{"id":784,"alpha2":"ae","alpha3":"are","name":"Vereinigte Arabische Emirate"},{"id":840,"alpha2":"us","alpha3":"usa","name":"Vereinigte Staaten"},{"id":826,"alpha2":"gb","alpha3":"gbr","name":"Vereinigtes Königreich"},{"id":704,"alpha2":"vn","alpha3":"vnm","name":"Vietnam"},{"id":140,"alpha2":"cf","alpha3":"caf","name":"Zentralafrikanische Republik"},{"id":196,"alpha2":"cy","alpha3":"cyp","name":"Zypern"}]'),Qn=[...Zy.map(e=>({label:e.name,value:e.alpha2}))],et=[...Zy.map(e=>e.name)],c1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_n,{...e,_hint:xn,_label:"Label",_suggestions:et,_value:"Deutschland"}),a.jsx(_n,{...e,_label:"Disabled",_suggestions:et,_value:"Deutschland",_disabled:!0}),a.jsx(_n,{...e,_suggestions:et,_msg:{_type:"error",_description:Ue},_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(_n,{...e,_label:"With access key",_suggestions:et,_value:"Deutschland",_accessKey:"c"}),a.jsx(_n,{...e,_label:"With short key",_suggestions:et,_value:"Deutschland",_shortKey:"s"})]}),nA=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(c1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(c1,{...e,_hideLabel:!0})]})]}),tA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolCombobox combines a text input with a suggestion list, enabling users to either type in a value or to select on of the suggestions."})}),a.jsx(yn,{RefComponent:nA,showButtons:!1})]}),rA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"A HTML only KolCombobox."})}),a.jsx(_n,{_label:"With string array in html",_suggestions:"['Herr','Frau','Firma']",_value:"Herr"})]}),aA={combobox:{basic:tA,html:rA}},lA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. The sample includes an initially open state and a disabled but open Details component."]})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(rr,{_label:"Closed initially",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(rr,{_disabled:!0,_label:"Open initially (disabled)",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(rr,{_label:"Open initially",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."})]})]}),iA={details:{basic:lA}},cA=["left","top","right","bottom"].map(e=>({label:e,value:e})),zm=({value:e="left",onChange:n})=>a.jsx("div",{className:"grid gap-4",children:a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Lo,{_label:"Drawer alignment",_value:e,_options:cA,_orientation:"horizontal",_on:{onChange:n}})})}),sA=()=>{const[e]=Kr(),n=e.get("align"),r=e.get("closer")==="true",i=S.useRef(null),[s,d]=S.useState(n||"left"),[u,m]=S.useState(r);return S.useEffect(()=>{n&&i.current?.open()},[n]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments."})}),a.jsx(zm,{value:s,onChange:(h,p)=>d(p)}),a.jsx(ro,{_label:"Drawer has closer",className:"mb-4",_checked:u,_on:{onInput:(h,p)=>{m(p===!0)}}}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(em,{ref:i,_label:"I am a drawer",_align:s,_hasCloser:u,_on:{onClose:()=>console.log("Drawer onClose triggered!")},children:a.jsxs("div",{className:s==="left"||s==="right"?"drawer-content-vertical":"",children:[a.jsx("p",{className:"mt-0",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."}),a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>i.current?.close()}})]})}),a.jsx(W,{_label:"Open drawer",_on:{onClick:()=>i.current?.open()}})]})]})},dA=()=>{const[e]=Kr(),n=e.get("align"),[r,i]=S.useState(!1),[s,d]=S.useState(n||"left");return a.jsxs("div",{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the KolDrawer controlled by the property ",a.jsx("code",{children:"_open"})," instead of methods."]})}),a.jsx(zm,{value:s,onChange:(u,m)=>d(m)}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(em,{_open:r,_align:s,_label:"I'm a controlled drawer",_on:{onClose:()=>i(!1)},children:a.jsxs("div",{children:[a.jsx("p",{children:"Lorem ipsum dolor sit amet,"}),a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>i(!1)}})]})}),a.jsx(W,{_label:"Open drawer",_on:{onClick:()=>i(!0)}})]})]})},uA=()=>{const e=S.useRef(null),[n,r]=S.useState("bottom"),[i,s]=S.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions and shows the correct way to handle overflow. Use the "Enable Overflow Handling" toggle to see the difference between problematic behavior (content exceeding drawer bounds) and the proper solution (overflow handling within the slot content).'})}),a.jsxs("div",{className:"flex flex-col gap-4 mb-4",children:[a.jsx(zm,{value:n,onChange:(d,u)=>r(u)}),a.jsx(ro,{_label:"Enable Overflow Handling (Recommended)",_checked:i,_on:{onChange:(d,u)=>s(!!u)}})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(em,{ref:e,_label:"Scrollable Drawer",_align:n,children:i?a.jsx("div",{style:{width:n==="left"||n==="right"?"90vw":void 0,height:n==="top"||n==="bottom"?"90vh":void 0,overflow:"auto",padding:"0",border:"1px solid #999"},children:a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":void 0,height:n==="top"||n==="bottom"?"150vh":void 0,background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"✅ Content with proper overflow handling - scrollable within drawer bounds"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area (Scrollable)"}),a.jsxs("p",{children:["Container: ",n==="left"||n==="right"?"400px wide":"90vw wide"," ×"," ",n==="top"||n==="bottom"?"90vh high":"400px high"]}),a.jsxs("p",{children:["Content: ",n==="left"||n==="right"?"150vw wide":"400px wide"," ×"," ",n==="top"||n==="bottom"?"150vh high":"400px high"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Enabled - Container has fixed size with overflow: auto"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"With overflow handling enabled, this content scrolls properly within the drawer container. You can scroll horizontally/vertically to see all content."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}):a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":"400px",height:n==="top"||n==="bottom"?"150vh":"400px",background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"❌ Content exceeding drawer bounds - problematic behavior"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area"}),a.jsxs("p",{children:["Width: ",n==="left"||n==="right"?"150vw (exceeds drawer width)":"400px"]}),a.jsxs("p",{children:["Height: ",n==="top"||n==="bottom"?"150vh (exceeds drawer height)":"400px"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Disabled - Content extends beyond drawer boundaries"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"Without overflow handling, this content may extend beyond the drawer boundaries, causing layout issues."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}),a.jsx(W,{_label:"Open scrollable drawer",_on:{onClick:()=>e.current?.open()}})]})]})},fA={drawer:{basic:sA,controlled:dA,scrolled:uA}},bA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolForm renders a form around the input components provided in a slot. This sample shows a basic form with three input fields."})}),a.jsx(An,{className:"w-full",children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Oe,{id:"input1",_label:"Input 1"}),a.jsx(Oe,{id:"input2",_label:"Input 2"}),a.jsx(Oe,{id:"input3",_label:"Input 3"})]})})]}),mA=()=>{const e=S.useRef(null),n=()=>{e.current?.focusErrorList()};return S.useEffect(()=>{e.current?.focusErrorList()},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a form with error messages."})}),a.jsx(An,{className:"w-full",ref:e,_on:{onSubmit:n},_errorList:[{message:"Error in Input 2",selector:"#input2"},{message:"Error in Input 3",selector:()=>alert("Error in Input 3")}],children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Oe,{id:"input1",_label:"Input 1"}),a.jsx(Oe,{id:"input2",_label:"Input 2",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx(Oe,{id:"input3",_label:"Input 3",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx("div",{children:a.jsx(W,{_label:"ScrollTo",_type:"submit"})})]})})]})},hA={form:{basic:bA,"error-list":mA}},Py=`public-ui.v${Mb.version}`;class pA{store=new Map;setItem(n,r){this.store.set(n,r)}getItem(n){return this.store.get(n)||null}}const Vi={darkMode:!1,theme:"default"};let Ib;function Gy(e){Ib=e;const n=Ib.getItem(Py);try{const r=JSON.parse(n);typeof r=="object"&&r!==null&&(Vi.darkMode=r.darkMode===!0,xm(r.theme)&&(Vi.theme=r.theme))}catch{}}Gy(new pA);const kA=()=>{Ib.setItem(Py,JSON.stringify(Vi))},vA=e=>{if(xm(e))Vi.theme=e,kA();else throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},Fs=()=>`${Vi.theme}`,Ub=e=>{if(xm(e))return ym.find(n=>n.value===e)?.label;throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},gA=[{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"}];function _A({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{...n,_on:i})}const xA={horizontal:[[{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{key:"monday",label:"Monday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(_A,{_label:n.label,style:{fontSize:"75%"}}))},compareFn:(e,n)=>e.monday<n.monday?-1:e.monday>n.monday?1:0,sortDirection:"ASC",textAlign:"right"},{key:"tuesday",label:"Tuesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#060",_label:n.label}))},compareFn:(e,n)=>e.tuesday<n.tuesday?-1:e.tuesday>n.tuesday?1:0,sortDirection:"DESC"},{key:"wednesday",label:"Wednesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#006",_label:n.label}))}},{key:"thursday",label:"Thursday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#600",_label:n.label}))}},{key:"friday",label:"Friday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#303",_label:n.label}))}},{key:"saturday",label:"Saturday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#330",_label:n.label}))}},{key:"sunday",label:"Sunday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#033",_label:n.label}))}}]],vertical:[[{label:"Early"},{label:"Noon"},{label:"Evening"},{label:"Night"}]]},yA=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center",children:[a.jsx(Ss,{className:"block w-75px",_labeled:!1}),a.jsx(be,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["Kolibri-Handout ",a.jsxs("small",{children:["for ",Ub(Fs())]})]})}),a.jsxs(rr,{_label:"Abstract",_open:!0,children:["The handout shows a selection of KoliBri components in the style of ",a.jsx("strong",{children:Ub(Fs())}),". Since KoliBri offers self-contained, accessible web components that can be customized to your own corporate design using theming, you don't have to develop these components yourself. For more information read our documentation and follow us (",a.jsx(_e,{_label:"https://github.com/public-ui/kolibri",_href:"https://github.com/public-ui/kolibri",_target:"_blank"}),")."]})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12",children:[a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Heading",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(be,{_label:"Heading Level 1",_level:1}),a.jsx(be,{_label:"Heading Level 2",_level:2}),a.jsx(be,{_label:"Heading Level 3",_level:3}),a.jsx(be,{_label:"Heading Level 4",_level:4}),a.jsx(be,{_label:"Heading Level 5",_level:5}),a.jsx(be,{_label:"Heading Level 6",_level:6}),a.jsx(be,{_label:"Heading Level 6",_secondaryHeadline:"Lessons",_level:6})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Abbreviation and Progress",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsxs("p",{children:["I am ",a.jsx(Ri,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Ri,{children:"e.g."})," an abbreviation without label."]}),a.jsx(nr,{_variant:"bar",_max:100,_value:33,_label:"Progress"}),a.jsx(nr,{_variant:"cycle",_max:100,_value:66,_label:"Progress"})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3",_label:"Button, LinkButton and Tab",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2",children:a.jsxs(cr,{_label:"",_selected:0,_tabs:[{_label:"Button"},{_label:"LinkButton"},{_label:"Disabled Tab",_disabled:!0}],children:[a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(W,{_disabled:!0,_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(W,{_disabled:!0,_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(W,{_disabled:!0,_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(W,{_disabled:!0,_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_label:"ghost",_variant:"ghost"}),a.jsx(W,{_disabled:!0,_label:"ghost",_variant:"ghost"}),a.jsx(W,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost",_on:n})]})]}),a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost"})]})]})]})})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Accordion, Link and ButtonLink",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(rn,{_label:"Links",_level:3,_open:!0,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link text"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsx(_e,{_href:"/",_label:"Visited link"}),a.jsxs("p",{children:["I am a ",a.jsx(_e,{_href:"#/back-page",_label:"externer Link",_target:"w3c"})," in the running text."]})]})}),a.jsx(rn,{_label:"ButtonLinks",_level:3,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(Pe,{_label:"Link text"}),a.jsx(Pe,{_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsxs("p",{children:["I am a ",a.jsx(Pe,{_label:"Link"})," in the running text."]}),a.jsx(Pe,{_icons:{left:"codicon codicon-arrow-left",right:"codicon codicon-arrow-right",top:"codicon codicon-arrow-up",bottom:"codicon codicon-arrow-down"},_label:"Icons"})]})})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3",_label:"Alert",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(gn,{_label:"Default message",_type:"default",children:"This is the text of the alert."}),a.jsx(gn,{_type:"success",children:"Success message text"}),a.jsx(gn,{_type:"error",_hasCloser:!0,children:"This is a error message text."}),a.jsx(gn,{_label:"Info card",_type:"info",_variant:"card",children:"This is the text of the alert."}),a.jsx(gn,{_label:"Warning card",_type:"warning",_hasCloser:!0,_variant:"card",children:"This is the text of the alert."})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Nav and Breadcrumb",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx("div",{children:a.jsx(yl,{_label:"Main navigation",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_active:!0,_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 External navigation point",_icons:"codicon codicon-home",_href:"#/back-page",_target:"_blank"},{_label:"3.3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_active:!0,_label:"3.3.1 Navigation point (active)",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}]}]},{_label:"3 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}],_hasCompactButton:!0})}),a.jsx("div",{children:a.jsx(zs,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5",_label:"Input",_level:2,children:a.jsx(An,{slot:"",children:a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2",children:[a.jsx(Go,{_label:"Color"}),a.jsx(Ro,{_label:"Upload file"}),a.jsx(jo,{_label:"Number input"}),a.jsx(He,{_type:"date",_label:"Date"}),a.jsx(Yo,{_icons:"{'left': 'codicon codicon-home'}",_msg:{_type:"error",_description:"Test of an error message"},_touched:!0,_label:"E-mail address"}),a.jsx(Oe,{_hint:"I am a hint.",_label:"First name"}),a.jsx(Eo,{_label:"password"}),a.jsx(Jo,{_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_label:"Stimmung"}),a.jsx(en,{_min:0,_max:50,_value:25,_label:"Slider"}),a.jsx(Lo,{className:"herr-frau",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"1",_label:"Salutation"}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Lo,{_orientation:"horizontal",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"0",_label:"Salutation"}),a.jsx(ro,{_label:"",children:a.jsxs("span",{slot:"expert",children:["I accept the ",a.jsx(Ri,{_label:"General Terms and Conditions",children:"AGB"}),"."]})})]}),a.jsx(Qe,{_rows:4,_label:"Textarea"})]})})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-5",_label:"Table with Pagination",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2 handout-table-card-content",children:a.jsx(mo,{_label:"Table",_minWidth:"auto",_headers:xA,_data:gA,_pagination:!0})})})]}),a.jsx(Ws,{_label:"5.0.2-test.2"})]})},wA={handout:{basic:yA}},zA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolHeading with its different levels and content provided using the export slot instead of the ",a.jsx("code",{children:"_label"}),"-property."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_label:"Label"})]})}),a.jsx(be,{_label:"",_level:2,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#86ffc6",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:3,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#06539e",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:4,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ae0000",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:5,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#8b008b",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:6,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ffc0cb",_label:"Label"})]})})]})]}),SA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolHeading renders a heading with the given level."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"I'm a H1-heading",_level:1}),a.jsx(be,{_label:"I'm a H2-heading",_level:2}),a.jsx(be,{_label:"I'm a H3-heading",_level:3}),a.jsx(be,{_label:"I'm a H4-heading",_level:4}),a.jsx(be,{_label:"I'm a H5-heading",_level:5}),a.jsx(be,{_label:"I'm a H6-heading",_level:6})]})]}),jA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolHeading with its different levels combined with some text content each."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"Ich bin eine H1-Überschrift",_level:1}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H2-Überschrift",_level:2}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H3-Überschrift",_level:3}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H4-Überschrift",_level:4}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H5-Überschrift",_level:5}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H6-Überschrift",_level:6}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."})]})]}),TA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolHeading with the prop ",a.jsx("code",{children:"_secondaryHeadline"})," in use."]})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(be,{_label:"This is a H1 headline",_secondaryHeadline:"This is a secondary headline",_level:1})})]}),AA={heading:{basic:SA,badge:zA,paragraph:jA,secondary:TA}},CA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolIcon renders codicon icons. This sample shows regular icons and one with a custom style-property, changing the icon color."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-home"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-compass-active"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-debug"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-squirrel"}),a.jsx(pt,{className:"block w-[1em] h-[1em]",style:{color:"red"},_label:"",_icons:"codicon codicon-home"})]})]}),EA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolIcon renders Font Awesome icons, if you have added this font to your theme. We are showing Font Awesome Free 6.1.1."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-house"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-circle-user"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-truck"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-city"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-heart"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-thumbs-up"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-brands fa-github"}),a.jsx(Oe,{_label:"With Font Awesome icons",_icons:{left:{icon:"fa-solid fa-phone"},right:{icon:"fa-solid fa-arrow-right"}}})]})]}),LA={icon:{basic:CA,"font-awesome":EA}},OA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolImage renders an image. The sample shows an image with alternative text."})}),a.jsx(Zz,{className:"w-image",_src:"abgrenzung.jpg",_alt:"Darstellung des KoliBri-Theming"})]}),$A={image:{basic:OA}},vs=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ro,{...n,_label:"Not selected",_value:!1,_required:!0}),a.jsx(ro,{...n,_label:"Indeterminate",_value:null,_indeterminate:!0}),a.jsx(ro,{...n,ref:r,_accessKey:"A",_checked:!0,_label:"Selected",_tooltipAlign:"right",_value:!0}),a.jsx(ro,{...n,_checked:!0,_icons:{unchecked:"codicon codicon-close"},_label:"With a very long label and upheavals ".repeat(5),_value:!0}),a.jsx(ro,{...n,_disabled:!0,_label:"Disabled",_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_checked:!0,_disabled:!0,_label:"Checked and disabled"}),a.jsx(ro,{...n,_indeterminate:!0,_disabled:!0,_label:"Indeterminate and disabled"}),a.jsx(ro,{...n,_msg:{_type:"error",_description:Ue},_label:"With error",_touched:!0,_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_label:"With access key",_accessKey:"c",_value:null}),a.jsx(ro,{...n,_label:"With short key",_shortKey:"s",_value:null})]})}),Sm=S.forwardRef(function(n,r){return a.jsxs(a.Fragment,{children:[a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" with label'}),a.jsx(vs,{...n,_labelAlign:"left"})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" without Label (hideLabel)'}),a.jsx(vs,{ref:r,...n,_hideLabel:!0,_labelAlign:"left"})]})]}),a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" with label'}),a.jsx(vs,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" without Label (hideLabel)'}),a.jsx(vs,{ref:r,...n,_hideLabel:!0})]})]})]})}),NA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:Sm,showButtons:!1})]}),BA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "button".'})}),a.jsx(yn,{RefComponent:Sm,_variant:"button",showButtons:!1})]}),RA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "switch".'})}),a.jsx(yn,{RefComponent:Sm,_variant:"switch",showButtons:!1})]}),DA={"input-checkbox":{basic:NA,switch:RA,button:BA}},s1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_icons:{left:"codicon codicon-symbol-color"},_label:"Color (Black background test)",_value:"#f08080"})}),a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_label:"Color with error",_suggestions:"['#000000','#f08080', '#0000ff','#00ff00']",_touched:!0}),a.jsx(Go,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Go,{...n,ref:r,_accessKey:"C",_hint:"Hint text",_label:"Color with hint",_value:"#f08080"}),a.jsx(Go,{...n,_disabled:!0,_label:"Color (Disabled)",_value:"#f08080"}),a.jsx(Go,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Go,{...n,_label:"With short key",_shortKey:"s"})]})}),MA=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color"}),a.jsx(s1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color (hideLabel)"}),a.jsx(s1,{ref:r,...n,_hideLabel:!0})]})]})}),IA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:MA,showButtons:!1})]}),UA={"input-color":{basic:IA}},d1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(He,{...n,_type:"date",_label:"Date input (Black background test)",_required:!0})}),a.jsx(He,{...n,_type:"datetime-local",_label:"Local-Datetime (Standard)",_required:!0}),a.jsx(He,{...n,_step:1,_type:"datetime-local",_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Local datetime (with seconds)",_required:!0,_touched:!0}),a.jsx(He,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(He,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(He,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(He,{...n,_type:"month",_label:"Month",_required:!0}),a.jsx(He,{...n,ref:r,_accessKey:"W",_type:"week",_label:"Week",_required:!0}),a.jsx(He,{...n,_type:"time",_label:"Time (standard)",_required:!0}),a.jsx(He,{...n,_step:1,_type:"time",_label:"Time (with seconds)",_required:!0}),a.jsx(He,{...n,_readOnly:!0,_label:"Date input (read-only)",_required:!0}),a.jsx(He,{...n,_disabled:!0,_label:"Date input (Disabled)",_required:!0}),a.jsx(He,{...n,_label:"With access key",_accessKey:"s"}),a.jsx(He,{...n,_label:"With short key",_shortKey:"s"})]})}),HA=e=>{const n="2024-09-26",r="2024-09-27",i="12:00",s="15:00",d="2024-09-26T12:00",u="2024-09-27T15:00",m="2024-W10",h="2024-W50",p="2024-02",g="2024-10",v=new Date("January 10, 2024, 12:00"),_=new Date("October 20, 2024, 15:00");return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(He,{...e,_type:"date",_label:"Date with Iso",_min:n,_max:r}),a.jsx(He,{...e,_type:"date",_label:"Date with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"time",_label:"Time with Iso",_min:i,_max:s}),a.jsx(He,{...e,_type:"time",_label:"Time with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"datetime-local",_label:"DayTime with Iso",_min:d,_max:u}),a.jsx(He,{...e,_type:"datetime-local",_label:"DayTime with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"week",_label:"Week with Iso",_min:m,_max:h}),a.jsx(He,{...e,_type:"week",_label:"Week with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"month",_label:"Month with Iso",_min:p,_max:g}),a.jsx(He,{...e,_type:"month",_label:"Month with Date",_min:v,_max:_})]})},FA=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date"}),a.jsx(d1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (hideLabel)"}),a.jsx(d1,{ref:r,...n,_hideLabel:!0})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (with min/max)"}),a.jsx(HA,{...n})]})]})}),KA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputDate renders all types of fields for date and time input. The sample shows KolInputDate in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:FA,showButtons:!1})]}),u1=e=>String(e).padStart(2,"0"),VA=(e,n,r)=>{const i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r};function f1(e){const n=/^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(e);if(!n)return null;const r=+n[1],i=+n[2],s=+n[3];return VA(s,i,r)?`${s}-${u1(i)}-${u1(r)}`:null}function qA(e){return e instanceof HTMLElement&&e.tagName==="KOL-INPUT-DATE"}async function ZA(e,n){typeof e.setIsoValue=="function"?await e.setIsoValue(n):typeof e.value<"u"?e.value=n:typeof e._value<"u"?e._value=n:e.setAttribute("_value",n),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}const PA=()=>{const[e,n]=S.useState("31.12.2025"),[r,i]=S.useState(""),s=S.useRef(null),d=S.useMemo(()=>f1(e),[e]);S.useEffect(()=>{const h=new AbortController,p=g=>{const v=g.composedPath?.()??[];s.current=v.find(qA)??null};return document.addEventListener("focusin",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]),S.useEffect(()=>{const h=new AbortController,p=g=>{const v=s.current;if(!v)return;const _=g.clipboardData?.getData("text")??"",z=f1(_);if(!z){i("Clipboard: unrecognized date. Use DD.MM.YYYY.");return}g.preventDefault(),ZA(v,z),i("Pasted.")};return document.addEventListener("paste",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]);const u=S.useCallback(async h=>{i("");try{await navigator.clipboard.writeText(h),i("Copied.")}catch{i("Copy failed. Your browser may block clipboard access.")}},[]),m=S.useCallback((h,p)=>{if(h?.target){const g=typeof p=="string"?p:String(p??"");n(g)}},[]);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["Type a date in German format (",a.jsx("code",{children:"DD.MM.YYYY"}),"), click ",a.jsx("em",{children:"Copy to Clipboard"}),", then paste it into the date field below with ",a.jsx("kbd",{children:"Ctrl"}),"+",a.jsx("kbd",{children:"V"}),". The ISO conversion happens internally."]})}),a.jsxs("div",{className:"grid gap-8",lang:"en",children:[a.jsxs("section",{"aria-labelledby":"de-title",children:[a.jsx("h3",{id:"de-title",className:"text-lg font-semibold mb-2",children:"German date (DD.MM.YYYY)"}),a.jsxs("div",{className:"grid gap-3",children:[a.jsx(Oe,{className:"w-full",_label:"German date (DD.MM.YYYY)",_placeholder:"e.g., 31.12.2025",_value:e,_type:"text",_on:{onInput:m,onChange:m}}),a.jsx("small",{className:"opacity-80",children:"Click the button to copy the exact German date, then paste it into the date field below."}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(W,{_label:"Copy to Clipboard",_on:{onClick:()=>u(e)}}),!d&&a.jsx("span",{className:"text-red-600",children:"Invalid date"})]}),a.jsx(He,{_type:"date",_label:"Date (paste here with Ctrl+V)",className:"w-full"})]})]}),a.jsx("p",{"aria-live":"polite",role:"status",className:"mt-2 opacity-80",children:r})]})]})},GA=()=>{const e=S.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the KolInputDate ",a.jsx("code",{children:"reset"}),"-Method, which can be used to clear the field, even when it holds incomplete or invalid values."]})}),a.jsx(He,{className:"w-full",ref:e,_label:"Resettable Input Date",_value:"2024-02-10"}),a.jsx(W,{className:"mt",_label:"Reset",_on:{onClick:()=>e.current?.reset()}})]})},YA=["default","error","info","success","warning"];function ob(e){return{onChange:()=>e(n=>!n)}}const JA=()=>{const[e,n]=S.useState(!0),[r,i]=S.useState(!0),[s,d]=S.useState(!1),u=ob(n),m=ob(i),h=ob(d);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example shows how messages work in input fields."})}),a.jsxs("div",{className:"flex gap-4 flex-col",children:[a.jsxs("div",{className:"flex gap-4 items-center",children:[a.jsx(ro,{_label:"Toggle Msg",_on:u,_checked:e,_variant:"button"}),a.jsx(ro,{_label:"Toggle Touched",_on:m,_checked:r,_variant:"button"}),a.jsx(ro,{_label:"Toggle Hide Msg",_on:h,_checked:s,_variant:"button"})]}),a.jsxs("pre",{children:["Message exists: ",e?"Yes":"No"," (showMsg: ",e?"Yes":"No",")",a.jsx("br",{}),"Non-Error-Message visible: ",e&&!s?"Yes":"No"," (showMsg: ",e?"Yes":"No",", hideMsg: ",s?"Yes":"No",")",a.jsx("br",{}),"Error-Message visible: ",e&&r&&!s?"Yes":"No"," (showMsg: ",e?"Yes":"No",", isTouched: ",r?"Yes":"No",", hideMsg: ",s?"Yes":"No",")"]}),YA.map(p=>a.jsx(He,{_hideMsg:s,_label:`Date (_msg, ${p})`,_msg:e?{_description:`${p} message`,_type:p}:void 0,_touched:r},p))]})]})},XA={"input-date":{basic:KA,"copy-paste":PA,reset:GA,"show-hide-msg":JA}},b1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Yo,{...n,_required:!0,_value:"test@mail.de",_msg:{_type:"error",_description:Ue},_label:"E-Mail (Black background test)"})}),a.jsx(Yo,{...n,ref:r,_accessKey:"M",_placeholder:"elke@mustermann.de",_suggestions:"['test1@mail.de', 'test2@mail.de', 'test3@mail.de']",_label:"E-Mail (list)",_hint:xn,_msg:{_type:"error",_description:Ue},_touched:!0,_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Yo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"E-Mail"}),a.jsx(Yo,{...n,_disabled:!0,_value:"test@mail.de",_label:"E-Mail (Disabled)"}),a.jsx(Yo,{...n,_readOnly:!0,_value:"test@mail.de",_label:"E-Mail (Readonly)"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With access key",_accessKey:"c"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With short key",_shortKey:"s"})]})}),WA=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email"}),a.jsx(b1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email (hideLabel)"}),a.jsx(b1,{ref:r,...n,_hideLabel:!0})]})]})}),QA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:WA,showButtons:!1})]}),eC={"input-email":{basic:QA}},m1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Ro,{...n,_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0})}),a.jsx(Ro,{...n,_required:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0}),a.jsx(Ro,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Upload file"}),a.jsx(Ro,{...n,ref:r,_accessKey:"h",_multiple:!0,_msg:{_type:"error",_description:Ue},_label:"Upload file (Multiple)"}),a.jsx(Ro,{...n,_disabled:!0,_label:"Upload file (Disabled)"}),a.jsx(Ro,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Ro,{...n,_label:"With short key",_shortKey:"s"})]})}),oC=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File"}),a.jsx(m1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File (hideLabel)"}),a.jsx(m1,{ref:r,...n,_hideLabel:!0})]})]})}),nC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:oC,showButtons:!1})]}),tC={"input-file":{basic:nC}},h1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"black-background",children:[a.jsx(jo,{...n,_required:!0,_touched:!0,_value:123,_label:"Number input (Black background test)"})," "]}),a.jsx(jo,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_placeholder:"Mit Icons",_label:"Number input",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(jo,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(jo,{...n,_required:!0,_msg:{_type:"warning",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(jo,{...n,_required:!0,_msg:{_type:"info",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(jo,{...n,_required:!0,_msg:{_type:"success",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(jo,{...n,ref:r,_accessKey:"Z",_max:10,_min:-10,_step:2,_label:"Number input (-10 to 10 in steps of 2)"}),a.jsx(jo,{...n,_readOnly:!0,_label:"Number input (Readonly)"}),a.jsx(jo,{...n,_disabled:!0,_label:"Number input (Disabled)"}),a.jsx(jo,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(jo,{...n,_label:"With short key",_shortKey:"s"})]})}),rC=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number"}),a.jsx(h1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number (hideLabel)"}),a.jsx(h1,{ref:r,...n,_hideLabel:!0})]})]})}),aC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputNumber encompasses basic functionalities, utilizing the min, max, and step attributes to restrict the range of input values. Despite these constraints, it allows free input that can ignore the defined minimum and maximum values, as well as step sizes. The component intentionally does not emphasize validation rules, supporting examples without form validation, and refrains from additional validation through native HTML element validation."})}),a.jsx(yn,{RefComponent:rC,showButtons:!1})]});var Ji=e=>e.type==="checkbox",va=e=>e instanceof Date,In=e=>e==null;const Yy=e=>typeof e=="object";var Xo=e=>!In(e)&&!Array.isArray(e)&&Yy(e)&&!va(e),Jy=e=>Xo(e)&&e.target?Ji(e.target)?e.target.checked:e.target.value:e,lC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xy=(e,n)=>e.has(lC(n)),iC=e=>{const n=e.constructor&&e.constructor.prototype;return Xo(n)&&n.hasOwnProperty("isPrototypeOf")},jm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(jm&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Xo(e)&&iC(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Zo(e[s]));return i}var rd=e=>/^\w*$/.test(e),To=e=>e===void 0,Tm=e=>Array.isArray(e)?e.filter(Boolean):[],Am=e=>Tm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(e,n,r)=>{if(!n||!Xo(e))return r;const i=(rd(n)?[n]:Am(n)).reduce((s,d)=>In(s)?s:s[d],e);return To(i)||i===e?To(e[n])?r:e[n]:i},Wn=e=>typeof e=="boolean",Tn=e=>typeof e=="function",fo=(e,n,r)=>{let i=-1;const s=rd(n)?[n]:Am(n),d=s.length,u=d-1;for(;++i<d;){const m=s[i];let h=r;if(i!==u){const p=e[m];h=Xo(p)||Array.isArray(p)?p:isNaN(+s[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Ks={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},wt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},er={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Wy=ae.createContext(null);Wy.displayName="HookFormControlContext";const Cm=()=>ae.useContext(Wy);var Qy=(e,n,r,i=!0)=>{const s={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(s,d,{get:()=>{const u=d;return n._proxyFormState[u]!==wt.all&&(n._proxyFormState[u]=!i||wt.all),r&&(r[u]=!0),e[u]}});return s};const Em=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function cC(e){const n=Cm(),{control:r=n,disabled:i,name:s,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Em(()=>r._subscribe({name:s,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[s,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>Qy(u,r,h.current,!1),[u,r])}var ot=e=>typeof e=="string",Hb=(e,n,r,i,s)=>ot(e)?(i&&n.watch.add(e),de(r,e,s)):Array.isArray(e)?e.map(d=>(i&&n.watch.add(d),de(r,d))):(i&&(n.watchAll=!0),r),Fb=e=>In(e)||!Yy(e);function zt(e,n,r=new WeakSet){if(Fb(e)||Fb(n))return Object.is(e,n);if(va(e)&&va(n))return Object.is(e.getTime(),n.getTime());const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!s.includes(d))return!1;if(d!=="ref"){const m=n[d];if(va(u)&&va(m)||Xo(u)&&Xo(m)||Array.isArray(u)&&Array.isArray(m)?!zt(u,m,r):!Object.is(u,m))return!1}}return!0}function sC(e){const n=Cm(),{control:r=n,name:i,defaultValue:s,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(s),p=ae.useRef(m),g=ae.useRef(void 0),v=ae.useRef(r),_=ae.useRef(i);p.current=m;const[z,N]=ae.useState(()=>{const $=r._getWatch(i,h.current);return p.current?p.current($):$}),j=ae.useCallback($=>{const D=Hb(i,r._names,$||r._formValues,!1,h.current);return p.current?p.current(D):D},[r._formValues,r._names,i]),O=ae.useCallback($=>{if(!d){const D=Hb(i,r._names,$||r._formValues,!1,h.current);if(p.current){const H=p.current(D);zt(H,g.current)||(N(H),g.current=H)}else N(D)}},[r._formValues,r._names,d,i]);Em(()=>((v.current!==r||!zt(_.current,i))&&(v.current=r,_.current=i,O()),r._subscribe({name:i,formState:{values:!0},exact:u,callback:$=>{O($.values)}})),[r,u,i,O]),ae.useEffect(()=>r._removeUnmounted());const E=v.current!==r,x=_.current,w=ae.useMemo(()=>{if(d)return null;const $=!E&&!zt(x,i);return E||$?j():null},[d,E,i,x,j]);return w!==null?w:z}function dC(e){const n=Cm(),{name:r,disabled:i,control:s=n,shouldUnregister:d,defaultValue:u,exact:m=!0}=e,h=Xy(s._names.array,r),p=ae.useMemo(()=>de(s._formValues,r,de(s._defaultValues,r,u)),[s,r,u]),g=sC({control:s,name:r,defaultValue:p,exact:m}),v=cC({control:s,name:r,exact:m}),_=ae.useRef(e),z=ae.useRef(void 0),N=ae.useRef(s.register(r,{...e.rules,value:g,...Wn(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const j=ae.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!de(v.errors,r)},isDirty:{enumerable:!0,get:()=>!!de(v.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!de(v.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!de(v.validatingFields,r)},error:{enumerable:!0,get:()=>de(v.errors,r)}}),[v,r]),O=ae.useCallback($=>N.current.onChange({target:{value:Jy($),name:r},type:Ks.CHANGE}),[r]),E=ae.useCallback(()=>N.current.onBlur({target:{value:de(s._formValues,r),name:r},type:Ks.BLUR}),[r,s._formValues]),x=ae.useCallback($=>{const D=de(s._fields,r);D&&D._f&&$&&(D._f.ref={focus:()=>Tn($.focus)&&$.focus(),select:()=>Tn($.select)&&$.select(),setCustomValidity:H=>Tn($.setCustomValidity)&&$.setCustomValidity(H),reportValidity:()=>Tn($.reportValidity)&&$.reportValidity()})},[s._fields,r]),w=ae.useMemo(()=>({name:r,value:g,...Wn(i)||v.disabled?{disabled:v.disabled||i}:{},onChange:O,onBlur:E,ref:x}),[r,i,v.disabled,O,E,x,g]);return ae.useEffect(()=>{const $=s._options.shouldUnregister||d,D=z.current;D&&D!==r&&!h&&s.unregister(D),s.register(r,{..._.current.rules,...Wn(_.current.disabled)?{disabled:_.current.disabled}:{}});const H=(Z,ee)=>{const se=de(s._fields,Z);se&&se._f&&(se._f.mount=ee)};if(H(r,!0),$){const Z=Zo(de(s._options.defaultValues,r,_.current.defaultValue));fo(s._defaultValues,r,Z),To(de(s._formValues,r))&&fo(s._formValues,r,Z)}return!h&&s.register(r),z.current=r,()=>{(h?$&&!s._state.action:$)?s.unregister(r):H(r,!1)}},[r,s,h,d]),ae.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),ae.useMemo(()=>({field:w,formState:v,fieldState:j}),[w,v,j])}const e0=e=>e.render(dC(e)),uC=ae.createContext(null);uC.displayName="HookFormContext";var o0=(e,n,r,i,s)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:s||!0}}:{},Di=e=>Array.isArray(e)?e:[e],p1=()=>{let e=[];return{get observers(){return e},next:s=>{for(const d of e)d.next&&d.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(d=>d!==s)}}),unsubscribe:()=>{e=[]}}};function n0(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i)){const s=e[i],d=n[i];if(s&&Xo(s)&&d){const u=n0(s,d);Xo(u)&&(r[i]=u)}else e[i]&&(r[i]=d)}return r}var jn=e=>Xo(e)&&!Object.keys(e).length,Lm=e=>e.type==="file",Vs=e=>{if(!jm)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},t0=e=>e.type==="select-multiple",Om=e=>e.type==="radio",fC=e=>Om(e)||Ji(e),nb=e=>Vs(e)&&e.isConnected;function bC(e,n){const r=n.slice(0,-1).length;let i=0;for(;i<r;)e=To(e)?i++:e[n[i++]];return e}function mC(e){for(const n in e)if(e.hasOwnProperty(n)&&!To(e[n]))return!1;return!0}function Po(e,n){const r=Array.isArray(n)?n:rd(n)?[n]:Am(n),i=r.length===1?e:bC(e,r),s=r.length-1,d=r[s];return i&&delete i[d],s!==0&&(Xo(i)&&jn(i)||Array.isArray(i)&&mC(i))&&Po(e,r.slice(0,-1)),e}var hC=e=>{for(const n in e)if(Tn(e[n]))return!0;return!1};function r0(e){return Array.isArray(e)||Xo(e)&&!hC(e)}function Kb(e,n={}){for(const r in e){const i=e[r];r0(i)?(n[r]=Array.isArray(i)?[]:{},Kb(i,n[r])):To(i)||(n[r]=!0)}return n}function vl(e,n,r){r||(r=Kb(n));for(const i in e){const s=e[i];if(r0(s))To(n)||Fb(r[i])?r[i]=Kb(s,Array.isArray(s)?[]:{}):vl(s,In(n)?{}:n[i],r[i]);else{const d=n[i];r[i]=!zt(s,d)}}return r}const k1={value:!1,isValid:!1},v1={value:!0,isValid:!0};var a0=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!To(e[0].attributes.value)?To(e[0].value)||e[0].value===""?v1:{value:e[0].value,isValid:!0}:v1:k1}return k1},l0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:i})=>To(e)?e:n?e===""?NaN:e&&+e:r&&ot(e)?new Date(e):i?i(e):e;const g1={isValid:!1,value:null};var i0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,g1):g1;function _1(e){const n=e.ref;return Lm(n)?n.files:Om(n)?i0(e.refs).value:t0(n)?[...n.selectedOptions].map(({value:r})=>r):Ji(n)?a0(e.refs).value:l0(To(n.value)?e.ref.value:n.value,e)}var pC=(e,n,r,i)=>{const s={};for(const d of e){const u=de(n,d);u&&fo(s,d,u._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:i}},qs=e=>e instanceof RegExp,Ei=e=>To(e)?e:qs(e)?e.source:Xo(e)?qs(e.value)?e.value.source:e.value:e,x1=e=>({isOnSubmit:!e||e===wt.onSubmit,isOnBlur:e===wt.onBlur,isOnChange:e===wt.onChange,isOnAll:e===wt.all,isOnTouch:e===wt.onTouched});const y1="AsyncFunction";var kC=e=>!!e&&!!e.validate&&!!(Tn(e.validate)&&e.validate.constructor.name===y1||Xo(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===y1)),vC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),w1=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Mi=(e,n,r,i)=>{for(const s of r||Object.keys(e)){const d=de(e,s);if(d){const{_f:u,...m}=d;if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],s)&&!i)return!0;if(u.ref&&n(u.ref,u.name)&&!i)return!0;if(Mi(m,n))break}else if(Xo(m)&&Mi(m,n))break}}};function z1(e,n,r){const i=de(e,r);if(i||rd(r))return{error:i,name:r};const s=r.split(".");for(;s.length;){const d=s.join("."),u=de(n,d),m=de(e,d);if(u&&!Array.isArray(u)&&r!==d)return{name:r};if(m&&m.type)return{name:d,error:m};if(m&&m.root&&m.root.type)return{name:`${d}.root`,error:m.root};s.pop()}return{name:r}}var gC=(e,n,r,i)=>{r(e);const{name:s,...d}=e;return jn(d)||Object.keys(d).length>=Object.keys(n).length||Object.keys(d).find(u=>n[u]===(!i||wt.all))},_C=(e,n,r)=>!e||!n||e===n||Di(e).some(i=>i&&(r?i===n:i.startsWith(n)||n.startsWith(i))),xC=(e,n,r,i,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(n||e):(r?i.isOnBlur:s.isOnBlur)?!e:(r?i.isOnChange:s.isOnChange)?e:!0,yC=(e,n)=>!Tm(de(e,n)).length&&Po(e,n),wC=(e,n,r)=>{const i=Di(de(e,r));return fo(i,"root",n[r]),fo(e,r,i),e};function S1(e,n,r="validate"){if(ot(e)||Array.isArray(e)&&e.every(ot)||Wn(e)&&!e)return{type:r,message:ot(e)?e:"",ref:n}}var pl=e=>Xo(e)&&!qs(e)?e:{value:e,message:""},j1=async(e,n,r,i,s,d)=>{const{ref:u,refs:m,required:h,maxLength:p,minLength:g,min:v,max:_,pattern:z,validate:N,name:j,valueAsNumber:O,mount:E}=e._f,x=de(r,j);if(!E||n.has(j))return{};const w=m?m[0]:u,$=ne=>{s&&w.reportValidity&&(w.setCustomValidity(Wn(ne)?"":ne||""),w.reportValidity())},D={},H=Om(u),Z=Ji(u),ee=H||Z,se=(O||Lm(u))&&To(u.value)&&To(x)||Vs(u)&&u.value===""||x===""||Array.isArray(x)&&!x.length,$e=o0.bind(null,j,i,D),ce=(ne,we,De,Fe=er.maxLength,M=er.minLength)=>{const G=ne?we:De;D[j]={type:ne?Fe:M,message:G,ref:u,...$e(ne?Fe:M,G)}};if(d?!Array.isArray(x)||!x.length:h&&(!ee&&(se||In(x))||Wn(x)&&!x||Z&&!a0(m).isValid||H&&!i0(m).isValid)){const{value:ne,message:we}=ot(h)?{value:!!h,message:h}:pl(h);if(ne&&(D[j]={type:er.required,message:we,ref:w,...$e(er.required,we)},!i))return $(we),D}if(!se&&(!In(v)||!In(_))){let ne,we;const De=pl(_),Fe=pl(v);if(!In(x)&&!isNaN(x)){const M=u.valueAsNumber||x&&+x;In(De.value)||(ne=M>De.value),In(Fe.value)||(we=M<Fe.value)}else{const M=u.valueAsDate||new Date(x),G=Te=>new Date(new Date().toDateString()+" "+Te),ie=u.type=="time",je=u.type=="week";ot(De.value)&&x&&(ne=ie?G(x)>G(De.value):je?x>De.value:M>new Date(De.value)),ot(Fe.value)&&x&&(we=ie?G(x)<G(Fe.value):je?x<Fe.value:M<new Date(Fe.value))}if((ne||we)&&(ce(!!ne,De.message,Fe.message,er.max,er.min),!i))return $(D[j].message),D}if((p||g)&&!se&&(ot(x)||d&&Array.isArray(x))){const ne=pl(p),we=pl(g),De=!In(ne.value)&&x.length>+ne.value,Fe=!In(we.value)&&x.length<+we.value;if((De||Fe)&&(ce(De,ne.message,we.message),!i))return $(D[j].message),D}if(z&&!se&&ot(x)){const{value:ne,message:we}=pl(z);if(qs(ne)&&!x.match(ne)&&(D[j]={type:er.pattern,message:we,ref:u,...$e(er.pattern,we)},!i))return $(we),D}if(N){if(Tn(N)){const ne=await N(x,r),we=S1(ne,w);if(we&&(D[j]={...we,...$e(er.validate,we.message)},!i))return $(we.message),D}else if(Xo(N)){let ne={};for(const we in N){if(!jn(ne)&&!i)break;const De=S1(await N[we](x,r),w,we);De&&(ne={...De,...$e(we,De.message)},$(De.message),i&&(D[j]=ne))}if(!jn(ne)&&(D[j]={ref:w,...ne},!i))return D}}return $(!0),D};const zC={mode:wt.onSubmit,reValidateMode:wt.onChange,shouldFocusError:!0};function SC(e={}){let n={...zC,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Tn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},s=Xo(n.defaultValues)||Xo(n.values)?Zo(n.defaultValues||n.values)||{}:{},d=n.shouldUnregister?{}:Zo(s),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...g};let _={...v};const z={array:p1(),state:p1()},N=n.criteriaMode===wt.all,j=T=>B=>{clearTimeout(p),p=setTimeout(T,B)},O=async T=>{if(!u.keepIsValid&&!n.disabled&&(v.isValid||_.isValid||T)){let B;n.resolver?(B=jn((await ee()).errors),E()):B=await $e(i,!0),B!==r.isValid&&z.state.next({isValid:B})}},E=(T,B)=>{!n.disabled&&(v.isValidating||v.validatingFields||_.isValidating||_.validatingFields)&&((T||Array.from(m.mount)).forEach(F=>{F&&(B?fo(r.validatingFields,F,B):Po(r.validatingFields,F))}),z.state.next({validatingFields:r.validatingFields,isValidating:!jn(r.validatingFields)}))},x=(T,B=[],F,te,re=!0,oe=!0)=>{if(te&&F&&!n.disabled){if(u.action=!0,oe&&Array.isArray(de(i,T))){const ve=F(de(i,T),te.argA,te.argB);re&&fo(i,T,ve)}if(oe&&Array.isArray(de(r.errors,T))){const ve=F(de(r.errors,T),te.argA,te.argB);re&&fo(r.errors,T,ve),yC(r.errors,T)}if((v.touchedFields||_.touchedFields)&&oe&&Array.isArray(de(r.touchedFields,T))){const ve=F(de(r.touchedFields,T),te.argA,te.argB);re&&fo(r.touchedFields,T,ve)}(v.dirtyFields||_.dirtyFields)&&(r.dirtyFields=vl(s,d)),z.state.next({name:T,isDirty:ne(T,B),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fo(d,T,B)},w=(T,B)=>{fo(r.errors,T,B),z.state.next({errors:r.errors})},$=T=>{r.errors=T,z.state.next({errors:r.errors,isValid:!1})},D=(T,B,F,te)=>{const re=de(i,T);if(re){const oe=de(d,T,To(F)?de(s,T):F);To(oe)||te&&te.defaultChecked||B?fo(d,T,B?oe:_1(re._f)):Fe(T,oe),u.mount&&!u.action&&O()}},H=(T,B,F,te,re)=>{let oe=!1,ve=!1;const eo={name:T};if(!n.disabled){if(!F||te){(v.isDirty||_.isDirty)&&(ve=r.isDirty,r.isDirty=eo.isDirty=ne(),oe=ve!==eo.isDirty);const io=zt(de(s,T),B);ve=!!de(r.dirtyFields,T),io?Po(r.dirtyFields,T):fo(r.dirtyFields,T,!0),eo.dirtyFields=r.dirtyFields,oe=oe||(v.dirtyFields||_.dirtyFields)&&ve!==!io}if(F){const io=de(r.touchedFields,T);io||(fo(r.touchedFields,T,F),eo.touchedFields=r.touchedFields,oe=oe||(v.touchedFields||_.touchedFields)&&io!==F)}oe&&re&&z.state.next(eo)}return oe?eo:{}},Z=(T,B,F,te)=>{const re=de(r.errors,T),oe=(v.isValid||_.isValid)&&Wn(B)&&r.isValid!==B;if(n.delayError&&F?(h=j(()=>w(T,F)),h(n.delayError)):(clearTimeout(p),h=null,F?fo(r.errors,T,F):Po(r.errors,T)),(F?!zt(re,F):re)||!jn(te)||oe){const ve={...te,...oe&&Wn(B)?{isValid:B}:{},errors:r.errors,name:T};r={...r,...ve},z.state.next(ve)}},ee=async T=>(E(T,!0),await n.resolver(d,n.context,pC(T||m.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),se=async T=>{const{errors:B}=await ee(T);if(E(T),T)for(const F of T){const te=de(B,F);te?fo(r.errors,F,te):Po(r.errors,F)}else r.errors=B;return B},$e=async(T,B,F={valid:!0})=>{for(const te in T){const re=T[te];if(re){const{_f:oe,...ve}=re;if(oe){const eo=m.array.has(oe.name),io=re._f&&kC(re._f);io&&v.validatingFields&&E([oe.name],!0);const on=await j1(re,m.disabled,d,N,n.shouldUseNativeValidation&&!B,eo);if(io&&v.validatingFields&&E([oe.name]),on[oe.name]&&(F.valid=!1,B||e.shouldUseNativeValidation))break;!B&&(de(on,oe.name)?eo?wC(r.errors,on,oe.name):fo(r.errors,oe.name,on[oe.name]):Po(r.errors,oe.name))}!jn(ve)&&await $e(ve,B,F)}}return F.valid},ce=()=>{for(const T of m.unMount){const B=de(i,T);B&&(B._f.refs?B._f.refs.every(F=>!nb(F)):!nb(B._f.ref))&&Co(T)}m.unMount=new Set},ne=(T,B)=>!n.disabled&&(T&&B&&fo(d,T,B),!zt(C(),s)),we=(T,B,F)=>Hb(T,m,{...u.mount?d:To(B)?s:ot(T)?{[T]:B}:B},F,B),De=T=>Tm(de(u.mount?d:s,T,n.shouldUnregister?de(s,T,[]):[])),Fe=(T,B,F={})=>{const te=de(i,T);let re=B;if(te){const oe=te._f;oe&&(!oe.disabled&&fo(d,T,l0(B,oe)),re=Vs(oe.ref)&&In(B)?"":B,t0(oe.ref)?[...oe.ref.options].forEach(ve=>ve.selected=re.includes(ve.value)):oe.refs?Ji(oe.ref)?oe.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(re)?ve.checked=!!re.find(eo=>eo===ve.value):ve.checked=re===ve.value||!!re)}):oe.refs.forEach(ve=>ve.checked=ve.value===re):Lm(oe.ref)?oe.ref.value="":(oe.ref.value=re,oe.ref.type||z.state.next({name:T,values:Zo(d)})))}(F.shouldDirty||F.shouldTouch)&&H(T,re,F.shouldTouch,F.shouldDirty,!0),F.shouldValidate&&Te(T)},M=(T,B,F)=>{for(const te in B){if(!B.hasOwnProperty(te))return;const re=B[te],oe=T+"."+te,ve=de(i,oe);(m.array.has(T)||Xo(re)||ve&&!ve._f)&&!va(re)?M(oe,re,F):Fe(oe,re,F)}},G=(T,B,F={})=>{const te=de(i,T),re=m.array.has(T),oe=Zo(B);fo(d,T,oe),re?(z.array.next({name:T,values:Zo(d)}),(v.isDirty||v.dirtyFields||_.isDirty||_.dirtyFields)&&F.shouldDirty&&z.state.next({name:T,dirtyFields:vl(s,d),isDirty:ne(T,oe)})):te&&!te._f&&!In(oe)?M(T,oe,F):Fe(T,oe,F),w1(T,m)?z.state.next({...r,name:T,values:Zo(d)}):z.state.next({name:u.mount?T:void 0,values:Zo(d)})},ie=async T=>{u.mount=!0;const B=T.target;let F=B.name,te=!0;const re=de(i,F),oe=io=>{te=Number.isNaN(io)||va(io)&&isNaN(io.getTime())||zt(io,de(d,F,io))},ve=x1(n.mode),eo=x1(n.reValidateMode);if(re){let io,on;const Bt=B.type?_1(re._f):Jy(T),Tt=T.type===Ks.BLUR||T.type===Ks.FOCUS_OUT,Yr=!vC(re._f)&&!n.resolver&&!de(r.errors,F)&&!re._f.deps||xC(Tt,de(r.touchedFields,F),r.isSubmitted,eo,ve),an=w1(F,m,Tt);fo(d,F,Bt),Tt?(!B||!B.readOnly)&&(re._f.onBlur&&re._f.onBlur(T),h&&h(0)):re._f.onChange&&re._f.onChange(T);const at=H(F,Bt,Tt),wn=!jn(at)||an;if(!Tt&&z.state.next({name:F,type:T.type,values:Zo(d)}),Yr)return(v.isValid||_.isValid)&&(n.mode==="onBlur"?Tt&&O():Tt||O()),wn&&z.state.next({name:F,...an?{}:at});if(!Tt&&an&&z.state.next({...r}),n.resolver){const{errors:Xi}=await ee([F]);if(E([F]),oe(Bt),te){const fd=z1(r.errors,i,F),Wi=z1(Xi,i,fd.name||F);io=Wi.error,F=Wi.name,on=jn(Xi)}}else E([F],!0),io=(await j1(re,m.disabled,d,N,n.shouldUseNativeValidation))[F],E([F]),oe(Bt),te&&(io?on=!1:(v.isValid||_.isValid)&&(on=await $e(i,!0)));te&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&Te(re._f.deps),Z(F,on,io,at))}},je=(T,B)=>{if(de(r.errors,B)&&T.focus)return T.focus(),1},Te=async(T,B={})=>{let F,te;const re=Di(T);if(n.resolver){const oe=await se(To(T)?T:re);F=jn(oe),te=T?!re.some(ve=>de(oe,ve)):F}else T?(te=(await Promise.all(re.map(async oe=>{const ve=de(i,oe);return await $e(ve&&ve._f?{[oe]:ve}:ve)}))).every(Boolean),!(!te&&!r.isValid)&&O()):te=F=await $e(i);return z.state.next({...!ot(T)||(v.isValid||_.isValid)&&F!==r.isValid?{}:{name:T},...n.resolver||!T?{isValid:F}:{},errors:r.errors}),B.shouldFocus&&!te&&Mi(i,je,T?re:m.mount),te},C=(T,B)=>{let F={...u.mount?d:s};return B&&(F=n0(B.dirtyFields?r.dirtyFields:r.touchedFields,F)),To(T)?F:ot(T)?de(F,T):T.map(te=>de(F,te))},P=(T,B)=>({invalid:!!de((B||r).errors,T),isDirty:!!de((B||r).dirtyFields,T),error:de((B||r).errors,T),isValidating:!!de(r.validatingFields,T),isTouched:!!de((B||r).touchedFields,T)}),le=T=>{T&&Di(T).forEach(B=>Po(r.errors,B)),z.state.next({errors:T?r.errors:{}})},fe=(T,B,F)=>{const te=(de(i,T,{_f:{}})._f||{}).ref,re=de(r.errors,T)||{},{ref:oe,message:ve,type:eo,...io}=re;fo(r.errors,T,{...io,...B,ref:te}),z.state.next({name:T,errors:r.errors,isValid:!1}),F&&F.shouldFocus&&te&&te.focus&&te.focus()},Ce=(T,B)=>Tn(T)?z.state.subscribe({next:F=>"values"in F&&T(we(void 0,B),F)}):we(T,B,!0),Ne=T=>z.state.subscribe({next:B=>{_C(T.name,B.name,T.exact)&&gC(B,T.formState||v,ke,T.reRenderRoot)&&T.callback({values:{...d},...r,...B,defaultValues:s})}}).unsubscribe,Ge=T=>(u.mount=!0,_={..._,...T.formState},Ne({...T,formState:{...g,...T.formState}})),Co=(T,B={})=>{for(const F of T?Di(T):m.mount)m.mount.delete(F),m.array.delete(F),B.keepValue||(Po(i,F),Po(d,F)),!B.keepError&&Po(r.errors,F),!B.keepDirty&&Po(r.dirtyFields,F),!B.keepTouched&&Po(r.touchedFields,F),!B.keepIsValidating&&Po(r.validatingFields,F),!n.shouldUnregister&&!B.keepDefaultValue&&Po(s,F);z.state.next({values:Zo(d)}),z.state.next({...r,...B.keepDirty?{isDirty:ne()}:{}}),!B.keepIsValid&&O()},_o=({disabled:T,name:B})=>{if(Wn(T)&&u.mount||T||m.disabled.has(B)){const re=m.disabled.has(B)!==!!T;T?m.disabled.add(B):m.disabled.delete(B),re&&u.mount&&!u.action&&O()}},vt=(T,B={})=>{let F=de(i,T);const te=Wn(B.disabled)||Wn(n.disabled);return fo(i,T,{...F||{},_f:{...F&&F._f?F._f:{ref:{name:T}},name:T,mount:!0,...B}}),m.mount.add(T),F?_o({disabled:Wn(B.disabled)?B.disabled:n.disabled,name:T}):D(T,!0,B.value),{...te?{disabled:B.disabled||n.disabled}:{},...n.progressive?{required:!!B.required,min:Ei(B.min),max:Ei(B.max),minLength:Ei(B.minLength),maxLength:Ei(B.maxLength),pattern:Ei(B.pattern)}:{},name:T,onChange:ie,onBlur:ie,ref:re=>{if(re){vt(T,B),F=de(i,T);const oe=To(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,ve=fC(oe),eo=F._f.refs||[];if(ve?eo.find(io=>io===oe):oe===F._f.ref)return;fo(i,T,{_f:{...F._f,...ve?{refs:[...eo.filter(nb),oe,...Array.isArray(de(s,T))?[{}]:[]],ref:{type:oe.type,name:T}}:{ref:oe}}}),D(T,!1,void 0,oe)}else F=de(i,T,{}),F._f&&(F._f.mount=!1),(n.shouldUnregister||B.shouldUnregister)&&!(Xy(m.array,T)&&u.action)&&m.unMount.add(T)}}},jt=()=>n.shouldFocusError&&Mi(i,je,m.mount),Pr=T=>{Wn(T)&&(z.state.next({disabled:T}),Mi(i,(B,F)=>{const te=de(i,F);te&&(B.disabled=te._f.disabled||T,Array.isArray(te._f.refs)&&te._f.refs.forEach(re=>{re.disabled=te._f.disabled||T}))},0,!1))},Gr=(T,B)=>async F=>{let te;F&&(F.preventDefault&&F.preventDefault(),F.persist&&F.persist());let re=Zo(d);if(z.state.next({isSubmitting:!0}),n.resolver){const{errors:oe,values:ve}=await ee();E(),r.errors=oe,re=Zo(ve)}else await $e(i);if(m.disabled.size)for(const oe of m.disabled)Po(re,oe);if(Po(r.errors,"root"),jn(r.errors)){z.state.next({errors:{}});try{await T(re,F)}catch(oe){te=oe}}else B&&await B({...r.errors},F),jt(),setTimeout(jt);if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jn(r.errors)&&!te,submitCount:r.submitCount+1,errors:r.errors}),te)throw te},gt=(T,B={})=>{de(i,T)&&(To(B.defaultValue)?G(T,Zo(de(s,T))):(G(T,B.defaultValue),fo(s,T,Zo(B.defaultValue))),B.keepTouched||Po(r.touchedFields,T),B.keepDirty||(Po(r.dirtyFields,T),r.isDirty=B.defaultValue?ne(T,Zo(de(s,T))):ne()),B.keepError||(Po(r.errors,T),v.isValid&&O()),z.state.next({...r}))},Nt=(T,B={})=>{const F=T?Zo(T):s,te=Zo(F),re=jn(T),oe=re?s:te;if(B.keepDefaultValues||(s=F),!B.keepValues){if(B.keepDirtyValues){const ve=new Set([...m.mount,...Object.keys(vl(s,d))]);for(const eo of Array.from(ve)){const io=de(r.dirtyFields,eo),on=de(d,eo),Bt=de(oe,eo);io&&!To(on)?fo(oe,eo,on):!io&&!To(Bt)&&G(eo,Bt)}}else{if(jm&&To(T))for(const ve of m.mount){const eo=de(i,ve);if(eo&&eo._f){const io=Array.isArray(eo._f.refs)?eo._f.refs[0]:eo._f.ref;if(Vs(io)){const on=io.closest("form");if(on){on.reset();break}}}}if(B.keepFieldsRef)for(const ve of m.mount)G(ve,de(oe,ve));else i={}}d=n.shouldUnregister?B.keepDefaultValues?Zo(s):{}:Zo(oe),z.array.next({values:{...oe}}),z.state.next({values:{...oe}})}m={mount:B.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!B.keepIsValid||!!B.keepDirtyValues||!n.shouldUnregister&&!jn(oe),u.watch=!!n.shouldUnregister,u.keepIsValid=!!B.keepIsValid,u.action=!1,B.keepErrors||(r.errors={}),z.state.next({submitCount:B.keepSubmitCount?r.submitCount:0,isDirty:re?!1:B.keepDirty?r.isDirty:!!(B.keepDefaultValues&&!zt(T,s)),isSubmitted:B.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re?{}:B.keepDirtyValues?B.keepDefaultValues&&d?vl(s,d):r.dirtyFields:B.keepDefaultValues&&T?vl(s,T):B.keepDirty?r.dirtyFields:{},touchedFields:B.keepTouched?r.touchedFields:{},errors:B.keepErrors?r.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},fr=(T,B)=>Nt(Tn(T)?T(d):T,{...n.resetOptions,...B}),he=(T,B={})=>{const F=de(i,T),te=F&&F._f;if(te){const re=te.refs?te.refs[0]:te.ref;re.focus&&setTimeout(()=>{re.focus(),B.shouldSelect&&Tn(re.select)&&re.select()})}},ke=T=>{r={...r,...T}},lo={control:{register:vt,unregister:Co,getFieldState:P,handleSubmit:Gr,setError:fe,_subscribe:Ne,_runSchema:ee,_updateIsValidating:E,_focusError:jt,_getWatch:we,_getDirty:ne,_setValid:O,_setFieldArray:x,_setDisabledField:_o,_setErrors:$,_getFieldArray:De,_reset:Nt,_resetDefaultValues:()=>Tn(n.defaultValues)&&n.defaultValues().then(T=>{fr(T,n.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:Pr,_subjects:z,_proxyFormState:v,get _fields(){return i},get _formValues(){return d},get _state(){return u},set _state(T){u=T},get _defaultValues(){return s},get _names(){return m},set _names(T){m=T},get _formState(){return r},get _options(){return n},set _options(T){n={...n,...T}}},subscribe:Ge,trigger:Te,register:vt,handleSubmit:Gr,watch:Ce,setValue:G,getValues:C,reset:fr,resetField:gt,clearErrors:le,unregister:Co,setError:fe,setFocus:he,getFieldState:P};return{...lo,formControl:lo}}function ad(e={}){const n=ae.useRef(void 0),r=ae.useRef(void 0),[i,s]=ae.useState({isDirty:!1,isValidating:!1,isLoading:Tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Tn(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:i},e.defaultValues&&!Tn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...m}=SC(e);n.current={...m,formState:i}}const d=n.current.control;return d._options=e,Em(()=>{const u=d._subscribe({formState:d._proxyFormState,callback:()=>s({...d._formState}),reRenderRoot:!0});return s(m=>({...m,isReady:!0})),d._formState.isReady=!0,u},[d]),ae.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),ae.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),ae.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),ae.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),ae.useEffect(()=>{if(d._proxyFormState.isDirty){const u=d._getDirty();u!==i.isDirty&&d._subjects.state.next({isDirty:u})}},[d,i.isDirty]),ae.useEffect(()=>{var u;e.values&&!zt(e.values,r.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((u=d._options.resetOptions)===null||u===void 0)&&u.keepIsValid||d._setValid(),r.current=e.values,s(m=>({...m}))):d._resetDefaultValues()},[d,e.values]),ae.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),n.current.formState=ae.useMemo(()=>Qy(i,d),[d,i]),n.current}function c0(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}var qi;(function(e){e.event="event",e.props="prop"})(qi||(qi={}));function Ir(){}function jC(e){var n,r=void 0;return function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];return n&&i.length===n.length&&i.every(function(d,u){return d===n[u]})||(n=i,r=e.apply(void 0,i)),r}}function Zi(e){return!!(e||"").match(/\d/)}function wl(e){return e==null}function TC(e){return typeof e=="number"&&isNaN(e)}function s0(e){return wl(e)||TC(e)||typeof e=="number"&&!isFinite(e)}function d0(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function AC(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function CC(e,n,r){var i=AC(r),s=e.search(/[1-9]/);return s=s===-1?e.length:s,e.substring(0,s)+e.substring(s,e.length).replace(i,"$1"+n)}function EC(e){var n=S.useRef(e);n.current=e;var r=S.useRef(function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];return n.current.apply(n,i)});return r.current}function $m(e,n){n===void 0&&(n=!0);var r=e[0]==="-",i=r&&n;e=e.replace("-","");var s=e.split("."),d=s[0],u=s[1]||"";return{beforeDecimal:d,afterDecimal:u,hasNegation:r,addNegation:i}}function LC(e){if(!e)return e;var n=e[0]==="-";n&&(e=e.substring(1,e.length));var r=e.split("."),i=r[0].replace(/^0+/,"")||"0",s=r[1]||"";return(n?"-":"")+i+(s?"."+s:"")}function u0(e,n,r){for(var i="",s=r?"0":"",d=0;d<=n-1;d++)i+=e[d]||s;return i}function T1(e,n){return Array(n+1).join(e)}function f0(e){var n=e+"",r=n[0]==="-"?"-":"";r&&(n=n.substring(1));var i=n.split(/[eE]/g),s=i[0],d=i[1];if(d=Number(d),!d)return r+s;s=s.replace(".","");var u=1+d,m=s.length;return u<0?s="0."+T1("0",Math.abs(u))+s:u>=m?s=s+T1("0",u-m):s=(s.substring(0,u)||"0")+"."+s.substring(u),r+s}function A1(e,n,r){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||r)&&n,s=$m(e),d=s.beforeDecimal,u=s.afterDecimal,m=s.hasNegation,h=parseFloat("0."+(u||"0")),p=u.length<=n?"0."+u:h.toFixed(n),g=p.split("."),v=d;d&&Number(g[0])&&(v=d.split("").reverse().reduce(function(j,O,E){return j.length>E?(Number(j[0])+Number(O)).toString()+j.substring(1,j.length):O+j},g[0]));var _=u0(g[1]||"",n,r),z=m?"-":"",N=i?".":"";return""+z+v+N+_}function pa(e,n){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",n),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(n,n),!0):(e.focus(),!1)}}var b0=jC(function(e,n){for(var r=0,i=0,s=e.length,d=n.length;e[r]===n[r]&&r<s;)r++;for(;e[s-1-i]===n[d-1-i]&&d-i>r&&s-i>r;)i++;return{from:{start:r,end:s-i},to:{start:r,end:d-i}}}),OC=function(e,n){var r=Math.min(e.selectionStart,n);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:n}}};function $C(e,n,r){return Math.min(Math.max(e,n),r)}function tb(e){return Math.max(e.selectionStart,e.selectionEnd)}function NC(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function BC(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function RC(e){var n=e.currentValue,r=e.formattedValue,i=e.currentValueIndex,s=e.formattedValueIndex;return n[i]===r[s]}function DC(e,n,r,i,s,d,u){u===void 0&&(u=RC);var m=s.findIndex(function($){return $}),h=e.slice(0,m);!n&&!r.startsWith(h)&&(n=h,r=h+r,i=i+h.length);for(var p=r.length,g=e.length,v={},_=new Array(p),z=0;z<p;z++){_[z]=-1;for(var N=0,j=g;N<j;N++){var O=u({currentValue:r,lastValue:n,formattedValue:e,currentValueIndex:z,formattedValueIndex:N});if(O&&v[N]!==!0){_[z]=N,v[N]=!0;break}}}for(var E=i;E<p&&(_[E]===-1||!d(r[E]));)E++;var x=E===p||_[E]===-1?g:_[E];for(E=i-1;E>0&&_[E]===-1;)E--;var w=E===-1||_[E]===-1?0:_[E]+1;return w>x?x:i-w<x-i?w:x}function C1(e,n,r,i){var s=e.length;if(n=$C(n,0,s),i==="left"){for(;n>=0&&!r[n];)n--;n===-1&&(n=r.indexOf(!0))}else{for(;n<=s&&!r[n];)n++;n>s&&(n=r.lastIndexOf(!0))}return n===-1&&(n=s),n}function MC(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),r=0,i=n.length;r<i;r++)n[r]=!!(Zi(e[r])||Zi(e[r-1]));return n}function m0(e,n,r,i,s,d){d===void 0&&(d=Ir);var u=EC(function(N,j){var O,E;return s0(N)?(E="",O=""):typeof N=="number"||j?(E=typeof N=="number"?f0(N):N,O=i(E)):(E=s(N,void 0),O=i(E)),{formattedValue:O,numAsString:E}}),m=S.useState(function(){return u(wl(e)?n:e,r)}),h=m[0],p=m[1],g=function(N,j){N.formattedValue!==h.formattedValue&&p({formattedValue:N.formattedValue,numAsString:N.value}),d(N,j)},v=e,_=r;wl(e)&&(v=h.numAsString,_=!0);var z=u(v,_);return S.useMemo(function(){p(z)},[z.formattedValue]),[h,g]}function IC(e){return e.replace(/[^0-9]/g,"")}function UC(e){return e}function HC(e){var n=e.type;n===void 0&&(n="text");var r=e.displayType;r===void 0&&(r="input");var i=e.customInput,s=e.renderText,d=e.getInputRef,u=e.format;u===void 0&&(u=UC);var m=e.removeFormatting;m===void 0&&(m=IC);var h=e.defaultValue,p=e.valueIsNumericString,g=e.onValueChange,v=e.isAllowed,_=e.onChange;_===void 0&&(_=Ir);var z=e.onKeyDown;z===void 0&&(z=Ir);var N=e.onMouseUp;N===void 0&&(N=Ir);var j=e.onFocus;j===void 0&&(j=Ir);var O=e.onBlur;O===void 0&&(O=Ir);var E=e.value,x=e.getCaretBoundary;x===void 0&&(x=MC);var w=e.isValidInputCharacter;w===void 0&&(w=Zi);var $=e.isCharacterSame,D=c0(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),H=m0(E,h,!!p,u,m,g),Z=H[0],ee=Z.formattedValue,se=Z.numAsString,$e=H[1],ce=S.useRef(),ne=S.useRef({formattedValue:ee,numAsString:se}),we=function(he,ke){ne.current={formattedValue:he.formattedValue,numAsString:he.value},$e(he,ke)},De=S.useState(!1),Fe=De[0],M=De[1],G=S.useRef(null),ie=S.useRef({setCaretTimeout:null,focusTimeout:null});S.useEffect(function(){return M(!0),function(){clearTimeout(ie.current.setCaretTimeout),clearTimeout(ie.current.focusTimeout)}},[]);var je=u,Te=function(he,ke){var Re=parseFloat(ke);return{formattedValue:he,value:ke,floatValue:isNaN(Re)?void 0:Re}},C=function(he,ke,Re){he.selectionStart===0&&he.selectionEnd===he.value.length||(pa(he,ke),ie.current.setCaretTimeout=setTimeout(function(){he.value===Re&&he.selectionStart!==ke&&pa(he,ke)},0))},P=function(he,ke,Re){return C1(he,ke,x(he),Re)},le=function(he,ke,Re){var lo=x(ke),T=DC(ke,ee,he,Re,lo,w,$);return T=C1(ke,T,lo),T},fe=function(he){var ke=he.formattedValue;ke===void 0&&(ke="");var Re=he.input,lo=he.source,T=he.event,B=he.numAsString,F;if(Re){var te=he.inputValue||Re.value,re=tb(Re);Re.value=ke,F=le(te,ke,re),F!==void 0&&C(Re,F,ke)}ke!==ee&&we(Te(ke,B),{event:T,source:lo})};S.useEffect(function(){var he=ne.current,ke=he.formattedValue,Re=he.numAsString;(ee!==ke||se!==Re)&&we(Te(ee,se),{event:void 0,source:qi.props})},[ee,se]);var Ce=G.current?tb(G.current):void 0,Ne=typeof window<"u"?S.useLayoutEffect:S.useEffect;Ne(function(){var he=G.current;if(ee!==ne.current.formattedValue&&he){var ke=le(ne.current.formattedValue,ee,Ce);he.value=ee,C(he,ke,ee)}},[ee]);var Ge=function(he,ke,Re){var lo=ke.target,T=ce.current?OC(ce.current,lo.selectionEnd):b0(ee,he),B=Object.assign(Object.assign({},T),{lastValue:ee}),F=m(he,B),te=je(F);if(F=m(te,void 0),v&&!v(Te(te,F))){var re=ke.target,oe=tb(re),ve=le(he,ee,oe);return re.value=ee,C(re,ve,ee),!1}return fe({formattedValue:te,numAsString:F,inputValue:he,event:ke,source:Re,input:ke.target}),!0},Co=function(he,ke){ke===void 0&&(ke=0);var Re=he.selectionStart,lo=he.selectionEnd;ce.current={selectionStart:Re,selectionEnd:lo+ke}},_o=function(he){var ke=he.target,Re=ke.value,lo=Ge(Re,he,qi.event);lo&&_(he),ce.current=void 0},vt=function(he){var ke=he.target,Re=he.key,lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var F;Re==="ArrowLeft"||Re==="Backspace"?F=Math.max(lo-1,0):Re==="ArrowRight"?F=Math.min(lo+1,B.length):Re==="Delete"&&(F=lo);var te=0;Re==="Delete"&&lo===T&&(te=1);var re=Re==="ArrowLeft"||Re==="ArrowRight";if(F===void 0||lo!==T&&!re){z(he),Co(ke,te);return}var oe=F;if(re){var ve=Re==="ArrowLeft"?"left":"right";oe=P(B,F,ve),oe!==F&&he.preventDefault()}else Re==="Delete"&&!w(B[F])?oe=P(B,F,"right"):Re==="Backspace"&&!w(B[F])&&(oe=P(B,F,"left"));oe!==F&&C(ke,oe,B),z(he),Co(ke,te)},jt=function(he){var ke=he.target,Re=function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;if(B===void 0&&(B=""),lo===T){var F=P(B,lo);F!==lo&&C(ke,F,B)}};Re(),requestAnimationFrame(function(){Re()}),N(he),Co(ke)},Pr=function(he){he.persist&&he.persist();var ke=he.target,Re=he.currentTarget;G.current=ke,ie.current.focusTimeout=setTimeout(function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var F=P(B,lo);F!==lo&&!(lo===0&&T===B.length)&&C(ke,F,B),j(Object.assign(Object.assign({},he),{currentTarget:Re}))},0)},Gr=function(he){G.current=null,clearTimeout(ie.current.focusTimeout),clearTimeout(ie.current.setCaretTimeout),O(he)},gt=Fe&&NC()?"numeric":void 0,Nt=Object.assign({inputMode:gt},D,{type:n,value:ee,onChange:_o,onKeyDown:vt,onMouseUp:jt,onFocus:Pr,onBlur:Gr});if(r==="text")return s?ae.createElement(ae.Fragment,null,s(ee,D)||null):ae.createElement("span",Object.assign({},D,{ref:d}),ee);if(i){var fr=i;return ae.createElement(fr,Object.assign({},Nt,{ref:d}))}return ae.createElement("input",Object.assign({},Nt,{ref:d}))}function E1(e,n){var r=n.decimalScale,i=n.fixedDecimalScale,s=n.prefix;s===void 0&&(s="");var d=n.suffix;d===void 0&&(d="");var u=n.allowNegative,m=n.thousandsGroupStyle;if(m===void 0&&(m="thousand"),e===""||e==="-")return e;var h=ld(n),p=h.thousandSeparator,g=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&i,_=$m(e,u),z=_.beforeDecimal,N=_.afterDecimal,j=_.addNegation;return r!==void 0&&(N=u0(N,r,!!i)),p&&(z=CC(z,p,m)),s&&(z=s+z),d&&(N=N+d),j&&(z="-"+z),e=z+(v&&g||"")+N,e}function ld(e){var n=e.decimalSeparator;n===void 0&&(n=".");var r=e.thousandSeparator,i=e.allowedDecimalSeparators;return r===!0&&(r=","),i||(i=[n,"."]),{decimalSeparator:n,thousandSeparator:r,allowedDecimalSeparators:i}}function FC(e,n){e===void 0&&(e="");var r=new RegExp("(-)"),i=new RegExp("(-)(.)*(-)"),s=r.test(e),d=i.test(e);return e=e.replace(/-/g,""),s&&!d&&n&&(e="-"+e),e}function KC(e,n){return new RegExp("(^-)|[0-9]|"+d0(e),"g")}function VC(e,n,r){return e===""?!0:!n?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function qC(e,n,r){var i;n===void 0&&(n=BC(e));var s=r.allowNegative,d=r.prefix;d===void 0&&(d="");var u=r.suffix;u===void 0&&(u="");var m=r.decimalScale,h=n.from,p=n.to,g=p.start,v=p.end,_=ld(r),z=_.allowedDecimalSeparators,N=_.decimalSeparator,j=e[v]===N;if(Zi(e)&&(e===d||e===u)&&n.lastValue==="")return e;if(v-g===1&&z.indexOf(e[g])!==-1){var O=m===0?"":N;e=e.substring(0,g)+O+e.substring(g+1,e.length)}var E=function(G,ie,je){var Te=!1,C=!1;d.startsWith("-")?Te=!1:G.startsWith("--")?(Te=!1,C=!0):u.startsWith("-")&&G.length===u.length?Te=!1:G[0]==="-"&&(Te=!0);var P=Te?1:0;return C&&(P=2),P&&(G=G.substring(P),ie-=P,je-=P),{value:G,start:ie,end:je,hasNegation:Te}},x=E(e,g,v),w=x.hasNegation;i=x,e=i.value,g=i.start,v=i.end;var $=E(n.lastValue,h.start,h.end),D=$.start,H=$.end,Z=$.value,ee=e.substring(g,v);e.length&&Z.length&&(D>Z.length-u.length||H<d.length)&&!(ee&&u.startsWith(ee))&&(e=Z);var se=0;e.startsWith(d)?se+=d.length:g<d.length&&(se=g),e=e.substring(se),v-=se;var $e=e.length,ce=e.length-u.length;e.endsWith(u)?$e=ce:(v>ce||v>e.length-u.length)&&($e=v),e=e.substring(0,$e),e=FC(w?"-"+e:e,s),e=(e.match(KC(N))||[]).join("");var ne=e.indexOf(N);e=e.replace(new RegExp(d0(N),"g"),function(G,ie){return ie===ne?".":""});var we=$m(e,s),De=we.beforeDecimal,Fe=we.afterDecimal,M=we.addNegation;return p.end-p.start<h.end-h.start&&De===""&&j&&!parseFloat(Fe)&&(e=M?"-":""),e}function ZC(e,n){var r=n.prefix;r===void 0&&(r="");var i=n.suffix;i===void 0&&(i="");var s=Array.from({length:e.length+1}).map(function(){return!0}),d=e[0]==="-";s.fill(!1,0,r.length+(d?1:0));var u=e.length;return s.fill(!1,u-i.length+1,u+1),s}function PC(e){var n=ld(e),r=n.thousandSeparator,i=n.decimalSeparator,s=e.prefix;s===void 0&&(s="");var d=e.allowNegative;if(d===void 0&&(d=!0),r===i)throw new Error(`
|
|
25954
|
+
}`;const c8=xm.createTheme("ecl-eu",{GLOBAL:i8,"KOL-ACCORDION":_T,"KOL-ALERT":xT,"KOL-BADGE":yT,"KOL-BREADCRUMB":wT,"KOL-BUTTON":jT,"KOL-BUTTON-LINK":zT,"KOL-CARD":ST,"KOL-COMBOBOX":TT,"KOL-DETAILS":AT,"KOL-DRAWER":CT,"KOL-FORM":ET,"KOL-HEADING":LT,"KOL-INPUT-CHECKBOX":OT,"KOL-INPUT-COLOR":$T,"KOL-INPUT-DATE":NT,"KOL-INPUT-EMAIL":BT,"KOL-INPUT-FILE":RT,"KOL-INPUT-NUMBER":DT,"KOL-INPUT-PASSWORD":MT,"KOL-INPUT-RADIO":IT,"KOL-INPUT-RANGE":UT,"KOL-INPUT-TEXT":HT,"KOL-LINK":KT,"KOL-LINK-BUTTON":FT,"KOL-MODAL":VT,"KOL-NAV":qT,"KOL-PAGINATION":ZT,"KOL-POPOVER-BUTTON":PT,"KOL-SELECT":GT,"KOL-SINGLE-SELECT":YT,"KOL-SKIP-NAV":JT,"KOL-SPIN":XT,"KOL-SPLIT-BUTTON":WT,"KOL-TABLE-STATEFUL":QT,"KOL-TABLE-STATELESS":e8,"KOL-TABS":o8,"KOL-TEXTAREA":n8,"KOL-TOAST-CONTAINER":t8,"KOL-TOOLBAR":r8,"KOL-TREE":l8,"KOL-TREE-ITEM":a8}),s8="3.1.2-rc.0",Ib={version:s8},d8=()=>{const e={onClick:()=>history.back()};return a.jsxs(gn,{_label:"This is an example page",_level:0,_type:"info",children:[a.jsx("p",{children:"You followed an example link."}),history.length>1&&a.jsx(W,{_label:"Go Back",_on:e})]})},Ky=["default","ecl-ec","ecl-eu","unstyled"],ym=e=>Ky.find(n=>n===e)!==void 0,wm=[{label:"Unstyled (Uncolored)",value:"unstyled"},{label:"Default (Tested)",value:"default"},{label:"European Commission (in progress)",value:"ecl-ec"},{label:"European Union (in progress)",value:"ecl-eu"}];function u8(){const e=matchMedia("(max-width: 1023px)"),[n,r]=j.useState(e.matches),i=()=>{r(e.matches)};return j.useEffect(()=>(i(),e.addEventListener("change",i),()=>{e.removeEventListener("change",i)}),[e]),n}function f8({children:e}){return u8()?a.jsx(rn,{_label:"All components",class:"mt",children:e}):a.jsx("div",{className:"mt scrollable-container",children:e})}function c1({label:e,to:n,children:r}){const i=Rx(n),s=Cl(n),d=$4({path:s.pathname,end:!0});return a.jsx(Qo,{_label:e,_href:i,_active:!!d,children:r})}function b8({routes:e}){const n=(i,s)=>Object.keys(s).map(d=>{const u=i==="tree"&&d==="basic/:subPage",m=u?"basic/home":d,h=u?"basic":d;return a.jsx(c1,{label:h,to:[i,m].join("/")},[i,d].join("/"))}),r=Object.entries(e).map(([i,s])=>a.jsx(c1,{label:i,to:i,children:n(i,s)},i));return a.jsx(f8,{children:a.jsx("nav",{children:a.jsx(jx,{_label:"Navigation",class:"block",children:r})})})}const m8=({buildDate:e,commitHash:n})=>!e&&!n?"":a.jsx("div",{className:"text-sm font-mono color-gray-5 m-t-2",children:e&&n?a.jsxs(a.Fragment,{children:["Build: ",n,a.jsx("br",{}),"at ",e]}):n?`Build: ${n}`:`Build date: ${e}`}),h8=({version:e,theme:n,routes:r,routeList:i,sample:s,buildDate:d,commitHash:u,onThemeChange:m})=>{const h=()=>i.indexOf(s),p=()=>s.replace(/\//g," "),g=(z,N)=>{m(N)},v=()=>{const z=h(),N=z<=0?i.length-1:z-1;location.replace(`#${i[N]}`)},_=()=>{const z=h(),N=z===i.length-1?0:z+1;location.replace(`#${i[N]}`)};return a.jsx("aside",{className:"app-sidebar p-4",children:a.jsxs("div",{className:"scrollable-container-wrapper",children:[a.jsxs("div",{className:"flex flex-justify-between flex-items-center",children:[a.jsx(be,{_label:"KoliBri React"}),a.jsx(Qs,{_label:e})]}),a.jsx(m8,{buildDate:d,commitHash:u}),a.jsx(Jo,{_label:"Theme",_options:wm,_on:{onChange:g},_value:n,class:"mt"}),a.jsx(be,{_label:"Components",_level:2,className:"block mt"}),a.jsxs("div",{className:"flex flex-justify-between flex-items-center mt",children:[a.jsx(W,{_icons:"codicon codicon-arrow-left",_hideLabel:!0,_label:"Previous component",_on:{onClick:v}}),a.jsxs("span",{className:"text-base text-center",children:[p()," (",h()+1,"/",i.length,")"]}),a.jsx(W,{_icons:"codicon codicon-arrow-right",_hideLabel:!0,_label:"Next component",_on:{onClick:_}})]}),a.jsx(b8,{routes:r})]})})},p8=()=>{const e=rt();U5("#"+e.pathname)},zm=j.createContext(null),k8="https://public-ui.github.io/docs/components",v8="https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components",Ue="I am an error message!",xn="I am a hint.",V=e=>{const n=j.useContext(zm),r=rt(),i=r.pathname.split("/").slice(1),s=j.useMemo(()=>i[0]==="scenarios"?null:`${k8}/${i[0]}`,[r.hash]),d=j.useMemo(()=>i[0]==="scenarios"?null:`${v8}/${i[0]}/${i[1]}.tsx`,[r.hash]);return a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:"visually-hidden",children:r.pathname.replace(/\//g," ")}),n?null:a.jsxs("div",{className:"grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2",children:[a.jsx("div",{className:"indented-text",children:e.children}),a.jsxs("ul",{className:"flex flex-wrap gap-2 list-none m-0 p-0",children:[d&&a.jsx("li",{children:a.jsx(_e,{_href:d,_label:"Code",_target:"_blank"})}),s&&a.jsx("li",{children:a.jsx(_e,{_href:s,_label:"Documentation",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:`#${r.pathname}?hideMenus`,_label:"Standalone example",_target:"_blank"})})]})]})]})},g8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolAbbr shows an abbreviation and uses kol-tooltip-wc to display the long form, if provided."})}),a.jsxs("p",{children:["I am ",a.jsx(Di,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Di,{children:"e.g."})," an abbreviation without label."]})]}),_8={abbr:{basic:g8}},x8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolAccordion hides its content until opened. The open state can be toggled by clicking the headline or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. Additionally, the sample shows the disabled state for a closed and an open accordion."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Heading Accordion Tab 1 (open)",_open:!0,children:a.jsx(_n,{_label:"Combobox in Accordion",_suggestions:"['Herr','Frau','Firma']"})}),a.jsx(rn,{_label:"Heading Accordion Tab 2",children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Accordion Tab 3 (deactivated)",_disabled:!0,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Accordion Tab 4 (disabled and open)",_disabled:!0,_open:!0,children:"Contents Accordion Tab 4"})]})]}),y8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolAccordion with the different heading levels from 1-6."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Heading Level 1",_level:1,children:"Contents Accordion Tab 1"}),a.jsx(rn,{_label:"Heading Level 2",_level:2,children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Level 3",_level:3,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Level 4",_level:4,children:"Contents Accordion Tab 4"}),a.jsx(rn,{_label:"Heading Level 5",_level:5,children:"Contents Accordion Tab 5"}),a.jsx(rn,{_label:"Heading Level 6",_level:6,children:"Contents Accordion Tab 6"})]})]}),w8={accordion:{basic:x8,headlines:y8}},Ci=({level:e,type:n,variant:r})=>a.jsxs(a.Fragment,{children:[a.jsx(gn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,children:"This is the text of the alert."}),a.jsx(gn,{_type:n,_variant:r,children:"In this alert, only the text without the heading is used."}),a.jsx(gn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,_hasCloser:!0,children:"This is the text of the alert. With close button."}),a.jsx(gn,{_type:n,_variant:r,_hasCloser:!0,children:"In this alert, only the text without the heading is used. With close button."})]}),Vy=({variant:e="msg"})=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ci,{level:1,type:"default",variant:e}),a.jsx(Ci,{level:2,type:"error",variant:e}),a.jsx(Ci,{level:3,type:"info",variant:e}),a.jsx(Ci,{level:4,type:"success",variant:e}),a.jsx(Ci,{level:5,type:"warning",variant:e})]}),z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"msg"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx(Vy,{variant:"msg"})]}),j8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"card"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx("section",{className:"w-full",children:a.jsx(Vy,{variant:"card"})})]}),S8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolAlert can be used with arbitrary HTML as slot content."})}),a.jsx("div",{children:a.jsxs(gn,{_label:"Output of HTML code in the alert",_type:"info",children:[a.jsx("div",{className:"mt-2 mb-3",children:a.jsx(be,{_level:2,_label:"An H2 heading is output here"})}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("h3",{children:"Text in a left-hand column"}),a.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur dicta accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?"})]}),a.jsxs("div",{children:[a.jsx("h3",{children:"Text in einer rechten Spalte"}),a.jsx("p",{children:"Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo. Possimus, molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!"})]})]})]})})]}),T8={alert:{basic:z8,"card-msg":j8,html:S8}},A8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolAvatar shows a user's avatar with customizable colors. It can be used with or without an image. If no image is defined, the name's initials are shown instead with a configurable background color."})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(ps,{_src:"https://www.w3schools.com/howto/img_avatar.png",_label:"Elke Mustermann"}),a.jsx(ps,{_label:"Elke Mustermann "}),a.jsx(ps,{_label:"Marianne"}),a.jsx(ps,{_color:"#0000FF",_label:"Christian"})]})]}),C8={avatar:{basic:A8}},E8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolBadge shows badges with a label, background color and optional icon."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(wo,{_label:"black"}),a.jsx(wo,{_color:"#86ffc6",_label:"teal"}),a.jsx(wo,{_color:"#06539e",_label:"blue"}),a.jsx(wo,{_color:"#ae0000",_label:"red with icon",_icons:"codicon codicon-smiley"}),a.jsx(wo,{_color:"#8b008b",_label:"purple with icon",_icons:"codicon codicon-squirrel"})]})]}),Ei=e=>({_label:e,_smartButton:{_ariaDescription:e,_icons:"codicon codicon-close",_label:"Remove",_on:{onClick:()=>alert("clicked")}}}),L8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolBadge with an optional ",a.jsx("code",{children:"smartButton"}),'. The sample defines a "close" button with X-icon a click event listener.']})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(wo,{...Ei("black")}),a.jsx(wo,{_color:"#86ffc6",...Ei("teal")}),a.jsx(wo,{_color:"#06539e",...Ei("blue")}),a.jsx(wo,{_color:"#ae0000",_icons:"codicon codicon-smiley",...Ei("red with icon")}),a.jsx(wo,{_color:"#8b008b",_icons:"codicon codicon-squirrel",...Ei("purple with icon")})]})]}),O8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates the possibility of formatted text in badges via markdown syntax."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(wo,{_color:"#7db4ebff",_label:"**Bold** and _italic_ Markdown label"}),a.jsx(wo,{_color:"#8feb7dff",_label:"This is ~~strikethrough~~ text"}),a.jsx(wo,{_color:"#e6ee8eff",_label:"Source code like `y = mx + n` is possible"})]})]}),$8={badge:{basic:E8,button:L8,"formatted-label":O8}},N8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolBreadcrumb shows a breadcrumb navigation. The sample illustrates a variation of link, text and icon elements."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(js,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(js,{_label:"Breadcrumb from icons or text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_hideLabel:!0,_href:"#/back-page"},{_label:"Subpage of the start page with very long link test",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(js,{_label:"Breadcrumb from icons and text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"Subpage of the main page and I_am_a_really_long_compound_word_trying_to_break_the_layout",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})]})]}),B8={breadcrumb:{basic:N8}},R8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Button Text without area description"}),a.jsx(Pe,{_label:"Button Text",_ariaDescription:"Button Area Description"})]})]});function Do(){const e=Vr.getInstance(document),n=s=>{e.enqueue({description:s||"Hello",label:"Hello",type:"info"})};return{dummyClickEventHandler:()=>{n()},buttonWithTextClickEventHandler:s=>{const d=s.currentTarget.textContent;n(d)}}}const D8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties such as ",a.jsx("code",{children:"block"}),", ",a.jsx("code",{children:"inline-block"})," and ",a.jsx("code",{children:"inline"}),". It also demonstrates the disabled-state."]})}),a.jsxs("section",{className:"text-base",children:[a.jsx(be,{_level:2,_label:"Button-Link with _inline"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(Pe,{_label:"Simple Link"})," It is rendered by default as an"," ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element.",a.jsx(Pe,{className:"m-4",style:{display:"inline-block",border:"1px dotted"},_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element.",a.jsx(Pe,{style:{display:"block"},_label:"Simple Link"}),"Therefore, I go over the entire width of the parent element to create a line break."]}),a.jsx(be,{_level:2,_label:"Button-Link with _inline={false}"}),a.jsx("p",{children:"Use the boolean _inline property to render the link inline (default) or standalone."}),a.jsx("p",{children:a.jsx(Pe,{_label:"Disabled ButtonLink",_disabled:!0,_inline:!1})}),a.jsx("p",{children:a.jsx(Pe,{_label:"With access key",_accessKey:"c",_inline:!1,_on:n})}),a.jsx("p",{children:a.jsx(Pe,{_label:"Disabled ButtonLink",_inline:!1,_shortKey:"s"})})]})]})},M8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with icons in different locations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Pe,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left"}),a.jsx(Pe,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right"}),a.jsx(Pe,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top"}),a.jsx(Pe,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below"}),a.jsx(Pe,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons"}),a.jsx(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"I am a link with icon only"})]})]}),I8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with slot-content instead of a label. The sample uses an image as content."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Pe,{_label:"I am a link that is rendered as text"}),a.jsx(Pe,{_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),U8={"button-link":{basic:D8,icons:M8,image:I8,"aria-description":R8}},H8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolButton with"," ",a.jsx(_e,{_label:"access keys",_href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey",_target:"blank"}),". The access keys can be used to trigger the buttons using the keyboard."]})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"With S access key",_accessKey:"S",_on:n}),a.jsx(W,{_label:"Very small b",_accessKey:"b",_on:n}),a.jsx(W,{_label:"Access key does not appear in label",_accessKey:"x",_on:n}),a.jsx(W,{_label:"access key without label",_hideLabel:!0,_accessKey:"a",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(W,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_accessKey:"n",_on:n})]})]})},F8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Button Text without area description",_on:n}),a.jsx(W,{_label:"Button Text",_ariaDescription:"Button Area Description",_on:n})]})]})},K8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_icons:"codicon codicon-reactions",_label:"Label-Text with Icon",_on:n})]})]})},pl="kol-tooltip-wc",V8=e=>{const{children:n,...r}=e,{dummyClickEventHandler:i}=Do(),s={onClick:i};return a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_icons:"codicon codicon-home",_label:"Primary",_variant:"primary",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Primary"}),a.jsx(W,{_icons:"codicon codicon-heart",_label:"Secondary",_variant:"secondary",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Tertiary"}),a.jsx(W,{_icons:"codicon codicon-hubot",_label:"Tertiary",_variant:"tertiary",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Normal"}),a.jsx(W,{_icons:"codicon codicon-hubot",_label:"Normal",_variant:"normal",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Danger"}),a.jsx(W,{_icons:"codicon codicon-trash",_label:"Danger",_variant:"danger",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Ghost"}),a.jsx(W,{_icons:"codicon codicon-reactions",_label:"Ghost",_variant:"ghost",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Link"})]})},qy=(e={})=>{const n=[{label:"Button",buttonProps:e},{label:"Button (disabled)",buttonProps:{...e,_disabled:!0}},{label:"Button (hideLabel)",buttonProps:{...e,_hideLabel:!0}},{label:"Button (disabled, hideLabel)",buttonProps:{...e,_disabled:!0,_hideLabel:!0}}];return a.jsx("div",{className:"grid gap-8",children:n.map(({label:r,buttonProps:i},s)=>a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:r}),a.jsx(V8,{...i})]},s))})},q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolButton shows a button-element. This sample demonstrates the basic usage with its different styling variants, icons, disabled state and hidden labels."})}),a.jsx(qy,{})]}),Z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolButton show a button-element with expert slot."})}),a.jsx(qy,{_label:"",children:a.jsx("span",{slot:"expert",children:"I am more than just a button"})})]}),P8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with icons in all alignments."})}),a.jsx("div",{children:a.jsx(W,{_icons:{bottom:"codicon codicon-arrow-down",left:{icon:"codicon codicon-arrow-left"},top:{style:{"font-size":"200%",transform:"rotate(45deg)"},icon:"codicon codicon-arrow-up"},right:"codicon codicon-arrow-right"},_label:"Label",_on:n,className:"w-10rem"})})]})},G8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates how the tooltip adapts its width when containing long text inside a row-reverse flex container. The effect becomes visible when inspecting the layout with DevTools and reducing the available width (e.g. by narrowing the screen)."})}),a.jsx("div",{className:"flex flex-row-reverse",children:a.jsx(W,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"This is a very, very long tooltip text that exceeds the width.",_variant:"primary"})})]}),ob=new WeakMap,vn=e=>(ob.has(e)===!1&&ob.set(e,Sx.createRoot(e)),ob.get(e)),Y8=({label:e})=>{const n=Vr.getInstance(document),r=j.useRef(null),i=j.useRef(null),s=()=>{n.enqueue({label:"Edit clicked",description:`The button "edit" has been clicked for ${e}`,type:"info"})},d=()=>{n.enqueue({label:"Delete clicked",description:`The button "delete" has been clicked for ${e}`,type:"warning"})},u=m=>{switch(m.code){case"KeyE":r.current?.kolFocus(),s();return;case"KeyD":i.current?.kolFocus(),d();return}};return a.jsxs("div",{style:{display:"flex",gap:"calc(10rem / var(--kolibri-root-font-size, 16))"},onKeyUp:u,children:[a.jsx(W,{ref:r,_label:"Edit",_shortKey:"e",_on:{onClick:s}}),a.jsx(W,{ref:i,_label:"Delete",_shortKey:"d",_variant:"danger",_on:{onClick:d}})]})},J8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e},r=[{label:"Row 1"},{label:"Row 2"}],i={horizontal:[[{label:"Label",key:"label",textAlign:"left"},{label:"Actions",key:"actions",textAlign:"left",render:(s,d)=>{vn(Fr(s)).render(a.jsx(Y8,{label:d.data.label}))}}]]};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"The first sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."}),a.jsx("p",{children:'The second sample showcases a table where each row contains two KolButtons, each with its own shortcut key. To trigger an action, move the focus to any of the "Actions" cells and press "e" or "d." Doing so will activate the corresponding action and display a Toast notification for demonstration purposes.'})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"With S short key",_shortKey:"S",_on:n}),a.jsx(W,{_label:"Very small b",_shortKey:"b",_on:n}),a.jsx(W,{_label:"Short key does not appear in label",_shortKey:"x",_on:n}),a.jsx(W,{_label:"short key without label",_hideLabel:!0,_shortKey:"k",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(W,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_shortKey:"n",_on:n})]}),a.jsx(be,{_level:2,_label:"Interactive sample",className:"mt"}),a.jsx(mo,{_label:'Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.',_data:r,_headers:i,_minWidth:"400px"})]})},X8=()=>{const{dummyClickEventHandler:e}=Do(),n={className:"w-8rem",_on:{onClick:e}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with adjusted widths."})}),a.jsxs("div",{className:"grid gap-14",children:[a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Primary",_variant:"primary",...n}),a.jsx(W,{_label:"Secondary",_variant:"secondary",...n}),a.jsx(W,{_label:"Normal",_variant:"normal",...n}),a.jsx(W,{_label:"Danger",_variant:"danger",...n}),a.jsx(W,{_label:"Ghost",_variant:"ghost",...n})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_disabled:!0,_label:"Primary",_variant:"primary",...n}),a.jsx(W,{_disabled:!0,_label:"Secondary",_variant:"secondary",...n}),a.jsx(W,{_disabled:!0,_label:"Normal",_variant:"normal",...n}),a.jsx(W,{_disabled:!0,_label:"Danger",_variant:"danger",...n}),a.jsx(W,{_disabled:!0,_label:"Ghost",_variant:"ghost",...n})]})]})]})},W8={button:{basic:q8,icons:P8,width:X8,"access-key":H8,"aria-description":F8,baselined:K8,"short-key":J8,"expert-slot":Z8,"row-reverse-tooltip":G8}},Q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolCard shows a card with title and slot content. The second sample features a close button."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Le,{_label:"Card with title and content",children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with closer",_hasCloser:!0,children:a.jsx("p",{children:"This card has a close button."})})]})]}),eA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows cards with all headline levels as title."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Le,{_label:"Card with headline level 0",_level:0,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 1",_level:1,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 2",_level:2,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 3",_level:3,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 4",_level:4,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 5",_level:5,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 6",_level:6,children:a.jsx("div",{children:"Card contents."})})]})]}),oA={card:{basic:Q8,headlines:eA}},yn=({RefComponent:e,showButtons:n=!0,...r})=>a.jsx(An,{className:"w-full",children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(e,{...r}),n&&a.jsxs("div",{className:"flex gap-4",children:[a.jsx(W,{_label:"Submit",_icons:"codicon codicon-arrow-right",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Bunte Icons",_icons:{left:{icon:"codicon codicon-heart-filled",style:{color:"#cc006e"}},right:{icon:"codicon codicon-squirrel",style:{color:"#b41b1b"}}},_type:"submit",_variant:"secondary"}),a.jsx(W,{_label:"Reset",_type:"reset",_variant:"tertiary"}),a.jsx(W,{_label:"Help",_variant:"ghost"})]})]})});function Cn({children:e}){const[n]=Kr(),r=n.has("noColumns");return a.jsx("div",{className:r?"":"grid md:grid-cols-2 gap-4",children:e})}const Zy=JSON.parse('[{"id":4,"alpha2":"af","alpha3":"afg","name":"Afghanistan"},{"id":818,"alpha2":"eg","alpha3":"egy","name":"Ägypten"},{"id":8,"alpha2":"al","alpha3":"alb","name":"Albanien"},{"id":12,"alpha2":"dz","alpha3":"dza","name":"Algerien"},{"id":20,"alpha2":"ad","alpha3":"and","name":"Andorra"},{"id":24,"alpha2":"ao","alpha3":"ago","name":"Angola"},{"id":28,"alpha2":"ag","alpha3":"atg","name":"Antigua und Barbuda"},{"id":226,"alpha2":"gq","alpha3":"gnq","name":"Äquatorialguinea"},{"id":32,"alpha2":"ar","alpha3":"arg","name":"Argentinien"},{"id":51,"alpha2":"am","alpha3":"arm","name":"Armenien"},{"id":31,"alpha2":"az","alpha3":"aze","name":"Aserbaidschan"},{"id":231,"alpha2":"et","alpha3":"eth","name":"Äthiopien"},{"id":36,"alpha2":"au","alpha3":"aus","name":"Australien"},{"id":44,"alpha2":"bs","alpha3":"bhs","name":"Bahamas"},{"id":48,"alpha2":"bh","alpha3":"bhr","name":"Bahrain"},{"id":50,"alpha2":"bd","alpha3":"bgd","name":"Bangladesch"},{"id":52,"alpha2":"bb","alpha3":"brb","name":"Barbados"},{"id":112,"alpha2":"by","alpha3":"blr","name":"Belarus"},{"id":56,"alpha2":"be","alpha3":"bel","name":"Belgien"},{"id":84,"alpha2":"bz","alpha3":"blz","name":"Belize"},{"id":204,"alpha2":"bj","alpha3":"ben","name":"Benin"},{"id":64,"alpha2":"bt","alpha3":"btn","name":"Bhutan"},{"id":68,"alpha2":"bo","alpha3":"bol","name":"Bolivien"},{"id":70,"alpha2":"ba","alpha3":"bih","name":"Bosnien und Herzegowina"},{"id":72,"alpha2":"bw","alpha3":"bwa","name":"Botswana"},{"id":76,"alpha2":"br","alpha3":"bra","name":"Brasilien"},{"id":96,"alpha2":"bn","alpha3":"brn","name":"Brunei"},{"id":100,"alpha2":"bg","alpha3":"bgr","name":"Bulgarien"},{"id":854,"alpha2":"bf","alpha3":"bfa","name":"Burkina Faso"},{"id":108,"alpha2":"bi","alpha3":"bdi","name":"Burundi"},{"id":152,"alpha2":"cl","alpha3":"chl","name":"Chile"},{"id":156,"alpha2":"cn","alpha3":"chn","name":"China, Volksrepublik"},{"id":188,"alpha2":"cr","alpha3":"cri","name":"Costa Rica"},{"id":208,"alpha2":"dk","alpha3":"dnk","name":"Dänemark"},{"id":276,"alpha2":"de","alpha3":"deu","name":"Deutschland"},{"id":212,"alpha2":"dm","alpha3":"dma","name":"Dominica"},{"id":214,"alpha2":"do","alpha3":"dom","name":"Dominikanische Republik"},{"id":262,"alpha2":"dj","alpha3":"dji","name":"Dschibuti"},{"id":218,"alpha2":"ec","alpha3":"ecu","name":"Ecuador"},{"id":384,"alpha2":"ci","alpha3":"civ","name":"Elfenbeinküste"},{"id":222,"alpha2":"sv","alpha3":"slv","name":"El Salvador"},{"id":232,"alpha2":"er","alpha3":"eri","name":"Eritrea"},{"id":233,"alpha2":"ee","alpha3":"est","name":"Estland"},{"id":748,"alpha2":"sz","alpha3":"swz","name":"Eswatini"},{"id":242,"alpha2":"fj","alpha3":"fji","name":"Fidschi"},{"id":246,"alpha2":"fi","alpha3":"fin","name":"Finnland"},{"id":250,"alpha2":"fr","alpha3":"fra","name":"Frankreich"},{"id":266,"alpha2":"ga","alpha3":"gab","name":"Gabun"},{"id":270,"alpha2":"gm","alpha3":"gmb","name":"Gambia"},{"id":268,"alpha2":"ge","alpha3":"geo","name":"Georgien"},{"id":288,"alpha2":"gh","alpha3":"gha","name":"Ghana"},{"id":308,"alpha2":"gd","alpha3":"grd","name":"Grenada"},{"id":300,"alpha2":"gr","alpha3":"grc","name":"Griechenland"},{"id":320,"alpha2":"gt","alpha3":"gtm","name":"Guatemala"},{"id":324,"alpha2":"gn","alpha3":"gin","name":"Guinea"},{"id":624,"alpha2":"gw","alpha3":"gnb","name":"Guinea-Bissau"},{"id":328,"alpha2":"gy","alpha3":"guy","name":"Guyana"},{"id":332,"alpha2":"ht","alpha3":"hti","name":"Haiti"},{"id":340,"alpha2":"hn","alpha3":"hnd","name":"Honduras"},{"id":356,"alpha2":"in","alpha3":"ind","name":"Indien"},{"id":360,"alpha2":"id","alpha3":"idn","name":"Indonesien"},{"id":368,"alpha2":"iq","alpha3":"irq","name":"Irak"},{"id":364,"alpha2":"ir","alpha3":"irn","name":"Iran"},{"id":372,"alpha2":"ie","alpha3":"irl","name":"Irland"},{"id":352,"alpha2":"is","alpha3":"isl","name":"Island"},{"id":376,"alpha2":"il","alpha3":"isr","name":"Israel"},{"id":380,"alpha2":"it","alpha3":"ita","name":"Italien"},{"id":388,"alpha2":"jm","alpha3":"jam","name":"Jamaika"},{"id":392,"alpha2":"jp","alpha3":"jpn","name":"Japan"},{"id":887,"alpha2":"ye","alpha3":"yem","name":"Jemen"},{"id":400,"alpha2":"jo","alpha3":"jor","name":"Jordanien"},{"id":116,"alpha2":"kh","alpha3":"khm","name":"Kambodscha"},{"id":120,"alpha2":"cm","alpha3":"cmr","name":"Kamerun"},{"id":124,"alpha2":"ca","alpha3":"can","name":"Kanada"},{"id":132,"alpha2":"cv","alpha3":"cpv","name":"Kap Verde"},{"id":398,"alpha2":"kz","alpha3":"kaz","name":"Kasachstan"},{"id":634,"alpha2":"qa","alpha3":"qat","name":"Katar"},{"id":404,"alpha2":"ke","alpha3":"ken","name":"Kenia"},{"id":417,"alpha2":"kg","alpha3":"kgz","name":"Kirgisistan"},{"id":296,"alpha2":"ki","alpha3":"kir","name":"Kiribati"},{"id":170,"alpha2":"co","alpha3":"col","name":"Kolumbien"},{"id":174,"alpha2":"km","alpha3":"com","name":"Komoren"},{"id":180,"alpha2":"cd","alpha3":"cod","name":"Kongo, Demokratische Republik"},{"id":178,"alpha2":"cg","alpha3":"cog","name":"Kongo, Republik"},{"id":408,"alpha2":"kp","alpha3":"prk","name":"Korea, Nord (Nordkorea)"},{"id":410,"alpha2":"kr","alpha3":"kor","name":"Korea, Süd (Südkorea)"},{"id":191,"alpha2":"hr","alpha3":"hrv","name":"Kroatien"},{"id":192,"alpha2":"cu","alpha3":"cub","name":"Kuba"},{"id":414,"alpha2":"kw","alpha3":"kwt","name":"Kuwait"},{"id":418,"alpha2":"la","alpha3":"lao","name":"Laos"},{"id":426,"alpha2":"ls","alpha3":"lso","name":"Lesotho"},{"id":428,"alpha2":"lv","alpha3":"lva","name":"Lettland"},{"id":422,"alpha2":"lb","alpha3":"lbn","name":"Libanon"},{"id":430,"alpha2":"lr","alpha3":"lbr","name":"Liberia"},{"id":434,"alpha2":"ly","alpha3":"lby","name":"Libyen"},{"id":438,"alpha2":"li","alpha3":"lie","name":"Liechtenstein"},{"id":440,"alpha2":"lt","alpha3":"ltu","name":"Litauen"},{"id":442,"alpha2":"lu","alpha3":"lux","name":"Luxemburg"},{"id":450,"alpha2":"mg","alpha3":"mdg","name":"Madagaskar"},{"id":454,"alpha2":"mw","alpha3":"mwi","name":"Malawi"},{"id":458,"alpha2":"my","alpha3":"mys","name":"Malaysia"},{"id":462,"alpha2":"mv","alpha3":"mdv","name":"Malediven"},{"id":466,"alpha2":"ml","alpha3":"mli","name":"Mali"},{"id":470,"alpha2":"mt","alpha3":"mlt","name":"Malta"},{"id":504,"alpha2":"ma","alpha3":"mar","name":"Marokko"},{"id":584,"alpha2":"mh","alpha3":"mhl","name":"Marshallinseln"},{"id":478,"alpha2":"mr","alpha3":"mrt","name":"Mauretanien"},{"id":480,"alpha2":"mu","alpha3":"mus","name":"Mauritius"},{"id":484,"alpha2":"mx","alpha3":"mex","name":"Mexiko"},{"id":583,"alpha2":"fm","alpha3":"fsm","name":"Mikronesien"},{"id":498,"alpha2":"md","alpha3":"mda","name":"Moldau"},{"id":492,"alpha2":"mc","alpha3":"mco","name":"Monaco"},{"id":496,"alpha2":"mn","alpha3":"mng","name":"Mongolei"},{"id":499,"alpha2":"me","alpha3":"mne","name":"Montenegro"},{"id":508,"alpha2":"mz","alpha3":"moz","name":"Mosambik"},{"id":104,"alpha2":"mm","alpha3":"mmr","name":"Myanmar"},{"id":516,"alpha2":"na","alpha3":"nam","name":"Namibia"},{"id":520,"alpha2":"nr","alpha3":"nru","name":"Nauru"},{"id":524,"alpha2":"np","alpha3":"npl","name":"Nepal"},{"id":554,"alpha2":"nz","alpha3":"nzl","name":"Neuseeland"},{"id":558,"alpha2":"ni","alpha3":"nic","name":"Nicaragua"},{"id":528,"alpha2":"nl","alpha3":"nld","name":"Niederlande"},{"id":562,"alpha2":"ne","alpha3":"ner","name":"Niger"},{"id":566,"alpha2":"ng","alpha3":"nga","name":"Nigeria"},{"id":807,"alpha2":"mk","alpha3":"mkd","name":"Nordmazedonien"},{"id":578,"alpha2":"no","alpha3":"nor","name":"Norwegen"},{"id":512,"alpha2":"om","alpha3":"omn","name":"Oman"},{"id":40,"alpha2":"at","alpha3":"aut","name":"Österreich"},{"id":626,"alpha2":"tl","alpha3":"tls","name":"Osttimor"},{"id":586,"alpha2":"pk","alpha3":"pak","name":"Pakistan"},{"id":585,"alpha2":"pw","alpha3":"plw","name":"Palau"},{"id":591,"alpha2":"pa","alpha3":"pan","name":"Panama"},{"id":598,"alpha2":"pg","alpha3":"png","name":"Papua-Neuguinea"},{"id":600,"alpha2":"py","alpha3":"pry","name":"Paraguay"},{"id":604,"alpha2":"pe","alpha3":"per","name":"Peru"},{"id":608,"alpha2":"ph","alpha3":"phl","name":"Philippinen"},{"id":616,"alpha2":"pl","alpha3":"pol","name":"Polen"},{"id":620,"alpha2":"pt","alpha3":"prt","name":"Portugal"},{"id":646,"alpha2":"rw","alpha3":"rwa","name":"Ruanda"},{"id":642,"alpha2":"ro","alpha3":"rou","name":"Rumänien"},{"id":643,"alpha2":"ru","alpha3":"rus","name":"Russland"},{"id":90,"alpha2":"sb","alpha3":"slb","name":"Salomonen"},{"id":894,"alpha2":"zm","alpha3":"zmb","name":"Sambia"},{"id":882,"alpha2":"ws","alpha3":"wsm","name":"Samoa"},{"id":674,"alpha2":"sm","alpha3":"smr","name":"San Marino"},{"id":678,"alpha2":"st","alpha3":"stp","name":"São Tomé und Príncipe"},{"id":682,"alpha2":"sa","alpha3":"sau","name":"Saudi-Arabien"},{"id":752,"alpha2":"se","alpha3":"swe","name":"Schweden"},{"id":756,"alpha2":"ch","alpha3":"che","name":"Schweiz"},{"id":686,"alpha2":"sn","alpha3":"sen","name":"Senegal"},{"id":688,"alpha2":"rs","alpha3":"srb","name":"Serbien"},{"id":690,"alpha2":"sc","alpha3":"syc","name":"Seychellen"},{"id":694,"alpha2":"sl","alpha3":"sle","name":"Sierra Leone"},{"id":716,"alpha2":"zw","alpha3":"zwe","name":"Simbabwe"},{"id":702,"alpha2":"sg","alpha3":"sgp","name":"Singapur"},{"id":703,"alpha2":"sk","alpha3":"svk","name":"Slowakei"},{"id":705,"alpha2":"si","alpha3":"svn","name":"Slowenien"},{"id":706,"alpha2":"so","alpha3":"som","name":"Somalia"},{"id":724,"alpha2":"es","alpha3":"esp","name":"Spanien"},{"id":144,"alpha2":"lk","alpha3":"lka","name":"Sri Lanka"},{"id":659,"alpha2":"kn","alpha3":"kna","name":"St. Kitts und Nevis"},{"id":662,"alpha2":"lc","alpha3":"lca","name":"St. Lucia"},{"id":670,"alpha2":"vc","alpha3":"vct","name":"St. Vincent und die Grenadinen"},{"id":710,"alpha2":"za","alpha3":"zaf","name":"Südafrika"},{"id":729,"alpha2":"sd","alpha3":"sdn","name":"Sudan"},{"id":728,"alpha2":"ss","alpha3":"ssd","name":"Südsudan"},{"id":740,"alpha2":"sr","alpha3":"sur","name":"Suriname"},{"id":760,"alpha2":"sy","alpha3":"syr","name":"Syrien"},{"id":762,"alpha2":"tj","alpha3":"tjk","name":"Tadschikistan"},{"id":834,"alpha2":"tz","alpha3":"tza","name":"Tansania"},{"id":764,"alpha2":"th","alpha3":"tha","name":"Thailand"},{"id":768,"alpha2":"tg","alpha3":"tgo","name":"Togo"},{"id":776,"alpha2":"to","alpha3":"ton","name":"Tonga"},{"id":780,"alpha2":"tt","alpha3":"tto","name":"Trinidad und Tobago"},{"id":148,"alpha2":"td","alpha3":"tcd","name":"Tschad"},{"id":203,"alpha2":"cz","alpha3":"cze","name":"Tschechien"},{"id":788,"alpha2":"tn","alpha3":"tun","name":"Tunesien"},{"id":792,"alpha2":"tr","alpha3":"tur","name":"Türkei"},{"id":795,"alpha2":"tm","alpha3":"tkm","name":"Turkmenistan"},{"id":798,"alpha2":"tv","alpha3":"tuv","name":"Tuvalu"},{"id":800,"alpha2":"ug","alpha3":"uga","name":"Uganda"},{"id":804,"alpha2":"ua","alpha3":"ukr","name":"Ukraine"},{"id":348,"alpha2":"hu","alpha3":"hun","name":"Ungarn"},{"id":858,"alpha2":"uy","alpha3":"ury","name":"Uruguay"},{"id":860,"alpha2":"uz","alpha3":"uzb","name":"Usbekistan"},{"id":548,"alpha2":"vu","alpha3":"vut","name":"Vanuatu"},{"id":862,"alpha2":"ve","alpha3":"ven","name":"Venezuela"},{"id":784,"alpha2":"ae","alpha3":"are","name":"Vereinigte Arabische Emirate"},{"id":840,"alpha2":"us","alpha3":"usa","name":"Vereinigte Staaten"},{"id":826,"alpha2":"gb","alpha3":"gbr","name":"Vereinigtes Königreich"},{"id":704,"alpha2":"vn","alpha3":"vnm","name":"Vietnam"},{"id":140,"alpha2":"cf","alpha3":"caf","name":"Zentralafrikanische Republik"},{"id":196,"alpha2":"cy","alpha3":"cyp","name":"Zypern"}]'),Wn=[...Zy.map(e=>({label:e.name,value:e.alpha2}))],Qn=[...Zy.map(e=>e.name)],s1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_n,{...e,_hint:xn,_label:"Label",_suggestions:Qn,_value:"Deutschland"}),a.jsx(_n,{...e,_label:"Disabled",_suggestions:Qn,_value:"Deutschland",_disabled:!0}),a.jsx(_n,{...e,_suggestions:Qn,_msg:{_type:"error",_description:Ue},_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(_n,{...e,_label:"With access key",_suggestions:Qn,_value:"Deutschland",_accessKey:"c"}),a.jsx(_n,{...e,_label:"With short key",_suggestions:Qn,_value:"Deutschland",_shortKey:"s"})]}),nA=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(s1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(s1,{...e,_hideLabel:!0})]})]}),tA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolCombobox combines a text input with a suggestion list, enabling users to either type in a value or to select on of the suggestions."})}),a.jsx(yn,{RefComponent:nA,showButtons:!1})]}),rA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"A HTML only KolCombobox."})}),a.jsx(_n,{_label:"With string array in html",_suggestions:"['Herr','Frau','Firma']",_value:"Herr"})]}),aA={combobox:{basic:tA,html:rA}},lA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. The sample includes an initially open state and a disabled but open Details component."]})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(rr,{_label:"Closed initially",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(rr,{_disabled:!0,_label:"Open initially (disabled)",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(rr,{_label:"Open initially",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."})]})]}),iA={details:{basic:lA}},cA=["left","top","right","bottom"].map(e=>({label:e,value:e})),jm=({value:e="left",onChange:n})=>a.jsx("div",{className:"grid gap-4",children:a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Lo,{_label:"Drawer alignment",_value:e,_options:cA,_orientation:"horizontal",_on:{onChange:n}})})}),sA=()=>{const[e]=Kr(),n=e.get("align"),r=e.get("closer")==="true",i=j.useRef(null),[s,d]=j.useState(n||"left"),[u,m]=j.useState(r);return j.useEffect(()=>{n&&i.current?.open()},[n]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments."})}),a.jsx(jm,{value:s,onChange:(h,p)=>d(p)}),a.jsx(ro,{_label:"Drawer has closer",className:"mb-4",_checked:u,_on:{onInput:(h,p)=>{m(p===!0)}}}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(om,{ref:i,_label:"I am a drawer",_align:s,_hasCloser:u,_on:{onClose:()=>console.log("Drawer onClose triggered!")},children:a.jsxs("div",{className:s==="left"||s==="right"?"drawer-content-vertical":"",children:[a.jsx("p",{className:"mt-0",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."}),a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>i.current?.close()}})]})}),a.jsx(W,{_label:"Open drawer",_on:{onClick:()=>i.current?.open()}})]})]})},dA=()=>{const[e]=Kr(),n=e.get("align"),[r,i]=j.useState(!1),[s,d]=j.useState(n||"left");return a.jsxs("div",{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the KolDrawer controlled by the property ",a.jsx("code",{children:"_open"})," instead of methods."]})}),a.jsx(jm,{value:s,onChange:(u,m)=>d(m)}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(om,{_open:r,_align:s,_label:"I'm a controlled drawer",_on:{onClose:()=>i(!1)},children:a.jsxs("div",{children:[a.jsx("p",{children:"Lorem ipsum dolor sit amet,"}),a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>i(!1)}})]})}),a.jsx(W,{_label:"Open drawer",_on:{onClick:()=>i(!0)}})]})]})},uA=()=>{const e=j.useRef(null),[n,r]=j.useState("bottom"),[i,s]=j.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions and shows the correct way to handle overflow. Use the "Enable Overflow Handling" toggle to see the difference between problematic behavior (content exceeding drawer bounds) and the proper solution (overflow handling within the slot content).'})}),a.jsxs("div",{className:"flex flex-col gap-4 mb-4",children:[a.jsx(jm,{value:n,onChange:(d,u)=>r(u)}),a.jsx(ro,{_label:"Enable Overflow Handling (Recommended)",_checked:i,_on:{onChange:(d,u)=>s(!!u)}})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(om,{ref:e,_label:"Scrollable Drawer",_align:n,children:i?a.jsx("div",{style:{width:n==="left"||n==="right"?"90vw":void 0,height:n==="top"||n==="bottom"?"90vh":void 0,overflow:"auto",padding:"0",border:"1px solid #999"},children:a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":void 0,height:n==="top"||n==="bottom"?"150vh":void 0,background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"✅ Content with proper overflow handling - scrollable within drawer bounds"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area (Scrollable)"}),a.jsxs("p",{children:["Container: ",n==="left"||n==="right"?"400px wide":"90vw wide"," ×"," ",n==="top"||n==="bottom"?"90vh high":"400px high"]}),a.jsxs("p",{children:["Content: ",n==="left"||n==="right"?"150vw wide":"400px wide"," ×"," ",n==="top"||n==="bottom"?"150vh high":"400px high"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Enabled - Container has fixed size with overflow: auto"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"With overflow handling enabled, this content scrolls properly within the drawer container. You can scroll horizontally/vertically to see all content."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}):a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":"400px",height:n==="top"||n==="bottom"?"150vh":"400px",background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"❌ Content exceeding drawer bounds - problematic behavior"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area"}),a.jsxs("p",{children:["Width: ",n==="left"||n==="right"?"150vw (exceeds drawer width)":"400px"]}),a.jsxs("p",{children:["Height: ",n==="top"||n==="bottom"?"150vh (exceeds drawer height)":"400px"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Disabled - Content extends beyond drawer boundaries"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"Without overflow handling, this content may extend beyond the drawer boundaries, causing layout issues."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(W,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}),a.jsx(W,{_label:"Open scrollable drawer",_on:{onClick:()=>e.current?.open()}})]})]})},fA={drawer:{basic:sA,controlled:dA,scrolled:uA}},bA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolForm renders a form around the input components provided in a slot. This sample shows a basic form with three input fields."})}),a.jsx(An,{className:"w-full",children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Oe,{id:"input1",_label:"Input 1"}),a.jsx(Oe,{id:"input2",_label:"Input 2"}),a.jsx(Oe,{id:"input3",_label:"Input 3"})]})})]}),mA=()=>{const e=j.useRef(null),n=()=>{e.current?.focusErrorList()};return j.useEffect(()=>{e.current?.focusErrorList()},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a form with error messages."})}),a.jsx(An,{className:"w-full",ref:e,_on:{onSubmit:n},_errorList:[{message:"Error in Input 2",selector:"#input2"},{message:"Error in Input 3",selector:()=>alert("Error in Input 3")}],children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Oe,{id:"input1",_label:"Input 1"}),a.jsx(Oe,{id:"input2",_label:"Input 2",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx(Oe,{id:"input3",_label:"Input 3",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx("div",{children:a.jsx(W,{_label:"ScrollTo",_type:"submit"})})]})})]})},hA={form:{basic:bA,"error-list":mA}},Py=`public-ui.v${Ib.version}`;class pA{store=new Map;setItem(n,r){this.store.set(n,r)}getItem(n){return this.store.get(n)||null}}const qi={darkMode:!1,theme:"default"};let Ub;function Gy(e){Ub=e;const n=Ub.getItem(Py);try{const r=JSON.parse(n);typeof r=="object"&&r!==null&&(qi.darkMode=r.darkMode===!0,ym(r.theme)&&(qi.theme=r.theme))}catch{}}Gy(new pA);const kA=()=>{Ub.setItem(Py,JSON.stringify(qi))},vA=e=>{if(ym(e))qi.theme=e,kA();else throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},Ks=()=>`${qi.theme}`,Hb=e=>{if(ym(e))return wm.find(n=>n.value===e)?.label;throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},gA=[{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"}];function _A({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{...n,_on:i})}const xA={horizontal:[[{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{key:"monday",label:"Monday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(_A,{_label:n.label,style:{fontSize:"75%"}}))},compareFn:(e,n)=>e.monday<n.monday?-1:e.monday>n.monday?1:0,sortDirection:"ASC",textAlign:"right"},{key:"tuesday",label:"Tuesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#060",_label:n.label}))},compareFn:(e,n)=>e.tuesday<n.tuesday?-1:e.tuesday>n.tuesday?1:0,sortDirection:"DESC"},{key:"wednesday",label:"Wednesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#006",_label:n.label}))}},{key:"thursday",label:"Thursday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#600",_label:n.label}))}},{key:"friday",label:"Friday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#303",_label:n.label}))}},{key:"saturday",label:"Saturday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#330",_label:n.label}))}},{key:"sunday",label:"Sunday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),vn(r).render(a.jsx(wo,{_color:"#033",_label:n.label}))}}]],vertical:[[{label:"Early"},{label:"Noon"},{label:"Evening"},{label:"Night"}]]},yA=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center",children:[a.jsx(Ss,{className:"block w-75px",_labeled:!1}),a.jsx(be,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["Kolibri-Handout ",a.jsxs("small",{children:["for ",Hb(Ks())]})]})}),a.jsxs(rr,{_label:"Abstract",_open:!0,children:["The handout shows a selection of KoliBri components in the style of ",a.jsx("strong",{children:Hb(Ks())}),". Since KoliBri offers self-contained, accessible web components that can be customized to your own corporate design using theming, you don't have to develop these components yourself. For more information read our documentation and follow us (",a.jsx(_e,{_label:"https://github.com/public-ui/kolibri",_href:"https://github.com/public-ui/kolibri",_target:"_blank"}),")."]})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12",children:[a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Heading",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(be,{_label:"Heading Level 1",_level:1}),a.jsx(be,{_label:"Heading Level 2",_level:2}),a.jsx(be,{_label:"Heading Level 3",_level:3}),a.jsx(be,{_label:"Heading Level 4",_level:4}),a.jsx(be,{_label:"Heading Level 5",_level:5}),a.jsx(be,{_label:"Heading Level 6",_level:6}),a.jsx(be,{_label:"Heading Level 6",_secondaryHeadline:"Lessons",_level:6})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Abbreviation and Progress",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsxs("p",{children:["I am ",a.jsx(Di,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Di,{children:"e.g."})," an abbreviation without label."]}),a.jsx(nr,{_variant:"bar",_max:100,_value:33,_label:"Progress"}),a.jsx(nr,{_variant:"cycle",_max:100,_value:66,_label:"Progress"})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3",_label:"Button, LinkButton and Tab",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2",children:a.jsxs(cr,{_label:"",_selected:0,_tabs:[{_label:"Button"},{_label:"LinkButton"},{_label:"Disabled Tab",_disabled:!0}],children:[a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(W,{_disabled:!0,_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(W,{_disabled:!0,_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(W,{_disabled:!0,_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(W,{_disabled:!0,_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(W,{_label:"ghost",_variant:"ghost"}),a.jsx(W,{_disabled:!0,_label:"ghost",_variant:"ghost"}),a.jsx(W,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost",_on:n})]})]}),a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost"})]})]})]})})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Accordion, Link and ButtonLink",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(rn,{_label:"Links",_level:3,_open:!0,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link text"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsx(_e,{_href:"/",_label:"Visited link"}),a.jsxs("p",{children:["I am a ",a.jsx(_e,{_href:"#/back-page",_label:"externer Link",_target:"w3c"})," in the running text."]})]})}),a.jsx(rn,{_label:"ButtonLinks",_level:3,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(Pe,{_label:"Link text"}),a.jsx(Pe,{_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsxs("p",{children:["I am a ",a.jsx(Pe,{_label:"Link"})," in the running text."]}),a.jsx(Pe,{_icons:{left:"codicon codicon-arrow-left",right:"codicon codicon-arrow-right",top:"codicon codicon-arrow-up",bottom:"codicon codicon-arrow-down"},_label:"Icons"})]})})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3",_label:"Alert",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(gn,{_label:"Default message",_type:"default",children:"This is the text of the alert."}),a.jsx(gn,{_type:"success",children:"Success message text"}),a.jsx(gn,{_type:"error",_hasCloser:!0,children:"This is a error message text."}),a.jsx(gn,{_label:"Info card",_type:"info",_variant:"card",children:"This is the text of the alert."}),a.jsx(gn,{_label:"Warning card",_type:"warning",_hasCloser:!0,_variant:"card",children:"This is the text of the alert."})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Nav and Breadcrumb",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx("div",{children:a.jsx(wl,{_label:"Main navigation",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_active:!0,_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 External navigation point",_icons:"codicon codicon-home",_href:"#/back-page",_target:"_blank"},{_label:"3.3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_active:!0,_label:"3.3.1 Navigation point (active)",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}]}]},{_label:"3 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}],_hasCompactButton:!0})}),a.jsx("div",{children:a.jsx(js,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})})]})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5",_label:"Input",_level:2,children:a.jsx(An,{slot:"",children:a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2",children:[a.jsx(Go,{_label:"Color"}),a.jsx(Ro,{_label:"Upload file"}),a.jsx(So,{_label:"Number input"}),a.jsx(He,{_type:"date",_label:"Date"}),a.jsx(Yo,{_icons:"{'left': 'codicon codicon-home'}",_msg:{_type:"error",_description:"Test of an error message"},_touched:!0,_label:"E-mail address"}),a.jsx(Oe,{_hint:"I am a hint.",_label:"First name"}),a.jsx(Eo,{_label:"password"}),a.jsx(Jo,{_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_label:"Stimmung"}),a.jsx(en,{_min:0,_max:50,_value:25,_label:"Slider"}),a.jsx(Lo,{className:"herr-frau",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"1",_label:"Salutation"}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Lo,{_orientation:"horizontal",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"0",_label:"Salutation"}),a.jsx(ro,{_label:"",children:a.jsxs("span",{slot:"expert",children:["I accept the ",a.jsx(Di,{_label:"General Terms and Conditions",children:"AGB"}),"."]})})]}),a.jsx(Qe,{_rows:4,_label:"Textarea"})]})})}),a.jsx(Le,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-5",_label:"Table with Pagination",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2 handout-table-card-content",children:a.jsx(mo,{_label:"Table",_minWidth:"auto",_headers:xA,_data:gA,_pagination:!0})})})]}),a.jsx(Qs,{_label:"5.0.2-test.2"})]})},wA={handout:{basic:yA}},zA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolHeading with its different levels and content provided using the export slot instead of the ",a.jsx("code",{children:"_label"}),"-property."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_label:"Label"})]})}),a.jsx(be,{_label:"",_level:2,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#86ffc6",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:3,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#06539e",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:4,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ae0000",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:5,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#8b008b",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:6,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ffc0cb",_label:"Label"})]})})]})]}),jA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolHeading renders a heading with the given level."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"I'm a H1-heading",_level:1}),a.jsx(be,{_label:"I'm a H2-heading",_level:2}),a.jsx(be,{_label:"I'm a H3-heading",_level:3}),a.jsx(be,{_label:"I'm a H4-heading",_level:4}),a.jsx(be,{_label:"I'm a H5-heading",_level:5}),a.jsx(be,{_label:"I'm a H6-heading",_level:6})]})]}),SA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolHeading with its different levels combined with some text content each."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"Ich bin eine H1-Überschrift",_level:1}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H2-Überschrift",_level:2}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H3-Überschrift",_level:3}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H4-Überschrift",_level:4}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H5-Überschrift",_level:5}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(be,{_label:"Ich bin eine H6-Überschrift",_level:6}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."})]})]}),TA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolHeading with the prop ",a.jsx("code",{children:"_secondaryHeadline"})," in use."]})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(be,{_label:"This is a H1 headline",_secondaryHeadline:"This is a secondary headline",_level:1})})]}),AA={heading:{basic:jA,badge:zA,paragraph:SA,secondary:TA}},CA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolIcon renders codicon icons. This sample shows regular icons and one with a custom style-property, changing the icon color."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-home"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-compass-active"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-debug"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-squirrel"}),a.jsx(pt,{className:"block w-[1em] h-[1em]",style:{color:"red"},_label:"",_icons:"codicon codicon-home"})]})]}),EA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolIcon renders Font Awesome icons, if you have added this font to your theme. We are showing Font Awesome Free 6.1.1."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-house"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-circle-user"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-truck"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-city"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-heart"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-thumbs-up"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-brands fa-github"}),a.jsx(Oe,{_label:"With Font Awesome icons",_icons:{left:{icon:"fa-solid fa-phone"},right:{icon:"fa-solid fa-arrow-right"}}})]})]}),LA={icon:{basic:CA,"font-awesome":EA}},OA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolImage renders an image. The sample shows an image with alternative text."})}),a.jsx(Zz,{className:"w-image",_src:"abgrenzung.jpg",_alt:"Darstellung des KoliBri-Theming"})]}),$A={image:{basic:OA}},gs=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ro,{...n,_label:"Not selected",_value:!1,_required:!0}),a.jsx(ro,{...n,_label:"Indeterminate",_value:null,_indeterminate:!0}),a.jsx(ro,{...n,ref:r,_accessKey:"A",_checked:!0,_label:"Selected",_tooltipAlign:"right",_value:!0}),a.jsx(ro,{...n,_checked:!0,_icons:{unchecked:"codicon codicon-close"},_label:"With a very long label and upheavals ".repeat(5),_value:!0}),a.jsx(ro,{...n,_disabled:!0,_label:"Disabled",_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_checked:!0,_disabled:!0,_label:"Checked and disabled"}),a.jsx(ro,{...n,_indeterminate:!0,_disabled:!0,_label:"Indeterminate and disabled"}),a.jsx(ro,{...n,_msg:{_type:"error",_description:Ue},_label:"With error",_touched:!0,_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_label:"With access key",_accessKey:"c",_value:null}),a.jsx(ro,{...n,_label:"With short key",_shortKey:"s",_value:null})]})}),Sm=j.forwardRef(function(n,r){return a.jsxs(a.Fragment,{children:[a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" with label'}),a.jsx(gs,{...n,_labelAlign:"left"})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" without Label (hideLabel)'}),a.jsx(gs,{ref:r,...n,_hideLabel:!0,_labelAlign:"left"})]})]}),a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" with label'}),a.jsx(gs,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" without Label (hideLabel)'}),a.jsx(gs,{ref:r,...n,_hideLabel:!0})]})]})]})}),NA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:Sm,showButtons:!1})]}),BA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "button".'})}),a.jsx(yn,{RefComponent:Sm,_variant:"button",showButtons:!1})]}),RA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "switch".'})}),a.jsx(yn,{RefComponent:Sm,_variant:"switch",showButtons:!1})]}),DA={"input-checkbox":{basic:NA,switch:RA,button:BA}},d1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_icons:{left:"codicon codicon-symbol-color"},_label:"Color (Black background test)",_value:"#f08080"})}),a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_label:"Color with error",_suggestions:"['#000000','#f08080', '#0000ff','#00ff00']",_touched:!0}),a.jsx(Go,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Go,{...n,ref:r,_accessKey:"C",_hint:"Hint text",_label:"Color with hint",_value:"#f08080"}),a.jsx(Go,{...n,_disabled:!0,_label:"Color (Disabled)",_value:"#f08080"}),a.jsx(Go,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Go,{...n,_label:"With short key",_shortKey:"s"})]})}),MA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color"}),a.jsx(d1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color (hideLabel)"}),a.jsx(d1,{ref:r,...n,_hideLabel:!0})]})]})}),IA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:MA,showButtons:!1})]}),UA={"input-color":{basic:IA}},u1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(He,{...n,_type:"date",_label:"Date input (Black background test)",_required:!0})}),a.jsx(He,{...n,_type:"datetime-local",_label:"Local-Datetime (Standard)",_required:!0}),a.jsx(He,{...n,_step:1,_type:"datetime-local",_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Local datetime (with seconds)",_required:!0,_touched:!0}),a.jsx(He,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(He,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(He,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(He,{...n,_type:"month",_label:"Month",_required:!0}),a.jsx(He,{...n,ref:r,_accessKey:"W",_type:"week",_label:"Week",_required:!0}),a.jsx(He,{...n,_type:"time",_label:"Time (standard)",_required:!0}),a.jsx(He,{...n,_step:1,_type:"time",_label:"Time (with seconds)",_required:!0}),a.jsx(He,{...n,_readOnly:!0,_label:"Date input (read-only)",_required:!0}),a.jsx(He,{...n,_disabled:!0,_label:"Date input (Disabled)",_required:!0}),a.jsx(He,{...n,_label:"With access key",_accessKey:"s"}),a.jsx(He,{...n,_label:"With short key",_shortKey:"s"})]})}),HA=e=>{const n="2024-09-26",r="2024-09-27",i="12:00",s="15:00",d="2024-09-26T12:00",u="2024-09-27T15:00",m="2024-W10",h="2024-W50",p="2024-02",g="2024-10",v=new Date("January 10, 2024, 12:00"),_=new Date("October 20, 2024, 15:00");return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(He,{...e,_type:"date",_label:"Date with Iso",_min:n,_max:r}),a.jsx(He,{...e,_type:"date",_label:"Date with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"time",_label:"Time with Iso",_min:i,_max:s}),a.jsx(He,{...e,_type:"time",_label:"Time with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"datetime-local",_label:"DayTime with Iso",_min:d,_max:u}),a.jsx(He,{...e,_type:"datetime-local",_label:"DayTime with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"week",_label:"Week with Iso",_min:m,_max:h}),a.jsx(He,{...e,_type:"week",_label:"Week with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"month",_label:"Month with Iso",_min:p,_max:g}),a.jsx(He,{...e,_type:"month",_label:"Month with Date",_min:v,_max:_})]})},FA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date"}),a.jsx(u1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (hideLabel)"}),a.jsx(u1,{ref:r,...n,_hideLabel:!0})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (with min/max)"}),a.jsx(HA,{...n})]})]})}),KA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputDate renders all types of fields for date and time input. The sample shows KolInputDate in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:FA,showButtons:!1})]}),f1=e=>String(e).padStart(2,"0"),VA=(e,n,r)=>{const i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r};function b1(e){const n=/^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(e);if(!n)return null;const r=+n[1],i=+n[2],s=+n[3];return VA(s,i,r)?`${s}-${f1(i)}-${f1(r)}`:null}function qA(e){return e instanceof HTMLElement&&e.tagName==="KOL-INPUT-DATE"}async function ZA(e,n){typeof e.setIsoValue=="function"?await e.setIsoValue(n):typeof e.value<"u"?e.value=n:typeof e._value<"u"?e._value=n:e.setAttribute("_value",n),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}const PA=()=>{const[e,n]=j.useState("31.12.2025"),[r,i]=j.useState(""),s=j.useRef(null),d=j.useMemo(()=>b1(e),[e]);j.useEffect(()=>{const h=new AbortController,p=g=>{const v=g.composedPath?.()??[];s.current=v.find(qA)??null};return document.addEventListener("focusin",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]),j.useEffect(()=>{const h=new AbortController,p=g=>{const v=s.current;if(!v)return;const _=g.clipboardData?.getData("text")??"",z=b1(_);if(!z){i("Clipboard: unrecognized date. Use DD.MM.YYYY.");return}g.preventDefault(),ZA(v,z),i("Pasted.")};return document.addEventListener("paste",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]);const u=j.useCallback(async h=>{i("");try{await navigator.clipboard.writeText(h),i("Copied.")}catch{i("Copy failed. Your browser may block clipboard access.")}},[]),m=j.useCallback((h,p)=>{if(h?.target){const g=typeof p=="string"?p:String(p??"");n(g)}},[]);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["Type a date in German format (",a.jsx("code",{children:"DD.MM.YYYY"}),"), click ",a.jsx("em",{children:"Copy to Clipboard"}),", then paste it into the date field below with ",a.jsx("kbd",{children:"Ctrl"}),"+",a.jsx("kbd",{children:"V"}),". The ISO conversion happens internally."]})}),a.jsxs("div",{className:"grid gap-8",lang:"en",children:[a.jsxs("section",{"aria-labelledby":"de-title",children:[a.jsx("h3",{id:"de-title",className:"text-lg font-semibold mb-2",children:"German date (DD.MM.YYYY)"}),a.jsxs("div",{className:"grid gap-3",children:[a.jsx(Oe,{className:"w-full",_label:"German date (DD.MM.YYYY)",_placeholder:"e.g., 31.12.2025",_value:e,_type:"text",_on:{onInput:m,onChange:m}}),a.jsx("small",{className:"opacity-80",children:"Click the button to copy the exact German date, then paste it into the date field below."}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(W,{_label:"Copy to Clipboard",_on:{onClick:()=>u(e)}}),!d&&a.jsx("span",{className:"text-red-600",children:"Invalid date"})]}),a.jsx(He,{_type:"date",_label:"Date (paste here with Ctrl+V)",className:"w-full"})]})]}),a.jsx("p",{"aria-live":"polite",role:"status",className:"mt-2 opacity-80",children:r})]})]})},GA=()=>{const e=j.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the KolInputDate ",a.jsx("code",{children:"reset"}),"-Method, which can be used to clear the field, even when it holds incomplete or invalid values."]})}),a.jsx(He,{className:"w-full",ref:e,_label:"Resettable Input Date",_value:"2024-02-10"}),a.jsx(W,{className:"mt",_label:"Reset",_on:{onClick:()=>e.current?.reset()}})]})},YA=["default","error","info","success","warning"];function nb(e){return{onChange:()=>e(n=>!n)}}const JA=()=>{const[e,n]=j.useState(!0),[r,i]=j.useState(!0),[s,d]=j.useState(!1),u=nb(n),m=nb(i),h=nb(d);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example shows how messages work in input fields."})}),a.jsxs("div",{className:"flex gap-4 flex-col",children:[a.jsxs("div",{className:"flex gap-4 items-center",children:[a.jsx(ro,{_label:"Toggle Msg",_on:u,_checked:e,_variant:"button"}),a.jsx(ro,{_label:"Toggle Touched",_on:m,_checked:r,_variant:"button"}),a.jsx(ro,{_label:"Toggle Hide Msg",_on:h,_checked:s,_variant:"button"})]}),a.jsxs("pre",{children:["Message exists: ",e?"Yes":"No"," (showMsg: ",e?"Yes":"No",")",a.jsx("br",{}),"Non-Error-Message visible: ",e&&!s?"Yes":"No"," (showMsg: ",e?"Yes":"No",", hideMsg: ",s?"Yes":"No",")",a.jsx("br",{}),"Error-Message visible: ",e&&r&&!s?"Yes":"No"," (showMsg: ",e?"Yes":"No",", isTouched: ",r?"Yes":"No",", hideMsg: ",s?"Yes":"No",")"]}),YA.map(p=>a.jsx(He,{_hideMsg:s,_label:`Date (_msg, ${p})`,_msg:e?{_description:`${p} message`,_type:p}:void 0,_touched:r},p))]})]})},XA={"input-date":{basic:KA,"copy-paste":PA,reset:GA,"show-hide-msg":JA}},m1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Yo,{...n,_required:!0,_value:"test@mail.de",_msg:{_type:"error",_description:Ue},_label:"E-Mail (Black background test)"})}),a.jsx(Yo,{...n,ref:r,_accessKey:"M",_placeholder:"elke@mustermann.de",_suggestions:"['test1@mail.de', 'test2@mail.de', 'test3@mail.de']",_label:"E-Mail (list)",_hint:xn,_msg:{_type:"error",_description:Ue},_touched:!0,_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Yo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"E-Mail"}),a.jsx(Yo,{...n,_disabled:!0,_value:"test@mail.de",_label:"E-Mail (Disabled)"}),a.jsx(Yo,{...n,_readOnly:!0,_value:"test@mail.de",_label:"E-Mail (Readonly)"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With access key",_accessKey:"c"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With short key",_shortKey:"s"})]})}),WA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email"}),a.jsx(m1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email (hideLabel)"}),a.jsx(m1,{ref:r,...n,_hideLabel:!0})]})]})}),QA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:WA,showButtons:!1})]}),eC={"input-email":{basic:QA}},h1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Ro,{...n,_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0})}),a.jsx(Ro,{...n,_required:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0}),a.jsx(Ro,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Upload file"}),a.jsx(Ro,{...n,ref:r,_accessKey:"h",_multiple:!0,_msg:{_type:"error",_description:Ue},_label:"Upload file (Multiple)"}),a.jsx(Ro,{...n,_disabled:!0,_label:"Upload file (Disabled)"}),a.jsx(Ro,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Ro,{...n,_label:"With short key",_shortKey:"s"})]})}),oC=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File"}),a.jsx(h1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File (hideLabel)"}),a.jsx(h1,{ref:r,...n,_hideLabel:!0})]})]})}),nC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:oC,showButtons:!1})]}),tC={"input-file":{basic:nC}},p1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"black-background",children:[a.jsx(So,{...n,_required:!0,_touched:!0,_value:123,_label:"Number input (Black background test)"})," "]}),a.jsx(So,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_placeholder:"Mit Icons",_label:"Number input",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(So,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"warning",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"info",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"success",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,ref:r,_accessKey:"Z",_max:10,_min:-10,_step:2,_label:"Number input (-10 to 10 in steps of 2)"}),a.jsx(So,{...n,_readOnly:!0,_label:"Number input (Readonly)"}),a.jsx(So,{...n,_disabled:!0,_label:"Number input (Disabled)"}),a.jsx(So,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(So,{...n,_label:"With short key",_shortKey:"s"})]})}),rC=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number"}),a.jsx(p1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number (hideLabel)"}),a.jsx(p1,{ref:r,...n,_hideLabel:!0})]})]})}),aC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputNumber encompasses basic functionalities, utilizing the min, max, and step attributes to restrict the range of input values. Despite these constraints, it allows free input that can ignore the defined minimum and maximum values, as well as step sizes. The component intentionally does not emphasize validation rules, supporting examples without form validation, and refrains from additional validation through native HTML element validation."})}),a.jsx(yn,{RefComponent:rC,showButtons:!1})]});var Xi=e=>e.type==="checkbox",va=e=>e instanceof Date,In=e=>e==null;const Yy=e=>typeof e=="object";var Xo=e=>!In(e)&&!Array.isArray(e)&&Yy(e)&&!va(e),Jy=e=>Xo(e)&&e.target?Xi(e.target)?e.target.checked:e.target.value:e,lC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xy=(e,n)=>e.has(lC(n)),iC=e=>{const n=e.constructor&&e.constructor.prototype;return Xo(n)&&n.hasOwnProperty("isPrototypeOf")},Tm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(Tm&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Xo(e)&&iC(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Zo(e[s]));return i}var ad=e=>/^\w*$/.test(e),To=e=>e===void 0,Am=e=>Array.isArray(e)?e.filter(Boolean):[],Cm=e=>Am(e.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(e,n,r)=>{if(!n||!Xo(e))return r;const i=(ad(n)?[n]:Cm(n)).reduce((s,d)=>In(s)?s:s[d],e);return To(i)||i===e?To(e[n])?r:e[n]:i},Xn=e=>typeof e=="boolean",Tn=e=>typeof e=="function",fo=(e,n,r)=>{let i=-1;const s=ad(n)?[n]:Cm(n),d=s.length,u=d-1;for(;++i<d;){const m=s[i];let h=r;if(i!==u){const p=e[m];h=Xo(p)||Array.isArray(p)?p:isNaN(+s[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Vs={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},wt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},er={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Wy=ae.createContext(null);Wy.displayName="HookFormControlContext";const Em=()=>ae.useContext(Wy);var Qy=(e,n,r,i=!0)=>{const s={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(s,d,{get:()=>{const u=d;return n._proxyFormState[u]!==wt.all&&(n._proxyFormState[u]=!i||wt.all),r&&(r[u]=!0),e[u]}});return s};const Lm=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function cC(e){const n=Em(),{control:r=n,disabled:i,name:s,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Lm(()=>r._subscribe({name:s,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[s,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>Qy(u,r,h.current,!1),[u,r])}var et=e=>typeof e=="string",Fb=(e,n,r,i,s)=>et(e)?(i&&n.watch.add(e),de(r,e,s)):Array.isArray(e)?e.map(d=>(i&&n.watch.add(d),de(r,d))):(i&&(n.watchAll=!0),r),Kb=e=>In(e)||!Yy(e);function zt(e,n,r=new WeakSet){if(Kb(e)||Kb(n))return Object.is(e,n);if(va(e)&&va(n))return Object.is(e.getTime(),n.getTime());const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!s.includes(d))return!1;if(d!=="ref"){const m=n[d];if(va(u)&&va(m)||Xo(u)&&Xo(m)||Array.isArray(u)&&Array.isArray(m)?!zt(u,m,r):!Object.is(u,m))return!1}}return!0}function sC(e){const n=Em(),{control:r=n,name:i,defaultValue:s,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(s),p=ae.useRef(m),g=ae.useRef(void 0),v=ae.useRef(r),_=ae.useRef(i);p.current=m;const[z,N]=ae.useState(()=>{const $=r._getWatch(i,h.current);return p.current?p.current($):$}),S=ae.useCallback($=>{const D=Fb(i,r._names,$||r._formValues,!1,h.current);return p.current?p.current(D):D},[r._formValues,r._names,i]),O=ae.useCallback($=>{if(!d){const D=Fb(i,r._names,$||r._formValues,!1,h.current);if(p.current){const H=p.current(D);zt(H,g.current)||(N(H),g.current=H)}else N(D)}},[r._formValues,r._names,d,i]);Lm(()=>((v.current!==r||!zt(_.current,i))&&(v.current=r,_.current=i,O()),r._subscribe({name:i,formState:{values:!0},exact:u,callback:$=>{O($.values)}})),[r,u,i,O]),ae.useEffect(()=>r._removeUnmounted());const E=v.current!==r,x=_.current,w=ae.useMemo(()=>{if(d)return null;const $=!E&&!zt(x,i);return E||$?S():null},[d,E,i,x,S]);return w!==null?w:z}function dC(e){const n=Em(),{name:r,disabled:i,control:s=n,shouldUnregister:d,defaultValue:u,exact:m=!0}=e,h=Xy(s._names.array,r),p=ae.useMemo(()=>de(s._formValues,r,de(s._defaultValues,r,u)),[s,r,u]),g=sC({control:s,name:r,defaultValue:p,exact:m}),v=cC({control:s,name:r,exact:m}),_=ae.useRef(e),z=ae.useRef(void 0),N=ae.useRef(s.register(r,{...e.rules,value:g,...Xn(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const S=ae.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!de(v.errors,r)},isDirty:{enumerable:!0,get:()=>!!de(v.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!de(v.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!de(v.validatingFields,r)},error:{enumerable:!0,get:()=>de(v.errors,r)}}),[v,r]),O=ae.useCallback($=>N.current.onChange({target:{value:Jy($),name:r},type:Vs.CHANGE}),[r]),E=ae.useCallback(()=>N.current.onBlur({target:{value:de(s._formValues,r),name:r},type:Vs.BLUR}),[r,s._formValues]),x=ae.useCallback($=>{const D=de(s._fields,r);D&&D._f&&$&&(D._f.ref={focus:()=>Tn($.focus)&&$.focus(),select:()=>Tn($.select)&&$.select(),setCustomValidity:H=>Tn($.setCustomValidity)&&$.setCustomValidity(H),reportValidity:()=>Tn($.reportValidity)&&$.reportValidity()})},[s._fields,r]),w=ae.useMemo(()=>({name:r,value:g,...Xn(i)||v.disabled?{disabled:v.disabled||i}:{},onChange:O,onBlur:E,ref:x}),[r,i,v.disabled,O,E,x,g]);return ae.useEffect(()=>{const $=s._options.shouldUnregister||d,D=z.current;D&&D!==r&&!h&&s.unregister(D),s.register(r,{..._.current.rules,...Xn(_.current.disabled)?{disabled:_.current.disabled}:{}});const H=(Z,ee)=>{const se=de(s._fields,Z);se&&se._f&&(se._f.mount=ee)};if(H(r,!0),$){const Z=Zo(de(s._options.defaultValues,r,_.current.defaultValue));fo(s._defaultValues,r,Z),To(de(s._formValues,r))&&fo(s._formValues,r,Z)}return!h&&s.register(r),z.current=r,()=>{(h?$&&!s._state.action:$)?s.unregister(r):H(r,!1)}},[r,s,h,d]),ae.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),ae.useMemo(()=>({field:w,formState:v,fieldState:S}),[w,v,S])}const e0=e=>e.render(dC(e)),uC=ae.createContext(null);uC.displayName="HookFormContext";var o0=(e,n,r,i,s)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:s||!0}}:{},Mi=e=>Array.isArray(e)?e:[e],k1=()=>{let e=[];return{get observers(){return e},next:s=>{for(const d of e)d.next&&d.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(d=>d!==s)}}),unsubscribe:()=>{e=[]}}};function n0(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i)){const s=e[i],d=n[i];if(s&&Xo(s)&&d){const u=n0(s,d);Xo(u)&&(r[i]=u)}else e[i]&&(r[i]=d)}return r}var Sn=e=>Xo(e)&&!Object.keys(e).length,Om=e=>e.type==="file",qs=e=>{if(!Tm)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},t0=e=>e.type==="select-multiple",$m=e=>e.type==="radio",fC=e=>$m(e)||Xi(e),tb=e=>qs(e)&&e.isConnected;function bC(e,n){const r=n.slice(0,-1).length;let i=0;for(;i<r;)e=To(e)?i++:e[n[i++]];return e}function mC(e){for(const n in e)if(e.hasOwnProperty(n)&&!To(e[n]))return!1;return!0}function Po(e,n){const r=Array.isArray(n)?n:ad(n)?[n]:Cm(n),i=r.length===1?e:bC(e,r),s=r.length-1,d=r[s];return i&&delete i[d],s!==0&&(Xo(i)&&Sn(i)||Array.isArray(i)&&mC(i))&&Po(e,r.slice(0,-1)),e}var hC=e=>{for(const n in e)if(Tn(e[n]))return!0;return!1};function r0(e){return Array.isArray(e)||Xo(e)&&!hC(e)}function Vb(e,n={}){for(const r in e){const i=e[r];r0(i)?(n[r]=Array.isArray(i)?[]:{},Vb(i,n[r])):To(i)||(n[r]=!0)}return n}function gl(e,n,r){r||(r=Vb(n));for(const i in e){const s=e[i];if(r0(s))To(n)||Kb(r[i])?r[i]=Vb(s,Array.isArray(s)?[]:{}):gl(s,In(n)?{}:n[i],r[i]);else{const d=n[i];r[i]=!zt(s,d)}}return r}const v1={value:!1,isValid:!1},g1={value:!0,isValid:!0};var a0=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!To(e[0].attributes.value)?To(e[0].value)||e[0].value===""?g1:{value:e[0].value,isValid:!0}:g1:v1}return v1},l0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:i})=>To(e)?e:n?e===""?NaN:e&&+e:r&&et(e)?new Date(e):i?i(e):e;const _1={isValid:!1,value:null};var i0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,_1):_1;function x1(e){const n=e.ref;return Om(n)?n.files:$m(n)?i0(e.refs).value:t0(n)?[...n.selectedOptions].map(({value:r})=>r):Xi(n)?a0(e.refs).value:l0(To(n.value)?e.ref.value:n.value,e)}var pC=(e,n,r,i)=>{const s={};for(const d of e){const u=de(n,d);u&&fo(s,d,u._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:i}},Zs=e=>e instanceof RegExp,Li=e=>To(e)?e:Zs(e)?e.source:Xo(e)?Zs(e.value)?e.value.source:e.value:e,y1=e=>({isOnSubmit:!e||e===wt.onSubmit,isOnBlur:e===wt.onBlur,isOnChange:e===wt.onChange,isOnAll:e===wt.all,isOnTouch:e===wt.onTouched});const w1="AsyncFunction";var kC=e=>!!e&&!!e.validate&&!!(Tn(e.validate)&&e.validate.constructor.name===w1||Xo(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===w1)),vC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),z1=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Ii=(e,n,r,i)=>{for(const s of r||Object.keys(e)){const d=de(e,s);if(d){const{_f:u,...m}=d;if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],s)&&!i)return!0;if(u.ref&&n(u.ref,u.name)&&!i)return!0;if(Ii(m,n))break}else if(Xo(m)&&Ii(m,n))break}}};function j1(e,n,r){const i=de(e,r);if(i||ad(r))return{error:i,name:r};const s=r.split(".");for(;s.length;){const d=s.join("."),u=de(n,d),m=de(e,d);if(u&&!Array.isArray(u)&&r!==d)return{name:r};if(m&&m.type)return{name:d,error:m};if(m&&m.root&&m.root.type)return{name:`${d}.root`,error:m.root};s.pop()}return{name:r}}var gC=(e,n,r,i)=>{r(e);const{name:s,...d}=e;return Sn(d)||Object.keys(d).length>=Object.keys(n).length||Object.keys(d).find(u=>n[u]===(!i||wt.all))},_C=(e,n,r)=>!e||!n||e===n||Mi(e).some(i=>i&&(r?i===n:i.startsWith(n)||n.startsWith(i))),xC=(e,n,r,i,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(n||e):(r?i.isOnBlur:s.isOnBlur)?!e:(r?i.isOnChange:s.isOnChange)?e:!0,yC=(e,n)=>!Am(de(e,n)).length&&Po(e,n),wC=(e,n,r)=>{const i=Mi(de(e,r));return fo(i,"root",n[r]),fo(e,r,i),e};function S1(e,n,r="validate"){if(et(e)||Array.isArray(e)&&e.every(et)||Xn(e)&&!e)return{type:r,message:et(e)?e:"",ref:n}}var kl=e=>Xo(e)&&!Zs(e)?e:{value:e,message:""},T1=async(e,n,r,i,s,d)=>{const{ref:u,refs:m,required:h,maxLength:p,minLength:g,min:v,max:_,pattern:z,validate:N,name:S,valueAsNumber:O,mount:E}=e._f,x=de(r,S);if(!E||n.has(S))return{};const w=m?m[0]:u,$=ne=>{s&&w.reportValidity&&(w.setCustomValidity(Xn(ne)?"":ne||""),w.reportValidity())},D={},H=$m(u),Z=Xi(u),ee=H||Z,se=(O||Om(u))&&To(u.value)&&To(x)||qs(u)&&u.value===""||x===""||Array.isArray(x)&&!x.length,$e=o0.bind(null,S,i,D),ce=(ne,we,De,Fe=er.maxLength,M=er.minLength)=>{const G=ne?we:De;D[S]={type:ne?Fe:M,message:G,ref:u,...$e(ne?Fe:M,G)}};if(d?!Array.isArray(x)||!x.length:h&&(!ee&&(se||In(x))||Xn(x)&&!x||Z&&!a0(m).isValid||H&&!i0(m).isValid)){const{value:ne,message:we}=et(h)?{value:!!h,message:h}:kl(h);if(ne&&(D[S]={type:er.required,message:we,ref:w,...$e(er.required,we)},!i))return $(we),D}if(!se&&(!In(v)||!In(_))){let ne,we;const De=kl(_),Fe=kl(v);if(!In(x)&&!isNaN(x)){const M=u.valueAsNumber||x&&+x;In(De.value)||(ne=M>De.value),In(Fe.value)||(we=M<Fe.value)}else{const M=u.valueAsDate||new Date(x),G=Te=>new Date(new Date().toDateString()+" "+Te),ie=u.type=="time",Se=u.type=="week";et(De.value)&&x&&(ne=ie?G(x)>G(De.value):Se?x>De.value:M>new Date(De.value)),et(Fe.value)&&x&&(we=ie?G(x)<G(Fe.value):Se?x<Fe.value:M<new Date(Fe.value))}if((ne||we)&&(ce(!!ne,De.message,Fe.message,er.max,er.min),!i))return $(D[S].message),D}if((p||g)&&!se&&(et(x)||d&&Array.isArray(x))){const ne=kl(p),we=kl(g),De=!In(ne.value)&&x.length>+ne.value,Fe=!In(we.value)&&x.length<+we.value;if((De||Fe)&&(ce(De,ne.message,we.message),!i))return $(D[S].message),D}if(z&&!se&&et(x)){const{value:ne,message:we}=kl(z);if(Zs(ne)&&!x.match(ne)&&(D[S]={type:er.pattern,message:we,ref:u,...$e(er.pattern,we)},!i))return $(we),D}if(N){if(Tn(N)){const ne=await N(x,r),we=S1(ne,w);if(we&&(D[S]={...we,...$e(er.validate,we.message)},!i))return $(we.message),D}else if(Xo(N)){let ne={};for(const we in N){if(!Sn(ne)&&!i)break;const De=S1(await N[we](x,r),w,we);De&&(ne={...De,...$e(we,De.message)},$(De.message),i&&(D[S]=ne))}if(!Sn(ne)&&(D[S]={ref:w,...ne},!i))return D}}return $(!0),D};const zC={mode:wt.onSubmit,reValidateMode:wt.onChange,shouldFocusError:!0};function jC(e={}){let n={...zC,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Tn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},s=Xo(n.defaultValues)||Xo(n.values)?Zo(n.defaultValues||n.values)||{}:{},d=n.shouldUnregister?{}:Zo(s),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...g};let _={...v};const z={array:k1(),state:k1()},N=n.criteriaMode===wt.all,S=T=>B=>{clearTimeout(p),p=setTimeout(T,B)},O=async T=>{if(!u.keepIsValid&&!n.disabled&&(v.isValid||_.isValid||T)){let B;n.resolver?(B=Sn((await ee()).errors),E()):B=await $e(i,!0),B!==r.isValid&&z.state.next({isValid:B})}},E=(T,B)=>{!n.disabled&&(v.isValidating||v.validatingFields||_.isValidating||_.validatingFields)&&((T||Array.from(m.mount)).forEach(F=>{F&&(B?fo(r.validatingFields,F,B):Po(r.validatingFields,F))}),z.state.next({validatingFields:r.validatingFields,isValidating:!Sn(r.validatingFields)}))},x=(T,B=[],F,te,re=!0,oe=!0)=>{if(te&&F&&!n.disabled){if(u.action=!0,oe&&Array.isArray(de(i,T))){const ve=F(de(i,T),te.argA,te.argB);re&&fo(i,T,ve)}if(oe&&Array.isArray(de(r.errors,T))){const ve=F(de(r.errors,T),te.argA,te.argB);re&&fo(r.errors,T,ve),yC(r.errors,T)}if((v.touchedFields||_.touchedFields)&&oe&&Array.isArray(de(r.touchedFields,T))){const ve=F(de(r.touchedFields,T),te.argA,te.argB);re&&fo(r.touchedFields,T,ve)}(v.dirtyFields||_.dirtyFields)&&(r.dirtyFields=gl(s,d)),z.state.next({name:T,isDirty:ne(T,B),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fo(d,T,B)},w=(T,B)=>{fo(r.errors,T,B),z.state.next({errors:r.errors})},$=T=>{r.errors=T,z.state.next({errors:r.errors,isValid:!1})},D=(T,B,F,te)=>{const re=de(i,T);if(re){const oe=de(d,T,To(F)?de(s,T):F);To(oe)||te&&te.defaultChecked||B?fo(d,T,B?oe:x1(re._f)):Fe(T,oe),u.mount&&!u.action&&O()}},H=(T,B,F,te,re)=>{let oe=!1,ve=!1;const eo={name:T};if(!n.disabled){if(!F||te){(v.isDirty||_.isDirty)&&(ve=r.isDirty,r.isDirty=eo.isDirty=ne(),oe=ve!==eo.isDirty);const io=zt(de(s,T),B);ve=!!de(r.dirtyFields,T),io?Po(r.dirtyFields,T):fo(r.dirtyFields,T,!0),eo.dirtyFields=r.dirtyFields,oe=oe||(v.dirtyFields||_.dirtyFields)&&ve!==!io}if(F){const io=de(r.touchedFields,T);io||(fo(r.touchedFields,T,F),eo.touchedFields=r.touchedFields,oe=oe||(v.touchedFields||_.touchedFields)&&io!==F)}oe&&re&&z.state.next(eo)}return oe?eo:{}},Z=(T,B,F,te)=>{const re=de(r.errors,T),oe=(v.isValid||_.isValid)&&Xn(B)&&r.isValid!==B;if(n.delayError&&F?(h=S(()=>w(T,F)),h(n.delayError)):(clearTimeout(p),h=null,F?fo(r.errors,T,F):Po(r.errors,T)),(F?!zt(re,F):re)||!Sn(te)||oe){const ve={...te,...oe&&Xn(B)?{isValid:B}:{},errors:r.errors,name:T};r={...r,...ve},z.state.next(ve)}},ee=async T=>(E(T,!0),await n.resolver(d,n.context,pC(T||m.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),se=async T=>{const{errors:B}=await ee(T);if(E(T),T)for(const F of T){const te=de(B,F);te?fo(r.errors,F,te):Po(r.errors,F)}else r.errors=B;return B},$e=async(T,B,F={valid:!0})=>{for(const te in T){const re=T[te];if(re){const{_f:oe,...ve}=re;if(oe){const eo=m.array.has(oe.name),io=re._f&&kC(re._f);io&&v.validatingFields&&E([oe.name],!0);const on=await T1(re,m.disabled,d,N,n.shouldUseNativeValidation&&!B,eo);if(io&&v.validatingFields&&E([oe.name]),on[oe.name]&&(F.valid=!1,B||e.shouldUseNativeValidation))break;!B&&(de(on,oe.name)?eo?wC(r.errors,on,oe.name):fo(r.errors,oe.name,on[oe.name]):Po(r.errors,oe.name))}!Sn(ve)&&await $e(ve,B,F)}}return F.valid},ce=()=>{for(const T of m.unMount){const B=de(i,T);B&&(B._f.refs?B._f.refs.every(F=>!tb(F)):!tb(B._f.ref))&&Co(T)}m.unMount=new Set},ne=(T,B)=>!n.disabled&&(T&&B&&fo(d,T,B),!zt(C(),s)),we=(T,B,F)=>Fb(T,m,{...u.mount?d:To(B)?s:et(T)?{[T]:B}:B},F,B),De=T=>Am(de(u.mount?d:s,T,n.shouldUnregister?de(s,T,[]):[])),Fe=(T,B,F={})=>{const te=de(i,T);let re=B;if(te){const oe=te._f;oe&&(!oe.disabled&&fo(d,T,l0(B,oe)),re=qs(oe.ref)&&In(B)?"":B,t0(oe.ref)?[...oe.ref.options].forEach(ve=>ve.selected=re.includes(ve.value)):oe.refs?Xi(oe.ref)?oe.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(re)?ve.checked=!!re.find(eo=>eo===ve.value):ve.checked=re===ve.value||!!re)}):oe.refs.forEach(ve=>ve.checked=ve.value===re):Om(oe.ref)?oe.ref.value="":(oe.ref.value=re,oe.ref.type||z.state.next({name:T,values:Zo(d)})))}(F.shouldDirty||F.shouldTouch)&&H(T,re,F.shouldTouch,F.shouldDirty,!0),F.shouldValidate&&Te(T)},M=(T,B,F)=>{for(const te in B){if(!B.hasOwnProperty(te))return;const re=B[te],oe=T+"."+te,ve=de(i,oe);(m.array.has(T)||Xo(re)||ve&&!ve._f)&&!va(re)?M(oe,re,F):Fe(oe,re,F)}},G=(T,B,F={})=>{const te=de(i,T),re=m.array.has(T),oe=Zo(B);fo(d,T,oe),re?(z.array.next({name:T,values:Zo(d)}),(v.isDirty||v.dirtyFields||_.isDirty||_.dirtyFields)&&F.shouldDirty&&z.state.next({name:T,dirtyFields:gl(s,d),isDirty:ne(T,oe)})):te&&!te._f&&!In(oe)?M(T,oe,F):Fe(T,oe,F),z1(T,m)?z.state.next({...r,name:T,values:Zo(d)}):z.state.next({name:u.mount?T:void 0,values:Zo(d)})},ie=async T=>{u.mount=!0;const B=T.target;let F=B.name,te=!0;const re=de(i,F),oe=io=>{te=Number.isNaN(io)||va(io)&&isNaN(io.getTime())||zt(io,de(d,F,io))},ve=y1(n.mode),eo=y1(n.reValidateMode);if(re){let io,on;const Bt=B.type?x1(re._f):Jy(T),Tt=T.type===Vs.BLUR||T.type===Vs.FOCUS_OUT,Yr=!vC(re._f)&&!n.resolver&&!de(r.errors,F)&&!re._f.deps||xC(Tt,de(r.touchedFields,F),r.isSubmitted,eo,ve),an=z1(F,m,Tt);fo(d,F,Bt),Tt?(!B||!B.readOnly)&&(re._f.onBlur&&re._f.onBlur(T),h&&h(0)):re._f.onChange&&re._f.onChange(T);const at=H(F,Bt,Tt),wn=!Sn(at)||an;if(!Tt&&z.state.next({name:F,type:T.type,values:Zo(d)}),Yr)return(v.isValid||_.isValid)&&(n.mode==="onBlur"?Tt&&O():Tt||O()),wn&&z.state.next({name:F,...an?{}:at});if(!Tt&&an&&z.state.next({...r}),n.resolver){const{errors:Wi}=await ee([F]);if(E([F]),oe(Bt),te){const bd=j1(r.errors,i,F),Qi=j1(Wi,i,bd.name||F);io=Qi.error,F=Qi.name,on=Sn(Wi)}}else E([F],!0),io=(await T1(re,m.disabled,d,N,n.shouldUseNativeValidation))[F],E([F]),oe(Bt),te&&(io?on=!1:(v.isValid||_.isValid)&&(on=await $e(i,!0)));te&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&Te(re._f.deps),Z(F,on,io,at))}},Se=(T,B)=>{if(de(r.errors,B)&&T.focus)return T.focus(),1},Te=async(T,B={})=>{let F,te;const re=Mi(T);if(n.resolver){const oe=await se(To(T)?T:re);F=Sn(oe),te=T?!re.some(ve=>de(oe,ve)):F}else T?(te=(await Promise.all(re.map(async oe=>{const ve=de(i,oe);return await $e(ve&&ve._f?{[oe]:ve}:ve)}))).every(Boolean),!(!te&&!r.isValid)&&O()):te=F=await $e(i);return z.state.next({...!et(T)||(v.isValid||_.isValid)&&F!==r.isValid?{}:{name:T},...n.resolver||!T?{isValid:F}:{},errors:r.errors}),B.shouldFocus&&!te&&Ii(i,Se,T?re:m.mount),te},C=(T,B)=>{let F={...u.mount?d:s};return B&&(F=n0(B.dirtyFields?r.dirtyFields:r.touchedFields,F)),To(T)?F:et(T)?de(F,T):T.map(te=>de(F,te))},P=(T,B)=>({invalid:!!de((B||r).errors,T),isDirty:!!de((B||r).dirtyFields,T),error:de((B||r).errors,T),isValidating:!!de(r.validatingFields,T),isTouched:!!de((B||r).touchedFields,T)}),le=T=>{T&&Mi(T).forEach(B=>Po(r.errors,B)),z.state.next({errors:T?r.errors:{}})},fe=(T,B,F)=>{const te=(de(i,T,{_f:{}})._f||{}).ref,re=de(r.errors,T)||{},{ref:oe,message:ve,type:eo,...io}=re;fo(r.errors,T,{...io,...B,ref:te}),z.state.next({name:T,errors:r.errors,isValid:!1}),F&&F.shouldFocus&&te&&te.focus&&te.focus()},Ce=(T,B)=>Tn(T)?z.state.subscribe({next:F=>"values"in F&&T(we(void 0,B),F)}):we(T,B,!0),Ne=T=>z.state.subscribe({next:B=>{_C(T.name,B.name,T.exact)&&gC(B,T.formState||v,ke,T.reRenderRoot)&&T.callback({values:{...d},...r,...B,defaultValues:s})}}).unsubscribe,Ge=T=>(u.mount=!0,_={..._,...T.formState},Ne({...T,formState:{...g,...T.formState}})),Co=(T,B={})=>{for(const F of T?Mi(T):m.mount)m.mount.delete(F),m.array.delete(F),B.keepValue||(Po(i,F),Po(d,F)),!B.keepError&&Po(r.errors,F),!B.keepDirty&&Po(r.dirtyFields,F),!B.keepTouched&&Po(r.touchedFields,F),!B.keepIsValidating&&Po(r.validatingFields,F),!n.shouldUnregister&&!B.keepDefaultValue&&Po(s,F);z.state.next({values:Zo(d)}),z.state.next({...r,...B.keepDirty?{isDirty:ne()}:{}}),!B.keepIsValid&&O()},_o=({disabled:T,name:B})=>{if(Xn(T)&&u.mount||T||m.disabled.has(B)){const re=m.disabled.has(B)!==!!T;T?m.disabled.add(B):m.disabled.delete(B),re&&u.mount&&!u.action&&O()}},vt=(T,B={})=>{let F=de(i,T);const te=Xn(B.disabled)||Xn(n.disabled);return fo(i,T,{...F||{},_f:{...F&&F._f?F._f:{ref:{name:T}},name:T,mount:!0,...B}}),m.mount.add(T),F?_o({disabled:Xn(B.disabled)?B.disabled:n.disabled,name:T}):D(T,!0,B.value),{...te?{disabled:B.disabled||n.disabled}:{},...n.progressive?{required:!!B.required,min:Li(B.min),max:Li(B.max),minLength:Li(B.minLength),maxLength:Li(B.maxLength),pattern:Li(B.pattern)}:{},name:T,onChange:ie,onBlur:ie,ref:re=>{if(re){vt(T,B),F=de(i,T);const oe=To(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,ve=fC(oe),eo=F._f.refs||[];if(ve?eo.find(io=>io===oe):oe===F._f.ref)return;fo(i,T,{_f:{...F._f,...ve?{refs:[...eo.filter(tb),oe,...Array.isArray(de(s,T))?[{}]:[]],ref:{type:oe.type,name:T}}:{ref:oe}}}),D(T,!1,void 0,oe)}else F=de(i,T,{}),F._f&&(F._f.mount=!1),(n.shouldUnregister||B.shouldUnregister)&&!(Xy(m.array,T)&&u.action)&&m.unMount.add(T)}}},St=()=>n.shouldFocusError&&Ii(i,Se,m.mount),Pr=T=>{Xn(T)&&(z.state.next({disabled:T}),Ii(i,(B,F)=>{const te=de(i,F);te&&(B.disabled=te._f.disabled||T,Array.isArray(te._f.refs)&&te._f.refs.forEach(re=>{re.disabled=te._f.disabled||T}))},0,!1))},Gr=(T,B)=>async F=>{let te;F&&(F.preventDefault&&F.preventDefault(),F.persist&&F.persist());let re=Zo(d);if(z.state.next({isSubmitting:!0}),n.resolver){const{errors:oe,values:ve}=await ee();E(),r.errors=oe,re=Zo(ve)}else await $e(i);if(m.disabled.size)for(const oe of m.disabled)Po(re,oe);if(Po(r.errors,"root"),Sn(r.errors)){z.state.next({errors:{}});try{await T(re,F)}catch(oe){te=oe}}else B&&await B({...r.errors},F),St(),setTimeout(St);if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Sn(r.errors)&&!te,submitCount:r.submitCount+1,errors:r.errors}),te)throw te},gt=(T,B={})=>{de(i,T)&&(To(B.defaultValue)?G(T,Zo(de(s,T))):(G(T,B.defaultValue),fo(s,T,Zo(B.defaultValue))),B.keepTouched||Po(r.touchedFields,T),B.keepDirty||(Po(r.dirtyFields,T),r.isDirty=B.defaultValue?ne(T,Zo(de(s,T))):ne()),B.keepError||(Po(r.errors,T),v.isValid&&O()),z.state.next({...r}))},Nt=(T,B={})=>{const F=T?Zo(T):s,te=Zo(F),re=Sn(T),oe=re?s:te;if(B.keepDefaultValues||(s=F),!B.keepValues){if(B.keepDirtyValues){const ve=new Set([...m.mount,...Object.keys(gl(s,d))]);for(const eo of Array.from(ve)){const io=de(r.dirtyFields,eo),on=de(d,eo),Bt=de(oe,eo);io&&!To(on)?fo(oe,eo,on):!io&&!To(Bt)&&G(eo,Bt)}}else{if(Tm&&To(T))for(const ve of m.mount){const eo=de(i,ve);if(eo&&eo._f){const io=Array.isArray(eo._f.refs)?eo._f.refs[0]:eo._f.ref;if(qs(io)){const on=io.closest("form");if(on){on.reset();break}}}}if(B.keepFieldsRef)for(const ve of m.mount)G(ve,de(oe,ve));else i={}}d=n.shouldUnregister?B.keepDefaultValues?Zo(s):{}:Zo(oe),z.array.next({values:{...oe}}),z.state.next({values:{...oe}})}m={mount:B.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!B.keepIsValid||!!B.keepDirtyValues||!n.shouldUnregister&&!Sn(oe),u.watch=!!n.shouldUnregister,u.keepIsValid=!!B.keepIsValid,u.action=!1,B.keepErrors||(r.errors={}),z.state.next({submitCount:B.keepSubmitCount?r.submitCount:0,isDirty:re?!1:B.keepDirty?r.isDirty:!!(B.keepDefaultValues&&!zt(T,s)),isSubmitted:B.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re?{}:B.keepDirtyValues?B.keepDefaultValues&&d?gl(s,d):r.dirtyFields:B.keepDefaultValues&&T?gl(s,T):B.keepDirty?r.dirtyFields:{},touchedFields:B.keepTouched?r.touchedFields:{},errors:B.keepErrors?r.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},fr=(T,B)=>Nt(Tn(T)?T(d):T,{...n.resetOptions,...B}),he=(T,B={})=>{const F=de(i,T),te=F&&F._f;if(te){const re=te.refs?te.refs[0]:te.ref;re.focus&&setTimeout(()=>{re.focus(),B.shouldSelect&&Tn(re.select)&&re.select()})}},ke=T=>{r={...r,...T}},lo={control:{register:vt,unregister:Co,getFieldState:P,handleSubmit:Gr,setError:fe,_subscribe:Ne,_runSchema:ee,_updateIsValidating:E,_focusError:St,_getWatch:we,_getDirty:ne,_setValid:O,_setFieldArray:x,_setDisabledField:_o,_setErrors:$,_getFieldArray:De,_reset:Nt,_resetDefaultValues:()=>Tn(n.defaultValues)&&n.defaultValues().then(T=>{fr(T,n.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:Pr,_subjects:z,_proxyFormState:v,get _fields(){return i},get _formValues(){return d},get _state(){return u},set _state(T){u=T},get _defaultValues(){return s},get _names(){return m},set _names(T){m=T},get _formState(){return r},get _options(){return n},set _options(T){n={...n,...T}}},subscribe:Ge,trigger:Te,register:vt,handleSubmit:Gr,watch:Ce,setValue:G,getValues:C,reset:fr,resetField:gt,clearErrors:le,unregister:Co,setError:fe,setFocus:he,getFieldState:P};return{...lo,formControl:lo}}function ld(e={}){const n=ae.useRef(void 0),r=ae.useRef(void 0),[i,s]=ae.useState({isDirty:!1,isValidating:!1,isLoading:Tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Tn(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:i},e.defaultValues&&!Tn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...m}=jC(e);n.current={...m,formState:i}}const d=n.current.control;return d._options=e,Lm(()=>{const u=d._subscribe({formState:d._proxyFormState,callback:()=>s({...d._formState}),reRenderRoot:!0});return s(m=>({...m,isReady:!0})),d._formState.isReady=!0,u},[d]),ae.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),ae.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),ae.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),ae.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),ae.useEffect(()=>{if(d._proxyFormState.isDirty){const u=d._getDirty();u!==i.isDirty&&d._subjects.state.next({isDirty:u})}},[d,i.isDirty]),ae.useEffect(()=>{var u;e.values&&!zt(e.values,r.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((u=d._options.resetOptions)===null||u===void 0)&&u.keepIsValid||d._setValid(),r.current=e.values,s(m=>({...m}))):d._resetDefaultValues()},[d,e.values]),ae.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),n.current.formState=ae.useMemo(()=>Qy(i,d),[d,i]),n.current}function c0(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}var Zi;(function(e){e.event="event",e.props="prop"})(Zi||(Zi={}));function Ir(){}function SC(e){var n,r=void 0;return function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];return n&&i.length===n.length&&i.every(function(d,u){return d===n[u]})||(n=i,r=e.apply(void 0,i)),r}}function Pi(e){return!!(e||"").match(/\d/)}function zl(e){return e==null}function TC(e){return typeof e=="number"&&isNaN(e)}function s0(e){return zl(e)||TC(e)||typeof e=="number"&&!isFinite(e)}function d0(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function AC(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function CC(e,n,r){var i=AC(r),s=e.search(/[1-9]/);return s=s===-1?e.length:s,e.substring(0,s)+e.substring(s,e.length).replace(i,"$1"+n)}function EC(e){var n=j.useRef(e);n.current=e;var r=j.useRef(function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];return n.current.apply(n,i)});return r.current}function Nm(e,n){n===void 0&&(n=!0);var r=e[0]==="-",i=r&&n;e=e.replace("-","");var s=e.split("."),d=s[0],u=s[1]||"";return{beforeDecimal:d,afterDecimal:u,hasNegation:r,addNegation:i}}function LC(e){if(!e)return e;var n=e[0]==="-";n&&(e=e.substring(1,e.length));var r=e.split("."),i=r[0].replace(/^0+/,"")||"0",s=r[1]||"";return(n?"-":"")+i+(s?"."+s:"")}function u0(e,n,r){for(var i="",s=r?"0":"",d=0;d<=n-1;d++)i+=e[d]||s;return i}function A1(e,n){return Array(n+1).join(e)}function f0(e){var n=e+"",r=n[0]==="-"?"-":"";r&&(n=n.substring(1));var i=n.split(/[eE]/g),s=i[0],d=i[1];if(d=Number(d),!d)return r+s;s=s.replace(".","");var u=1+d,m=s.length;return u<0?s="0."+A1("0",Math.abs(u))+s:u>=m?s=s+A1("0",u-m):s=(s.substring(0,u)||"0")+"."+s.substring(u),r+s}function C1(e,n,r){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||r)&&n,s=Nm(e),d=s.beforeDecimal,u=s.afterDecimal,m=s.hasNegation,h=parseFloat("0."+(u||"0")),p=u.length<=n?"0."+u:h.toFixed(n),g=p.split("."),v=d;d&&Number(g[0])&&(v=d.split("").reverse().reduce(function(S,O,E){return S.length>E?(Number(S[0])+Number(O)).toString()+S.substring(1,S.length):O+S},g[0]));var _=u0(g[1]||"",n,r),z=m?"-":"",N=i?".":"";return""+z+v+N+_}function pa(e,n){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",n),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(n,n),!0):(e.focus(),!1)}}var b0=SC(function(e,n){for(var r=0,i=0,s=e.length,d=n.length;e[r]===n[r]&&r<s;)r++;for(;e[s-1-i]===n[d-1-i]&&d-i>r&&s-i>r;)i++;return{from:{start:r,end:s-i},to:{start:r,end:d-i}}}),OC=function(e,n){var r=Math.min(e.selectionStart,n);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:n}}};function $C(e,n,r){return Math.min(Math.max(e,n),r)}function rb(e){return Math.max(e.selectionStart,e.selectionEnd)}function NC(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function BC(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function RC(e){var n=e.currentValue,r=e.formattedValue,i=e.currentValueIndex,s=e.formattedValueIndex;return n[i]===r[s]}function DC(e,n,r,i,s,d,u){u===void 0&&(u=RC);var m=s.findIndex(function($){return $}),h=e.slice(0,m);!n&&!r.startsWith(h)&&(n=h,r=h+r,i=i+h.length);for(var p=r.length,g=e.length,v={},_=new Array(p),z=0;z<p;z++){_[z]=-1;for(var N=0,S=g;N<S;N++){var O=u({currentValue:r,lastValue:n,formattedValue:e,currentValueIndex:z,formattedValueIndex:N});if(O&&v[N]!==!0){_[z]=N,v[N]=!0;break}}}for(var E=i;E<p&&(_[E]===-1||!d(r[E]));)E++;var x=E===p||_[E]===-1?g:_[E];for(E=i-1;E>0&&_[E]===-1;)E--;var w=E===-1||_[E]===-1?0:_[E]+1;return w>x?x:i-w<x-i?w:x}function E1(e,n,r,i){var s=e.length;if(n=$C(n,0,s),i==="left"){for(;n>=0&&!r[n];)n--;n===-1&&(n=r.indexOf(!0))}else{for(;n<=s&&!r[n];)n++;n>s&&(n=r.lastIndexOf(!0))}return n===-1&&(n=s),n}function MC(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),r=0,i=n.length;r<i;r++)n[r]=!!(Pi(e[r])||Pi(e[r-1]));return n}function m0(e,n,r,i,s,d){d===void 0&&(d=Ir);var u=EC(function(N,S){var O,E;return s0(N)?(E="",O=""):typeof N=="number"||S?(E=typeof N=="number"?f0(N):N,O=i(E)):(E=s(N,void 0),O=i(E)),{formattedValue:O,numAsString:E}}),m=j.useState(function(){return u(zl(e)?n:e,r)}),h=m[0],p=m[1],g=function(N,S){N.formattedValue!==h.formattedValue&&p({formattedValue:N.formattedValue,numAsString:N.value}),d(N,S)},v=e,_=r;zl(e)&&(v=h.numAsString,_=!0);var z=u(v,_);return j.useMemo(function(){p(z)},[z.formattedValue]),[h,g]}function IC(e){return e.replace(/[^0-9]/g,"")}function UC(e){return e}function HC(e){var n=e.type;n===void 0&&(n="text");var r=e.displayType;r===void 0&&(r="input");var i=e.customInput,s=e.renderText,d=e.getInputRef,u=e.format;u===void 0&&(u=UC);var m=e.removeFormatting;m===void 0&&(m=IC);var h=e.defaultValue,p=e.valueIsNumericString,g=e.onValueChange,v=e.isAllowed,_=e.onChange;_===void 0&&(_=Ir);var z=e.onKeyDown;z===void 0&&(z=Ir);var N=e.onMouseUp;N===void 0&&(N=Ir);var S=e.onFocus;S===void 0&&(S=Ir);var O=e.onBlur;O===void 0&&(O=Ir);var E=e.value,x=e.getCaretBoundary;x===void 0&&(x=MC);var w=e.isValidInputCharacter;w===void 0&&(w=Pi);var $=e.isCharacterSame,D=c0(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),H=m0(E,h,!!p,u,m,g),Z=H[0],ee=Z.formattedValue,se=Z.numAsString,$e=H[1],ce=j.useRef(),ne=j.useRef({formattedValue:ee,numAsString:se}),we=function(he,ke){ne.current={formattedValue:he.formattedValue,numAsString:he.value},$e(he,ke)},De=j.useState(!1),Fe=De[0],M=De[1],G=j.useRef(null),ie=j.useRef({setCaretTimeout:null,focusTimeout:null});j.useEffect(function(){return M(!0),function(){clearTimeout(ie.current.setCaretTimeout),clearTimeout(ie.current.focusTimeout)}},[]);var Se=u,Te=function(he,ke){var Re=parseFloat(ke);return{formattedValue:he,value:ke,floatValue:isNaN(Re)?void 0:Re}},C=function(he,ke,Re){he.selectionStart===0&&he.selectionEnd===he.value.length||(pa(he,ke),ie.current.setCaretTimeout=setTimeout(function(){he.value===Re&&he.selectionStart!==ke&&pa(he,ke)},0))},P=function(he,ke,Re){return E1(he,ke,x(he),Re)},le=function(he,ke,Re){var lo=x(ke),T=DC(ke,ee,he,Re,lo,w,$);return T=E1(ke,T,lo),T},fe=function(he){var ke=he.formattedValue;ke===void 0&&(ke="");var Re=he.input,lo=he.source,T=he.event,B=he.numAsString,F;if(Re){var te=he.inputValue||Re.value,re=rb(Re);Re.value=ke,F=le(te,ke,re),F!==void 0&&C(Re,F,ke)}ke!==ee&&we(Te(ke,B),{event:T,source:lo})};j.useEffect(function(){var he=ne.current,ke=he.formattedValue,Re=he.numAsString;(ee!==ke||se!==Re)&&we(Te(ee,se),{event:void 0,source:Zi.props})},[ee,se]);var Ce=G.current?rb(G.current):void 0,Ne=typeof window<"u"?j.useLayoutEffect:j.useEffect;Ne(function(){var he=G.current;if(ee!==ne.current.formattedValue&&he){var ke=le(ne.current.formattedValue,ee,Ce);he.value=ee,C(he,ke,ee)}},[ee]);var Ge=function(he,ke,Re){var lo=ke.target,T=ce.current?OC(ce.current,lo.selectionEnd):b0(ee,he),B=Object.assign(Object.assign({},T),{lastValue:ee}),F=m(he,B),te=Se(F);if(F=m(te,void 0),v&&!v(Te(te,F))){var re=ke.target,oe=rb(re),ve=le(he,ee,oe);return re.value=ee,C(re,ve,ee),!1}return fe({formattedValue:te,numAsString:F,inputValue:he,event:ke,source:Re,input:ke.target}),!0},Co=function(he,ke){ke===void 0&&(ke=0);var Re=he.selectionStart,lo=he.selectionEnd;ce.current={selectionStart:Re,selectionEnd:lo+ke}},_o=function(he){var ke=he.target,Re=ke.value,lo=Ge(Re,he,Zi.event);lo&&_(he),ce.current=void 0},vt=function(he){var ke=he.target,Re=he.key,lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var F;Re==="ArrowLeft"||Re==="Backspace"?F=Math.max(lo-1,0):Re==="ArrowRight"?F=Math.min(lo+1,B.length):Re==="Delete"&&(F=lo);var te=0;Re==="Delete"&&lo===T&&(te=1);var re=Re==="ArrowLeft"||Re==="ArrowRight";if(F===void 0||lo!==T&&!re){z(he),Co(ke,te);return}var oe=F;if(re){var ve=Re==="ArrowLeft"?"left":"right";oe=P(B,F,ve),oe!==F&&he.preventDefault()}else Re==="Delete"&&!w(B[F])?oe=P(B,F,"right"):Re==="Backspace"&&!w(B[F])&&(oe=P(B,F,"left"));oe!==F&&C(ke,oe,B),z(he),Co(ke,te)},St=function(he){var ke=he.target,Re=function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;if(B===void 0&&(B=""),lo===T){var F=P(B,lo);F!==lo&&C(ke,F,B)}};Re(),requestAnimationFrame(function(){Re()}),N(he),Co(ke)},Pr=function(he){he.persist&&he.persist();var ke=he.target,Re=he.currentTarget;G.current=ke,ie.current.focusTimeout=setTimeout(function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var F=P(B,lo);F!==lo&&!(lo===0&&T===B.length)&&C(ke,F,B),S(Object.assign(Object.assign({},he),{currentTarget:Re}))},0)},Gr=function(he){G.current=null,clearTimeout(ie.current.focusTimeout),clearTimeout(ie.current.setCaretTimeout),O(he)},gt=Fe&&NC()?"numeric":void 0,Nt=Object.assign({inputMode:gt},D,{type:n,value:ee,onChange:_o,onKeyDown:vt,onMouseUp:St,onFocus:Pr,onBlur:Gr});if(r==="text")return s?ae.createElement(ae.Fragment,null,s(ee,D)||null):ae.createElement("span",Object.assign({},D,{ref:d}),ee);if(i){var fr=i;return ae.createElement(fr,Object.assign({},Nt,{ref:d}))}return ae.createElement("input",Object.assign({},Nt,{ref:d}))}function L1(e,n){var r=n.decimalScale,i=n.fixedDecimalScale,s=n.prefix;s===void 0&&(s="");var d=n.suffix;d===void 0&&(d="");var u=n.allowNegative,m=n.thousandsGroupStyle;if(m===void 0&&(m="thousand"),e===""||e==="-")return e;var h=id(n),p=h.thousandSeparator,g=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&i,_=Nm(e,u),z=_.beforeDecimal,N=_.afterDecimal,S=_.addNegation;return r!==void 0&&(N=u0(N,r,!!i)),p&&(z=CC(z,p,m)),s&&(z=s+z),d&&(N=N+d),S&&(z="-"+z),e=z+(v&&g||"")+N,e}function id(e){var n=e.decimalSeparator;n===void 0&&(n=".");var r=e.thousandSeparator,i=e.allowedDecimalSeparators;return r===!0&&(r=","),i||(i=[n,"."]),{decimalSeparator:n,thousandSeparator:r,allowedDecimalSeparators:i}}function FC(e,n){e===void 0&&(e="");var r=new RegExp("(-)"),i=new RegExp("(-)(.)*(-)"),s=r.test(e),d=i.test(e);return e=e.replace(/-/g,""),s&&!d&&n&&(e="-"+e),e}function KC(e,n){return new RegExp("(^-)|[0-9]|"+d0(e),"g")}function VC(e,n,r){return e===""?!0:!n?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function qC(e,n,r){var i;n===void 0&&(n=BC(e));var s=r.allowNegative,d=r.prefix;d===void 0&&(d="");var u=r.suffix;u===void 0&&(u="");var m=r.decimalScale,h=n.from,p=n.to,g=p.start,v=p.end,_=id(r),z=_.allowedDecimalSeparators,N=_.decimalSeparator,S=e[v]===N;if(Pi(e)&&(e===d||e===u)&&n.lastValue==="")return e;if(v-g===1&&z.indexOf(e[g])!==-1){var O=m===0?"":N;e=e.substring(0,g)+O+e.substring(g+1,e.length)}var E=function(G,ie,Se){var Te=!1,C=!1;d.startsWith("-")?Te=!1:G.startsWith("--")?(Te=!1,C=!0):u.startsWith("-")&&G.length===u.length?Te=!1:G[0]==="-"&&(Te=!0);var P=Te?1:0;return C&&(P=2),P&&(G=G.substring(P),ie-=P,Se-=P),{value:G,start:ie,end:Se,hasNegation:Te}},x=E(e,g,v),w=x.hasNegation;i=x,e=i.value,g=i.start,v=i.end;var $=E(n.lastValue,h.start,h.end),D=$.start,H=$.end,Z=$.value,ee=e.substring(g,v);e.length&&Z.length&&(D>Z.length-u.length||H<d.length)&&!(ee&&u.startsWith(ee))&&(e=Z);var se=0;e.startsWith(d)?se+=d.length:g<d.length&&(se=g),e=e.substring(se),v-=se;var $e=e.length,ce=e.length-u.length;e.endsWith(u)?$e=ce:(v>ce||v>e.length-u.length)&&($e=v),e=e.substring(0,$e),e=FC(w?"-"+e:e,s),e=(e.match(KC(N))||[]).join("");var ne=e.indexOf(N);e=e.replace(new RegExp(d0(N),"g"),function(G,ie){return ie===ne?".":""});var we=Nm(e,s),De=we.beforeDecimal,Fe=we.afterDecimal,M=we.addNegation;return p.end-p.start<h.end-h.start&&De===""&&S&&!parseFloat(Fe)&&(e=M?"-":""),e}function ZC(e,n){var r=n.prefix;r===void 0&&(r="");var i=n.suffix;i===void 0&&(i="");var s=Array.from({length:e.length+1}).map(function(){return!0}),d=e[0]==="-";s.fill(!1,0,r.length+(d?1:0));var u=e.length;return s.fill(!1,u-i.length+1,u+1),s}function PC(e){var n=id(e),r=n.thousandSeparator,i=n.decimalSeparator,s=e.prefix;s===void 0&&(s="");var d=e.allowNegative;if(d===void 0&&(d=!0),r===i)throw new Error(`
|
|
25955
25955
|
Decimal separator can't be same as thousand separator.
|
|
25956
25956
|
thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
25957
25957
|
decimalSeparator: `+i+` (default value for decimalSeparator is .)
|
|
@@ -25959,20 +25959,20 @@ Link:
|
|
|
25959
25959
|
Prefix can't start with '-' when allowNegative is true.
|
|
25960
25960
|
prefix: `+s+`
|
|
25961
25961
|
allowNegative: `+d+`
|
|
25962
|
-
`),d=!1),Object.assign(Object.assign({},e),{allowNegative:d})}function GC(e){e=PC(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,r=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Ir);var d=e.onBlur;d===void 0&&(d=Ir);var u=e.thousandSeparator,m=e.decimalScale,h=e.fixedDecimalScale,p=e.prefix;p===void 0&&(p="");var g=e.defaultValue,v=e.value,_=e.valueIsNumericString,z=e.onValueChange,N=c0(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),j=ld(e),O=j.decimalSeparator,E=j.allowedDecimalSeparators,x=function(M){return E1(M,e)},w=function(M,G){return qC(M,G,e)},$=wl(v)?g:v,D=_??VC($,p,n);wl(v)?wl(g)||(D=D||typeof g=="number"):D=D||typeof v=="number";var H=function(M){return s0(M)?M:(typeof M=="number"&&(M=f0(M)),D&&typeof m=="number"?A1(M,m,!!h):M)},Z=m0(H(v),H(g),!!D,x,w,z),ee=Z[0],se=ee.numAsString,$e=ee.formattedValue,ce=Z[1],ne=function(M){var G=M.target,ie=M.key,je=G.selectionStart,Te=G.selectionEnd,C=G.value;if(C===void 0&&(C=""),(ie==="Backspace"||ie==="Delete")&&Te<p.length){M.preventDefault();return}if(je!==Te){s(M);return}ie==="Backspace"&&C[0]==="-"&&je===p.length+1&&r&&pa(G,1),m&&h&&(ie==="Backspace"&&C[je-1]===O?(pa(G,je-1),M.preventDefault()):ie==="Delete"&&C[je]===O&&M.preventDefault()),E?.includes(ie)&&C[je]===O&&pa(G,je+1);var P=u===!0?",":u;ie==="Backspace"&&C[je-1]===P&&pa(G,je-1),ie==="Delete"&&C[je]===P&&pa(G,je+1),s(M)},we=function(M){var G=se;if(G.match(/\d/g)||(G=""),i||(G=LC(G)),h&&m&&(G=A1(G,m,h)),G!==se){var ie=E1(G,e);ce({formattedValue:ie,value:G,floatValue:parseFloat(G)},{event:M,source:qi.event})}d(M)},De=function(M){return M===O?!0:Zi(M)},Fe=function(M){var G=M.currentValue,ie=M.lastValue,je=M.formattedValue,Te=M.currentValueIndex,C=M.formattedValueIndex,P=G[Te],le=je[C],fe=b0(ie,G),Ce=fe.to,Ne=function(Ge){return w(Ge).indexOf(".")+p.length};return v===0&&h&&m&&G[Ce.start]===O&&Ne(G)<Te&&Ne(je)>C?!1:Te>=Ce.start&&Te<Ce.end&&E&&E.includes(P)&&le===O?!0:P===le};return Object.assign(Object.assign({},N),{value:$e,valueIsNumericString:!1,isValidInputCharacter:De,isCharacterSame:Fe,onValueChange:ce,format:x,removeFormatting:w,getCaretBoundary:function(M){return ZC(M,e)},onKeyDown:ne,onBlur:we})}function YC(e){var n=GC(e);return ae.createElement(HC,Object.assign({},n))}class JC{parse(n){return n==null||n===""?"":String(n).replace(/[eE.,]/g,"").replace(/\d[+-]/g,"")}}const XC=/[.,+eE]/,WC=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&XC.test(e.key)&&e.preventDefault()};function QC({_label:e,_msg:n,_touched:r,_on:i,_required:s,value:d,thousandSeparator:u=!0,suffix:m="€",...h}){const p=i&&typeof i=="object"?i:void 0;return a.jsx(YC,{...h,value:d,suffix:m,thousandSeparator:u,valueIsNumericString:!1,customInput:g=>{const v=g.value;return a.jsx(Oe,{...g,_value:v,_label:e,_msg:n,_touched:r,_required:s,_on:{onBlur:g.onBlur,onChange:g.onChange,onFocus:g.onFocus,onInput:g.onInput}})},onValueChange:g=>{const v=new Event("input");p?.onInput?.(v,g.floatValue)},onBlur:g=>{p?.onBlur?.(g.nativeEvent)}})}function eE(e){const{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,_label:m,_required:h,...p}=e;return a.jsx(e0,{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(QC,{...p,_label:m,_required:h,value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,N)=>{g.onChange(N),_?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function oE(){const e=new JC,[n,r]=ae.useState(void 0),[i,s]=ae.useState(-128),[d,u]=ae.useState(!1),h=ad({defaultValues:{currency:1e6},mode:"onTouched"}),p=h.watch(),g=v=>{h.handleSubmit(async()=>{})(v)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates formatting number input. The first example shows whole number formatting where decimal separators (. and ,) and scientific notation (e) are automatically removed on input. The second example shows currency formatting with react-number-format in a react-hook-form context."})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("div",{children:[a.jsx(An,{children:a.jsx(jo,{_label:"Whole number",_step:1,_value:n??i,_on:{onKeyDown:WC,onBlur:()=>{u(!0)},onInput:(v,_)=>{const z=e.parse(_),N=z===""?void 0:Number(z);r(N),s(N)}}})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify({value:i,touched:d},null,2)})]}),a.jsxs("div",{children:[a.jsx(An,{_on:{onSubmit:g},children:a.jsx(eE,{control:h.control,name:"currency",decimalScale:2,displayType:"input",rules:{required:"Please enter a currency amount."},_label:"Currency",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(p,null,2)})]})]})]})}const nE={"input-number":{basic:aC,"number-formatter":oE}},L1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Eo,{...n,_label:"Passwort (Black background test)"})}),a.jsx(Eo,{...n,ref:r,_accessKey:"P",_required:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_placeholder:"Mit Icons",_label:"Passwort",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"warning",_description:"Small warning"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"success",_description:"Success message"},_label:"Password"}),a.jsx(Eo,{...n,_disabled:!0,_msg:{_type:"error",_description:Ue},_label:"Passwort (Disabled)",_touched:!0}),a.jsx(Eo,{...n,_readOnly:!0,_label:"Passwort (Readonly)"}),a.jsx(Eo,{...n,ref:r,_shortKey:"c",_label:"With access key"}),a.jsx(Eo,{...n,ref:r,_shortKey:"s",_label:"With short key"})]})}),tE=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password"}),a.jsx(L1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password (hideLabel)"}),a.jsx(L1,{ref:r,...n,_hideLabel:!0})]})]})}),rE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:tE,showButtons:!1})]}),aE=()=>{const e=S.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputPassword in the variant "visibility-toggle". It features a button to toggle between a visible and hidden password input.'})}),a.jsxs(An,{className:"w-full",children:[a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle"}),a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle",_value:"Password"}),a.jsx(Eo,{_placeholder:"With 'Show password' button and disabled",_label:"Password",ref:e,className:"block",_disabled:!0,_variant:"visibility-toggle"})]})]})},lE={"input-password":{basic:rE,"show-password":aE}},O1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Lo,{...n,_options:"[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (Black background test)"})}),a.jsx(Lo,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (with error)"}),a.jsx(Lo,{...n,ref:r,_orientation:"horizontal",_required:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal)"}),a.jsx(Lo,{...n,_disabled:!0,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal with error)"}),a.jsx(Lo,{...n,_disabled:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation",_touched:!0}),a.jsx(Lo,{...n,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:"Company",_options:[{label:"Mrs.",value:"Mrs.",hint:'Description for option "Mrs."'},{label:"Mr. (disabled)",value:"Mr.",hint:'Description for option "Mr."',disabled:!0},{label:"Company",value:"Company",hint:'Description for option "Company"'}],_label:"Salutation (horizontal with error hint and description)",_hint:xn})]})}),iE=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(be,{_level:2,_label:"Radio",className:"block mb-2"}),a.jsx(O1,{...n})]}),a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(be,{_level:2,_label:"Radio (hideLabel)",className:"block mb-2"}),a.jsx(O1,{ref:r,...n,_hideLabel:!0})]})]})}),cE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputRadio renders a set of radio buttons. The sample shows KolInputRadio in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:iE,showButtons:!1})]}),sE=()=>{const[e,n]=S.useState(!0),[r,i]=S.useState("horizontal"),s=[{label:"Field 1",value:1},{label:"Field 2",value:2}],d=()=>{n(m=>!m)},u=()=>{i(m=>m==="horizontal"?"vertical":"horizontal")};return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"horizontal"})," and ",a.jsx("code",{children:"vertical"})," orientation of KolInoutRadio. It also features a button to test re-rendering."]})}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx(W,{_label:"Click me a few times",_on:{onClick:d}}),a.jsx(ro,{_label:"Switch orientation (horizontal/vertical)",_on:{onChange:u},_variant:"switch"})]}),e&&a.jsx(An,{children:a.jsxs("div",{className:"container my-4 d-grid gap-4",children:[a.jsx(Lo,{_label:`Test (${r})`,_options:s,_orientation:r,_required:!0}),a.jsx(Lo,{_hideLabel:!0,_label:`Test (${r})`,_options:s,_orientation:r,_required:!0})]})})]})},dE=()=>{const e=[{label:"Field 1",value:{id:1,name:"Option 1"}},{label:"Field 2",value:{id:2,name:"Option 2"}}];return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(V,{children:["This sample shows KolInputRadio with ",a.jsx("code",{children:"object"})," and ",a.jsx("code",{children:"undefined"})," values."]}),a.jsxs(An,{children:[a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", the values of the options are defined as objects."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Lo,{_value:e[1].value,_options:e,_label:"Test (with object value)"})}),a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", no value is set."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Lo,{_options:e,_label:"Test (without value)"})})]})]})},uE={"input-radio":{basic:cE,horizontal:sE,object:dE}},$1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(en,{...n,_min:0,_max:50,_msg:{_type:"error",_description:Ue},_label:"Slider (Black background test)",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0})}),a.jsx(en,{...n,ref:r,_accessKey:"F",_min:0,_max:50,_step:10,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Slider with error",_touched:!0}),a.jsx(en,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Slider"}),a.jsx(en,{...n,_disabled:!0,_min:0,_max:50,_label:"Slider (disabled)"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With access key",_accessKey:"c"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With short key",_shortKey:"s"})]})}),fE=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range"}),a.jsx($1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range (hideLabel)"}),a.jsx($1,{ref:r,...n,_hideLabel:!0})]})]})}),bE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputRange renders a pair of range- and number fields wich are synchronized with each other. The sample shows KolInputRange in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:fE,showButtons:!1})]}),mE={"input-range":{basic:bE}},N1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Oe,{...n,_value:"Value",_label:"First name (Black background test)"})}),a.jsx(Oe,{...n,_hint:xn,_msg:{_type:"error",_description:Ue},_placeholder:"With icons",_icons:{right:{icon:"codicon codicon-arrow-right",style:{"font-size":"200%","margin-right":"calc(-8rem / var(--kolibri-root-font-size, 16))"}}},_on:{onBlur:console.log,onChange:console.log,onClick:console.log,onFocus:console.log},_required:!0,_type:"search",_touched:!0,_label:"First name (text)",_accessKey:"V",ref:r}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Search",_type:"search"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},_touched:!0,_type:"url",_label:"URL (url)"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_label:"With counter",_maxLength:10,_value:"Lorem Ipsum",_hasCounter:!0}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_readOnly:!0,_label:"First name (placeholder)"}),a.jsx(Oe,{...n,_value:"Value",_readOnly:!0,_label:"First name (text)"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_disabled:!0,_label:"First name (placeholder, disabled)"}),a.jsx(Oe,{...n,_value:"Value",_disabled:!0,_label:"First name (text, disabled)"}),a.jsx(Oe,{...n,_value:"Value",_label:"With access key",_accessKey:"c"}),a.jsx(Oe,{...n,_value:"Value",_label:"With short key",_shortKey:"s"})]})}),hE=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(N1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(N1,{ref:r,...n,_hideLabel:!0})]})]})}),pE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputText renders a text input field. The sample shows KolInputText in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:hE,showButtons:!1})]}),kE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample show KolInputText with expert slot."})}),a.jsx(Oe,{_label:"",_type:"text",children:a.jsx("span",{slot:"expert",children:"I am more than just a input field"})})]}),vE=()=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"_hideMsg"})," feature for KolInputText. It allows to hide the message from an input field and can be used, when the message (e.g. error) is already shown somewhere else, e.g. for a group of inputs."]})}),a.jsx(Le,{_label:"Normal input field with error",_level:0,children:a.jsx(Oe,{_msg:{_type:"error",_description:"Error message"},_label:"Input with error",_touched:!0})}),a.jsx(Le,{_label:"Input fields with hidden error",_level:0,children:a.jsxs("fieldset",{className:"grid md:grid-cols-2 gap-4",children:[a.jsx("legend",{children:"Combined input field"}),a.jsx(gn,{className:"col-span-2",_level:0,_type:"error",children:"This is a combined error message"}),a.jsx(Oe,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"First input",_touched:!0}),a.jsx(Oe,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"Second input with error",_touched:!0})]})})]}),gE=()=>{const e=S.useRef(null);function n(){e.current?.focus(),e.current?.setSelectionStart(8)}function r(){e.current?.focus(),e.current?.setSelectionRange(2,5)}function i(){e.current?.focus(),e.current?.setRangeText("INSERTED",5,9,"select")}return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how to change the selection in a KolInputText."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Oe,{_value:"Very long value",_label:"Text Input Label",ref:e}),a.jsx(Pe,{_label:"Set Start",onClick:n}),a.jsx(Pe,{_label:"Set Range",onClick:r}),a.jsx(Pe,{_label:"Set Range Text",onClick:i})]})]})},B1={_icons:"codicon codicon-info",_hideLabel:!0},_E={left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},xE=()=>{const e=Vr.getInstance(document),n={onClick:()=>{e.enqueue({description:"Smart-Button clicked",label:"Toaster",type:"default"})}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Oe,{_label:"Input with button and icons",_type:"text",_smartButton:{...B1,_label:"Open Toast",_on:n},_icons:_E}),a.jsx(Oe,{_label:"Disabled input with button and without icons",_disabled:!0,_type:"text",_smartButton:{...B1,_label:"Disabled Button"}})]})]})},yE=/[^a-zA-Z0-9]/g,wE=/(.{4})(?!$)/g;class zE{electronicFormat(n){return n.replace(yE,"").toUpperCase()}printFormat(n,r){return this.electronicFormat(n).replace(wE,"$1"+(r||" "))}parse(n){return this.electronicFormat(n)}format(n,r,i){const s=r?.setSelectionStart;return i&&s&&(i%5===0&&i++,s(i)),this.printFormat(n)}}function SE({formatter:e,selectionStartRef:n,_on:r,_value:i,...s}){const d=S.useRef(null),u=r&&typeof r=="object"?r:void 0,m=n,h=d.current,p=m.current,g=e;return a.jsx(Oe,{...s,ref:d,_value:g.format(i??"",h,p),_on:{...u,onInput:(v,_)=>{const z=d.current?.selectionStart;z?.().then(j=>{m.current=j??null});const N=g.parse(typeof _=="string"?_:"");u?.onInput?.(v,N)}}})}function jE(e){const{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,formatter:m,selectionStartRef:h,...p}=e;return a.jsx(e0,{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(SE,{...p,formatter:m,selectionStartRef:h,_value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,N)=>{g.onChange(N),_?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function TE(){const e=S.useMemo(()=>new zE,[]),n=S.useRef(null),i=ad({defaultValues:{iban:"DE89370400440532013000"},mode:"onTouched"}),s=i.watch(),d=u=>{i.handleSubmit(async()=>{})(u)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates formatting a data value in an input field (example IBAN). The data value is formatted to the input field (print format) and vice versa the formatting is removed again (machine format)"})}),a.jsx("section",{className:"w-full",children:a.jsxs("div",{children:[a.jsx(An,{_on:{onSubmit:d},children:a.jsx(jE,{control:i.control,name:"iban",id:"field-iban",formatter:e,selectionStartRef:n,rules:{required:"Please enter an IBAN."},_label:"IBAN",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(s,null,2)})]})})]})}const AE={"input-text":{basic:pE,"hide-msg":vE,"text-formatter":TE,"smart-button":xE,"expert-slot":kE,"select-range":gE}},CE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolKolibri renders the KoliBri logo. The sample show the logo with and without label and with a custom color."})}),a.jsx(be,{class:"block",_level:3,_label:"Regular"}),a.jsx(Ss,{class:"block",style:{width:300}}),a.jsx(be,{class:"block",_level:3,_label:"Without Label"}),a.jsx(Ss,{class:"block",style:{width:300},_labeled:!1}),a.jsx(be,{class:"block",_level:3,_label:"Customized color"}),a.jsx(Ss,{class:"block",style:{width:300},_color:"#cc006e"})]}),EE={kolibri:{basic:CE}},LE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLinkButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text without area description"}),a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text",_ariaDescription:"Link Button Area Description"})]})]}),ma={_href:"#/back-page"},OE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolLinkButton renders a link that looks like a button. The sample shows the different styling variants."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(Xe,{_label:"Primary",_variant:"primary",...ma}),a.jsx(Xe,{_label:"Secondary",_variant:"secondary",...ma}),a.jsx(Xe,{_label:"Normal",_variant:"normal",...ma}),a.jsx(Xe,{_label:"Danger",_variant:"danger",...ma}),a.jsx(Xe,{_label:"Ghost",_variant:"ghost",...ma}),a.jsx(Xe,{_label:"Access Key",_variant:"primary",_accessKey:"c",...ma}),a.jsx(Xe,{_label:"Short Key",_variant:"primary",_shortKey:"s",...ma})]})]}),$E={"link-button":{basic:OE,"aria-description":LE}},NE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"With S access key",_accessKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_accessKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Access key does not appear in label",_accessKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"access key without label",_accessKey:"s"})]})]}),BE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link Text without aria description"}),a.jsx(_e,{_href:"#/back-page",_label:"Link Text",_ariaDescription:"Link Area Description"})]})]}),RE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolLink renders a link. This sample shows disabled links, links with hidden label, the boolean _inline property and links with different CSS"," ",a.jsx("code",{children:"display"}),"-properties."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_inline:!1,_label:"Simple Link"}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_inline:!1,_label:"Simple Link (disabled)"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link"}),a.jsx(_e,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link (disabled)"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(_e,{_href:"#/back-page",_label:"Simple Link"})," It is rendered by default as a ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element."," ",a.jsx(_e,{class:"d-inline-block",_accessKey:"S",_href:"#/back-page",_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element. ",a.jsx(_e,{class:"d-block",_href:"#/back-page",_label:"Simple Link"}),", therefore, I span the entire width of the parent element, causing a line break."]})]})]}),DE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with icons in different alignments and combinations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left",_href:"#/back-page"}),a.jsx(_e,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right",_href:"#/back-page"}),a.jsx(_e,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top",_href:"#/back-page"}),a.jsx(_e,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below",_href:"#/back-page"}),a.jsx(_e,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons",_href:"#/back-page"}),a.jsx(_e,{_icons:"codicon codicon-home",_href:"https://public-ui.github.io/",_label:"I am a external link with an icon on the left",_target:"_blank"}),a.jsx(_e,{_icons:{right:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external linkwith an icon on the right",_target:"_blank"}),a.jsx(_e,{_icons:{top:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with an icon at the top",_target:"_blank"}),a.jsx(_e,{_icons:{bottom:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with icon below",_target:"_blank"}),a.jsx(_e,{_href:"https://public-ui.github.io/",_label:"I am a external link with all icons",_target:"_blank",_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"}})]})]}),ME=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolLink can be used with slot-content instead of a label as well. This sample demonstrates the slot content used to display an image."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"I am a link that is rendered as text"}),a.jsx(_e,{_href:"#/back-page",_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),IE=()=>{const e=ed(),n={onClick:r=>{r.preventDefault(),e("/back-page")}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolLink works with react-router. Primary click uses preventDefault() and navigate(...), while right click open in new tab still follows _href. Make sure _href and navigate(...) point to the same path."})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(_e,{_href:"/back-page",_inline:!1,_label:"Go to overview",_on:n})})]})},UE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"With S short key",_shortKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_shortKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Short key does not appear in label",_shortKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"short key without label",_shortKey:"s"})]})]}),HE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolLink with different ",a.jsx("code",{children:"_target"}),"-properties."]})}),a.jsx("div",{className:"text-base d-flex gap-4",children:a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_blank)",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_blank)",_target:"_blank"})})]})})]}),FE={link:{basic:RE,icons:DE,image:ME,target:HE,"aria-description":BE,"access-key":NE,"short-key":UE,"react-router":IE}},KE=()=>{const[e]=Kr(),n=e.get("show-modal"),r=S.useRef(null),i=S.useRef(null),s={onClick:()=>r.current?.openModal()},d={onClick:()=>i.current?.openModal()},u={onClick:()=>r.current?.closeModal()};return S.useEffect(()=>{n==="true"&&(r.current?.openModal(),i.current?.openModal())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolModal supports the variants ",a.jsx("code",{children:"blank"})," and ",a.jsx("code",{children:"card"}),". The card variant includes a ",a.jsx("code",{children:"KolCard"})," container and a closer button."]})}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{children:[a.jsx(W,{_label:"Open blank modal",_on:s}),a.jsx(qv,{ref:r,_label:"Blank modal",_variant:"blank",_width:"40%",children:a.jsxs("div",{className:"bg-white p-4 rounded shadow",children:[a.jsx("p",{className:"mt-0",children:"You must add styling and a close button yourself."}),a.jsx(W,{_label:"Open card modal",className:"mr",_on:d}),a.jsx(W,{_label:"Close",_on:u})]})})]}),a.jsxs("div",{children:[a.jsx(W,{_label:"Open card modal",_on:d}),a.jsx(qv,{ref:i,_label:"Card modal",_variant:"card",_width:"30%",children:a.jsx("p",{className:"mt-0",children:"This variant wraps content inside a KolCard."})})]})]})]})},VE={modal:{basic:KE}},qE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolNav with a link to the current page. This makes the component automatically assign ",a.jsx("code",{children:'aria-current="page"'}),"to it."]})}),a.jsx(yl,{class:"block w-sm",_label:"Main navigation",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Nav - aria-current (Current page)",_href:"#/nav/aria-current",_active:!0}]})]}),h0=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_href:"#/back-page",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]},{_label:"4 Navigation point with children and onClick",_children:[{_label:"4.1 Nested link",_href:"#/back-page"}],_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0,_children:[{_label:"5.1 Nested link",_href:"#/back-page"}]},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel",_children:[{_label:"6.1 Nested link",_href:"#/back-page"}]}],ZE=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home"},{_label:"4 Navigation point with children and onClick",_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel"}],PE=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page",_active:!0},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]}],GE=()=>{const[e,n]=S.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolNav renders a navigation. In this sample, icons for the navigation elements can be shown or hidden using a checkbox and the navigation can be collapsed, showing only icons and no text labels."})}),a.jsxs("section",{className:"grid gap-8",children:[a.jsx("section",{children:a.jsx(ro,{_label:"Show icons when expanded",_checked:e,_on:{onChange:(r,i)=>{n(i)}}})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation without submenu"}),a.jsx(yl,{class:"block w-fit",_label:"Navigation without submenu",_links:ZE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation with submenu"}),a.jsx(yl,{class:"block w-fit",_label:"Navigation with submenu",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation with submenu active"}),a.jsx(yl,{class:"block w-fit",_label:"Navigation with submenu active",_links:PE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]})]})]})},YE={nav:{basic:GE,"aria-current":qE}},JE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolPagination renders a pagination for datasets. The sample shows the different states and variations of a pagination and the option to change the page size."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(yi,{_max:316514,_page:15475,_siblingCount:3,_label:"Test pagination 1",_on:{}}),a.jsx(yi,{_max:14,_page:14,_siblingCount:1,_boundaryCount:2,_label:"Test pagination 2",_on:{}}),a.jsx(yi,{_max:4,_page:1,_siblingCount:0,_boundaryCount:2,_label:"Test pagination 3",_on:{}}),a.jsx(yi,{_max:4,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 4",_on:{}}),a.jsx(yi,{_max:400,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 5",_on:{},_pageSizeOptions:[10,100]})]})]}),XE={pagination:{basic:JE}},WE=()=>{const{dummyClickEventHandler:e}=Do(),n=ae.useRef(null),r={onClick:e},i=[{_label:"Edit",_icons:"codicon codicon-edit",_on:r},{_label:"Delete",_icons:"codicon codicon-trash",_on:r},{_label:"Duplicate",_icons:"codicon codicon-copy",_on:r}];return S.useEffect(()=>{n.current&&(n.current.showPopover(),n.current.focus())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["The PopoverButton component combines a button with a popover that appears when clicked. The popover can be positioned in different directions (top, right, bottom, left) using the ",a.jsx("code",{children:"_popoverAlign"})," prop."]})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(db,{_label:"Actions",_variant:"primary",_icons:{right:"codicon codicon-chevron-down"},ref:n,children:a.jsx(ga,{_label:"Action toolbar",_items:i,_orientation:"vertical"})}),a.jsx(db,{_label:"Help",_icons:"codicon codicon-info",_popoverAlign:"right",_tooltipAlign:"bottom",_hideLabel:!0,children:a.jsxs("div",{className:"w-sm p-2 border border-solid border-gray",children:[a.jsx(be,{_label:"Help Information",_level:0}),a.jsxs("p",{children:[a.jsx("u",{children:"Lorem ipsum dolor sit amet"}),", consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae."]})]})})]})]})},QE={"popover-button":{basic:WE}},eL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolProgress renders a progress indicator. The sample shows the variants "bar" and "cycle" with and without labels.'})}),a.jsxs("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-2",children:[a.jsxs("fieldset",{title:"Percentages",className:"flex flex-col gap-4",children:[a.jsx(nr,{_variant:"bar",_max:7,_value:0}),a.jsx(nr,{_variant:"bar",_max:7,_value:2}),a.jsx(nr,{_variant:"bar",_max:7,_value:7}),a.jsx(nr,{_variant:"cycle",_max:7,_value:6})]}),a.jsxs("fieldset",{title:"Custom units",className:"flex flex-col gap-4",children:[a.jsx(nr,{_label:"Distance",_variant:"bar",_max:65434,_value:7236,_unit:"m"}),a.jsx(nr,{_label:"12 Tasks to do",_variant:"bar",_max:12,_value:5,_unit:"tasks completed"}),a.jsx(nr,{_label:"Max 150 kg",_variant:"cycle",_max:150,_value:42,_unit:"kg"})]})]})]}),oL={progress:{basic:eL}},nL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolQuote renders a quote with optional citation. This sample shows a quote in the variant "inline" with a link for citation.'})}),a.jsx(wx,{_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:"Avian carriers can provide high delay.",_variant:"inline"})]}),tL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows a quote in the "block" variant.'})}),a.jsx(wx,{_label:"RFC 1149",_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:`Avian carriers can provide high delay, low throughput, and low altitude
|
|
25962
|
+
`),d=!1),Object.assign(Object.assign({},e),{allowNegative:d})}function GC(e){e=PC(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,r=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Ir);var d=e.onBlur;d===void 0&&(d=Ir);var u=e.thousandSeparator,m=e.decimalScale,h=e.fixedDecimalScale,p=e.prefix;p===void 0&&(p="");var g=e.defaultValue,v=e.value,_=e.valueIsNumericString,z=e.onValueChange,N=c0(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),S=id(e),O=S.decimalSeparator,E=S.allowedDecimalSeparators,x=function(M){return L1(M,e)},w=function(M,G){return qC(M,G,e)},$=zl(v)?g:v,D=_??VC($,p,n);zl(v)?zl(g)||(D=D||typeof g=="number"):D=D||typeof v=="number";var H=function(M){return s0(M)?M:(typeof M=="number"&&(M=f0(M)),D&&typeof m=="number"?C1(M,m,!!h):M)},Z=m0(H(v),H(g),!!D,x,w,z),ee=Z[0],se=ee.numAsString,$e=ee.formattedValue,ce=Z[1],ne=function(M){var G=M.target,ie=M.key,Se=G.selectionStart,Te=G.selectionEnd,C=G.value;if(C===void 0&&(C=""),(ie==="Backspace"||ie==="Delete")&&Te<p.length){M.preventDefault();return}if(Se!==Te){s(M);return}ie==="Backspace"&&C[0]==="-"&&Se===p.length+1&&r&&pa(G,1),m&&h&&(ie==="Backspace"&&C[Se-1]===O?(pa(G,Se-1),M.preventDefault()):ie==="Delete"&&C[Se]===O&&M.preventDefault()),E?.includes(ie)&&C[Se]===O&&pa(G,Se+1);var P=u===!0?",":u;ie==="Backspace"&&C[Se-1]===P&&pa(G,Se-1),ie==="Delete"&&C[Se]===P&&pa(G,Se+1),s(M)},we=function(M){var G=se;if(G.match(/\d/g)||(G=""),i||(G=LC(G)),h&&m&&(G=C1(G,m,h)),G!==se){var ie=L1(G,e);ce({formattedValue:ie,value:G,floatValue:parseFloat(G)},{event:M,source:Zi.event})}d(M)},De=function(M){return M===O?!0:Pi(M)},Fe=function(M){var G=M.currentValue,ie=M.lastValue,Se=M.formattedValue,Te=M.currentValueIndex,C=M.formattedValueIndex,P=G[Te],le=Se[C],fe=b0(ie,G),Ce=fe.to,Ne=function(Ge){return w(Ge).indexOf(".")+p.length};return v===0&&h&&m&&G[Ce.start]===O&&Ne(G)<Te&&Ne(Se)>C?!1:Te>=Ce.start&&Te<Ce.end&&E&&E.includes(P)&&le===O?!0:P===le};return Object.assign(Object.assign({},N),{value:$e,valueIsNumericString:!1,isValidInputCharacter:De,isCharacterSame:Fe,onValueChange:ce,format:x,removeFormatting:w,getCaretBoundary:function(M){return ZC(M,e)},onKeyDown:ne,onBlur:we})}function YC(e){var n=GC(e);return ae.createElement(HC,Object.assign({},n))}class JC{parse(n){return n==null||n===""?"":String(n).replace(/[eE.,]/g,"").replace(/\d[+-]/g,"")}}const XC=/[.,+eE]/,WC=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&XC.test(e.key)&&e.preventDefault()};function QC({_label:e,_msg:n,_touched:r,_on:i,_required:s,value:d,thousandSeparator:u=!0,suffix:m="€",...h}){const p=i&&typeof i=="object"?i:void 0;return a.jsx(YC,{...h,value:d,suffix:m,thousandSeparator:u,valueIsNumericString:!1,customInput:g=>{const v=g.value;return a.jsx(Oe,{...g,_value:v,_label:e,_msg:n,_touched:r,_required:s,_on:{onBlur:g.onBlur,onChange:g.onChange,onFocus:g.onFocus,onInput:g.onInput}})},onValueChange:g=>{const v=new Event("input");p?.onInput?.(v,g.floatValue)},onBlur:g=>{p?.onBlur?.(g.nativeEvent)}})}function eE(e){const{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,_label:m,_required:h,...p}=e;return a.jsx(e0,{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(QC,{...p,_label:m,_required:h,value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,N)=>{g.onChange(N),_?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function oE(){const e=new JC,[n,r]=ae.useState(void 0),[i,s]=ae.useState(-128),[d,u]=ae.useState(!1),h=ld({defaultValues:{currency:1e6},mode:"onTouched"}),p=h.watch(),g=v=>{h.handleSubmit(async()=>{})(v)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates formatting number input. The first example shows whole number formatting where decimal separators (. and ,) and scientific notation (e) are automatically removed on input. The second example shows currency formatting with react-number-format in a react-hook-form context."})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("div",{children:[a.jsx(An,{children:a.jsx(So,{_label:"Whole number",_step:1,_value:n??i,_on:{onKeyDown:WC,onBlur:()=>{u(!0)},onInput:(v,_)=>{const z=e.parse(_),N=z===""?void 0:Number(z);r(N),s(N)}}})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify({value:i,touched:d},null,2)})]}),a.jsxs("div",{children:[a.jsx(An,{_on:{onSubmit:g},children:a.jsx(eE,{control:h.control,name:"currency",decimalScale:2,displayType:"input",rules:{required:"Please enter a currency amount."},_label:"Currency",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(p,null,2)})]})]})]})}const nE={"input-number":{basic:aC,"number-formatter":oE}},O1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Eo,{...n,_label:"Passwort (Black background test)"})}),a.jsx(Eo,{...n,ref:r,_accessKey:"P",_required:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_placeholder:"Mit Icons",_label:"Passwort",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"warning",_description:"Small warning"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"success",_description:"Success message"},_label:"Password"}),a.jsx(Eo,{...n,_disabled:!0,_msg:{_type:"error",_description:Ue},_label:"Passwort (Disabled)",_touched:!0}),a.jsx(Eo,{...n,_readOnly:!0,_label:"Passwort (Readonly)"}),a.jsx(Eo,{...n,ref:r,_shortKey:"c",_label:"With access key"}),a.jsx(Eo,{...n,ref:r,_shortKey:"s",_label:"With short key"})]})}),tE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password"}),a.jsx(O1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password (hideLabel)"}),a.jsx(O1,{ref:r,...n,_hideLabel:!0})]})]})}),rE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:tE,showButtons:!1})]}),aE=()=>{const e=j.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputPassword in the variant "visibility-toggle". It features a button to toggle between a visible and hidden password input.'})}),a.jsxs(An,{className:"w-full",children:[a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle"}),a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle",_value:"Password"}),a.jsx(Eo,{_placeholder:"With 'Show password' button and disabled",_label:"Password",ref:e,className:"block",_disabled:!0,_variant:"visibility-toggle"})]})]})},lE={"input-password":{basic:rE,"show-password":aE}},$1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Lo,{...n,_options:"[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (Black background test)"})}),a.jsx(Lo,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (with error)"}),a.jsx(Lo,{...n,ref:r,_orientation:"horizontal",_required:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal)"}),a.jsx(Lo,{...n,_disabled:!0,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal with error)"}),a.jsx(Lo,{...n,_disabled:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation",_touched:!0}),a.jsx(Lo,{...n,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:"Company",_options:[{label:"Mrs.",value:"Mrs.",hint:'Description for option "Mrs."'},{label:"Mr. (disabled)",value:"Mr.",hint:'Description for option "Mr."',disabled:!0},{label:"Company",value:"Company",hint:'Description for option "Company"'}],_label:"Salutation (horizontal with error hint and description)",_hint:xn})]})}),iE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(be,{_level:2,_label:"Radio",className:"block mb-2"}),a.jsx($1,{...n})]}),a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(be,{_level:2,_label:"Radio (hideLabel)",className:"block mb-2"}),a.jsx($1,{ref:r,...n,_hideLabel:!0})]})]})}),cE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputRadio renders a set of radio buttons. The sample shows KolInputRadio in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:iE,showButtons:!1})]}),sE=()=>{const[e,n]=j.useState(!0),[r,i]=j.useState("horizontal"),s=[{label:"Field 1",value:1},{label:"Field 2",value:2}],d=()=>{n(m=>!m)},u=()=>{i(m=>m==="horizontal"?"vertical":"horizontal")};return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"horizontal"})," and ",a.jsx("code",{children:"vertical"})," orientation of KolInoutRadio. It also features a button to test re-rendering."]})}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx(W,{_label:"Click me a few times",_on:{onClick:d}}),a.jsx(ro,{_label:"Switch orientation (horizontal/vertical)",_on:{onChange:u},_variant:"switch"})]}),e&&a.jsx(An,{children:a.jsxs("div",{className:"container my-4 d-grid gap-4",children:[a.jsx(Lo,{_label:`Test (${r})`,_options:s,_orientation:r,_required:!0}),a.jsx(Lo,{_hideLabel:!0,_label:`Test (${r})`,_options:s,_orientation:r,_required:!0})]})})]})},dE=()=>{const e=[{label:"Field 1",value:{id:1,name:"Option 1"}},{label:"Field 2",value:{id:2,name:"Option 2"}}];return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(V,{children:["This sample shows KolInputRadio with ",a.jsx("code",{children:"object"})," and ",a.jsx("code",{children:"undefined"})," values."]}),a.jsxs(An,{children:[a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", the values of the options are defined as objects."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Lo,{_value:e[1].value,_options:e,_label:"Test (with object value)"})}),a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", no value is set."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Lo,{_options:e,_label:"Test (without value)"})})]})]})},uE={"input-radio":{basic:cE,horizontal:sE,object:dE}},N1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(en,{...n,_min:0,_max:50,_msg:{_type:"error",_description:Ue},_label:"Slider (Black background test)",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0})}),a.jsx(en,{...n,ref:r,_accessKey:"F",_min:0,_max:50,_step:10,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Slider with error",_touched:!0}),a.jsx(en,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Slider"}),a.jsx(en,{...n,_disabled:!0,_min:0,_max:50,_label:"Slider (disabled)"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With access key",_accessKey:"c"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With short key",_shortKey:"s"})]})}),fE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range"}),a.jsx(N1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range (hideLabel)"}),a.jsx(N1,{ref:r,...n,_hideLabel:!0})]})]})}),bE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputRange renders a pair of range- and number fields wich are synchronized with each other. The sample shows KolInputRange in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:fE,showButtons:!1})]}),mE={"input-range":{basic:bE}},B1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Oe,{...n,_value:"Value",_label:"First name (Black background test)"})}),a.jsx(Oe,{...n,_hint:xn,_msg:{_type:"error",_description:Ue},_placeholder:"With icons",_icons:{right:{icon:"codicon codicon-arrow-right",style:{"font-size":"200%","margin-right":"calc(-8rem / var(--kolibri-root-font-size, 16))"}}},_on:{onBlur:console.log,onChange:console.log,onClick:console.log,onFocus:console.log},_required:!0,_type:"search",_touched:!0,_label:"First name (text)",_accessKey:"V",ref:r}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Search",_type:"search"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},_touched:!0,_type:"url",_label:"URL (url)"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_label:"With counter",_maxLength:10,_value:"Lorem Ipsum",_hasCounter:!0}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_readOnly:!0,_label:"First name (placeholder)"}),a.jsx(Oe,{...n,_value:"Value",_readOnly:!0,_label:"First name (text)"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_disabled:!0,_label:"First name (placeholder, disabled)"}),a.jsx(Oe,{...n,_value:"Value",_disabled:!0,_label:"First name (text, disabled)"}),a.jsx(Oe,{...n,_value:"Value",_label:"With access key",_accessKey:"c"}),a.jsx(Oe,{...n,_value:"Value",_label:"With short key",_shortKey:"s"})]})}),hE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(B1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(B1,{ref:r,...n,_hideLabel:!0})]})]})}),pE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputText renders a text input field. The sample shows KolInputText in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:hE,showButtons:!1})]}),kE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample show KolInputText with expert slot."})}),a.jsx(Oe,{_label:"",_type:"text",children:a.jsx("span",{slot:"expert",children:"I am more than just a input field"})})]}),vE=()=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"_hideMsg"})," feature for KolInputText. It allows to hide the message from an input field and can be used, when the message (e.g. error) is already shown somewhere else, e.g. for a group of inputs."]})}),a.jsx(Le,{_label:"Normal input field with error",_level:0,children:a.jsx(Oe,{_msg:{_type:"error",_description:"Error message"},_label:"Input with error",_touched:!0})}),a.jsx(Le,{_label:"Input fields with hidden error",_level:0,children:a.jsxs("fieldset",{className:"grid md:grid-cols-2 gap-4",children:[a.jsx("legend",{children:"Combined input field"}),a.jsx(gn,{className:"col-span-2",_level:0,_type:"error",children:"This is a combined error message"}),a.jsx(Oe,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"First input",_touched:!0}),a.jsx(Oe,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"Second input with error",_touched:!0})]})})]}),gE=()=>{const e=j.useRef(null);function n(){e.current?.focus(),e.current?.setSelectionStart(8)}function r(){e.current?.focus(),e.current?.setSelectionRange(2,5)}function i(){e.current?.focus(),e.current?.setRangeText("INSERTED",5,9,"select")}return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how to change the selection in a KolInputText."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Oe,{_value:"Very long value",_label:"Text Input Label",ref:e}),a.jsx(Pe,{_label:"Set Start",onClick:n}),a.jsx(Pe,{_label:"Set Range",onClick:r}),a.jsx(Pe,{_label:"Set Range Text",onClick:i})]})]})},R1={_icons:"codicon codicon-info",_hideLabel:!0},_E={left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},xE=()=>{const e=Vr.getInstance(document),n={onClick:()=>{e.enqueue({description:"Smart-Button clicked",label:"Toaster",type:"default"})}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Oe,{_label:"Input with button and icons",_type:"text",_smartButton:{...R1,_label:"Open Toast",_on:n},_icons:_E}),a.jsx(Oe,{_label:"Disabled input with button and without icons",_disabled:!0,_type:"text",_smartButton:{...R1,_label:"Disabled Button"}})]})]})},yE=/[^a-zA-Z0-9]/g,wE=/(.{4})(?!$)/g;class zE{electronicFormat(n){return n.replace(yE,"").toUpperCase()}printFormat(n,r){return this.electronicFormat(n).replace(wE,"$1"+(r||" "))}parse(n){return this.electronicFormat(n)}format(n,r,i){const s=r?.setSelectionStart;return i&&s&&(i%5===0&&i++,s(i)),this.printFormat(n)}}function jE({formatter:e,selectionStartRef:n,_on:r,_value:i,...s}){const d=j.useRef(null),u=r&&typeof r=="object"?r:void 0,m=n,h=d.current,p=m.current,g=e;return a.jsx(Oe,{...s,ref:d,_value:g.format(i??"",h,p),_on:{...u,onInput:(v,_)=>{const z=d.current?.selectionStart;z?.().then(S=>{m.current=S??null});const N=g.parse(typeof _=="string"?_:"");u?.onInput?.(v,N)}}})}function SE(e){const{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,formatter:m,selectionStartRef:h,...p}=e;return a.jsx(e0,{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(jE,{...p,formatter:m,selectionStartRef:h,_value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,N)=>{g.onChange(N),_?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function TE(){const e=j.useMemo(()=>new zE,[]),n=j.useRef(null),i=ld({defaultValues:{iban:"DE89370400440532013000"},mode:"onTouched"}),s=i.watch(),d=u=>{i.handleSubmit(async()=>{})(u)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates formatting a data value in an input field (example IBAN). The data value is formatted to the input field (print format) and vice versa the formatting is removed again (machine format)"})}),a.jsx("section",{className:"w-full",children:a.jsxs("div",{children:[a.jsx(An,{_on:{onSubmit:d},children:a.jsx(SE,{control:i.control,name:"iban",id:"field-iban",formatter:e,selectionStartRef:n,rules:{required:"Please enter an IBAN."},_label:"IBAN",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(s,null,2)})]})})]})}const AE={"input-text":{basic:pE,"hide-msg":vE,"text-formatter":TE,"smart-button":xE,"expert-slot":kE,"select-range":gE}},CE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolKolibri renders the KoliBri logo. The sample show the logo with and without label and with a custom color."})}),a.jsx(be,{class:"block",_level:3,_label:"Regular"}),a.jsx(Ss,{class:"block",style:{width:300}}),a.jsx(be,{class:"block",_level:3,_label:"Without Label"}),a.jsx(Ss,{class:"block",style:{width:300},_labeled:!1}),a.jsx(be,{class:"block",_level:3,_label:"Customized color"}),a.jsx(Ss,{class:"block",style:{width:300},_color:"#cc006e"})]}),EE={kolibri:{basic:CE}},LE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLinkButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text without area description"}),a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text",_ariaDescription:"Link Button Area Description"})]})]}),ma={_href:"#/back-page"},OE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolLinkButton renders a link that looks like a button. The sample shows the different styling variants."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(Xe,{_label:"Primary",_variant:"primary",...ma}),a.jsx(Xe,{_label:"Secondary",_variant:"secondary",...ma}),a.jsx(Xe,{_label:"Normal",_variant:"normal",...ma}),a.jsx(Xe,{_label:"Danger",_variant:"danger",...ma}),a.jsx(Xe,{_label:"Ghost",_variant:"ghost",...ma}),a.jsx(Xe,{_label:"Access Key",_variant:"primary",_accessKey:"c",...ma}),a.jsx(Xe,{_label:"Short Key",_variant:"primary",_shortKey:"s",...ma})]})]}),$E={"link-button":{basic:OE,"aria-description":LE}},NE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"With S access key",_accessKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_accessKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Access key does not appear in label",_accessKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"access key without label",_accessKey:"s"})]})]}),BE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link Text without aria description"}),a.jsx(_e,{_href:"#/back-page",_label:"Link Text",_ariaDescription:"Link Area Description"})]})]}),RE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolLink renders a link. This sample shows disabled links, links with hidden label, the boolean _inline property and links with different CSS"," ",a.jsx("code",{children:"display"}),"-properties."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_inline:!1,_label:"Simple Link"}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_inline:!1,_label:"Simple Link (disabled)"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link"}),a.jsx(_e,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link (disabled)"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(_e,{_href:"#/back-page",_label:"Simple Link"})," It is rendered by default as a ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element."," ",a.jsx(_e,{class:"d-inline-block",_accessKey:"S",_href:"#/back-page",_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element. ",a.jsx(_e,{class:"d-block",_href:"#/back-page",_label:"Simple Link"}),", therefore, I span the entire width of the parent element, causing a line break."]})]})]}),DE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with icons in different alignments and combinations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left",_href:"#/back-page"}),a.jsx(_e,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right",_href:"#/back-page"}),a.jsx(_e,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top",_href:"#/back-page"}),a.jsx(_e,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below",_href:"#/back-page"}),a.jsx(_e,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons",_href:"#/back-page"}),a.jsx(_e,{_icons:"codicon codicon-home",_href:"https://public-ui.github.io/",_label:"I am a external link with an icon on the left",_target:"_blank"}),a.jsx(_e,{_icons:{right:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external linkwith an icon on the right",_target:"_blank"}),a.jsx(_e,{_icons:{top:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with an icon at the top",_target:"_blank"}),a.jsx(_e,{_icons:{bottom:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with icon below",_target:"_blank"}),a.jsx(_e,{_href:"https://public-ui.github.io/",_label:"I am a external link with all icons",_target:"_blank",_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"}})]})]}),ME=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolLink can be used with slot-content instead of a label as well. This sample demonstrates the slot content used to display an image."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"I am a link that is rendered as text"}),a.jsx(_e,{_href:"#/back-page",_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),IE=()=>{const e=od(),n={onClick:r=>{r.preventDefault(),e("/back-page")}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolLink works with react-router. Primary click uses preventDefault() and navigate(...), while right click open in new tab still follows _href. Make sure _href and navigate(...) point to the same path."})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(_e,{_href:"/back-page",_inline:!1,_label:"Go to overview",_on:n})})]})},UE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"With S short key",_shortKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_shortKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Short key does not appear in label",_shortKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"short key without label",_shortKey:"s"})]})]}),HE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolLink with different ",a.jsx("code",{children:"_target"}),"-properties."]})}),a.jsx("div",{className:"text-base d-flex gap-4",children:a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_blank)",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_blank)",_target:"_blank"})})]})})]}),FE={link:{basic:RE,icons:DE,image:ME,target:HE,"aria-description":BE,"access-key":NE,"short-key":UE,"react-router":IE}},KE=()=>{const[e]=Kr(),n=e.get("show-modal"),r=j.useRef(null),i=j.useRef(null),s={onClick:()=>r.current?.openModal()},d={onClick:()=>i.current?.openModal()},u={onClick:()=>r.current?.closeModal()};return j.useEffect(()=>{n==="true"&&(r.current?.openModal(),i.current?.openModal())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["KolModal supports the variants ",a.jsx("code",{children:"blank"})," and ",a.jsx("code",{children:"card"}),". The card variant includes a ",a.jsx("code",{children:"KolCard"})," container and a closer button."]})}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{children:[a.jsx(W,{_label:"Open blank modal",_on:s}),a.jsx(Zv,{ref:r,_label:"Blank modal",_variant:"blank",_width:"40%",children:a.jsxs("div",{className:"bg-white p-4 rounded shadow",children:[a.jsx("p",{className:"mt-0",children:"You must add styling and a close button yourself."}),a.jsx(W,{_label:"Open card modal",className:"mr",_on:d}),a.jsx(W,{_label:"Close",_on:u})]})})]}),a.jsxs("div",{children:[a.jsx(W,{_label:"Open card modal",_on:d}),a.jsx(Zv,{ref:i,_label:"Card modal",_variant:"card",_width:"30%",children:a.jsx("p",{className:"mt-0",children:"This variant wraps content inside a KolCard."})})]})]})]})},VE={modal:{basic:KE}},qE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolNav with a link to the current page. This makes the component automatically assign ",a.jsx("code",{children:'aria-current="page"'}),"to it."]})}),a.jsx(wl,{class:"block w-sm",_label:"Main navigation",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Nav - aria-current (Current page)",_href:"#/nav/aria-current",_active:!0}]})]}),h0=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_href:"#/back-page",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]},{_label:"4 Navigation point with children and onClick",_children:[{_label:"4.1 Nested link",_href:"#/back-page"}],_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0,_children:[{_label:"5.1 Nested link",_href:"#/back-page"}]},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel",_children:[{_label:"6.1 Nested link",_href:"#/back-page"}]}],ZE=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home"},{_label:"4 Navigation point with children and onClick",_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel"}],PE=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page",_active:!0},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]}],GE=()=>{const[e,n]=j.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolNav renders a navigation. In this sample, icons for the navigation elements can be shown or hidden using a checkbox and the navigation can be collapsed, showing only icons and no text labels."})}),a.jsxs("section",{className:"grid gap-8",children:[a.jsx("section",{children:a.jsx(ro,{_label:"Show icons when expanded",_checked:e,_on:{onChange:(r,i)=>{n(i)}}})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation without submenu"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation without submenu",_links:ZE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation with submenu"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation with submenu",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation with submenu active"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation with submenu active",_links:PE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]})]})]})},YE={nav:{basic:GE,"aria-current":qE}},JE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolPagination renders a pagination for datasets. The sample shows the different states and variations of a pagination and the option to change the page size."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(wi,{_max:316514,_page:15475,_siblingCount:3,_label:"Test pagination 1",_on:{}}),a.jsx(wi,{_max:14,_page:14,_siblingCount:1,_boundaryCount:2,_label:"Test pagination 2",_on:{}}),a.jsx(wi,{_max:4,_page:1,_siblingCount:0,_boundaryCount:2,_label:"Test pagination 3",_on:{}}),a.jsx(wi,{_max:4,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 4",_on:{}}),a.jsx(wi,{_max:400,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 5",_on:{},_pageSizeOptions:[10,100]})]})]}),XE={pagination:{basic:JE}},WE=()=>{const{dummyClickEventHandler:e}=Do(),n=ae.useRef(null),r={onClick:e},i=[{_label:"Edit",_icons:"codicon codicon-edit",_on:r},{_label:"Delete",_icons:"codicon codicon-trash",_on:r},{_label:"Duplicate",_icons:"codicon codicon-copy",_on:r}];return j.useEffect(()=>{n.current&&(n.current.showPopover(),n.current.focus())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["The PopoverButton component combines a button with a popover that appears when clicked. The popover can be positioned in different directions (top, right, bottom, left) using the ",a.jsx("code",{children:"_popoverAlign"})," prop."]})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(ub,{_label:"Actions",_variant:"primary",_icons:{right:"codicon codicon-chevron-down"},ref:n,children:a.jsx(ga,{_label:"Action toolbar",_items:i,_orientation:"vertical"})}),a.jsx(ub,{_label:"Help",_icons:"codicon codicon-info",_popoverAlign:"right",_tooltipAlign:"bottom",_hideLabel:!0,children:a.jsxs("div",{className:"w-sm p-2 border border-solid border-gray",children:[a.jsx(be,{_label:"Help Information",_level:0}),a.jsxs("p",{children:[a.jsx("u",{children:"Lorem ipsum dolor sit amet"}),", consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae."]})]})})]})]})},QE={"popover-button":{basic:WE}},eL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolProgress renders a progress indicator. The sample shows the variants "bar" and "cycle" with and without labels.'})}),a.jsxs("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-2",children:[a.jsxs("fieldset",{title:"Percentages",className:"flex flex-col gap-4",children:[a.jsx(nr,{_variant:"bar",_max:7,_value:0}),a.jsx(nr,{_variant:"bar",_max:7,_value:2}),a.jsx(nr,{_variant:"bar",_max:7,_value:7}),a.jsx(nr,{_variant:"cycle",_max:7,_value:6})]}),a.jsxs("fieldset",{title:"Custom units",className:"flex flex-col gap-4",children:[a.jsx(nr,{_label:"Distance",_variant:"bar",_max:65434,_value:7236,_unit:"m"}),a.jsx(nr,{_label:"12 Tasks to do",_variant:"bar",_max:12,_value:5,_unit:"tasks completed"}),a.jsx(nr,{_label:"Max 150 kg",_variant:"cycle",_max:150,_value:42,_unit:"kg"})]})]})]}),oL={progress:{basic:eL}},nL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolQuote renders a quote with optional citation. This sample shows a quote in the variant "inline" with a link for citation.'})}),a.jsx(zx,{_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:"Avian carriers can provide high delay.",_variant:"inline"})]}),tL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows a quote in the "block" variant.'})}),a.jsx(zx,{_label:"RFC 1149",_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:`Avian carriers can provide high delay, low throughput, and low altitude
|
|
25963
25963
|
service. The connection topology is limited to a single point-to-point path
|
|
25964
25964
|
for each carrier, used with standard carriers, but many carriers can be used
|
|
25965
25965
|
without significant interference with each other, outside early spring.
|
|
25966
25966
|
This is because of the 3D ether space available to the carriers, in contrast
|
|
25967
25967
|
to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
|
|
25968
|
-
avoidance system, which increases availability.`,_variant:"block"})]}),rL={quote:{basic:nL,block:tL}},$i=[{label:"No salutation",value:""},{label:"Mrs.",value:"Mrs."},{label:"Mr.",value:"Mr."},{label:"Divers",value:"Divers"}],aL=$i.map((e,n)=>n===0?{label:"Select salutation",value:"",disabled:!0}:e),lL=Qn.reduce((e,n)=>{const r=n.label.charAt(0).toUpperCase();return e[r]||(e[r]={label:r,options:[]}),e[r].options.push({label:n.label,value:n.label}),e},{}),R1=Object.values(lL),D1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Jo,{...n,ref:r,_accessKey:"a",_options:$i,_label:"Salutation",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Jo,{...n,_options:$i,_label:"Disabled",_disabled:!0}),a.jsx(Jo,{...n,_options:aL,_label:"Salutation with error",_msg:{_type:"error",_description:Ue},_touched:!0}),a.jsx(Jo,{...n,_options:Qn,_label:"Multiple choice",_multiple:!0}),a.jsx(Jo,{...n,_options:Qn,_label:"Multiple choice with error",_multiple:!0,_required:!0,_msg:{_type:"error",_description:Ue},_hint:xn,_touched:!0}),a.jsx(Jo,{...n,_options:$i,_label:"With access key",_accessKey:"c"}),a.jsx(Jo,{...n,_options:$i,_label:"With short key",_shortKey:"s"}),a.jsx(Jo,{...n,_options:R1,_label:"With grouped by first letter",_value:"Albanien"}),a.jsx(Jo,{...n,_options:R1,_label:"With grouped by first letter (multiple)",_multiple:!0,_value:["Albanien"]})]})}),iL=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(D1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(D1,{ref:r,...n,_hideLabel:!0})]})]})}),cL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:iL,showButtons:!1})]}),M1={select:{basic:cL}},sL=[{value:"1",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam"},{value:"2",label:"Lorem ipsum dolor"},{value:"3",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."},{value:"4",label:"Lorem ipsum dolor"},{value:"5",label:"Lorem ipsum dolor"},{value:"6",label:"Lorem ipsum dolor"},{value:"7",label:"Lorem ipsum dolor"},{value:"8",label:"Lorem ipsum dolor"},{value:"2",label:"Lorem ipsum dolor"}],I1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(bn,{...e,_hint:xn,_label:"Label",_options:Qn,_value:"de",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}}),a.jsx(bn,{...e,_label:"Disabled",_options:Qn,_value:"de",_disabled:!0}),a.jsx(bn,{...e,_options:Qn,_msg:{_type:"error",_description:Ue},_rows:3,_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(bn,{...e,_label:"With access key",_options:Qn,_value:"de",_accessKey:"c"}),a.jsx(bn,{...e,_label:"With short key",_options:Qn,_value:"de",_shortKey:"s"}),a.jsx(bn,{...e,_label:"With long labels",_options:sL,_placeholder:"Placeholder"}),a.jsx(bn,{...e,_label:"With hidden clear button",_options:Qn,_value:"de",_hideClearButton:!0}),a.jsx(bn,{...e,_hint:xn,_label:"With disabled options",_options:[{value:"bw",label:"Baden-Württemberg"},{value:"by",label:"Bayern",disabled:!0},{value:"be",label:"Berlin"},{value:"bb",label:"Brandenburg"},{value:"hb",label:"Bremen"},{value:"hh",label:"Hamburg"},{value:"he",label:"Hessen"},{value:"mv",label:"Mecklenburg-Vorpommern",disabled:!0},{value:"ni",label:"Niedersachsen",disabled:!0},{value:"nw",label:"Nordrhein-Westfalen"},{value:"rp",label:"Rheinland-Pfalz",disabled:!0},{value:"sl",label:"Saarland"},{value:"sn",label:"Sachsen"},{value:"st",label:"Sachsen-Anhalt",disabled:!0},{value:"sh",label:"Schleswig-Holstein",disabled:!0},{value:"th",label:"Thüringen"}],_value:"be",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}})]}),dL=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(I1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(I1,{...e,_hideLabel:!0})]})]}),uL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"SingleSelect provides a select field for a single value, supported by a search field."})}),a.jsx(yn,{RefComponent:dL,showButtons:!1})]}),fL={"single-select":{basic:uL}},bL=()=>{const e=S.useRef(null);return S.useEffect(()=>{e.current?.focus()},[]),a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(V,{children:[a.jsx("p",{children:"KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus."}),a.jsx("p",{children:"For testing purposes, click into the example and press the tab-key in order to focus the first link."})]}),a.jsx(Pz,{ref:e,_label:"Hidden navigation",_links:[{_label:"To the top",_href:"#/back-page"},{_label:"To the form",_href:"#/back-page"},{_label:"To the end",_href:"#/back-page"}]})]})},mL={"skip-nav":{basic:bL}},hL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolSpin renders a loading indicator. This sample shows the default variant "dot".'})}),a.jsx(Xs,{_show:!0})]}),pL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a custom loading animation. Using the expert slot, it is possible to insert custom animations. Custom animations are not necessarily barrier-free."})}),a.jsx(Xs,{_show:!0,_variant:"none",children:a.jsx("span",{slot:"expert",className:"loader"})})]}),kL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows the KolSpin variant "cycle".'})}),a.jsx(Xs,{_show:!0,_variant:"cycle"})]}),vL=()=>{const[e,n]=S.useState(!0);return S.useEffect(()=>{const r=setInterval(()=>n(i=>!i),3e3);return()=>clearInterval(r)},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolSpin with a label."})}),a.jsx(Xs,{_show:e,_label:e?"Loading data...":"Data loaded."})]})},gL={spin:{basic:hL,cycle:kL,custom:pL,label:vL}},_L=()=>{const{buttonWithTextClickEventHandler:e}=Do(),n={onClick:e},r=[{_label:"Save",_icons:"codicon codicon-save",_on:n},{_label:"Move",_icons:"codicon codicon-move",_on:n},{_label:"Delete",_icons:"codicon codicon-trash",_on:n}];return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["The ",a.jsx("code",{children:"SplitButton"})," component combines a primary action button with a context menu. Clicking the main button triggers the",a.jsx("strong",{children:" Edit"})," action. The context menu opens a vertical list of additional actions:",a.jsx("strong",{children:" Save"}),", ",a.jsx("strong",{children:"Move"}),", and ",a.jsx("strong",{children:"Delete"}),"."]})}),a.jsx("div",{className:"flex flex-col gap-4",children:a.jsx(gl,{_label:"Edit",_on:n,children:a.jsx(ga,{_label:"Action toolbar",_items:r,_orientation:"vertical"})})})]})},xL=()=>{const e=S.useRef(null),n=()=>{e.current?.closePopup()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."})}),a.jsx("div",{className:"flex gap-4",children:a.jsx(gl,{ref:e,_label:"Only the arrow opens",children:a.jsxs("div",{style:{width:300,padding:16,border:"1px solid #ccc"},onClick:r=>r.stopPropagation(),children:[a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."}),a.jsxs("div",{style:{gap:16,display:"flex",flexDirection:"column"},children:[a.jsx(Oe,{_label:"User"}),a.jsx(Oe,{_label:"Role"}),a.jsx(W,{_label:"Close",_on:{onClick:n}})]})]})})})]})},yL={"split-button":{basic:_L,"with-context":xL}},gs=[{left:"Left Example",center:"Center Example",right:"Right Example"}],Li=()=>0,wL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with columns headers and data in different text alignments."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(be,{_label:"Simple table",_level:3}),a.jsx(mo,{_label:"Table for demonstration purposes with different text align properties",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]]},_data:gs,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table with sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with sortable columns",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Li},{label:"center",key:"center",textAlign:"center",compareFn:Li},{label:"right",key:"right",textAlign:"right",compareFn:Li}]]},_data:gs,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table some sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with some but not all columns sortable",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Li},{label:"center",key:"center",textAlign:"center",compareFn:Li},{label:"right",key:"right",textAlign:"right"}]]},_data:gs,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table with vertical heading",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with vertical heading",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]],vertical:[[{label:"Vertical"}]]},_data:gs,className:"block",style:{maxWidth:"600px"}})]})]}),zL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan."})}),a.jsx("section",{className:"w-full flex flex-col",children:a.jsx(mo,{_label:"Business hours",_minWidth:"auto",_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_headers:{vertical:[[{label:"Berlin",rowSpan:2},{label:"München"}]],horizontal:[[{label:"District",rowSpan:2,key:"asp"},{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"},{label:"Saturday",key:"saturday"},{label:"Sunday",key:"sunday"}]]}})})]}),rb=22,SL=[{city:"Reykjavík",temperature:6},{city:"Berlin",temperature:21},{city:"Palma de Mallorca",temperature:29},{city:"Cairo",temperature:35},{city:"Helsinki",temperature:14}],jL={horizontal:[[{label:"City",key:"city"},{label:"Temperature (°C)",key:"temperature",textAlign:"right",compareFn:(e,n,r="ASC")=>{const i=e.temperature,s=n.temperature,d=Math.abs(i-rb),u=Math.abs(s-rb);return d!==u?r==="DESC"?u-d:d-u:r==="DESC"?s-i:i-s},render:(e,n,r)=>{const i=Math.abs(r.temperature-rb);return`${r.temperature} °C (Δ ${i} °C)`}}]]},TL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates how ",a.jsx("code",{children:"compareFn"})," receives the current ",a.jsx("code",{children:"sortDirection"}),". Ascending sorts show cities that are closest to 22 °C first, descending sorts highlight the most extreme temperatures."]})}),a.jsx("section",{className:"w-full",children:a.jsx(mo,{_minWidth:"100%",_label:"Direction aware compare function",_data:SL,_headers:jL,className:"block"})})]}),id=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),ir=[{order:0,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,date:new Date("1986-07-10T11:39:29.539Z")},{order:3,date:new Date("1976-02-02T10:00:36.346Z")},{order:4,date:new Date("1998-07-07T12:50:36.016Z")},{order:5,date:new Date("1994-09-05T05:10:44.078Z")},{order:6,date:new Date("1986-05-23T13:05:01.874Z")},{order:7,date:new Date("1975-06-29T21:51:29.359Z")},{order:8,date:new Date("1974-05-15T23:47:02.499Z")},{order:9,date:new Date("1990-05-27T10:13:19.641Z")},{order:10,date:new Date("1993-10-20T03:54:08.739Z")},{order:11,date:new Date("2000-02-25T11:55:43.705Z")},{order:12,date:new Date("1988-08-27T09:59:12.251Z")},{order:13,date:new Date("1980-10-24T10:41:24.897Z")},{order:14,date:new Date("1995-01-25T12:31:27.983Z")},{order:15,date:new Date("1995-04-15T02:00:39.048Z")},{order:16,date:new Date("1994-03-15T19:13:04.564Z")},{order:17,date:new Date("1999-03-02T16:53:04.418Z")},{order:18,date:new Date("1982-08-23T18:37:38.014Z")},{order:19,date:new Date("1995-06-19T12:39:56.321Z")},{order:20,date:new Date("1994-09-23T15:03:35.746Z")},{order:21,date:new Date("1990-04-15T23:38:02.147Z")},{order:22,date:new Date("1983-08-01T10:36:44.006Z")},{order:23,date:new Date("1986-06-28T21:27:04.588Z")},{order:24,date:new Date("1986-08-14T19:34:40.904Z")},{order:25,date:new Date("1998-07-14T15:52:29.010Z")},{order:26,date:new Date("1985-02-15T18:56:32.344Z")},{order:27,date:new Date("1989-09-06T10:49:30.896Z")},{order:28,date:new Date("1994-09-05T14:21:37.211Z")},{order:29,date:new Date("1995-12-15T23:12:14.411Z")},{order:30,date:new Date("1986-08-14T19:34:40.904Z")},{order:31,date:new Date("1985-02-15T18:56:32.344Z")},{order:32,date:new Date("1989-09-06T10:49:30.896Z")},{order:33,date:new Date("1994-09-05T14:21:37.211Z")},{order:34,date:new Date("1995-12-15T23:12:14.411Z")},{order:35,date:new Date("1986-08-14T19:34:40.904Z")},{order:36,date:new Date("1985-02-15T18:56:32.344Z")},{order:37,date:new Date("1989-09-06T10:49:30.896Z")},{order:38,date:new Date("1994-09-05T14:21:37.211Z")},{order:39,date:new Date("1995-12-15T23:12:14.411Z")},{order:40,date:new Date("1986-08-14T19:34:40.904Z")},{order:41,date:new Date("1985-02-15T18:56:32.344Z")},{order:42,date:new Date("1989-09-06T10:49:30.896Z")},{order:43,date:new Date("1994-09-05T14:21:37.211Z")},{order:44,date:new Date("1995-12-15T23:12:14.411Z")},{order:45,date:new Date("1986-08-14T19:34:40.904Z")},{order:46,date:new Date("1985-02-15T18:56:32.344Z")},{order:47,date:new Date("1989-09-06T10:49:30.896Z")},{order:48,date:new Date("1994-09-05T14:21:37.211Z")},{order:49,date:new Date("1995-12-15T23:12:14.411Z")},{order:50,date:new Date("1986-08-14T19:34:40.904Z")},{order:51,date:new Date("1985-02-15T18:56:32.344Z")},{order:52,date:new Date("1989-09-06T10:49:30.896Z")},{order:53,date:new Date("1994-09-05T14:21:37.211Z")},{order:54,date:new Date("1995-12-15T23:12:14.411Z")},{order:55,date:new Date("1986-08-14T19:34:40.904Z")},{order:56,date:new Date("1985-02-15T18:56:32.344Z")},{order:57,date:new Date("1989-09-06T10:49:30.896Z")},{order:58,date:new Date("1994-09-05T14:21:37.211Z")},{order:59,date:new Date("1995-12-15T23:12:14.411Z")},{order:60,date:new Date("1986-08-14T19:34:40.904Z")},{order:61,date:new Date("1985-02-15T18:56:32.344Z")},{order:62,date:new Date("1989-09-06T10:49:30.896Z")},{order:63,date:new Date("1994-09-05T14:21:37.211Z")},{order:64,date:new Date("1995-12-15T23:12:14.411Z")},{order:65,date:new Date("1986-08-14T19:34:40.904Z")},{order:66,date:new Date("1985-02-15T18:56:32.344Z")},{order:67,date:new Date("1989-09-06T10:49:30.896Z")},{order:68,date:new Date("1994-09-05T14:21:37.211Z")},{order:69,date:new Date("1995-12-15T23:12:14.411Z")},{order:70,date:new Date("1986-08-14T19:34:40.904Z")},{order:71,date:new Date("1985-02-15T18:56:32.344Z")},{order:72,date:new Date("1989-09-06T10:49:30.896Z")},{order:73,date:new Date("1994-09-05T14:21:37.211Z")},{order:74,date:new Date("1995-12-15T23:12:14.411Z")},{order:75,date:new Date("1986-08-14T19:34:40.904Z")},{order:76,date:new Date("1985-02-15T18:56:32.344Z")},{order:77,date:new Date("1989-09-06T10:49:30.896Z")},{order:78,date:new Date("1994-09-05T14:21:37.211Z")},{order:79,date:new Date("1995-12-15T23:12:14.411Z")},{order:80,date:new Date("1986-08-14T19:34:40.904Z")},{order:81,date:new Date("1985-02-15T18:56:32.344Z")},{order:82,date:new Date("1989-09-06T10:49:30.896Z")},{order:83,date:new Date("1994-09-05T14:21:37.211Z")},{order:84,date:new Date("1995-12-15T23:12:14.411Z")},{order:85,date:new Date("1986-08-14T19:34:40.904Z")},{order:86,date:new Date("1985-02-15T18:56:32.344Z")},{order:87,date:new Date("1989-09-06T10:49:30.896Z")},{order:88,date:new Date("1994-09-05T14:21:37.211Z")},{order:89,date:new Date("1995-12-15T23:12:14.411Z")},{order:90,date:new Date("1986-08-14T19:34:40.904Z")},{order:91,date:new Date("1985-02-15T18:56:32.344Z")},{order:92,date:new Date("1989-09-06T10:49:30.896Z")},{order:93,date:new Date("1994-09-05T14:21:37.211Z")},{order:94,date:new Date("1995-12-15T23:12:14.411Z")},{order:95,date:new Date("1986-08-14T19:34:40.904Z")},{order:96,date:new Date("1985-02-15T18:56:32.344Z")},{order:97,date:new Date("1989-09-06T10:49:30.896Z")},{order:98,date:new Date("1994-09-05T14:21:37.211Z")},{order:99,date:new Date("1995-12-15T23:12:14.411Z")}],U1=[{small:"Small Example",large:"Larger Example"}],ab={horizontal:[[{label:"Large Column",key:"large",textAlign:"left",width:"300px"},{label:"Small Column",key:"small",textAlign:"left",width:"200px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"}]]},AL=()=>0,CL=()=>{const[e,n]=S.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and to scroll it using arrow keys."})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsxs("div",{className:"w-[400px] flex flex-col gap-4",children:[a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar.",_minWidth:e?"600px":"300px",_headers:ab,_data:U1,className:"block"}),a.jsx(mo,{_label:"Table for demonstration horizontal scrolling with pagination.",_minWidth:e?"600px":"300px",_headers:{horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",compareFn:AL,render:(r,i,s)=>id.format(s.date)}]]},_data:ir,_pagination:!0}),a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar with auto minWidth.",_minWidth:e?"600px":"300px",_headers:ab,_data:[],className:"block"})]}),a.jsx(ro,{_checked:e,_label:"Toggle width restriction",_variant:"switch",_on:{onChange:(r,i)=>{n(!!i)}}}),a.jsx(be,{_label:"Same table without scrollbar",_level:2,className:"block mt-4"}),a.jsx("p",{className:"mt-0",children:a.jsx("i",{children:"Scrollbar appears on very small viewport sizes"})}),a.jsx(mo,{_label:"Table for demonstration purposes without horizontal scrollbar",_minWidth:"600px",_headers:ab,_data:U1,className:"block",_pagination:!0})]})]})};function EL({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{...n,_on:i})}const Oi=e=>{const n=e.charAt(0).toUpperCase()+e.slice(1);return{label:n,key:e,textAlign:"left",render:(r,i)=>{const s={_label:n,_variant:e,_icons:{right:"codicon codicon-squirrel"}};vn(Fr(r)).render(i.label==="button"?a.jsx(EL,{...s}):a.jsx(Xe,{_href:"#/back-page",...s}))}}},LL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a KolTableStateless with different interactive child elements. It can be used to assure themes show these child elements correctly."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Sl,{_label:"Button styles",_minWidth:"auto",_headerCells:{horizontal:[[Oi("primary"),Oi("secondary"),Oi("normal"),Oi("danger"),Oi("ghost")]],vertical:[[{label:"Button"},{label:"Link-Button"}]]},_data:[{primary:"button",secondary:"button",normal:"button",danger:"button",ghost:"button"},{primary:"link-button",secondary:"link-button",normal:"link-button",danger:"link-button",ghost:"link-button"}],className:"block"}),a.jsx(Sl,{_label:"Link styles",_minWidth:"auto",_headerCells:{horizontal:[[{key:"regular",label:"Regular",textAlign:"left",render:(e,n)=>{const r={_label:n.label,_icons:{right:"codicon codicon-squirrel"}};vn(Fr(e)).render(n.label==="button-link"?a.jsx(Pe,{...r}):a.jsx(_e,{_href:"#/back-page",...r}))}}]],vertical:[[{label:"Link"},{label:"Button-Link"}]]},_data:[{regular:"link"},{regular:"button-link"}],className:"block mt"})]})]}),OL=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),Zs=[{label:"order",key:"order",textAlign:"center",compareFn:(e,n)=>e.order<n.order?-1:n.order<e.order?1:0,sortDirection:"ASC"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>OL.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}],$L={horizontal:[Zs]},NL={vertical:[Zs]},BL=()=>{const[e,n]=S.useState(NL),[r,i]=S.useState($L);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both "order" and "date" columns.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Vertical"}),a.jsx(Pe,{_label:"Reset Table",_on:{onClick:()=>n({vertical:[[...Zs]]})}}),a.jsx(mo,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir.slice(0,10),_headers:e,className:"block",_allowMultiSort:!0})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Horizontal"}),a.jsx(Pe,{_label:"Reset Table",_on:{onClick:()=>i({horizontal:[[...Zs]]})}}),a.jsx(mo,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir,_headers:r,className:"block",_allowMultiSort:!0})]})]})]})},RL=[{id:"1001",name:"John",age:30},{id:"1002",name:"Jane",age:25}],DL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates a column that cannot be hidden in the settings."})}),a.jsx(mo,{_label:"Table with a non-hidable column",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1},{key:"name",label:"Name"},{key:"age",label:"Age"}]]},_data:RL,className:"block",style:{maxWidth:"600px"}})]}),lb={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>id.format(r.date)}]]},ib={_page:2},ML=()=>a.jsxs("div",{className:"w-full grid gap-14",children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with different pagination positions."})}),a.jsxs("section",{className:"w-full flex flex-col gap-14",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at the bottom."}),a.jsx(mo,{_label:"Sample table with pagination at the bottom",_minWidth:"auto",_data:ir,_headers:lb,_pagination:ib,_paginationPosition:"bottom"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at the top."}),a.jsx(mo,{_label:"Sample table with pagination at the top",_minWidth:"auto",_data:ir,_headers:lb,_pagination:ib,_paginationPosition:"top"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at both top and bottom."}),a.jsx(mo,{_label:"Sample table with pagination at both top and bottom",_minWidth:"auto",_data:ir,_headers:lb,_pagination:ib,_paginationPosition:"both"})]})]})]}),IL=[{columnA:"Column A",columnB:"Column B",columnC:"Column C"}],UL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example shows the table with predefined settings."})}),a.jsx(mo,{_label:"Table for demonstration purposes with predefined settings",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{label:"column A",key:"columnA"},{label:"column B",key:"columnB"},{label:"column C",key:"columnC"}]]},_tableSettings:{columns:[{key:"columnC",visible:!0,label:"Column C",width:45},{key:"columnB",visible:!0,label:"Column B",width:20},{key:"columnA",visible:!1,label:"Column A"}]},_data:IL,"_min-width":"500px",className:"block",style:{maxWidth:"600px"}})]}),HL=[{order:0,shipped:!1,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,shipped:!0,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,shipped:!1,date:new Date("1986-07-10T11:39:29.539Z")}];function FL({label:e,icons:n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{_label:e,_icons:n,_on:i})}const KL={horizontal:[[{label:"#",key:"order",textAlign:"center",width:"10em",render:(e,n)=>`Index: ${n.label}`},{label:"Status",key:"shipped",textAlign:"center",width:"10em",render:(e,n)=>{n.label?e.textContent="Order has been dispatched 🚚":e.textContent="Order pending 📦"}},{label:"Date (string)",key:"date",width:"20em",textAlign:"center",render:(e,n)=>{e.innerHTML=`<strong>${id.format(n.label)}</strong>`},compareFn:(e,n)=>e.date.getTime()-n.date.getTime()},{label:"Action (react)",width:"20em",render:e=>{vn(Fr(e)).render(a.jsxs("div",{style:{display:"grid",gridAutoFlow:"column",alignItems:"end",gap:"1rem",maxWidth:"400px"},children:[a.jsx(Oe,{_label:"Input"}),a.jsx(FL,{label:"Save",icons:{left:"codicon codicon-save"}})]}))}}]]},VL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful using React render functions for the cell contents."})}),a.jsx(mo,{_label:"Sort by date column",_minWidth:"auto",_data:HL,_headers:KL,className:"w-full"})]}),qL=[{id:"U-001",name:"Andrea Schmidt",team:"Design",email:"andrea@example.org",status:"Active"},{id:"U-002",name:"Boris Klein",team:"Engineering",email:"boris@example.org",status:"Active"},{id:"U-003",name:"Chiara Russo",team:"Support",email:"chiara@example.org",status:"On leave"}],ZL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This example demonstrates how the table settings respect column metadata. Some columns can be hidden, reordered, or resized, while others stay locked based on their ",a.jsx("code",{children:"hidable"}),", ",a.jsx("code",{children:"sortable"}),", and ",a.jsx("code",{children:"resizable"})," flags."]})}),a.jsx(mo,{_label:"Table with column option restrictions",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1,sortable:!1},{key:"name",label:"Name"},{key:"team",label:"Team",sortable:!1},{key:"email",label:"E-Mail",resizable:!1},{key:"status",label:"Status",hidable:!1,resizable:!1}]]},_tableSettings:{columns:[{hidable:!1,key:"id",label:"ID",sortable:!1,visible:!0,width:15},{key:"name",label:"Name",visible:!0,width:30},{key:"team",label:"Team",sortable:!1,visible:!0,width:20},{key:"email",label:"E-Mail",resizable:!1,visible:!0,width:25},{hidable:!1,key:"status",label:"Status",resizable:!1,visible:!0,width:10}]},_data:qL,className:"block",style:{maxWidth:"720px"}})]}),p0=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),PL={horizontal:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},GL={vertical:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},YL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Vertical headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir.slice(0,10),_headers:GL,className:"block"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Horizontal headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir,_headers:PL,className:"block"})]})]})]}),JL=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function XL({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const WL=()=>{const[e,n]=S.useState(),r={label:h=>`Selection for ${h.name}`,selectedKeys:e?e.map(h=>h.internalIdentifier):["AAA1004"],disabledKeys:["AAA1003","AAA1004"],keyPropertyName:"internalIdentifier"},i=S.useRef(null),s=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};S.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const m=(h,p)=>{vn(Fr(h)).render(a.jsx(XL,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with checkboxes for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_label:"Table with selection checkboxes",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:JL,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(W,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},QL=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"}];function eO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const oO=()=>{const[e,n]=S.useState(),r={label:h=>`Selection for ${h.name}`,multiple:!1,selectedKeys:e?[e.internalIdentifier]:[],keyPropertyName:"internalIdentifier"},i=S.useRef(null),s=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};S.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const m=(h,p)=>{vn(Fr(h)).render(a.jsx(eO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with radio buttons for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_label:"Table with selection radio",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:QL,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(W,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},nO=[{left:"Left Example",center:"Center Example",right:"Right Example"},{},{},{}],tO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_label:"Table for demonstration purposes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"nosort",label:"no sort option"}]],vertical:[[{key:"vertical-left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"vertical-center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"vertical-right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"vertical-nosort",label:"no sort option"}]]},_data:nO,className:"block",style:{maxWidth:"600px"},_on:{onSort:(e,n)=>{console.log(n)}}})})]}),rO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function aO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const lO=()=>{const[e,n]=S.useState(["AAA1002","AAA1004"]),r={label:m=>`Selection for ${m.name}`,selectedKeys:e,keyPropertyName:"internalIdentifier",disabledKeys:["AAA1003","AAA1004"]},i=S.useRef(null),s=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};S.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const u=(m,h)=>{vn(Fr(m)).render(a.jsx(aO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:rO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},iO=[{id:"U1001",name:"Alice Johnson",role:"Admin",email:"alice@example.org",active:"Yes"},{id:"U1002",name:"Bob Smith",role:"Editor",email:"bob@example.org",active:"No"},{id:"U1003",name:"Carol Lee",role:"Viewer",email:"carol@example.org",active:"Yes"},{id:"U1004",name:"David Kim",role:"Editor",email:"david@example.org",active:"Yes"}],cO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsxs("p",{children:["This sample shows ",a.jsx("code",{children:"KolTableStateless"})," with the settings menu enabled via",a.jsx("code",{children:"_hasSettingsMenu"}),". Each column demonstrates a different combination of sorting and resizing options."]}),a.jsxs("ul",{children:[a.jsxs("li",{children:[a.jsx("strong",{children:"ID"})," keeps a fixed width with ",a.jsx("code",{children:"resizable: false"})," while still allowing sorting."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Name"})," represents the default behavior with both sorting and resizing enabled."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Role"})," disables sorting but keeps ",a.jsx("code",{children:"resizable: true"})," so users can widen the column if necessary."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"E-Mail"})," allows sorting but locks its width with ",a.jsx("code",{children:"resizable: false"})," to keep the layout stable."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Active"})," is neither sortable nor resizable to emphasise the status indicator."]})]})]}),a.jsx(Sl,{_label:"Users (stateless with settings menu)",_minWidth:"auto",className:"w-full",_hasSettingsMenu:!0,_headerCells:{horizontal:[[{key:"id",label:"ID",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"name",label:"Name",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!0},{key:"role",label:"Role",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!0},{key:"email",label:"E-Mail",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"active",label:"Active",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!1}]]},_data:iO,_on:{onSort:(e,n)=>console.log("sort",n),onSelectionChange:(e,n)=>console.log("selection",n)}})]}),sO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"Foo Disabled",internalIdentifier:"AAA1003"}];function dO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const uO=()=>{const[e,n]=S.useState(["1002"]),r={label:m=>`Selection for ${m.name}`,multiple:!1,selectedKeys:e,disabledKeys:["AAA1003"],keyPropertyName:"internalIdentifier"},i=S.useRef(null),s=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};S.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const u=(m,h)=>{vn(Fr(m)).render(a.jsx(dO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:sO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},H1=[{common_name:"African elephant",scientific_name:"Loxodonta africana",conservation_status:"Vulnerable",habitat:"Savannas and forests",diet:"Herbivore",geographic_range:"Sub-Saharan Africa"},{common_name:"American bison",scientific_name:"Bison bison",conservation_status:"Near Threatened",habitat:"Grasslands and plains",diet:"Herbivore",geographic_range:"North America"},{common_name:"Arctic fox",scientific_name:"Vulpes lagopus",conservation_status:"Least Concern",habitat:"Tundra",diet:"Omnivore",geographic_range:"Arctic Circle"},{common_name:"Atlantic puffin",scientific_name:"Fratercula arctica",conservation_status:"Vulnerable",habitat:"Coastal cliffs and open ocean",diet:"Carnivore",geographic_range:"North Atlantic Ocean"},{common_name:"Bengal tiger",scientific_name:"Panthera tigris tigris",conservation_status:"Endangered",habitat:"Tropical forests and grasslands",diet:"Carnivore",geographic_range:"Indian subcontinent"},{common_name:"Black rhinoceros",scientific_name:"Diceros bicornis",conservation_status:"Critically Endangered",habitat:"Savannas and shrublands",diet:"Herbivore",geographic_range:"Eastern and Southern Africa"},{common_name:"Blue whale",scientific_name:"Balaenoptera musculus",conservation_status:"Endangered",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"California condor",scientific_name:"Gymnogyps californianus",conservation_status:"Critically Endangered",habitat:"Cliffs and scrublands",diet:"Scavenger",geographic_range:"Western United States"},{common_name:"Cheetah",scientific_name:"Acinonyx jubatus",conservation_status:"Vulnerable",habitat:"Grasslands and savannas",diet:"Carnivore",geographic_range:"Africa and Iran"},{common_name:"Emperor penguin",scientific_name:"Aptenodytes forsteri",conservation_status:"Near Threatened",habitat:"Sea ice and open ocean",diet:"Carnivore",geographic_range:"Antarctica"},{common_name:"Galápagos tortoise",scientific_name:"Chelonoidis niger",conservation_status:"Vulnerable",habitat:"Volcanic highlands",diet:"Herbivore",geographic_range:"Galápagos Islands"},{common_name:"Giant anteater",scientific_name:"Myrmecophaga tridactyla",conservation_status:"Vulnerable",habitat:"Grasslands and forests",diet:"Insectivore",geographic_range:"Central and South America"},{common_name:"Giant panda",scientific_name:"Ailuropoda melanoleuca",conservation_status:"Vulnerable",habitat:"Temperate bamboo forests",diet:"Herbivore",geographic_range:"Central China"},{common_name:"Golden eagle",scientific_name:"Aquila chrysaetos",conservation_status:"Least Concern",habitat:"Mountains and open plains",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Gray wolf",scientific_name:"Canis lupus",conservation_status:"Least Concern",habitat:"Forests and tundra",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Great white shark",scientific_name:"Carcharodon carcharias",conservation_status:"Vulnerable",habitat:"Coastal and offshore waters",diet:"Carnivore",geographic_range:"Global temperate seas"},{common_name:"Green sea turtle",scientific_name:"Chelonia mydas",conservation_status:"Endangered",habitat:"Coastal waters and beaches",diet:"Herbivore",geographic_range:"Tropical and subtropical oceans"},{common_name:"Harpy eagle",scientific_name:"Harpia harpyja",conservation_status:"Near Threatened",habitat:"Tropical rainforests",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Humpback whale",scientific_name:"Megaptera novaeangliae",conservation_status:"Least Concern",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"Jaguar",scientific_name:"Panthera onca",conservation_status:"Near Threatened",habitat:"Tropical rainforests and wetlands",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Koala",scientific_name:"Phascolarctos cinereus",conservation_status:"Vulnerable",habitat:"Eucalyptus woodlands",diet:"Herbivore",geographic_range:"Eastern Australia"},{common_name:"Monarch butterfly",scientific_name:"Danaus plexippus",conservation_status:"Endangered",habitat:"Prairies and meadows",diet:"Herbivore",geographic_range:"North America"},{common_name:"Mountain gorilla",scientific_name:"Gorilla beringei beringei",conservation_status:"Endangered",habitat:"Montane forests",diet:"Herbivore",geographic_range:"Central Africa"},{common_name:"Narwhal",scientific_name:"Monodon monoceros",conservation_status:"Near Threatened",habitat:"Arctic waters",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Okapi",scientific_name:"Okapia johnstoni",conservation_status:"Endangered",habitat:"Rainforests",diet:"Herbivore",geographic_range:"Democratic Republic of the Congo"},{common_name:"Polar bear",scientific_name:"Ursus maritimus",conservation_status:"Vulnerable",habitat:"Sea ice and tundra",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Red kangaroo",scientific_name:"Osphranter rufus",conservation_status:"Least Concern",habitat:"Deserts and grasslands",diet:"Herbivore",geographic_range:"Australia"},{common_name:"Red panda",scientific_name:"Ailurus fulgens",conservation_status:"Endangered",habitat:"Temperate forests",diet:"Omnivore",geographic_range:"Eastern Himalayas"},{common_name:"Snow leopard",scientific_name:"Panthera uncia",conservation_status:"Vulnerable",habitat:"Mountain ranges",diet:"Carnivore",geographic_range:"Central and South Asia"},{common_name:"Southern cassowary",scientific_name:"Casuarius casuarius",conservation_status:"Least Concern",habitat:"Tropical rainforests",diet:"Omnivore",geographic_range:"New Guinea and northeastern Australia"},{common_name:"Tasmanian devil",scientific_name:"Sarcophilus harrisii",conservation_status:"Endangered",habitat:"Forests and coastal scrub",diet:"Carnivore",geographic_range:"Tasmania"},{common_name:"Yellow-eyed penguin",scientific_name:"Megadyptes antipodes",conservation_status:"Endangered",habitat:"Coastal forests and beaches",diet:"Carnivore",geographic_range:"New Zealand"}],fO=Array.from({length:200},(e,n)=>{const r=H1[n%H1.length];return{id:n+1,...r}}),bO={horizontal:[[{label:"ID",key:"id",textAlign:"right"},{label:"Common name",key:"common_name",textAlign:"left"},{label:"Scientific name",key:"scientific_name",textAlign:"left"},{label:"Conservation status",key:"conservation_status",textAlign:"left"},{label:"Habitat",key:"habitat",textAlign:"left"},{label:"Diet",key:"diet",textAlign:"left"},{label:"Geographic range",key:"geographic_range",textAlign:"left"}]]},mO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with horizontal and vertical scrollbars. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table. The data now lists animal species with conservation-focused details."})}),a.jsx(be,{_level:2,_label:"Sticky headers"}),a.jsx(mo,{_label:"Animal species overview",_minWidth:"1200px",_data:fO,_headers:bO,className:"block"})]}),hO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with footer data."})}),a.jsx(mo,{className:"w-full",_label:"Business hours",_minWidth:"auto",_headers:{horizontal:[[{label:"District",key:"asp"},{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"}]]},_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_dataFoot:[{tuesday:"Lunch break from 11 to 14 o'clock"}]})]}),pO={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>id.format(r.date)}]]},kO={_page:2},vO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolTableStateful can be navigated using a pagination."})}),a.jsx("div",{className:"w-full",children:a.jsx(mo,{_label:"Table description",_minWidth:"auto",_data:ir,_headers:pO,_pagination:kO})})]}),gO={table:{"column-alignment":wL,"complex-headers":zL,"horizontal-scrollbar":CL,"interactive-child-elements":LL,"multi-sort":BL,"non-hidable-columns":DL,"pagination-position":ML,"predefined-settings":UL,"render-cell":VL,"settings-column-options":ZL,"sort-data":YL,"direction-aware-sort":TL,"stateful-with-selection":WL,"stateless-with-settings-menu":cO,"stateful-with-single-selection":oO,stateless:tO,"stateless-with-selection":lO,"stateless-with-single-selection":uO,"sticky-header":mO,"with-footer":hO,"with-pagination":vO}},_O=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],xO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_align"})," set to ",a.jsx("code",{children:"left"}),", ",a.jsx("code",{children:"right"}),", ",a.jsx("code",{children:"top"})," and ",a.jsx("code",{children:"bottom"}),"."]})}),a.jsx("div",{className:"grid gap-8",children:["left","right","top","bottom"].map(e=>{const n=`Tabs with ${e} align`;return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:n}),a.jsxs(cr,{_tabs:_O,_align:e,_label:n,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]},e)})})]}),k0=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],yO=k0.map(e=>({...e,_icons:void 0})),wO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs."})}),a.jsxs(cr,{_tabs:yO,_label:"Regular tabs",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]}),a.jsxs(cr,{_tabs:k0,className:"mt-4",_label:"Tabs with icons",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),F1=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],zO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_behavior"})," set to ",a.jsx("code",{children:"select-manual"})," and ",a.jsx("code",{children:"select-automatic"}),"."]}),a.jsx("p",{children:"This property allows controlling when an arrow key is pressed whether the tab change takes place right away or only focuses the tab caption."})]}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:'Tabs with "select manual" behavior'}),a.jsxs(cr,{_tabs:F1,_behavior:"select-manual",_label:"Tabs with select manual behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:'Tabs with "select automatic" behavior'}),a.jsxs(cr,{_tabs:F1,className:"mt-4",_behavior:"select-automatic",_label:"Tabs with select automatic behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]})]})]}),SO=()=>{const[e,n]=S.useState([{_label:"First tab"},{_label:"Second Tab"}]),r=()=>{n([...e,{_label:`Tab #${e.length+1}`}])};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolTabs with a "create tab" button.'})}),a.jsxs(cr,{_tabs:e,className:"mt-4",_label:"Tabs with create button",_hasCreateButton:!0,_on:{onCreate:r},children:[e.map((i,s)=>a.jsxs("div",{slot:`tab-${s}`,children:["Contents of ",i._label]},`tab-${s}`)),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"})]})]})},jO=[{_icons:"codicon codicon-pie-chart",_label:"First Tab",_hideLabel:!0},{_icons:"codicon codicon-calendar",_label:"Second Tab",_hideLabel:!0},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab",_hideLabel:!0},{_icons:"codicon codicon-telescope",_label:"Last Tab",_hideLabel:!0}],TO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTabs with hidden labels."})}),a.jsxs(cr,{_label:"Tabs with icons",_tabs:jO,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),AO={tabs:{basic:wO,"create-button":SO,"icons-only":TO,behavior:zO,align:xO}},CO=`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
|
|
25968
|
+
avoidance system, which increases availability.`,_variant:"block"})]}),rL={quote:{basic:nL,block:tL}},Ni=[{label:"No salutation",value:""},{label:"Mrs.",value:"Mrs."},{label:"Mr.",value:"Mr."},{label:"Divers",value:"Divers"}],aL=Ni.map((e,n)=>n===0?{label:"Select salutation",value:"",disabled:!0}:e),lL=Wn.reduce((e,n)=>{const r=n.label.charAt(0).toUpperCase();return e[r]||(e[r]={label:r,options:[]}),e[r].options.push({label:n.label,value:n.label}),e},{}),D1=Object.values(lL),M1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Jo,{...n,ref:r,_accessKey:"a",_options:Ni,_label:"Salutation",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Jo,{...n,_options:Ni,_label:"Disabled",_disabled:!0}),a.jsx(Jo,{...n,_options:aL,_label:"Salutation with error",_msg:{_type:"error",_description:Ue},_touched:!0}),a.jsx(Jo,{...n,_options:Wn,_label:"Multiple choice",_multiple:!0}),a.jsx(Jo,{...n,_options:Wn,_label:"Multiple choice with error",_multiple:!0,_required:!0,_msg:{_type:"error",_description:Ue},_hint:xn,_touched:!0}),a.jsx(Jo,{...n,_options:Ni,_label:"With access key",_accessKey:"c"}),a.jsx(Jo,{...n,_options:Ni,_label:"With short key",_shortKey:"s"}),a.jsx(Jo,{...n,_options:D1,_label:"With grouped by first letter",_value:"Albanien"}),a.jsx(Jo,{...n,_options:D1,_label:"With grouped by first letter (multiple)",_multiple:!0,_value:["Albanien"]})]})}),iL=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(M1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(M1,{ref:r,...n,_hideLabel:!0})]})]})}),cL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:iL,showButtons:!1})]}),I1={select:{basic:cL}},sL=[{value:"1",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam"},{value:"2",label:"Lorem ipsum dolor"},{value:"3",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."},{value:"4",label:"Lorem ipsum dolor"},{value:"5",label:"Lorem ipsum dolor"},{value:"6",label:"Lorem ipsum dolor"},{value:"7",label:"Lorem ipsum dolor"},{value:"8",label:"Lorem ipsum dolor"},{value:"2",label:"Lorem ipsum dolor"}],U1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(bn,{...e,_hint:xn,_label:"Label",_options:Wn,_value:"de",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}}),a.jsx(bn,{...e,_label:"Disabled",_options:Wn,_value:"de",_disabled:!0}),a.jsx(bn,{...e,_options:Wn,_msg:{_type:"error",_description:Ue},_rows:3,_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(bn,{...e,_label:"With access key",_options:Wn,_value:"de",_accessKey:"c"}),a.jsx(bn,{...e,_label:"With short key",_options:Wn,_value:"de",_shortKey:"s"}),a.jsx(bn,{...e,_label:"With long labels",_options:sL,_placeholder:"Placeholder"}),a.jsx(bn,{...e,_label:"With hidden clear button",_options:Wn,_value:"de",_hideClearButton:!0}),a.jsx(bn,{...e,_hint:xn,_label:"With disabled options",_options:[{value:"bw",label:"Baden-Württemberg"},{value:"by",label:"Bayern",disabled:!0},{value:"be",label:"Berlin"},{value:"bb",label:"Brandenburg"},{value:"hb",label:"Bremen"},{value:"hh",label:"Hamburg"},{value:"he",label:"Hessen"},{value:"mv",label:"Mecklenburg-Vorpommern",disabled:!0},{value:"ni",label:"Niedersachsen",disabled:!0},{value:"nw",label:"Nordrhein-Westfalen"},{value:"rp",label:"Rheinland-Pfalz",disabled:!0},{value:"sl",label:"Saarland"},{value:"sn",label:"Sachsen"},{value:"st",label:"Sachsen-Anhalt",disabled:!0},{value:"sh",label:"Schleswig-Holstein",disabled:!0},{value:"th",label:"Thüringen"}],_value:"be",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}})]}),dL=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(U1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(U1,{...e,_hideLabel:!0})]})]}),uL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"SingleSelect provides a select field for a single value, supported by a search field."})}),a.jsx(yn,{RefComponent:dL,showButtons:!1})]}),fL={"single-select":{basic:uL}},bL=()=>{const e=j.useRef(null);return j.useEffect(()=>{e.current?.focus()},[]),a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(V,{children:[a.jsx("p",{children:"KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus."}),a.jsx("p",{children:"For testing purposes, click into the example and press the tab-key in order to focus the first link."})]}),a.jsx(Pz,{ref:e,_label:"Hidden navigation",_links:[{_label:"To the top",_href:"#/back-page"},{_label:"To the form",_href:"#/back-page"},{_label:"To the end",_href:"#/back-page"}]})]})},mL={"skip-nav":{basic:bL}},hL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolSpin renders a loading indicator. This sample shows the default variant "dot".'})}),a.jsx(Ws,{_show:!0})]}),pL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a custom loading animation. Using the expert slot, it is possible to insert custom animations. Custom animations are not necessarily barrier-free."})}),a.jsx(Ws,{_show:!0,_variant:"none",children:a.jsx("span",{slot:"expert",className:"loader"})})]}),kL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows the KolSpin variant "cycle".'})}),a.jsx(Ws,{_show:!0,_variant:"cycle"})]}),vL=()=>{const[e,n]=j.useState(!0);return j.useEffect(()=>{const r=setInterval(()=>n(i=>!i),3e3);return()=>clearInterval(r)},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolSpin with a label."})}),a.jsx(Ws,{_show:e,_label:e?"Loading data...":"Data loaded."})]})},gL={spin:{basic:hL,cycle:kL,custom:pL,label:vL}},_L=()=>{const{buttonWithTextClickEventHandler:e}=Do(),n={onClick:e},r=[{_label:"Save",_icons:"codicon codicon-save",_on:n},{_label:"Move",_icons:"codicon codicon-move",_on:n},{_label:"Delete",_icons:"codicon codicon-trash",_on:n}];return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["The ",a.jsx("code",{children:"SplitButton"})," component combines a primary action button with a context menu. Clicking the main button triggers the",a.jsx("strong",{children:" Edit"})," action. The context menu opens a vertical list of additional actions:",a.jsx("strong",{children:" Save"}),", ",a.jsx("strong",{children:"Move"}),", and ",a.jsx("strong",{children:"Delete"}),"."]})}),a.jsx("div",{className:"flex flex-col gap-4",children:a.jsx(_l,{_label:"Edit",_on:n,children:a.jsx(ga,{_label:"Action toolbar",_items:r,_orientation:"vertical"})})})]})},xL=()=>{const e=j.useRef(null),n=()=>{e.current?.closePopup()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."})}),a.jsx("div",{className:"flex gap-4",children:a.jsx(_l,{ref:e,_label:"Only the arrow opens",children:a.jsxs("div",{style:{width:300,padding:16,border:"1px solid #ccc"},onClick:r=>r.stopPropagation(),children:[a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."}),a.jsxs("div",{style:{gap:16,display:"flex",flexDirection:"column"},children:[a.jsx(Oe,{_label:"User"}),a.jsx(Oe,{_label:"Role"}),a.jsx(W,{_label:"Close",_on:{onClick:n}})]})]})})})]})},yL={"split-button":{basic:_L,"with-context":xL}},_s=[{left:"Left Example",center:"Center Example",right:"Right Example"}],Oi=()=>0,wL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with columns headers and data in different text alignments."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(be,{_label:"Simple table",_level:3}),a.jsx(mo,{_label:"Table for demonstration purposes with different text align properties",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]]},_data:_s,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table with sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with sortable columns",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Oi},{label:"center",key:"center",textAlign:"center",compareFn:Oi},{label:"right",key:"right",textAlign:"right",compareFn:Oi}]]},_data:_s,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table some sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with some but not all columns sortable",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Oi},{label:"center",key:"center",textAlign:"center",compareFn:Oi},{label:"right",key:"right",textAlign:"right"}]]},_data:_s,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table with vertical heading",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with vertical heading",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]],vertical:[[{label:"Vertical"}]]},_data:_s,className:"block",style:{maxWidth:"600px"}})]})]}),zL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan."})}),a.jsx("section",{className:"w-full flex flex-col",children:a.jsx(mo,{_label:"Business hours",_minWidth:"auto",_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_headers:{vertical:[[{label:"Berlin",rowSpan:2},{label:"München"}]],horizontal:[[{label:"District",rowSpan:2,key:"asp"},{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"},{label:"Saturday",key:"saturday"},{label:"Sunday",key:"sunday"}]]}})})]}),ab=22,jL=[{city:"Reykjavík",temperature:6},{city:"Berlin",temperature:21},{city:"Palma de Mallorca",temperature:29},{city:"Cairo",temperature:35},{city:"Helsinki",temperature:14}],SL={horizontal:[[{label:"City",key:"city"},{label:"Temperature (°C)",key:"temperature",textAlign:"right",compareFn:(e,n,r="ASC")=>{const i=e.temperature,s=n.temperature,d=Math.abs(i-ab),u=Math.abs(s-ab);return d!==u?r==="DESC"?u-d:d-u:r==="DESC"?s-i:i-s},render:(e,n,r)=>{const i=Math.abs(r.temperature-ab);return`${r.temperature} °C (Δ ${i} °C)`}}]]},TL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates how ",a.jsx("code",{children:"compareFn"})," receives the current ",a.jsx("code",{children:"sortDirection"}),". Ascending sorts show cities that are closest to 22 °C first, descending sorts highlight the most extreme temperatures."]})}),a.jsx("section",{className:"w-full",children:a.jsx(mo,{_minWidth:"100%",_label:"Direction aware compare function",_data:jL,_headers:SL,className:"block"})})]}),cd=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),ir=[{order:0,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,date:new Date("1986-07-10T11:39:29.539Z")},{order:3,date:new Date("1976-02-02T10:00:36.346Z")},{order:4,date:new Date("1998-07-07T12:50:36.016Z")},{order:5,date:new Date("1994-09-05T05:10:44.078Z")},{order:6,date:new Date("1986-05-23T13:05:01.874Z")},{order:7,date:new Date("1975-06-29T21:51:29.359Z")},{order:8,date:new Date("1974-05-15T23:47:02.499Z")},{order:9,date:new Date("1990-05-27T10:13:19.641Z")},{order:10,date:new Date("1993-10-20T03:54:08.739Z")},{order:11,date:new Date("2000-02-25T11:55:43.705Z")},{order:12,date:new Date("1988-08-27T09:59:12.251Z")},{order:13,date:new Date("1980-10-24T10:41:24.897Z")},{order:14,date:new Date("1995-01-25T12:31:27.983Z")},{order:15,date:new Date("1995-04-15T02:00:39.048Z")},{order:16,date:new Date("1994-03-15T19:13:04.564Z")},{order:17,date:new Date("1999-03-02T16:53:04.418Z")},{order:18,date:new Date("1982-08-23T18:37:38.014Z")},{order:19,date:new Date("1995-06-19T12:39:56.321Z")},{order:20,date:new Date("1994-09-23T15:03:35.746Z")},{order:21,date:new Date("1990-04-15T23:38:02.147Z")},{order:22,date:new Date("1983-08-01T10:36:44.006Z")},{order:23,date:new Date("1986-06-28T21:27:04.588Z")},{order:24,date:new Date("1986-08-14T19:34:40.904Z")},{order:25,date:new Date("1998-07-14T15:52:29.010Z")},{order:26,date:new Date("1985-02-15T18:56:32.344Z")},{order:27,date:new Date("1989-09-06T10:49:30.896Z")},{order:28,date:new Date("1994-09-05T14:21:37.211Z")},{order:29,date:new Date("1995-12-15T23:12:14.411Z")},{order:30,date:new Date("1986-08-14T19:34:40.904Z")},{order:31,date:new Date("1985-02-15T18:56:32.344Z")},{order:32,date:new Date("1989-09-06T10:49:30.896Z")},{order:33,date:new Date("1994-09-05T14:21:37.211Z")},{order:34,date:new Date("1995-12-15T23:12:14.411Z")},{order:35,date:new Date("1986-08-14T19:34:40.904Z")},{order:36,date:new Date("1985-02-15T18:56:32.344Z")},{order:37,date:new Date("1989-09-06T10:49:30.896Z")},{order:38,date:new Date("1994-09-05T14:21:37.211Z")},{order:39,date:new Date("1995-12-15T23:12:14.411Z")},{order:40,date:new Date("1986-08-14T19:34:40.904Z")},{order:41,date:new Date("1985-02-15T18:56:32.344Z")},{order:42,date:new Date("1989-09-06T10:49:30.896Z")},{order:43,date:new Date("1994-09-05T14:21:37.211Z")},{order:44,date:new Date("1995-12-15T23:12:14.411Z")},{order:45,date:new Date("1986-08-14T19:34:40.904Z")},{order:46,date:new Date("1985-02-15T18:56:32.344Z")},{order:47,date:new Date("1989-09-06T10:49:30.896Z")},{order:48,date:new Date("1994-09-05T14:21:37.211Z")},{order:49,date:new Date("1995-12-15T23:12:14.411Z")},{order:50,date:new Date("1986-08-14T19:34:40.904Z")},{order:51,date:new Date("1985-02-15T18:56:32.344Z")},{order:52,date:new Date("1989-09-06T10:49:30.896Z")},{order:53,date:new Date("1994-09-05T14:21:37.211Z")},{order:54,date:new Date("1995-12-15T23:12:14.411Z")},{order:55,date:new Date("1986-08-14T19:34:40.904Z")},{order:56,date:new Date("1985-02-15T18:56:32.344Z")},{order:57,date:new Date("1989-09-06T10:49:30.896Z")},{order:58,date:new Date("1994-09-05T14:21:37.211Z")},{order:59,date:new Date("1995-12-15T23:12:14.411Z")},{order:60,date:new Date("1986-08-14T19:34:40.904Z")},{order:61,date:new Date("1985-02-15T18:56:32.344Z")},{order:62,date:new Date("1989-09-06T10:49:30.896Z")},{order:63,date:new Date("1994-09-05T14:21:37.211Z")},{order:64,date:new Date("1995-12-15T23:12:14.411Z")},{order:65,date:new Date("1986-08-14T19:34:40.904Z")},{order:66,date:new Date("1985-02-15T18:56:32.344Z")},{order:67,date:new Date("1989-09-06T10:49:30.896Z")},{order:68,date:new Date("1994-09-05T14:21:37.211Z")},{order:69,date:new Date("1995-12-15T23:12:14.411Z")},{order:70,date:new Date("1986-08-14T19:34:40.904Z")},{order:71,date:new Date("1985-02-15T18:56:32.344Z")},{order:72,date:new Date("1989-09-06T10:49:30.896Z")},{order:73,date:new Date("1994-09-05T14:21:37.211Z")},{order:74,date:new Date("1995-12-15T23:12:14.411Z")},{order:75,date:new Date("1986-08-14T19:34:40.904Z")},{order:76,date:new Date("1985-02-15T18:56:32.344Z")},{order:77,date:new Date("1989-09-06T10:49:30.896Z")},{order:78,date:new Date("1994-09-05T14:21:37.211Z")},{order:79,date:new Date("1995-12-15T23:12:14.411Z")},{order:80,date:new Date("1986-08-14T19:34:40.904Z")},{order:81,date:new Date("1985-02-15T18:56:32.344Z")},{order:82,date:new Date("1989-09-06T10:49:30.896Z")},{order:83,date:new Date("1994-09-05T14:21:37.211Z")},{order:84,date:new Date("1995-12-15T23:12:14.411Z")},{order:85,date:new Date("1986-08-14T19:34:40.904Z")},{order:86,date:new Date("1985-02-15T18:56:32.344Z")},{order:87,date:new Date("1989-09-06T10:49:30.896Z")},{order:88,date:new Date("1994-09-05T14:21:37.211Z")},{order:89,date:new Date("1995-12-15T23:12:14.411Z")},{order:90,date:new Date("1986-08-14T19:34:40.904Z")},{order:91,date:new Date("1985-02-15T18:56:32.344Z")},{order:92,date:new Date("1989-09-06T10:49:30.896Z")},{order:93,date:new Date("1994-09-05T14:21:37.211Z")},{order:94,date:new Date("1995-12-15T23:12:14.411Z")},{order:95,date:new Date("1986-08-14T19:34:40.904Z")},{order:96,date:new Date("1985-02-15T18:56:32.344Z")},{order:97,date:new Date("1989-09-06T10:49:30.896Z")},{order:98,date:new Date("1994-09-05T14:21:37.211Z")},{order:99,date:new Date("1995-12-15T23:12:14.411Z")}],H1=[{small:"Small Example",large:"Larger Example"}],lb={horizontal:[[{label:"Large Column",key:"large",textAlign:"left",width:"300px"},{label:"Small Column",key:"small",textAlign:"left",width:"200px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"}]]},AL=()=>0,CL=()=>{const[e,n]=j.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and to scroll it using arrow keys."})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsxs("div",{className:"w-[400px] flex flex-col gap-4",children:[a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar.",_minWidth:e?"600px":"300px",_headers:lb,_data:H1,className:"block"}),a.jsx(mo,{_label:"Table for demonstration horizontal scrolling with pagination.",_minWidth:e?"600px":"300px",_headers:{horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",compareFn:AL,render:(r,i,s)=>cd.format(s.date)}]]},_data:ir,_pagination:!0}),a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar with auto minWidth.",_minWidth:e?"600px":"300px",_headers:lb,_data:[],className:"block"})]}),a.jsx(ro,{_checked:e,_label:"Toggle width restriction",_variant:"switch",_on:{onChange:(r,i)=>{n(!!i)}}}),a.jsx(be,{_label:"Same table without scrollbar",_level:2,className:"block mt-4"}),a.jsx("p",{className:"mt-0",children:a.jsx("i",{children:"Scrollbar appears on very small viewport sizes"})}),a.jsx(mo,{_label:"Table for demonstration purposes without horizontal scrollbar",_minWidth:"600px",_headers:lb,_data:H1,className:"block",_pagination:!0})]})]})};function EL({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{...n,_on:i})}const $i=e=>{const n=e.charAt(0).toUpperCase()+e.slice(1);return{label:n,key:e,textAlign:"left",render:(r,i)=>{const s={_label:n,_variant:e,_icons:{right:"codicon codicon-squirrel"}};vn(Fr(r)).render(i.label==="button"?a.jsx(EL,{...s}):a.jsx(Xe,{_href:"#/back-page",...s}))}}},LL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a KolTableStateless with different interactive child elements. It can be used to assure themes show these child elements correctly."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Sl,{_label:"Button styles",_minWidth:"auto",_headerCells:{horizontal:[[$i("primary"),$i("secondary"),$i("normal"),$i("danger"),$i("ghost")]],vertical:[[{label:"Button"},{label:"Link-Button"}]]},_data:[{primary:"button",secondary:"button",normal:"button",danger:"button",ghost:"button"},{primary:"link-button",secondary:"link-button",normal:"link-button",danger:"link-button",ghost:"link-button"}],className:"block"}),a.jsx(Sl,{_label:"Link styles",_minWidth:"auto",_headerCells:{horizontal:[[{key:"regular",label:"Regular",textAlign:"left",render:(e,n)=>{const r={_label:n.label,_icons:{right:"codicon codicon-squirrel"}};vn(Fr(e)).render(n.label==="button-link"?a.jsx(Pe,{...r}):a.jsx(_e,{_href:"#/back-page",...r}))}}]],vertical:[[{label:"Link"},{label:"Button-Link"}]]},_data:[{regular:"link"},{regular:"button-link"}],className:"block mt"})]})]}),OL=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),Ps=[{label:"order",key:"order",textAlign:"center",compareFn:(e,n)=>e.order<n.order?-1:n.order<e.order?1:0,sortDirection:"ASC"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>OL.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}],$L={horizontal:[Ps]},NL={vertical:[Ps]},BL=()=>{const[e,n]=j.useState(NL),[r,i]=j.useState($L);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both "order" and "date" columns.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Vertical"}),a.jsx(Pe,{_label:"Reset Table",_on:{onClick:()=>n({vertical:[[...Ps]]})}}),a.jsx(mo,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir.slice(0,10),_headers:e,className:"block",_allowMultiSort:!0})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Horizontal"}),a.jsx(Pe,{_label:"Reset Table",_on:{onClick:()=>i({horizontal:[[...Ps]]})}}),a.jsx(mo,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir,_headers:r,className:"block",_allowMultiSort:!0})]})]})]})},RL=[{id:"1001",name:"John",age:30},{id:"1002",name:"Jane",age:25}],DL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates a column that cannot be hidden in the settings."})}),a.jsx(mo,{_label:"Table with a non-hidable column",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1},{key:"name",label:"Name"},{key:"age",label:"Age"}]]},_data:RL,className:"block",style:{maxWidth:"600px"}})]}),ib={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>cd.format(r.date)}]]},cb={_page:2},ML=()=>a.jsxs("div",{className:"w-full grid gap-14",children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with different pagination positions."})}),a.jsxs("section",{className:"w-full flex flex-col gap-14",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at the bottom."}),a.jsx(mo,{_label:"Sample table with pagination at the bottom",_minWidth:"auto",_data:ir,_headers:ib,_pagination:cb,_paginationPosition:"bottom"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at the top."}),a.jsx(mo,{_label:"Sample table with pagination at the top",_minWidth:"auto",_data:ir,_headers:ib,_pagination:cb,_paginationPosition:"top"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at both top and bottom."}),a.jsx(mo,{_label:"Sample table with pagination at both top and bottom",_minWidth:"auto",_data:ir,_headers:ib,_pagination:cb,_paginationPosition:"both"})]})]})]}),IL=[{columnA:"Column A",columnB:"Column B",columnC:"Column C"}],UL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example shows the table with predefined settings."})}),a.jsx(mo,{_label:"Table for demonstration purposes with predefined settings",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{label:"column A",key:"columnA"},{label:"column B",key:"columnB"},{label:"column C",key:"columnC"}]]},_tableSettings:{columns:[{key:"columnC",visible:!0,label:"Column C",width:45},{key:"columnB",visible:!0,label:"Column B",width:20},{key:"columnA",visible:!1,label:"Column A"}]},_data:IL,"_min-width":"500px",className:"block",style:{maxWidth:"600px"}})]}),HL=[{order:0,shipped:!1,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,shipped:!0,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,shipped:!1,date:new Date("1986-07-10T11:39:29.539Z")}];function FL({label:e,icons:n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{_label:e,_icons:n,_on:i})}const KL={horizontal:[[{label:"#",key:"order",textAlign:"center",width:"10em",render:(e,n)=>`Index: ${n.label}`},{label:"Status",key:"shipped",textAlign:"center",width:"10em",render:(e,n)=>{n.label?e.textContent="Order has been dispatched 🚚":e.textContent="Order pending 📦"}},{label:"Date (string)",key:"date",width:"20em",textAlign:"center",render:(e,n)=>{e.innerHTML=`<strong>${cd.format(n.label)}</strong>`},compareFn:(e,n)=>e.date.getTime()-n.date.getTime()},{label:"Action (react)",width:"20em",render:e=>{vn(Fr(e)).render(a.jsxs("div",{style:{display:"grid",gridAutoFlow:"column",alignItems:"end",gap:"1rem",maxWidth:"400px"},children:[a.jsx(Oe,{_label:"Input"}),a.jsx(FL,{label:"Save",icons:{left:"codicon codicon-save"}})]}))}}]]},VL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful using React render functions for the cell contents."})}),a.jsx(mo,{_label:"Sort by date column",_minWidth:"auto",_data:HL,_headers:KL,className:"w-full"})]}),qL=[{id:"U-001",name:"Andrea Schmidt",team:"Design",email:"andrea@example.org",status:"Active"},{id:"U-002",name:"Boris Klein",team:"Engineering",email:"boris@example.org",status:"Active"},{id:"U-003",name:"Chiara Russo",team:"Support",email:"chiara@example.org",status:"On leave"}],ZL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This example demonstrates how the table settings respect column metadata. Some columns can be hidden, reordered, or resized, while others stay locked based on their ",a.jsx("code",{children:"hidable"}),", ",a.jsx("code",{children:"sortable"}),", and ",a.jsx("code",{children:"resizable"})," flags."]})}),a.jsx(mo,{_label:"Table with column option restrictions",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1,sortable:!1},{key:"name",label:"Name"},{key:"team",label:"Team",sortable:!1},{key:"email",label:"E-Mail",resizable:!1},{key:"status",label:"Status",hidable:!1,resizable:!1}]]},_tableSettings:{columns:[{hidable:!1,key:"id",label:"ID",sortable:!1,visible:!0,width:15},{key:"name",label:"Name",visible:!0,width:30},{key:"team",label:"Team",sortable:!1,visible:!0,width:20},{key:"email",label:"E-Mail",resizable:!1,visible:!0,width:25},{hidable:!1,key:"status",label:"Status",resizable:!1,visible:!0,width:10}]},_data:qL,className:"block",style:{maxWidth:"720px"}})]}),p0=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),PL={horizontal:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},GL={vertical:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},YL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Vertical headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir.slice(0,10),_headers:GL,className:"block"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Horizontal headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir,_headers:PL,className:"block"})]})]})]}),JL=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function XL({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const WL=()=>{const[e,n]=j.useState(),r={label:h=>`Selection for ${h.name}`,selectedKeys:e?e.map(h=>h.internalIdentifier):["AAA1004"],disabledKeys:["AAA1003","AAA1004"],keyPropertyName:"internalIdentifier"},i=j.useRef(null),s=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const m=(h,p)=>{vn(Fr(h)).render(a.jsx(XL,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with checkboxes for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_label:"Table with selection checkboxes",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:JL,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(W,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},QL=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"}];function eO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const oO=()=>{const[e,n]=j.useState(),r={label:h=>`Selection for ${h.name}`,multiple:!1,selectedKeys:e?[e.internalIdentifier]:[],keyPropertyName:"internalIdentifier"},i=j.useRef(null),s=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const m=(h,p)=>{vn(Fr(h)).render(a.jsx(eO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with radio buttons for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_label:"Table with selection radio",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:QL,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(W,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},nO=[{left:"Left Example",center:"Center Example",right:"Right Example"},{},{},{}],tO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_label:"Table for demonstration purposes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"nosort",label:"no sort option"}]],vertical:[[{key:"vertical-left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"vertical-center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"vertical-right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"vertical-nosort",label:"no sort option"}]]},_data:nO,className:"block",style:{maxWidth:"600px"},_on:{onSort:(e,n)=>{console.log(n)}}})})]}),rO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function aO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const lO=()=>{const[e,n]=j.useState(["AAA1002","AAA1004"]),r={label:m=>`Selection for ${m.name}`,selectedKeys:e,keyPropertyName:"internalIdentifier",disabledKeys:["AAA1003","AAA1004"]},i=j.useRef(null),s=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const u=(m,h)=>{vn(Fr(m)).render(a.jsx(aO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:rO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},iO=[{id:"U1001",name:"Alice Johnson",role:"Admin",email:"alice@example.org",active:"Yes"},{id:"U1002",name:"Bob Smith",role:"Editor",email:"bob@example.org",active:"No"},{id:"U1003",name:"Carol Lee",role:"Viewer",email:"carol@example.org",active:"Yes"},{id:"U1004",name:"David Kim",role:"Editor",email:"david@example.org",active:"Yes"}],cO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsxs("p",{children:["This sample shows ",a.jsx("code",{children:"KolTableStateless"})," with the settings menu enabled via",a.jsx("code",{children:"_hasSettingsMenu"}),". Each column demonstrates a different combination of sorting and resizing options."]}),a.jsxs("ul",{children:[a.jsxs("li",{children:[a.jsx("strong",{children:"ID"})," keeps a fixed width with ",a.jsx("code",{children:"resizable: false"})," while still allowing sorting."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Name"})," represents the default behavior with both sorting and resizing enabled."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Role"})," disables sorting but keeps ",a.jsx("code",{children:"resizable: true"})," so users can widen the column if necessary."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"E-Mail"})," allows sorting but locks its width with ",a.jsx("code",{children:"resizable: false"})," to keep the layout stable."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Active"})," is neither sortable nor resizable to emphasise the status indicator."]})]})]}),a.jsx(Sl,{_label:"Users (stateless with settings menu)",_minWidth:"auto",className:"w-full",_hasSettingsMenu:!0,_headerCells:{horizontal:[[{key:"id",label:"ID",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"name",label:"Name",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!0},{key:"role",label:"Role",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!0},{key:"email",label:"E-Mail",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"active",label:"Active",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!1}]]},_data:iO,_on:{onSort:(e,n)=>console.log("sort",n),onSelectionChange:(e,n)=>console.log("selection",n)}})]}),sO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"Foo Disabled",internalIdentifier:"AAA1003"}];function dO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const uO=()=>{const[e,n]=j.useState(["1002"]),r={label:m=>`Selection for ${m.name}`,multiple:!1,selectedKeys:e,disabledKeys:["AAA1003"],keyPropertyName:"internalIdentifier"},i=j.useRef(null),s=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const u=(m,h)=>{vn(Fr(m)).render(a.jsx(dO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:sO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},F1=[{common_name:"African elephant",scientific_name:"Loxodonta africana",conservation_status:"Vulnerable",habitat:"Savannas and forests",diet:"Herbivore",geographic_range:"Sub-Saharan Africa"},{common_name:"American bison",scientific_name:"Bison bison",conservation_status:"Near Threatened",habitat:"Grasslands and plains",diet:"Herbivore",geographic_range:"North America"},{common_name:"Arctic fox",scientific_name:"Vulpes lagopus",conservation_status:"Least Concern",habitat:"Tundra",diet:"Omnivore",geographic_range:"Arctic Circle"},{common_name:"Atlantic puffin",scientific_name:"Fratercula arctica",conservation_status:"Vulnerable",habitat:"Coastal cliffs and open ocean",diet:"Carnivore",geographic_range:"North Atlantic Ocean"},{common_name:"Bengal tiger",scientific_name:"Panthera tigris tigris",conservation_status:"Endangered",habitat:"Tropical forests and grasslands",diet:"Carnivore",geographic_range:"Indian subcontinent"},{common_name:"Black rhinoceros",scientific_name:"Diceros bicornis",conservation_status:"Critically Endangered",habitat:"Savannas and shrublands",diet:"Herbivore",geographic_range:"Eastern and Southern Africa"},{common_name:"Blue whale",scientific_name:"Balaenoptera musculus",conservation_status:"Endangered",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"California condor",scientific_name:"Gymnogyps californianus",conservation_status:"Critically Endangered",habitat:"Cliffs and scrublands",diet:"Scavenger",geographic_range:"Western United States"},{common_name:"Cheetah",scientific_name:"Acinonyx jubatus",conservation_status:"Vulnerable",habitat:"Grasslands and savannas",diet:"Carnivore",geographic_range:"Africa and Iran"},{common_name:"Emperor penguin",scientific_name:"Aptenodytes forsteri",conservation_status:"Near Threatened",habitat:"Sea ice and open ocean",diet:"Carnivore",geographic_range:"Antarctica"},{common_name:"Galápagos tortoise",scientific_name:"Chelonoidis niger",conservation_status:"Vulnerable",habitat:"Volcanic highlands",diet:"Herbivore",geographic_range:"Galápagos Islands"},{common_name:"Giant anteater",scientific_name:"Myrmecophaga tridactyla",conservation_status:"Vulnerable",habitat:"Grasslands and forests",diet:"Insectivore",geographic_range:"Central and South America"},{common_name:"Giant panda",scientific_name:"Ailuropoda melanoleuca",conservation_status:"Vulnerable",habitat:"Temperate bamboo forests",diet:"Herbivore",geographic_range:"Central China"},{common_name:"Golden eagle",scientific_name:"Aquila chrysaetos",conservation_status:"Least Concern",habitat:"Mountains and open plains",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Gray wolf",scientific_name:"Canis lupus",conservation_status:"Least Concern",habitat:"Forests and tundra",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Great white shark",scientific_name:"Carcharodon carcharias",conservation_status:"Vulnerable",habitat:"Coastal and offshore waters",diet:"Carnivore",geographic_range:"Global temperate seas"},{common_name:"Green sea turtle",scientific_name:"Chelonia mydas",conservation_status:"Endangered",habitat:"Coastal waters and beaches",diet:"Herbivore",geographic_range:"Tropical and subtropical oceans"},{common_name:"Harpy eagle",scientific_name:"Harpia harpyja",conservation_status:"Near Threatened",habitat:"Tropical rainforests",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Humpback whale",scientific_name:"Megaptera novaeangliae",conservation_status:"Least Concern",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"Jaguar",scientific_name:"Panthera onca",conservation_status:"Near Threatened",habitat:"Tropical rainforests and wetlands",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Koala",scientific_name:"Phascolarctos cinereus",conservation_status:"Vulnerable",habitat:"Eucalyptus woodlands",diet:"Herbivore",geographic_range:"Eastern Australia"},{common_name:"Monarch butterfly",scientific_name:"Danaus plexippus",conservation_status:"Endangered",habitat:"Prairies and meadows",diet:"Herbivore",geographic_range:"North America"},{common_name:"Mountain gorilla",scientific_name:"Gorilla beringei beringei",conservation_status:"Endangered",habitat:"Montane forests",diet:"Herbivore",geographic_range:"Central Africa"},{common_name:"Narwhal",scientific_name:"Monodon monoceros",conservation_status:"Near Threatened",habitat:"Arctic waters",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Okapi",scientific_name:"Okapia johnstoni",conservation_status:"Endangered",habitat:"Rainforests",diet:"Herbivore",geographic_range:"Democratic Republic of the Congo"},{common_name:"Polar bear",scientific_name:"Ursus maritimus",conservation_status:"Vulnerable",habitat:"Sea ice and tundra",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Red kangaroo",scientific_name:"Osphranter rufus",conservation_status:"Least Concern",habitat:"Deserts and grasslands",diet:"Herbivore",geographic_range:"Australia"},{common_name:"Red panda",scientific_name:"Ailurus fulgens",conservation_status:"Endangered",habitat:"Temperate forests",diet:"Omnivore",geographic_range:"Eastern Himalayas"},{common_name:"Snow leopard",scientific_name:"Panthera uncia",conservation_status:"Vulnerable",habitat:"Mountain ranges",diet:"Carnivore",geographic_range:"Central and South Asia"},{common_name:"Southern cassowary",scientific_name:"Casuarius casuarius",conservation_status:"Least Concern",habitat:"Tropical rainforests",diet:"Omnivore",geographic_range:"New Guinea and northeastern Australia"},{common_name:"Tasmanian devil",scientific_name:"Sarcophilus harrisii",conservation_status:"Endangered",habitat:"Forests and coastal scrub",diet:"Carnivore",geographic_range:"Tasmania"},{common_name:"Yellow-eyed penguin",scientific_name:"Megadyptes antipodes",conservation_status:"Endangered",habitat:"Coastal forests and beaches",diet:"Carnivore",geographic_range:"New Zealand"}],fO=Array.from({length:200},(e,n)=>{const r=F1[n%F1.length];return{id:n+1,...r}}),bO={horizontal:[[{label:"ID",key:"id",textAlign:"right"},{label:"Common name",key:"common_name",textAlign:"left"},{label:"Scientific name",key:"scientific_name",textAlign:"left"},{label:"Conservation status",key:"conservation_status",textAlign:"left"},{label:"Habitat",key:"habitat",textAlign:"left"},{label:"Diet",key:"diet",textAlign:"left"},{label:"Geographic range",key:"geographic_range",textAlign:"left"}]]},mO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with horizontal and vertical scrollbars. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table. The data now lists animal species with conservation-focused details."})}),a.jsx(be,{_level:2,_label:"Sticky headers"}),a.jsx(mo,{_label:"Animal species overview",_minWidth:"1200px",_data:fO,_headers:bO,className:"block"})]}),hO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with footer data."})}),a.jsx(mo,{className:"w-full",_label:"Business hours",_minWidth:"auto",_headers:{horizontal:[[{label:"District",key:"asp"},{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"}]]},_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_dataFoot:[{tuesday:"Lunch break from 11 to 14 o'clock"}]})]}),pO={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>cd.format(r.date)}]]},kO={_page:2},vO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows how KolTableStateful can be navigated using a pagination."})}),a.jsx("div",{className:"w-full",children:a.jsx(mo,{_label:"Table description",_minWidth:"auto",_data:ir,_headers:pO,_pagination:kO})})]}),gO={table:{"column-alignment":wL,"complex-headers":zL,"horizontal-scrollbar":CL,"interactive-child-elements":LL,"multi-sort":BL,"non-hidable-columns":DL,"pagination-position":ML,"predefined-settings":UL,"render-cell":VL,"settings-column-options":ZL,"sort-data":YL,"direction-aware-sort":TL,"stateful-with-selection":WL,"stateless-with-settings-menu":cO,"stateful-with-single-selection":oO,stateless:tO,"stateless-with-selection":lO,"stateless-with-single-selection":uO,"sticky-header":mO,"with-footer":hO,"with-pagination":vO}},_O=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],xO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_align"})," set to ",a.jsx("code",{children:"left"}),", ",a.jsx("code",{children:"right"}),", ",a.jsx("code",{children:"top"})," and ",a.jsx("code",{children:"bottom"}),"."]})}),a.jsx("div",{className:"grid gap-8",children:["left","right","top","bottom"].map(e=>{const n=`Tabs with ${e} align`;return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:n}),a.jsxs(cr,{_tabs:_O,_align:e,_label:n,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]},e)})})]}),k0=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],yO=k0.map(e=>({...e,_icons:void 0})),wO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs."})}),a.jsxs(cr,{_tabs:yO,_label:"Regular tabs",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]}),a.jsxs(cr,{_tabs:k0,className:"mt-4",_label:"Tabs with icons",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),K1=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],zO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_behavior"})," set to ",a.jsx("code",{children:"select-manual"})," and ",a.jsx("code",{children:"select-automatic"}),"."]}),a.jsx("p",{children:"This property allows controlling when an arrow key is pressed whether the tab change takes place right away or only focuses the tab caption."})]}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:'Tabs with "select manual" behavior'}),a.jsxs(cr,{_tabs:K1,_behavior:"select-manual",_label:"Tabs with select manual behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:'Tabs with "select automatic" behavior'}),a.jsxs(cr,{_tabs:K1,className:"mt-4",_behavior:"select-automatic",_label:"Tabs with select automatic behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]})]})]}),jO=()=>{const[e,n]=j.useState([{_label:"First tab"},{_label:"Second Tab"}]),r=()=>{n([...e,{_label:`Tab #${e.length+1}`}])};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolTabs with a "create tab" button.'})}),a.jsxs(cr,{_tabs:e,className:"mt-4",_label:"Tabs with create button",_hasCreateButton:!0,_on:{onCreate:r},children:[e.map((i,s)=>a.jsxs("div",{slot:`tab-${s}`,children:["Contents of ",i._label]},`tab-${s}`)),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"})]})]})},SO=[{_icons:"codicon codicon-pie-chart",_label:"First Tab",_hideLabel:!0},{_icons:"codicon codicon-calendar",_label:"Second Tab",_hideLabel:!0},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab",_hideLabel:!0},{_icons:"codicon codicon-telescope",_label:"Last Tab",_hideLabel:!0}],TO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTabs with hidden labels."})}),a.jsxs(cr,{_label:"Tabs with icons",_tabs:SO,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),AO={tabs:{basic:wO,"create-button":jO,"icons-only":TO,behavior:zO,align:xO}},CO=`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
|
|
25969
25969
|
magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
|
25970
25970
|
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing
|
|
25971
25971
|
elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
|
|
25972
25972
|
et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
|
|
25973
|
-
sit amet.`,EO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_adjustHeight"}),"-property of KolTextarea. The textarea automatically grows with its content."]})}),a.jsx(An,{className:"w-full",children:a.jsx(Qe,{_adjustHeight:!0,_value:CO,_label:"Text input (auto grow)"})})]}),K1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Qe,{...n,ref:r,_placeholder:"Placeholder",_label:"Text"})}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_required:!0,_msg:{_type:"error",_description:Ue},_label:"Text",_touched:!0,_hint:xn}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"info",_description:"Just a hint"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Qe,{...n,ref:r,_accessKey:"T",_label:"Text (3 rows)",_rows:3}),a.jsx(Qe,{...n,ref:r,_label:"Text (placeholder)",_rows:3,_placeholder:"Placeholder"}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & placeholder)",_rows:3,_placeholder:"Placeholder",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (readonly)",_rows:3,_placeholder:"Placeholder",_readOnly:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & value)",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"With access key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_accessKey:"c"}),a.jsx(Qe,{...n,ref:r,_label:"With short key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_shortKey:"s"})]})}),LO=S.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(K1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(K1,{ref:r,...n,_hideLabel:!0})]})]})}),OO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states."})}),a.jsx(yn,{RefComponent:LO,showButtons:!1})]}),$O=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_resize"}),"-property of KolTextarea. The sample textarea can (only) be resized in the given direction."]})}),a.jsx(An,{className:"w-full",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(Qe,{_label:"Text input (unset)"}),a.jsx(Qe,{_resize:"vertical",_label:"Text input (vertical)"}),a.jsx(Qe,{_resize:"none",_label:"Text input (none)"})]})})]}),NO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_rows"}),"-property of KolTextarea. The sample textarea has a fixed row number of 10."]})}),a.jsx(An,{className:"w-full",children:a.jsx(Qe,{_rows:10,_label:"Texteingabe"})})]}),BO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["The sample demonstrates various ",a.jsx("code",{children:"KolTextarea"})," configurations — contrasting soft vs. hard ",a.jsx("code",{children:"_maxLength"})," settings and the optional",a.jsx("code",{children:"_hasCounter"})," — including one instance without length limits."]})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsx(Qe,{_label:"Textarea with soft max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0,_maxLengthBehavior:"soft"}),a.jsx(Qe,{_label:"Textarea with max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20}),a.jsx(Qe,{_label:"Textarea with max length and counter",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0}),a.jsx(Qe,{_label:"Textarea with counter",_value:"Lorem Ipsum",className:"mt-2",_hasCounter:!0})]})]}),RO={textarea:{basic:OO,"adjust-height":EO,resize:$O,rows:NO,"with-counter":BO}},DO=()=>{const[e]=Kr(),n=e.get("type"),r=Vr.getInstance(document),i=()=>{r.enqueue({description:"Toasty",label:"Initial Toast",type:"warning",onClose:()=>{console.log("Simple toast has been closed.")}})};S.useEffect(()=>{n&&r.enqueue({description:"Toasty",label:`Toast with type '${n}'`,type:n})},[n,r]);const s=()=>{r.enqueue({render:(m,{close:h})=>{vn(m).render(a.jsx(a.Fragment,{children:a.jsx(W,{_label:"Hello World from Toast!",_on:{onClick:()=>{console.log("Toast Button clicked!"),h()}}})}))},label:"Initial Toast",type:"warning"})},d=async()=>{const m=await r.enqueue({description:"I will disappear in two seconds...",label:"Good Bye",type:"warning"});m&&setTimeout(m,2e3)},u=()=>{r.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options."})}),a.jsx("section",{className:"grid gap-4",children:a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:"Show simple toast",_on:{onClick:i}}),a.jsx(W,{_label:"Show complex toast",_on:{onClick:s}}),a.jsx(W,{_label:"Show toast and close after 2 seconds",_on:{onClick:()=>void d()}}),a.jsx(W,{_label:"Close all toasts",_on:{onClick:u}})]})})]})},Nm=["default","info","success","warning","error"],MO=Nm.map(e=>({label:e,value:e})),V1=e=>typeof e=="string"&&Nm.includes(e),IO=()=>{const[e]=Kr(),n=e.get("type"),r=V1(n)?n:void 0,[i,s]=S.useState(()=>r??"default"),d=S.useMemo(()=>Vr.getInstance(document),[]);S.useEffect(()=>(Nm.forEach(p=>{d.enqueue({description:"Toasty",label:`Toast with type '${p}'`,type:p})}),()=>{d.closeAll()}),[d]),S.useEffect(()=>{r&&s(r)},[r]);const u=(p,g)=>{V1(g)&&s(g)},m=()=>{d.enqueue({description:"Toasty",label:`Toast with type '${i}'`,type:i})},h=()=>{d.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options. Use the configuration below to choose a toast type and open a toast with the card variant."})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(Lo,{_orientation:"horizontal",_label:"Toast type",_value:i,_options:MO,_on:{onChange:u}}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:`Open ${i} toast`,_on:{onClick:m}}),a.jsx(W,{_label:"Close all toasts",_on:{onClick:h}})]})]})]})},UO={toast:{basic:DO,configurator:IO}},HO=()=>{const e=[{_label:"Back",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_label:"Simple Link 3"},{_label:"Bold"}];return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolToolbars renders a set of given control elements grouped into one toolbar where focus can be moved using the keyboard arrow keys. The sample features button and link elements."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(be,{_label:"Orientation horizontal",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e}),a.jsx(be,{_label:"Orientation vertical",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e,_orientation:"vertical"})]})]})},FO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolToolbars with some of the elements disabled."})}),a.jsx(ga,{_label:"Toolbar",class:"block w-fit",_items:[{_label:"Back",_disabled:!0,_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_disabled:!0,_label:"Simple Link 3"},{_label:"Bold"}]})]}),KO={toolbar:{basic:HO,disabled:FO}},VO=()=>{const e=["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵"];return e[Math.floor(Math.random()*e.length)]},qO=()=>{const e=S.useContext(wm),{subPage:n}=B4(),[r,i]=S.useState("1 Home"),[s,d]=S.useState(!1),[u,m]=S.useState(!1),[h,p]=S.useState(!0),g=()=>{i(`1 Home ${VO()}`)},v=_=>({_href:`#/tree/basic/${_}${e?"?hideMenus":""}`,_active:_===n});return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded."})}),a.jsxs(zx,{_label:"Sitemap",class:"block w-fit",children:[a.jsx(Qo,{_label:r,...v("home")}),a.jsxs(Qo,{_label:"2 About (open initially)",...v("about"),_open:!0,children:[a.jsx(Qo,{_label:"2.0 Legal",...v("legal")}),a.jsxs(Qo,{_label:"2.1 Team",...v("team"),children:[a.jsx(Qo,{_label:"2.1.1. Values",...v("values")}),a.jsxs(Qo,{_label:"2.1.2. Members",...v("members"),children:[a.jsx(Qo,{_label:"2.1.2.1 Humans",...v("humans")}),s&&a.jsx(Qo,{_label:"2.1.2.2 Pets",...v("pets")})]}),a.jsx(Qo,{_label:"2.1.3 Locations",...v("locations"),children:u&&a.jsxs(Qo,{_label:"2.1.3.1 Europe",...v("europe"),children:[a.jsx(Qo,{_label:"2.1.3.1.1 Denmark",...v("denmark")}),a.jsx(Qo,{_label:"2.1.3.1.2 Netherlands",...v("netherlands")})]})})]})]}),h&&a.jsxs(Qo,{_label:"3. Products",...v("products"),children:[a.jsxs(Qo,{_label:"3.1 Home",...v("home-products"),children:[a.jsx(Qo,{_label:"3.1.1 Refrigerators",...v("fridges")}),a.jsx(Qo,{_label:"3.1.2 Coffee makers",...v("coffee-makers")})]}),a.jsx(Qo,{_label:"3.1 Office",...v("office-products"),children:a.jsx(Qo,{_label:"3.2.1 Printers",...v("printers")})})]})]}),a.jsxs("p",{children:["Current tree item: ",n??"none"]}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:"Change label for '1 Home'",_on:{onClick:g}}),a.jsx(W,{_label:"Toggle '2.1.2.2 Pets'",_on:{onClick:()=>d(!s)}}),a.jsx(W,{_label:"Toggle '2.2.1 Europe' (two levels at once)",_on:{onClick:()=>m(!u)}}),a.jsx(W,{_label:"Toggle '3. Products'",_on:{onClick:()=>p(!h)}})]})]})},ZO={tree:{"basic/:subPage":qO}},PO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolVersion renders a label showing the given version number."})}),a.jsx(Ws,{_label:"1.1.1"})]}),GO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolVersion inline with text paragraph content."})}),a.jsxs("p",{children:[a.jsx(Ws,{_label:"1.0.0"})," Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."]})]}),YO={version:{basic:PO,context:GO}},JO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example show how different components works with tabIndex."})}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Le,{_label:"Button",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(W,{_label:"Button 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(W,{_disabled:!0,_label:"Button 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(W,{_label:"Button 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(W,{_label:"Button 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Le,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Pe,{_label:"ButtonLink 1, Tabindex 4",tabIndex:4}),a.jsx(Pe,{_disabled:!0,_label:"ButtonLink 2, Tabindex 3",tabIndex:3}),a.jsx(Pe,{_label:"ButtonLink 3, Tabindex 2",tabIndex:2}),a.jsx(Pe,{_label:"ButtonLink 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"Combobox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_n,{_hint:xn,_label:"Combobox 1, Tabindex 4",_suggestions:et,_value:"Deutschland",tabIndex:4}),a.jsx(_n,{_disabled:!0,_hint:xn,_label:"Combobox 2, Tabindex 3",_suggestions:et,_value:"Deutschland",tabIndex:3}),a.jsx(_n,{_touched:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Combobox 3, Tabindex 2",_suggestions:et,_value:"Deutschland",tabIndex:2}),a.jsx(_n,{_hint:xn,_label:"Combobox 4, Tabindex 1",_suggestions:et,_value:"Deutschland",tabIndex:1})]})}),a.jsx(Le,{_label:"InputCheckbox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(ro,{_label:"InputCheckbox 4, Tabindex 1",_value:!1,tabIndex:4}),a.jsx(ro,{_disabled:!0,_label:"InputCheckbox 3, Tabindex 2",_value:!1,tabIndex:3}),a.jsx(ro,{_touched:!0,_label:"InputCheckbox 2, Tabindex 3",_msg:{_type:"error",_description:Ue},_value:!1,tabIndex:2}),a.jsx(ro,{_label:"InputCheckbox 1, Tabindex 4",_value:!1,tabIndex:1})]})}),a.jsx(Le,{_label:"InputColor",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Go,{_disabled:!0,_value:"#f08080",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Go,{_touched:!0,_value:"#f08080",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputDate",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(He,{_disabled:!0,_type:"datetime-local",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(He,{_touched:!0,_type:"datetime-local",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputEmail",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Yo,{_label:"InputEmail 1, Tabindex 4",tabIndex:4}),a.jsx(Yo,{_disabled:!0,_label:"InputEmail 2, Tabindex 3",tabIndex:3}),a.jsx(Yo,{_touched:!0,_label:"InputEmail 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Yo,{_label:"InputEmail 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputFile",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ro,{_label:"InputFile 1, Tabindex 4",tabIndex:4}),a.jsx(Ro,{_disabled:!0,_label:"InputFile 2, Tabindex 3",tabIndex:3}),a.jsx(Ro,{_touched:!0,_label:"InputFile 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Ro,{_label:"InputFile 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputNumber",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(jo,{_label:"InputNumber 1, Tabindex 4",tabIndex:4}),a.jsx(jo,{_disabled:!0,_label:"InputNumber 2, Tabindex 3",tabIndex:3}),a.jsx(jo,{_touched:!0,_label:"InputNumber 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(jo,{_label:"InputNumber 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputPassword",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Eo,{_label:"InputPassword 1, Tabindex 4",tabIndex:4}),a.jsx(Eo,{_disabled:!0,_label:"InputPassword 2, Tabindex 3",tabIndex:3}),a.jsx(Eo,{_touched:!0,_label:"InputPassword 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Eo,{_label:"InputPassword 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputRadio",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Lo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 1, Tabindex 4",tabIndex:4}),a.jsx(Lo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 2, Tabindex 3",_disabled:!0,tabIndex:3}),a.jsx(Lo,{_touched:!0,_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2})," ",a.jsx(Lo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputRange",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(en,{_label:"InputRange 1, Tabindex 4",_min:0,_max:50,tabIndex:4}),a.jsx(en,{_disabled:!0,_label:"InputRange 2, Tabindex 3",_min:0,_max:50,tabIndex:3}),a.jsx(en,{_touched:!0,_label:"InputRange 3, Tabindex 2",_min:0,_max:50,_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(en,{_label:"InputRange 4, Tabindex 1",_min:0,_max:50,tabIndex:1})]})}),a.jsx(Le,{_label:"InputText",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Oe,{_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(Oe,{_disabled:!0,_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(Oe,{_touched:!0,_label:"InputText 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Oe,{_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Xe,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(Xe,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Le,{_label:"Link",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_e,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",tabIndex:2}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"SingleSelect",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(bn,{_label:"InputText 1, Tabindex 4",_options:Qn,_value:"de",tabIndex:4}),a.jsx(bn,{_disabled:!0,_label:"InputText 2, Tabindex 3",_options:Qn,_value:"de",tabIndex:3}),a.jsx(bn,{_touched:!0,_label:"InputText 3, Tabindex 2",_options:Qn,_msg:{_type:"error",_description:Ue},_value:"de",tabIndex:2}),a.jsx(bn,{_label:"InputText 4, Tabindex 1",_options:Qn,_value:"de",tabIndex:1})]})}),a.jsx(Le,{_label:"SplitButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(gl,{_label:"InputText 1, Tabindex 4",tabIndex:4,children:"Dropdown-Inhalt"}),a.jsx(gl,{_label:"InputText 2, Tabindex 3",tabIndex:3,_disabled:!0,children:"Dropdown-Inhalt"}),a.jsx(gl,{_label:"InputText 3, Tabindex 2",tabIndex:2,children:"Dropdown-Inhalt"}),a.jsx(gl,{_label:"InputText 4, Tabindex 1",tabIndex:1,children:"Dropdown-Inhalt"})]})}),a.jsx(Le,{_label:"Textarea",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Qe,{_label:"Textarea 1, Tabindex 4",_rows:3,_placeholder:"Placeholder",tabIndex:4}),a.jsx(Qe,{_disabled:!0,_label:"Textarea 2, Tabindex 3",_rows:3,_placeholder:"Placeholder",tabIndex:3}),a.jsx(Qe,{_touched:!0,_label:"Textarea 3, Tabindex 2",_rows:3,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Qe,{_label:"Textarea 4, Tabindex 1",_rows:3,_placeholder:"Placeholder",tabIndex:1})]})})]})]}),XO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates how tooltip animation duration and width can be customized via",a.jsx("code",{children:"--kolibri-tooltip-animation-duration"})," and ",a.jsx("code",{children:"--kol-tooltip-width"}),"."]})}),a.jsxs("div",{className:"flex justify-center items-center gap-4",children:[a.jsx(W,{_label:"Custom duration",_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":"2500ms"},_icons:"codicon codicon-clock",_on:n}),a.jsx(W,{_label:"Custom width",_hideLabel:!0,style:{"--kol-tooltip-width":"400px"},_icons:"codicon codicon-arrow-both",_on:n})]})]})},WO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form."})}),a.jsxs(An,{_on:{onSubmit:()=>{console.error("submitted"),alert("submitted")}},children:[a.jsx(He,{_label:"date",_name:"datum"}),a.jsx(W,{_label:"Submit",_type:"submit"})]})]}),_s=[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],QO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"This example shows how deactivated interactive elements are displayed."}),a.jsxs("ul",{children:[a.jsx("li",{children:"Deactivated interactive elements pose a particular challenge for accessibility."}),a.jsx("li",{children:"It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended."}),a.jsx("li",{children:"Deactivated interactive elements should be labelled clearly and legibly."}),a.jsx("li",{children:"Deactivated interactive elements have a tooltip for sighted people and aria labelling for the screen readers reading mode if they are represented by an interpretable graphic."})]}),a.jsx("p",{children:"This implementation ensures standardized use for all users."})]}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Le,{_label:"Button",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Label",_on:n}),a.jsx(W,{_disabled:!0,_label:"Label",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n}),a.jsx(W,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n})]})}),a.jsx(Le,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Label"}),a.jsx(Pe,{_disabled:!0,_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_disabled:!0,_label:"Label"})]})}),a.jsx(Le,{_label:"Link",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#",_label:"Label"}),a.jsx(_e,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(_e,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(_e,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Le,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Xe,{_href:"#",_label:"Label"}),a.jsx(Xe,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(Xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Xe,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Le,{_label:"Accordion",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Label",children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rn,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),a.jsx(Le,{_label:"Details",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rr,{_label:"Label",children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rr,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),[ro,Go,He,Yo,Ro,jo,Eo,en,Oe].map(r=>{const s=r.render.displayName;return a.jsx(Le,{_label:s,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label"}),a.jsx(r,{_disabled:!0,_label:"Label"}),a.jsx(r,{_hideLabel:!0,_label:"Label"}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label"})]})},s)}),[Lo,Jo].map(r=>{const s=r.render.displayName;return a.jsx(Le,{_label:s,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label",_options:_s}),a.jsx(r,{_disabled:!0,_label:"Label",_options:_s}),a.jsx(r,{_hideLabel:!0,_label:"Label",_options:_s}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label",_options:_s})]})},s)}),a.jsx(Le,{_label:"KolTextarea",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qe,{_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_hideLabel:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_hideLabel:!0,_label:"Label",_rows:3})]})})]})]})},v0=()=>{const e=new Map;return e.set("inputCheckbox",(n,r)=>a.jsx(ro,{className:"w-full",_name:"checkbox",_label:"Checkbox",ref:r})),e.set("inputColor",(n,r)=>a.jsx(Go,{className:"w-full",_name:"color",_label:"Color",ref:r})),e.set("inputDate",(n,r)=>a.jsx(He,{className:"w-full",_name:"date",_label:"Date",ref:r})),e.set("inputEmail",(n,r)=>a.jsx(Yo,{className:"w-full",_name:"email",_label:"Email",ref:r})),e.set("inputFile",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"File",ref:r})),e.set("inputFileMultiple",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"Files (multiple)",_multiple:!0,ref:r})),e.set("inputNumber",(n,r)=>a.jsx(jo,{className:"w-full",_name:"number",_label:"Number",ref:r})),e.set("inputPassword",(n,r)=>a.jsx(Eo,{className:"w-full",_name:"password",_label:"Password",ref:r})),e.set("inputRadio",(n,r)=>a.jsx(Lo,{className:"w-full",_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_value:"A",ref:r})),e.set("inputRange",(n,r)=>a.jsx(en,{className:"w-full",_name:"range",_label:"Range",ref:r})),e.set("inputText",(n,r)=>a.jsx(Oe,{className:"w-full",_name:"text",_label:"Text",ref:r})),e.set("select",(n,r)=>a.jsx(Jo,{className:"w-full",_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("selectMultiple",(n,r)=>a.jsx(Jo,{className:"w-full",_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2,ref:r})),e.set("singleSelect",(n,r)=>a.jsx(bn,{className:"w-full",_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("textarea",(n,r)=>a.jsx(Qe,{className:"w-full",_name:"textarea",_label:"Textarea",_rows:5,ref:r})),e.set("accordion",(n,r)=>a.jsx(rn,{className:"w-full",_label:"Accordion here",ref:r})),e.set("button",(n,r)=>a.jsx("div",{children:a.jsx(W,{_label:"Button here",ref:r})})),e.set("buttonLink",(n,r)=>a.jsx(Pe,{_label:"ButtonLink here",ref:r})),e.set("combobox",(n,r)=>a.jsx(_n,{className:"w-full",_label:"KolCombobox here",_suggestions:[],ref:r})),e.set("details",(n,r)=>a.jsx(rr,{className:"w-full",_label:"Details here",ref:r,children:"detailed details"})),e.set("link",(n,r)=>a.jsx(_e,{className:"w-full",_label:"Link here",_href:"#",ref:r})),e.set("linkButton",(n,r)=>a.jsx("div",{children:a.jsx(Xe,{_label:"LinkButton here",_href:"#",ref:r})})),e},q1=e=>{const r=[...S.useMemo(()=>v0(),[]).keys()].map(i=>i);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample serves for automated tests of the focus state for input components. When loading one of the examples linked below, focus will be set on the element initially. When testing manually, you may have to reload the page after opening an example."})}),e.invalidComponent&&a.jsx(gn,{_type:"error",_variant:"card",children:"Component not found."}),a.jsx(be,{_level:2,_label:"Focus Test Cases"}),a.jsx("ul",{children:r.map(i=>a.jsx("li",{children:a.jsx(_e,{_label:i,_href:`#/scenarios/focus-elements?component=${i}`})},i))})]})},e$=()=>{const e=S.useRef(null),n=S.useMemo(()=>v0(),[]),[r]=Kr(),i=r.get("component");if(S.useLayoutEffect(()=>{setTimeout(()=>{e.current?.focus()},500)},[e]),i){const s=n.get(i);if(!s)return a.jsx(q1,{invalidComponent:!0});const d=S.forwardRef(s);return a.jsx(d,{ref:e})}else return a.jsx(q1,{})},o$=[{name:"Elephant",species:"Loxodonta",habitat:"Savannah",diet:"Herbivore",lifespan:60},{name:"Tiger",species:"Panthera tigris",habitat:"Forest",diet:"Carnivore",lifespan:20},{name:"Kangaroo",species:"Macropus",habitat:"Grassland",diet:"Herbivore",lifespan:23},{name:"Penguin",species:"Aptenodytes forsteri",habitat:"Antarctica",diet:"Carnivore",lifespan:20},{name:"Giraffe",species:"Giraffa camelopardalis",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Panda",species:"Ailuropoda melanoleuca",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Dolphin",species:"Delphinus delphis",habitat:"Ocean",diet:"Carnivore",lifespan:40},{name:"Eagle",species:"Aquila chrysaetos",habitat:"Mountains",diet:"Carnivore",lifespan:30},{name:"Koala",species:"Phascolarctos cinereus",habitat:"Forest",diet:"Herbivore",lifespan:18},{name:"Lion",species:"Panthera leo",habitat:"Savannah",diet:"Carnivore",lifespan:15},{name:"Zebra",species:"Equus quagga",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Wolf",species:"Canis lupus",habitat:"Forest",diet:"Carnivore",lifespan:14},{name:"Cheetah",species:"Acinonyx jubatus",habitat:"Savannah",diet:"Carnivore",lifespan:12},{name:"Polar Bear",species:"Ursus maritimus",habitat:"Arctic",diet:"Carnivore",lifespan:25},{name:"Rhinoceros",species:"Rhinocerotidae",habitat:"Savannah",diet:"Herbivore",lifespan:40},{name:"Hippopotamus",species:"Hippopotamus amphibius",habitat:"Rivers",diet:"Herbivore",lifespan:45},{name:"Chimpanzee",species:"Pan troglodytes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Orangutan",species:"Pongo",habitat:"Forest",diet:"Omnivore",lifespan:45},{name:"Leopard",species:"Panthera pardus",habitat:"Forest",diet:"Carnivore",lifespan:17},{name:"Hyena",species:"Hyaenidae",habitat:"Savannah",diet:"Carnivore",lifespan:25},{name:"Crocodile",species:"Crocodylidae",habitat:"Rivers",diet:"Carnivore",lifespan:70},{name:"Alligator",species:"Alligatoridae",habitat:"Swamps",diet:"Carnivore",lifespan:50},{name:"Ostrich",species:"Struthio camelus",habitat:"Savannah",diet:"Omnivore",lifespan:40},{name:"Flamingo",species:"Phoenicopterus",habitat:"Lakes",diet:"Omnivore",lifespan:30},{name:"Peacock",species:"Pavo cristatus",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Parrot",species:"Psittaciformes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Toucan",species:"Ramphastidae",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Sloth",species:"Folivora",habitat:"Forest",diet:"Herbivore",lifespan:30},{name:"Armadillo",species:"Dasypodidae",habitat:"Grassland",diet:"Omnivore",lifespan:15},{name:"Anteater",species:"Myrmecophaga tridactyla",habitat:"Forest",diet:"Insectivore",lifespan:14},{name:"Bat",species:"Chiroptera",habitat:"Caves",diet:"Omnivore",lifespan:20},{name:"Otter",species:"Lutrinae",habitat:"Rivers",diet:"Carnivore",lifespan:16},{name:"Beaver",species:"Castor",habitat:"Rivers",diet:"Herbivore",lifespan:24},{name:"Moose",species:"Alces alces",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Deer",species:"Cervidae",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Bison",species:"Bison bison",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Buffalo",species:"Syncerus caffer",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Camel",species:"Camelus",habitat:"Desert",diet:"Herbivore",lifespan:50},{name:"Llama",species:"Lama glama",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Alpaca",species:"Vicugna pacos",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Goat",species:"Capra aegagrus hircus",habitat:"Mountains",diet:"Herbivore",lifespan:18},{name:"Sheep",species:"Ovis aries",habitat:"Grassland",diet:"Herbivore",lifespan:12},{name:"Cow",species:"Bos taurus",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Pig",species:"Sus scrofa domesticus",habitat:"Farm",diet:"Omnivore",lifespan:15},{name:"Chicken",species:"Gallus gallus domesticus",habitat:"Farm",diet:"Omnivore",lifespan:10}],n$=[{_icons:"codicon codicon-pie-chart",_label:"Erster Tab"},{_icons:"codicon codicon-calendar",_label:"Zweiter Tab",_disabled:!0},{_icons:"codicon codicon-briefcase",_label:"Deaktivierter Tab",_disabled:!0},{_icons:"codicon codicon-telescope",_label:"Letzter Tab",_disabled:!0}],Z1={horizontal:[[{key:"name",label:"Name",textAlign:"left",width:"400px"},{key:"species",label:"Species",textAlign:"left",width:"400px"},{key:"habitat",label:"Habitat",textAlign:"left",width:"400px"},{key:"diet",label:"Diet",textAlign:"left",width:"400px"},{key:"lifespan",label:"lifespan",textAlign:"right",width:"400px"}]]};function t$(){const[e]=S.useState(()=>{const n=Z1.horizontal[0];let r=0;for(const i of n)r+=parseFloat(i.width?.replace("px","")||"0");return`${r}px`});return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This advanced scenario demonstrates a complex layout with KolTable featuring horizontal scrollbar within a tab-based navigation system. The table automatically calculates its minimum width based on column definitions and provides smooth horizontal scrolling when content exceeds the container width. This example showcases real-world usage in a dashboard-like interface with sidebar navigation and tabbed content areas."})}),a.jsxs("div",{className:"mainlayout",children:[a.jsx("aside",{className:"nav-area",children:a.jsx(yl,{_label:"Main navigation",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),a.jsx("div",{className:"content",children:a.jsxs(cr,{_tabs:n$,_align:"top",_label:"Demo Tabs",children:[a.jsx("div",{style:{overflow:"hidden"},children:a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar",_minWidth:e,_headers:Z1,_data:o$,_pagination:{_page:1},className:"block"})}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]})})]})]})}const r$=()=>{const e="Unrecognized phone number.",n="Choose at least two and up to five toppings.",r=["Mushrooms","Bell Peppers","Onions","Olives","Spinach","Tomatoes","Artichokes","Zucchini","Jalapeños","Basil"],i=[{label:"United States +1",value:"1"},{label:"Greece +30 ",value:"30"},{label:"Germany +49",value:"49"},{label:"Japan +81",value:"81"}];return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"This sample shows how input components can be grouped together with just one error message, without repeating the message for every field."}),a.jsx("p",{children:"The sample only demonstrates how the errors can be displayed, an actual validation logic is not part of the example."})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Phone number"}),a.jsx(gn,{_alert:!0,_type:"error",_label:e}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-2xl",children:[a.jsx(Jo,{_options:i,_label:"CountryCode ",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Oe,{_label:"Area code",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Oe,{_label:"Local number",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0})]})]}),a.jsxs("fieldset",{className:"mt",children:[a.jsx("legend",{children:"Pizza toppings"}),a.jsx(gn,{_alert:!0,_type:"error",_label:n}),r.map(s=>a.jsx(ro,{_label:s,_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0},s))]})]})},g0=S.createContext(void 0),_0=S.createContext(!1),fn=e=>{const n=S.useRef(null),[r,i]=S.useState(void 0),[s,d]=S.useState(e.inputProps._value),u=e.formatter||JSON.stringify,m=S.useContext(g0),h=S.useContext(_0),p=async()=>{const v=await n.current?.getValue();i(v)};S.useEffect(()=>{const v=()=>{p()};return m?.addEventListener("runAll",v),()=>{m?.removeEventListener("runAll",v)}},[m]);const g=Object.fromEntries(["onInput","onChange","onBlur","onClick","onFocus","onMouseDown"].map(v=>[v,(_,z)=>{h&&console.log(e.inputProps._label,v,z,_),v==="onInput"&&d(z)}]));return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4","data-testid":e.testId,children:[a.jsx(e.InputComponent,{ref:n,_on:g,...e.inputProps,_value:s}),a.jsx(W,{_label:"getValue()",_on:{onClick:()=>{p()}}}),a.jsx("pre",{className:"text-base",children:u(r)})]})})},a$=()=>{const e=S.useMemo(()=>new EventTarget,[]),[n,r]=S.useState(!0);return a.jsx(a.Fragment,{children:a.jsx(g0.Provider,{value:e,children:a.jsxs(_0.Provider,{value:n,children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows how the input components ",a.jsx("code",{children:"getValue()"}),` method works. It's called when clicking the "getValue()" button and prints the current value right next to itself.`]})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Le,{_label:"Sample options",className:"block ha mb-8",children:a.jsx(ro,{_label:"Log events to console",_value:!0,_checked:n,_on:{onChange:(i,s)=>r(s)}})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(fn,{testId:"scenario-inputText",InputComponent:Oe,inputProps:{_label:"InputText"}}),a.jsx(fn,{testId:"scenario-inputCheckboxString",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (value)",_value:"Checkbox True Value"}}),a.jsx(fn,{testId:"scenario-inputCheckboxBoolean",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (boolean)"}}),a.jsx(fn,{testId:"scenario-inputColor",InputComponent:Go,inputProps:{_label:"KolInputColor"}}),a.jsx(fn,{testId:"scenario-inputDate",InputComponent:He,inputProps:{_label:"KolInputDate"}}),a.jsx(fn,{testId:"scenario-inputEmail",InputComponent:Yo,inputProps:{_label:"KolInputEmail"}}),a.jsx(fn,{testId:"scenario-inputFile",InputComponent:Ro,inputProps:{_label:"KolInputFile"},formatter:i=>i instanceof FileList?`FileList{${Array.from(i).map(s=>s.name).join(", ")}}`:JSON.stringify(i)}),a.jsx(fn,{testId:"scenario-inputNumber",InputComponent:jo,inputProps:{_label:"KolInputNumber"}}),a.jsx(fn,{testId:"scenario-inputPassword",InputComponent:Eo,inputProps:{_label:"KolInputPassword"}}),a.jsx(fn,{testId:"scenario-inputRange",InputComponent:en,inputProps:{_label:"KolInputRange"}}),a.jsx(fn,{testId:"scenario-inputRadio",InputComponent:Lo,inputProps:{_label:"KolInputRadio",_orientation:"horizontal",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"New York"}}),a.jsx(fn,{testId:"scenario-select",InputComponent:Jo,inputProps:{_label:"KolSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}]}}),a.jsx(fn,{testId:"scenario-singleSelect",InputComponent:bn,inputProps:{_label:"KolSingleSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"Rosenheim"}}),a.jsx(fn,{testId:"scenario-combobox",InputComponent:_n,inputProps:{_label:"KolCombobox",_suggestions:et,_value:"Deutschland"}}),a.jsx(fn,{testId:"scenario-textarea",InputComponent:Qe,inputProps:{_label:"KolTextarea"}}),a.jsx(fn,{testId:"scenario-button",InputComponent:W,inputProps:{_label:"KolButton",_variant:"ghost",_value:"KolButton value"}}),a.jsx(fn,{testId:"scenario-buttonLink",InputComponent:Pe,inputProps:{_label:"KolButtonLink",_value:"KolButtonLink value"}}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx("div",{}),a.jsx(W,{_label:"Run all",_variant:"primary",_on:{onClick:()=>{e.dispatchEvent(new Event("runAll"))}}})]})]})]})]})})})},l$=333,i$=new Array(l$).fill(0).map((e,n)=>n+1),c$=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example renders many KoliBri components to show the performance."})}),a.jsx("div",{className:"w-full grid gap-4",children:i$.map(e=>a.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[a.jsx(Oe,{_label:`TextInput #${e}`}),a.jsx(jo,{_label:`NumberInput #${e}`}),a.jsx(ro,{_label:`Checkbox #${e}`})]},e))})]});var s$=e=>e.type==="checkbox",Ni=e=>e instanceof Date,Bm=e=>e==null;const x0=e=>typeof e=="object";var xa=e=>!Bm(e)&&!Array.isArray(e)&&x0(e)&&!Ni(e),d$=e=>xa(e)&&e.target?s$(e.target)?e.target.checked:e.target.value:e,u$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,f$=(e,n)=>e.has(u$(n)),b$=e=>{const n=e.constructor&&e.constructor.prototype;return xa(n)&&n.hasOwnProperty("isPrototypeOf")},m$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function y0(e){let n;const r=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(m$&&(e instanceof Blob||i))&&(r||xa(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!b$(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=y0(e[s]));else return e;return n}var w0=e=>/^\w*$/.test(e),Vb=e=>e===void 0,h$=e=>Array.isArray(e)?e.filter(Boolean):[],z0=e=>h$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dn=(e,n,r)=>{if(!n||!xa(e))return r;const i=(w0(n)?[n]:z0(n)).reduce((s,d)=>Bm(s)?s:s[d],e);return Vb(i)||i===e?Vb(e[n])?r:e[n]:i},cb=e=>typeof e=="boolean",P1=(e,n,r)=>{let i=-1;const s=w0(n)?[n]:z0(n),d=s.length,u=d-1;for(;++i<d;){const m=s[i];let h=r;if(i!==u){const p=e[m];h=xa(p)||Array.isArray(p)?p:isNaN(+s[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const G1={BLUR:"blur",CHANGE:"change"},Y1={all:"all"},S0=ae.createContext(null);S0.displayName="HookFormContext";const Rm=()=>ae.useContext(S0);var p$=(e,n,r,i=!0)=>{const s={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(s,d,{get:()=>{const u=d;return n._proxyFormState[u]!==Y1.all&&(n._proxyFormState[u]=!i||Y1.all),r&&(r[u]=!0),e[u]}});return s};const j0=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function k$(e){const n=Rm(),{control:r=n.control,disabled:i,name:s,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return j0(()=>r._subscribe({name:s,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[s,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>p$(u,r,h.current,!1),[u,r])}var v$=e=>typeof e=="string",g$=(e,n,r,i,s)=>v$(e)?Dn(r,e,s):Array.isArray(e)?e.map(d=>Dn(r,d)):r,J1=e=>Bm(e)||!x0(e);function T0(e,n,r=new WeakSet){if(J1(e)||J1(n))return e===n;if(Ni(e)&&Ni(n))return e.getTime()===n.getTime();const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!s.includes(d))return!1;if(d!=="ref"){const m=n[d];if(Ni(u)&&Ni(m)||xa(u)&&xa(m)||Array.isArray(u)&&Array.isArray(m)?!T0(u,m,r):u!==m)return!1}}return!0}function _$(e){const n=Rm(),{control:r=n.control,name:i,defaultValue:s,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(s),p=ae.useRef(m),g=ae.useRef(void 0);p.current=m;const v=ae.useMemo(()=>r._getWatch(i,h.current),[r,i]),[_,z]=ae.useState(p.current?p.current(v):v);return j0(()=>r._subscribe({name:i,formState:{values:!0},exact:u,callback:N=>{if(!d){const j=g$(i,r._names,N.values||r._formValues,!1,h.current);if(p.current){const O=p.current(j);T0(O,g.current)||(z(O),g.current=O)}else z(j)}}}),[r,d,i,u]),ae.useEffect(()=>r._removeUnmounted()),_}function x$(e){const n=Rm(),{name:r,disabled:i,control:s=n.control,shouldUnregister:d,defaultValue:u}=e,m=f$(s._names.array,r),h=ae.useMemo(()=>Dn(s._formValues,r,Dn(s._defaultValues,r,u)),[s,r,u]),p=_$({control:s,name:r,defaultValue:h,exact:!0}),g=k$({control:s,name:r,exact:!0}),v=ae.useRef(e),_=ae.useRef(void 0),z=ae.useRef(s.register(r,{...e.rules,value:p,...cb(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const N=ae.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Dn(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!Dn(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Dn(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Dn(g.validatingFields,r)},error:{enumerable:!0,get:()=>Dn(g.errors,r)}}),[g,r]),j=ae.useCallback(w=>z.current.onChange({target:{value:d$(w),name:r},type:G1.CHANGE}),[r]),O=ae.useCallback(()=>z.current.onBlur({target:{value:Dn(s._formValues,r),name:r},type:G1.BLUR}),[r,s._formValues]),E=ae.useCallback(w=>{const $=Dn(s._fields,r);$&&w&&($._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:D=>w.setCustomValidity(D),reportValidity:()=>w.reportValidity()})},[s._fields,r]),x=ae.useMemo(()=>({name:r,value:p,...cb(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:j,onBlur:O,ref:E}),[r,i,g.disabled,j,O,E,p]);return ae.useEffect(()=>{const w=s._options.shouldUnregister||d,$=_.current;$&&$!==r&&!m&&s.unregister($),s.register(r,{...v.current.rules,...cb(v.current.disabled)?{disabled:v.current.disabled}:{}});const D=(H,Z)=>{const ee=Dn(s._fields,H);ee&&ee._f&&(ee._f.mount=Z)};if(D(r,!0),w){const H=y0(Dn(s._options.defaultValues,r));P1(s._defaultValues,r,H),Vb(Dn(s._formValues,r))&&P1(s._formValues,r,H)}return!m&&s.register(r),_.current=r,()=>{(m?w&&!s._state.action:w)?s.unregister(r):D(r,!1)}},[r,s,m,d]),ae.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),ae.useMemo(()=>({field:x,formState:g,fieldState:N}),[x,g,N])}const y$=e=>e.render(x$(e));function Fn(e,n){const r=ae.forwardRef((i,s)=>{const{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:g,...v}=i;return ae.createElement(y$,{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:g,render:({field:_,fieldState:z})=>{const N=v._on,j={...v,ref:O=>{s&&(typeof s=="function"?s(O):s.current=O),O&&_.ref(O)},_name:d,_touched:z.isTouched,_disabled:v._disabled||g||_.disabled,_msg:z.error?{_type:"error",_description:z.error.message||String(z.error)}:void 0,_on:{...N||{},onInput:(O,E)=>{_.onChange(E),N?.onInput?.(O,E)},onChange:(O,E)=>{_.onChange(E),N?.onChange?.(O,E)},onBlur:O=>{_.onBlur(),N?.onBlur?.(O)}}};return n&&(j[n]=_.value),ae.createElement(e,{...j})}})});return r.displayName=`withController(${e.displayName||e.name||"Component"})`,r}const qb=Fn(Oe,"_value"),A0=Fn(Eo,"_value"),C0=Fn(Yo,"_value"),E0=Fn(jo,"_value"),L0=Fn(en,"_value"),O0=Fn(He,"_value"),$0=Fn(Go,"_value"),w$=Fn(Ro),N0=Fn(Qe,"_value"),B0=Fn(_n,"_value"),R0=Fn(Jo,"_value"),D0=Fn(bn,"_value"),M0=Fn(Lo,"_value"),I0=Fn(ro,"_checked"),z$={firstName:"",lastName:"",email:"",password:"",age:18,volume:50,birthday:"",favoriteColor:"#000000",cv:null,bio:"",country:"",language:"de",framework:"",gender:"",termsAccepted:!1},S$=[{label:"English",value:"en"},{label:"German",value:"de"},{label:"French",value:"fr"}],j$=[{label:"React",value:"react"},{label:"Vue",value:"vue"},{label:"Stencil",value:"stencil"}],T$=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Other",value:"other"}],A$=["firstName","lastName","email","password","age","volume","birthday","favoriteColor","cv","bio","country","language","framework","gender","termsAccepted"],C$=()=>{const{control:e,handleSubmit:n,setValue:r,getValues:i,trigger:s}=ad({defaultValues:z$,mode:"onTouched",shouldFocusError:!0}),d=()=>{A$.forEach(h=>{r(h,i(h),{shouldTouch:!0,shouldValidate:!0})})},u=h=>{alert(JSON.stringify(h,null,2))},m=h=>{d(),s(void 0,{shouldFocus:!0}),console.warn("Validation errors:",h)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates a form using React Hook Form with KoliBri adapters wrapped in a KolForm. All inputs are validated, and error messages are shown on submit."})}),a.jsx(An,{className:"w-full max-w-xl",_on:{onSubmit:h=>{n(u,m)(h)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(qb,{name:"firstName",control:e,_label:"First Name",rules:{required:"First name is required"},_required:!0}),a.jsx(qb,{name:"lastName",control:e,_label:"Last Name",rules:{required:"Last name is required"},_required:!0}),a.jsx(C0,{name:"email",control:e,_label:"Email",rules:{required:"Email is required"},_required:!0}),a.jsx(A0,{name:"password",control:e,_label:"Password",rules:{required:"Password is required"},_required:!0}),a.jsx(E0,{name:"age",control:e,_label:"Age",rules:{required:"Age is required",min:0},_required:!0}),a.jsx(L0,{name:"volume",control:e,_label:"Volume (0–100)",_min:0,_max:100}),a.jsx(O0,{name:"birthday",control:e,_label:"Birthday",rules:{required:"Birthday is required"}}),a.jsx($0,{name:"favoriteColor",control:e,_label:"Favorite Color",id:"favoriteColor"}),a.jsx(w$,{name:"cv",control:e,_label:"Upload CV",rules:{required:"Please upload your CV"},_required:!0}),a.jsx(N0,{name:"bio",control:e,_label:"Bio",rules:{required:"Please provide a short bio"},_required:!0}),a.jsx(B0,{control:e,rules:{required:"Please select a country"},name:"country",_label:"Country",_suggestions:et,_required:!0}),a.jsx(R0,{control:e,rules:{required:"Please select a language"},name:"language",_label:"Preferred Language",_options:S$,_required:!0}),a.jsx(D0,{rules:{required:"Please select a framework"},control:e,name:"framework",_label:"Favorite Framework",_options:j$,_required:!0}),a.jsx(M0,{control:e,rules:{required:"Please select your gender"},name:"gender",_label:"Gender",_options:T$,_required:!0}),a.jsx(I0,{name:"termsAccepted",control:e,_label:"I accept the terms and conditions",rules:{required:"You must accept the terms"},_required:!0}),a.jsx(W,{_label:"Submit",_type:"submit"})]})})]})},E$=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"All interactive elements, such as buttons and input fields, should have the same height to ensure a consistent and visually balanced user interface."})}),a.jsxs("div",{className:"w-full flex flex-wrap gap-4",children:[a.jsx(W,{_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(Xe,{_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(Xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(_n,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_suggestions:[]}),a.jsx(Go,{_hideLabel:!0,_icons:{left:"codicon codicon-home"},_label:"Input-Color"}),a.jsx(Ro,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-File"}),a.jsx(He,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Date"}),a.jsx(Yo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Email"}),a.jsx(jo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Number"}),a.jsx(Eo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Password"}),a.jsx(en,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Range"}),a.jsx(Oe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Text"}),a.jsx(Jo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(bn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(Qe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox"})]})]})},X1=(e,n,r)=>{if(e&&"reportValidity"in e){const i=de(r,n);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},U0=(e,n)=>{for(const r in n.fields){const i=n.fields[r];i&&i.ref&&"reportValidity"in i.ref?X1(i.ref,r,e):i.refs&&i.refs.forEach(s=>X1(s,r,e))}},L$=(e,n)=>{n.shouldUseNativeValidation&&U0(e,n);const r={};for(const i in e){const s=de(n.fields,i),d=Object.assign(e[i]||{},{ref:s&&s.ref});if(O$(n.names||Object.keys(e),i)){const u=Object.assign({},de(r,i));fo(u,"root",d),fo(r,i,u)}else fo(r,i,d)}return r},O$=(e,n)=>e.some(r=>r.startsWith(n+"."));var $$=function(e,n){for(var r={};e.length;){var i=e[0],s=i.code,d=i.message,u=i.path.join(".");if(!r[u])if("unionErrors"in i){var m=i.unionErrors[0].errors[0];r[u]={message:m.message,type:m.code}}else r[u]={message:d,type:s};if("unionErrors"in i&&i.unionErrors.forEach(function(g){return g.errors.forEach(function(v){return e.push(v)})}),n){var h=r[u].types,p=h&&h[i.code];r[u]=o0(u,n,r,s,p?[].concat(p,i.message):i.message)}e.shift()}return r},N$=function(e,n,r){return r===void 0&&(r={}),function(i,s,d){try{return Promise.resolve((function(u,m){try{var h=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](i,n)).then(function(p){return d.shouldUseNativeValidation&&U0({},d),{errors:{},values:r.raw?i:p}})}catch(p){return m(p)}return h&&h.then?h.then(void 0,m):h})(0,function(u){if((function(m){return Array.isArray(m?.errors)})(u))return{values:{},errors:L$($$(u.errors,!d.shouldUseNativeValidation&&d.criteriaMode==="all"),d)};throw u}))}catch(u){return Promise.reject(u)}}};function X(e,n,r){function i(m,h){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:h,constr:u,traits:new Set},enumerable:!1}),m._zod.traits.has(e))return;m._zod.traits.add(e),n(m,h);const p=u.prototype,g=Object.keys(p);for(let v=0;v<g.length;v++){const _=g[v];_ in m||(m[_]=p[_].bind(m))}}const s=r?.Parent??Object;class d extends s{}Object.defineProperty(d,"name",{value:e});function u(m){var h;const p=r?.Parent?new d:this;i(p,m),(h=p._zod).deferred??(h.deferred=[]);for(const g of p._zod.deferred)g();return p}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class zl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class H0 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const F0={};function ya(e){return F0}function K0(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>n.indexOf(+i)===-1).map(([i,s])=>s)}function Zb(e,n){return typeof n=="bigint"?n.toString():n}function Dm(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Mm(e){return e==null}function Im(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function B$(e,n){const r=(e.toString().split(".")[1]||"").length,i=n.toString();let s=(i.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(i)){const h=i.match(/\d?e-(\d?)/);h?.[1]&&(s=Number.parseInt(h[1]))}const d=r>s?r:s,u=Number.parseInt(e.toFixed(d).replace(".","")),m=Number.parseInt(n.toFixed(d).replace(".",""));return u%m/10**d}const W1=Symbol("evaluating");function ho(e,n,r){let i;Object.defineProperty(e,n,{get(){if(i!==W1)return i===void 0&&(i=W1,i=r()),i},set(s){Object.defineProperty(e,n,{value:s})},configurable:!0})}function Ta(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function qr(...e){const n={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(n,i)}return Object.defineProperties({},n)}function Q1(e){return JSON.stringify(e)}function R$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const V0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ps(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const D$=Dm(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Pi(e){if(Ps(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Ps(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function q0(e){return Pi(e)?{...e}:Array.isArray(e)?[...e]:e}const M$=new Set(["string","number","symbol"]);function cd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zr(e,n,r){const i=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(i._zod.parent=e),i}function Se(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function I$(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const U$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function H$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=qr(e._zod.def,{get shape(){const u={};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&(u[m]=r.shape[m])}return Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function F$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=qr(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&delete u[m]}return Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function K$(e,n){if(!Pi(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const d=e._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(d,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=qr(e._zod.def,{get shape(){const d={...e._zod.def.shape,...n};return Ta(this,"shape",d),d}});return Zr(e,s)}function V$(e,n){if(!Pi(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ta(this,"shape",i),i}});return Zr(e,r)}function q$(e,n){const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return Ta(this,"shape",i),i},get catchall(){return n._zod.def.catchall},checks:[]});return Zr(e,r)}function Z$(e,n,r){const s=n._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=qr(n._zod.def,{get shape(){const m=n._zod.def.shape,h={...m};if(r)for(const p in r){if(!(p in m))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(h[p]=e?new e({type:"optional",innerType:m[p]}):m[p])}else for(const p in m)h[p]=e?new e({type:"optional",innerType:m[p]}):m[p];return Ta(this,"shape",h),h},checks:[]});return Zr(n,u)}function P$(e,n,r){const i=qr(n._zod.def,{get shape(){const s=n._zod.def.shape,d={...s};if(r)for(const u in r){if(!(u in d))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(d[u]=new e({type:"nonoptional",innerType:s[u]}))}else for(const u in s)d[u]=new e({type:"nonoptional",innerType:s[u]});return Ta(this,"shape",d),d}});return Zr(n,i)}function xl(e,n=0){if(e.aborted===!0)return!0;for(let r=n;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Z0(e,n){return n.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function xs(e){return typeof e=="string"?e:e?.message}function wa(e,n,r){const i={...e,path:e.path??[]};if(!e.message){const s=xs(e.inst?._zod.def?.error?.(e))??xs(n?.error?.(e))??xs(r.customError?.(e))??xs(r.localeError?.(e))??"Invalid input";i.message=s}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Um(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Gi(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}const P0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Zb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},G0=X("$ZodError",P0),Y0=X("$ZodError",P0,{Parent:Error});function G$(e,n=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):i.push(n(s));return{formErrors:i,fieldErrors:r}}function Y$(e,n=r=>r.message){const r={_errors:[]},i=s=>{for(const d of s.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(u=>i({issues:u}));else if(d.code==="invalid_key")i({issues:d.issues});else if(d.code==="invalid_element")i({issues:d.issues});else if(d.path.length===0)r._errors.push(n(d));else{let u=r,m=0;for(;m<d.path.length;){const h=d.path[m];m===d.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(d))):u[h]=u[h]||{_errors:[]},u=u[h],m++}}};return i(e),r}const Hm=e=>(n,r,i,s)=>{const d=i?Object.assign(i,{async:!1}):{async:!1},u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise)throw new zl;if(u.issues.length){const m=new(s?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,s?.callee),m}return u.value},Fm=e=>async(n,r,i,s)=>{const d=i?Object.assign(i,{async:!0}):{async:!0};let u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise&&(u=await u),u.issues.length){const m=new(s?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,s?.callee),m}return u.value},sd=e=>(n,r,i)=>{const s=i?{...i,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},s);if(d instanceof Promise)throw new zl;return d.issues.length?{success:!1,error:new(e??G0)(d.issues.map(u=>wa(u,s,ya())))}:{success:!0,data:d.value}},J$=sd(Y0),dd=e=>async(n,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let d=n._zod.run({value:r,issues:[]},s);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(u=>wa(u,s,ya())))}:{success:!0,data:d.value}},X$=dd(Y0),W$=e=>(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Hm(e)(n,r,s)},Q$=e=>(n,r,i)=>Hm(e)(n,r,i),e9=e=>async(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Fm(e)(n,r,s)},o9=e=>async(n,r,i)=>Fm(e)(n,r,i),n9=e=>(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return sd(e)(n,r,s)},t9=e=>(n,r,i)=>sd(e)(n,r,i),r9=e=>async(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return dd(e)(n,r,s)},a9=e=>async(n,r,i)=>dd(e)(n,r,i),l9=/^[cC][^\s-]{8,}$/,i9=/^[0-9a-z]+$/,c9=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,s9=/^[0-9a-vA-V]{20}$/,d9=/^[A-Za-z0-9]{27}$/,u9=/^[a-zA-Z0-9_-]{21}$/,f9=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,b9=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ex=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,m9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,h9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function p9(){return new RegExp(h9,"u")}const k9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,v9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,g9=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x9=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,J0=/^[A-Za-z0-9_-]*$/,y9=/^\+[1-9]\d{6,14}$/,X0="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",w9=new RegExp(`^${X0}$`);function W0(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function z9(e){return new RegExp(`^${W0(e)}$`)}function S9(e){const n=W0({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${n}(?:${r.join("|")})`;return new RegExp(`^${X0}T(?:${i})$`)}const j9=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},T9=/^-?\d+$/,A9=/^-?\d+(?:\.\d+)?$/,C9=/^(?:true|false)$/i,E9=/^[^A-Z]*$/,L9=/^[^a-z]*$/,Kn=X("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Q0={number:"number",bigint:"bigint",object:"date"},ew=X("$ZodCheckLessThan",(e,n)=>{Kn.init(e,n);const r=Q0[typeof n.value];e._zod.onattach.push(i=>{const s=i._zod.bag,d=(n.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<d&&(n.inclusive?s.maximum=n.value:s.exclusiveMaximum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value<=n.value:i.value<n.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),ow=X("$ZodCheckGreaterThan",(e,n)=>{Kn.init(e,n);const r=Q0[typeof n.value];e._zod.onattach.push(i=>{const s=i._zod.bag,d=(n.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>d&&(n.inclusive?s.minimum=n.value:s.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),O9=X("$ZodCheckMultipleOf",(e,n)=>{Kn.init(e,n),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):B$(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),$9=X("$ZodCheckNumberFormat",(e,n)=>{Kn.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[s,d]=U$[n.format];e._zod.onattach.push(u=>{const m=u._zod.bag;m.format=n.format,m.minimum=s,m.maximum=d,r&&(m.pattern=T9)}),e._zod.check=u=>{const m=u.value;if(r){if(!Number.isInteger(m)){u.issues.push({expected:i,format:n.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?u.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort}):u.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort});return}}m<s&&u.issues.push({origin:"number",input:m,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!n.abort}),m>d&&u.issues.push({origin:"number",input:m,code:"too_big",maximum:d,inclusive:!0,inst:e,continue:!n.abort})}}),N9=X("$ZodCheckMaxLength",(e,n)=>{var r;Kn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Mm(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<s&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=n.maximum)return;const u=Um(s);i.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),B9=X("$ZodCheckMinLength",(e,n)=>{var r;Kn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Mm(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>s&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=n.minimum)return;const u=Um(s);i.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),R9=X("$ZodCheckLengthEquals",(e,n)=>{var r;Kn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Mm(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=n.length,s.maximum=n.length,s.length=n.length}),e._zod.check=i=>{const s=i.value,d=s.length;if(d===n.length)return;const u=Um(s),m=d>n.length;i.issues.push({origin:u,...m?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),ud=X("$ZodCheckStringFormat",(e,n)=>{var r,i;Kn.init(e,n),e._zod.onattach.push(s=>{const d=s._zod.bag;d.format=n.format,n.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=s=>{n.pattern.lastIndex=0,!n.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:n.format,input:s.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),D9=X("$ZodCheckRegex",(e,n)=>{ud.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),M9=X("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=E9),ud.init(e,n)}),I9=X("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=L9),ud.init(e,n)}),U9=X("$ZodCheckIncludes",(e,n)=>{Kn.init(e,n);const r=cd(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(s=>{const d=s._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(i)}),e._zod.check=s=>{s.value.includes(n.includes,n.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:s.value,inst:e,continue:!n.abort})}}),H9=X("$ZodCheckStartsWith",(e,n)=>{Kn.init(e,n);const r=new RegExp(`^${cd(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),F9=X("$ZodCheckEndsWith",(e,n)=>{Kn.init(e,n);const r=new RegExp(`.*${cd(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}}),K9=X("$ZodCheckOverwrite",(e,n)=>{Kn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class V9{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const i=n.split(`
|
|
25973
|
+
sit amet.`,EO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_adjustHeight"}),"-property of KolTextarea. The textarea automatically grows with its content."]})}),a.jsx(An,{className:"w-full",children:a.jsx(Qe,{_adjustHeight:!0,_value:CO,_label:"Text input (auto grow)"})})]}),V1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Qe,{...n,ref:r,_placeholder:"Placeholder",_label:"Text"})}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_required:!0,_msg:{_type:"error",_description:Ue},_label:"Text",_touched:!0,_hint:xn}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"info",_description:"Just a hint"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Qe,{...n,ref:r,_accessKey:"T",_label:"Text (3 rows)",_rows:3}),a.jsx(Qe,{...n,ref:r,_label:"Text (placeholder)",_rows:3,_placeholder:"Placeholder"}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & placeholder)",_rows:3,_placeholder:"Placeholder",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (readonly)",_rows:3,_placeholder:"Placeholder",_readOnly:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & value)",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"With access key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_accessKey:"c"}),a.jsx(Qe,{...n,ref:r,_label:"With short key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_shortKey:"s"})]})}),LO=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(V1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(V1,{ref:r,...n,_hideLabel:!0})]})]})}),OO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states."})}),a.jsx(yn,{RefComponent:LO,showButtons:!1})]}),$O=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_resize"}),"-property of KolTextarea. The sample textarea can (only) be resized in the given direction."]})}),a.jsx(An,{className:"w-full",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(Qe,{_label:"Text input (unset)"}),a.jsx(Qe,{_resize:"vertical",_label:"Text input (vertical)"}),a.jsx(Qe,{_resize:"none",_label:"Text input (none)"})]})})]}),NO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_rows"}),"-property of KolTextarea. The sample textarea has a fixed row number of 10."]})}),a.jsx(An,{className:"w-full",children:a.jsx(Qe,{_rows:10,_label:"Texteingabe"})})]}),BO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["The sample demonstrates various ",a.jsx("code",{children:"KolTextarea"})," configurations — contrasting soft vs. hard ",a.jsx("code",{children:"_maxLength"})," settings and the optional",a.jsx("code",{children:"_hasCounter"})," — including one instance without length limits."]})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsx(Qe,{_label:"Textarea with soft max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0,_maxLengthBehavior:"soft"}),a.jsx(Qe,{_label:"Textarea with max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20}),a.jsx(Qe,{_label:"Textarea with max length and counter",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0}),a.jsx(Qe,{_label:"Textarea with counter",_value:"Lorem Ipsum",className:"mt-2",_hasCounter:!0})]})]}),RO={textarea:{basic:OO,"adjust-height":EO,resize:$O,rows:NO,"with-counter":BO}},DO=()=>{const[e]=Kr(),n=e.get("type"),r=Vr.getInstance(document),i=()=>{r.enqueue({description:"Toasty",label:"Initial Toast",type:"warning",onClose:()=>{console.log("Simple toast has been closed.")}})};j.useEffect(()=>{n&&r.enqueue({description:"Toasty",label:`Toast with type '${n}'`,type:n})},[n,r]);const s=()=>{r.enqueue({render:(m,{close:h})=>{vn(m).render(a.jsx(a.Fragment,{children:a.jsx(W,{_label:"Hello World from Toast!",_on:{onClick:()=>{console.log("Toast Button clicked!"),h()}}})}))},label:"Initial Toast",type:"warning"})},d=async()=>{const m=await r.enqueue({description:"I will disappear in two seconds...",label:"Good Bye",type:"warning"});m&&setTimeout(m,2e3)},u=()=>{r.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options."})}),a.jsx("section",{className:"grid gap-4",children:a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:"Show simple toast",_on:{onClick:i}}),a.jsx(W,{_label:"Show complex toast",_on:{onClick:s}}),a.jsx(W,{_label:"Show toast and close after 2 seconds",_on:{onClick:()=>void d()}}),a.jsx(W,{_label:"Close all toasts",_on:{onClick:u}})]})})]})},Bm=["default","info","success","warning","error"],MO=Bm.map(e=>({label:e,value:e})),q1=e=>typeof e=="string"&&Bm.includes(e),IO=()=>{const[e]=Kr(),n=e.get("type"),r=q1(n)?n:void 0,[i,s]=j.useState(()=>r??"default"),d=j.useMemo(()=>Vr.getInstance(document),[]);j.useEffect(()=>(Bm.forEach(p=>{d.enqueue({description:"Toasty",label:`Toast with type '${p}'`,type:p})}),()=>{d.closeAll()}),[d]),j.useEffect(()=>{r&&s(r)},[r]);const u=(p,g)=>{q1(g)&&s(g)},m=()=>{d.enqueue({description:"Toasty",label:`Toast with type '${i}'`,type:i})},h=()=>{d.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options. Use the configuration below to choose a toast type and open a toast with the card variant."})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(Lo,{_orientation:"horizontal",_label:"Toast type",_value:i,_options:MO,_on:{onChange:u}}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:`Open ${i} toast`,_on:{onClick:m}}),a.jsx(W,{_label:"Close all toasts",_on:{onClick:h}})]})]})]})},UO={toast:{basic:DO,configurator:IO}},HO=()=>{const e=[{_label:"Back",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_label:"Simple Link 3"},{_label:"Bold"}];return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolToolbars renders a set of given control elements grouped into one toolbar where focus can be moved using the keyboard arrow keys. The sample features button and link elements."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(be,{_label:"Orientation horizontal",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e}),a.jsx(be,{_label:"Orientation vertical",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e,_orientation:"vertical"})]})]})},FO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolToolbars with some of the elements disabled."})}),a.jsx(ga,{_label:"Toolbar",class:"block w-fit",_items:[{_label:"Back",_disabled:!0,_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_disabled:!0,_label:"Simple Link 3"},{_label:"Bold"}]})]}),KO={toolbar:{basic:HO,disabled:FO}},VO=()=>{const e=["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵"];return e[Math.floor(Math.random()*e.length)]},qO=()=>{const e=j.useContext(zm),{subPage:n}=B4(),[r,i]=j.useState("1 Home"),[s,d]=j.useState(!1),[u,m]=j.useState(!1),[h,p]=j.useState(!0),g=()=>{i(`1 Home ${VO()}`)},v=_=>({_href:`#/tree/basic/${_}${e?"?hideMenus":""}`,_active:_===n});return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded."})}),a.jsxs(jx,{_label:"Sitemap",class:"block w-fit",children:[a.jsx(Qo,{_label:r,...v("home")}),a.jsxs(Qo,{_label:"2 About (open initially)",...v("about"),_open:!0,children:[a.jsx(Qo,{_label:"2.0 Legal",...v("legal")}),a.jsxs(Qo,{_label:"2.1 Team",...v("team"),children:[a.jsx(Qo,{_label:"2.1.1. Values",...v("values")}),a.jsxs(Qo,{_label:"2.1.2. Members",...v("members"),children:[a.jsx(Qo,{_label:"2.1.2.1 Humans",...v("humans")}),s&&a.jsx(Qo,{_label:"2.1.2.2 Pets",...v("pets")})]}),a.jsx(Qo,{_label:"2.1.3 Locations",...v("locations"),children:u&&a.jsxs(Qo,{_label:"2.1.3.1 Europe",...v("europe"),children:[a.jsx(Qo,{_label:"2.1.3.1.1 Denmark",...v("denmark")}),a.jsx(Qo,{_label:"2.1.3.1.2 Netherlands",...v("netherlands")})]})})]})]}),h&&a.jsxs(Qo,{_label:"3. Products",...v("products"),children:[a.jsxs(Qo,{_label:"3.1 Home",...v("home-products"),children:[a.jsx(Qo,{_label:"3.1.1 Refrigerators",...v("fridges")}),a.jsx(Qo,{_label:"3.1.2 Coffee makers",...v("coffee-makers")})]}),a.jsx(Qo,{_label:"3.1 Office",...v("office-products"),children:a.jsx(Qo,{_label:"3.2.1 Printers",...v("printers")})})]})]}),a.jsxs("p",{children:["Current tree item: ",n??"none"]}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:"Change label for '1 Home'",_on:{onClick:g}}),a.jsx(W,{_label:"Toggle '2.1.2.2 Pets'",_on:{onClick:()=>d(!s)}}),a.jsx(W,{_label:"Toggle '2.2.1 Europe' (two levels at once)",_on:{onClick:()=>m(!u)}}),a.jsx(W,{_label:"Toggle '3. Products'",_on:{onClick:()=>p(!h)}})]})]})},ZO={tree:{"basic/:subPage":qO}},PO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolVersion renders a label showing the given version number."})}),a.jsx(Qs,{_label:"1.1.1"})]}),GO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolVersion inline with text paragraph content."})}),a.jsxs("p",{children:[a.jsx(Qs,{_label:"1.0.0"})," Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."]})]}),YO={version:{basic:PO,context:GO}},JO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example show how different components works with tabIndex."})}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Le,{_label:"Button",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(W,{_label:"Button 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(W,{_disabled:!0,_label:"Button 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(W,{_label:"Button 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(W,{_label:"Button 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Le,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Pe,{_label:"ButtonLink 1, Tabindex 4",tabIndex:4}),a.jsx(Pe,{_disabled:!0,_label:"ButtonLink 2, Tabindex 3",tabIndex:3}),a.jsx(Pe,{_label:"ButtonLink 3, Tabindex 2",tabIndex:2}),a.jsx(Pe,{_label:"ButtonLink 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"Combobox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_n,{_hint:xn,_label:"Combobox 1, Tabindex 4",_suggestions:Qn,_value:"Deutschland",tabIndex:4}),a.jsx(_n,{_disabled:!0,_hint:xn,_label:"Combobox 2, Tabindex 3",_suggestions:Qn,_value:"Deutschland",tabIndex:3}),a.jsx(_n,{_touched:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Combobox 3, Tabindex 2",_suggestions:Qn,_value:"Deutschland",tabIndex:2}),a.jsx(_n,{_hint:xn,_label:"Combobox 4, Tabindex 1",_suggestions:Qn,_value:"Deutschland",tabIndex:1})]})}),a.jsx(Le,{_label:"InputCheckbox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(ro,{_label:"InputCheckbox 4, Tabindex 1",_value:!1,tabIndex:4}),a.jsx(ro,{_disabled:!0,_label:"InputCheckbox 3, Tabindex 2",_value:!1,tabIndex:3}),a.jsx(ro,{_touched:!0,_label:"InputCheckbox 2, Tabindex 3",_msg:{_type:"error",_description:Ue},_value:!1,tabIndex:2}),a.jsx(ro,{_label:"InputCheckbox 1, Tabindex 4",_value:!1,tabIndex:1})]})}),a.jsx(Le,{_label:"InputColor",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Go,{_disabled:!0,_value:"#f08080",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Go,{_touched:!0,_value:"#f08080",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputDate",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(He,{_disabled:!0,_type:"datetime-local",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(He,{_touched:!0,_type:"datetime-local",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputEmail",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Yo,{_label:"InputEmail 1, Tabindex 4",tabIndex:4}),a.jsx(Yo,{_disabled:!0,_label:"InputEmail 2, Tabindex 3",tabIndex:3}),a.jsx(Yo,{_touched:!0,_label:"InputEmail 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Yo,{_label:"InputEmail 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputFile",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ro,{_label:"InputFile 1, Tabindex 4",tabIndex:4}),a.jsx(Ro,{_disabled:!0,_label:"InputFile 2, Tabindex 3",tabIndex:3}),a.jsx(Ro,{_touched:!0,_label:"InputFile 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Ro,{_label:"InputFile 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputNumber",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(So,{_label:"InputNumber 1, Tabindex 4",tabIndex:4}),a.jsx(So,{_disabled:!0,_label:"InputNumber 2, Tabindex 3",tabIndex:3}),a.jsx(So,{_touched:!0,_label:"InputNumber 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(So,{_label:"InputNumber 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputPassword",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Eo,{_label:"InputPassword 1, Tabindex 4",tabIndex:4}),a.jsx(Eo,{_disabled:!0,_label:"InputPassword 2, Tabindex 3",tabIndex:3}),a.jsx(Eo,{_touched:!0,_label:"InputPassword 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Eo,{_label:"InputPassword 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputRadio",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Lo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 1, Tabindex 4",tabIndex:4}),a.jsx(Lo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 2, Tabindex 3",_disabled:!0,tabIndex:3}),a.jsx(Lo,{_touched:!0,_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2})," ",a.jsx(Lo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputRange",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(en,{_label:"InputRange 1, Tabindex 4",_min:0,_max:50,tabIndex:4}),a.jsx(en,{_disabled:!0,_label:"InputRange 2, Tabindex 3",_min:0,_max:50,tabIndex:3}),a.jsx(en,{_touched:!0,_label:"InputRange 3, Tabindex 2",_min:0,_max:50,_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(en,{_label:"InputRange 4, Tabindex 1",_min:0,_max:50,tabIndex:1})]})}),a.jsx(Le,{_label:"InputText",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Oe,{_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(Oe,{_disabled:!0,_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(Oe,{_touched:!0,_label:"InputText 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Oe,{_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Xe,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(Xe,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Le,{_label:"Link",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_e,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",tabIndex:2}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"SingleSelect",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(bn,{_label:"InputText 1, Tabindex 4",_options:Wn,_value:"de",tabIndex:4}),a.jsx(bn,{_disabled:!0,_label:"InputText 2, Tabindex 3",_options:Wn,_value:"de",tabIndex:3}),a.jsx(bn,{_touched:!0,_label:"InputText 3, Tabindex 2",_options:Wn,_msg:{_type:"error",_description:Ue},_value:"de",tabIndex:2}),a.jsx(bn,{_label:"InputText 4, Tabindex 1",_options:Wn,_value:"de",tabIndex:1})]})}),a.jsx(Le,{_label:"SplitButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_l,{_label:"InputText 1, Tabindex 4",tabIndex:4,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 2, Tabindex 3",tabIndex:3,_disabled:!0,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 3, Tabindex 2",tabIndex:2,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 4, Tabindex 1",tabIndex:1,children:"Dropdown-Inhalt"})]})}),a.jsx(Le,{_label:"Textarea",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Qe,{_label:"Textarea 1, Tabindex 4",_rows:3,_placeholder:"Placeholder",tabIndex:4}),a.jsx(Qe,{_disabled:!0,_label:"Textarea 2, Tabindex 3",_rows:3,_placeholder:"Placeholder",tabIndex:3}),a.jsx(Qe,{_touched:!0,_label:"Textarea 3, Tabindex 2",_rows:3,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Qe,{_label:"Textarea 4, Tabindex 1",_rows:3,_placeholder:"Placeholder",tabIndex:1})]})})]})]}),XO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample demonstrates how tooltip animation duration and width can be customized via",a.jsx("code",{children:"--kolibri-tooltip-animation-duration"})," and ",a.jsx("code",{children:"--kol-tooltip-width"}),"."]})}),a.jsxs("div",{className:"flex justify-center items-center gap-4",children:[a.jsx(W,{_label:"Custom duration",_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":"2500ms"},_icons:"codicon codicon-clock",_on:n}),a.jsx(W,{_label:"Custom width",_hideLabel:!0,style:{"--kol-tooltip-width":"400px"},_icons:"codicon codicon-arrow-both",_on:n})]})]})},WO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form."})}),a.jsxs(An,{_on:{onSubmit:()=>{console.error("submitted"),alert("submitted")}},children:[a.jsx(He,{_label:"date",_name:"datum"}),a.jsx(W,{_label:"Submit",_type:"submit"})]})]}),xs=[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],QO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"This example shows how deactivated interactive elements are displayed."}),a.jsxs("ul",{children:[a.jsx("li",{children:"Deactivated interactive elements pose a particular challenge for accessibility."}),a.jsx("li",{children:"It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended."}),a.jsx("li",{children:"Deactivated interactive elements should be labelled clearly and legibly."}),a.jsx("li",{children:"Deactivated interactive elements have a tooltip for sighted people and aria labelling for the screen readers reading mode if they are represented by an interpretable graphic."})]}),a.jsx("p",{children:"This implementation ensures standardized use for all users."})]}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Le,{_label:"Button",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Label",_on:n}),a.jsx(W,{_disabled:!0,_label:"Label",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n}),a.jsx(W,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n})]})}),a.jsx(Le,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Label"}),a.jsx(Pe,{_disabled:!0,_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_disabled:!0,_label:"Label"})]})}),a.jsx(Le,{_label:"Link",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#",_label:"Label"}),a.jsx(_e,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(_e,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(_e,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Le,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Xe,{_href:"#",_label:"Label"}),a.jsx(Xe,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(Xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Xe,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Le,{_label:"Accordion",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Label",children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rn,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),a.jsx(Le,{_label:"Details",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rr,{_label:"Label",children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rr,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),[ro,Go,He,Yo,Ro,So,Eo,en,Oe].map(r=>{const s=r.render.displayName;return a.jsx(Le,{_label:s,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label"}),a.jsx(r,{_disabled:!0,_label:"Label"}),a.jsx(r,{_hideLabel:!0,_label:"Label"}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label"})]})},s)}),[Lo,Jo].map(r=>{const s=r.render.displayName;return a.jsx(Le,{_label:s,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label",_options:xs}),a.jsx(r,{_disabled:!0,_label:"Label",_options:xs}),a.jsx(r,{_hideLabel:!0,_label:"Label",_options:xs}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label",_options:xs})]})},s)}),a.jsx(Le,{_label:"KolTextarea",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qe,{_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_hideLabel:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_hideLabel:!0,_label:"Label",_rows:3})]})})]})]})},v0=()=>{const e=new Map;return e.set("inputCheckbox",(n,r)=>a.jsx(ro,{className:"w-full",_name:"checkbox",_label:"Checkbox",ref:r})),e.set("inputColor",(n,r)=>a.jsx(Go,{className:"w-full",_name:"color",_label:"Color",ref:r})),e.set("inputDate",(n,r)=>a.jsx(He,{className:"w-full",_name:"date",_label:"Date",ref:r})),e.set("inputEmail",(n,r)=>a.jsx(Yo,{className:"w-full",_name:"email",_label:"Email",ref:r})),e.set("inputFile",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"File",ref:r})),e.set("inputFileMultiple",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"Files (multiple)",_multiple:!0,ref:r})),e.set("inputNumber",(n,r)=>a.jsx(So,{className:"w-full",_name:"number",_label:"Number",ref:r})),e.set("inputPassword",(n,r)=>a.jsx(Eo,{className:"w-full",_name:"password",_label:"Password",ref:r})),e.set("inputRadio",(n,r)=>a.jsx(Lo,{className:"w-full",_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_value:"A",ref:r})),e.set("inputRange",(n,r)=>a.jsx(en,{className:"w-full",_name:"range",_label:"Range",ref:r})),e.set("inputText",(n,r)=>a.jsx(Oe,{className:"w-full",_name:"text",_label:"Text",ref:r})),e.set("select",(n,r)=>a.jsx(Jo,{className:"w-full",_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("selectMultiple",(n,r)=>a.jsx(Jo,{className:"w-full",_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2,ref:r})),e.set("singleSelect",(n,r)=>a.jsx(bn,{className:"w-full",_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("textarea",(n,r)=>a.jsx(Qe,{className:"w-full",_name:"textarea",_label:"Textarea",_rows:5,ref:r})),e.set("accordion",(n,r)=>a.jsx(rn,{className:"w-full",_label:"Accordion here",ref:r})),e.set("button",(n,r)=>a.jsx("div",{children:a.jsx(W,{_label:"Button here",ref:r})})),e.set("buttonLink",(n,r)=>a.jsx(Pe,{_label:"ButtonLink here",ref:r})),e.set("combobox",(n,r)=>a.jsx(_n,{className:"w-full",_label:"KolCombobox here",_suggestions:[],ref:r})),e.set("details",(n,r)=>a.jsx(rr,{className:"w-full",_label:"Details here",ref:r,children:"detailed details"})),e.set("link",(n,r)=>a.jsx(_e,{className:"w-full",_label:"Link here",_href:"#",ref:r})),e.set("linkButton",(n,r)=>a.jsx("div",{children:a.jsx(Xe,{_label:"LinkButton here",_href:"#",ref:r})})),e},Z1=e=>{const r=[...j.useMemo(()=>v0(),[]).keys()].map(i=>i);return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample serves for automated tests of the focus state for input components. When loading one of the examples linked below, focus will be set on the element initially. When testing manually, you may have to reload the page after opening an example."})}),e.invalidComponent&&a.jsx(gn,{_type:"error",_variant:"card",children:"Component not found."}),a.jsx(be,{_level:2,_label:"Focus Test Cases"}),a.jsx("ul",{children:r.map(i=>a.jsx("li",{children:a.jsx(_e,{_label:i,_href:`#/scenarios/focus-elements?component=${i}`})},i))})]})},e$=()=>{const e=j.useRef(null),n=j.useMemo(()=>v0(),[]),[r]=Kr(),i=r.get("component");if(j.useLayoutEffect(()=>{setTimeout(()=>{e.current?.focus()},500)},[e]),i){const s=n.get(i);if(!s)return a.jsx(Z1,{invalidComponent:!0});const d=j.forwardRef(s);return a.jsx(d,{ref:e})}else return a.jsx(Z1,{})},o$=[{name:"Elephant",species:"Loxodonta",habitat:"Savannah",diet:"Herbivore",lifespan:60},{name:"Tiger",species:"Panthera tigris",habitat:"Forest",diet:"Carnivore",lifespan:20},{name:"Kangaroo",species:"Macropus",habitat:"Grassland",diet:"Herbivore",lifespan:23},{name:"Penguin",species:"Aptenodytes forsteri",habitat:"Antarctica",diet:"Carnivore",lifespan:20},{name:"Giraffe",species:"Giraffa camelopardalis",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Panda",species:"Ailuropoda melanoleuca",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Dolphin",species:"Delphinus delphis",habitat:"Ocean",diet:"Carnivore",lifespan:40},{name:"Eagle",species:"Aquila chrysaetos",habitat:"Mountains",diet:"Carnivore",lifespan:30},{name:"Koala",species:"Phascolarctos cinereus",habitat:"Forest",diet:"Herbivore",lifespan:18},{name:"Lion",species:"Panthera leo",habitat:"Savannah",diet:"Carnivore",lifespan:15},{name:"Zebra",species:"Equus quagga",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Wolf",species:"Canis lupus",habitat:"Forest",diet:"Carnivore",lifespan:14},{name:"Cheetah",species:"Acinonyx jubatus",habitat:"Savannah",diet:"Carnivore",lifespan:12},{name:"Polar Bear",species:"Ursus maritimus",habitat:"Arctic",diet:"Carnivore",lifespan:25},{name:"Rhinoceros",species:"Rhinocerotidae",habitat:"Savannah",diet:"Herbivore",lifespan:40},{name:"Hippopotamus",species:"Hippopotamus amphibius",habitat:"Rivers",diet:"Herbivore",lifespan:45},{name:"Chimpanzee",species:"Pan troglodytes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Orangutan",species:"Pongo",habitat:"Forest",diet:"Omnivore",lifespan:45},{name:"Leopard",species:"Panthera pardus",habitat:"Forest",diet:"Carnivore",lifespan:17},{name:"Hyena",species:"Hyaenidae",habitat:"Savannah",diet:"Carnivore",lifespan:25},{name:"Crocodile",species:"Crocodylidae",habitat:"Rivers",diet:"Carnivore",lifespan:70},{name:"Alligator",species:"Alligatoridae",habitat:"Swamps",diet:"Carnivore",lifespan:50},{name:"Ostrich",species:"Struthio camelus",habitat:"Savannah",diet:"Omnivore",lifespan:40},{name:"Flamingo",species:"Phoenicopterus",habitat:"Lakes",diet:"Omnivore",lifespan:30},{name:"Peacock",species:"Pavo cristatus",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Parrot",species:"Psittaciformes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Toucan",species:"Ramphastidae",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Sloth",species:"Folivora",habitat:"Forest",diet:"Herbivore",lifespan:30},{name:"Armadillo",species:"Dasypodidae",habitat:"Grassland",diet:"Omnivore",lifespan:15},{name:"Anteater",species:"Myrmecophaga tridactyla",habitat:"Forest",diet:"Insectivore",lifespan:14},{name:"Bat",species:"Chiroptera",habitat:"Caves",diet:"Omnivore",lifespan:20},{name:"Otter",species:"Lutrinae",habitat:"Rivers",diet:"Carnivore",lifespan:16},{name:"Beaver",species:"Castor",habitat:"Rivers",diet:"Herbivore",lifespan:24},{name:"Moose",species:"Alces alces",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Deer",species:"Cervidae",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Bison",species:"Bison bison",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Buffalo",species:"Syncerus caffer",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Camel",species:"Camelus",habitat:"Desert",diet:"Herbivore",lifespan:50},{name:"Llama",species:"Lama glama",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Alpaca",species:"Vicugna pacos",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Goat",species:"Capra aegagrus hircus",habitat:"Mountains",diet:"Herbivore",lifespan:18},{name:"Sheep",species:"Ovis aries",habitat:"Grassland",diet:"Herbivore",lifespan:12},{name:"Cow",species:"Bos taurus",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Pig",species:"Sus scrofa domesticus",habitat:"Farm",diet:"Omnivore",lifespan:15},{name:"Chicken",species:"Gallus gallus domesticus",habitat:"Farm",diet:"Omnivore",lifespan:10}],n$=[{_icons:"codicon codicon-pie-chart",_label:"Erster Tab"},{_icons:"codicon codicon-calendar",_label:"Zweiter Tab",_disabled:!0},{_icons:"codicon codicon-briefcase",_label:"Deaktivierter Tab",_disabled:!0},{_icons:"codicon codicon-telescope",_label:"Letzter Tab",_disabled:!0}],P1={horizontal:[[{key:"name",label:"Name",textAlign:"left",width:"400px"},{key:"species",label:"Species",textAlign:"left",width:"400px"},{key:"habitat",label:"Habitat",textAlign:"left",width:"400px"},{key:"diet",label:"Diet",textAlign:"left",width:"400px"},{key:"lifespan",label:"lifespan",textAlign:"right",width:"400px"}]]};function t$(){const[e]=j.useState(()=>{const n=P1.horizontal[0];let r=0;for(const i of n)r+=parseFloat(i.width?.replace("px","")||"0");return`${r}px`});return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This advanced scenario demonstrates a complex layout with KolTable featuring horizontal scrollbar within a tab-based navigation system. The table automatically calculates its minimum width based on column definitions and provides smooth horizontal scrolling when content exceeds the container width. This example showcases real-world usage in a dashboard-like interface with sidebar navigation and tabbed content areas."})}),a.jsxs("div",{className:"mainlayout",children:[a.jsx("aside",{className:"nav-area",children:a.jsx(wl,{_label:"Main navigation",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),a.jsx("div",{className:"content",children:a.jsxs(cr,{_tabs:n$,_align:"top",_label:"Demo Tabs",children:[a.jsx("div",{style:{overflow:"hidden"},children:a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar",_minWidth:e,_headers:P1,_data:o$,_pagination:{_page:1},className:"block"})}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]})})]})]})}const r$=()=>{const e="Unrecognized phone number.",n="Choose at least two and up to five toppings.",r=["Mushrooms","Bell Peppers","Onions","Olives","Spinach","Tomatoes","Artichokes","Zucchini","Jalapeños","Basil"],i=[{label:"United States +1",value:"1"},{label:"Greece +30 ",value:"30"},{label:"Germany +49",value:"49"},{label:"Japan +81",value:"81"}];return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"This sample shows how input components can be grouped together with just one error message, without repeating the message for every field."}),a.jsx("p",{children:"The sample only demonstrates how the errors can be displayed, an actual validation logic is not part of the example."})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Phone number"}),a.jsx(gn,{_alert:!0,_type:"error",_label:e}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-2xl",children:[a.jsx(Jo,{_options:i,_label:"CountryCode ",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Oe,{_label:"Area code",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Oe,{_label:"Local number",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0})]})]}),a.jsxs("fieldset",{className:"mt",children:[a.jsx("legend",{children:"Pizza toppings"}),a.jsx(gn,{_alert:!0,_type:"error",_label:n}),r.map(s=>a.jsx(ro,{_label:s,_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0},s))]})]})},g0=j.createContext(void 0),_0=j.createContext(!1),fn=e=>{const n=j.useRef(null),[r,i]=j.useState(void 0),[s,d]=j.useState(e.inputProps._value),u=e.formatter||JSON.stringify,m=j.useContext(g0),h=j.useContext(_0),p=async()=>{const v=await n.current?.getValue();i(v)};j.useEffect(()=>{const v=()=>{p()};return m?.addEventListener("runAll",v),()=>{m?.removeEventListener("runAll",v)}},[m]);const g=Object.fromEntries(["onInput","onChange","onBlur","onClick","onFocus","onMouseDown"].map(v=>[v,(_,z)=>{h&&console.log(e.inputProps._label,v,z,_),v==="onInput"&&d(z)}]));return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4","data-testid":e.testId,children:[a.jsx(e.InputComponent,{ref:n,_on:g,...e.inputProps,_value:s}),a.jsx(W,{_label:"getValue()",_on:{onClick:()=>{p()}}}),a.jsx("pre",{className:"text-base",children:u(r)})]})})},a$=()=>{const e=j.useMemo(()=>new EventTarget,[]),[n,r]=j.useState(!0);return a.jsx(a.Fragment,{children:a.jsx(g0.Provider,{value:e,children:a.jsxs(_0.Provider,{value:n,children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows how the input components ",a.jsx("code",{children:"getValue()"}),` method works. It's called when clicking the "getValue()" button and prints the current value right next to itself.`]})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Le,{_label:"Sample options",className:"block ha mb-8",children:a.jsx(ro,{_label:"Log events to console",_value:!0,_checked:n,_on:{onChange:(i,s)=>r(s)}})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(fn,{testId:"scenario-inputText",InputComponent:Oe,inputProps:{_label:"InputText"}}),a.jsx(fn,{testId:"scenario-inputCheckboxString",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (value)",_value:"Checkbox True Value"}}),a.jsx(fn,{testId:"scenario-inputCheckboxBoolean",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (boolean)"}}),a.jsx(fn,{testId:"scenario-inputColor",InputComponent:Go,inputProps:{_label:"KolInputColor"}}),a.jsx(fn,{testId:"scenario-inputDate",InputComponent:He,inputProps:{_label:"KolInputDate"}}),a.jsx(fn,{testId:"scenario-inputEmail",InputComponent:Yo,inputProps:{_label:"KolInputEmail"}}),a.jsx(fn,{testId:"scenario-inputFile",InputComponent:Ro,inputProps:{_label:"KolInputFile"},formatter:i=>i instanceof FileList?`FileList{${Array.from(i).map(s=>s.name).join(", ")}}`:JSON.stringify(i)}),a.jsx(fn,{testId:"scenario-inputNumber",InputComponent:So,inputProps:{_label:"KolInputNumber"}}),a.jsx(fn,{testId:"scenario-inputPassword",InputComponent:Eo,inputProps:{_label:"KolInputPassword"}}),a.jsx(fn,{testId:"scenario-inputRange",InputComponent:en,inputProps:{_label:"KolInputRange"}}),a.jsx(fn,{testId:"scenario-inputRadio",InputComponent:Lo,inputProps:{_label:"KolInputRadio",_orientation:"horizontal",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"New York"}}),a.jsx(fn,{testId:"scenario-select",InputComponent:Jo,inputProps:{_label:"KolSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}]}}),a.jsx(fn,{testId:"scenario-singleSelect",InputComponent:bn,inputProps:{_label:"KolSingleSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"Rosenheim"}}),a.jsx(fn,{testId:"scenario-combobox",InputComponent:_n,inputProps:{_label:"KolCombobox",_suggestions:Qn,_value:"Deutschland"}}),a.jsx(fn,{testId:"scenario-textarea",InputComponent:Qe,inputProps:{_label:"KolTextarea"}}),a.jsx(fn,{testId:"scenario-button",InputComponent:W,inputProps:{_label:"KolButton",_variant:"ghost",_value:"KolButton value"}}),a.jsx(fn,{testId:"scenario-buttonLink",InputComponent:Pe,inputProps:{_label:"KolButtonLink",_value:"KolButtonLink value"}}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx("div",{}),a.jsx(W,{_label:"Run all",_variant:"primary",_on:{onClick:()=>{e.dispatchEvent(new Event("runAll"))}}})]})]})]})]})})})},l$=333,i$=new Array(l$).fill(0).map((e,n)=>n+1),c$=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example renders many KoliBri components to show the performance."})}),a.jsx("div",{className:"w-full grid gap-4",children:i$.map(e=>a.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[a.jsx(Oe,{_label:`TextInput #${e}`}),a.jsx(So,{_label:`NumberInput #${e}`}),a.jsx(ro,{_label:`Checkbox #${e}`})]},e))})]});var s$=e=>e.type==="checkbox",Bi=e=>e instanceof Date,Rm=e=>e==null;const x0=e=>typeof e=="object";var xa=e=>!Rm(e)&&!Array.isArray(e)&&x0(e)&&!Bi(e),d$=e=>xa(e)&&e.target?s$(e.target)?e.target.checked:e.target.value:e,u$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,f$=(e,n)=>e.has(u$(n)),b$=e=>{const n=e.constructor&&e.constructor.prototype;return xa(n)&&n.hasOwnProperty("isPrototypeOf")},m$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function y0(e){let n;const r=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(m$&&(e instanceof Blob||i))&&(r||xa(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!b$(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=y0(e[s]));else return e;return n}var w0=e=>/^\w*$/.test(e),qb=e=>e===void 0,h$=e=>Array.isArray(e)?e.filter(Boolean):[],z0=e=>h$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dn=(e,n,r)=>{if(!n||!xa(e))return r;const i=(w0(n)?[n]:z0(n)).reduce((s,d)=>Rm(s)?s:s[d],e);return qb(i)||i===e?qb(e[n])?r:e[n]:i},sb=e=>typeof e=="boolean",G1=(e,n,r)=>{let i=-1;const s=w0(n)?[n]:z0(n),d=s.length,u=d-1;for(;++i<d;){const m=s[i];let h=r;if(i!==u){const p=e[m];h=xa(p)||Array.isArray(p)?p:isNaN(+s[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Y1={BLUR:"blur",CHANGE:"change"},J1={all:"all"},j0=ae.createContext(null);j0.displayName="HookFormContext";const Dm=()=>ae.useContext(j0);var p$=(e,n,r,i=!0)=>{const s={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(s,d,{get:()=>{const u=d;return n._proxyFormState[u]!==J1.all&&(n._proxyFormState[u]=!i||J1.all),r&&(r[u]=!0),e[u]}});return s};const S0=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function k$(e){const n=Dm(),{control:r=n.control,disabled:i,name:s,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return S0(()=>r._subscribe({name:s,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[s,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>p$(u,r,h.current,!1),[u,r])}var v$=e=>typeof e=="string",g$=(e,n,r,i,s)=>v$(e)?Dn(r,e,s):Array.isArray(e)?e.map(d=>Dn(r,d)):r,X1=e=>Rm(e)||!x0(e);function T0(e,n,r=new WeakSet){if(X1(e)||X1(n))return e===n;if(Bi(e)&&Bi(n))return e.getTime()===n.getTime();const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!s.includes(d))return!1;if(d!=="ref"){const m=n[d];if(Bi(u)&&Bi(m)||xa(u)&&xa(m)||Array.isArray(u)&&Array.isArray(m)?!T0(u,m,r):u!==m)return!1}}return!0}function _$(e){const n=Dm(),{control:r=n.control,name:i,defaultValue:s,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(s),p=ae.useRef(m),g=ae.useRef(void 0);p.current=m;const v=ae.useMemo(()=>r._getWatch(i,h.current),[r,i]),[_,z]=ae.useState(p.current?p.current(v):v);return S0(()=>r._subscribe({name:i,formState:{values:!0},exact:u,callback:N=>{if(!d){const S=g$(i,r._names,N.values||r._formValues,!1,h.current);if(p.current){const O=p.current(S);T0(O,g.current)||(z(O),g.current=O)}else z(S)}}}),[r,d,i,u]),ae.useEffect(()=>r._removeUnmounted()),_}function x$(e){const n=Dm(),{name:r,disabled:i,control:s=n.control,shouldUnregister:d,defaultValue:u}=e,m=f$(s._names.array,r),h=ae.useMemo(()=>Dn(s._formValues,r,Dn(s._defaultValues,r,u)),[s,r,u]),p=_$({control:s,name:r,defaultValue:h,exact:!0}),g=k$({control:s,name:r,exact:!0}),v=ae.useRef(e),_=ae.useRef(void 0),z=ae.useRef(s.register(r,{...e.rules,value:p,...sb(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const N=ae.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Dn(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!Dn(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Dn(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Dn(g.validatingFields,r)},error:{enumerable:!0,get:()=>Dn(g.errors,r)}}),[g,r]),S=ae.useCallback(w=>z.current.onChange({target:{value:d$(w),name:r},type:Y1.CHANGE}),[r]),O=ae.useCallback(()=>z.current.onBlur({target:{value:Dn(s._formValues,r),name:r},type:Y1.BLUR}),[r,s._formValues]),E=ae.useCallback(w=>{const $=Dn(s._fields,r);$&&w&&($._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:D=>w.setCustomValidity(D),reportValidity:()=>w.reportValidity()})},[s._fields,r]),x=ae.useMemo(()=>({name:r,value:p,...sb(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:S,onBlur:O,ref:E}),[r,i,g.disabled,S,O,E,p]);return ae.useEffect(()=>{const w=s._options.shouldUnregister||d,$=_.current;$&&$!==r&&!m&&s.unregister($),s.register(r,{...v.current.rules,...sb(v.current.disabled)?{disabled:v.current.disabled}:{}});const D=(H,Z)=>{const ee=Dn(s._fields,H);ee&&ee._f&&(ee._f.mount=Z)};if(D(r,!0),w){const H=y0(Dn(s._options.defaultValues,r));G1(s._defaultValues,r,H),qb(Dn(s._formValues,r))&&G1(s._formValues,r,H)}return!m&&s.register(r),_.current=r,()=>{(m?w&&!s._state.action:w)?s.unregister(r):D(r,!1)}},[r,s,m,d]),ae.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),ae.useMemo(()=>({field:x,formState:g,fieldState:N}),[x,g,N])}const y$=e=>e.render(x$(e));function Hn(e,n){const r=ae.forwardRef((i,s)=>{const{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:g,...v}=i;return ae.createElement(y$,{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:g,render:({field:_,fieldState:z})=>{const N=v._on,S={...v,ref:O=>{s&&(typeof s=="function"?s(O):s.current=O),O&&_.ref(O)},_name:d,_touched:z.isTouched,_disabled:v._disabled||g||_.disabled,_msg:z.error?{_type:"error",_description:z.error.message||String(z.error)}:void 0,_on:{...N||{},onInput:(O,E)=>{_.onChange(E),N?.onInput?.(O,E)},onChange:(O,E)=>{_.onChange(E),N?.onChange?.(O,E)},onBlur:O=>{_.onBlur(),N?.onBlur?.(O)}}};return n&&(S[n]=_.value),ae.createElement(e,{...S})}})});return r.displayName=`withController(${e.displayName||e.name||"Component"})`,r}const Zb=Hn(Oe,"_value"),A0=Hn(Eo,"_value"),C0=Hn(Yo,"_value"),E0=Hn(So,"_value"),L0=Hn(en,"_value"),O0=Hn(He,"_value"),$0=Hn(Go,"_value"),w$=Hn(Ro),N0=Hn(Qe,"_value"),B0=Hn(_n,"_value"),R0=Hn(Jo,"_value"),D0=Hn(bn,"_value"),M0=Hn(Lo,"_value"),I0=Hn(ro,"_checked"),z$={firstName:"",lastName:"",email:"",password:"",age:18,volume:50,birthday:"",favoriteColor:"#000000",cv:null,bio:"",country:"",language:"de",framework:"",gender:"",termsAccepted:!1},j$=[{label:"English",value:"en"},{label:"German",value:"de"},{label:"French",value:"fr"}],S$=[{label:"React",value:"react"},{label:"Vue",value:"vue"},{label:"Stencil",value:"stencil"}],T$=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Other",value:"other"}],A$=["firstName","lastName","email","password","age","volume","birthday","favoriteColor","cv","bio","country","language","framework","gender","termsAccepted"],C$=()=>{const{control:e,handleSubmit:n,setValue:r,getValues:i,trigger:s}=ld({defaultValues:z$,mode:"onTouched",shouldFocusError:!0}),d=()=>{A$.forEach(h=>{r(h,i(h),{shouldTouch:!0,shouldValidate:!0})})},u=h=>{alert(JSON.stringify(h,null,2))},m=h=>{d(),s(void 0,{shouldFocus:!0}),console.warn("Validation errors:",h)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample demonstrates a form using React Hook Form with KoliBri adapters wrapped in a KolForm. All inputs are validated, and error messages are shown on submit."})}),a.jsx(An,{className:"w-full max-w-xl",_on:{onSubmit:h=>{n(u,m)(h)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Zb,{name:"firstName",control:e,_label:"First Name",rules:{required:"First name is required"},_required:!0}),a.jsx(Zb,{name:"lastName",control:e,_label:"Last Name",rules:{required:"Last name is required"},_required:!0}),a.jsx(C0,{name:"email",control:e,_label:"Email",rules:{required:"Email is required"},_required:!0}),a.jsx(A0,{name:"password",control:e,_label:"Password",rules:{required:"Password is required"},_required:!0}),a.jsx(E0,{name:"age",control:e,_label:"Age",rules:{required:"Age is required",min:0},_required:!0}),a.jsx(L0,{name:"volume",control:e,_label:"Volume (0–100)",_min:0,_max:100}),a.jsx(O0,{name:"birthday",control:e,_label:"Birthday",rules:{required:"Birthday is required"}}),a.jsx($0,{name:"favoriteColor",control:e,_label:"Favorite Color",id:"favoriteColor"}),a.jsx(w$,{name:"cv",control:e,_label:"Upload CV",rules:{required:"Please upload your CV"},_required:!0}),a.jsx(N0,{name:"bio",control:e,_label:"Bio",rules:{required:"Please provide a short bio"},_required:!0}),a.jsx(B0,{control:e,rules:{required:"Please select a country"},name:"country",_label:"Country",_suggestions:Qn,_required:!0}),a.jsx(R0,{control:e,rules:{required:"Please select a language"},name:"language",_label:"Preferred Language",_options:j$,_required:!0}),a.jsx(D0,{rules:{required:"Please select a framework"},control:e,name:"framework",_label:"Favorite Framework",_options:S$,_required:!0}),a.jsx(M0,{control:e,rules:{required:"Please select your gender"},name:"gender",_label:"Gender",_options:T$,_required:!0}),a.jsx(I0,{name:"termsAccepted",control:e,_label:"I accept the terms and conditions",rules:{required:"You must accept the terms"},_required:!0}),a.jsx(W,{_label:"Submit",_type:"submit"})]})})]})},E$=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"All interactive elements, such as buttons and input fields, should have the same height to ensure a consistent and visually balanced user interface."})}),a.jsxs("div",{className:"w-full flex flex-wrap gap-4",children:[a.jsx(W,{_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(Xe,{_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(Xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(_n,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_suggestions:[]}),a.jsx(Go,{_hideLabel:!0,_icons:{left:"codicon codicon-home"},_label:"Input-Color"}),a.jsx(Ro,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-File"}),a.jsx(He,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Date"}),a.jsx(Yo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Email"}),a.jsx(So,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Number"}),a.jsx(Eo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Password"}),a.jsx(en,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Range"}),a.jsx(Oe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Text"}),a.jsx(Jo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(bn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(Qe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox"})]})]})},W1=(e,n,r)=>{if(e&&"reportValidity"in e){const i=de(r,n);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},U0=(e,n)=>{for(const r in n.fields){const i=n.fields[r];i&&i.ref&&"reportValidity"in i.ref?W1(i.ref,r,e):i.refs&&i.refs.forEach(s=>W1(s,r,e))}},L$=(e,n)=>{n.shouldUseNativeValidation&&U0(e,n);const r={};for(const i in e){const s=de(n.fields,i),d=Object.assign(e[i]||{},{ref:s&&s.ref});if(O$(n.names||Object.keys(e),i)){const u=Object.assign({},de(r,i));fo(u,"root",d),fo(r,i,u)}else fo(r,i,d)}return r},O$=(e,n)=>e.some(r=>r.startsWith(n+"."));var $$=function(e,n){for(var r={};e.length;){var i=e[0],s=i.code,d=i.message,u=i.path.join(".");if(!r[u])if("unionErrors"in i){var m=i.unionErrors[0].errors[0];r[u]={message:m.message,type:m.code}}else r[u]={message:d,type:s};if("unionErrors"in i&&i.unionErrors.forEach(function(g){return g.errors.forEach(function(v){return e.push(v)})}),n){var h=r[u].types,p=h&&h[i.code];r[u]=o0(u,n,r,s,p?[].concat(p,i.message):i.message)}e.shift()}return r},N$=function(e,n,r){return r===void 0&&(r={}),function(i,s,d){try{return Promise.resolve((function(u,m){try{var h=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](i,n)).then(function(p){return d.shouldUseNativeValidation&&U0({},d),{errors:{},values:r.raw?i:p}})}catch(p){return m(p)}return h&&h.then?h.then(void 0,m):h})(0,function(u){if((function(m){return Array.isArray(m?.errors)})(u))return{values:{},errors:L$($$(u.errors,!d.shouldUseNativeValidation&&d.criteriaMode==="all"),d)};throw u}))}catch(u){return Promise.reject(u)}}};function X(e,n,r){function i(m,h){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:h,constr:u,traits:new Set},enumerable:!1}),m._zod.traits.has(e))return;m._zod.traits.add(e),n(m,h);const p=u.prototype,g=Object.keys(p);for(let v=0;v<g.length;v++){const _=g[v];_ in m||(m[_]=p[_].bind(m))}}const s=r?.Parent??Object;class d extends s{}Object.defineProperty(d,"name",{value:e});function u(m){var h;const p=r?.Parent?new d:this;i(p,m),(h=p._zod).deferred??(h.deferred=[]);for(const g of p._zod.deferred)g();return p}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class jl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class H0 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const F0={};function ya(e){return F0}function K0(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>n.indexOf(+i)===-1).map(([i,s])=>s)}function Pb(e,n){return typeof n=="bigint"?n.toString():n}function Mm(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Im(e){return e==null}function Um(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function B$(e,n){const r=(e.toString().split(".")[1]||"").length,i=n.toString();let s=(i.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(i)){const h=i.match(/\d?e-(\d?)/);h?.[1]&&(s=Number.parseInt(h[1]))}const d=r>s?r:s,u=Number.parseInt(e.toFixed(d).replace(".","")),m=Number.parseInt(n.toFixed(d).replace(".",""));return u%m/10**d}const Q1=Symbol("evaluating");function ho(e,n,r){let i;Object.defineProperty(e,n,{get(){if(i!==Q1)return i===void 0&&(i=Q1,i=r()),i},set(s){Object.defineProperty(e,n,{value:s})},configurable:!0})}function Ta(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function qr(...e){const n={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(n,i)}return Object.defineProperties({},n)}function ex(e){return JSON.stringify(e)}function R$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const V0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const D$=Mm(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Gi(e){if(Gs(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Gs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function q0(e){return Gi(e)?{...e}:Array.isArray(e)?[...e]:e}const M$=new Set(["string","number","symbol"]);function sd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zr(e,n,r){const i=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(i._zod.parent=e),i}function je(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function I$(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const U$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function H$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=qr(e._zod.def,{get shape(){const u={};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&(u[m]=r.shape[m])}return Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function F$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=qr(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&delete u[m]}return Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function K$(e,n){if(!Gi(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const d=e._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(d,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=qr(e._zod.def,{get shape(){const d={...e._zod.def.shape,...n};return Ta(this,"shape",d),d}});return Zr(e,s)}function V$(e,n){if(!Gi(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ta(this,"shape",i),i}});return Zr(e,r)}function q$(e,n){const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return Ta(this,"shape",i),i},get catchall(){return n._zod.def.catchall},checks:[]});return Zr(e,r)}function Z$(e,n,r){const s=n._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=qr(n._zod.def,{get shape(){const m=n._zod.def.shape,h={...m};if(r)for(const p in r){if(!(p in m))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(h[p]=e?new e({type:"optional",innerType:m[p]}):m[p])}else for(const p in m)h[p]=e?new e({type:"optional",innerType:m[p]}):m[p];return Ta(this,"shape",h),h},checks:[]});return Zr(n,u)}function P$(e,n,r){const i=qr(n._zod.def,{get shape(){const s=n._zod.def.shape,d={...s};if(r)for(const u in r){if(!(u in d))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(d[u]=new e({type:"nonoptional",innerType:s[u]}))}else for(const u in s)d[u]=new e({type:"nonoptional",innerType:s[u]});return Ta(this,"shape",d),d}});return Zr(n,i)}function yl(e,n=0){if(e.aborted===!0)return!0;for(let r=n;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Z0(e,n){return n.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function ys(e){return typeof e=="string"?e:e?.message}function wa(e,n,r){const i={...e,path:e.path??[]};if(!e.message){const s=ys(e.inst?._zod.def?.error?.(e))??ys(n?.error?.(e))??ys(r.customError?.(e))??ys(r.localeError?.(e))??"Invalid input";i.message=s}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Hm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yi(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}const P0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Pb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},G0=X("$ZodError",P0),Y0=X("$ZodError",P0,{Parent:Error});function G$(e,n=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):i.push(n(s));return{formErrors:i,fieldErrors:r}}function Y$(e,n=r=>r.message){const r={_errors:[]},i=s=>{for(const d of s.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(u=>i({issues:u}));else if(d.code==="invalid_key")i({issues:d.issues});else if(d.code==="invalid_element")i({issues:d.issues});else if(d.path.length===0)r._errors.push(n(d));else{let u=r,m=0;for(;m<d.path.length;){const h=d.path[m];m===d.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(d))):u[h]=u[h]||{_errors:[]},u=u[h],m++}}};return i(e),r}const Fm=e=>(n,r,i,s)=>{const d=i?Object.assign(i,{async:!1}):{async:!1},u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise)throw new jl;if(u.issues.length){const m=new(s?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,s?.callee),m}return u.value},Km=e=>async(n,r,i,s)=>{const d=i?Object.assign(i,{async:!0}):{async:!0};let u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise&&(u=await u),u.issues.length){const m=new(s?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,s?.callee),m}return u.value},dd=e=>(n,r,i)=>{const s=i?{...i,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},s);if(d instanceof Promise)throw new jl;return d.issues.length?{success:!1,error:new(e??G0)(d.issues.map(u=>wa(u,s,ya())))}:{success:!0,data:d.value}},J$=dd(Y0),ud=e=>async(n,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let d=n._zod.run({value:r,issues:[]},s);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(u=>wa(u,s,ya())))}:{success:!0,data:d.value}},X$=ud(Y0),W$=e=>(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Fm(e)(n,r,s)},Q$=e=>(n,r,i)=>Fm(e)(n,r,i),e9=e=>async(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Km(e)(n,r,s)},o9=e=>async(n,r,i)=>Km(e)(n,r,i),n9=e=>(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return dd(e)(n,r,s)},t9=e=>(n,r,i)=>dd(e)(n,r,i),r9=e=>async(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ud(e)(n,r,s)},a9=e=>async(n,r,i)=>ud(e)(n,r,i),l9=/^[cC][^\s-]{8,}$/,i9=/^[0-9a-z]+$/,c9=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,s9=/^[0-9a-vA-V]{20}$/,d9=/^[A-Za-z0-9]{27}$/,u9=/^[a-zA-Z0-9_-]{21}$/,f9=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,b9=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ox=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,m9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,h9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function p9(){return new RegExp(h9,"u")}const k9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,v9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,g9=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x9=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,J0=/^[A-Za-z0-9_-]*$/,y9=/^\+[1-9]\d{6,14}$/,X0="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",w9=new RegExp(`^${X0}$`);function W0(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function z9(e){return new RegExp(`^${W0(e)}$`)}function j9(e){const n=W0({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${n}(?:${r.join("|")})`;return new RegExp(`^${X0}T(?:${i})$`)}const S9=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},T9=/^-?\d+$/,A9=/^-?\d+(?:\.\d+)?$/,C9=/^(?:true|false)$/i,E9=/^[^A-Z]*$/,L9=/^[^a-z]*$/,Fn=X("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Q0={number:"number",bigint:"bigint",object:"date"},ew=X("$ZodCheckLessThan",(e,n)=>{Fn.init(e,n);const r=Q0[typeof n.value];e._zod.onattach.push(i=>{const s=i._zod.bag,d=(n.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<d&&(n.inclusive?s.maximum=n.value:s.exclusiveMaximum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value<=n.value:i.value<n.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),ow=X("$ZodCheckGreaterThan",(e,n)=>{Fn.init(e,n);const r=Q0[typeof n.value];e._zod.onattach.push(i=>{const s=i._zod.bag,d=(n.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>d&&(n.inclusive?s.minimum=n.value:s.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),O9=X("$ZodCheckMultipleOf",(e,n)=>{Fn.init(e,n),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):B$(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),$9=X("$ZodCheckNumberFormat",(e,n)=>{Fn.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[s,d]=U$[n.format];e._zod.onattach.push(u=>{const m=u._zod.bag;m.format=n.format,m.minimum=s,m.maximum=d,r&&(m.pattern=T9)}),e._zod.check=u=>{const m=u.value;if(r){if(!Number.isInteger(m)){u.issues.push({expected:i,format:n.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?u.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort}):u.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort});return}}m<s&&u.issues.push({origin:"number",input:m,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!n.abort}),m>d&&u.issues.push({origin:"number",input:m,code:"too_big",maximum:d,inclusive:!0,inst:e,continue:!n.abort})}}),N9=X("$ZodCheckMaxLength",(e,n)=>{var r;Fn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Im(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<s&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=n.maximum)return;const u=Hm(s);i.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),B9=X("$ZodCheckMinLength",(e,n)=>{var r;Fn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Im(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>s&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=n.minimum)return;const u=Hm(s);i.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),R9=X("$ZodCheckLengthEquals",(e,n)=>{var r;Fn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Im(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=n.length,s.maximum=n.length,s.length=n.length}),e._zod.check=i=>{const s=i.value,d=s.length;if(d===n.length)return;const u=Hm(s),m=d>n.length;i.issues.push({origin:u,...m?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),fd=X("$ZodCheckStringFormat",(e,n)=>{var r,i;Fn.init(e,n),e._zod.onattach.push(s=>{const d=s._zod.bag;d.format=n.format,n.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=s=>{n.pattern.lastIndex=0,!n.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:n.format,input:s.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),D9=X("$ZodCheckRegex",(e,n)=>{fd.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),M9=X("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=E9),fd.init(e,n)}),I9=X("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=L9),fd.init(e,n)}),U9=X("$ZodCheckIncludes",(e,n)=>{Fn.init(e,n);const r=sd(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(s=>{const d=s._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(i)}),e._zod.check=s=>{s.value.includes(n.includes,n.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:s.value,inst:e,continue:!n.abort})}}),H9=X("$ZodCheckStartsWith",(e,n)=>{Fn.init(e,n);const r=new RegExp(`^${sd(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),F9=X("$ZodCheckEndsWith",(e,n)=>{Fn.init(e,n);const r=new RegExp(`.*${sd(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}}),K9=X("$ZodCheckOverwrite",(e,n)=>{Fn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class V9{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const i=n.split(`
|
|
25974
25974
|
`).filter(u=>u),s=Math.min(...i.map(u=>u.length-u.trimStart().length)),d=i.map(u=>u.slice(s)).map(u=>" ".repeat(this.indent*2)+u);for(const u of d)this.content.push(u)}compile(){const n=Function,r=this?.args,s=[...(this?.content??[""]).map(d=>` ${d}`)];return new n(...r,s.join(`
|
|
25975
|
-
`))}}const q9={major:4,minor:3,patch:6},Mo=X("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=q9;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const s of i)for(const d of s._zod.onattach)d(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,m,h)=>{let p=
|
|
25975
|
+
`))}}const q9={major:4,minor:3,patch:6},Mo=X("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=q9;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const s of i)for(const d of s._zod.onattach)d(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,m,h)=>{let p=yl(u),g;for(const v of m){if(v._zod.def.when){if(!v._zod.def.when(u))continue}else if(p)continue;const _=u.issues.length,z=v._zod.check(u);if(z instanceof Promise&&h?.async===!1)throw new jl;if(g||z instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await z,u.issues.length!==_&&(p||(p=yl(u,_)))});else{if(u.issues.length===_)continue;p||(p=yl(u,_))}}return g?g.then(()=>u):u},d=(u,m,h)=>{if(yl(u))return u.aborted=!0,u;const p=s(m,i,h);if(p instanceof Promise){if(h.async===!1)throw new jl;return p.then(g=>e._zod.parse(g,h))}return e._zod.parse(p,h)};e._zod.run=(u,m)=>{if(m.skipChecks)return e._zod.parse(u,m);if(m.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...m,skipChecks:!0});return p instanceof Promise?p.then(g=>d(g,u,m)):d(p,u,m)}const h=e._zod.parse(u,m);if(h instanceof Promise){if(m.async===!1)throw new jl;return h.then(p=>s(p,i,m))}return s(h,i,m)}}ho(e,"~standard",()=>({validate:s=>{try{const d=J$(e,s);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return X$(e,s).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Vm=X("$ZodString",(e,n)=>{Mo.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??S9(e._zod.bag),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ao=X("$ZodStringFormat",(e,n)=>{fd.init(e,n),Vm.init(e,n)}),Z9=X("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=b9),Ao.init(e,n)}),P9=X("$ZodUUID",(e,n)=>{if(n.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(i===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=ox(i))}else n.pattern??(n.pattern=ox());Ao.init(e,n)}),G9=X("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=m9),Ao.init(e,n)}),Y9=X("$ZodURL",(e,n)=>{Ao.init(e,n),e._zod.check=r=>{try{const i=r.value.trim(),s=new URL(i);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(s.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=s.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),J9=X("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=p9()),Ao.init(e,n)}),X9=X("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=u9),Ao.init(e,n)}),W9=X("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=l9),Ao.init(e,n)}),Q9=X("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=i9),Ao.init(e,n)}),eN=X("$ZodULID",(e,n)=>{n.pattern??(n.pattern=c9),Ao.init(e,n)}),oN=X("$ZodXID",(e,n)=>{n.pattern??(n.pattern=s9),Ao.init(e,n)}),nN=X("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=d9),Ao.init(e,n)}),tN=X("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=j9(n)),Ao.init(e,n)}),rN=X("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=w9),Ao.init(e,n)}),aN=X("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=z9(n)),Ao.init(e,n)}),lN=X("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=f9),Ao.init(e,n)}),iN=X("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=k9),Ao.init(e,n),e._zod.bag.format="ipv4"}),cN=X("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=v9),Ao.init(e,n),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),sN=X("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=g9),Ao.init(e,n)}),dN=X("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=_9),Ao.init(e,n),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[s,d]=i;if(!d)throw new Error;const u=Number(d);if(`${u}`!==d)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function nw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const uN=X("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=x9),Ao.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{nw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function fN(e){if(!J0.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return nw(r)}const bN=X("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=J0),Ao.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{fN(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),mN=X("$ZodE164",(e,n)=>{n.pattern??(n.pattern=y9),Ao.init(e,n)});function hN(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const s=JSON.parse(atob(i));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||n&&(!("alg"in s)||s.alg!==n))}catch{return!1}}const pN=X("$ZodJWT",(e,n)=>{Ao.init(e,n),e._zod.check=r=>{hN(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),tw=X("$ZodNumber",(e,n)=>{Mo.init(e,n),e._zod.pattern=e._zod.bag.pattern??A9,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const s=r.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return r;const d=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...d?{received:d}:{}}),r}}),kN=X("$ZodNumberFormat",(e,n)=>{$9.init(e,n),tw.init(e,n)}),vN=X("$ZodBoolean",(e,n)=>{Mo.init(e,n),e._zod.pattern=C9,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=!!r.value}catch{}const s=r.value;return typeof s=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),r}}),gN=X("$ZodUnknown",(e,n)=>{Mo.init(e,n),e._zod.parse=r=>r}),_N=X("$ZodNever",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),xN=X("$ZodDate",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}const s=r.value,d=s instanceof Date;return d&&!Number.isNaN(s.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:s,...d?{received:"Invalid Date"}:{},inst:e}),r}});function nx(e,n,r){e.issues.length&&n.issues.push(...Z0(r,e.issues)),n.value[r]=e.value}const yN=X("$ZodArray",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const d=[];for(let u=0;u<s.length;u++){const m=s[u],h=n.element._zod.run({value:m,issues:[]},i);h instanceof Promise?d.push(h.then(p=>nx(p,r,u))):nx(h,r,u)}return d.length?Promise.all(d).then(()=>r):r}});function Ys(e,n,r,i,s){if(e.issues.length){if(s&&!(r in i))return;n.issues.push(...Z0(r,e.issues))}e.value===void 0?r in i&&(n.value[r]=void 0):n.value[r]=e.value}function rw(e){const n=Object.keys(e.shape);for(const i of n)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=I$(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function aw(e,n,r,i,s,d){const u=[],m=s.keySet,h=s.catchall._zod,p=h.def.type,g=h.optout==="optional";for(const v in n){if(m.has(v))continue;if(p==="never"){u.push(v);continue}const _=h.run({value:n[v],issues:[]},i);_ instanceof Promise?e.push(_.then(z=>Ys(z,r,v,n,g))):Ys(_,r,v,n,g)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:n,inst:d}),e.length?Promise.all(e).then(()=>r):r}const wN=X("$ZodObject",(e,n)=>{if(Mo.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const m=n.shape;Object.defineProperty(n,"shape",{get:()=>{const h={...m};return Object.defineProperty(n,"shape",{value:h}),h}})}const i=Mm(()=>rw(n));ho(e._zod,"propValues",()=>{const m=n.shape,h={};for(const p in m){const g=m[p]._zod;if(g.values){h[p]??(h[p]=new Set);for(const v of g.values)h[p].add(v)}}return h});const s=Gs,d=n.catchall;let u;e._zod.parse=(m,h)=>{u??(u=i.value);const p=m.value;if(!s(p))return m.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),m;m.value={};const g=[],v=u.shape;for(const _ of u.keys){const z=v[_],N=z._zod.optout==="optional",S=z._zod.run({value:p[_],issues:[]},h);S instanceof Promise?g.push(S.then(O=>Ys(O,m,_,p,N))):Ys(S,m,_,p,N)}return d?aw(g,p,m,h,i.value,e):g.length?Promise.all(g).then(()=>m):m}}),zN=X("$ZodObjectJIT",(e,n)=>{wN.init(e,n);const r=e._zod.parse,i=Mm(()=>rw(n)),s=_=>{const z=new V9(["shape","payload","ctx"]),N=i.value,S=w=>{const $=ex(w);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};z.write("const input = payload.value;");const O=Object.create(null);let E=0;for(const w of N.keys)O[w]=`key_${E++}`;z.write("const newResult = {};");for(const w of N.keys){const $=O[w],D=ex(w),Z=_[w]?._zod?.optout==="optional";z.write(`const ${$} = ${S(w)};`),Z?z.write(`
|
|
25976
25976
|
if (${$}.issues.length) {
|
|
25977
25977
|
if (${D} in input) {
|
|
25978
25978
|
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
|
@@ -26006,9 +26006,9 @@ sit amet.`,EO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{chi
|
|
|
26006
26006
|
newResult[${D}] = ${$}.value;
|
|
26007
26007
|
}
|
|
26008
26008
|
|
|
26009
|
-
`)}z.write("payload.value = newResult;"),z.write("return payload;");const x=z.compile();return(w,$)=>x(_,w,$)};let d;const u=Ps,m=!F0.jitless,p=m&&D$.value,g=n.catchall;let v;e._zod.parse=(_,z)=>{v??(v=i.value);const N=_.value;return u(N)?m&&p&&z?.async===!1&&z.jitless!==!0?(d||(d=s(n.shape)),_=d(_,z),g?aw([],N,_,z,v,e):_):r(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:N,inst:e}),_)}});function nx(e,n,r,i){for(const d of e)if(d.issues.length===0)return n.value=d.value,n;const s=e.filter(d=>!xl(d));return s.length===1?(n.value=s[0].value,s[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(d=>d.issues.map(u=>wa(u,i,ya())))}),n)}const SN=X("$ZodUnion",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.options.some(s=>s._zod.optin==="optional")?"optional":void 0),ho(e._zod,"optout",()=>n.options.some(s=>s._zod.optout==="optional")?"optional":void 0),ho(e._zod,"values",()=>{if(n.options.every(s=>s._zod.values))return new Set(n.options.flatMap(s=>Array.from(s._zod.values)))}),ho(e._zod,"pattern",()=>{if(n.options.every(s=>s._zod.pattern)){const s=n.options.map(d=>d._zod.pattern);return new RegExp(`^(${s.map(d=>Im(d.source)).join("|")})$`)}});const r=n.options.length===1,i=n.options[0]._zod.run;e._zod.parse=(s,d)=>{if(r)return i(s,d);let u=!1;const m=[];for(const h of n.options){const p=h._zod.run({value:s.value,issues:[]},d);if(p instanceof Promise)m.push(p),u=!0;else{if(p.issues.length===0)return p;m.push(p)}}return u?Promise.all(m).then(h=>nx(h,s,e,d)):nx(m,s,e,d)}}),jN=X("$ZodIntersection",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{const s=r.value,d=n.left._zod.run({value:s,issues:[]},i),u=n.right._zod.run({value:s,issues:[]},i);return d instanceof Promise||u instanceof Promise?Promise.all([d,u]).then(([h,p])=>tx(r,h,p)):tx(r,d,u)}});function Pb(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Pi(e)&&Pi(n)){const r=Object.keys(n),i=Object.keys(e).filter(d=>r.indexOf(d)!==-1),s={...e,...n};for(const d of i){const u=Pb(e[d],n[d]);if(!u.valid)return{valid:!1,mergeErrorPath:[d,...u.mergeErrorPath]};s[d]=u.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const s=e[i],d=n[i],u=Pb(s,d);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function tx(e,n,r){const i=new Map;let s;for(const m of n.issues)if(m.code==="unrecognized_keys"){s??(s=m);for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).l=!0}else e.issues.push(m);for(const m of r.issues)if(m.code==="unrecognized_keys")for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).r=!0;else e.issues.push(m);const d=[...i].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(d.length&&s&&e.issues.push({...s,keys:d}),xl(e))return e;const u=Pb(n.value,r.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const TN=X("$ZodEnum",(e,n)=>{Mo.init(e,n);const r=K0(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(s=>M$.has(typeof s)).map(s=>typeof s=="string"?cd(s):s.toString()).join("|")})$`),e._zod.parse=(s,d)=>{const u=s.value;return i.has(u)||s.issues.push({code:"invalid_value",values:r,input:u,inst:e}),s}}),AN=X("$ZodTransform",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new H0(e.constructor.name);const s=n.transform(r.value,r);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(r.value=u,r));if(s instanceof Promise)throw new zl;return r.value=s,r}});function rx(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const lw=X("$ZodOptional",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",e._zod.optout="optional",ho(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Im(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>rx(d,r.value)):rx(s,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),CN=X("$ZodExactOptional",(e,n)=>{lw.init(e,n),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),EN=X("$ZodNullable",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Im(r.source)}|null)$`):void 0}),ho(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:n.innerType._zod.run(r,i)}),LN=X("$ZodDefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);if(r.value===void 0)return r.value=n.defaultValue,r;const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>ax(d,n)):ax(s,n)}});function ax(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const ON=X("$ZodPrefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,i))}),$N=X("$ZodNonOptional",(e,n)=>{Mo.init(e,n),ho(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>lx(d,e)):lx(s,e)}});function lx(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const NN=X("$ZodCatch",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>(r.value=d.value,d.issues.length&&(r.value=n.catchValue({...r,error:{issues:d.issues.map(u=>wa(u,i,ya()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=n.catchValue({...r,error:{issues:s.issues.map(d=>wa(d,i,ya()))},input:r.value}),r.issues=[]),r)}}),BN=X("$ZodPipe",(e,n)=>{Mo.init(e,n),ho(e._zod,"values",()=>n.in._zod.values),ho(e._zod,"optin",()=>n.in._zod.optin),ho(e._zod,"optout",()=>n.out._zod.optout),ho(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const d=n.out._zod.run(r,i);return d instanceof Promise?d.then(u=>ys(u,n.in,i)):ys(d,n.in,i)}const s=n.in._zod.run(r,i);return s instanceof Promise?s.then(d=>ys(d,n.out,i)):ys(s,n.out,i)}});function ys(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const RN=X("$ZodReadonly",(e,n)=>{Mo.init(e,n),ho(e._zod,"propValues",()=>n.innerType._zod.propValues),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"optin",()=>n.innerType?._zod?.optin),ho(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(ix):ix(s)}});function ix(e){return e.value=Object.freeze(e.value),e}const DN=X("$ZodCustom",(e,n)=>{Kn.init(e,n),Mo.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,s=n.fn(i);if(s instanceof Promise)return s.then(d=>cx(d,r,i,e));cx(s,r,i,e)}});function cx(e,n,r,i){if(!e){const s={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),n.issues.push(Gi(s))}}var sx;class MN{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const i=r[0];return this._map.set(n,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const s={...i,...this._map.get(n)};return Object.keys(s).length?s:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function IN(){return new MN}(sx=globalThis).__zod_globalRegistry??(sx.__zod_globalRegistry=IN());const Bi=globalThis.__zod_globalRegistry;function UN(e,n){return new e({type:"string",...Se(n)})}function HN(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(n)})}function dx(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(n)})}function FN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(n)})}function KN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(n)})}function VN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(n)})}function qN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(n)})}function ZN(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(n)})}function PN(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(n)})}function GN(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(n)})}function YN(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(n)})}function JN(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(n)})}function XN(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(n)})}function WN(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(n)})}function QN(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(n)})}function e7(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(n)})}function o7(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(n)})}function n7(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(n)})}function t7(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(n)})}function r7(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(n)})}function a7(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(n)})}function l7(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(n)})}function i7(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(n)})}function c7(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(n)})}function s7(e,n){return new e({type:"string",format:"date",check:"string_format",...Se(n)})}function d7(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(n)})}function u7(e,n){return new e({type:"string",format:"duration",check:"string_format",...Se(n)})}function f7(e,n){return new e({type:"number",checks:[],...Se(n)})}function b7(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Se(n)})}function m7(e,n){return new e({type:"boolean",...Se(n)})}function h7(e){return new e({type:"unknown"})}function p7(e,n){return new e({type:"never",...Se(n)})}function k7(e,n){return new e({type:"date",...Se(n)})}function ux(e,n){return new ew({check:"less_than",...Se(n),value:e,inclusive:!1})}function $s(e,n){return new ew({check:"less_than",...Se(n),value:e,inclusive:!0})}function fx(e,n){return new ow({check:"greater_than",...Se(n),value:e,inclusive:!1})}function Ns(e,n){return new ow({check:"greater_than",...Se(n),value:e,inclusive:!0})}function bx(e,n){return new O9({check:"multiple_of",...Se(n),value:e})}function iw(e,n){return new N9({check:"max_length",...Se(n),maximum:e})}function Ys(e,n){return new B9({check:"min_length",...Se(n),minimum:e})}function cw(e,n){return new R9({check:"length_equals",...Se(n),length:e})}function v7(e,n){return new D9({check:"string_format",format:"regex",...Se(n),pattern:e})}function g7(e){return new M9({check:"string_format",format:"lowercase",...Se(e)})}function _7(e){return new I9({check:"string_format",format:"uppercase",...Se(e)})}function x7(e,n){return new U9({check:"string_format",format:"includes",...Se(n),includes:e})}function y7(e,n){return new H9({check:"string_format",format:"starts_with",...Se(n),prefix:e})}function w7(e,n){return new F9({check:"string_format",format:"ends_with",...Se(n),suffix:e})}function Cl(e){return new K9({check:"overwrite",tx:e})}function z7(e){return Cl(n=>n.normalize(e))}function S7(){return Cl(e=>e.trim())}function j7(){return Cl(e=>e.toLowerCase())}function T7(){return Cl(e=>e.toUpperCase())}function A7(){return Cl(e=>R$(e))}function C7(e,n,r){return new e({type:"array",element:n,...Se(r)})}function E7(e,n,r){return new e({type:"custom",check:"custom",fn:n,...Se(r)})}function L7(e){const n=O7(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Gi(i,r.value,n._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(Gi(s))}},e(r.value,r)));return n}function O7(e,n){const r=new Kn({check:"custom",...Se(n)});return r._zod.check=e,r}function sw(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Bi,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function pn(e,n,r={path:[],schemaPath:[]}){var i;const s=e._zod.def,d=n.seen.get(e);if(d)return d.count++,r.schemaPath.includes(e)&&(d.cycle=r.path),d.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,u);const m=e._zod.toJSONSchema?.();if(m)u.schema=m;else{const g={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,u.schema,g);else{const _=u.schema,z=n.processors[s.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);z(e,n,_,g)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),pn(v,n,g),n.seen.get(v).isParent=!0)}const h=n.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),n.io==="input"&&Sn(e)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&u.schema._prefault&&((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(e).schema}function dw(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const u of e.seen.entries()){const m=e.metadataRegistry.get(u[0])?.id;if(m){const h=i.get(m);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(m,u[0])}}const s=u=>{const m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,_=e.external.uri??(N=>N);if(v)return{ref:_(v)};const z=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=z,{defId:z,ref:`${_("__shared")}#/${m}/${z}`}}if(u[1]===r)return{ref:"#"};const p=`#/${m}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:p+g}},d=u=>{if(u[1].schema.$ref)return;const m=u[1],{ref:h,defId:p}=s(u);m.def={...m.schema},p&&(m.defId=p);const g=m.schema;for(const v in g)delete g[v];g.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const m=u[1];if(m.cycle)throw new Error(`Cycle detected: #/${m.cycle?.join("/")}/<root>
|
|
26009
|
+
`)}z.write("payload.value = newResult;"),z.write("return payload;");const x=z.compile();return(w,$)=>x(_,w,$)};let d;const u=Gs,m=!F0.jitless,p=m&&D$.value,g=n.catchall;let v;e._zod.parse=(_,z)=>{v??(v=i.value);const N=_.value;return u(N)?m&&p&&z?.async===!1&&z.jitless!==!0?(d||(d=s(n.shape)),_=d(_,z),g?aw([],N,_,z,v,e):_):r(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:N,inst:e}),_)}});function tx(e,n,r,i){for(const d of e)if(d.issues.length===0)return n.value=d.value,n;const s=e.filter(d=>!yl(d));return s.length===1?(n.value=s[0].value,s[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(d=>d.issues.map(u=>wa(u,i,ya())))}),n)}const jN=X("$ZodUnion",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.options.some(s=>s._zod.optin==="optional")?"optional":void 0),ho(e._zod,"optout",()=>n.options.some(s=>s._zod.optout==="optional")?"optional":void 0),ho(e._zod,"values",()=>{if(n.options.every(s=>s._zod.values))return new Set(n.options.flatMap(s=>Array.from(s._zod.values)))}),ho(e._zod,"pattern",()=>{if(n.options.every(s=>s._zod.pattern)){const s=n.options.map(d=>d._zod.pattern);return new RegExp(`^(${s.map(d=>Um(d.source)).join("|")})$`)}});const r=n.options.length===1,i=n.options[0]._zod.run;e._zod.parse=(s,d)=>{if(r)return i(s,d);let u=!1;const m=[];for(const h of n.options){const p=h._zod.run({value:s.value,issues:[]},d);if(p instanceof Promise)m.push(p),u=!0;else{if(p.issues.length===0)return p;m.push(p)}}return u?Promise.all(m).then(h=>tx(h,s,e,d)):tx(m,s,e,d)}}),SN=X("$ZodIntersection",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{const s=r.value,d=n.left._zod.run({value:s,issues:[]},i),u=n.right._zod.run({value:s,issues:[]},i);return d instanceof Promise||u instanceof Promise?Promise.all([d,u]).then(([h,p])=>rx(r,h,p)):rx(r,d,u)}});function Gb(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Gi(e)&&Gi(n)){const r=Object.keys(n),i=Object.keys(e).filter(d=>r.indexOf(d)!==-1),s={...e,...n};for(const d of i){const u=Gb(e[d],n[d]);if(!u.valid)return{valid:!1,mergeErrorPath:[d,...u.mergeErrorPath]};s[d]=u.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const s=e[i],d=n[i],u=Gb(s,d);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function rx(e,n,r){const i=new Map;let s;for(const m of n.issues)if(m.code==="unrecognized_keys"){s??(s=m);for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).l=!0}else e.issues.push(m);for(const m of r.issues)if(m.code==="unrecognized_keys")for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).r=!0;else e.issues.push(m);const d=[...i].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(d.length&&s&&e.issues.push({...s,keys:d}),yl(e))return e;const u=Gb(n.value,r.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const TN=X("$ZodEnum",(e,n)=>{Mo.init(e,n);const r=K0(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(s=>M$.has(typeof s)).map(s=>typeof s=="string"?sd(s):s.toString()).join("|")})$`),e._zod.parse=(s,d)=>{const u=s.value;return i.has(u)||s.issues.push({code:"invalid_value",values:r,input:u,inst:e}),s}}),AN=X("$ZodTransform",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new H0(e.constructor.name);const s=n.transform(r.value,r);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(r.value=u,r));if(s instanceof Promise)throw new jl;return r.value=s,r}});function ax(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const lw=X("$ZodOptional",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",e._zod.optout="optional",ho(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Um(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>ax(d,r.value)):ax(s,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),CN=X("$ZodExactOptional",(e,n)=>{lw.init(e,n),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),EN=X("$ZodNullable",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Um(r.source)}|null)$`):void 0}),ho(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:n.innerType._zod.run(r,i)}),LN=X("$ZodDefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);if(r.value===void 0)return r.value=n.defaultValue,r;const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>lx(d,n)):lx(s,n)}});function lx(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const ON=X("$ZodPrefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,i))}),$N=X("$ZodNonOptional",(e,n)=>{Mo.init(e,n),ho(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>ix(d,e)):ix(s,e)}});function ix(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const NN=X("$ZodCatch",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>(r.value=d.value,d.issues.length&&(r.value=n.catchValue({...r,error:{issues:d.issues.map(u=>wa(u,i,ya()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=n.catchValue({...r,error:{issues:s.issues.map(d=>wa(d,i,ya()))},input:r.value}),r.issues=[]),r)}}),BN=X("$ZodPipe",(e,n)=>{Mo.init(e,n),ho(e._zod,"values",()=>n.in._zod.values),ho(e._zod,"optin",()=>n.in._zod.optin),ho(e._zod,"optout",()=>n.out._zod.optout),ho(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const d=n.out._zod.run(r,i);return d instanceof Promise?d.then(u=>ws(u,n.in,i)):ws(d,n.in,i)}const s=n.in._zod.run(r,i);return s instanceof Promise?s.then(d=>ws(d,n.out,i)):ws(s,n.out,i)}});function ws(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const RN=X("$ZodReadonly",(e,n)=>{Mo.init(e,n),ho(e._zod,"propValues",()=>n.innerType._zod.propValues),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"optin",()=>n.innerType?._zod?.optin),ho(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(cx):cx(s)}});function cx(e){return e.value=Object.freeze(e.value),e}const DN=X("$ZodCustom",(e,n)=>{Fn.init(e,n),Mo.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,s=n.fn(i);if(s instanceof Promise)return s.then(d=>sx(d,r,i,e));sx(s,r,i,e)}});function sx(e,n,r,i){if(!e){const s={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),n.issues.push(Yi(s))}}var dx;class MN{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const i=r[0];return this._map.set(n,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const s={...i,...this._map.get(n)};return Object.keys(s).length?s:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function IN(){return new MN}(dx=globalThis).__zod_globalRegistry??(dx.__zod_globalRegistry=IN());const Ri=globalThis.__zod_globalRegistry;function UN(e,n){return new e({type:"string",...je(n)})}function HN(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(n)})}function ux(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(n)})}function FN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(n)})}function KN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(n)})}function VN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(n)})}function qN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(n)})}function ZN(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(n)})}function PN(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(n)})}function GN(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(n)})}function YN(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(n)})}function JN(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(n)})}function XN(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(n)})}function WN(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(n)})}function QN(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(n)})}function e7(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(n)})}function o7(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(n)})}function n7(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(n)})}function t7(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(n)})}function r7(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(n)})}function a7(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(n)})}function l7(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(n)})}function i7(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(n)})}function c7(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(n)})}function s7(e,n){return new e({type:"string",format:"date",check:"string_format",...je(n)})}function d7(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(n)})}function u7(e,n){return new e({type:"string",format:"duration",check:"string_format",...je(n)})}function f7(e,n){return new e({type:"number",checks:[],...je(n)})}function b7(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(n)})}function m7(e,n){return new e({type:"boolean",...je(n)})}function h7(e){return new e({type:"unknown"})}function p7(e,n){return new e({type:"never",...je(n)})}function k7(e,n){return new e({type:"date",...je(n)})}function fx(e,n){return new ew({check:"less_than",...je(n),value:e,inclusive:!1})}function Ns(e,n){return new ew({check:"less_than",...je(n),value:e,inclusive:!0})}function bx(e,n){return new ow({check:"greater_than",...je(n),value:e,inclusive:!1})}function Bs(e,n){return new ow({check:"greater_than",...je(n),value:e,inclusive:!0})}function mx(e,n){return new O9({check:"multiple_of",...je(n),value:e})}function iw(e,n){return new N9({check:"max_length",...je(n),maximum:e})}function Js(e,n){return new B9({check:"min_length",...je(n),minimum:e})}function cw(e,n){return new R9({check:"length_equals",...je(n),length:e})}function v7(e,n){return new D9({check:"string_format",format:"regex",...je(n),pattern:e})}function g7(e){return new M9({check:"string_format",format:"lowercase",...je(e)})}function _7(e){return new I9({check:"string_format",format:"uppercase",...je(e)})}function x7(e,n){return new U9({check:"string_format",format:"includes",...je(n),includes:e})}function y7(e,n){return new H9({check:"string_format",format:"starts_with",...je(n),prefix:e})}function w7(e,n){return new F9({check:"string_format",format:"ends_with",...je(n),suffix:e})}function El(e){return new K9({check:"overwrite",tx:e})}function z7(e){return El(n=>n.normalize(e))}function j7(){return El(e=>e.trim())}function S7(){return El(e=>e.toLowerCase())}function T7(){return El(e=>e.toUpperCase())}function A7(){return El(e=>R$(e))}function C7(e,n,r){return new e({type:"array",element:n,...je(r)})}function E7(e,n,r){return new e({type:"custom",check:"custom",fn:n,...je(r)})}function L7(e){const n=O7(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Yi(i,r.value,n._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(Yi(s))}},e(r.value,r)));return n}function O7(e,n){const r=new Fn({check:"custom",...je(n)});return r._zod.check=e,r}function sw(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ri,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function pn(e,n,r={path:[],schemaPath:[]}){var i;const s=e._zod.def,d=n.seen.get(e);if(d)return d.count++,r.schemaPath.includes(e)&&(d.cycle=r.path),d.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,u);const m=e._zod.toJSONSchema?.();if(m)u.schema=m;else{const g={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,u.schema,g);else{const _=u.schema,z=n.processors[s.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);z(e,n,_,g)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),pn(v,n,g),n.seen.get(v).isParent=!0)}const h=n.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),n.io==="input"&&jn(e)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&u.schema._prefault&&((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(e).schema}function dw(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const u of e.seen.entries()){const m=e.metadataRegistry.get(u[0])?.id;if(m){const h=i.get(m);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(m,u[0])}}const s=u=>{const m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,_=e.external.uri??(N=>N);if(v)return{ref:_(v)};const z=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=z,{defId:z,ref:`${_("__shared")}#/${m}/${z}`}}if(u[1]===r)return{ref:"#"};const p=`#/${m}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:p+g}},d=u=>{if(u[1].schema.$ref)return;const m=u[1],{ref:h,defId:p}=s(u);m.def={...m.schema},p&&(m.defId=p);const g=m.schema;for(const v in g)delete g[v];g.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const m=u[1];if(m.cycle)throw new Error(`Cycle detected: #/${m.cycle?.join("/")}/<root>
|
|
26010
26010
|
|
|
26011
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const m=u[1];if(n===u[0]){d(u);continue}if(e.external){const p=e.external.registry.get(u[0])?.id;if(n!==u[0]&&p){d(u);continue}}if(e.metadataRegistry.get(u[0])?.id){d(u);continue}if(m.cycle){d(u);continue}if(m.count>1&&e.reused==="ref"){d(u);continue}}}function uw(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const m=e.seen.get(u);if(m.ref===null)return;const h=m.def??m.schema,p={...h},g=m.ref;if(m.ref=null,g){i(g);const _=e.seen.get(g),z=_.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(z)):Object.assign(h,z),Object.assign(h,p),u._zod.parent===g)for(const j in h)j==="$ref"||j==="allOf"||j in p||delete h[j];if(z.$ref&&_.def)for(const j in h)j==="$ref"||j==="allOf"||j in _.def&&JSON.stringify(h[j])===JSON.stringify(_.def[j])&&delete h[j]}const v=u._zod.parent;if(v&&v!==g){i(v);const _=e.seen.get(v);if(_?.schema.$ref&&(h.$ref=_.schema.$ref,_.def))for(const z in h)z==="$ref"||z==="allOf"||z in _.def&&JSON.stringify(h[z])===JSON.stringify(_.def[z])&&delete h[z]}e.override({zodSchema:u,jsonSchema:h,path:m.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(n)?.id;if(!u)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(u)}Object.assign(s,r.def??r.schema);const d=e.external?.defs??{};for(const u of e.seen.entries()){const m=u[1];m.def&&m.defId&&(d[m.defId]=m.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?s.$defs=d:s.definitions=d);try{const u=JSON.parse(JSON.stringify(s));return Object.defineProperty(u,"~standard",{value:{...n["~standard"],jsonSchema:{input:Js(n,"input",e.processors),output:Js(n,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Sn(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Sn(i.element,r);if(i.type==="set")return Sn(i.valueType,r);if(i.type==="lazy")return Sn(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Sn(i.innerType,r);if(i.type==="intersection")return Sn(i.left,r)||Sn(i.right,r);if(i.type==="record"||i.type==="map")return Sn(i.keyType,r)||Sn(i.valueType,r);if(i.type==="pipe")return Sn(i.in,r)||Sn(i.out,r);if(i.type==="object"){for(const s in i.shape)if(Sn(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(Sn(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(Sn(s,r))return!0;return!!(i.rest&&Sn(i.rest,r))}return!1}const $7=(e,n={})=>r=>{const i=sw({...r,processors:n});return pn(e,i),dw(i,e),uw(i,e)},Js=(e,n,r={})=>i=>{const{libraryOptions:s,target:d}=i??{},u=sw({...s??{},target:d,io:n,processors:r});return pn(e,u),dw(u,e),uw(u,e)},N7={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},B7=(e,n,r,i)=>{const s=r;s.type="string";const{minimum:d,maximum:u,format:m,patterns:h,contentEncoding:p}=e._zod.bag;if(typeof d=="number"&&(s.minLength=d),typeof u=="number"&&(s.maxLength=u),m&&(s.format=N7[m]??m,s.format===""&&delete s.format,m==="time"&&delete s.format),p&&(s.contentEncoding=p),h&&h.size>0){const g=[...h];g.length===1?s.pattern=g[0].source:g.length>1&&(s.allOf=[...g.map(v=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},R7=(e,n,r,i)=>{const s=r,{minimum:d,maximum:u,format:m,multipleOf:h,exclusiveMaximum:p,exclusiveMinimum:g}=e._zod.bag;typeof m=="string"&&m.includes("int")?s.type="integer":s.type="number",typeof g=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(s.minimum=g,s.exclusiveMinimum=!0):s.exclusiveMinimum=g),typeof d=="number"&&(s.minimum=d,typeof g=="number"&&n.target!=="draft-04"&&(g>=d?delete s.minimum:delete s.exclusiveMinimum)),typeof p=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(s.maximum=p,s.exclusiveMaximum=!0):s.exclusiveMaximum=p),typeof u=="number"&&(s.maximum=u,typeof p=="number"&&n.target!=="draft-04"&&(p<=u?delete s.maximum:delete s.exclusiveMaximum)),typeof h=="number"&&(s.multipleOf=h)},D7=(e,n,r,i)=>{r.type="boolean"},M7=(e,n,r,i)=>{r.not={}},I7=(e,n,r,i)=>{},U7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},H7=(e,n,r,i)=>{const s=e._zod.def,d=K0(s.entries);d.every(u=>typeof u=="number")&&(r.type="number"),d.every(u=>typeof u=="string")&&(r.type="string"),r.enum=d},F7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},K7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},V7=(e,n,r,i)=>{const s=r,d=e._zod.def,{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof m=="number"&&(s.maxItems=m),s.type="array",s.items=pn(d.element,n,{...i,path:[...i.path,"items"]})},q7=(e,n,r,i)=>{const s=r,d=e._zod.def;s.type="object",s.properties={};const u=d.shape;for(const p in u)s.properties[p]=pn(u[p],n,{...i,path:[...i.path,"properties",p]});const m=new Set(Object.keys(u)),h=new Set([...m].filter(p=>{const g=d.shape[p]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));h.size>0&&(s.required=Array.from(h)),d.catchall?._zod.def.type==="never"?s.additionalProperties=!1:d.catchall?d.catchall&&(s.additionalProperties=pn(d.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(s.additionalProperties=!1)},Z7=(e,n,r,i)=>{const s=e._zod.def,d=s.inclusive===!1,u=s.options.map((m,h)=>pn(m,n,{...i,path:[...i.path,d?"oneOf":"anyOf",h]}));d?r.oneOf=u:r.anyOf=u},P7=(e,n,r,i)=>{const s=e._zod.def,d=pn(s.left,n,{...i,path:[...i.path,"allOf",0]}),u=pn(s.right,n,{...i,path:[...i.path,"allOf",1]}),m=p=>"allOf"in p&&Object.keys(p).length===1,h=[...m(d)?d.allOf:[d],...m(u)?u.allOf:[u]];r.allOf=h},G7=(e,n,r,i)=>{const s=e._zod.def,d=pn(s.innerType,n,i),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=s.innerType,r.nullable=!0):r.anyOf=[d,{type:"null"}]},Y7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType},J7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},X7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},W7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},Q7=(e,n,r,i)=>{const s=e._zod.def,d=n.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;pn(d,n,i);const u=n.seen.get(e);u.ref=d},eB=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,r.readOnly=!0},fw=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType},oB=X("ZodISODateTime",(e,n)=>{tN.init(e,n),$o.init(e,n)});function nB(e){return c7(oB,e)}const tB=X("ZodISODate",(e,n)=>{rN.init(e,n),$o.init(e,n)});function rB(e){return s7(tB,e)}const aB=X("ZodISOTime",(e,n)=>{aN.init(e,n),$o.init(e,n)});function lB(e){return d7(aB,e)}const iB=X("ZodISODuration",(e,n)=>{lN.init(e,n),$o.init(e,n)});function cB(e){return u7(iB,e)}const sB=(e,n)=>{G0.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Y$(e,r)},flatten:{value:r=>G$(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Zb,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Zb,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=X("ZodError",sB,{Parent:Error}),dB=Hm(kt),uB=Fm(kt),fB=sd(kt),bB=dd(kt),mB=W$(kt),hB=Q$(kt),pB=e9(kt),kB=o9(kt),vB=n9(kt),gB=t9(kt),_B=r9(kt),xB=a9(kt),Io=X("ZodType",(e,n)=>(Mo.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Js(e,"input"),output:Js(e,"output")}}),e.toJSONSchema=$7(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(qr(n,{checks:[...n.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Zr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>dB(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>fB(e,r,i),e.parseAsync=async(r,i)=>uB(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>bB(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>mB(e,r,i),e.decode=(r,i)=>hB(e,r,i),e.encodeAsync=async(r,i)=>pB(e,r,i),e.decodeAsync=async(r,i)=>kB(e,r,i),e.safeEncode=(r,i)=>vB(e,r,i),e.safeDecode=(r,i)=>gB(e,r,i),e.safeEncodeAsync=async(r,i)=>_B(e,r,i),e.safeDecodeAsync=async(r,i)=>xB(e,r,i),e.refine=(r,i)=>e.check(vR(r,i)),e.superRefine=r=>e.check(gR(r)),e.overwrite=r=>e.check(Cl(r)),e.optional=()=>vx(e),e.exactOptional=()=>aR(e),e.nullable=()=>gx(e),e.nullish=()=>vx(gx(e)),e.nonoptional=r=>uR(e,r),e.array=()=>YB(e),e.or=r=>QB([e,r]),e.and=r=>oR(e,r),e.transform=r=>Yb(e,hw(r)),e.default=r=>cR(e,r),e.prefault=r=>dR(e,r),e.catch=r=>bR(e,r),e.pipe=r=>Yb(e,r),e.readonly=()=>pR(e),e.describe=r=>{const i=e.clone();return Bi.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Bi.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Bi.get(e);const i=e.clone();return Bi.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),bw=X("_ZodString",(e,n)=>{Km.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>B7(e,i,s);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(v7(...i)),e.includes=(...i)=>e.check(x7(...i)),e.startsWith=(...i)=>e.check(y7(...i)),e.endsWith=(...i)=>e.check(w7(...i)),e.min=(...i)=>e.check(Ys(...i)),e.max=(...i)=>e.check(iw(...i)),e.length=(...i)=>e.check(cw(...i)),e.nonempty=(...i)=>e.check(Ys(1,...i)),e.lowercase=i=>e.check(g7(i)),e.uppercase=i=>e.check(_7(i)),e.trim=()=>e.check(S7()),e.normalize=(...i)=>e.check(z7(...i)),e.toLowerCase=()=>e.check(j7()),e.toUpperCase=()=>e.check(T7()),e.slugify=()=>e.check(A7())}),yB=X("ZodString",(e,n)=>{Km.init(e,n),bw.init(e,n),e.email=r=>e.check(HN(wB,r)),e.url=r=>e.check(ZN(zB,r)),e.jwt=r=>e.check(i7(IB,r)),e.emoji=r=>e.check(PN(SB,r)),e.guid=r=>e.check(dx(mx,r)),e.uuid=r=>e.check(FN(ws,r)),e.uuidv4=r=>e.check(KN(ws,r)),e.uuidv6=r=>e.check(VN(ws,r)),e.uuidv7=r=>e.check(qN(ws,r)),e.nanoid=r=>e.check(GN(jB,r)),e.guid=r=>e.check(dx(mx,r)),e.cuid=r=>e.check(YN(TB,r)),e.cuid2=r=>e.check(JN(AB,r)),e.ulid=r=>e.check(XN(CB,r)),e.base64=r=>e.check(r7(RB,r)),e.base64url=r=>e.check(a7(DB,r)),e.xid=r=>e.check(WN(EB,r)),e.ksuid=r=>e.check(QN(LB,r)),e.ipv4=r=>e.check(e7(OB,r)),e.ipv6=r=>e.check(o7($B,r)),e.cidrv4=r=>e.check(n7(NB,r)),e.cidrv6=r=>e.check(t7(BB,r)),e.e164=r=>e.check(l7(MB,r)),e.datetime=r=>e.check(nB(r)),e.date=r=>e.check(rB(r)),e.time=r=>e.check(lB(r)),e.duration=r=>e.check(cB(r))});function or(e){return UN(yB,e)}const $o=X("ZodStringFormat",(e,n)=>{Ao.init(e,n),bw.init(e,n)}),wB=X("ZodEmail",(e,n)=>{G9.init(e,n),$o.init(e,n)}),mx=X("ZodGUID",(e,n)=>{Z9.init(e,n),$o.init(e,n)}),ws=X("ZodUUID",(e,n)=>{P9.init(e,n),$o.init(e,n)}),zB=X("ZodURL",(e,n)=>{Y9.init(e,n),$o.init(e,n)}),SB=X("ZodEmoji",(e,n)=>{J9.init(e,n),$o.init(e,n)}),jB=X("ZodNanoID",(e,n)=>{X9.init(e,n),$o.init(e,n)}),TB=X("ZodCUID",(e,n)=>{W9.init(e,n),$o.init(e,n)}),AB=X("ZodCUID2",(e,n)=>{Q9.init(e,n),$o.init(e,n)}),CB=X("ZodULID",(e,n)=>{eN.init(e,n),$o.init(e,n)}),EB=X("ZodXID",(e,n)=>{oN.init(e,n),$o.init(e,n)}),LB=X("ZodKSUID",(e,n)=>{nN.init(e,n),$o.init(e,n)}),OB=X("ZodIPv4",(e,n)=>{iN.init(e,n),$o.init(e,n)}),$B=X("ZodIPv6",(e,n)=>{cN.init(e,n),$o.init(e,n)}),NB=X("ZodCIDRv4",(e,n)=>{sN.init(e,n),$o.init(e,n)}),BB=X("ZodCIDRv6",(e,n)=>{dN.init(e,n),$o.init(e,n)}),RB=X("ZodBase64",(e,n)=>{uN.init(e,n),$o.init(e,n)}),DB=X("ZodBase64URL",(e,n)=>{bN.init(e,n),$o.init(e,n)}),MB=X("ZodE164",(e,n)=>{mN.init(e,n),$o.init(e,n)}),IB=X("ZodJWT",(e,n)=>{pN.init(e,n),$o.init(e,n)}),mw=X("ZodNumber",(e,n)=>{tw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>R7(e,i,s),e.gt=(i,s)=>e.check(fx(i,s)),e.gte=(i,s)=>e.check(Ns(i,s)),e.min=(i,s)=>e.check(Ns(i,s)),e.lt=(i,s)=>e.check(ux(i,s)),e.lte=(i,s)=>e.check($s(i,s)),e.max=(i,s)=>e.check($s(i,s)),e.int=i=>e.check(px(i)),e.safe=i=>e.check(px(i)),e.positive=i=>e.check(fx(0,i)),e.nonnegative=i=>e.check(Ns(0,i)),e.negative=i=>e.check(ux(0,i)),e.nonpositive=i=>e.check($s(0,i)),e.multipleOf=(i,s)=>e.check(bx(i,s)),e.step=(i,s)=>e.check(bx(i,s)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function hx(e){return f7(mw,e)}const UB=X("ZodNumberFormat",(e,n)=>{kN.init(e,n),mw.init(e,n)});function px(e){return b7(UB,e)}const HB=X("ZodBoolean",(e,n)=>{vN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>D7(e,r,i)});function FB(e){return m7(HB,e)}const KB=X("ZodUnknown",(e,n)=>{gN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>I7()});function kx(){return h7(KB)}const VB=X("ZodNever",(e,n)=>{_N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>M7(e,r,i)});function qB(e){return p7(VB,e)}const ZB=X("ZodDate",(e,n)=>{xN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>U7(e,i),e.min=(i,s)=>e.check(Ns(i,s)),e.max=(i,s)=>e.check($s(i,s));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function PB(e){return k7(ZB,e)}const GB=X("ZodArray",(e,n)=>{yN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>V7(e,r,i,s),e.element=n.element,e.min=(r,i)=>e.check(Ys(r,i)),e.nonempty=r=>e.check(Ys(1,r)),e.max=(r,i)=>e.check(iw(r,i)),e.length=(r,i)=>e.check(cw(r,i)),e.unwrap=()=>e.element});function YB(e,n){return C7(GB,e,n)}const JB=X("ZodObject",(e,n)=>{zN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>q7(e,r,i,s),ho(e,"shape",()=>n.shape),e.keyof=()=>nR(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:kx()}),e.loose=()=>e.clone({...e._zod.def,catchall:kx()}),e.strict=()=>e.clone({...e._zod.def,catchall:qB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>K$(e,r),e.safeExtend=r=>V$(e,r),e.merge=r=>q$(e,r),e.pick=r=>H$(e,r),e.omit=r=>F$(e,r),e.partial=(...r)=>Z$(pw,e,r[0]),e.required=(...r)=>P$(kw,e,r[0])});function XB(e,n){const r={type:"object",shape:e??{},...Se(n)};return new JB(r)}const WB=X("ZodUnion",(e,n)=>{SN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Z7(e,r,i,s),e.options=n.options});function QB(e,n){return new WB({type:"union",options:e,...Se(n)})}const eR=X("ZodIntersection",(e,n)=>{jN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>P7(e,r,i,s)});function oR(e,n){return new eR({type:"intersection",left:e,right:n})}const Gb=X("ZodEnum",(e,n)=>{TN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>H7(e,i,s),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,s)=>{const d={};for(const u of i)if(r.has(u))d[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Gb({...n,checks:[],...Se(s),entries:d})},e.exclude=(i,s)=>{const d={...n.entries};for(const u of i)if(r.has(u))delete d[u];else throw new Error(`Key ${u} not found in enum`);return new Gb({...n,checks:[],...Se(s),entries:d})}});function nR(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Gb({type:"enum",entries:r,...Se(n)})}const tR=X("ZodTransform",(e,n)=>{AN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>K7(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new H0(e.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(Gi(d,r.value,n));else{const u=d;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(Gi(u))}};const s=n.transform(r.value,r);return s instanceof Promise?s.then(d=>(r.value=d,r)):(r.value=s,r)}});function hw(e){return new tR({type:"transform",transform:e})}const pw=X("ZodOptional",(e,n)=>{lw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>fw(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function vx(e){return new pw({type:"optional",innerType:e})}const rR=X("ZodExactOptional",(e,n)=>{CN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>fw(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function aR(e){return new rR({type:"optional",innerType:e})}const lR=X("ZodNullable",(e,n)=>{EN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>G7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function gx(e){return new lR({type:"nullable",innerType:e})}const iR=X("ZodDefault",(e,n)=>{LN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>J7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cR(e,n){return new iR({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const sR=X("ZodPrefault",(e,n)=>{ON.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>X7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function dR(e,n){return new sR({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const kw=X("ZodNonOptional",(e,n)=>{$N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Y7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function uR(e,n){return new kw({type:"nonoptional",innerType:e,...Se(n)})}const fR=X("ZodCatch",(e,n)=>{NN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>W7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bR(e,n){return new fR({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const mR=X("ZodPipe",(e,n)=>{BN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Q7(e,r,i,s),e.in=n.in,e.out=n.out});function Yb(e,n){return new mR({type:"pipe",in:e,out:n})}const hR=X("ZodReadonly",(e,n)=>{RN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>eB(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function pR(e){return new hR({type:"readonly",innerType:e})}const kR=X("ZodCustom",(e,n)=>{DN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>F7(e,r)});function vR(e,n={}){return E7(kR,e,n)}function gR(e){return L7(e)}function _R(e,n){return Yb(hw(e),n)}const xR=XB({date:_R(e=>typeof e=="string"||e instanceof Date?new Date(e):void 0,PB({message:"Date is required"}).refine(e=>!isNaN(e.getTime()),{message:"Invalid date"})),text:or({message:"Please enter text."}).min(10,"Text must be at least 10 characters long."),email:or({message:"Please enter your email."}).min(1,"Please enter your email.").email("Invalid email address."),password:or({message:"Please enter a password."}).min(8,"Password must be at least 8 characters.").regex(/[A-Z]/,"Password must include at least one uppercase letter.").regex(/[0-9]/,"Password must include at least one number."),range:hx({message:"Please select a range."}).min(30,"Minimum value is 30."),number:hx({message:"Please enter a number."}).min(1,"Minimum is 1.").max(10,"Maximum is 10."),checkbox:FB().refine(e=>e===!0,{message:"You must accept the terms and conditions."}),radio:or({message:"Please select a gender."}).min(1,"Please select a gender."),color:or({message:"Please select a color."}).min(1,"Please select a color."),select:or({message:"Please select a value."}).min(1,"Please select a value."),singleSelect:or({message:"Please select a single option."}).min(1,"Please select a single option."),combobox:or({message:"Please select a country."}).min(1,"Please select a country."),textarea:or({message:"Please enter a message."}).min(1,"Please enter a message.")}),yR=()=>{const{dummyClickEventHandler:e}=Do(),{handleSubmit:n,formState:{errors:r},reset:i,control:s}=ad({mode:"onBlur",reValidateMode:"onChange",resolver:N$(xR),defaultValues:{range:30,number:5}}),d=()=>{i(void 0,{keepErrors:!1,keepTouched:!1,keepDirty:!1})},u=Object.entries(r).map(([m,h])=>[m,h.message]).filter(([,m])=>!!m);return a.jsxs("section",{className:"w-full max-w-3xl mx-auto p-6",children:[a.jsx(be,{_level:2,_label:"Sample Form with Validation (Zod)"}),a.jsx(V,{children:a.jsxs("p",{children:["This example shows validation with ",a.jsx("code",{children:"react-hook-form"}),", ",a.jsx("code",{children:"Zod"}),", and an error list."]})}),u.length>0&&a.jsx(gn,{_type:"error",_label:"Please fix the following:",_alert:!0,_variant:"card",children:a.jsx("ul",{className:"list-disc pl-5",children:u.map(([m,h],p)=>a.jsx("li",{children:a.jsx(_e,{_label:h,_href:`#field-${m}`,_on:{onClick:g=>{g.preventDefault(),document.getElementById(`field-${m}`)?.focus()}}})},p))})}),a.jsxs("form",{onSubmit:n(e),noValidate:!0,className:"grid gap-4 mt-6",children:[a.jsx(O0,{control:s,name:"date",_label:"Date"}),a.jsx(qb,{control:s,name:"text",_label:"Text (≥ 10 chars)"}),a.jsx(C0,{control:s,name:"email",_label:"Email"}),a.jsx(A0,{control:s,name:"password",_label:"Password"}),a.jsx(L0,{control:s,name:"range",_label:"Range (≥ 30)",_min:0,_max:100}),a.jsx(E0,{control:s,name:"number",_label:"Number (1 – 10)"}),a.jsx(I0,{control:s,name:"checkbox",_label:"Accept terms"}),a.jsx(M0,{control:s,name:"radio",_label:"Gender",_options:[{label:"Female",value:"f"},{label:"Male",value:"m"}]}),a.jsx($0,{control:s,name:"color",_label:"Favorite Color"}),a.jsx(R0,{control:s,name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(D0,{control:s,name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(B0,{control:s,name:"combobox",_label:"Country",_suggestions:et}),a.jsx(N0,{control:s,name:"textarea",_label:"Message",_rows:4}),a.jsxs("div",{className:"flex gap-4 mt-4",children:[a.jsx(W,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Reset",_type:"reset",onClick:d})]})]})]})},wR=()=>{const{searchParams:e}=new URL(location.href);return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"This sample shows how KoliBri can be used in a static form context."}),a.jsxs("ol",{children:[a.jsxs("li",{children:["First you have to enable the ",a.jsx("code",{children:"experimental mode"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />'})]}),a.jsxs("li",{children:["Currently you have to use a native ",a.jsx("code",{children:"form"})," element:"," ",a.jsx("code",{className:"bg-gray-200",children:'<form method="GET">...</form>'})]}),a.jsxs("li",{children:["It is important in static usage to give every input a ",a.jsx("code",{children:"name"})," attribute:"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolInputColor _name="color" _label="Color" />'})]}),a.jsxs("li",{children:["Last of all one button should have the type ",a.jsx("code",{children:"submit"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolButton _label="Submit" _type="submit" _variant="primary" />'})]})]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[e.size>0&&a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Submitted data"}),a.jsx("pre",{className:"text-base",children:a.jsx("code",{children:JSON.stringify(Object.fromEntries(e.entries()),null,2)})})]}),a.jsxs("form",{className:"grid gap-4",method:"get",noValidate:!0,children:[a.jsx(ro,{_name:"checkbox",_label:"Checkbox"}),a.jsx(Go,{_name:"color",_label:"Color"}),a.jsx(He,{_name:"date",_label:"Date"}),a.jsx(Yo,{_name:"email",_label:"Email"}),a.jsx(Ro,{_name:"file",_label:"File"}),a.jsx(Ro,{_name:"file",_label:"Files (multiple)",_multiple:!0}),a.jsx(jo,{_name:"number",_label:"Number"}),a.jsx(Eo,{_name:"password",_label:"Password"}),a.jsx(Lo,{_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(en,{_name:"range",_label:"Range"}),a.jsx(Oe,{_name:"text",_label:"Text"}),a.jsx(Jo,{_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Jo,{_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2}),a.jsx(bn,{_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(_n,{_name:"combobox",_label:"Combobox",_suggestions:et}),a.jsx(Qe,{_name:"textarea",_label:"Textarea",_rows:5}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Reset",_type:"reset"})]}),a.jsx("input",{type:"hidden",value:crypto.randomUUID(),name:"random"})]})]})]})},zR=()=>{const[e,n]=S.useState(!1),[r,i]=S.useState(!1);S.useEffect(()=>{let h;return e&&(h=setTimeout(()=>{n(!1)},2e3)),()=>clearTimeout(h)},[e]),S.useEffect(()=>{let h;return r&&(h=setTimeout(()=>{i(!1)},2e3)),()=>clearTimeout(h)},[r]);const s=()=>n(!0),d=()=>i(!0),u=S.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:s},_icons:e?"codicon codicon-loading codicon-modifier-spin":void 0,_disabled:e})),[e]),m=S.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:d},_disabled:r,_icons:r?"codicon codicon-loading codicon-modifier-spin":void 0})),[r]);return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx(be,{_label:"Disabled Toolbar Buttons Bug (solved)"}),a.jsx(be,{_label:"icon vor disabled",_level:2}),a.jsx(ga,{_label:"KolToolbar A",_items:u}),a.jsx(be,{_label:"disabled vor icon",_level:2}),a.jsxs("p",{children:["Klicke auf einen der ",m.length-1," ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen."]}),a.jsx(ga,{_label:"KolToolbar B",_items:m})]})},SR=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates tooltip positioning within container query contexts. Container queries can interfere with fixed positioning, causing tooltips to render incorrectly relative to the viewport. The layout containment fix ensures tooltips position properly even when their parent elements use container-based sizing and layout rules."})}),a.jsx("div",{style:{container:"test / size",contain:"layout"},children:a.jsx(db,{_label:"Sample PopoverButton—Click for Popover",_icons:"codicon codicon-info",_tooltipAlign:"right",_hideLabel:!0,children:"This is an explanation shown on click."})})]}),jR={scenarios:{"change-tabindex":JO,"custom-tooltip-css-properties":XO,"date-in-form":WO,"disabled-interactive-scenario":QO,"focus-elements":e$,"input-group-with-error":r$,"inputs-get-value":a$,"react-hook-form-adapter":C$,"same-height-of-all-interactive-elements":E$,"static-form":wR,"sample-form-with-validation":yR,"table-horizontal-scrollbar-advanced":t$,"toolbar-item-order":zR,"tooltip-positioning":SR,"performance-test":c$}},Vm={...wA,..._8,...w8,...T8,...C8,...$8,...B8,...U8,...W8,...oA,...aA,...iA,...fA,...hA,...AA,...LA,...$A,...DA,...UA,...XA,...eC,...tC,...nE,...lE,...uE,...mE,...AE,...EE,...$E,...FE,...VE,...YE,...XE,...QE,...oL,...rL,...M1,...M1,...mL,...gL,...fL,...yL,...gO,...AO,...RO,...UO,...KO,...ZO,...YO,...jR};Gy(localStorage);const vw=(e,n="/")=>{let r=[];for(const i in e)if(e[i]){const s=e[i],d=`${n}${i}`;typeof s=="function"?r.push(d):typeof s=="object"&&s!==null&&(r=r.concat(vw(s,`${d}/`)))}return r},gw=e=>{const n=[];for(const r in e)if(e[r]){const i=e[r],s=`/${r}`;if(typeof i=="function")n.push(a.jsx(ka,{path:s,element:a.jsx(i,{})},s)),n.push(a.jsx(ka,{path:`${s}/all`,element:a.jsx("div",{className:"d-grid gap-4",children:ym.filter(d=>Ky.indexOf(d.value)>=0).map(d=>a.jsxs("div",{className:"d-grid gap-2",children:[a.jsx("div",{className:"mt-4",children:a.jsx("strong",{children:d.label})}),a.jsx("div",{className:"my-2",children:a.jsx(i,{})}),a.jsx("hr",{"aria-hidden":"true"})]},d.value))})},`${s}/all`));else if(typeof i=="object"&&i!==null){const d=Object.keys(i);d.length>0&&n.push(a.jsx(ka,{path:`${s}/*`,element:a.jsxs(Kx,{children:[a.jsx(ka,{path:"/",element:a.jsx(Fx,{to:d[0]})}),gw(i)]})},s))}}return n},Jb=vw(Vm),TR=gw(Vm),_x=new Map;Jb.forEach(e=>{const n=e.split("/");_x.has(n[1])||_x.set(n[1],{label:n[1],value:e})});const AR=()=>{const e=rt(),[n,r]=Kr(),i=n.get("theme")??Fs(),s=n.has("hideMenus");vA(i),p8(),document.title=`KoliBri-Handout - ${Ub(Fs())} | v${Mb.version}`,document.body.setAttribute("class",i),document.body.dataset.theme=i;const d=u=>{r({theme:u}),window.location.reload()};return a.jsx(wm.Provider,{value:s,children:a.jsxs("div",{className:s?"":"app-container","data-theme":i,children:[!s&&a.jsx(h8,{version:Mb.version,theme:i,sample:e.pathname,routes:Vm,routeList:Jb,buildDate:"2026-01-23T15:29:45.408Z",commitHash:"86583c3b2",onThemeChange:d}),a.jsx("main",{className:"flex flex-col items-stretch p-4",id:"route-container",children:a.jsxs(Kx,{children:[TR,a.jsx(ka,{path:"*",element:a.jsx(Fx,{to:Jb[0],replace:!0})}),a.jsx(ka,{path:"back-page",element:a.jsx(d8,{})})]})})]})})},CR=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableI18nOverwriting"),ER=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableThemePatching"),Xb=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableTagNameTransformer"),Wb=e=>`${e}-sample`;Xb&&Fz(Wb);const LR=async()=>[C3,gT,c8];(async()=>{try{await Y5(await LR(),()=>{lj(window,{transformTagName:Xb?Wb:void 0})},{environment:"production",reflectInputValues:!0,theme:{detect:"auto"},translation:{name:"en"},translations:CR?new Set([n=>n("en",{"kol-error":"Tiny error!"}),n=>n("de",{"kol-error":"Kleiner Fehler!"})]):void 0,transformTagName:Xb?Wb:void 0}),ER&&ja.patchTheme("default",{"KOL-BUTTON":`
|
|
26011
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const m=u[1];if(n===u[0]){d(u);continue}if(e.external){const p=e.external.registry.get(u[0])?.id;if(n!==u[0]&&p){d(u);continue}}if(e.metadataRegistry.get(u[0])?.id){d(u);continue}if(m.cycle){d(u);continue}if(m.count>1&&e.reused==="ref"){d(u);continue}}}function uw(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const m=e.seen.get(u);if(m.ref===null)return;const h=m.def??m.schema,p={...h},g=m.ref;if(m.ref=null,g){i(g);const _=e.seen.get(g),z=_.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(z)):Object.assign(h,z),Object.assign(h,p),u._zod.parent===g)for(const S in h)S==="$ref"||S==="allOf"||S in p||delete h[S];if(z.$ref&&_.def)for(const S in h)S==="$ref"||S==="allOf"||S in _.def&&JSON.stringify(h[S])===JSON.stringify(_.def[S])&&delete h[S]}const v=u._zod.parent;if(v&&v!==g){i(v);const _=e.seen.get(v);if(_?.schema.$ref&&(h.$ref=_.schema.$ref,_.def))for(const z in h)z==="$ref"||z==="allOf"||z in _.def&&JSON.stringify(h[z])===JSON.stringify(_.def[z])&&delete h[z]}e.override({zodSchema:u,jsonSchema:h,path:m.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(n)?.id;if(!u)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(u)}Object.assign(s,r.def??r.schema);const d=e.external?.defs??{};for(const u of e.seen.entries()){const m=u[1];m.def&&m.defId&&(d[m.defId]=m.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?s.$defs=d:s.definitions=d);try{const u=JSON.parse(JSON.stringify(s));return Object.defineProperty(u,"~standard",{value:{...n["~standard"],jsonSchema:{input:Xs(n,"input",e.processors),output:Xs(n,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function jn(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return jn(i.element,r);if(i.type==="set")return jn(i.valueType,r);if(i.type==="lazy")return jn(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return jn(i.innerType,r);if(i.type==="intersection")return jn(i.left,r)||jn(i.right,r);if(i.type==="record"||i.type==="map")return jn(i.keyType,r)||jn(i.valueType,r);if(i.type==="pipe")return jn(i.in,r)||jn(i.out,r);if(i.type==="object"){for(const s in i.shape)if(jn(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(jn(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(jn(s,r))return!0;return!!(i.rest&&jn(i.rest,r))}return!1}const $7=(e,n={})=>r=>{const i=sw({...r,processors:n});return pn(e,i),dw(i,e),uw(i,e)},Xs=(e,n,r={})=>i=>{const{libraryOptions:s,target:d}=i??{},u=sw({...s??{},target:d,io:n,processors:r});return pn(e,u),dw(u,e),uw(u,e)},N7={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},B7=(e,n,r,i)=>{const s=r;s.type="string";const{minimum:d,maximum:u,format:m,patterns:h,contentEncoding:p}=e._zod.bag;if(typeof d=="number"&&(s.minLength=d),typeof u=="number"&&(s.maxLength=u),m&&(s.format=N7[m]??m,s.format===""&&delete s.format,m==="time"&&delete s.format),p&&(s.contentEncoding=p),h&&h.size>0){const g=[...h];g.length===1?s.pattern=g[0].source:g.length>1&&(s.allOf=[...g.map(v=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},R7=(e,n,r,i)=>{const s=r,{minimum:d,maximum:u,format:m,multipleOf:h,exclusiveMaximum:p,exclusiveMinimum:g}=e._zod.bag;typeof m=="string"&&m.includes("int")?s.type="integer":s.type="number",typeof g=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(s.minimum=g,s.exclusiveMinimum=!0):s.exclusiveMinimum=g),typeof d=="number"&&(s.minimum=d,typeof g=="number"&&n.target!=="draft-04"&&(g>=d?delete s.minimum:delete s.exclusiveMinimum)),typeof p=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(s.maximum=p,s.exclusiveMaximum=!0):s.exclusiveMaximum=p),typeof u=="number"&&(s.maximum=u,typeof p=="number"&&n.target!=="draft-04"&&(p<=u?delete s.maximum:delete s.exclusiveMaximum)),typeof h=="number"&&(s.multipleOf=h)},D7=(e,n,r,i)=>{r.type="boolean"},M7=(e,n,r,i)=>{r.not={}},I7=(e,n,r,i)=>{},U7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},H7=(e,n,r,i)=>{const s=e._zod.def,d=K0(s.entries);d.every(u=>typeof u=="number")&&(r.type="number"),d.every(u=>typeof u=="string")&&(r.type="string"),r.enum=d},F7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},K7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},V7=(e,n,r,i)=>{const s=r,d=e._zod.def,{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof m=="number"&&(s.maxItems=m),s.type="array",s.items=pn(d.element,n,{...i,path:[...i.path,"items"]})},q7=(e,n,r,i)=>{const s=r,d=e._zod.def;s.type="object",s.properties={};const u=d.shape;for(const p in u)s.properties[p]=pn(u[p],n,{...i,path:[...i.path,"properties",p]});const m=new Set(Object.keys(u)),h=new Set([...m].filter(p=>{const g=d.shape[p]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));h.size>0&&(s.required=Array.from(h)),d.catchall?._zod.def.type==="never"?s.additionalProperties=!1:d.catchall?d.catchall&&(s.additionalProperties=pn(d.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(s.additionalProperties=!1)},Z7=(e,n,r,i)=>{const s=e._zod.def,d=s.inclusive===!1,u=s.options.map((m,h)=>pn(m,n,{...i,path:[...i.path,d?"oneOf":"anyOf",h]}));d?r.oneOf=u:r.anyOf=u},P7=(e,n,r,i)=>{const s=e._zod.def,d=pn(s.left,n,{...i,path:[...i.path,"allOf",0]}),u=pn(s.right,n,{...i,path:[...i.path,"allOf",1]}),m=p=>"allOf"in p&&Object.keys(p).length===1,h=[...m(d)?d.allOf:[d],...m(u)?u.allOf:[u]];r.allOf=h},G7=(e,n,r,i)=>{const s=e._zod.def,d=pn(s.innerType,n,i),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=s.innerType,r.nullable=!0):r.anyOf=[d,{type:"null"}]},Y7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType},J7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},X7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},W7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},Q7=(e,n,r,i)=>{const s=e._zod.def,d=n.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;pn(d,n,i);const u=n.seen.get(e);u.ref=d},eB=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,r.readOnly=!0},fw=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType},oB=X("ZodISODateTime",(e,n)=>{tN.init(e,n),$o.init(e,n)});function nB(e){return c7(oB,e)}const tB=X("ZodISODate",(e,n)=>{rN.init(e,n),$o.init(e,n)});function rB(e){return s7(tB,e)}const aB=X("ZodISOTime",(e,n)=>{aN.init(e,n),$o.init(e,n)});function lB(e){return d7(aB,e)}const iB=X("ZodISODuration",(e,n)=>{lN.init(e,n),$o.init(e,n)});function cB(e){return u7(iB,e)}const sB=(e,n)=>{G0.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Y$(e,r)},flatten:{value:r=>G$(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Pb,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Pb,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=X("ZodError",sB,{Parent:Error}),dB=Fm(kt),uB=Km(kt),fB=dd(kt),bB=ud(kt),mB=W$(kt),hB=Q$(kt),pB=e9(kt),kB=o9(kt),vB=n9(kt),gB=t9(kt),_B=r9(kt),xB=a9(kt),Io=X("ZodType",(e,n)=>(Mo.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Xs(e,"input"),output:Xs(e,"output")}}),e.toJSONSchema=$7(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(qr(n,{checks:[...n.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Zr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>dB(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>fB(e,r,i),e.parseAsync=async(r,i)=>uB(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>bB(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>mB(e,r,i),e.decode=(r,i)=>hB(e,r,i),e.encodeAsync=async(r,i)=>pB(e,r,i),e.decodeAsync=async(r,i)=>kB(e,r,i),e.safeEncode=(r,i)=>vB(e,r,i),e.safeDecode=(r,i)=>gB(e,r,i),e.safeEncodeAsync=async(r,i)=>_B(e,r,i),e.safeDecodeAsync=async(r,i)=>xB(e,r,i),e.refine=(r,i)=>e.check(vR(r,i)),e.superRefine=r=>e.check(gR(r)),e.overwrite=r=>e.check(El(r)),e.optional=()=>gx(e),e.exactOptional=()=>aR(e),e.nullable=()=>_x(e),e.nullish=()=>gx(_x(e)),e.nonoptional=r=>uR(e,r),e.array=()=>YB(e),e.or=r=>QB([e,r]),e.and=r=>oR(e,r),e.transform=r=>Jb(e,hw(r)),e.default=r=>cR(e,r),e.prefault=r=>dR(e,r),e.catch=r=>bR(e,r),e.pipe=r=>Jb(e,r),e.readonly=()=>pR(e),e.describe=r=>{const i=e.clone();return Ri.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Ri.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ri.get(e);const i=e.clone();return Ri.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),bw=X("_ZodString",(e,n)=>{Vm.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>B7(e,i,s);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(v7(...i)),e.includes=(...i)=>e.check(x7(...i)),e.startsWith=(...i)=>e.check(y7(...i)),e.endsWith=(...i)=>e.check(w7(...i)),e.min=(...i)=>e.check(Js(...i)),e.max=(...i)=>e.check(iw(...i)),e.length=(...i)=>e.check(cw(...i)),e.nonempty=(...i)=>e.check(Js(1,...i)),e.lowercase=i=>e.check(g7(i)),e.uppercase=i=>e.check(_7(i)),e.trim=()=>e.check(j7()),e.normalize=(...i)=>e.check(z7(...i)),e.toLowerCase=()=>e.check(S7()),e.toUpperCase=()=>e.check(T7()),e.slugify=()=>e.check(A7())}),yB=X("ZodString",(e,n)=>{Vm.init(e,n),bw.init(e,n),e.email=r=>e.check(HN(wB,r)),e.url=r=>e.check(ZN(zB,r)),e.jwt=r=>e.check(i7(IB,r)),e.emoji=r=>e.check(PN(jB,r)),e.guid=r=>e.check(ux(hx,r)),e.uuid=r=>e.check(FN(zs,r)),e.uuidv4=r=>e.check(KN(zs,r)),e.uuidv6=r=>e.check(VN(zs,r)),e.uuidv7=r=>e.check(qN(zs,r)),e.nanoid=r=>e.check(GN(SB,r)),e.guid=r=>e.check(ux(hx,r)),e.cuid=r=>e.check(YN(TB,r)),e.cuid2=r=>e.check(JN(AB,r)),e.ulid=r=>e.check(XN(CB,r)),e.base64=r=>e.check(r7(RB,r)),e.base64url=r=>e.check(a7(DB,r)),e.xid=r=>e.check(WN(EB,r)),e.ksuid=r=>e.check(QN(LB,r)),e.ipv4=r=>e.check(e7(OB,r)),e.ipv6=r=>e.check(o7($B,r)),e.cidrv4=r=>e.check(n7(NB,r)),e.cidrv6=r=>e.check(t7(BB,r)),e.e164=r=>e.check(l7(MB,r)),e.datetime=r=>e.check(nB(r)),e.date=r=>e.check(rB(r)),e.time=r=>e.check(lB(r)),e.duration=r=>e.check(cB(r))});function or(e){return UN(yB,e)}const $o=X("ZodStringFormat",(e,n)=>{Ao.init(e,n),bw.init(e,n)}),wB=X("ZodEmail",(e,n)=>{G9.init(e,n),$o.init(e,n)}),hx=X("ZodGUID",(e,n)=>{Z9.init(e,n),$o.init(e,n)}),zs=X("ZodUUID",(e,n)=>{P9.init(e,n),$o.init(e,n)}),zB=X("ZodURL",(e,n)=>{Y9.init(e,n),$o.init(e,n)}),jB=X("ZodEmoji",(e,n)=>{J9.init(e,n),$o.init(e,n)}),SB=X("ZodNanoID",(e,n)=>{X9.init(e,n),$o.init(e,n)}),TB=X("ZodCUID",(e,n)=>{W9.init(e,n),$o.init(e,n)}),AB=X("ZodCUID2",(e,n)=>{Q9.init(e,n),$o.init(e,n)}),CB=X("ZodULID",(e,n)=>{eN.init(e,n),$o.init(e,n)}),EB=X("ZodXID",(e,n)=>{oN.init(e,n),$o.init(e,n)}),LB=X("ZodKSUID",(e,n)=>{nN.init(e,n),$o.init(e,n)}),OB=X("ZodIPv4",(e,n)=>{iN.init(e,n),$o.init(e,n)}),$B=X("ZodIPv6",(e,n)=>{cN.init(e,n),$o.init(e,n)}),NB=X("ZodCIDRv4",(e,n)=>{sN.init(e,n),$o.init(e,n)}),BB=X("ZodCIDRv6",(e,n)=>{dN.init(e,n),$o.init(e,n)}),RB=X("ZodBase64",(e,n)=>{uN.init(e,n),$o.init(e,n)}),DB=X("ZodBase64URL",(e,n)=>{bN.init(e,n),$o.init(e,n)}),MB=X("ZodE164",(e,n)=>{mN.init(e,n),$o.init(e,n)}),IB=X("ZodJWT",(e,n)=>{pN.init(e,n),$o.init(e,n)}),mw=X("ZodNumber",(e,n)=>{tw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>R7(e,i,s),e.gt=(i,s)=>e.check(bx(i,s)),e.gte=(i,s)=>e.check(Bs(i,s)),e.min=(i,s)=>e.check(Bs(i,s)),e.lt=(i,s)=>e.check(fx(i,s)),e.lte=(i,s)=>e.check(Ns(i,s)),e.max=(i,s)=>e.check(Ns(i,s)),e.int=i=>e.check(kx(i)),e.safe=i=>e.check(kx(i)),e.positive=i=>e.check(bx(0,i)),e.nonnegative=i=>e.check(Bs(0,i)),e.negative=i=>e.check(fx(0,i)),e.nonpositive=i=>e.check(Ns(0,i)),e.multipleOf=(i,s)=>e.check(mx(i,s)),e.step=(i,s)=>e.check(mx(i,s)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function px(e){return f7(mw,e)}const UB=X("ZodNumberFormat",(e,n)=>{kN.init(e,n),mw.init(e,n)});function kx(e){return b7(UB,e)}const HB=X("ZodBoolean",(e,n)=>{vN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>D7(e,r,i)});function FB(e){return m7(HB,e)}const KB=X("ZodUnknown",(e,n)=>{gN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>I7()});function vx(){return h7(KB)}const VB=X("ZodNever",(e,n)=>{_N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>M7(e,r,i)});function qB(e){return p7(VB,e)}const ZB=X("ZodDate",(e,n)=>{xN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>U7(e,i),e.min=(i,s)=>e.check(Bs(i,s)),e.max=(i,s)=>e.check(Ns(i,s));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function PB(e){return k7(ZB,e)}const GB=X("ZodArray",(e,n)=>{yN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>V7(e,r,i,s),e.element=n.element,e.min=(r,i)=>e.check(Js(r,i)),e.nonempty=r=>e.check(Js(1,r)),e.max=(r,i)=>e.check(iw(r,i)),e.length=(r,i)=>e.check(cw(r,i)),e.unwrap=()=>e.element});function YB(e,n){return C7(GB,e,n)}const JB=X("ZodObject",(e,n)=>{zN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>q7(e,r,i,s),ho(e,"shape",()=>n.shape),e.keyof=()=>nR(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vx()}),e.loose=()=>e.clone({...e._zod.def,catchall:vx()}),e.strict=()=>e.clone({...e._zod.def,catchall:qB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>K$(e,r),e.safeExtend=r=>V$(e,r),e.merge=r=>q$(e,r),e.pick=r=>H$(e,r),e.omit=r=>F$(e,r),e.partial=(...r)=>Z$(pw,e,r[0]),e.required=(...r)=>P$(kw,e,r[0])});function XB(e,n){const r={type:"object",shape:e??{},...je(n)};return new JB(r)}const WB=X("ZodUnion",(e,n)=>{jN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Z7(e,r,i,s),e.options=n.options});function QB(e,n){return new WB({type:"union",options:e,...je(n)})}const eR=X("ZodIntersection",(e,n)=>{SN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>P7(e,r,i,s)});function oR(e,n){return new eR({type:"intersection",left:e,right:n})}const Yb=X("ZodEnum",(e,n)=>{TN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>H7(e,i,s),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,s)=>{const d={};for(const u of i)if(r.has(u))d[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Yb({...n,checks:[],...je(s),entries:d})},e.exclude=(i,s)=>{const d={...n.entries};for(const u of i)if(r.has(u))delete d[u];else throw new Error(`Key ${u} not found in enum`);return new Yb({...n,checks:[],...je(s),entries:d})}});function nR(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Yb({type:"enum",entries:r,...je(n)})}const tR=X("ZodTransform",(e,n)=>{AN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>K7(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new H0(e.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(Yi(d,r.value,n));else{const u=d;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(Yi(u))}};const s=n.transform(r.value,r);return s instanceof Promise?s.then(d=>(r.value=d,r)):(r.value=s,r)}});function hw(e){return new tR({type:"transform",transform:e})}const pw=X("ZodOptional",(e,n)=>{lw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>fw(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function gx(e){return new pw({type:"optional",innerType:e})}const rR=X("ZodExactOptional",(e,n)=>{CN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>fw(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function aR(e){return new rR({type:"optional",innerType:e})}const lR=X("ZodNullable",(e,n)=>{EN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>G7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function _x(e){return new lR({type:"nullable",innerType:e})}const iR=X("ZodDefault",(e,n)=>{LN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>J7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cR(e,n){return new iR({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const sR=X("ZodPrefault",(e,n)=>{ON.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>X7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function dR(e,n){return new sR({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const kw=X("ZodNonOptional",(e,n)=>{$N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Y7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function uR(e,n){return new kw({type:"nonoptional",innerType:e,...je(n)})}const fR=X("ZodCatch",(e,n)=>{NN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>W7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bR(e,n){return new fR({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const mR=X("ZodPipe",(e,n)=>{BN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Q7(e,r,i,s),e.in=n.in,e.out=n.out});function Jb(e,n){return new mR({type:"pipe",in:e,out:n})}const hR=X("ZodReadonly",(e,n)=>{RN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>eB(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function pR(e){return new hR({type:"readonly",innerType:e})}const kR=X("ZodCustom",(e,n)=>{DN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>F7(e,r)});function vR(e,n={}){return E7(kR,e,n)}function gR(e){return L7(e)}function _R(e,n){return Jb(hw(e),n)}const xR=XB({date:_R(e=>typeof e=="string"||e instanceof Date?new Date(e):void 0,PB({message:"Date is required"}).refine(e=>!isNaN(e.getTime()),{message:"Invalid date"})),text:or({message:"Please enter text."}).min(10,"Text must be at least 10 characters long."),email:or({message:"Please enter your email."}).min(1,"Please enter your email.").email("Invalid email address."),password:or({message:"Please enter a password."}).min(8,"Password must be at least 8 characters.").regex(/[A-Z]/,"Password must include at least one uppercase letter.").regex(/[0-9]/,"Password must include at least one number."),range:px({message:"Please select a range."}).min(30,"Minimum value is 30."),number:px({message:"Please enter a number."}).min(1,"Minimum is 1.").max(10,"Maximum is 10."),checkbox:FB().refine(e=>e===!0,{message:"You must accept the terms and conditions."}),radio:or({message:"Please select a gender."}).min(1,"Please select a gender."),color:or({message:"Please select a color."}).min(1,"Please select a color."),select:or({message:"Please select a value."}).min(1,"Please select a value."),singleSelect:or({message:"Please select a single option."}).min(1,"Please select a single option."),combobox:or({message:"Please select a country."}).min(1,"Please select a country."),textarea:or({message:"Please enter a message."}).min(1,"Please enter a message.")}),yR=()=>{const{dummyClickEventHandler:e}=Do(),{handleSubmit:n,formState:{errors:r},reset:i,control:s}=ld({mode:"onBlur",reValidateMode:"onChange",resolver:N$(xR),defaultValues:{range:30,number:5}}),d=()=>{i(void 0,{keepErrors:!1,keepTouched:!1,keepDirty:!1})},u=Object.entries(r).map(([m,h])=>[m,h.message]).filter(([,m])=>!!m);return a.jsxs("section",{className:"w-full max-w-3xl mx-auto p-6",children:[a.jsx(be,{_level:2,_label:"Sample Form with Validation (Zod)"}),a.jsx(V,{children:a.jsxs("p",{children:["This example shows validation with ",a.jsx("code",{children:"react-hook-form"}),", ",a.jsx("code",{children:"Zod"}),", and an error list."]})}),u.length>0&&a.jsx(gn,{_type:"error",_label:"Please fix the following:",_alert:!0,_variant:"card",children:a.jsx("ul",{className:"list-disc pl-5",children:u.map(([m,h],p)=>a.jsx("li",{children:a.jsx(_e,{_label:h,_href:`#field-${m}`,_on:{onClick:g=>{g.preventDefault(),document.getElementById(`field-${m}`)?.focus()}}})},p))})}),a.jsxs("form",{onSubmit:n(e),noValidate:!0,className:"grid gap-4 mt-6",children:[a.jsx(O0,{control:s,name:"date",_label:"Date"}),a.jsx(Zb,{control:s,name:"text",_label:"Text (≥ 10 chars)"}),a.jsx(C0,{control:s,name:"email",_label:"Email"}),a.jsx(A0,{control:s,name:"password",_label:"Password"}),a.jsx(L0,{control:s,name:"range",_label:"Range (≥ 30)",_min:0,_max:100}),a.jsx(E0,{control:s,name:"number",_label:"Number (1 – 10)"}),a.jsx(I0,{control:s,name:"checkbox",_label:"Accept terms"}),a.jsx(M0,{control:s,name:"radio",_label:"Gender",_options:[{label:"Female",value:"f"},{label:"Male",value:"m"}]}),a.jsx($0,{control:s,name:"color",_label:"Favorite Color"}),a.jsx(R0,{control:s,name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(D0,{control:s,name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(B0,{control:s,name:"combobox",_label:"Country",_suggestions:Qn}),a.jsx(N0,{control:s,name:"textarea",_label:"Message",_rows:4}),a.jsxs("div",{className:"flex gap-4 mt-4",children:[a.jsx(W,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Reset",_type:"reset",onClick:d})]})]})]})},wR=()=>{const{searchParams:e}=new URL(location.href);return a.jsxs(a.Fragment,{children:[a.jsxs(V,{children:[a.jsx("p",{children:"This sample shows how KoliBri can be used in a static form context."}),a.jsxs("ol",{children:[a.jsxs("li",{children:["First you have to enable the ",a.jsx("code",{children:"experimental mode"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />'})]}),a.jsxs("li",{children:["Currently you have to use a native ",a.jsx("code",{children:"form"})," element:"," ",a.jsx("code",{className:"bg-gray-200",children:'<form method="GET">...</form>'})]}),a.jsxs("li",{children:["It is important in static usage to give every input a ",a.jsx("code",{children:"name"})," attribute:"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolInputColor _name="color" _label="Color" />'})]}),a.jsxs("li",{children:["Last of all one button should have the type ",a.jsx("code",{children:"submit"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolButton _label="Submit" _type="submit" _variant="primary" />'})]})]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[e.size>0&&a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Submitted data"}),a.jsx("pre",{className:"text-base",children:a.jsx("code",{children:JSON.stringify(Object.fromEntries(e.entries()),null,2)})})]}),a.jsxs("form",{className:"grid gap-4",method:"get",noValidate:!0,children:[a.jsx(ro,{_name:"checkbox",_label:"Checkbox"}),a.jsx(Go,{_name:"color",_label:"Color"}),a.jsx(He,{_name:"date",_label:"Date"}),a.jsx(Yo,{_name:"email",_label:"Email"}),a.jsx(Ro,{_name:"file",_label:"File"}),a.jsx(Ro,{_name:"file",_label:"Files (multiple)",_multiple:!0}),a.jsx(So,{_name:"number",_label:"Number"}),a.jsx(Eo,{_name:"password",_label:"Password"}),a.jsx(Lo,{_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(en,{_name:"range",_label:"Range"}),a.jsx(Oe,{_name:"text",_label:"Text"}),a.jsx(Jo,{_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Jo,{_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2}),a.jsx(bn,{_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(_n,{_name:"combobox",_label:"Combobox",_suggestions:Qn}),a.jsx(Qe,{_name:"textarea",_label:"Textarea",_rows:5}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Reset",_type:"reset"})]}),a.jsx("input",{type:"hidden",value:crypto.randomUUID(),name:"random"})]})]})]})},zR=()=>{const[e,n]=j.useState(!1),[r,i]=j.useState(!1);j.useEffect(()=>{let h;return e&&(h=setTimeout(()=>{n(!1)},2e3)),()=>clearTimeout(h)},[e]),j.useEffect(()=>{let h;return r&&(h=setTimeout(()=>{i(!1)},2e3)),()=>clearTimeout(h)},[r]);const s=()=>n(!0),d=()=>i(!0),u=j.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:s},_icons:e?"codicon codicon-loading codicon-modifier-spin":void 0,_disabled:e})),[e]),m=j.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:d},_disabled:r,_icons:r?"codicon codicon-loading codicon-modifier-spin":void 0})),[r]);return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx(be,{_label:"Disabled Toolbar Buttons Bug (solved)"}),a.jsx(be,{_label:"icon vor disabled",_level:2}),a.jsx(ga,{_label:"KolToolbar A",_items:u}),a.jsx(be,{_label:"disabled vor icon",_level:2}),a.jsxs("p",{children:["Klicke auf einen der ",m.length-1," ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen."]}),a.jsx(ga,{_label:"KolToolbar B",_items:m})]})},jR=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates tooltip positioning within container query contexts. Container queries can interfere with fixed positioning, causing tooltips to render incorrectly relative to the viewport. The layout containment fix ensures tooltips position properly even when their parent elements use container-based sizing and layout rules."})}),a.jsx("div",{style:{container:"test / size",contain:"layout"},children:a.jsx(ub,{_label:"Sample PopoverButton—Click for Popover",_icons:"codicon codicon-info",_tooltipAlign:"right",_hideLabel:!0,children:"This is an explanation shown on click."})})]}),SR={scenarios:{"change-tabindex":JO,"custom-tooltip-css-properties":XO,"date-in-form":WO,"disabled-interactive-scenario":QO,"focus-elements":e$,"input-group-with-error":r$,"inputs-get-value":a$,"react-hook-form-adapter":C$,"same-height-of-all-interactive-elements":E$,"static-form":wR,"sample-form-with-validation":yR,"table-horizontal-scrollbar-advanced":t$,"toolbar-item-order":zR,"tooltip-positioning":jR,"performance-test":c$}},qm={...wA,..._8,...w8,...T8,...C8,...$8,...B8,...U8,...W8,...oA,...aA,...iA,...fA,...hA,...AA,...LA,...$A,...DA,...UA,...XA,...eC,...tC,...nE,...lE,...uE,...mE,...AE,...EE,...$E,...FE,...VE,...YE,...XE,...QE,...oL,...rL,...I1,...I1,...mL,...gL,...fL,...yL,...gO,...AO,...RO,...UO,...KO,...ZO,...YO,...SR};Gy(localStorage);const vw=(e,n="/")=>{let r=[];for(const i in e)if(e[i]){const s=e[i],d=`${n}${i}`;typeof s=="function"?r.push(d):typeof s=="object"&&s!==null&&(r=r.concat(vw(s,`${d}/`)))}return r},gw=e=>{const n=[];for(const r in e)if(e[r]){const i=e[r],s=`/${r}`;if(typeof i=="function")n.push(a.jsx(ka,{path:s,element:a.jsx(i,{})},s)),n.push(a.jsx(ka,{path:`${s}/all`,element:a.jsx("div",{className:"d-grid gap-4",children:wm.filter(d=>Ky.indexOf(d.value)>=0).map(d=>a.jsxs("div",{className:"d-grid gap-2",children:[a.jsx("div",{className:"mt-4",children:a.jsx("strong",{children:d.label})}),a.jsx("div",{className:"my-2",children:a.jsx(i,{})}),a.jsx("hr",{"aria-hidden":"true"})]},d.value))})},`${s}/all`));else if(typeof i=="object"&&i!==null){const d=Object.keys(i);d.length>0&&n.push(a.jsx(ka,{path:`${s}/*`,element:a.jsxs(Kx,{children:[a.jsx(ka,{path:"/",element:a.jsx(Fx,{to:d[0]})}),gw(i)]})},s))}}return n},Xb=vw(qm),TR=gw(qm),xx=new Map;Xb.forEach(e=>{const n=e.split("/");xx.has(n[1])||xx.set(n[1],{label:n[1],value:e})});const AR=()=>{const e=rt(),[n,r]=Kr(),i=n.get("theme")??Ks(),s=n.has("hideMenus");vA(i),p8(),document.title=`KoliBri-Handout - ${Hb(Ks())} | v${Ib.version}`,document.body.setAttribute("class",i),document.body.dataset.theme=i;const d=u=>{r({theme:u}),window.location.reload()};return a.jsx(zm.Provider,{value:s,children:a.jsxs("div",{className:s?"":"app-container","data-theme":i,children:[!s&&a.jsx(h8,{version:Ib.version,theme:i,sample:e.pathname,routes:qm,routeList:Xb,buildDate:"2026-01-31T10:31:11.711Z",commitHash:"1fd5c1a2d",onThemeChange:d}),a.jsx("main",{className:"flex flex-col items-stretch p-4",id:"route-container",children:a.jsxs(Kx,{children:[TR,a.jsx(ka,{path:"*",element:a.jsx(Fx,{to:Xb[0],replace:!0})}),a.jsx(ka,{path:"back-page",element:a.jsx(d8,{})})]})})]})})},CR=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableI18nOverwriting"),ER=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableThemePatching"),Wb=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableTagNameTransformer"),Qb=e=>`${e}-sample`;Wb&&Fz(Qb);const LR=async()=>[C3,gT,c8];(async()=>{try{await Y5(await LR(),()=>{lS(window,{transformTagName:Wb?Qb:void 0})},{environment:"production",reflectInputValues:!0,theme:{detect:"auto"},translation:{name:"en"},translations:CR?new Set([n=>n("en",{"kol-error":"Tiny error!"}),n=>n("de",{"kol-error":"Kleiner Fehler!"})]):void 0,transformTagName:Wb?Qb:void 0}),ER&&Sa.patchTheme("default",{"KOL-BUTTON":`
|
|
26012
26012
|
button {
|
|
26013
26013
|
border: 1px solid red;
|
|
26014
26014
|
}`,"KOL-SPIN":`
|
|
@@ -26017,5 +26017,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26017
26017
|
}
|
|
26018
26018
|
.bg-spin-3 {
|
|
26019
26019
|
background-color: gold;
|
|
26020
|
-
}`},{append:!0})}catch(n){console.warn("Theme registration failed:",n)}const e=document.querySelector("div#app");e instanceof HTMLDivElement&&Sx.createRoot(e).render(a.jsx(
|
|
26021
|
-
//# sourceMappingURL=index-
|
|
26020
|
+
}`},{append:!0})}catch(n){console.warn("Theme registration failed:",n)}const e=document.querySelector("div#app");e instanceof HTMLDivElement&&Sx.createRoot(e).render(a.jsx(j.StrictMode,{children:a.jsx(_6,{children:a.jsx(AR,{})})}))})();export{td as $,sy as A,oD as B,c5 as C,UR as D,sD as E,fD as F,dm as G,Lj as H,$R as I,BR as J,Zf as K,Oo as L,o5 as M,OR as N,fm as O,lD as P,aD as Q,iD as R,KR as S,VR as T,g5 as U,zg as V,m5 as W,WR as X,XR as Y,tD as Z,P5 as _,Ot as a,YR as a0,FR as a1,r5 as a2,qR as a3,Zg as a4,Sa as a5,GR as a6,rD as a7,s_ as a8,x_ as a9,h_ as aa,T5 as ab,C_ as ac,N5 as ad,Ig as ae,B_ as af,$_ as ag,Rg as ah,JR as ai,$5 as aj,nD as ak,QR as al,Pg as am,Jg as an,o_ as ao,S_ as ap,N_ as aq,O_ as ar,t5 as as,gb as at,B5 as au,R5 as av,Jn as aw,E5 as ax,NR as ay,$g as b,Bg as c,cD as d,Ug as e,IR as f,uD as g,Ay as h,Gg as i,d_ as j,HR as k,Fg as l,ZR as m,PR as n,Kf as o,O5 as p,eD as q,dD as r,vb as s,Ag as t,DR as u,dy as v,um as w,MR as x,m_ as y,k_ as z};
|
|
26021
|
+
//# sourceMappingURL=index-BoZZX1To.js.map
|