@public-ui/visual-tests 4.6.0-rc.1 → 5.0.0-beta.1
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/app/dist/assets/{Heading-wrhAEuG3-DZ6tf4UL.js → Heading-BVhjT9av-DXP-gC0o.js} +2 -2
- package/app/dist/assets/{Heading-wrhAEuG3-DZ6tf4UL.js.map → Heading-BVhjT9av-DXP-gC0o.js.map} +1 -1
- package/app/dist/assets/api-D92_O-0H-1k0e72cW.js +2 -0
- package/app/dist/assets/api-D92_O-0H-1k0e72cW.js.map +1 -0
- package/app/dist/assets/{base-BDYPTFjC-CqcImfdx.js → base-BLBSJu_1-D_Eeqb50.js} +2 -2
- package/app/dist/assets/{base-BDYPTFjC-CqcImfdx.js.map → base-BLBSJu_1-D_Eeqb50.js.map} +1 -1
- package/app/dist/assets/base-CHmdLgoO-BCkLU89R.js +2 -0
- package/app/dist/assets/base-CHmdLgoO-BCkLU89R.js.map +1 -0
- package/app/dist/assets/base-DIcqHqMz-CdjfOXP3.js +2 -0
- package/app/dist/assets/{base-D_-9Lzkd-BTTss_JV.js.map → base-DIcqHqMz-CdjfOXP3.js.map} +1 -1
- package/app/dist/assets/base-qvPPg-dn-B9zLOk-h.js +2 -0
- package/app/dist/assets/base-qvPPg-dn-B9zLOk-h.js.map +1 -0
- package/app/dist/assets/base-web-component-CaAexWy_-KDwdCSfq.js +2 -0
- package/app/dist/assets/{base-web-component-BUu68byc-6NJUeHJD.js.map → base-web-component-CaAexWy_-KDwdCSfq.js.map} +1 -1
- package/app/dist/assets/{base-web-component-DdY5aIHN-CB4UzdKB.js → base-web-component-DbagnM7m-C9lX5Eok.js} +2 -2
- package/app/dist/assets/{base-web-component-DdY5aIHN-CB4UzdKB.js.map → base-web-component-DbagnM7m-C9lX5Eok.js.map} +1 -1
- package/app/dist/assets/{base-web-component-XgI4wUyN-CThgVvvw.js → base-web-component-XgI4wUyN-DicnhRXg.js} +2 -2
- package/app/dist/assets/{base-web-component-XgI4wUyN-CThgVvvw.js.map → base-web-component-XgI4wUyN-DicnhRXg.js.map} +1 -1
- package/app/dist/assets/behavior-B08CXmI4-5kZdzsUL.js +2 -0
- package/app/dist/assets/behavior-B08CXmI4-5kZdzsUL.js.map +1 -0
- package/app/dist/assets/behavior-CwUUkdaP-B0YD5Z6Z.js +2 -0
- package/app/dist/assets/{behavior-fGxZN96S-DWQ51dCU.js.map → behavior-CwUUkdaP-B0YD5Z6Z.js.map} +1 -1
- package/app/dist/assets/{behavior-DsTiTiJC-DTRO_8ta.js → behavior-DW7_5Wxp-BJ-KnMzo.js} +2 -2
- package/app/dist/assets/{behavior-DsTiTiJC-DTRO_8ta.js.map → behavior-DW7_5Wxp-BJ-KnMzo.js.map} +1 -1
- package/app/dist/assets/block-bem-BpQSY04L-DbbV-3s4.js +2 -0
- package/app/dist/assets/{block-bem-DehcAQZQ-CrjCm8hs.js.map → block-bem-BpQSY04L-DbbV-3s4.js.map} +1 -1
- package/app/dist/assets/{color-eAL9I7Wq-CGdaHMmQ.js → color-eAL9I7Wq-BrnlaL02.js} +2 -2
- package/app/dist/assets/{color-eAL9I7Wq-CGdaHMmQ.js.map → color-eAL9I7Wq-BrnlaL02.js.map} +1 -1
- package/app/dist/assets/component-8ALsFV4i-6geJde-u.js +2 -0
- package/app/dist/assets/component-8ALsFV4i-6geJde-u.js.map +1 -0
- package/app/dist/assets/component-BTMWoACz-vEOEo0S_.js +2 -0
- package/app/dist/assets/component-BTMWoACz-vEOEo0S_.js.map +1 -0
- package/app/dist/assets/component-Bc1n82Y8-mPU7X4Fv.js +2 -0
- package/app/dist/assets/{component-BJ4gGOph-ZMQ5WQNu.js.map → component-Bc1n82Y8-mPU7X4Fv.js.map} +1 -1
- package/app/dist/assets/{component-NEw1tN3M-CbOIJhXb.js → component-CZZNha2e-CsuU0l9r.js} +4 -4
- package/app/dist/assets/{component-NEw1tN3M-CbOIJhXb.js.map → component-CZZNha2e-CsuU0l9r.js.map} +1 -1
- package/app/dist/assets/{component-DHNcVTi0-BR_wLWGW.js → component-CdKSiR5P-Dq93_RmH.js} +2 -2
- package/app/dist/assets/{component-DHNcVTi0-BR_wLWGW.js.map → component-CdKSiR5P-Dq93_RmH.js.map} +1 -1
- package/app/dist/assets/{component-et0GdBuf-DjDFULvI.js → component-Cdnq5GYF-IUF1gYXZ.js} +2 -2
- package/app/dist/assets/{component-et0GdBuf-DjDFULvI.js.map → component-Cdnq5GYF-IUF1gYXZ.js.map} +1 -1
- package/app/dist/assets/component-D0mBOGjS-SE7kA5Ev.js +2 -0
- package/app/dist/assets/{component-0IO2wu9i-CnMYTy0I.js.map → component-D0mBOGjS-SE7kA5Ev.js.map} +1 -1
- package/app/dist/assets/component-DBAicJ2u-Bq6leD51.js +2 -0
- package/app/dist/assets/component-DBAicJ2u-Bq6leD51.js.map +1 -0
- package/app/dist/assets/component-DCw1ZAE5-CLTcMIV0.js +2 -0
- package/app/dist/assets/{component-CTOYF3q6-DU2Ldi3W.js.map → component-DCw1ZAE5-CLTcMIV0.js.map} +1 -1
- package/app/dist/assets/component-DLSlbWg8-Yie7UAo-.js +2 -0
- package/app/dist/assets/component-DLSlbWg8-Yie7UAo-.js.map +1 -0
- package/app/dist/assets/{component-DWywPG_a-BrVYgNyK.js → component-DeMf195P-BFyN5pY3.js} +2 -2
- package/app/dist/assets/{component-DWywPG_a-BrVYgNyK.js.map → component-DeMf195P-BFyN5pY3.js.map} +1 -1
- package/app/dist/assets/{component-4xXBb7K--63VoyhIM.js → component-nR5Bf9G5-DXXAPaw0.js} +2 -2
- package/app/dist/assets/{component-4xXBb7K--63VoyhIM.js.map → component-nR5Bf9G5-DXXAPaw0.js.map} +1 -1
- package/app/dist/assets/{component-names-Dhbtt0mX-BR2fJpe1.js → component-names-CrfBV37S-unMTSn8y.js} +2 -2
- package/app/dist/assets/component-names-CrfBV37S-unMTSn8y.js.map +1 -0
- package/app/dist/assets/contrast-D78VGPFR-Deg3HX7K.js +2 -0
- package/app/dist/assets/{contrast-D78VGPFR-DPob2RQc.js.map → contrast-D78VGPFR-Deg3HX7K.js.map} +1 -1
- package/app/dist/assets/{controller-Cb-96wE--CCWJXl39.js → controller-C3O9ohSP-BND5cx2S.js} +2 -2
- package/app/dist/assets/{controller-Cb-96wE--CCWJXl39.js.map → controller-C3O9ohSP-BND5cx2S.js.map} +1 -1
- package/app/dist/assets/{dev.utils-Bg7nZBMk-BhnN_Qf7.js → dev.utils-wYkYn08d-DgFCw372.js} +4 -4
- package/app/dist/assets/{dev.utils-Bg7nZBMk-BhnN_Qf7.js.map → dev.utils-wYkYn08d-DgFCw372.js.map} +1 -1
- package/app/dist/assets/devtools-DrBkkLdP-BAmIGl-I.js +14 -0
- package/app/dist/assets/{devtools-nUT3JVTV-BIy2DCmZ.js.map → devtools-DrBkkLdP-BAmIGl-I.js.map} +1 -1
- package/app/dist/assets/disabled-Cqhc40CU-CRm1KmcK.js +2 -0
- package/app/dist/assets/{disabled-Cqhc40CU-Db9OsyPy.js.map → disabled-Cqhc40CU-CRm1KmcK.js.map} +1 -1
- package/app/dist/assets/{field-control-D2tOd14v-9DXmitR7.js → field-control-Cs5VvsYo-BXQgOCva.js} +2 -2
- package/app/dist/assets/{field-control-D2tOd14v-9DXmitR7.js.map → field-control-Cs5VvsYo-BXQgOCva.js.map} +1 -1
- package/app/dist/assets/{group-CxWsx0aJ-xDL-6Fhg.js → group-uNo1CfbK-dSKlSEwU.js} +2 -2
- package/app/dist/assets/{group-CxWsx0aJ-xDL-6Fhg.js.map → group-uNo1CfbK-dSKlSEwU.js.map} +1 -1
- package/app/dist/assets/has-closer-B9NQY7BK-D9JmxA8X.js +2 -0
- package/app/dist/assets/{has-closer-B9NQY7BK-DYyd1-PE.js.map → has-closer-B9NQY7BK-D9JmxA8X.js.map} +1 -1
- package/app/dist/assets/href-JqLbNBsW-yYhi9tN2.js +2 -0
- package/app/dist/assets/{href-JqLbNBsW-gBZUUmfC.js.map → href-JqLbNBsW-yYhi9tN2.js.map} +1 -1
- package/app/dist/assets/i18n-DtLKn3Xt-Sm4nS4xb.js +2 -0
- package/app/dist/assets/{i18n-DtLKn3Xt-iV9JqK8t.js.map → i18n-DtLKn3Xt-Sm4nS4xb.js.map} +1 -1
- package/app/dist/assets/id-CIYvVaNr-DwcmvIyp.js +2 -0
- package/app/dist/assets/{id-CIYvVaNr-4urpHjsh.js.map → id-CIYvVaNr-DwcmvIyp.js.map} +1 -1
- package/app/dist/assets/{index-B_bJG8-2-BxSypZOc.js → index-BKEJuyFi-BIHNDvwu.js} +4 -4
- package/app/dist/assets/index-BKEJuyFi-BIHNDvwu.js.map +1 -0
- package/app/dist/assets/index-C3ZgfueX.css +1 -0
- package/app/dist/assets/index-CcQDmtxr.js +97 -0
- package/app/dist/assets/index-CcQDmtxr.js.map +1 -0
- package/app/dist/assets/input-Dja5Qioc-BQtUcQrd.js +2 -0
- package/app/dist/assets/{input-Ia9Z3AP7-eGyam5uQ.js.map → input-Dja5Qioc-BQtUcQrd.js.map} +1 -1
- package/app/dist/assets/{input-container-Y_8n5Sen-CVyG5c3C.js → input-container-C2Am7LEP-BnEfIMrQ.js} +2 -2
- package/app/dist/assets/{input-container-Y_8n5Sen-CVyG5c3C.js.map → input-container-C2Am7LEP-BnEfIMrQ.js.map} +1 -1
- package/app/dist/assets/{item-BjriQHQl-CeeSlHhU.js → item-C4AmpdVD-BrXcigWM.js} +2 -2
- package/app/dist/assets/{item-BjriQHQl-CeeSlHhU.js.map → item-C4AmpdVD-BrXcigWM.js.map} +1 -1
- package/app/dist/assets/{item-BZtI88zF-D1IT64FE.js → item-ConW1c81-C27kEJus.js} +2 -2
- package/app/dist/assets/{item-BZtI88zF-D1IT64FE.js.map → item-ConW1c81-C27kEJus.js.map} +1 -1
- package/app/dist/assets/item-D627ShRd-lBLRVDAw.js +2 -0
- package/app/dist/assets/item-D627ShRd-lBLRVDAw.js.map +1 -0
- package/app/dist/assets/item-DIAFIFSy-DXhWAXzE.js +2 -0
- package/app/dist/assets/item-DIAFIFSy-DXhWAXzE.js.map +1 -0
- package/app/dist/assets/{keyboard-DNd73LVa-BCj4IeP3.js → keyboard-Cnv7zP3N-Day-K4ic.js} +2 -2
- package/app/dist/assets/keyboard-Cnv7zP3N-Day-K4ic.js.map +1 -0
- package/app/dist/assets/{kol-abbr.entry-C-gDYmqx.js → kol-abbr.entry-DPvs-aCY.js} +2 -2
- package/app/dist/assets/{kol-abbr.entry-C-gDYmqx.js.map → kol-abbr.entry-DPvs-aCY.js.map} +1 -1
- package/app/dist/assets/kol-accordion.entry-YZJWAay7.js +2 -0
- package/app/dist/assets/{kol-accordion.entry-DyXi3YY-.js.map → kol-accordion.entry-YZJWAay7.js.map} +1 -1
- package/app/dist/assets/kol-alert.entry-CdsgKKeI.js +2 -0
- package/app/dist/assets/kol-alert.entry-CdsgKKeI.js.map +1 -0
- package/app/dist/assets/{kol-avatar.entry-D0HGZtvc.js → kol-avatar.entry-Bq1GiVE_.js} +2 -2
- package/app/dist/assets/{kol-avatar.entry-D0HGZtvc.js.map → kol-avatar.entry-Bq1GiVE_.js.map} +1 -1
- package/app/dist/assets/kol-badge.entry-Bidq10P1.js +2 -0
- package/app/dist/assets/kol-badge.entry-Bidq10P1.js.map +1 -0
- package/app/dist/assets/kol-breadcrumb.entry-DYSXydrl.js +2 -0
- package/app/dist/assets/kol-breadcrumb.entry-DYSXydrl.js.map +1 -0
- package/app/dist/assets/kol-button-link.entry-VpwG32k1.js +2 -0
- package/app/dist/assets/kol-button-link.entry-VpwG32k1.js.map +1 -0
- package/app/dist/assets/kol-button.entry-RGRksMGH.js +2 -0
- package/app/dist/assets/kol-button.entry-RGRksMGH.js.map +1 -0
- package/app/dist/assets/kol-card.entry-CcJy1anr.js +2 -0
- package/app/dist/assets/kol-card.entry-CcJy1anr.js.map +1 -0
- package/app/dist/assets/kol-click-button.entry-CwUTjQyx.js +2 -0
- package/app/dist/assets/kol-click-button.entry-CwUTjQyx.js.map +1 -0
- package/app/dist/assets/kol-combobox.entry-DxzpwtWc.js +2 -0
- package/app/dist/assets/kol-combobox.entry-DxzpwtWc.js.map +1 -0
- package/app/dist/assets/kol-details.entry-QfHdK6IH.js +2 -0
- package/app/dist/assets/{kol-details.entry-BHNaRvgb.js.map → kol-details.entry-QfHdK6IH.js.map} +1 -1
- package/app/dist/assets/kol-dialog.entry-Cgg6m_UC.js +2 -0
- package/app/dist/assets/kol-dialog.entry-Cgg6m_UC.js.map +1 -0
- package/app/dist/assets/kol-drawer.entry-BqsJ7MZW.js +2 -0
- package/app/dist/assets/kol-drawer.entry-BqsJ7MZW.js.map +1 -0
- package/app/dist/assets/kol-form.entry-D-_-g9PU.js +2 -0
- package/app/dist/assets/kol-form.entry-D-_-g9PU.js.map +1 -0
- package/app/dist/assets/{kol-heading.entry-CJy6iST2.js → kol-heading.entry-B8rJ88s-.js} +2 -2
- package/app/dist/assets/{kol-heading.entry-CJy6iST2.js.map → kol-heading.entry-B8rJ88s-.js.map} +1 -1
- package/app/dist/assets/{kol-icon.entry-C-I4_UDK.js → kol-icon.entry-Dxe593Yf.js} +2 -2
- package/app/dist/assets/{kol-icon.entry-C-I4_UDK.js.map → kol-icon.entry-Dxe593Yf.js.map} +1 -1
- package/app/dist/assets/{kol-image.entry-_Y3VwuvE.js → kol-image.entry-t8fNYgPa.js} +2 -2
- package/app/dist/assets/{kol-image.entry-_Y3VwuvE.js.map → kol-image.entry-t8fNYgPa.js.map} +1 -1
- package/app/dist/assets/kol-input-checkbox.entry-CyL-YihK.js +2 -0
- package/app/dist/assets/kol-input-checkbox.entry-CyL-YihK.js.map +1 -0
- package/app/dist/assets/kol-input-color.entry-DfSnk_Jp.js +2 -0
- package/app/dist/assets/kol-input-color.entry-DfSnk_Jp.js.map +1 -0
- package/app/dist/assets/kol-input-date.entry-DsE8T-O8.js +2 -0
- package/app/dist/assets/kol-input-date.entry-DsE8T-O8.js.map +1 -0
- package/app/dist/assets/kol-input-email.entry-CIyDy4nO.js +2 -0
- package/app/dist/assets/kol-input-email.entry-CIyDy4nO.js.map +1 -0
- package/app/dist/assets/kol-input-file.entry-DvDzhqlT.js +2 -0
- package/app/dist/assets/kol-input-file.entry-DvDzhqlT.js.map +1 -0
- package/app/dist/assets/kol-input-number.entry-D0zSoyep.js +2 -0
- package/app/dist/assets/kol-input-number.entry-D0zSoyep.js.map +1 -0
- package/app/dist/assets/{kol-input-range.entry-CyKka3G-.js → kol-input-password.entry-DP9Q7uFA.js} +2 -2
- package/app/dist/assets/kol-input-password.entry-DP9Q7uFA.js.map +1 -0
- package/app/dist/assets/kol-input-radio.entry-CY2t7MDq.js +2 -0
- package/app/dist/assets/kol-input-radio.entry-CY2t7MDq.js.map +1 -0
- package/app/dist/assets/{kol-select.entry-Dug1NFkp.js → kol-input-range.entry-DiN5FgtD.js} +2 -2
- package/app/dist/assets/kol-input-range.entry-DiN5FgtD.js.map +1 -0
- package/app/dist/assets/kol-input-text.entry-Do_QSHzW.js +2 -0
- package/app/dist/assets/kol-input-text.entry-Do_QSHzW.js.map +1 -0
- package/app/dist/assets/{kol-kolibri.entry-CPiAZHT0.js → kol-kolibri.entry-Cvu6RWxq.js} +2 -2
- package/app/dist/assets/{kol-kolibri.entry-CPiAZHT0.js.map → kol-kolibri.entry-Cvu6RWxq.js.map} +1 -1
- package/app/dist/assets/kol-link-button.entry-BsHXpQFO.js +2 -0
- package/app/dist/assets/kol-link-button.entry-BsHXpQFO.js.map +1 -0
- package/app/dist/assets/kol-link.entry-BtGbtRVU.js +2 -0
- package/app/dist/assets/kol-link.entry-BtGbtRVU.js.map +1 -0
- package/app/dist/assets/{kol-meter.entry-Dthlv5HB.js → kol-meter.entry-DrJx_Ax1.js} +2 -2
- package/app/dist/assets/{kol-meter.entry-Dthlv5HB.js.map → kol-meter.entry-DrJx_Ax1.js.map} +1 -1
- package/app/dist/assets/kol-modal.entry-BgHsd0Wi.js +2 -0
- package/app/dist/assets/kol-modal.entry-BgHsd0Wi.js.map +1 -0
- package/app/dist/assets/{kol-nav.entry-aYmDxrO8.js → kol-nav.entry-DrUT0z3U.js} +2 -2
- package/app/dist/assets/kol-nav.entry-DrUT0z3U.js.map +1 -0
- package/app/dist/assets/kol-pagination.entry-BWiHpVdT.js +2 -0
- package/app/dist/assets/kol-pagination.entry-BWiHpVdT.js.map +1 -0
- package/app/dist/assets/kol-popover-button.entry-YJwrN-QQ.js +2 -0
- package/app/dist/assets/kol-popover-button.entry-YJwrN-QQ.js.map +1 -0
- package/app/dist/assets/{kol-progress.entry-5_O6k0jo.js → kol-progress.entry-DrV-xIx9.js} +2 -2
- package/app/dist/assets/{kol-progress.entry-5_O6k0jo.js.map → kol-progress.entry-DrV-xIx9.js.map} +1 -1
- package/app/dist/assets/{kol-quote.entry-CRnWPFAQ.js → kol-quote.entry-DAZsJQCB.js} +2 -2
- package/app/dist/assets/{kol-quote.entry-CRnWPFAQ.js.map → kol-quote.entry-DAZsJQCB.js.map} +1 -1
- package/app/dist/assets/kol-select.entry-yY9Fiv2m.js +2 -0
- package/app/dist/assets/kol-select.entry-yY9Fiv2m.js.map +1 -0
- package/app/dist/assets/kol-single-select.entry-ufwtb77g.js +2 -0
- package/app/dist/assets/kol-single-select.entry-ufwtb77g.js.map +1 -0
- package/app/dist/assets/kol-skeleton.entry-B7_rhVBv.js +2 -0
- package/app/dist/assets/kol-skeleton.entry-B7_rhVBv.js.map +1 -0
- package/app/dist/assets/kol-skip-nav.entry-B-Sr1_ki.js +2 -0
- package/app/dist/assets/kol-skip-nav.entry-B-Sr1_ki.js.map +1 -0
- package/app/dist/assets/{kol-spin.entry-wyLrW8xn.js → kol-spin.entry-BIHHT6Zl.js} +2 -2
- package/app/dist/assets/{kol-spin.entry-wyLrW8xn.js.map → kol-spin.entry-BIHHT6Zl.js.map} +1 -1
- package/app/dist/assets/kol-split-button.entry-CyapCiZS.js +2 -0
- package/app/dist/assets/kol-split-button.entry-CyapCiZS.js.map +1 -0
- package/app/dist/assets/{kol-table-stateful.entry-D6XsxAhD.js → kol-table-stateful.entry-fisz4zsA.js} +2 -2
- package/app/dist/assets/kol-table-stateful.entry-fisz4zsA.js.map +1 -0
- package/app/dist/assets/kol-table-stateless.entry-euP3VTfr.js +2 -0
- package/app/dist/assets/kol-table-stateless.entry-euP3VTfr.js.map +1 -0
- package/app/dist/assets/kol-tabs.entry-kgaxMz7v.js +2 -0
- package/app/dist/assets/kol-tabs.entry-kgaxMz7v.js.map +1 -0
- package/app/dist/assets/kol-textarea.entry-CQgFc5Hn.js +2 -0
- package/app/dist/assets/kol-textarea.entry-CQgFc5Hn.js.map +1 -0
- package/app/dist/assets/kol-toast-container.entry-CiYVSVTm.js +2 -0
- package/app/dist/assets/kol-toast-container.entry-CiYVSVTm.js.map +1 -0
- package/app/dist/assets/{kol-toolbar.entry-elfsK46F.js → kol-toolbar.entry-CRJ8scUM.js} +2 -2
- package/app/dist/assets/kol-toolbar.entry-CRJ8scUM.js.map +1 -0
- package/app/dist/assets/kol-tree-item.entry-Bg2ljEi3.js +2 -0
- package/app/dist/assets/kol-tree-item.entry-Bg2ljEi3.js.map +1 -0
- package/app/dist/assets/{kol-tree.entry-DXPYTdyl.js → kol-tree.entry-DmnBX9XC.js} +2 -2
- package/app/dist/assets/{kol-tree.entry-DXPYTdyl.js.map → kol-tree.entry-DmnBX9XC.js.map} +1 -1
- package/app/dist/assets/kol-version.entry-ztGOyvgK.js +2 -0
- package/app/dist/assets/kol-version.entry-ztGOyvgK.js.map +1 -0
- package/app/dist/assets/kolicons/kolicons.eot +0 -0
- package/app/dist/assets/kolicons/kolicons.ttf +0 -0
- package/app/dist/assets/kolicons/kolicons.woff +0 -0
- package/app/dist/assets/kolicons/kolicons.woff2 +0 -0
- package/app/dist/assets/kolicons/style.css +6 -6
- package/app/dist/assets/label-BRosRgdX-CErDuk_V.js +2 -0
- package/app/dist/assets/{label-BRosRgdX-DmiKY1-O.js.map → label-BRosRgdX-CErDuk_V.js.map} +1 -1
- package/app/dist/assets/label-hints-Jn18RUT--Do6w4I59.js +2 -0
- package/app/dist/assets/{label-hints-Jn18RUT--C35IQKbt.js.map → label-hints-Jn18RUT--Do6w4I59.js.map} +1 -1
- package/app/dist/assets/label-lang-segment-2_GnxjFp-SnkrnK3k.js +2 -0
- package/app/dist/assets/{label-lang-segment-2_GnxjFp-C1k2onhU.js.map → label-lang-segment-2_GnxjFp-SnkrnK3k.js.map} +1 -1
- package/app/dist/assets/label-with-expert-slot-CicRes-W-BIpMdOgC.js +2 -0
- package/app/dist/assets/{label-with-expert-slot-CicRes-W-DCE5zyFJ.js.map → label-with-expert-slot-CicRes-W-BIpMdOgC.js.map} +1 -1
- package/app/dist/assets/level-CA1s1_Mf-DPuRBKY0.js +2 -0
- package/app/dist/assets/{level-CA1s1_Mf-DI_p8u_t.js.map → level-CA1s1_Mf-DPuRBKY0.js.map} +1 -1
- package/app/dist/assets/link-target-FX94oqMo-BQMA7tPL.js +2 -0
- package/app/dist/assets/{link-target-FX94oqMo-CVwu-iMb.js.map → link-target-FX94oqMo-BQMA7tPL.js.map} +1 -1
- package/app/dist/assets/links-DwucTqcR-C4Td7KwG.js +2 -0
- package/app/dist/assets/{links-DwucTqcR-gD1YLpcB.js.map → links-DwucTqcR-C4Td7KwG.js.map} +1 -1
- package/app/dist/assets/multiple-DqrZxybx-BwCNEBTn.js +2 -0
- package/app/dist/assets/{multiple-DqrZxybx-DPYNeDkZ.js.map → multiple-DqrZxybx-BwCNEBTn.js.map} +1 -1
- package/app/dist/assets/name-B2Yf3EpX-C-_eYGkT.js +2 -0
- package/app/dist/assets/name-B2Yf3EpX-C-_eYGkT.js.map +1 -0
- package/app/dist/assets/{number-value-B-SJ1dRo-CPI0mbiL.js → number-value-B-SJ1dRo-C6SGsc8j.js} +2 -2
- package/app/dist/assets/{number-value-B-SJ1dRo-CPI0mbiL.js.map → number-value-B-SJ1dRo-C6SGsc8j.js.map} +1 -1
- package/app/dist/assets/open-DRRv1KFK-DmhAJTc1.js +2 -0
- package/app/dist/assets/{open-DRRv1KFK-DFtDLjUc.js.map → open-DRRv1KFK-DmhAJTc1.js.map} +1 -1
- package/app/dist/assets/{options-DCaUcfAu--1FsXm_u.js → options-DCaUcfAu-3o3GAJat.js} +2 -2
- package/app/dist/assets/{options-DCaUcfAu--1FsXm_u.js.map → options-DCaUcfAu-3o3GAJat.js.map} +1 -1
- package/app/dist/assets/{orientation-XNOCaPwy-BGaUjX3d.js → orientation-XNOCaPwy-wmLshcHe.js} +2 -2
- package/app/dist/assets/{orientation-XNOCaPwy-BGaUjX3d.js.map → orientation-XNOCaPwy-wmLshcHe.js.map} +1 -1
- package/app/dist/assets/placeholder-BeLIzdJv-BUtA8boJ.js +2 -0
- package/app/dist/assets/{placeholder-BeLIzdJv-i2qDExwu.js.map → placeholder-BeLIzdJv-BUtA8boJ.js.map} +1 -1
- package/app/dist/assets/{props-from-config-Ci0dILpz-Bo5EQPCO.js → props-from-config-Ci0dILpz-9TGzV2dG.js} +2 -2
- package/app/dist/assets/{props-from-config-Ci0dILpz-Bo5EQPCO.js.map → props-from-config-Ci0dILpz-9TGzV2dG.js.map} +1 -1
- package/app/dist/assets/read-only-Bby9r6ZX-CnIbV-5U.js +2 -0
- package/app/dist/assets/{read-only-Bby9r6ZX-Bmq5X91z.js.map → read-only-Bby9r6ZX-CnIbV-5U.js.map} +1 -1
- package/app/dist/assets/required-hoaT7UmZ-BzsdpKGQ.js +2 -0
- package/app/dist/assets/{required-hoaT7UmZ-0ApcSxkl.js.map → required-hoaT7UmZ-BzsdpKGQ.js.map} +1 -1
- package/app/dist/assets/resolve-props-BLZxWC3j-Cyjs1p_E.js +2 -0
- package/app/dist/assets/resolve-props-BLZxWC3j-Cyjs1p_E.js.map +1 -0
- package/app/dist/assets/resolve-props-D2KiItuv-CXg1tKV0.js +2 -0
- package/app/dist/assets/{resolve-props-BkF1VBBB-DssaMOgv.js.map → resolve-props-D2KiItuv-CXg1tKV0.js.map} +1 -1
- package/app/dist/assets/rows-B0x8CR7K-2PGLX4uJ.js +2 -0
- package/app/dist/assets/{rows-B0x8CR7K-B2zaXisM.js.map → rows-B0x8CR7K-2PGLX4uJ.js.map} +1 -1
- package/app/dist/assets/{scroll-lock-D7Zo0QLt-BnmWiv-Q.js → scroll-lock-Y2hf47KW-BncxY2bp.js} +2 -2
- package/app/dist/assets/{scroll-lock-D7Zo0QLt-BnmWiv-Q.js.map → scroll-lock-Y2hf47KW-BncxY2bp.js.map} +1 -1
- package/app/dist/assets/smart-button-CS_ZriPt-DdMI-njs.js +2 -0
- package/app/dist/assets/{smart-button-CS_ZriPt-CHOFrTdg.js.map → smart-button-CS_ZriPt-DdMI-njs.js.map} +1 -1
- package/app/dist/assets/spell-check-DzgftyqL-B1DXa99s.js +2 -0
- package/app/dist/assets/{spell-check-DzgftyqL-gfJx2IZI.js.map → spell-check-DzgftyqL-B1DXa99s.js.map} +1 -1
- package/app/dist/assets/src-DaGhmCL1-BRqWHP5L.js +2 -0
- package/app/dist/assets/{src-DaGhmCL1-CA_fKWnK.js.map → src-DaGhmCL1-BRqWHP5L.js.map} +1 -1
- package/app/dist/assets/step-Bdj89bGO-CDs0pJVu.js +2 -0
- package/app/dist/assets/{step-Bdj89bGO-CylbUg37.js.map → step-Bdj89bGO-CDs0pJVu.js.map} +1 -1
- package/app/dist/assets/suggestions-DuqzGDve-Ba4zorB_.js +2 -0
- package/app/dist/assets/{suggestions-GEr-cvbz-B7kwZtEq.js.map → suggestions-DuqzGDve-Ba4zorB_.js.map} +1 -1
- package/app/dist/assets/{suggestions-Dy1X-Pc3-CBLJ3YnP.js → suggestions-Dy1X-Pc3-I_G69Lii.js} +2 -2
- package/app/dist/assets/{suggestions-Dy1X-Pc3-CBLJ3YnP.js.map → suggestions-Dy1X-Pc3-I_G69Lii.js.map} +1 -1
- package/app/dist/assets/test-component.entry-BWBFlQBn.js +2 -0
- package/app/dist/assets/{test-component.entry-BewIicq8.js.map → test-component.entry-BWBFlQBn.js.map} +1 -1
- package/app/dist/assets/{toggle-handler-Bqoo8tCo-5KmM79Y3.js → toggle-handler-BRLmxe1J-B3CgeikE.js} +2 -2
- package/app/dist/assets/{toggle-handler-Bqoo8tCo-5KmM79Y3.js.map → toggle-handler-BRLmxe1J-B3CgeikE.js.map} +1 -1
- package/app/dist/assets/unique-nav-labels-h2KOu5Qy-B1WT1_VC.js +2 -0
- package/app/dist/assets/{unique-nav-labels-h2KOu5Qy-DgVyaWDd.js.map → unique-nav-labels-h2KOu5Qy-B1WT1_VC.js.map} +1 -1
- package/app/dist/assets/unit-BUhhJbhT-DVfqBsRY.js +2 -0
- package/app/dist/assets/{unit-BUhhJbhT-CBx9iCjJ.js.map → unit-BUhhJbhT-DVfqBsRY.js.map} +1 -1
- package/app/dist/assets/{validators-BVM40IEr-Dv9fQhRL.js → validators-BVM40IEr-BjoU91EO.js} +2 -2
- package/app/dist/assets/{validators-BVM40IEr-Dv9fQhRL.js.map → validators-BVM40IEr-BjoU91EO.js.map} +1 -1
- package/app/dist/assets/value-string-e9pwLcS--BElmVFMK.js +2 -0
- package/app/dist/assets/{value-string-e9pwLcS--BtTwM2Wn.js.map → value-string-e9pwLcS--BElmVFMK.js.map} +1 -1
- package/app/dist/assets/{width-CgYY17tL-l4Ypguny.js → width-CgYY17tL-Ct_Wvlzq.js} +2 -2
- package/app/dist/assets/{width-CgYY17tL-l4Ypguny.js.map → width-CgYY17tL-Ct_Wvlzq.js.map} +1 -1
- package/app/dist/index.html +4 -4
- package/app/public/assets/kolicons/kolicons.eot +0 -0
- package/app/public/assets/kolicons/kolicons.ttf +0 -0
- package/app/public/assets/kolicons/kolicons.woff +0 -0
- package/app/public/assets/kolicons/kolicons.woff2 +0 -0
- package/app/public/assets/kolicons/style.css +6 -6
- package/package.json +4 -4
- package/app/dist/assets/api-7B_iI89k-B0gniRET.js +0 -2
- package/app/dist/assets/api-7B_iI89k-B0gniRET.js.map +0 -1
- package/app/dist/assets/base-BVztEKgJ-67LWvk_h.js +0 -2
- package/app/dist/assets/base-BVztEKgJ-67LWvk_h.js.map +0 -1
- package/app/dist/assets/base-C32RNC8q-Cuh8cWmj.js +0 -2
- package/app/dist/assets/base-C32RNC8q-Cuh8cWmj.js.map +0 -1
- package/app/dist/assets/base-D_-9Lzkd-BTTss_JV.js +0 -2
- package/app/dist/assets/base-web-component-BUu68byc-6NJUeHJD.js +0 -2
- package/app/dist/assets/behavior-DN-22cB1-BVRTjiD4.js +0 -2
- package/app/dist/assets/behavior-DN-22cB1-BVRTjiD4.js.map +0 -1
- package/app/dist/assets/behavior-fGxZN96S-DWQ51dCU.js +0 -2
- package/app/dist/assets/block-bem-DehcAQZQ-CrjCm8hs.js +0 -2
- package/app/dist/assets/component-0IO2wu9i-CnMYTy0I.js +0 -2
- package/app/dist/assets/component-BJ4gGOph-ZMQ5WQNu.js +0 -2
- package/app/dist/assets/component-CPq3i3I_-uvGfpE6R.js +0 -2
- package/app/dist/assets/component-CPq3i3I_-uvGfpE6R.js.map +0 -1
- package/app/dist/assets/component-CTOYF3q6-DU2Ldi3W.js +0 -2
- package/app/dist/assets/component-ChuoBFI--DGuaqA1H.js +0 -2
- package/app/dist/assets/component-ChuoBFI--DGuaqA1H.js.map +0 -1
- package/app/dist/assets/component-Cxdi6on4-BBmqaA-z.js +0 -2
- package/app/dist/assets/component-Cxdi6on4-BBmqaA-z.js.map +0 -1
- package/app/dist/assets/component-EK9BJR6z-C556wMNH.js +0 -2
- package/app/dist/assets/component-EK9BJR6z-C556wMNH.js.map +0 -1
- package/app/dist/assets/component-names-Dhbtt0mX-BR2fJpe1.js.map +0 -1
- package/app/dist/assets/contrast-D78VGPFR-DPob2RQc.js +0 -2
- package/app/dist/assets/devtools-nUT3JVTV-BIy2DCmZ.js +0 -14
- package/app/dist/assets/disabled-Cqhc40CU-Db9OsyPy.js +0 -2
- package/app/dist/assets/has-closer-B9NQY7BK-DYyd1-PE.js +0 -2
- package/app/dist/assets/href-JqLbNBsW-gBZUUmfC.js +0 -2
- package/app/dist/assets/i18n-DtLKn3Xt-iV9JqK8t.js +0 -2
- package/app/dist/assets/id-CIYvVaNr-4urpHjsh.js +0 -2
- package/app/dist/assets/index-B5Z7PofF.js +0 -97
- package/app/dist/assets/index-B5Z7PofF.js.map +0 -1
- package/app/dist/assets/index-B_bJG8-2-BxSypZOc.js.map +0 -1
- package/app/dist/assets/index-CTU5mf3R.css +0 -1
- package/app/dist/assets/input-Ia9Z3AP7-eGyam5uQ.js +0 -2
- package/app/dist/assets/item-BKVeXzUO-Ba1XuBpP.js +0 -2
- package/app/dist/assets/item-BKVeXzUO-Ba1XuBpP.js.map +0 -1
- package/app/dist/assets/item-BuqBMSYI-CYUsvCWp.js +0 -2
- package/app/dist/assets/item-BuqBMSYI-CYUsvCWp.js.map +0 -1
- package/app/dist/assets/keyboard-DNd73LVa-BCj4IeP3.js.map +0 -1
- package/app/dist/assets/kol-accordion.entry-DyXi3YY-.js +0 -2
- package/app/dist/assets/kol-alert.entry-Qs_ybM6g.js +0 -2
- package/app/dist/assets/kol-alert.entry-Qs_ybM6g.js.map +0 -1
- package/app/dist/assets/kol-badge.entry-Cd43z8wG.js +0 -2
- package/app/dist/assets/kol-badge.entry-Cd43z8wG.js.map +0 -1
- package/app/dist/assets/kol-breadcrumb.entry-CfZRxKBs.js +0 -2
- package/app/dist/assets/kol-breadcrumb.entry-CfZRxKBs.js.map +0 -1
- package/app/dist/assets/kol-button-link.entry-n9KNrPtg.js +0 -2
- package/app/dist/assets/kol-button-link.entry-n9KNrPtg.js.map +0 -1
- package/app/dist/assets/kol-button.entry-BNCpp21x.js +0 -2
- package/app/dist/assets/kol-button.entry-BNCpp21x.js.map +0 -1
- package/app/dist/assets/kol-card.entry-DyXDBPVn.js +0 -2
- package/app/dist/assets/kol-card.entry-DyXDBPVn.js.map +0 -1
- package/app/dist/assets/kol-combobox.entry-B_8JrTMe.js +0 -2
- package/app/dist/assets/kol-combobox.entry-B_8JrTMe.js.map +0 -1
- package/app/dist/assets/kol-details.entry-BHNaRvgb.js +0 -2
- package/app/dist/assets/kol-dialog.entry-CHIY1mG-.js +0 -2
- package/app/dist/assets/kol-dialog.entry-CHIY1mG-.js.map +0 -1
- package/app/dist/assets/kol-drawer.entry-UynoBUD1.js +0 -2
- package/app/dist/assets/kol-drawer.entry-UynoBUD1.js.map +0 -1
- package/app/dist/assets/kol-form.entry-CoHHjHRR.js +0 -2
- package/app/dist/assets/kol-form.entry-CoHHjHRR.js.map +0 -1
- package/app/dist/assets/kol-input-checkbox.entry-DdAd2A8H.js +0 -2
- package/app/dist/assets/kol-input-checkbox.entry-DdAd2A8H.js.map +0 -1
- package/app/dist/assets/kol-input-color.entry-T4CPujvd.js +0 -2
- package/app/dist/assets/kol-input-color.entry-T4CPujvd.js.map +0 -1
- package/app/dist/assets/kol-input-date.entry-F5kVGqNG.js +0 -2
- package/app/dist/assets/kol-input-date.entry-F5kVGqNG.js.map +0 -1
- package/app/dist/assets/kol-input-email.entry-VyO5w3Ik.js +0 -2
- package/app/dist/assets/kol-input-email.entry-VyO5w3Ik.js.map +0 -1
- package/app/dist/assets/kol-input-file.entry-D6r9U4mo.js +0 -2
- package/app/dist/assets/kol-input-file.entry-D6r9U4mo.js.map +0 -1
- package/app/dist/assets/kol-input-number.entry-SprdFhtZ.js +0 -2
- package/app/dist/assets/kol-input-number.entry-SprdFhtZ.js.map +0 -1
- package/app/dist/assets/kol-input-password.entry-Q3DFvY1B.js +0 -2
- package/app/dist/assets/kol-input-password.entry-Q3DFvY1B.js.map +0 -1
- package/app/dist/assets/kol-input-radio.entry-PB7apcu7.js +0 -2
- package/app/dist/assets/kol-input-radio.entry-PB7apcu7.js.map +0 -1
- package/app/dist/assets/kol-input-range.entry-CyKka3G-.js.map +0 -1
- package/app/dist/assets/kol-input-text.entry-Bx129Cyt.js +0 -2
- package/app/dist/assets/kol-input-text.entry-Bx129Cyt.js.map +0 -1
- package/app/dist/assets/kol-link-button.entry-ybA9OES5.js +0 -2
- package/app/dist/assets/kol-link-button.entry-ybA9OES5.js.map +0 -1
- package/app/dist/assets/kol-link.entry-D2HqSyLh.js +0 -2
- package/app/dist/assets/kol-link.entry-D2HqSyLh.js.map +0 -1
- package/app/dist/assets/kol-modal.entry-DJKlbWPS.js +0 -2
- package/app/dist/assets/kol-modal.entry-DJKlbWPS.js.map +0 -1
- package/app/dist/assets/kol-nav.entry-aYmDxrO8.js.map +0 -1
- package/app/dist/assets/kol-pagination.entry-D9ZfD4pH.js +0 -2
- package/app/dist/assets/kol-pagination.entry-D9ZfD4pH.js.map +0 -1
- package/app/dist/assets/kol-popover-button.entry-C1qu_P0B.js +0 -2
- package/app/dist/assets/kol-popover-button.entry-C1qu_P0B.js.map +0 -1
- package/app/dist/assets/kol-select.entry-Dug1NFkp.js.map +0 -1
- package/app/dist/assets/kol-single-select.entry-DR-3mad8.js +0 -2
- package/app/dist/assets/kol-single-select.entry-DR-3mad8.js.map +0 -1
- package/app/dist/assets/kol-skip-nav.entry-DSGgsXWj.js +0 -2
- package/app/dist/assets/kol-skip-nav.entry-DSGgsXWj.js.map +0 -1
- package/app/dist/assets/kol-split-button.entry-DS_6nLIV.js +0 -2
- package/app/dist/assets/kol-split-button.entry-DS_6nLIV.js.map +0 -1
- package/app/dist/assets/kol-table-stateful.entry-D6XsxAhD.js.map +0 -1
- package/app/dist/assets/kol-table-stateless.entry-ChRGFBnH.js +0 -2
- package/app/dist/assets/kol-table-stateless.entry-ChRGFBnH.js.map +0 -1
- package/app/dist/assets/kol-tabs.entry-DawsAyRu.js +0 -2
- package/app/dist/assets/kol-tabs.entry-DawsAyRu.js.map +0 -1
- package/app/dist/assets/kol-textarea.entry-BykEIl4B.js +0 -2
- package/app/dist/assets/kol-textarea.entry-BykEIl4B.js.map +0 -1
- package/app/dist/assets/kol-toast-container.entry-DCzWA0D-.js +0 -2
- package/app/dist/assets/kol-toast-container.entry-DCzWA0D-.js.map +0 -1
- package/app/dist/assets/kol-toolbar.entry-elfsK46F.js.map +0 -1
- package/app/dist/assets/kol-tooltip-wc.entry-DdYvX_82.js +0 -2
- package/app/dist/assets/kol-tooltip-wc.entry-DdYvX_82.js.map +0 -1
- package/app/dist/assets/kol-tree-item.entry-CJ4d-utU.js +0 -2
- package/app/dist/assets/kol-tree-item.entry-CJ4d-utU.js.map +0 -1
- package/app/dist/assets/kol-version.entry-DPVmZGH9.js +0 -2
- package/app/dist/assets/kol-version.entry-DPVmZGH9.js.map +0 -1
- package/app/dist/assets/label-BRosRgdX-DmiKY1-O.js +0 -2
- package/app/dist/assets/label-hints-Jn18RUT--C35IQKbt.js +0 -2
- package/app/dist/assets/label-lang-segment-2_GnxjFp-C1k2onhU.js +0 -2
- package/app/dist/assets/label-with-expert-slot-CicRes-W-DCE5zyFJ.js +0 -2
- package/app/dist/assets/level-CA1s1_Mf-DI_p8u_t.js +0 -2
- package/app/dist/assets/link-target-FX94oqMo-CVwu-iMb.js +0 -2
- package/app/dist/assets/links-DwucTqcR-gD1YLpcB.js +0 -2
- package/app/dist/assets/multiple-DqrZxybx-DPYNeDkZ.js +0 -2
- package/app/dist/assets/open-DRRv1KFK-DFtDLjUc.js +0 -2
- package/app/dist/assets/placeholder-BeLIzdJv-i2qDExwu.js +0 -2
- package/app/dist/assets/read-only-Bby9r6ZX-Bmq5X91z.js +0 -2
- package/app/dist/assets/required-hoaT7UmZ-0ApcSxkl.js +0 -2
- package/app/dist/assets/resolve-props-BkF1VBBB-DssaMOgv.js +0 -2
- package/app/dist/assets/resolve-props-CHPFh7Tn-DW1wvXf0.js +0 -2
- package/app/dist/assets/resolve-props-CHPFh7Tn-DW1wvXf0.js.map +0 -1
- package/app/dist/assets/rows-B0x8CR7K-B2zaXisM.js +0 -2
- package/app/dist/assets/smart-button-CS_ZriPt-CHOFrTdg.js +0 -2
- package/app/dist/assets/spell-check-DzgftyqL-gfJx2IZI.js +0 -2
- package/app/dist/assets/src-DaGhmCL1-CA_fKWnK.js +0 -2
- package/app/dist/assets/step-Bdj89bGO-CylbUg37.js +0 -2
- package/app/dist/assets/suggestions-GEr-cvbz-B7kwZtEq.js +0 -2
- package/app/dist/assets/test-component.entry-BewIicq8.js +0 -2
- package/app/dist/assets/unique-nav-labels-h2KOu5Qy-DgVyaWDd.js +0 -2
- package/app/dist/assets/unit-BUhhJbhT-CBx9iCjJ.js +0 -2
- package/app/dist/assets/value-string-e9pwLcS--BtTwM2Wn.js +0 -2
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./devtools-DrBkkLdP-BAmIGl-I.js","./index-BKEJuyFi-BIHNDvwu.js","./dev.utils-wYkYn08d-DgFCw372.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,C as t,Y as n,_ as r,d as i,f as a,g as o,i as s,k as c,m as l,p as u,rt as d,u as f,y as p}from"./index-BKEJuyFi-BIHNDvwu.js";import{s as m,u as h}from"./component-names-CrfBV37S-unMTSn8y.js";import{n as g}from"./i18n-Dl6Jjofb-CX4anLip.js";var _=Object.create,v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,x=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,C=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),w=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=b(t),a=0,o=i.length,s;a<o;a++)s=i[a],!S.call(e,s)&&s!==n&&v(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=y(t,s))||r.enumerable});return e},T=(e,t,n)=>(n=e==null?{}:_(x(e)),w(t||!e||!e.__esModule||!S.call(e,`default`)?v(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ee=C((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function D(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,D(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),D(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=D(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=D(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return D(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function O(e,t,n){if(e==null)return e;var r=[],i=0;return D(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function k(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},se={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ee(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:k}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),te=C(((e,t)=>{t.exports=ee()})),E=T(te(),1),ne=e=>e.toLowerCase().split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),re=e=>e.replace(/([A-Z])/g,e=>`-${e[0].toLowerCase()}`),ie=(e,t,n={})=>{if(e instanceof Element){let r=ae(e.classList,t,n);r!==``&&(e.className=r),Object.keys(t).forEach(n=>{if(n!==`children`&&n!==`style`&&n!==`ref`&&n!==`class`&&n!==`className`&&n!==`forwardedRef`){if(n.indexOf(`on`)===0&&n[2]===n[2].toUpperCase()){let r=n.substring(2),i=r[0].toLowerCase()+r.substring(1);O(i)||k(e,i,t[n])}else e[n]=t[n],typeof t[n]==`string`&&e.setAttribute(re(n),t[n])}})}},ae=(e,t,n)=>{let r=t.className||t.class,i=n.className||n.class,a=oe(e),o=oe(r?r.split(` `):[]),s=oe(i?i.split(` `):[]),c=[];return a.forEach(e=>{o.has(e)?(c.push(e),o.delete(e)):s.has(e)||c.push(e)}),o.forEach(e=>c.push(e)),c.join(` `)},D=e=>e===`doubleclick`?`dblclick`:e,O=e=>{if(typeof document>`u`)return!0;{let t=`on`+D(e),n=t in document;if(!n){let e=document.createElement(`div`);e.setAttribute(t,`return;`),n=typeof e[t]==`function`}return n}},k=(e,t,n)=>{let r=e.__events||={},i=r[t];i&&e.removeEventListener(t,i),e.addEventListener(t,r[t]=function(e){n&&n.call(this,e)})},oe=e=>{let t=new Map;return e.forEach(e=>t.set(e,e)),t},se,ce=e=>{se=e},le=(e,t)=>{typeof e==`function`?e(t):e!=null&&(e.current=t)},ue=(...e)=>t=>{e.forEach(e=>{le(e,t)})},de=(e,t)=>{let n=(t,n)=>E.createElement(e,{...t,forwardedRef:n});return n.displayName=t,E.forwardRef(n)},A=(e,t,n,r)=>{let i=ne(e);return de(class extends E.Component{componentEl;setComponentElRef=e=>{this.componentEl=e};constructor(e){super(e)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(e){ie(this.componentEl,this.props,e)}render(){let{children:t,forwardedRef:n,style:r,className:i,ref:a,...o}=this.props,s={...Object.keys(o).reduce((e,t)=>{let n=o[t];if(t.indexOf(`on`)===0&&t[2]===t[2].toUpperCase()){let r=t.substring(2).toLowerCase();typeof document<`u`&&O(r)&&(e[t]=n)}else{let r=typeof n;(r===`string`||r===`boolean`||r===`number`)&&(e[re(t)]=n)}return e},{}),ref:ue(n,this.setComponentElRef),style:r},c=typeof se==`function`?se(e):e;return(0,E.createElement)(c,s,t)}static get displayName(){return i}},i)},fe=A(`kol-abbr`),pe=A(`kol-accordion`),me=A(`kol-alert`),he=A(`kol-avatar`),ge=A(`kol-badge`),_e=A(`kol-breadcrumb`),j=A(`kol-button`),M=A(`kol-button-link`),N=A(`kol-card`),ve=A(`kol-combobox`),ye=A(`kol-details`),be=A(`kol-dialog`),xe=A(`kol-drawer`),Se=A(`kol-form`),P=A(`kol-heading`),Ce=A(`kol-icon`),we=A(`kol-image`),F=A(`kol-input-checkbox`),Te=A(`kol-input-color`),I=A(`kol-input-date`),Ee=A(`kol-input-email`),De=A(`kol-input-file`),Oe=A(`kol-input-number`),ke=A(`kol-input-password`),Ae=A(`kol-input-radio`),je=A(`kol-input-range`),L=A(`kol-input-text`),Me=A(`kol-kolibri`),R=A(`kol-link`),z=A(`kol-link-button`),Ne=A(`kol-meter`),Pe=A(`kol-nav`),Fe=A(`kol-pagination`),Ie=A(`kol-popover-button`),Le=A(`kol-progress`),Re=A(`kol-quote`),ze=A(`kol-select`),Be=A(`kol-single-select`),Ve=A(`kol-skeleton`),He=A(`kol-skip-nav`),Ue=A(`kol-spin`),We=A(`kol-split-button`),B=A(`kol-table-stateful`),Ge=A(`kol-table-stateless`),Ke=A(`kol-tabs`),V=A(`kol-textarea`),qe=A(`kol-toolbar`),Je=A(`kol-tree`),Ye=A(`kol-tree-item`),Xe=A(`kol-version`);function Ze(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`presentation`),e.innerHTML=``,e.appendChild(t),t}var Qe=C((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),$e=C(((e,t)=>{t.exports=Qe()})),et=C((e=>{var t=te();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` 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},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),tt=C(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=et()})),nt=C((e=>{var t=$e(),n=te(),r=tt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),E=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var D=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function de(e,t){ce++,se[ce]=e.current,e.current=t}var A=le(null),fe=le(null),pe=le(null),me=le(null);function he(e,t){switch(de(pe,t),de(fe,e),de(A,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(A),de(A,e)}function ge(){ue(A),ue(fe),ue(pe)}function _e(e){e.memoizedState!==null&&de(me,e);var t=A.current,n=Hd(t,e.type);t!==n&&(de(fe,e),de(A,n))}function j(e){fe.current===e&&(ue(A),ue(fe)),me.current===e&&(ue(me),Qf._currentValue=oe)}var M,N;function ve(e){if(M===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||``,N=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+M+e+N}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function xe(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function Se(e){try{var t=``,n=null;do t+=xe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var P=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,F=t.unstable_shouldYield,Te=t.unstable_requestPaint,I=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,L=t.log,Me=t.unstable_setDisableYieldValue,R=null,z=null;function Ne(e){if(typeof L==`function`&&Me(e),z&&typeof z.setStrictMode==`function`)try{z.setStrictMode(R,e)}catch{}}var Pe=Math.clz32?Math.clz32:Le,Fe=Math.log,Ie=Math.LN2;function Le(e){return e>>>=0,e===0?32:31-(Fe(e)/Ie|0)|0}var Re=256,ze=262144,Be=4194304;function Ve(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function He(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ve(n))):i=Ve(o):i=Ve(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ve(n))):i=Ve(o)):i=Ve(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(e,t){switch(e){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 B(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function Ge(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function V(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Pe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ye(e,t){var n=t&-t;return n=n&42?1:Xe(n),(n&(e.suspendedLanes|t))===0?n:0}function Xe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ze(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Qe(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function et(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var nt=Math.random().toString(36).slice(2),rt=`__reactFiber$`+nt,it=`__reactProps$`+nt,at=`__reactContainer$`+nt,ot=`__reactEvents$`+nt,st=`__reactListeners$`+nt,ct=`__reactHandles$`+nt,lt=`__reactResources$`+nt,ut=`__reactMarker$`+nt;function dt(e){delete e[rt],delete e[it],delete e[ot],delete e[st],delete e[ct]}function ft(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[rt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function pt(e){if(e=e[rt]||e[at]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ht(e){var t=e[lt];return t||=e[lt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function gt(e){e[ut]=!0}var _t=new Set,vt={};function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){for(vt[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var xt=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]*$`),St={},Ct={};function wt(e){return P.call(Ct,e)?!0:P.call(St,e)?!1:xt.test(e)?Ct[e]=!0:(St[e]=!0,!1)}function Tt(e,t,n){if(wt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Et(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Dt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ot(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function At(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jt(e){if(!e._valueTracker){var t=kt(e)?`checked`:`value`;e._valueTracker=At(e,t,``+e[t])}}function Mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Nt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Pt=/[\n"\\]/g;function Ft(e){return e.replace(Pt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function It(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ot(t)):e.value!==``+Ot(t)&&(e.value=``+Ot(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Rt(e,o,Ot(n)):Rt(e,o,Ot(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ot(s):e.removeAttribute(`name`)}function Lt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){jt(e);return}n=n==null?``:``+Ot(n),t=t==null?n:``+Ot(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),jt(e)}function Rt(e,t,n){t===`number`&&Nt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ot(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Bt(e,t,n){t!=null&&(t=``+Ot(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Ot(n)}function Vt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(D(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ot(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),jt(e)}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut=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 Wt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ut.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 qt=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`]]),Jt=/^[\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 Yt(e){return Jt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=pt(e);if(t&&(e=t.stateNode)){var n=e[it]||null;a:switch(e=t.stateNode,t.type){case`input`:if(It(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ft(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[it]||null;if(!a)throw Error(i(90));It(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Mt(r)}break a;case`textarea`:Bt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(vu(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[it]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var on=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return dn=i.slice(e,1<r?1-r:void 0)}function pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mn(){return!0}function hn(){return!1}function gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?mn:hn,this.isPropagationStopped=hn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=f({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=f({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(f({},wn,{dataTransfer:0})),Dn=gn(f({},yn,{relatedTarget:0})),On=gn(f({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(f({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(f({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(f({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(f({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(f({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(f({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(f({},wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Vn=gn(f({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!1,e):null;switch(e){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 Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=Td(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){vd(e,0)}function or(e){if(Mt(mt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!P.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nt(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Nt(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=Td(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`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(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),yt(t,[e])}var qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Pe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ci(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,A.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=ai(31,n,t,a),e.elementType=ee,e.lanes=o,e;case g:return ui(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=ai(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=ai(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=ai(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:Se(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:Se(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Pe(r)-1;r&=~(1<<i),n+=1;var a=32-Pe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Pe(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var H=null,Ai=null,U=!1,ji=null,Mi=!1,Ni=Error(i(519));function Pi(e){throw zi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ni}function W(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rt]=e,t[it]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Lt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Vt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Pi(e,!0)}function Fi(e){for(H=e.return;H;)switch(H.tag){case 5:case 31:case 13:Mi=!1;return;case 27:case 3:Mi=!0;return;default:H=H.return}}function Ii(e){if(e!==H)return!1;if(!U)return Fi(e),U=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ud(e.type,e.memoizedProps)),n=!n),n&&Ai&&Pi(e),Fi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ai=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ai=uf(e)}else t===27?(t=Ai,Zd(e.type)?(e=lf,lf=null,Ai=e):Ai=t):Ai=H?cf(e.stateNode.nextSibling):null;return!0}function Li(){Ai=H=null,U=!1}function Ri(){var e=ji;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),ji=null),e}function zi(e){ji===null?ji=[e]:ji.push(e)}var Bi=le(null),Vi=null,Hi=null;function Ui(e,t,n){de(Bi,t._currentValue),t._currentValue=n}function Wi(e){e._currentValue=Bi.current,ue(Bi)}function Gi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ki(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Gi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Gi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===me.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Ki(t,e,n,r),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yi(e){Vi=e,Hi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xi(e){return Qi(Vi,e)}function Zi(e,t){return Vi===null&&Yi(e),Qi(e,t)}function Qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Hi===null){if(e===null)throw Error(i(308));Hi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Hi=Hi.next=t;return n}var $i=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ea=t.unstable_scheduleCallback,ta=t.unstable_NormalPriority,na={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ra(){return{controller:new $i,data:new Map,refCount:0}}function ia(e){e.refCount--,e.refCount===0&&ea(ta,function(){e.controller.abort()})}var aa=null,oa=0,sa=0,ca=null;function la(e,t){if(aa===null){var n=aa=[];oa=0,sa=ud(),ca={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return oa++,t.then(ua,ua),t}function ua(){if(--oa===0&&aa!==null){ca!==null&&(ca.status=`fulfilled`);var e=aa;aa=null,sa=0,ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var fa=O.S;O.S=function(e,t){Ql=I(),typeof t==`object`&&t&&typeof t.then==`function`&&la(e,t),fa!==null&&fa(e,t)};var pa=le(null);function ma(){var e=pa.current;return e===null?Fl.pooledCache:e}function ha(e,t){t===null?de(pa,pa.current):de(pa,t.pool)}function ga(){var e=ma();return e===null?null:{parent:na._currentValue,pool:e}}var _a=Error(i(460)),va=Error(i(474)),ya=Error(i(542)),ba={then:function(){}};function xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function G(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);else{if(e=Fl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e}throw Ca=t,_a}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,_a):e}}var Ca=null;function K(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function wa(e){if(e===_a||e===ya)throw Error(i(483))}var q=null,Ta=0;function Ea(e){var t=Ta;return Ta+=1,q===null&&(q=[]),G(q,e,t)}function Da(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Oa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ka(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=si(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=di(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Sa(i)===t.type)?(t=a(t,n.props),Da(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),Da(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ui(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=li(t.type,t.key,t.props,null,e.mode,n),Da(n,t),n.return=e,n;case h:return t=pi(t,e.mode,n),t.return=e,t;case T:return t=Sa(t),f(e,t,n)}if(D(t)||re(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ea(t),n);if(t.$$typeof===b)return f(e,Zi(e,t),n);Oa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Sa(n),p(e,t,n,r)}if(D(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ea(n),r);if(n.$$typeof===b)return p(e,t,Zi(e,n),r);Oa(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Sa(r),_(e,t,n,r,i)}if(D(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Ea(r),i);if(r.$$typeof===b)return _(e,t,n,Zi(t,r),i);Oa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),U&&Ti(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return U&&Ti(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),U&&Ti(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),U&&Ti(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return U&&Ti(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),U&&Ti(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Da(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),Da(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=pi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Sa(o),x(e,r,o,c)}if(D(o))return v(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ea(o),c);if(o.$$typeof===b)return x(e,r,Zi(e,o),c);Oa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=x(e,t,n,r);return q=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function La(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}function Ra(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var za=!1;function Ba(){if(za){var e=ca;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Q&p)===p:(r&p)===p){p!==0&&p===sa&&(za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ma=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ha(n[e],t)}var Wa=le(null),Ga=le(0);function Ka(e,t){e=Vl,de(Ga,e),de(Wa,t),Vl=e|t.baseLanes}function qa(){de(Ga,Vl),de(Wa,Wa.current)}function Ja(){Vl=Ga.current,ue(Wa),ue(Ga)}var Ya=le(null),Xa=null;function Za(e){var t=e.alternate;de(no,no.current&1),de(Ya,e),Xa===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Xa=e)}function Qa(e){de(no,no.current),de(Ya,e),Xa===null&&(Xa=e)}function $a(e){e.tag===22?(de(no,no.current),de(Ya,e),Xa===null&&(Xa=e)):eo(e)}function eo(){de(no,no.current),de(Ya,Ya.current)}function to(e){ue(Ya),Xa===e&&(Xa=null),ue(no)}var no=le(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))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)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=0,J=null,ao=null,oo=null,so=!1,co=!1,lo=!1,uo=0,fo=0,po=null,mo=0;function ho(){throw Error(i(321))}function go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function _o(e,t,n,r,i,a){return io=a,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Ps:Fs,lo=!1,a=n(r,i),lo=!1,co&&(a=yo(t,n,r,i)),vo(e),a}function vo(e){O.H=Ns;var t=ao!==null&&ao.next!==null;if(io=0,oo=ao=J=null,so=!1,fo=0,po=null,t)throw Error(i(300));e===null||Qs||(e=e.dependencies,e!==null&&Ji(e)&&(Qs=!0))}function yo(e,t,n,r){J=e;var a=0;do{if(co&&(po=null),fo=0,co=!1,25<=a)throw Error(i(301));if(a+=1,oo=ao=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Is,o=t(n,r)}while(co);return o}function bo(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?Do(t):t,e=e.useState()[0],(ao===null?null:ao.memoizedState)!==e&&(J.flags|=1024),t}function xo(){var e=uo!==0;return uo=0,e}function So(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Co(e){if(so){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}so=!1}io=0,oo=ao=J=null,co=!1,fo=uo=0,po=null}function wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?J.memoizedState=oo=e:oo=oo.next=e,oo}function To(){if(ao===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=ao.next;var t=oo===null?J.memoizedState:oo.next;if(t!==null)oo=t,ao=e;else{if(e===null)throw J.alternate===null?Error(i(467)):Error(i(310));ao=e,e={memoizedState:ao.memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},oo===null?J.memoizedState=oo=e:oo=oo.next=e}return oo}function Eo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Do(e){var t=fo;return fo+=1,po===null&&(po=[]),e=G(po,e,t),t=J,(oo===null?t.memoizedState:oo.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Ps:Fs),e}function Oo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Do(e);if(e.$$typeof===b)return Xi(e)}throw Error(i(438,String(e)))}function ko(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Eo(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E;return t.index++,n}function Ao(e,t){return typeof t==`function`?t(e):t}function jo(e){return Mo(To(),ao,e)}function Mo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(io&f)===f:(Q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===sa&&(d=!0);else if((io&p)===p){u=u.next,p===sa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,J.lanes|=p,Ul|=p;f=u.action,lo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,J.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&(Qs=!0,d&&(n=ca,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function No(e){var t=To(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);yr(o,t.memoizedState)||(Qs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Po(e,t,n){var r=J,a=To(),o=U;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((ao||a).memoizedState,n);if(s&&(a.memoizedState=n,Qs=!0),a=a.queue,as(Lo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,a,n,t),null),Fl===null)throw Error(i(349));o||io&127||Fo(r,t,n)}return n}function Fo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=Eo(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Io(e,t,n,r){t.value=n,t.getSnapshot=r,Ro(t)&&zo(e)}function Lo(e,t,n){return n(function(){Ro(t)&&zo(e)})}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function zo(e){var t=ei(e,2);t!==null&&pu(t,e,2)}function Bo(e){var t=wo();if(typeof e==`function`){var n=e;if(e=n(),lo){Ne(!0);try{n()}finally{Ne(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},t}function Vo(e,t,n,r){return e.baseState=n,Mo(e,ao,typeof r==`function`?r:Ao)}function Ho(e,t,n,r,a){if(As(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Uo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Uo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Wo(e,t,s)}catch(n){Ko(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Wo(e,t,a)}catch(n){Ko(e,t,n)}}function Wo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Go(e,t,n)},function(n){return Ko(e,t,n)}):Go(e,t,n)}function Go(e,t,n){t.status=`fulfilled`,t.value=n,qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Uo(e,n)))}function Ko(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,qo(t),t=t.next;while(t!==r)}e.action=null}function qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jo(e,t){return t}function Yo(e,t){if(U){var n=Fl.formState;if(n!==null){a:{var r=J;if(U){if(Ai){b:{for(var i=Ai,a=Mi;i.nodeType!==8;)if(!a||(i=cf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ai=cf(i.nextSibling),r=i.data===`F!`;break a}}Pi(r)}r=!1}r&&(t=n[0])}}return n=wo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t},n.queue=r,n=Ds.bind(null,J,r),r.dispatch=n,r=Bo(!1),a=ks.bind(null,J,!1,r.queue),r=wo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ho.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Xo(e){return Zo(To(),ao,e)}function Zo(e,t,n){if(t=Mo(e,t,Jo)[0],e=jo(Ao)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Do(t)}catch(e){throw e===_a?ya:e}else r=t;t=To();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,es(9,{destroy:void 0},Qo.bind(null,i,n),null)),[r,a,e]}function Qo(e,t){e.action=t}function $o(e){var t=To(),n=ao;if(n!==null)return Zo(t,n,e);To(),t=t.memoizedState,n=To();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function es(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=Eo(),J.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return To().memoizedState}function ns(e,t,n,r){var i=wo();J.flags|=e,i.memoizedState=es(1|t,{destroy:void 0},n,r===void 0?null:r)}function rs(e,t,n,r){var i=To();r=r===void 0?null:r;var a=i.memoizedState.inst;ao!==null&&r!==null&&go(r,ao.memoizedState.deps)?i.memoizedState=es(t,a,n,r):(J.flags|=e,i.memoizedState=es(1|t,a,n,r))}function is(e,t){ns(8390656,8,e,t)}function as(e,t){rs(2048,8,e,t)}function os(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Eo(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ss(e){var t=To().memoizedState;return os({ref:t,nextImpl:e}),function(){if(Pl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function cs(e,t){return rs(4,2,e,t)}function ls(e,t){return rs(4,4,e,t)}function us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ds(e,t,n){n=n==null?null:n.concat([e]),rs(4,4,us.bind(null,t,e),n)}function fs(){}function ps(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ms(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&go(t,r[1]))return r[0];if(r=e(),lo){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r}function hs(e,t,n){return n===void 0||io&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),J.lanes|=e,Ul|=e,n)}function gs(e,t,n,r){return yr(n,t)?n:Wa.current===null?!(io&42)||io&1073741824&&!(Q&261930)?(Qs=!0,e.memoizedState=n):(e=fu(),J.lanes|=e,Ul|=e,t):(e=hs(e,n,r),yr(e,t)||(Qs=!0),e)}function _s(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,ks(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Os(e,t,da(c,r),du(e)):Os(e,t,r,du(e))}catch(n){Os(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function vs(){}function ys(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=bs(e).queue;_s(e,a,t,oe,n===null?vs:function(){return xs(e),n(r)})}function bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xs(e){var t=bs(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},du())}function Ss(){return Xi(Qf)}function Cs(){return To().memoizedState}function ws(){return To().memoizedState}function Ts(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Fa(n);var r=Ia(t,e,n);r!==null&&(pu(r,t,n),La(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function Es(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?js(t,n):(n=$r(e,t,n,r),n!==null&&(pu(n,e,r),Ms(n,t,r)))}function Ds(e,t,n){Os(e,t,n,du())}function Os(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))js(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Qr(e,t,i,0),Fl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return pu(n,e,r),Ms(n,t,r),!0}return!1}function ks(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(i(479))}else t=$r(e,n,r,2),t!==null&&pu(t,e,2)}function As(e){var t=e.alternate;return e===J||t!==null&&t===J}function js(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ms(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}var Ns={readContext:Xi,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};Ns.useEffectEvent=ho;var Ps={readContext:Xi,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){Ne(!0);try{n(t)}finally{Ne(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Es.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ds.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=_s.bind(null,J,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=J,a=wo();if(U){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Q&127||Fo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,is(Lo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Fl.identifierPrefix;if(U){var n=wi,r=Ci;n=(r&~(1<<32-Pe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=mo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ss,useFormState:Yo,useActionState:Yo,useOptimistic:function(e){var t=wo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ks.bind(null,J,!0,n),n.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return wo().memoizedState=Ts.bind(null,J)},useEffectEvent:function(e){var t=wo(),n={impl:e};return t.memoizedState=n,function(){if(Pl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Fs={readContext:Xi,use:Oo,useCallback:ps,useContext:Xi,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:jo,useRef:ts,useState:function(){return jo(Ao)},useDebugValue:fs,useDeferredValue:function(e,t){return gs(To(),ao.memoizedState,e,t)},useTransition:function(){var e=jo(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Cs,useHostTransitionStatus:Ss,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){return Vo(To(),ao,e,t)},useMemoCache:ko,useCacheRefresh:ws};Fs.useEffectEvent=ss;var Is={readContext:Xi,use:Oo,useCallback:ps,useContext:Xi,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:No,useRef:ts,useState:function(){return No(Ao)},useDebugValue:fs,useDeferredValue:function(e,t){var n=To();return ao===null?hs(n,e,t):gs(n,ao.memoizedState,e,t)},useTransition:function(){var e=No(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Cs,useHostTransitionStatus:Ss,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){var n=To();return ao===null?(n.baseState=e,[e,n.queue.dispatch]):Vo(n,ao,e,t)},useMemoCache:ko,useCacheRefresh:ws};Is.useEffectEvent=ss;function Ls(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Rs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=Fa(r);i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(pu(t,e,r),La(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=Fa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(pu(t,e,r),La(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=Fa(n);r.tag=2,t!=null&&(r.callback=t),t=Ia(e,r,n),t!==null&&(pu(t,e,n),La(t,e,n))}};function zs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Bs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Rs.enqueueReplaceState(t,t.state,null)}function Vs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Hs(e){qr(e)}function Us(e){console.error(e)}function Ws(e){qr(e)}function Gs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function qs(e,t,n){return n=Fa(n),n.tag=3,n.payload={element:null},n.callback=function(){Gs(e,t)},n}function Js(e){return e=Fa(e),e.tag=3,e}function Ys(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ks(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ks(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Xs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&qi(t,n,a,!0),n=Ya.current,n!==null){switch(n.tag){case 31:case 13:return Xa===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(U)return t=Ya.current,t===null?(r!==Ni&&(t=Error(i(423),{cause:r}),zi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=qs(e.stateNode,r,a),Ra(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ni&&(e=Error(i(422),{cause:r}),zi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=qs(n.stateNode,r,e),Ra(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Js(a),Ys(a,e,n,r),Ra(n,a),!1}n=n.return}while(n!==null);return!1}var Zs=Error(i(461)),Qs=!1;function $s(e,t,n,r){t.child=e===null?ja(t,null,n,r):Aa(t,e.child,n,r)}function ec(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Yi(t),r=_o(e,t,n,o,a,i),s=xo(),e!==null&&!Qs?(So(e,t,i),Cc(e,t,i)):(U&&s&&Di(t),t.flags|=1,$s(e,t,r,i),t.child)}function tc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,nc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function nc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref){if(Qs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Qs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}}return uc(e,t,n,r,i)}function rc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ac(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ha(t,a===null?null:a.cachePool),a===null?qa():Ka(t,a),$a(t);else return r=t.lanes=536870912,ac(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ha(t,null),qa(),eo(t)):(ha(t,a.cachePool),Ka(t,a),eo(t),t.memoizedState=null);return $s(e,t,i,n),t.child}function ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ac(e,t,n,r,i){var a=ma();return a=a===null?null:{parent:na._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ha(t,null),qa(),$a(t),e!==null&&qi(e,t,r,!0),t.childLanes=i,null}function oc(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sc(e,t,n){return Aa(t,e.child,null,n),e=oc(t,t.pendingProps),e.flags|=2,to(t),t.memoizedState=null,e}function cc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(U){if(r.mode===`hidden`)return e=oc(t,r),t.lanes=536870912,ic(null,e);if(Qa(t),(e=Ai)?(e=rf(e,Mi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,H=t,Ai=null)):e=null,e===null)throw Pi(t);return t.lanes=536870912,null}return oc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Qa(t),a){if(t.flags&256)t.flags&=-257,t=sc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Qs||qi(e,t,n,!1),a=(n&e.childLanes)!==0,Qs||a){if(r=Fl,r!==null&&(s=Ye(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ei(e,s),pu(r,e,s),Zs;Tu(),t=sc(e,t,n)}else e=o.treeContext,Ai=cf(s.nextSibling),H=t,U=!0,ji=null,Mi=!1,e!==null&&ki(t,e),t=oc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uc(e,t,n,r,i){return Yi(t),n=_o(e,t,n,r,void 0,i),r=xo(),e!==null&&!Qs?(So(e,t,i),Cc(e,t,i)):(U&&r&&Di(t),t.flags|=1,$s(e,t,n,i),t.child)}function dc(e,t,n,r,i,a){return Yi(t),t.updateQueue=null,n=yo(t,r,n,i),vo(e),r=xo(),e!==null&&!Qs?(So(e,t,a),Cc(e,t,a)):(U&&r&&Di(t),t.flags|=1,$s(e,t,n,a),t.child)}function fc(e,t,n,r,i){if(Yi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=Xi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Rs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Na(t),o=n.contextType,a.context=typeof o==`object`&&o?Xi(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ls(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Rs.enqueueReplaceState(a,a.state,null),Va(t,r,a,i),Ba(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Vs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=Xi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Bs(t,a,r,o),Ma=!1;var f=t.memoizedState;a.state=f,Va(t,r,a,i),Ba(),l=t.memoizedState,s||f!==l||Ma?(typeof d==`function`&&(Ls(t,n,d,r),l=t.memoizedState),(c=Ma||zs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pa(e,t),o=t.memoizedProps,u=Vs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=Xi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Bs(t,a,r,c),Ma=!1,f=t.memoizedState,a.state=f,Va(t,r,a,i),Ba();var p=t.memoizedState;o!==d||f!==p||Ma||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof s==`function`&&(Ls(t,n,s,r),p=t.memoizedState),(u=Ma||zs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,lc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Aa(t,e.child,null,i),t.child=Aa(t,null,n,i)):$s(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function pc(e,t,n,r){return Li(),t.flags|=256,$s(e,t,n,r),t.child}var Y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:ga()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(no.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(U){if(a?Za(t):eo(t),(e=Ai)?(e=rf(e,Mi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,H=t,Ai=null)):e=null,e===null)throw Pi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(eo(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=ui(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=Y,ic(null,r)):(Za(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Za(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(eo(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=ui(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Aa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=Y,t=ic(null,r)):(eo(t),t.child=e.child,t.flags|=128,t=null);else if(Za(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,zi({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Qs||qi(e,t,n,!1),s=(n&e.childLanes)!==0,Qs||s){if(s=Fl,s!==null&&(r=Ye(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),pu(s,e,r),Zs;af(c)||Tu(),t=yc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ai=cf(c.nextSibling),H=t,U=!0,ji=null,Mi=!1,e!==null&&ki(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(eo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,a,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ic(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=ga():(l=na._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=Y,ic(e.child,r)):(Za(t),n=e.child,e=n.sibling,n=si(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Aa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=no.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,de(no,o),$s(e,t,r,n),r=U?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ji(e)))}function Tc(e,t,n){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),Ui(t,na,e.memoizedState.cache),Li();break;case 27:case 5:_e(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Za(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Za(t),t.flags|=128,null);Za(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(no,no.current),r)break;return null;case 22:return t.lanes=0,rc(e,t,n,t.pendingProps);case 24:Ui(t,na,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Qs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Qs=!1,Tc(e,t,n);Qs=!!(e.flags&131072)}}else Qs=!1,U&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=Vs(e,r),t.tag=1,t=fc(null,t,e,r,n)):(t.tag=0,t=uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=ec(null,t,e,r,n);break a}if(a===w){t.tag=14,t=tc(null,t,e,r,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Vs(r,t.pendingProps),fc(e,t,r,a,n);case 3:a:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Pa(e,t),Va(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ui(t,na,r),r!==o.cache&&Ki(t,[na],n,!0),Ba(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=pc(e,t,r,n);break a}if(r!==a){a=hi(Error(i(424)),t),zi(a),t=pc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ai=cf(e.firstChild),H=t,U=!0,ji=null,Mi=!0,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Li(),r===a){t=Cc(e,t,n);break a}$s(e,t,r,n)}t=t.child}return t;case 26:return lc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:U||(n=t.type,e=t.pendingProps,r=Bd(pe.current).createElement(n),r[rt]=t,r[it]=e,Pd(r,n,e),gt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&U&&(r=t.stateNode=ff(t.type,t.pendingProps,pe.current),H=t,Mi=!0,a=Ai,Zd(t.type)?(lf=a,Ai=cf(r.firstChild)):Ai=a),$s(e,t,t.pendingProps.children,n),lc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&U&&((a=r=Ai)&&(r=tf(r,t.type,t.pendingProps,Mi),r===null?a=!1:(t.stateNode=r,H=t,Ai=cf(r.firstChild),Mi=!1,a=!0)),a||Pi(t)),_e(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=_o(e,t,bo,null,null,n),Qf._currentValue=a),lc(e,t),$s(e,t,r,n),t.child;case 6:return e===null&&U&&((e=n=Ai)&&(n=nf(n,t.pendingProps,Mi),n===null?e=!1:(t.stateNode=n,H=t,Ai=null,e=!0)),e||Pi(t)),null;case 13:return gc(e,t,n);case 4:return he(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,n):$s(e,t,r,n),t.child;case 11:return ec(e,t,t.type,t.pendingProps,n);case 7:return $s(e,t,t.pendingProps,n),t.child;case 8:return $s(e,t,t.pendingProps.children,n),t.child;case 12:return $s(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ui(t,t.type,r.value),$s(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Yi(t),a=Xi(a),r=r(a),t.flags|=1,$s(e,t,r,n),t.child;case 14:return tc(e,t,t.type,t.pendingProps,n);case 15:return nc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return cc(e,t,n);case 22:return rc(e,t,n,t.pendingProps);case 24:return Yi(t),r=Xi(na),e===null?(a=ma(),a===null&&(a=Fl,o=ra(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Na(t),Ui(t,na,a)):((e.lanes&n)!==0&&(Pa(e,t),Va(t,null,null,n),Ba()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ui(t,na,r),r!==a.cache&&Ki(t,[na],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ui(t,na,r))),$s(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw Ca=ba,va}}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t)){if(Su())e.flags|=8192;else throw Ca=ba,va}}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:B(),e.lanes|=t,ql|=t)}function jc(e,t){if(!U)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Wi(na),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ri())),Mc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(Mc(t),Oc(t,a,null,r,n)):(Mc(t),kc(t,o))):o?o===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,a,e,r,n)),null;case 27:if(j(t),n=pe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}e=A.current,Ii(t)?W(t,e):(e=ff(a,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(j(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}if(o=A.current,Ii(t))W(t,o);else{var s=Bd(pe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[rt]=t,o[it]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=pe.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=H,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Pi(t,!0)}else e=Bd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[rt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(i(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[rt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),a=!1}else a=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(to(t),t):(to(t),null)}return to(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),Mc(t),null);case 4:return ge(),e===null&&xd(t.stateNode.containerInfo),Mc(t),null;case 10:return Wi(t.type),Mc(t),null;case 19:if(ue(no),r=t.memoizedState,r===null)return Mc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)jc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ro(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return de(no,no.current&1|2),U&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&I()>$l&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!U)return Mc(t),null}else 2*I()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=I(),e.sibling=null,n=no.current,de(no,a?n&1|2:n&1),U&&Ti(t,r.treeForkCount),e);case 22:case 23:return to(t),Ja(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ue(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Mc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Pc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return j(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(no),null;case 4:return ge(),null;case 10:return Wi(t.type),null;case 22:case 23:return to(t),Ja(),e!==null&&ue(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function Fc(e,t){switch(Oi(t),t.tag){case 3:Wi(na),ge();break;case 26:case 27:case 5:j(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:ue(no);break;case 10:Wi(t.type);break;case 22:case 23:to(t),Ja(),e!==null&&ue(pa);break;case 24:Wi(na)}}function Ic(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Lc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){Uu(e,e.return,t)}}}function zc(e,t,n){n.props=Vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[it]=t}catch(t){Uu(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[rt]=e,t[it]=n}catch(t){Uu(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,X=null;function $c(e,t){if(e=e.containerInfo,Rd=sp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,X=t;X!==null;)if(t=X,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,X=e;else for(;X!==null;){switch(t=X,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Vs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:hl(e,n),r&4&&Ic(5,n);break;case 1:if(hl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(hl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ua(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:hl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:hl(e,n);break;case 31:hl(e,n),r&4&&ol(e,n);break;case 13:hl(e,n),r&4&&sl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?_l(e,n,!!(n.subtreeFlags&8772)):hl(e,n),Yc=i,Xc=a}break;case 30:break;default:hl(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nl=null,rl=!1;function il(e,t,n){for(n=n.child;n!==null;)al(e,t,n),n=n.sibling}function al(e,t,n){if(z&&typeof z.onCommitFiberUnmount==`function`)try{z.onCommitFiberUnmount(R,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=nl,i=rl;Zd(n.type)&&(nl=n.stateNode,rl=!1),il(e,t,n),pf(n.stateNode),nl=r,rl=i;break;case 5:Xc||Vc(n,t);case 6:if(r=nl,i=rl,nl=null,il(e,t,n),nl=r,rl=i,nl!==null){if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}}break;case 18:nl!==null&&(rl?(e=nl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,il(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),il(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),il(e,t,n);break;case 21:il(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,il(e,t,n),Xc=r;break;default:il(e,t,n)}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function cl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(i(435,e.tag))}}function ll(e,t){var n=cl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ul(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(i(160));al(o,s,a),nl=null,rl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fl(t,e),t=t.sibling}var dl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ul(t,e),pl(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:ul(t,e),pl(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=dl;if(ul(t,e),pl(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ut]||o[rt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[rt]=e,gt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[rt]=e,gt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode)}else e.stateNode=If(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ul(t,e),pl(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ul(t,e),pl(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){a=e.stateNode;try{Ht(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Uc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(ul(t,e),pl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,a=dl,dl=gf(t.containerInfo),ul(t,e),dl=a,pl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Zc&&(Zc=!1,ml(e));break;case 4:r=dl,dl=gf(e.stateNode.containerInfo),ul(t,e),pl(e),dl=r;break;case 12:ul(t,e),pl(e);break;case 31:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 13:ul(t,e),pl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=I()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||a,Xc=d||l,ul(t,e),Xc=d,Yc=u,pl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Yc||Xc||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ll(e,n))));break;case 19:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 30:break;case 21:break;default:ul(t,e),pl(e)}}function pl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;qc(e,Gc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ht(o,``),n.flags&=-33),qc(e,Gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ml(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ml(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),gl(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),gl(t);break;case 27:pf(t.stateNode);case 26:case 5:Vc(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function _l(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:_l(i,a,n),Ic(4,a);break;case 1:if(_l(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ha(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:_l(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:_l(i,a,n);break;case 31:_l(i,a,n),n&&o&4&&ol(i,a);break;case 13:_l(i,a,n),n&&o&4&&sl(i,a);break;case 22:a.memoizedState===null&&_l(i,a,n),Bc(a,a.return);break;case 30:break;default:_l(i,a,n)}t=t.sibling}}function vl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ia(n))}function yl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e))}function bl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:bl(e,t,n,r);break;case 3:bl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e)));break;case 12:if(i&2048){bl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else bl(e,t,n,r);break;case 31:bl(e,t,n,r);break;case 13:bl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?bl(e,t,n,r):(a._visibility|=2,Sl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?bl(e,t,n,r):Cl(e,t),i&2048&&vl(o,t);break;case 24:bl(e,t,n,r),i&2048&&yl(t.alternate,t);break;default:bl(e,t,n,r)}}function Sl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Sl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Sl(a,o,s,c,i)):u._visibility&2?Sl(a,o,s,c,i):Cl(a,o),i&&l&2048&&vl(o.alternate,o);break;case 24:Sl(a,o,s,c,i),i&&l&2048&&yl(o.alternate,o);break;default:Sl(a,o,s,c,i)}t=t.sibling}}function Cl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Cl(n,r),i&2048&&vl(r.alternate,r);break;case 24:Cl(n,r),i&2048&&yl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var wl=8192;function Tl(e,t,n){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)El(e,t,n),e=e.sibling}function El(e,t,n){switch(e.tag){case 26:Tl(e,t,n),e.flags&wl&&e.memoizedState!==null&&Gf(n,dl,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,n);break;case 3:case 4:var r=dl;dl=gf(e.stateNode.containerInfo),Tl(e,t,n),dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=wl,wl=16777216,Tl(e,t,n),wl=r):Tl(e,t,n));break;default:Tl(e,t,n)}}function Dl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];X=r,jl(r,e)}Dl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kl(e),e=e.sibling}function kl(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Al(e)):Ol(e);break;default:Ol(e)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];X=r,jl(r,e)}Dl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),Al(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Al(t));break;default:Al(t)}e=e.sibling}}function jl(e,t){for(;X!==null;){var n=X;switch(n.tag){case 0:case 11:case 15:Lc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ia(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,X=r;else a:for(n=e;X!==null;){r=X;var i=r.sibling,a=r.return;if(tl(r),r===n){X=null;break a}if(i!==null){i.return=a,X=i;break a}X=a}}}var Ml={getCacheForType:function(e){var t=Xi(na),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Xi(na).controller.signal}},Nl=typeof WeakMap==`function`?WeakMap:Map,Pl=0,Fl=null,Z=null,Q=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Pl&2&&Q!==0?Q&-Q:O.T===null?Qe():ud()}function fu(){if(Kl===0){if(!(Q&536870912)||U){var e=ze;ze<<=1,!(ze&3932160)&&(ze=262144),Kl=e}else Kl=536870912}return e=Ya.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Fl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Q,Kl,!1)),Ke(e,n),Pl&2&&e===Fl||(e===Fl&&(!(Pl&2)&&(Wl|=n),Hl===4&&_u(e,Q,Kl,!1)),nd(e))}function mu(e,t,n){if(Pl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ue(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}if(n=e.current.alternate,o&&!gu(n))a=Eu(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-I(),10<a)){if(_u(r,t,Kl,!Rl),He(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}break}}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},El(t,a,d);var m=(a&62914560)===a?Zl-I():(a&4194048)===a?Ql-I():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Pe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&qe(e,n,t)}function vu(){return Pl&6?!0:(rd(0,!1),!1)}function yu(){if(Z!==null){if(Il===0)var e=Z.return;else e=Z,Hi=Vi=null,Co(e),q=null,Ta=0,e=Z;for(;e!==null;)Fc(e.alternate,e),e=e.return;Z=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Fl=e,Z=n=si(e.current,null),Q=t,Il=0,Ll=null,Rl=!1,zl=Ue(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Pe(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,Zr(),n}function xu(e,t){J=null,O.H=Ns,t===_a||t===ya?(t=K(),Il=3):t===va?(t=K(),Il=4):Il=t===Zs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Z===null&&(Hl=1,Gs(e,hi(t,e.current)))}function Su(){var e=Ya.current;return e===null?!0:(Q&4194048)===Q?Xa===null:(Q&62914560)===Q||Q&536870912?e===Xa:!1}function Cu(){var e=O.H;return O.H=Ns,e===null?Ns:e}function wu(){var e=O.A;return O.A=Ml,e}function Tu(){Hl=4,Rl||(Q&4194048)!==Q&&Ya.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Fl===null||_u(Fl,Q,Kl,!1)}function Eu(e,t,n){var r=Pl;Pl|=2;var i=Cu(),a=wu();(Fl!==e||Q!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Z!==null){var s=Z,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Ya.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Hi=Vi=null,Pl=r,O.H=i,O.A=a,Z===null&&(Fl=null,Q=0,Zr()),o}function Du(){for(;Z!==null;)Au(Z)}function Ou(e,t){var n=Pl;Pl|=2;var r=Cu(),a=wu();Fl!==e||Q!==t?(eu=null,$l=I()+500,bu(e,t)):zl=Ue(e,t);a:do try{if(Il!==0&&Z!==null){t=Z;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(xa(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Fl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:xa(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Z.tag){case 26:s=Z.memoizedState;case 5:case 27:var c=Z;if(s?Wf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Hi=Vi=null,O.H=r,O.A=a,Pl=n,Z===null?(Fl=null,Q=0,Zr(),Hl):0}function ku(){for(;Z!==null&&!F();)Au(Z)}function Au(e){var t=Ec(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=dc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:Co(t);default:Fc(n,t),t=Z=ci(t,Vl),t=Ec(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function Mu(e,t,n,r){Hi=Vi=null,Co(t),q=null,Ta=0;var i=t.return;try{if(Xs(e,i,t,n,Q)){Hl=1,Gs(e,hi(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;Hl=1,Gs(e,hi(n,e.current)),Z=null;return}t.flags&32768?(U||r===1?e=!0:zl||Q&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ya.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Nc(t.alternate,t,Vl);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Hl=6,Z=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Pl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Xr,V(e,n,o,s,c,l),e===Fl&&(Z=Fl=null,Q=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(ke,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=O.T,O.T=null,a=k.p,k.p=2,s=Pl,Pl|=4;try{$c(e,t,n)}finally{Pl=s,k.p=a,O.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=Pl;Pl|=4;try{fl(t,e);var a=zd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{Pl=i,k.p=r,O.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=Pl;Pl|=4;try{el(e,t.alternate,t)}finally{Pl=i,k.p=r,O.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,Te();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),Ze(n),t=t.stateNode,z&&typeof z.onCommitFiberRoot==`function`)try{z.onCommitFiberRoot(R,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{O.T=t,k.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ia(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=Ze(au),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Pl&6)throw Error(i(331));var c=Pl;if(Pl|=4,kl(o.current),xl(o,o.current,s,n),Pl=c,rd(0,!1),z&&typeof z.onPostCommitFiberRoot==`function`)try{z.onPostCommitFiberRoot(R,o)}catch{}return!0}finally{k.p=a,O.T=r,zu(e,t)}}function Hu(e,t,n){t=hi(n,t),t=qs(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Ke(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=hi(n,e),n=Js(2),r=Ia(t,n,2),r!==null&&(Ys(n,r,t,e),Ke(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Q&n)===n&&(Hl===4||Hl===3&&(Q&62914560)===Q&&300>I()-Zl?!(Pl&2)&&bu(e,0):Gl|=n,ql===Q&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=B()),e=ei(e,t),e!==null&&(Ke(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return Ce(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Pe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=He(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ue(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=I(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Pe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=We(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Q,n=He(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ue(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),Ze(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=sd.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Q;return r=He(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,I()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Pl&6?Ce(De,id):ad()})}function ud(){if(td===0){var e=sa;e===0&&(e=Re,Re<<=1,!(Re&261888)&&(Re=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[it]||null).action),o=r.submitter;o&&(t=(t=o[it]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);ys(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),ys(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Gr.length;md++){var hd=Gr[md];Kr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[ot];n===void 0&&(n=t[ot]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,_t.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!sn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ft(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}rn(function(){var r=a,i=Qt(n),s=[];a:{var c=Wr.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=an(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Zt&&(u=n.relatedTarget||n.fromElement)&&(ft(u)||u[at]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ft(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:mt(l),h=u==null?c:mt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ft(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c)){if(cr)v=_r;else{v=hr;var y=mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Rt(c,`number`,c.value)}switch(y=r?mt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(s,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(s,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=Td(r,x),0<y.length&&(x=new An(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=an(e,n),i!=null&&r.unshift(wd(e,i,a)),i=an(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=an(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=an(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
|
|
10
|
+
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Yt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=qt.get(n)||n,Tt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Gt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[it]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Tt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Lt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&zt(e,!!r,n,!0):zt(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Vt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);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 n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}It(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?zt(e,!!n,n?[]:``,!1):zt(e,!!n,t,!0)):zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Bt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`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 Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e!==Wd&&(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body)}n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[ut])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?xs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ht(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);gt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=pe.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=ht(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=ht(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Ft(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),gt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Ft(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,gt(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ut]||a[rt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){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 e=t.disabled,typeof t.precedence==`string`&&e==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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:b,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ge(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ge(0),this.hiddenUpdates=Ge(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=ra(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function tp(e){return e?(e=ri,e):ri}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(pu(n,e,t),La(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=Xe(t);var n=ei(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ve(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Pe(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Pl&6)&&($l=I()+500,rd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Qt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=ft(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){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(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=pt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=ft(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,et(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,et(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=pt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,ys(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[it]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[it]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[at]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.8`)throw Error(i(527,Lp,`19.2.8`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{R=zp.inject(Rp),z=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Hs,s=Us,c=Ws;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[at]=t.current,xd(e),new Fp(t)}})),rt=C(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=nt()})),it=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,at=/^[\\/]{2}/;function ot(e,t){return t+e.replace(/\\/g,`/`)}var st=`popstate`;function ct(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function lt(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=gt(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),mt(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:ht(t))}function r(e,t){dt(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return _t(t,n,r,e)}function ut(e,t){if(e===!1||e==null)throw Error(t)}function dt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ft(){return Math.random().toString(36).substring(2,10)}function pt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function mt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?gt(t):t,state:n,key:t&&t.key||r||ft(),mask:i}}function ht({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function gt(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function _t(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=ct(e)?e:mt(h.location,e,t);n&&n(r,e),l=u()+1;let d=pt(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=ct(e)?e:mt(h.location,e,t);n&&n(r,e),l=u();let i=pt(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return vt(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(st,d),c=e,()=>{i.removeEventListener(st,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function vt(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),ut(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ht(t);return i=i.replace(/ $/,`%20`),!n&&at.test(i)&&(i=r+i),new URL(i,r)}function yt(e,t,n=`/`){return bt(e,t,n,!1)}function bt(e,t,n,r,i){let a=Vt((typeof t==`string`?gt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??xt(e),s=null,c=Bt(a);for(let e=0;s==null&&e<o.length;++e)s=It(o[e],c,r);return s}function xt(e){let t=St(e);return wt(t),t}function St(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;ut(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Yt([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(ut(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),St(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Pt(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=zt(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Ct(e.path))a(e,t,!0,n)}),t}function Ct(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Ct(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function wt(e){e.sort((e,t)=>e.score===t.score?Ft(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Tt=/^:[\w-]+$/,Et=/^:[\w-]+/,Dt=3.5,Ot=3,kt=2,At=1,jt=10,Mt=-2,Nt=e=>e===`*`;function Pt(e,t){let n=e.split(`/`),r=n.length;return n.some(Nt)&&(r+=Mt),t&&(r+=kt),n.filter(e=>!Nt(e)).reduce((e,t)=>e+(Tt.test(t)?Ot:Et.test(t)?Dt:t===``?At:jt),r)}function Ft(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function It(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Rt(u,l,s.matcher,s.compiledParams):Lt(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Lt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Yt([a,d.pathname]),pathnameBase:Zt(Yt([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Yt([a,d.pathnameBase]))}return o}function Lt(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=zt(e.path,e.caseSensitive,e.end);return Rt(e,t,n,r)}function Rt(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Xt(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Xt(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function zt(e,t=!1,n=!0){dt(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 r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Bt(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return dt(!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 (${t}).`),e}}function Vt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Ht(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?gt(e):e,a;return n?(n=Jt(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ut(n.substring(1),`/`):Ut(n,t)):a=t,{pathname:a,search:Qt(r),hash:$t(i)}}function Ut(e,t){let n=Xt(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Wt(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gt(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Kt(e){let t=Gt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function qt(e,t,n,r=!1){let i;typeof e==`string`?i=gt(e):(i={...e},ut(!i.pathname||!i.pathname.includes(`?`),Wt(`?`,`pathname`,`search`,i)),ut(!i.pathname||!i.pathname.includes(`#`),Wt(`#`,`pathname`,`hash`,i)),ut(!i.search||!i.search.includes(`#`),Wt(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ht(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Jt=e=>e.replace(/[\\/]{2,}/g,`/`),Yt=e=>Jt(e.join(`/`));function Xt(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Zt=e=>Xt(e).replace(/^\/*/,`/`),Qt=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,$t=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,en=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function tn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function nn(e){return Yt(e.map(e=>e.route.path).filter(Boolean))||`/`}var rn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function an(e,t){let n=e;if(typeof n!=`string`||!it.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(rn)try{let e=new URL(window.location.href),r=at.test(n)?new URL(ot(n,e.protocol)):new URL(n),a=Vt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{dt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var on=new URL(`http://localhost`);function sn(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),on)}catch{return on}}function cn(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ln(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function un(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!cn(i,n),s=!cn(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ln(e,i)||!cn(i,a)))throw Error(`External navigation is not allowed`)}var dn=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(dn);var fn=[`GET`,...dn];new Set(fn);var pn=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function mn(e){try{return pn.includes(new URL(e).protocol)}catch{return!1}}var hn=E.createContext(null);hn.displayName=`DataRouter`;var gn=E.createContext(null);gn.displayName=`DataRouterState`;var _n=E.createContext(null);_n.displayName=`DataRouterData`;var vn=E.createContext(null);vn.displayName=`DataRouterNavigation`;var yn=E.createContext(!1);function bn(){return E.useContext(yn)}var xn=E.createContext({isTransitioning:!1});xn.displayName=`ViewTransition`;var Sn=E.createContext(null);Sn.displayName=`Fetchers`;var Cn=E.createContext(null);Cn.displayName=`Await`;var wn=E.createContext(null);wn.displayName=`Navigation`;var Tn=E.createContext(null);Tn.displayName=`Location`;var En=E.createContext({outlet:null,matches:[],isDataRoute:!1});En.displayName=`Route`;var Dn=E.createContext(!1);Dn.displayName=`IsDataRoute`;var On=E.createContext(void 0);On.displayName=`RouteId`;var kn=E.createContext(null);kn.displayName=`RouteError`;var An=`REACT_ROUTER_ERROR`,jn=`REDIRECT`,Mn=`ROUTE_ERROR_RESPONSE`;function Nn(e){if(e.startsWith(`${An}:${jn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Pn(e){if(e.startsWith(`${An}:${Mn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new en(t.status,t.statusText,t.data)}catch{}}function Fn(e,{relative:t}={}){ut(In(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=E.useContext(wn),{hash:i,pathname:a,search:o}=Un(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Yt([n,a])),r.createHref({pathname:s,search:o,hash:i})}function In(){return E.useContext(Tn)!=null}function Ln(){return ut(In(),`useLocation() may be used only in the context of a <Router> component.`),E.useContext(Tn).location}function Rn(e){ut(In(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=Ln();return E.useMemo(()=>Lt(e,Bt(t)),[t,e])}var zn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Bn(){return E.useContext(Dn)?ar():Vn()}function Vn(){ut(In(),`useNavigate() may be used only in the context of a <Router> component.`);let e=E.useContext(hn),{basename:t,navigator:n}=E.useContext(wn),{matches:r}=E.useContext(En),{pathname:i}=Ln(),a=JSON.stringify(Kt(r)),o=E.useRef(!1);return E.useLayoutEffect(()=>{o.current=!0}),E.useCallback((r,s={})=>{if(dt(o.current,zn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=qt(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Yt([t,c.pathname])),un(typeof r==`string`?r:ht(r),n.createHref(c),sn(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}E.createContext(null);function Hn(){let{matches:e}=E.useContext(En);return e[e.length-1]?.params??{}}function Un(e,{relative:t}={}){let{matches:n}=E.useContext(En),{pathname:r}=Ln(),i=JSON.stringify(Kt(n));return E.useMemo(()=>qt(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Wn(e,t){return Gn(e,t)}function Gn(e,t,n){ut(In(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=E.useContext(wn),{matches:i}=E.useContext(En),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Ln(),l;if(t){let e=typeof t==`string`?gt(t):t;ut(s===`/`||e.pathname?.startsWith(s),`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 "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):yt(e,{pathname:d});let p=Qn(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Yt([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:Yt([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?E.createElement(Tn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function Kn(){let e=ir(),t=tn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return E.createElement(E.Fragment,null,E.createElement(`h2`,null,`Unexpected Application Error!`),E.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?E.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var qn=E.createElement(Kn,null),Jn=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=yn;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):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`){let t=Pn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:E.createElement(En.Provider,{value:this.props.routeContext},E.createElement(Dn.Provider,{value:this.props.routeContext.isDataRoute},E.createElement(On.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},E.createElement(kn.Provider,{value:e,children:this.props.component}))));return this.context?E.createElement(Xn,{error:e},t):t}},Yn=new WeakMap;function Xn({children:e,error:t}){let{basename:n,navigator:r}=E.useContext(wn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Nn(t.digest);if(e){let i=Yn.get(t);if(i)throw i;let a=an(e.location,n),o=a.absoluteURL||a.to;if(un(e.location,o,sn(r),`allow-explicit`),mn(o))throw Error(`Invalid redirect location`);if(rn&&!Yn.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Yn.set(t,n),n}}return E.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Zn({routeContext:e,match:t,children:n}){let r=E.useContext(hn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(En.Provider,{value:e},E.createElement(Dn.Provider,{value:e.isDataRoute},E.createElement(On.Provider,{value:t.route.id},n)))}function Qn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);ut(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:nn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||qn,o&&(s<0&&c===0?(sr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?E.createElement(n.route.Component,null):n.route.element?n.route.element:e,E.createElement(Zn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?E.createElement(Jn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function $n(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function er(e){let t=E.useContext(hn);return ut(t,$n(e)),t}function tr(e){let t=E.useContext(gn);return ut(t,$n(e)),t}function nr(e){let t=E.useContext(_n);return ut(t,$n(e)),t}function rr(e){let t=E.useContext(On);return ut(t,`${e} can only be used on routes that contain a unique "id"`),t}function ir(){let e=E.useContext(kn),t=nr(`useRouteError`),n=rr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ar(){let{router:e}=er(`useNavigate`),t=rr(`useNavigate`),n=E.useRef(!1);return E.useLayoutEffect(()=>{n.current=!0}),E.useCallback(async(r,i={})=>{dt(n.current,zn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var or={};function sr(e,t,n){!t&&!or[e]&&(or[e]=!0,dt(!1,n))}E.memo(cr);function cr({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=E.useContext(hn);return ut(a,`You must render this element inside a <DataRouterContext.Provider> element`),Gn(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function lr({to:e,replace:t,state:n,relative:r}){ut(In(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=E.useContext(wn);dt(!i,`<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:o}=E.useContext(En),{pathname:s}=Ln(),c=Bn(),l=qt(e,Kt(o),s,r===`path`);un(typeof e==`string`?e:ht(e),a.createHref(l),sn(a),`reject`);let u=JSON.stringify(l);return E.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ur(e){ut(!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 dr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){ut(!In(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=E.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=gt(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=E.useMemo(()=>{let e=Vt(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return dt(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:E.createElement(wn.Provider,{value:c},E.createElement(Tn.Provider,{children:t,value:h}))}function fr({children:e,location:t}){return Wn(pr(e),t)}E.Component;function pr(e,t=[]){let n=[];return E.Children.forEach(e,(e,r)=>{if(!E.isValidElement(e))return;let i=[...t,r];if(e.type===E.Fragment){n.push.apply(n,pr(e.props.children,i));return}ut(e.type===ur,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;ut(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=pr(a.children,i)),n.push(o)}),n}var mr=`application/x-www-form-urlencoded`;function hr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function gr(e){return hr(e)&&e.tagName.toLowerCase()===`button`}function _r(e){return hr(e)&&e.tagName.toLowerCase()===`form`}function vr(e){return hr(e)&&e.tagName.toLowerCase()===`input`}function yr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function br(e,t){return e.button===0&&(!t||t===`_self`)&&!yr(e)}function xr(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Sr(e,t){let n=xr(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Cr=null;function wr(){if(Cr===null)try{new FormData(document.createElement(`form`),0),Cr=!1}catch{Cr=!0}return Cr}var Tr=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Er(e){return e!=null&&!Tr.has(e)?(dt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mr}"`),null):e}function Dr(e,t){let n,r,i,a,o;if(_r(e)){let o=e.getAttribute(`action`);r=o?Vt(o,t):null,n=e.getAttribute(`method`)||`get`,i=Er(e.getAttribute(`enctype`))||mr,a=new FormData(e)}else if(gr(e)||vr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Vt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Er(e.getAttribute(`formenctype`))||Er(o.getAttribute(`enctype`))||mr,a=new FormData(o,e),!wr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(hr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=mr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Or(e,t){if(e===!1||e==null)throw Error(t)}function kr(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function Ar(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jr(e){return e!=null&&typeof e.page==`string`}function Mr(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 Nr(e,t,n){return Rr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ar(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Mr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Pr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Fr(e,t,{includeHydrateFallback:n}={}){return Ir(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Ir(e){return[...new Set(e)]}function Lr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Rr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!jr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Lr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var zr=E.createContext(void 0);zr.displayName=`FrameworkContext`;function Br(){let e=E.useContext(zr);return Or(e,`You must render this element inside a <HydratedRouter> element`),e}function Vr(e,t){let n=E.useContext(zr),[r,i]=E.useState(!1),[a,o]=E.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=E.useRef(null);E.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),E.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Hr(s,p),onBlur:Hr(c,m),onMouseEnter:Hr(l,p),onMouseLeave:Hr(u,m),onTouchStart:Hr(d,p)}]:[a,f,{}]:[!1,f,{}]}function Hr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ur({page:e,...t}){let n=bn(),{nonce:r}=Br(),{router:i}=er(`PrefetchPageLinks`),a=E.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?E.createElement(Gr,{page:e,matches:a,...t}):E.createElement(Kr,{page:e,matches:a,...t})):null}function Wr(e){let{manifest:t,routeModules:n}=Br(),[r,i]=E.useState([]);return E.useEffect(()=>{let r=!1;return Nr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Gr({page:e,matches:t,...n}){let r=Ln(),i=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=kr(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return E.createElement(E.Fragment,null,i.map(e=>E.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Kr({page:e,matches:t,...n}){let r=Ln(),{manifest:i,routeModules:a}=Br(),{matches:o}=tr(`PrefetchPageLinks`),{loaderData:s}=nr(`PrefetchPageLinks`),c=E.useMemo(()=>Pr(e,t,o,i,r,`data`),[e,t,o,i,r]),l=E.useMemo(()=>Pr(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=kr(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=E.useMemo(()=>Fr(l,i),[l,i]),f=Wr(l);return E.createElement(E.Fragment,null,u.map(e=>E.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>E.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>E.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function qr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Jr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Jr&&(window.__reactRouterVersion=`8`)}catch{}function Yr({basename:e,children:t,useTransitions:n,window:r}){let i=E.useRef(null);i.current??=lt({window:r,v5Compat:!0});let a=i.current,[o,s]=E.useState({action:a.action,location:a.location}),c=E.useCallback(e=>{n===!1?s(e):E.startTransition(()=>s(e))},[n]);return E.useLayoutEffect(()=>a.listen(c),[a,c]),E.createElement(dr,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Xr=E.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=E.useContext(wn),v=typeof l==`string`&&it.test(l),y=an(l,h);l=y.to;let b=Fn(l,{relative:r}),x=Ln(),S=null;if(o){let e=qt(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Yt([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Vr(n,p),ee=$r(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function te(t){e&&e(t),t.defaultPrevented||ee(t)}let ne=!(y.isExternal||i),re=E.createElement(`a`,{...p,...T,href:(ne?S:void 0)||y.absoluteURL||b,onClick:ne?te:e,ref:qr(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?E.createElement(E.Fragment,null,re,E.createElement(Ur,{page:b})):re});Xr.displayName=`Link`;var Zr=E.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Un(a,{relative:c.relative}),d=Ln(),f=E.useContext(vn),{navigator:p,basename:m}=E.useContext(wn),h=f!=null&&ai(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Vt(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return E.createElement(Xr,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Zr.displayName=`NavLink`;var Qr=E.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=E.useContext(wn),g=ri(),_=ii(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&it.test(s);return E.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?E.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Qr.displayName=`Form`;function $r(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Bn(),d=Ln(),f=Un(e,{relative:o});return E.useCallback(p=>{if(br(p,t)){p.preventDefault();let t=n===void 0?ht(d)===ht(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?E.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function ei(e){dt(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 t=E.useRef(xr(e)),n=E.useRef(!1),r=Ln(),i=E.useMemo(()=>Sr(r.search,n.current?null:t.current),[r.search]),a=Bn();return[i,E.useCallback((e,t)=>{let r=xr(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ti=0,ni=()=>`__${String(++ti)}__`;function ri(){let{router:e}=er(`useSubmit`),{basename:t}=E.useContext(wn),n=rr(`useSubmit`),r=e.fetch,i=e.navigate;return E.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Dr(e,t);a.navigate===!1?await r(a.fetcherKey||ni(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ii(e,{relative:t}={}){let{basename:n}=E.useContext(wn),r=E.useContext(En);ut(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Un(e||`.`,{relative:t})},o=Ln();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Yt([n,a.pathname])),ht(a)}function ai(e,{relative:t}={}){let n=E.useContext(xn);ut(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=er(`useViewTransitionState`),i=Un(e,{relative:t});if(!n.isTransitioning)return!1;let a=Vt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Vt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Lt(i.pathname,o)!=null||Lt(i.pathname,a)!=null}var oi=rt(),si,ci=[],li=e=>{si=e,ci.forEach(t=>{t(e)})},ui=(e,t=!0)=>(t&&typeof si==`string`&&e(si),ci.push(e),()=>{let t=ci.indexOf(e);t>=0&&ci.splice(t,1)}),di=!1,fi,pi=async(t,r,i)=>{let a=typeof process<`u`?`production`:void 0;e(i?.environment||a||`production`),g(i?.translation?.name??`de`,i?.translations),i?.transformTagName&&h(i?.transformTagName);let s=await n(t,r,i);return di=!0,fi=i,o.info(`Development mode active - Enhanced debugging features available`),s},mi=()=>di,hi=()=>fi,gi,_i;function vi(){return _i||(_i=1,gi=function(e){return function(t,n){if(!t)return e;var r;typeof t==`string`?r=t:n=t;var i=e;return r&&(i+=`__`+r),i+(n?Object.keys(n).reduce(function(e,t){var r=n[t];return r&&(e+=` `+(typeof r==`boolean`?i+`--`+t:i+`--`+t+`_`+r)),e},``):``)}}),gi}var yi=vi(),bi=c(yi);function xi(){let e=new Map,t=(t,n,r)=>{try{return e.get(t)(n,r)}catch{return e.set(t,bi(t)).get(t)(n,r)}};return t.forBlock=e=>{let n=(n,r)=>t(e,n,r);return n.forElement=n=>r=>t(e,n,r),n},t}var Si=xi(),Ci;(function(e){e.blur=`blur`,e.cancel=`cancel`,e.change=`change`,e.changeHeaderCells=`changeheadercells`,e.changePage=`changepage`,e.changePageSize=`changepagesize`,e.click=`click`,e.close=`close`,e.create=`create`,e.error=`error`,e.focus=`focus`,e.input=`input`,e.keydown=`keydown`,e.load=`load`,e.mousedown=`mousedown`,e.reset=`reset`,e.select=`select`,e.selectionChange=`selectionchange`,e.sortChange=`sortchange`,e.sort=`sort`,e.submit=`submit`,e.toggle=`toggle`})(Ci||={});var wi={bubbles:!0,cancelable:!0,composed:!0};function Ti(e,t=null){return new CustomEvent(e,Object.assign(Object.assign({},wi),{detail:t}))}function Ei(e,t,n){return e.dispatchEvent(Ti(t,n))}function Di(e,t=null,n){let r=Ti(e,t);return n&&(Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n})),r}new a(`kol`,u,p);var Oi=class e{constructor(e,t){this.document=e,this.options=t,this.toastContainerElement=this.document.createElement(m),this.document.body.prepend(this.toastContainerElement),this.options?.defaultVariant&&o.info(`ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.`)}static getInstance(t,n){if(!mi())throw Error(`Toaster: Call KoliBri bootstrap/register method first.`);let r=this.instances.get(t);return r||(r=new e(t,n),this.instances.set(t,r)),r}dispose(){let e=this.toastContainerElement;e?(this.toastContainerElement=void 0,e.remove()):o.warn(`Toaster service is already disposed.`)}enqueue(e){if(this.toastContainerElement&&typeof this.toastContainerElement.enqueue==`function`)return this.toastContainerElement.enqueue(e)}closeAll(e=!1){this.toastContainerElement&&typeof this.toastContainerElement.closeAll==`function`&&this.toastContainerElement.closeAll(e)}};Oi.instances=new Map;var ki;(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`})(ki||={}),Object.getOwnPropertyNames(ki);var H;(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`})(H||={}),Object.getOwnPropertyNames(H);var Ai;(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`})(Ai||={}),Object.getOwnPropertyNames(Ai);var U=new Map;U.set(ki[`Die Bundesregierung`],[`Die`,`Bundesregierung`]),U.set(ki[`Bundesministerium der Finanzen`],[`Bundesministerium`,`der Finanzen`]),U.set(ki[`Bundesministerium des Innern, für Bau und Heimat`],[`Bundesministerium`,`des Inneren, für Bau`,`und Heimat`]),U.set(ki[`Auswärtiges Amt`],[`Auswärtiges Amt`]),U.set(ki[`Bundesministerium für Wirtschaft und Energie`],[`Bundesministerium`,`für Wirtschaft`,`und Energie`]),U.set(ki[`Bundesministerium der Justiz und für Verbraucherschutz`],[`Bundesministerium`,`der Justiz und`,`für Verbraucherschutz`]),U.set(ki[`Bundesministerium für Arbeit und Soziales`],[`Bundesministerium`,`für Arbeit und Soziales`]),U.set(ki[`Bundesministerium der Verteidigung`],[`Bundesministerium`,`der Verteidigung`]),U.set(ki[`Bundesministerium für Bildung und Forschung`],[`Bundesministerium`,`für Bildung`,`und Forschung`]),U.set(ki[`Bundesministerium für Ernährung und Landwirtschaft`],[`Bundesministerium`,`für Ernährung`,`und Landwirtschaft`]),U.set(ki[`Bundesministerium für Familie, Senioren, Frauen und Jugend`],[`Bundesministerium`,`für Familie, Senioren, Frauen`,`und Jugend`]),U.set(ki[`Bundesministerium für Gesundheit`],[`Bundesministerium`,`für Gesundheit`]),U.set(ki[`Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit`],[`Bundesministerium`,`für Umwelt, Naturschutz`,`und nukleare Sicherheit`]),U.set(ki[`Bundesministerium für Verkehr und digitale Infrastruktur`],[`Bundesministerium`,`für Verkehr und`,`digitale Infrastruktur`]),U.set(ki[`Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung`],[`Bundesministerium`,`für wirtschaftliche Zusammenarbeit`,`und Entwicklung`]),U.set(H[`Beschaffungsamt des Bundesministeriums des Innern`],[`Beschaffungsamt`,`des Bundesministeriums`,`des Innern`]),U.set(H[`Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr`],[]),U.set(H[`Bundesamt für äußere Restitutionen`],[]),U.set(H[`Bundesamt für Bauwesen und Raumordnung`],[]),U.set(H[`Bundesamt für Bevölkerungsschutz und Katastrophenhilfe`],[`Bundesamt`,`für Bevölkerungsschutz`,`und Katastrophenhilfe`]),U.set(H[`Bundesamt für Familie und zivilgesellschaftliche Aufgaben`],[`Bundesamt`,`für Familie und`,`zivilgesellschaftliche Aufgaben`]),U.set(H[`Bundesamt für Güterverkehr`],[`Bundesamt`,`für Güterverkehr`]),U.set(H[`Bundesamt für Justiz`],[`Bundesamt für`,`Justiz`]),U.set(H[`Bundesamt für Kartographie und Geodäsie`],[`Bundesamt für`,`Kartographie und Geodäsie`]),U.set(H[`Bundesamt für kerntechnische Entsorgungssicherheit`],[`Bundesamt für`,`kerntechnische`,`Entsorgungssicherheit`]),U.set(H[`Bundesamt für Migration und Flüchtlinge`],[`Bundesamt`,`für Migration`,`und Flüchtlinge`]),U.set(H[`Bundesamt für Sicherheit in der Informationstechnik`],[`Bundesamt`,`für Sicherheit in der`,`Informationstechnik`]),U.set(H[`Bundesamt für Verbraucherschutz und Lebensmittelsicherheit`],[`Bundesamt für`,`Verbraucherschutz und`,`Lebensmittelsicherheit`]),U.set(H[`Bundesamt für Verfassungsschutz`],[`Bundesamt für`,`Verfassungsschutz`]),U.set(H[`Bundesamt für Wirtschaft und Ausfuhrkontrolle`],[`Bundesamt`,`für Wirtschaft`,`Ausfuhrkontrolle`]),U.set(H[`Bundesamt für zentrale Dienste und offene Vermögensfragen`],[`Bundesamt`,`für zentrale Dienste und`,`offene Vermögensfragen`]),U.set(H[`Bundesanstalt für Verwaltungsdienstleistungen`],[`Bundesanstalt`,`für Verwaltungsdienstleistungen`]),U.set(H.Bundesarchiv,[`Das`,`Bundesarchiv`]),U.set(H[`Bundesaufsichtsamt für Flugsicherung`],[`Bundesaufsichtsamt`,`für Flugsicherung`]),U.set(H.Bundesausgleichsamt,[`Bundesausgleichsamt`]),U.set(H.Bundeskartellamt,[`Bundeskartellamt`]),U.set(H.Bundeskriminalamt,[`Bundeskriminalamt`]),U.set(H.Bundesnachrichtendienst,[`Bundesnachrichtendienst`]),U.set(H[`Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen`],[`Bundesnetzagentur`]),U.set(H.Bundespolizeipräsidium,[`Bundespolizeipräsidium`]),U.set(H[`Bundesprüfstelle für jugendgefährdende Medien`],[`Bundesprüfstelle`,`für jugendgefährdende`,`Medien`]),U.set(H.Bundessortenamt,[`Bundessortenamt`]),U.set(H.Bundessprachenamt,[`Bundessprachenamt`]),U.set(H[`Bundesamt für Soziale Sicherung`],[`Bundesamt`,`für Soziale Sicherung`]),U.set(H.Bundesverwaltungsamt,[`Bundesverwaltungsamt`]),U.set(H[`Bundeszentralamt für Steuern`],[`Bundeszentralamt`,`für Steuern`]),U.set(H[`Deutsches Patent- und Markenamt`],[`Deutsches`,`Patent- und Markenamt`]),U.set(H[`Eisenbahn-Bundesamt`],[`Eisenbahn-Bundesamt`]),U.set(H.Generalzolldirektion,[`Generalzolldirektion`]),U.set(H[`Militärischer Abschirmdienst`],[`Bundesamt für den`,`Militärischen Abschirmdienst`]),U.set(H[`Zentrale Stelle für Informationstechnik im Sicherheitsbereich`],[`Zentrale Stelle`,`für Informationstechnik`,`im Sicherheitsbereich`]),U.set(Ai[`Informationstechnikzentrum Bund`],[`Informations`,`Technik`,`Zentrum Bund`]),U.set(Ai[`Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben`],[`Bundesanstalt`,`für den Digitalfunk der Behörden und`,`Organisationen mit Sicherheitsaufgaben`]),U.set(Ai[`Bundesanstalt für Landwirtschaft und Ernährung`],[`Bundesanstalt für`,`Landwirtschaft und Ernährung`]),U.set(Ai[`Bundesanstalt Technisches Hilfswerk`],[`Bundesanstalt`,`Technisches Hilfswerk`]),U.set(Ai[`Bundesinstitut für Arzneimittel und Medizinprodukte`],[`Bundesinstitut`,`für Arzneimittel`,`und Medizinprodukte`]),U.set(Ai[`Bundesinstitut für Bevölkerungsforschung`],[`Bundesinstitut`,`für Bevölkerungsforschung`]),U.set(Ai[`Bundesinstitut für Sportwissenschaft`],[`Bundesinstitut`,`für Sportwissenschaft`]);var ji=()=>{f(e=>{try{e.shadowRoot instanceof ShadowRoot&&t(e,d(e))}catch{}return`default`}),i(()=>import(`./devtools-DrBkkLdP-BAmIGl-I.js`).then(e=>{typeof e==`object`&&e&&typeof e.initialize==`function`&&e.initialize()}),__vite__mapDeps([0,1,2]),import.meta.url).catch(e=>{o.error(e)})},Mi=async(e,t)=>{if(typeof window<`u`)return await ji(),s(JSON.parse(`[["kol-abbr",[[545,"kol-abbr",{"_label":[1]},null,{"_label":[{"watchLabel":0}]}]]],["kol-accordion",[[801,"kol-accordion",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"controlId":[32],"detailsOpen":[32],"expanded":[32],"headingId":[32],"transitionMs":[32],"focus":[64],"click":[64]},null,{"_disabled":[{"watchDisabled":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_open":[{"watchOpen":0}]}]]],["kol-alert",[[801,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"headingId":[32],"closerAriaDescriptionId":[32]},null,{"_alert":[{"watchAlert":0}],"_hasCloser":[{"watchHasCloser":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_type":[{"watchType":0}],"_variant":[{"watchVariant":0}]}]]],["kol-avatar",[[545,"kol-avatar",{"_color":[1],"_label":[1],"_src":[1],"initials":[32]},null,{"_color":[{"watchColor":0}],"_label":[{"watchLabel":0}],"_src":[{"watchSrc":0}]}]]],["kol-badge",[[545,"kol-badge",{"_color":[1],"_icons":[1],"_label":[1],"_smartButton":[1,"_smart-button"],"labelId":[32],"ariaDescriptionId":[32],"focus":[64]},null,{"_color":[{"watchColor":0}],"_icons":[{"watchIcons":0}],"_label":[{"watchLabel":0}],"_smartButton":[{"watchSmartButton":0}]}]]],["kol-breadcrumb",[[545,"kol-breadcrumb",{"_label":[1],"_links":[1],"linkItems":[32]},null,{"_label":[{"watchLabel":0}],"_links":[{"watchLinks":0}]}]]],["kol-button",[[545,"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],"_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],"ariaDescriptionId":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_ariaSelected":[{"watchAriaSelected":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-button-link",[[545,"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],"_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],"ariaDescriptionId":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_ariaSelected":[{"watchAriaSelected":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-card",[[801,"kol-card",{"_hasCloser":[4,"_has-closer"],"_href":[1],"_label":[1],"_level":[2],"_on":[16],"_target":[1],"ariaDescriptionId":[32],"headingId":[32],"focus":[64],"click":[64]},null,{"_hasCloser":[{"watchHasCloser":0}],"_href":[{"watchHref":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_target":[{"watchTarget":0}]}]]],["kol-click-button",[[513,"kol-click-button",{"_label":[1],"focus":[64]},null,{"_label":[{"watchLabel":0}]}]]],["kol-combobox",[[545,"kol-combobox",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_hasClearButton":[4,"_has-clear-button"],"_suggestions":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"isOpen":[32],"blockSuggestionMouseOver":[32],"filteredSuggestions":[32],"getValue":[64],"focus":[64],"click":[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_placeholder":[{"watchPlaceholder":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_hasClearButton":[{"watchHasClearButton":0}],"_suggestions":[{"watchSuggestions":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-details",[[801,"kol-details",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"controlId":[32],"detailsOpen":[32],"expanded":[32],"headingId":[32],"transitionMs":[32],"focus":[64],"click":[64]},null,{"_disabled":[{"watchDisabled":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_open":[{"watchOpen":0}]}]]],["kol-dialog",[[801,"kol-dialog",{"_label":[1],"_level":[2],"_on":[16],"_variant":[1],"_width":[1],"ariaDescriptionId":[32],"headingId":[32],"modal":[32],"openModal":[64],"showModal":[64],"show":[64],"close":[64],"closeModal":[64]},null,{"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_variant":[{"watchVariant":0}],"_width":[{"watchWidth":0}]}]]],["kol-drawer",[[801,"kol-drawer",{"_align":[1],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_open":[4],"ariaDescriptionId":[32],"expanded":[32],"headingId":[32],"modal":[32],"show":[64],"showModal":[64],"open":[64],"close":[64]},null,{"_align":[{"watchAlign":0}],"_hasCloser":[{"watchHasCloser":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_open":[{"watchOpen":0}]}]]],["kol-form",[[545,"kol-form",{"_errorList":[16],"_on":[16],"_requiredText":[8,"_required-text"],"errorLinkItems":[32],"focusErrorList":[64]},null,{"_errorList":[{"watchErrorList":0}],"_on":[{"watchOn":0}],"_requiredText":[{"watchRequiredText":0}]}]]],["kol-heading",[[545,"kol-heading",{"_label":[1],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"]},null,{"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_secondaryHeadline":[{"watchSecondaryHeadline":0}]}]]],["kol-icon",[[545,"kol-icon",{"_icons":[1],"_label":[1]},null,{"_icons":[{"watchIcons":0}],"_label":[{"watchLabel":0}]}]]],["kol-image",[[545,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"_on":[16]},null,{"_alt":[{"watchAlt":0}],"_loading":[{"watchLoading":0}],"_sizes":[{"watchSizes":0}],"_src":[{"watchSrc":0}],"_srcset":[{"watchSrcset":0}],"_on":[{"watchOn":0}]}]]],["kol-input-checkbox",[[545,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_checked":[1540],"_hideMsg":[4,"_hide-msg"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_indeterminate":[1540],"_label":[1],"_labelAlign":[1,"_label-align"],"_msg":[1],"_name":[1],"_on":[16],"_required":[4],"_ariaDetails":[1,"_aria-details"],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_checked":[{"watchChecked":0}],"_hideMsg":[{"watchHideMsg":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_indeterminate":[{"watchIndeterminate":0}],"_label":[{"watchLabel":0}],"_labelAlign":[{"watchLabelAlign":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_required":[{"watchRequired":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-color",[[545,"kol-input-color",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-date",[[545,"kol-input-date",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64],"reset":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_step":[{"watchStep":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-email",[[545,"kol-input-email",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_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],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_msg":[{"watchMsg":0}],"_multiple":[{"watchMultiple":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_pattern":[{"watchPattern":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-file",[[545,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"filename":[32],"hasFileSelected":[32],"isDragover":[32],"getValue":[64],"focus":[64],"click":[64],"reset":[64]},null,{"_accept":[{"watchAccept":0}],"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_multiple":[{"watchMultiple":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-number",[[545,"kol-input-number",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_step":[{"watchStep":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-password",[[545,"kol-input-password",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_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],"_infoPopover":[16],"_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":[1025],"_variant":[1],"_visibilityToggle":[4,"_visibility-toggle"],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"passwordVisible":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_pattern":[{"watchPattern":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}],"_visibilityToggle":[{"watchVisibilityToggle":0}]}]]],["kol-input-radio",[[545,"kol-input-radio",{"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_options":[{"watchOptions":0}],"_orientation":[{"watchOrientation":0}],"_required":[{"watchRequired":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-range",[[545,"kol-input-range",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_shortKey":[{"watchShortKey":0}],"_step":[{"watchStep":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-text",[[545,"kol-input-text",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_ariaDetails":[1,"_aria-details"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64],"selectionStart":[64],"selectionEnd":[64],"setSelectionRange":[64],"setSelectionStart":[64],"setRangeText":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_autoComplete":[{"watchAutoComplete":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_pattern":[{"watchPattern":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_spellCheck":[{"watchSpellCheck":0}],"_suggestions":[{"watchSuggestions":0}],"_smartButton":[{"watchSmartButton":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-kolibri",[[545,"kol-kolibri",{"_color":[1],"_labeled":[4]},null,{"_color":[{"watchColor":0}],"_labeled":[{"watchLabeled":0}]}]]],["kol-link",[[545,"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],"_on":[16],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"ariaCurrent":[32],"ariaDescriptionId":[32],"expertSlot":[32],"focus":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaCurrentValue":[{"watchAriaCurrentValue":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_disabled":[{"watchDisabled":0}],"_download":[{"watchDownload":0}],"_hideLabel":[{"watchHideLabel":0}],"_href":[{"watchHref":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_shortKey":[{"watchShortKey":0}],"_target":[{"watchTarget":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_variant":[{"watchVariant":0}]}]]],["kol-link-button",[[545,"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],"_inline":[4],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"ariaCurrent":[32],"ariaDescriptionId":[32],"expertSlot":[32],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaCurrentValue":[{"watchAriaCurrentValue":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_download":[{"watchDownload":0}],"_hideLabel":[{"watchHideLabel":0}],"_href":[{"watchHref":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_target":[{"watchTarget":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_variant":[{"watchVariant":0}]}]]],["kol-meter",[[545,"kol-meter",{"_high":[2],"_label":[1],"_low":[2],"_max":[2],"_min":[2],"_optimum":[2],"_orientation":[1],"_unit":[1],"_value":[2]},null,{"_high":[{"watchHigh":0}],"_label":[{"watchLabel":0}],"_low":[{"watchLow":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_optimum":[{"watchOptimum":0}],"_orientation":[{"watchOrientation":0}],"_unit":[{"watchUnit":0}],"_value":[{"watchValue":0}]}]]],["kol-modal",[[801,"kol-modal",{"_label":[1],"_on":[16],"_variant":[1],"_width":[1],"ariaDescriptionId":[32],"headingId":[32],"modal":[32],"openModal":[64],"showModal":[64],"show":[64],"close":[64],"closeModal":[64]},null,{"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_variant":[{"watchVariant":0}],"_width":[{"watchWidth":0}]}]]],["kol-nav",[[545,"kol-nav",{"_collapsible":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hasIconsWhenExpanded":[4,"_has-icons-when-expanded"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"compact":[32],"expandedChildren":[32]},null,{"_collapsible":[{"watchCollapsible":0}],"_hasCompactButton":[{"watchHasCompactButton":0}],"_hasIconsWhenExpanded":[{"watchHasIconsWhenExpanded":0}],"_hideLabel":[{"watchHideLabel":0}],"_label":[{"watchLabel":0}],"_links":[{"watchLinks":0}]}]]],["kol-pagination",[[545,"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],"renderCount":[32]},null,{"_boundaryCount":[{"watchBoundaryCount":0}],"_customClass":[{"watchCustomClass":0}],"_label":[{"watchLabel":0}],"_hasButtons":[{"watchHasButtons":0}],"_page":[{"watchPage":0}],"_pageSize":[{"watchPageSize":0}],"_pageSizeOptions":[{"watchPageSizeOptions":0}],"_on":[{"watchOn":0}],"_siblingCount":[{"watchSiblingCount":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_max":[{"watchMax":0}]}]]],["kol-popover-button",[[545,"kol-popover-button",{"_accessKey":[1,"_access-key"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_label":[1],"_name":[1],"_popoverAlign":[1,"_popover-align"],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"ariaDescriptionId":[32],"popoverOpen":[32],"hidePopover":[64],"showPopover":[64],"click":[64],"focus":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_popoverAlign":[{"watchPopoverAlign":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tabIndex":[{"watchTabIndex":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-progress",[[545,"kol-progress",{"_label":[1],"_max":[2],"_unit":[1],"_value":[2],"_variant":[1],"liveValue":[32]},null,{"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_unit":[{"watchUnit":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-quote",[[545,"kol-quote",{"_href":[1],"_label":[1],"_quote":[1],"_variant":[1]},null,{"_href":[{"watchHref":0}],"_label":[{"watchLabel":0}],"_quote":[{"watchQuote":0}],"_variant":[{"watchVariant":0}]}]]],["kol-select",[[545,"kol-select",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_multiple":[{"watchMultiple":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_options":[{"watchOptions":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_rows":[{"watchRows":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tabIndex":[{"watchTabIndex":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-single-select",[[545,"kol-single-select",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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":[1032],"_hasClearButton":[4,"_has-clear-button"],"_rows":[2],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"isOpen":[32],"blockSuggestionMouseOver":[32],"filteredOptions":[32],"inputValue":[32],"getValue":[64],"focus":[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_placeholder":[{"watchPlaceholder":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_options":[{"watchOptions":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_hasClearButton":[{"watchHasClearButton":0}],"_rows":[{"watchRows":0}],"_variant":[{"watchVariant":0}]}]]],["kol-skeleton",[[513,"kol-skeleton",{"_name":[1],"count":[32],"label":[32],"show":[32],"focus":[64],"toggle":[64]},[[0,"keydown","handleKeyDown"],[8,"keydown","onKeydown"]],{"_name":[{"watchName":0}]}]]],["kol-skip-nav",[[545,"kol-skip-nav",{"_label":[1],"_links":[1],"linkItems":[32],"focus":[64]},null,{"_label":[{"watchLabel":0}],"_links":[{"watchLinks":0}]}]]],["kol-spin",[[545,"kol-spin",{"_show":[4],"_label":[1],"_variant":[1]},null,{"_show":[{"watchShow":0}],"_label":[{"watchLabel":0}],"_variant":[{"watchVariant":0}]}]]],["kol-split-button",[[545,"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],"_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],"ariaDescriptionId":[32],"dropdownOpen":[32],"getValue":[64],"focus":[64],"click":[64],"closePopup":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_ariaSelected":[{"watchAriaSelected":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-table-stateful",[[545,"kol-table-stateful",{"_ariaLabelledby":[1,"_aria-labelledby"],"_allowMultiSort":[4,"_allow-multi-sort"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_fixedCols":[16],"_headers":[1],"_label":[1],"_loading":[4],"_pagination":[8],"_paginationPosition":[1,"_pagination-position"],"_selection":[1],"_on":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"_variant":[1],"adjustedHeaderCells":[32],"pagination":[32],"renderCount":[32],"externalLabelElements":[32],"hasScrollbar":[32],"settingsChangedCounter":[32],"sortedData":[32],"stickyColsDisabled":[32],"getSelection":[64],"resetSort":[64]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{"_ariaLabelledby":[{"watchAriaLabelledby":0}],"_allowMultiSort":[{"watchAllowMultiSort":0}],"_data":[{"watchData":0}],"_dataFoot":[{"watchDataFoot":0}],"_fixedCols":[{"watchFixedCols":0}],"_headers":[{"watchHeaders":0}],"_label":[{"watchLabel":0}],"_loading":[{"watchLoading":0}],"_pagination":[{"watchPagination":0}],"_paginationPosition":[{"watchPaginationPosition":0}],"_selection":[{"watchSelection":0}],"_on":[{"watchOn":0}],"_hasSettingsMenu":[{"watchHasSettingsMenu":0}],"_variant":[{"watchVariant":0}]}]]],["kol-table-stateless",[[545,"kol-table-stateless",{"_ariaLabelledby":[1,"_aria-labelledby"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_fixedCols":[16],"_headers":[1],"_headerCells":[1,"_header-cells"],"_label":[1],"_loading":[4],"_on":[16],"_selection":[1],"_hasSettingsMenu":[4,"_has-settings-menu"],"_variant":[1],"externalLabelElements":[32],"hasScrollbar":[32],"rowKeys":[32],"settingsChangedCounter":[32],"stickyColsDisabled":[32]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{"_ariaLabelledby":[{"watchAriaLabelledby":0}],"_data":[{"watchData":0}],"_dataFoot":[{"watchDataFoot":0}],"_fixedCols":[{"watchFixedCols":0}],"_headers":[{"watchHeaders":0}],"_headerCells":[{"watchHeaderCells":0}],"_label":[{"watchLabel":0}],"_loading":[{"watchLoading":0}],"_on":[{"watchOn":0}],"_selection":[{"watchSelection":0}],"_hasSettingsMenu":[{"watchHasSettingsMenu":0}],"_variant":[{"watchVariant":0}]}]]],["kol-tabs",[[801,"kol-tabs",{"_align":[1],"_behavior":[1],"_hasCreateButton":[4,"_has-create-button"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"focus":[64],"click":[64]},null,{"_align":[{"watchAlign":0}],"_behavior":[{"watchBehavior":0}],"_hasCreateButton":[{"watchHasCreateButton":0}],"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_selected":[{"watchSelected":0}],"_tabs":[{"watchTabs":0}]}]]],["kol-textarea",[[545,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_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],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_adjustHeight":[{"watchAdjustHeight":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_resize":[{"watchResize":0}],"_required":[{"watchRequired":0}],"_rows":[{"watchRows":0}],"_shortKey":[{"watchShortKey":0}],"_spellCheck":[{"watchSpellCheck":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-toast-container",[[33,"kol-toast-container",{"state":[32],"enqueue":[64],"closeAll":[64]}]]],["kol-toolbar",[[545,"kol-toolbar",{"_label":[1],"_items":[16],"_orientation":[1],"currentIndex":[32],"itemRecords":[32],"location":[32],"focus":[64],"click":[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{"_label":[{"watchLabel":0}],"_items":[{"watchItems":0}],"_orientation":[{"watchOrientation":0}]}]]],["kol-tree",[[545,"kol-tree",{"_label":[1],"focus":[64]},[[0,"keydown","handleKeyDown"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{"_label":[{"watchLabel":0}]}]]],["kol-tree-item",[[545,"kol-tree-item",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"ariaCurrent":[32],"groupId":[32],"hasChildren":[32],"level":[32],"open":[32],"focus":[64],"expand":[64],"collapse":[64],"isOpen":[64]},null,{"_active":[{"watchActive":0}],"_label":[{"watchLabel":0}],"_open":[{"watchOpen":0}],"_href":[{"watchHref":0}]}]]],["kol-version",[[545,"kol-version",{"_label":[1]},null,{"_label":[{"watchLabel":0}]}]]],["test-component",[[0,"test-component"]]]]`),t)},Ni={name:`@public-ui/components`,version:`5.0.0-beta.1`,license:`EUPL-1.2`,homepage:`https://public-ui.github.io`,repository:{type:`git`,url:`https://github.com/public-ui/kolibri`},bugs:{url:`https://github.com/public-ui/kolibri/issues`,email:`kolibri@itzbund.de`},author:{name:`Informationstechnikzentrum Bund`,email:`kolibri@itzbund.de`},main:`dist/index.cjs.js`,module:`dist/index.js`,bin:{"kolibri-copy-assets":`./copy-assets.mjs`},exports:{".":{types:`./dist/types/index.d.ts`,import:`./dist/index.js`,require:`./dist/index.cjs.js`},"./loader":{types:`./loader/index.d.ts`,import:`./loader/index.mjs`,require:`./dist/loader/index.cjs.js`},"./custom-elements.json":`./custom-elements.json`,"./package.json":`./package.json`},customElements:`custom-elements.json`,es2015:`dist/esm/index.mjs`,es2017:`dist/esm/index.mjs`,types:`dist/types/index.d.ts`,unpkg:`dist/stencil/stencil.js`,"collection:main":`dist/collection/index.js`,collection:`dist/collection/collection-manifest.json`,sideEffects:!0,description:`Contains all web components that belong to KoliBri - The accessible HTML-Standard.`,keywords:[`accessibility`,`accessible`,`bitv`,`framework`,`library`,`designsystem`,`design`,`system`,`web components`,`webcomponents`,`aria`,`wai`,`axe`,`custom elements`,`styleguide`,`style`,`guide`,`ui`,`html`,`css`,`web`,`a11y`,`w3c`,`webstandard`,`wcag`],scripts:{"assets:kolicons":`pnpm --filter @public-ui/icons build`,build:`pnpm build:light`,"build:light":`node -e "require('node:fs').mkdirSync('doc', { recursive: true })" && cross-env NODE_ENV=production stencil build --docs --prod && node scripts/autogen.doc.js && node scripts/vaadin.js && pnpm format -w`,clear:`rimraf -g dist doc www ../adapters/angular/v20/src ../adapters/angular/v21/src ../adapters/hydrate/dist ../adapters/react/src ../adapters/react-v19/src ../adapters/solid/src ../adapters/vaadin/*.java ../adapters/vue/src`,format:`prettier --check src`,lint:`pnpm lint:eslint && pnpm lint:stylelint && pnpm lint:tsc && pnpm lint:i18n`,"lint:eslint":`eslint src`,"lint:i18n":`tsx scripts/lint-i18n.ts`,"lint:stylelint":`stylelint "src/**/*.{css,scss}"`,"lint:stylelint:components":`stylelint src/components/**/*.{css,scss}`,"lint:tsc":`tsc --noemit`,dev:`cross-env NODE_ENV=development stencil build --prod --watch`,prod:`stencil build --prod`,test:`pnpm test:unit && pnpm test:e2e`,"test:e2e":`playwright test`,"test:unit":`node -e "require('node:fs').mkdirSync('dist', { recursive: true })" && cross-env NODE_ENV=test stencil test --spec --json --outputFile dist/jest-test-results.json`,"test:update:unit":`pnpm test:unit -u`,"test:watch":`cross-env NODE_ENV=test stencil test --spec --watchAll`,"prebuild:light":`pnpm clear`,"pretest:e2e":`pnpm assets:kolicons`,unused:`knip`},dependencies:{"@floating-ui/dom":`1.8.0`,"color-convert":`3.1.3`,"color-rgba":`2.4.0`,"lodash-es":`4.18.1`,"markdown-it":`14.3.3`,"rgba-convert":`0.3.0`,"typed-bem":`1.0.2`,"wcag-contrast":`3.0.0`},devDependencies:{"@jest/globals":`29.7.0`,"@playwright/test":`1.63.0`,"@public-ui/eslint-config":`workspace:*`,"@public-ui/icons":`workspace:*`,"@public-ui/stencil-angular-output-target":`0.9.0`,"@public-ui/stencil-react-output-target":`0.6.0`,"@public-ui/stencil-solid-output-target":`0.2.0`,"@public-ui/stencil-vue-output-target":`0.9.0`,"@public-ui/stylelint-rules":`workspace:*`,"@revolist/svelte-output-target":`0.0.7`,"@stencil-community/postcss":`2.2.0`,"@stencil/core":`4.45.2`,"@stencil/playwright":`0.5.1`,"@stencil/sass":`3.3.2`,"@types/jest":`29.5.14`,"@types/lodash-es":`4.17.12`,"@types/markdown-it":`14.2.0`,"@types/node":`26.4.0`,"@types/wcag-contrast":`3.0.3`,"adopted-style-sheets":`1.1.9-rc.25`,autoprefixer:`10.6.1`,"cross-env":`10.1.0`,cssnano:`8.0.10`,eslint:`9.39.5`,"eslint-plugin-perfectionist":`5.12.1`,jest:`29.7.0`,"jest-cli":`29.7.0`,knip:`6.42.1`,postcss:`8.5.31`,"postcss-sorting":`10.0.0`,prettier:`3.9.10`,"prettier-plugin-organize-imports":`4.3.0`,rimraf:`6.1.3`,stylelint:`17.16.0`,tslib:`2.8.1`,tsx:`4.23.15`,typescript:`5.9.3`},peerDependencies:{"adopted-style-sheets":`1.1.9-rc.25`},files:[`assets`,`copy-assets.mjs`,`dist`,`doc`,`custom-elements.json`,`index.scss`,`loader`,`vscode-custom-data.json`]},Pi=C((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),W=C(((e,t)=>{t.exports=Pi()}))(),Fi=()=>(0,W.jsxs)(me,{_label:`This is an example page`,_level:0,_type:`info`,children:[(0,W.jsx)(`p`,{children:`You followed an example link.`}),history.length>1&&(0,W.jsx)(j,{_label:`Go Back`,_on:{onClick:()=>history.back()}})]});function Ii(){let e=matchMedia(`(max-width: 1023px)`),[t,n]=(0,E.useState)(e.matches);return(0,E.useEffect)(()=>{let t=e=>{n(e.matches)};return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}},[e]),t}function Li(e){return typeof e==`object`&&!!e}function Ri(e){if(!Li(e))return e;let t={};for(let[n,r]of Object.entries(e))t[n]=Ri(r);return t}function zi(e){return e.trim().toLowerCase().split(/\s+/).filter(Boolean)}function Bi(e,t){let n=e.map(e=>e.toLowerCase()),r=n.join(`/`);return t.every(e=>n.some(t=>t.includes(e))||r.includes(e))}function Vi(e,t,n){let r={};for(let[i,a]of Object.entries(e)){let e=[...n,i];if(Bi(e,t))r[i]=Ri(a);else if(Li(a)){let n=Vi(a,t,e);Object.keys(n).length>0&&(r[i]=n)}}return r}function Hi(e,t){let n=zi(t);return n.length===0?Ri(e):Vi(e,n,[])}function Ui({children:e}){return(0,W.jsx)(`div`,{className:`mt scrollable-container`,children:e})}function Wi({label:e,to:t,children:n,open:r}){let i=Fn(t),a=Rn({path:Un(t).pathname,end:!0});return(0,W.jsx)(Ye,{_label:e,_href:i,_active:!!a,_open:r,children:n})}function Gi({routes:e}){let[t,n]=(0,E.useState)(``),r=(0,E.useMemo)(()=>Hi(e,t),[e,t]),i=(e,t)=>Object.keys(t).map(t=>{let n=e===`tree`&&t===`basic/:subPage`;return(0,W.jsx)(Wi,{label:n?`basic`:t,to:[e,n?`basic/home`:t].join(`/`)},[e,t].join(`/`))}),a=Object.entries(r).map(([e,n])=>(0,W.jsx)(Wi,{label:e,to:e,open:!!t,children:i(e,n)},e));return(0,W.jsxs)(Ui,{children:[(0,W.jsx)(L,{_label:`Suche`,_on:{onInput:e=>{let t=e.target;n(t.value)}}}),(0,W.jsx)(`nav`,{className:`main-nav`,children:(0,W.jsx)(Je,{_label:`Navigation`,class:`block`,children:a})})]})}var Ki=(e,t)=>e.find(e=>e.key===t)?.name??t,qi=({buildDate:e,commitHash:t})=>!e&&!t?``:(0,W.jsx)(`div`,{className:`text-sm font-mono color-gray-5 m-t-2`,children:e&&t?(0,W.jsxs)(W.Fragment,{children:[`Build: `,t,(0,W.jsx)(`br`,{}),`at `,e]}):t?`Build: ${t}`:`Build date: ${e}`}),Ji=[{label:`Auto (follow the OS)`,value:`auto`},{label:`Light`,value:`light`},{label:`Dark (untested)`,value:`dark`}],Yi=({version:e,themes:t,theme:n,routes:r,routeList:i,sample:a,buildDate:o,commitHash:s,colorScheme:c,supportsDark:l,onThemeChange:u,onColorSchemeChange:d})=>{let f=()=>i.indexOf(a),p=()=>a.replace(/\//g,` `),m=(e,t)=>{u(t)},h=(e,t)=>{d(t)},g=l?void 0:`The ${Ki(t,n)} theme has no dark palette yet, so the scheme stays light.`,_=()=>{let e=f(),t=e<=0?i.length-1:e-1;location.replace(`#${i[t]}`)},v=()=>{let e=f(),t=e===i.length-1?0:e+1;location.replace(`#${i[t]}`)},y=(0,E.useMemo)(()=>t.map(e=>({label:e.name,value:e.key})),[t]),b=Ii(),x=Ln();(0,E.useEffect)(()=>{S.current?.close()},[x]);let S=(0,E.useRef)(null);return(0,W.jsx)(`aside`,{className:`app-sidebar p-4`,children:(0,W.jsxs)(`div`,{className:`scrollable-container-wrapper`,children:[(0,W.jsxs)(`div`,{className:`flex flex-justify-between flex-items-center`,children:[(0,W.jsx)(P,{_label:`KoliBri React`}),(0,W.jsx)(Xe,{_label:e})]}),(0,W.jsx)(qi,{buildDate:o,commitHash:s}),b?``:(0,W.jsx)(ze,{_label:`Theme`,_options:y,_on:{onChange:m},_value:n,class:`mt`}),b?``:(0,W.jsx)(ze,{_label:`Color scheme`,_disabled:!l,_hint:g,_options:Ji,_on:{onChange:h},_value:c,class:`mt`}),b?``:(0,W.jsx)(P,{_label:`Components`,_level:2,className:`block mt`}),(0,W.jsxs)(`div`,{className:`flex flex-justify-between flex-items-center mt`,children:[(0,W.jsx)(j,{_icons:`kolicon-chevron-left`,_hideLabel:!0,_label:`Previous component`,_on:{onClick:_}}),b?(0,W.jsxs)(`div`,{className:`flex gap-4 flex-items-center`,children:[(0,W.jsxs)(`span`,{className:`text-base text-center`,children:[p(),` (`,f()+1,`/`,i.length,`)`]}),(0,W.jsx)(j,{_label:`Navigation`,_hideLabel:!0,_icons:{right:`kolicon-settings`},_on:{onClick:()=>S.current?.showModal()}})]}):(0,W.jsxs)(`span`,{className:`text-base text-center`,children:[p(),` (`,f()+1,`/`,i.length,`)`]}),(0,W.jsx)(j,{_icons:`kolicon-chevron-right`,_hideLabel:!0,_label:`Next component`,_on:{onClick:v}})]}),b?(0,W.jsxs)(xe,{_align:`top`,_label:`Navigation`,_hasCloser:!0,ref:S,children:[(0,W.jsx)(ze,{_label:`Theme`,_options:y,_on:{onChange:m},_value:n,class:`mt`}),(0,W.jsx)(ze,{_label:`Color scheme`,_disabled:!l,_hint:g,_options:Ji,_on:{onChange:h},_value:c,class:`mt`}),(0,W.jsx)(P,{_label:`Components`,_level:2,className:`block mt`}),(0,W.jsx)(Gi,{routes:r})]}):(0,W.jsx)(Gi,{routes:r})]})})},Xi=[`auto`,`light`,`dark`],Zi=`data-kol-color-scheme`,Qi=`public-ui.sample.color-scheme`;function $i(e){return typeof e==`string`&&Xi.includes(e)}function ea(e){let{documentElement:t}=document;e===`auto`?(t.removeAttribute(Zi),t.style.removeProperty(`color-scheme`)):(t.setAttribute(Zi,e),t.style.setProperty(`color-scheme`,e))}function ta(e){try{localStorage.setItem(Qi,e)}catch{}}function na(){try{let e=localStorage.getItem(Qi);return $i(e)?e:`auto`}catch{return`auto`}}var ra=`colorScheme`,ia=e=>{let[t]=ei(),n=t.get(ra),[r,i]=(0,E.useState)(()=>$i(n)?n:na());(0,E.useEffect)(()=>{i($i(n)?n:na())},[n]);let a=e?r:`light`;(0,E.useEffect)(()=>{ea(a)},[a]);let o=(0,E.useRef)(a);return o.current=a,[a,(0,E.useCallback)(e=>{o.current!==e&&(i(e),ta(e))},[])]},aa=()=>{li(`#`+Ln().pathname)},oa=`data-visual-blocks`,sa=`public-ui.sample.visual-blocks`,ca=`data-visual-block-skipped`,la=`visual-block-outline-style`,ua=`
|
|
11
|
+
html[${oa}] [data-visual-block] {
|
|
12
|
+
outline: 2px solid darkblue;
|
|
13
|
+
outline-offset: 0;
|
|
14
|
+
}
|
|
15
|
+
html[${oa}] [${ca}] {
|
|
16
|
+
outline: 2px solid orangered;
|
|
17
|
+
outline-offset: 0;
|
|
18
|
+
}
|
|
19
|
+
`;function da(){if(document.getElementById(la))return;let e=document.createElement(`style`);e.id=la,e.textContent=ua,document.head.appendChild(e)}function fa(){return document.documentElement.hasAttribute(oa)}function pa(e,t=!0){if(da(),e?document.documentElement.setAttribute(oa,``):document.documentElement.removeAttribute(oa),t)try{localStorage.setItem(sa,e?`1`:`0`)}catch{}}function ma(){let e=!fa();return pa(e),e}function ha(){try{return localStorage.getItem(sa)===`1`}catch{return!1}}var ga=`visualBlocks`,_a=[`0`,`false`,`off`],va=()=>{let[e]=ei(),t=e.get(ga);(0,E.useEffect)(()=>{pa(t===null?ha():!_a.includes(t.toLowerCase()),!1)},[t]),(0,E.useEffect)(()=>{let e=e=>{e.ctrlKey&&e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`b`&&(e.preventDefault(),ma())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[])},ya=(0,E.createContext)(null);function ba(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}var xa={width:`fit-content`},G=({id:e,heading:t,level:n=2,className:r,fitContent:i,narrow:a,skipSnapshot:o,children:s,...c})=>(0,W.jsxs)(`section`,{...c,children:[t?(0,W.jsx)(P,{_level:n,_label:t}):null,(0,W.jsx)(`div`,{"data-visual-block":o?void 0:e,"data-visual-block-skipped":o?e:void 0,"data-visual-narrow":a&&!o?``:void 0,className:r??`grid gap-4`,style:i?xa:void 0,children:s})]}),Sa=`https://public-ui.github.io/docs/components`,Ca=`https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components`,K=`I am an error message!`,wa=`I am a hint.`,q=e=>{let t=(0,E.useContext)(ya),n=Ln(),r=n.pathname.split(`/`).slice(1),i=(0,E.useMemo)(()=>r[0]===`scenarios`?null:`${Sa}/${r[0]}`,[r]),a=(0,E.useMemo)(()=>r[0]===`scenarios`?null:`${Ca}/${r[0]}/${r[1]}.tsx`,[r]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`h1`,{className:`visually-hidden`,children:n.pathname.replace(/\//g,` `)}),t?null:(0,W.jsxs)(`div`,{className:`grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2`,children:[(0,W.jsx)(`div`,{className:`indented-text`,children:e.children}),(0,W.jsxs)(`ul`,{className:`flex flex-wrap gap-2 list-none m-0 p-0`,children:[a&&(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:a,_label:`Code`,_target:`_blank`})}),i&&(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:i,_label:`Documentation`,_target:`_blank`})}),(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#${n.pathname}?hideMenus`,_label:`Standalone example`,_target:`_blank`})})]})]})]})},Ta={abbr:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolAbbr shows an abbreviation.`})}),(0,W.jsx)(G,{id:`basic`,fitContent:!0,children:(0,W.jsxs)(`span`,{children:[`I am `,(0,W.jsx)(fe,{children:`e.g.`}),` an abbreviation.`]})})]})}},Ea={accordion:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolAccordion hides its content until opened. The open state can be toggled by clicking the headline or by setting the `,(0,W.jsx)(`code`,{children:`_open`}),`-prop programmatically. Additionally, the sample shows the disabled state for a closed and an open accordion.`]})}),(0,W.jsxs)(G,{id:`basic`,children:[(0,W.jsx)(pe,{_label:`Heading Accordion Tab 1 (open)`,_open:!0,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 1`})}),(0,W.jsx)(pe,{_label:`Heading Accordion Tab 2`,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 2`})}),(0,W.jsx)(pe,{_label:`Heading Accordion Tab 3 (deactivated)`,_disabled:!0,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 3`})}),(0,W.jsx)(pe,{_label:`Heading Accordion Tab 4 (disabled and open)`,_disabled:!0,_open:!0,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 4`})})]})]}),headlines:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolAccordion with the different heading levels from 1-6.`})}),(0,W.jsxs)(G,{id:`headlines`,children:[(0,W.jsx)(pe,{_label:`Heading Level 1`,_level:1,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 1`})}),(0,W.jsx)(pe,{_label:`Heading Level 2`,_level:2,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 2`})}),(0,W.jsx)(pe,{_label:`Heading Level 3`,_level:3,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 3`})}),(0,W.jsx)(pe,{_label:`Heading Level 4`,_level:4,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 4`})}),(0,W.jsx)(pe,{_label:`Heading Level 5`,_level:5,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 5`})}),(0,W.jsx)(pe,{_label:`Heading Level 6`,_level:6,children:(0,W.jsx)(`p`,{children:`Contents Accordion Tab 6`})})]})]}),multiple:()=>{let[e,t]=(0,E.useState)(0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Multiple KolAccordions. The first is opened initially. Opening one accordion closes the others.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(pe,{_label:`Heading Accordion Tab 1 (initially open)`,_open:e===0,_on:{onClick:()=>t(0)},children:(0,W.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 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.`})}),(0,W.jsx)(pe,{_label:`Heading Accordion Tab 2`,_open:e===1,_on:{onClick:()=>t(1)},children:(0,W.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 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.`})}),(0,W.jsx)(pe,{_label:`Heading Accordion Tab 3`,_open:e===2,_on:{onClick:()=>t(2)},children:(0,W.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 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.`})})]})]})}}},Da=({level:e,type:t,variant:n})=>(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(G,{id:t,className:`flex flex-col gap-2`,children:[(0,W.jsx)(me,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:t,_variant:n,children:`This is the text of the alert.`}),(0,W.jsx)(me,{_type:t,_variant:n,children:`In this alert, only the text without the heading is used.`}),(0,W.jsx)(me,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:t,_variant:n,_hasCloser:!0,children:`This is the text of the alert. With close button.`}),(0,W.jsx)(me,{_type:t,_variant:n,_hasCloser:!0,children:`In this alert, only the text without the heading is used. With close button.`})]})}),Oa=({variant:e=`msg`})=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Da,{level:1,type:`default`,variant:e}),(0,W.jsx)(Da,{level:2,type:`error`,variant:e}),(0,W.jsx)(Da,{level:3,type:`info`,variant:e}),(0,W.jsx)(Da,{level:4,type:`success`,variant:e}),(0,W.jsx)(Da,{level:5,type:`warning`,variant:e})]}),ka={alert:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolAlert shows messages of different types. This sample illustrates the variant `,(0,W.jsx)(`code`,{children:`msg`}),`, showing all possible types with and without headlines and close buttons.`]})}),(0,W.jsx)(Oa,{variant:`msg`})]}),"card-msg":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolAlert shows messages of different types. This sample illustrates the variant `,(0,W.jsx)(`code`,{children:`card`}),`, showing all possible types with and without headlines and close buttons.`]})}),(0,W.jsx)(`section`,{className:`w-full`,children:(0,W.jsx)(Oa,{variant:`card`})})]})}},Aa={avatar:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(G,{className:`flex gap-2`,id:`basic`,fitContent:!0,children:[(0,W.jsx)(he,{_src:`assets/img_avatar.jpg`,_label:`Elke Mustermann`}),(0,W.jsx)(he,{_label:`Elke Mustermann `}),(0,W.jsx)(he,{_label:`Marianne`}),(0,W.jsx)(he,{_color:`#0000FF`,_label:`Christian`})]})]}),size:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolAvatar is `,(0,W.jsx)(`code`,{children:`6.25rem`}),` (100px at the default 16px root font-size) wide/tall by default and simply fills its host element, so it can be resized proportionally with plain CSS `,(0,W.jsx)(`code`,{children:`width`}),` and/or `,(0,W.jsx)(`code`,{children:`height`}),` (set through the `,(0,W.jsx)(`code`,{children:`style`}),` prop). Setting only`,` `,(0,W.jsx)(`code`,{children:`width`}),` is the reliable way to size it below the default. If `,(0,W.jsx)(`code`,{children:`width`}),` and `,(0,W.jsx)(`code`,{children:`height`}),` are set to different values, the avatar stays square by using the larger of the two - it is centered on its host and may visually extend beyond it on the smaller axis. The initials' font size always scales with the resulting size automatically.`]})}),(0,W.jsxs)(G,{className:`flex flex-wrap items-center gap-4`,id:`size`,fitContent:!0,children:[(0,W.jsx)(he,{style:{width:`30px`},_label:`Elke Mustermann`}),(0,W.jsx)(he,{style:{width:`30px`,height:`45px`},_label:`Marianne`}),(0,W.jsx)(he,{style:{width:`60px`,height:`30px`},_color:`#0000FF`,_label:`Christian`}),(0,W.jsx)(he,{_src:`assets/img_avatar.jpg`,_label:`Elke Mustermann`}),(0,W.jsx)(he,{style:{width:`150px`},_src:`assets/img_avatar.jpg`,_label:`Elke Mustermann`})]})]})}},ja={badge:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolBadge shows badges with a label, background color and optional icon. The label supports markdown syntax and the badge can host an optional`,` `,(0,W.jsx)(`code`,{children:`smartButton`}),` – here a "remove" button with X-icon and a click event listener.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsxs)(G,{id:`basic-vertical`,heading:`Basic Badges vertical`,className:`flex flex-col gap-2`,fitContent:!0,children:[(0,W.jsx)(ge,{_label:`black (default)`}),(0,W.jsx)(ge,{_color:`#06539e`,_label:`blue`}),(0,W.jsx)(ge,{_color:`#ae0000`,_label:`red with icon`,_icons:`kolicon-house`}),(0,W.jsx)(ge,{_color:`#8b008b`,_label:`purple with icon`,_icons:`kolicon-kolibri`})]}),(0,W.jsxs)(G,{id:`basic-horizontal`,heading:`Basic Badges horizontal`,className:`flex flex-wrap gap-2`,fitContent:!0,children:[(0,W.jsx)(ge,{_label:`black`}),(0,W.jsx)(ge,{_color:`#06539e`,_label:`blue`}),(0,W.jsx)(ge,{_color:`#ae0000`,_label:`red with icon`,_icons:`kolicon-kolibri`})]}),(0,W.jsxs)(G,{id:`smart-button`,heading:`Badges with Smart Button`,className:`flex flex-col gap-2`,fitContent:!0,children:[(0,W.jsx)(ge,{_color:`#06539e`,_label:`blue`,_smartButton:{_ariaDescription:`blue`,_icons:`kolicon-cross`,_label:`Remove`,_on:{onClick:()=>alert(`clicked`)}}}),(0,W.jsx)(ge,{_color:`#8b008b`,_icons:`kolicon-kolibri`,_label:`purple with icon`,_smartButton:{_ariaDescription:`purple with icon`,_icons:`kolicon-cross`,_label:`Remove`,_on:{onClick:()=>alert(`clicked`)}}})]}),(0,W.jsxs)(G,{id:`formatted-label`,heading:`Formatted Label`,className:`flex flex-col gap-2`,fitContent:!0,children:[(0,W.jsx)(ge,{_color:`#7db4ebff`,_label:`**Bold** and _italic_ Markdown label`}),(0,W.jsx)(ge,{_color:`#8feb7dff`,_label:`This is ~~strikethrough~~ text`}),(0,W.jsx)(ge,{_color:`#e6ee8eff`,_label:"Source code like `y = mx + n` is possible"})]})]})]})}},Ma=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolBreadcrumb shows a breadcrumb navigation. The sample illustrates a variation of link, text and icon elements.`})}),(0,W.jsxs)(G,{id:`basic`,narrow:!0,children:[(0,W.jsx)(_e,{_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`}]}),(0,W.jsx)(_e,{_label:`Breadcrumb from icons or text links`,_links:[{_label:`Homepage`,_icons:`kolicon-house`,_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`}]}),(0,W.jsx)(_e,{_label:`Breadcrumb from icons and text links`,_links:[{_label:`Homepage`,_icons:`kolicon-house`,_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`}]}),(0,W.jsx)(_e,{_label:`Minimal Breadcrumb`,_links:[{_label:`Homepage`,_href:`#/back-page`}]})]})]}),Na=JSON.stringify([{_label:`Homepage`,_icons:`kolicon-house`,_hideLabel:!0,_href:`#/back-page`},{_label:`Services`,_href:`#/back-page`},{_label:`Apply for a permit`,_href:`#/back-page`}]),Pa={breadcrumb:{basic:Ma,"json-links":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`The `,(0,W.jsx)(`code`,{children:`_links`}),` of KolBreadcrumb can also be passed as JSON string, e.g. through an HTML attribute; the result is the same as with an array. Every entry needs an `,(0,W.jsx)(`code`,{children:`_href`}),`, and an entry with `,(0,W.jsx)(`code`,{children:`_hideLabel`}),` shows only its icon.`]})}),(0,W.jsx)(G,{id:`json-links`,narrow:!0,children:(0,W.jsx)(_e,{_label:`Breadcrumb from a JSON string`,_links:Na})})]})}},Fa=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolButtonLink with aria-description`})}),(0,W.jsxs)(G,{id:`aria-description`,className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(M,{_label:`Button Text without area description`}),(0,W.jsx)(M,{_label:`Button Text`,_ariaDescription:`Button Area Description`})]})]});function Ia(){let e=e=>{alert(e||`The Element was clicked`)};return{dummyClickEventHandler:()=>{e()},buttonWithTextClickEventHandler:t=>{let n=t.currentTarget.textContent;e(n)}}}var La={"button-link":{basic:()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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 `,(0,W.jsx)(`code`,{children:`block`}),`, `,(0,W.jsx)(`code`,{children:`inline-block`}),` and `,(0,W.jsx)(`code`,{children:`inline`}),`. It also demonstrates the disabled-state.`]})}),(0,W.jsx)(P,{_level:2,_label:`Button-Link with _inline`}),(0,W.jsxs)(`p`,{children:[`In this paragraph, a link is inserted that contains no additional attributes. `,(0,W.jsx)(M,{_label:`Simple Link`}),` It is rendered by default as an`,` `,(0,W.jsx)(`strong`,{children:`inline element`}),`.`]}),(0,W.jsxs)(`p`,{children:[`In this paragraph, a link is inserted that is rendered as an inline-block element.`,(0,W.jsx)(M,{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.`,(0,W.jsx)(`br`,{}),(0,W.jsx)(`br`,{}),`After that, there is a link that is rendered as a block element.`,(0,W.jsx)(M,{style:{display:`block`},_label:`Simple Link`}),`Therefore, I go over the entire width of the parent element to create a line break.`]}),(0,W.jsx)(P,{_level:2,_label:`Button-Link with _inline={false}`}),(0,W.jsx)(`p`,{children:`Use the boolean _inline property to render the link inline (default) or standalone.`}),(0,W.jsx)(G,{id:`basic`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,W.jsx)(M,{_label:`Standalone ButtonLink`,_inline:!1,_on:t})}),(0,W.jsx)(G,{id:`disabled`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,W.jsx)(M,{_label:`Disabled ButtonLink`,_disabled:!0,_inline:!1})}),(0,W.jsx)(G,{id:`access-key`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,W.jsx)(M,{_label:`With access key`,_accessKey:`c`,_inline:!1,_on:t})}),(0,W.jsx)(G,{id:`short-key`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,W.jsx)(M,{_label:`With short key`,_shortKey:`s`,_inline:!1,_on:t})}),(0,W.jsx)(G,{id:`variant`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,W.jsx)(M,{_label:`Special Variant ButtonLink`,_variant:`theme-link`})})]})},icons:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolButtonLink with icons in different locations.`})}),(0,W.jsx)(G,{id:`left`,fitContent:!0,children:(0,W.jsx)(M,{_icons:`kolicon-house`,_label:`I am a link with an icon on the left`})}),(0,W.jsx)(G,{id:`right`,fitContent:!0,children:(0,W.jsx)(M,{_icons:{right:`kolicon-house`},_label:`I am a link with an icon on the right`})}),(0,W.jsx)(G,{id:`top`,fitContent:!0,children:(0,W.jsx)(M,{_icons:{top:`kolicon-house`},_label:`I am a link with an icon at the top`})}),(0,W.jsx)(G,{id:`bottom`,fitContent:!0,children:(0,W.jsx)(M,{_icons:{bottom:`kolicon-house`},_label:`I am a link with icon below`})}),(0,W.jsx)(G,{id:`all`,fitContent:!0,children:(0,W.jsx)(M,{_icons:{top:`kolicon-house`,right:`kolicon-house`,bottom:`kolicon-house`,left:`kolicon-house`},_label:`I am a link with all icons`})}),(0,W.jsx)(G,{id:`hide-label`,fitContent:!0,children:(0,W.jsx)(M,{_icons:`kolicon-house`,_hideLabel:!0,_label:`I am a link with icon only`})})]}),"aria-description":Fa}},Ra=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This story demonstrates buttons with`,` `,(0,W.jsx)(R,{_label:`access keys`,_href:`https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey`,_target:`blank`}),`. Access keys allow users to trigger buttons using keyboard shortcuts.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`buttons-access-keys`,heading:`Buttons with Access Keys`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_label:`With S access key`,_accessKey:`S`,_on:t}),(0,W.jsx)(j,{_label:`Very small b`,_accessKey:`b`,_on:t}),(0,W.jsx)(j,{_label:`Access key does not appear in label`,_accessKey:`x`,_on:t})]})}),(0,W.jsx)(G,{id:`access-key-hidden-label`,heading:`Access Key with Hidden Label`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_label:`access key without label`,_hideLabel:!0,_accessKey:`a`,_icons:`kolicon-cogwheel`,_on:t})})}),(0,W.jsx)(G,{id:`access-key-inline-icons`,heading:`Access Key with Inline Icons`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_label:`with inline icons`,_icons:{left:`kolicon-cogwheel`,right:`kolicon-cogwheel`},_accessKey:`n`,_on:t})})})]})]})},za=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates buttons with ARIA descriptions. The aria-description attribute provides additional descriptive text for screen readers, helping users understand the button's purpose or action in more detail.`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsx)(G,{id:`buttons-aria-description`,heading:`Buttons with and without ARIA Description`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_label:`Button without ARIA description`,_on:t}),(0,W.jsx)(j,{_label:`Button with ARIA description`,_ariaDescription:`This button performs an important action`,_on:t})]})})})]})},Ba=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates button baseline alignment. It shows multiple buttons with and without icons that are vertically aligned, useful for testing layout consistency.`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsx)(G,{id:`vertically-aligned-buttons`,heading:`Vertically Aligned Buttons`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(j,{_label:`Label-Text`,_on:t}),(0,W.jsx)(j,{_icons:`kolicon-cogwheel`,_label:`Label-Text with Icon`,_on:t})]})})})]})},Va={name:`Unstyled (Uncolored)`,key:`unstyled`},Ha=[{name:`Default`,key:`default`},{name:`BWSt (v4)`,key:`bwst`},{name:`European Commission (v4)`,key:`ecl-ec`},{name:`European Union (in progress)`,key:`ecl-eu`},{name:`KERN-UX Standard (v2)`,key:`kern-v2`},{name:`Zoll Design System (v11)`,key:`desy-v11`}],Ua=[`default`],Wa=()=>[Va,...Ha],Ga=e=>`theme-variant-data:${e}`,Ka=e=>`assets/variants/inject-variants_${e}.json`,qa=(e=Wa())=>new Map(e.map(({key:e})=>[Ga(e),Ka(e)])),Ja=new Map,Ya=new Map,Xa=new Set,Za=async(e,t)=>{try{let n=await fetch(t);if(n.status===404)return;if(!n.ok){console.warn(`Error fetching sample app data: HTTP `+n.status);return}let r=await n.json();r&&typeof r==`object`&&!Array.isArray(r)&&Ja.set(e,r)}catch(e){console.warn(`Sample app data file could not be loaded or parsed`,e)}},Qa=(e,t)=>{let n=Ya.get(e);return n||(n=Za(e,t).then(()=>{Xa.add(e)}),Ya.set(e,n)),n},$a={getValue:e=>Ja.get(e),initialize:async e=>{await Promise.all(Array.from(qa(e),([e,t])=>Qa(e,t)))},isInitialized:e=>Array.from(qa(e).keys()).every(e=>Xa.has(e))};function eo(e,t){let n=$a.getValue(Ga(e))?.[t];return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}var to=`public-ui.v${Ni.version}`,no=class{store=new Map;setItem(e,t){this.store.set(e,t)}getItem(e){return this.store.get(e)||null}},ro={darkMode:!1,theme:`default`,registeredThemes:[]},io;function J(e){io=e;let t=io.getItem(to);try{let e=JSON.parse(t);typeof e==`object`&&e&&(ro.darkMode=e.darkMode===!0,typeof e.theme==`string`&&e.theme.length>0&&(ro.theme=e.theme))}catch{}}J(new no);var ao=()=>{io.setItem(to,JSON.stringify(ro))},oo=e=>{ro.registeredThemes=e,so(ro.theme)||(ro.theme=ro.nextTheme??e[1]?.key??Va.key,delete ro.nextTheme),ao()},so=e=>ro.registeredThemes.findIndex(t=>t.key===e)!==-1||e===Va.key,co=e=>{if(so(e))ro.theme=e;else if(e)ro.nextTheme=e;else throw Error(`The theme identifier "${e}" is not valid or an available option.`);ao()},lo=()=>ro.theme??Va.key,uo=e=>{if(ro.registeredThemes.length===0)return e;if(so(e))return ro.registeredThemes.find(t=>t.key===e)?.name;throw Error(`The theme identifier "${e}" is not valid or an available option.`)},fo=e=>{ro.customThemes=e},po=()=>{let{dummyClickEventHandler:e}=Ia(),[t]=ei(),n=t.get(`theme`)??lo(),r=(0,E.useMemo)(()=>n?eo(n,`buttonVariants`):[],[n]),i={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates the most important features of the KolButton component. It showcases the different button variants, icons, disabled state, and hidden labels. All available button variants for this theme are shown. You can import ButtonVariantsEnum from your theme to always use the right variants.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`variants`,heading:`Button Variants`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(r)||r.length===0?(0,W.jsx)(`p`,{children:`This theme has no variants for this component.`}):r.map(e=>(0,W.jsx)(j,{_icons:`kolicon-house`,_label:`${e}`,_variant:e,_on:i},e))})}),(0,W.jsx)(G,{id:`disabled`,heading:`Disabled State`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(r)||r.length===0?(0,W.jsx)(`p`,{children:`This theme has no variants for this component.`}):r.map(e=>(0,W.jsx)(j,{_icons:`kolicon-house`,_label:`${e}`,_variant:e,_on:i,_disabled:!0},e))})}),(0,W.jsx)(G,{id:`hide-label`,heading:`Hidden Label (Icon Only)`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(r)||r.length===0?(0,W.jsx)(`p`,{children:`This theme has no variants for this component.`}):r.map(e=>(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-settings`,_label:`${e}`,_variant:e,_on:i},e))})}),(0,W.jsx)(G,{id:`icon-positions`,heading:`Icon Positions`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:{left:`kolicon-chevron-left`},_label:`Icon Left`,_on:i}),(0,W.jsx)(j,{_icons:{right:`kolicon-chevron-right`},_label:`Icon Right`,_on:i}),(0,W.jsx)(j,{_icons:{left:`kolicon-chevron-left`,right:`kolicon-chevron-right`},_label:`Icons Both Sides`,_on:i})]})})]})]})},mo=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`All this buttons are in a grid with fixed height (60px) and width (25% of screen) and should accept this dimensions.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4 fixed-height-grid`,children:[(0,W.jsx)(j,{_variant:`primary`,_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,W.jsx)(j,{_variant:`primary`,_hideLabel:!0,_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,W.jsx)(z,{_variant:`primary`,_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t}),(0,W.jsx)(z,{_variant:`primary`,_hideLabel:!0,_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t})]})]})},ho=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates the disabled state of buttons. Disabled buttons are not clickable and appear visually dimmed.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`disabled`,heading:`Disabled Buttons`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-house`,_label:`Primary`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-kolibri`,_label:`Secondary`,_variant:`secondary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-cogwheel`,_label:`Tertiary`,_variant:`tertiary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-cogwheel`,_label:`Normal`,_variant:`normal`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-alert-warning`,_label:`Danger`,_variant:`danger`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-eye-closed`,_label:`Ghost`,_variant:`ghost`,_on:t})]})}),(0,W.jsx)(G,{id:`comparison`,heading:`Comparison: Enabled vs Disabled`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:`kolicon-house`,_label:`Enabled`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled`,_variant:`primary`,_on:t})]})})]})]})},go=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates the expert slot feature of KolButton. The expert slot allows you to insert custom content into the button, providing advanced customization options beyond the standard label and icon properties.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`buttons-expert-slot-content`,heading:`Buttons with Expert Slot Content`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:`kolicon-house`,_label:``,_variant:`primary`,_on:t,children:(0,W.jsx)(`span`,{slot:`expert`,children:`I am more than just a button`})}),(0,W.jsx)(j,{_icons:`kolicon-kolibri`,_label:``,_variant:`secondary`,_on:t,children:(0,W.jsx)(`span`,{slot:`expert`,children:`Custom content here`})}),(0,W.jsx)(j,{_icons:`kolicon-alert-warning`,_label:``,_variant:`danger`,_on:t,children:(0,W.jsx)(`span`,{slot:`expert`,children:`Delete with custom text`})}),(0,W.jsx)(j,{_label:``,_variant:`danger`,_on:t,children:(0,W.jsx)(Ce,{_icons:`kolicon-alert-warning`,_label:`Delete with custom text`,slot:`expert`})})]})}),(0,W.jsx)(G,{id:`disabled-buttons-expert-slot`,heading:`Disabled Buttons with Expert Slot`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-house`,_label:``,_variant:`primary`,_on:t,children:(0,W.jsx)(`span`,{slot:`expert`,children:`Disabled expert slot`})}),(0,W.jsx)(j,{_disabled:!0,_icons:`kolicon-eye-closed`,_label:``,_variant:`ghost`,_on:t,children:(0,W.jsx)(`span`,{slot:`expert`,children:`Another disabled one`})})]})})]})]})},_o=[{label:`Auto (instant)`,value:`auto`},{label:`Smooth (animated)`,value:`smooth`}],vo=[{label:`Start`,value:`start`},{label:`Center`,value:`center`},{label:`End`,value:`end`},{label:`Nearest`,value:`nearest`}],yo=[{label:`Behavior`,key:`behavior`,options:_o},{label:`Block (vertical alignment)`,key:`block`,options:vo},{label:`Inline (horizontal alignment)`,key:`inline`,options:vo}],bo={padding:`1rem`,marginTop:`1rem`,border:`1px solid #ccc`},xo=()=>{let e=(0,E.useRef)(null),t=(0,E.useRef)(null),[n,r]=(0,E.useState)({behavior:`auto`,block:`start`,inline:`start`}),[i,a]=(0,E.useState)(!1),o=(0,E.useCallback)(async()=>{e.current&&(a(!1),await e.current.focus({...n,afterFocus:()=>{a(!0)}}))},[n]),s=(0,E.useCallback)(async()=>{t.current&&(a(!1),await t.current.focus({...n,afterFocus:()=>{a(!0)}}))},[n]),c=(0,E.useCallback)((e,t)=>{r(n=>({...n,[e]:t}))},[]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates KolFocusOptions for manual focus control with scroll-into-view behavior. It showcases vertical scrolling (element positioned below viewport) and horizontal scrolling (element positioned outside viewport). The focus options control how the element is scrolled into view, with the afterFocus callback triggering after scrolling completes.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsxs)(G,{id:`scroll-behavior-options`,heading:`Scroll Behavior Options`,children:[(0,W.jsxs)(`p`,{children:[`These options control how elements are scrolled into view. `,(0,W.jsx)(`code`,{children:`preventScroll`}),` and `,(0,W.jsx)(`code`,{children:`focusVisible`}),` are always enabled for optimal focus management. Customize the scroll behavior and alignment below:`]}),(0,W.jsx)(`div`,{className:`grid gap-4`,children:yo.map((e,r)=>(0,W.jsx)(`div`,{className:`grid gap-2`,children:(0,W.jsx)(ze,{ref:r===0?t:null,_label:e.label,_options:e.options,_value:n[e.key],_on:{onChange:(t,n)=>{c(e.key,n)}}})},e.key))})]}),(0,W.jsxs)(G,{id:`scroll-example`,heading:`Scroll Example`,children:[(0,W.jsx)(`p`,{children:`The target button is positioned bottom-right. Scroll down and right to find it, then click "Focus Target" to apply scroll behavior.`}),(0,W.jsx)(`div`,{className:`flex gap-4`,children:(0,W.jsx)(j,{_label:`Focus Target`,_variant:`primary`,onClick:o})}),(0,W.jsxs)(`p`,{children:[`Callback invoked: `,(0,W.jsx)(`strong`,{children:i?`Yes ✓`:`No`})]}),(0,W.jsx)(`div`,{style:{...bo,overflow:`auto`,width:`500px`,height:`600px`},children:(0,W.jsxs)(`div`,{style:{width:`2400px`,height:`2400px`,padding:`1rem`,position:`relative`},children:[(0,W.jsx)(`div`,{style:{padding:`1rem`,backgroundColor:`#f9f9f9`,borderRadius:`4px`},children:`Content area (scroll to find button)`}),(0,W.jsx)(j,{ref:e,_label:`Back to Top`,_variant:`primary`,onClick:s,style:{position:`absolute`,bottom:`1rem`,right:`1rem`}})]})})]}),(0,W.jsx)(`hr`,{}),(0,W.jsx)(G,{id:`about-kol-focus-options`,heading:`About KolFocusOptions`,children:(0,W.jsxs)(`div`,{className:`indented-text`,children:[(0,W.jsx)(`p`,{children:`KolFocusOptions enables advanced focus control with scroll-into-view behavior:`}),(0,W.jsxs)(`ul`,{className:`list-disc pl-5`,children:[(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`preventScroll:`}),` Always enabled — prevents browser auto-scroll and uses custom scroll options instead`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`focusVisible:`}),` Always enabled — ensures the focus ring is visible after focus`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`behavior:`}),` "auto" (instant) or "smooth" (animated) scroll`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`block:`}),` Vertical alignment (start, center, end, nearest)`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`inline:`}),` Horizontal alignment (start, center, end, nearest)`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`afterFocus:`}),` Optional callback invoked after focus and scroll complete`]})]})]})})]})]})},So=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates buttons with hidden labels. The label is still accessible to screen readers but visually hidden, showing only the icon. This is useful for icon-only buttons.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`hide-label`,heading:`Buttons with Hidden Labels`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-kolibri`,_label:`Like`,_variant:`secondary`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Subscribe`,_variant:`tertiary`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Buy me a coffee`,_variant:`normal`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-alert-warning`,_label:`Delete`,_variant:`danger`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-eye-closed`,_label:`Settings`,_variant:`ghost`,_on:t})]})}),(0,W.jsx)(G,{id:`comparison`,heading:`Comparison: With and Without Hidden Label`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t})]})}),(0,W.jsx)(G,{id:`disabled`,heading:`Disabled with Hidden Label`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-kolibri`,_label:`Like`,_variant:`secondary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Subscribe`,_variant:`tertiary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Buy me a coffee`,_variant:`normal`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-alert-warning`,_label:`Delete`,_variant:`danger`,_on:t})]})})]})]})},Co=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases buttons with icons in various positions and configurations. Icons can be placed on the left, right, top, bottom, or in multiple positions at once.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`basic-positions`,heading:`Basic Icon Positions`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:{left:`kolicon-chevron-left`},_label:`Icon Left`,_on:t}),(0,W.jsx)(j,{_icons:{right:`kolicon-chevron-right`},_label:`Icon Right`,_on:t}),(0,W.jsx)(j,{_icons:{top:`kolicon-chevron-up`},_label:`Icon Top`,_on:t}),(0,W.jsx)(j,{_icons:{bottom:`kolicon-chevron-down`},_label:`Icon Bottom`,_on:t})]})}),(0,W.jsx)(G,{id:`multiple-positions`,heading:`Multiple Icon Positions`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:{left:`kolicon-chevron-left`,right:`kolicon-chevron-right`},_label:`Left & Right`,_on:t}),(0,W.jsx)(j,{_icons:{top:`kolicon-chevron-up`,bottom:`kolicon-chevron-down`},_label:`Top & Bottom`,_on:t})]})}),(0,W.jsx)(G,{id:`all-positions`,heading:`All Icon Positions`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_icons:{top:`kolicon-chevron-up`,bottom:`kolicon-chevron-down`,left:`kolicon-chevron-left`,right:`kolicon-chevron-right`},_label:`All Directions`,_on:t})})}),(0,W.jsx)(G,{id:`icon-string`,heading:`Simple Icon String`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:`kolicon-house`,_label:`Home Icon`,_on:t}),(0,W.jsx)(j,{_icons:`kolicon-kolibri`,_label:`Heart Icon`,_on:t}),(0,W.jsx)(j,{_icons:`kolicon-alert-warning`,_label:`Trash Icon`,_on:t})]})}),(0,W.jsx)(G,{id:`large-icon`,heading:`Large Icon on Top`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_icons:{top:{style:{"font-size":`400%`},icon:`kolicon-house`}},_label:`Home`,_on:t})})})]})]})},wo=[`Quarterly report`,`Meeting notes`,`Travel expenses`],To=()=>{let[e,t]=(0,E.useState)([`Meeting notes`]),n=e=>t(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This story shows a button toggling between the two pin icons, `,(0,W.jsx)(`code`,{children:`kolicon-pin-pinned`}),` and `,(0,W.jsx)(`code`,{children:`kolicon-pin-unpinned`}),`. Icon and label change together, so the current state is conveyed visually as well as to screen readers.`]})}),(0,W.jsx)(G,{id:`pin-toggle`,heading:`Pin and unpin items`,fitContent:!0,children:(0,W.jsx)(`ul`,{className:`grid gap-2 list-none m-0 p-0`,children:wo.map(t=>{let r=e.includes(t);return(0,W.jsxs)(`li`,{className:`flex gap-2 items-center`,children:[(0,W.jsx)(j,{_hideLabel:!0,_icons:r?`kolicon-pin-pinned`:`kolicon-pin-unpinned`,_label:r?`Unpin ${t}`:`Pin ${t}`,_on:{onClick:()=>n(t)}}),(0,W.jsx)(`span`,{children:t})]},t)})})})]})},Eo=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story 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).`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsx)(G,{id:`button-row-reverse-container`,heading:`Button in Row-Reverse Container`,children:(0,W.jsx)(`div`,{className:`flex flex-row-reverse`,children:(0,W.jsx)(j,{_icons:`kolicon-house`,_hideLabel:!0,_label:`This is a very, very long tooltip text that exceeds the width.`,_variant:`primary`})})})})]}),Do=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e},n=E.useRef(e);return E.useEffect(()=>{n.current=e},[e]),E.useEffect(()=>{let e=e=>{e.altKey&&e.code===`KeyM`&&(e.preventDefault(),n.current())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates buttons with short keys. The short key is displayed as a visual indicator within the button label to communicate a recommended keyboard shortcut to the user.`})}),(0,W.jsxs)(me,{_label:`Short keys are display-only`,_type:`info`,_variant:`card`,children:[(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`code`,{children:`_shortKey`}),` is `,(0,W.jsx)(`strong`,{children:`purely visual and assistive`}),`: it renders the badge and announces the shortcut via`,` `,(0,W.jsx)(`code`,{children:`aria-keyshortcuts`}),`, but it does `,(0,W.jsx)(`strong`,{children:`not`}),` bind a keyboard handler. Pressing the displayed combination on its own does nothing – you have to register the listener yourself (see the interactive example below).`]}),(0,W.jsxs)(`p`,{children:[`If you need a native, browser-handled shortcut instead, use`,` `,(0,W.jsx)(R,{_label:`_accessKey`,_href:`https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey`,_target:`_blank`}),`. Note that native access keys are triggered in a browser-specific way (e.g. `,(0,W.jsx)(`kbd`,{children:`Alt`}),` + `,(0,W.jsx)(`kbd`,{children:`Shift`}),` + key in Chrome on Windows).`]})]}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`short-keys`,heading:`Buttons with Short Keys`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_label:`With S short key`,_shortKey:`S`,_on:t}),(0,W.jsx)(j,{_label:`Very small b`,_shortKey:`b`,_on:t}),(0,W.jsx)(j,{_label:`Short key does not appear in label`,_shortKey:`x`,_on:t})]})}),(0,W.jsx)(G,{id:`hide-label`,heading:`Short Key with Hidden Label`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_label:`short key without label`,_hideLabel:!0,_shortKey:`k`,_icons:`kolicon-cogwheel`,_on:t})})}),(0,W.jsx)(G,{id:`inline-icons`,heading:`Short Key with Inline Icons`,fitContent:!0,children:(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_label:`with inline icons`,_icons:{left:`kolicon-cogwheel`,right:`kolicon-cogwheel`},_shortKey:`n`,_on:t})})}),(0,W.jsxs)(`p`,{children:[`This button wires the announced short key up manually: a `,(0,W.jsx)(`code`,{children:`keydown`}),` listener triggers the same action as a click. Press `,(0,W.jsx)(`kbd`,{children:`Alt`}),` +`,` `,(0,W.jsx)(`kbd`,{children:`M`}),` (or click the button) to open the toast.`]}),(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,W.jsx)(j,{_label:`With working M short key`,_shortKey:`m`,_on:t})})]})]})},Oo=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates icon-only buttons with an animated spinning loader icon. The animation is applied using CSS parts to target the icon element directly.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`animated-spinner-icon-css-part`,heading:`Animated Spinner Icon via CSS Part`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{className:`spinner-button`,_hideLabel:!0,_icons:{left:`kolicon-cogwheel`},_label:`Loading`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{className:`spinner-button spinner-slow`,_hideLabel:!0,_icons:{left:`kolicon-cogwheel`},_label:`Syncing`,_variant:`secondary`,_on:t}),(0,W.jsx)(j,{className:`spinner-button spinner-slower`,_hideLabel:!0,_icons:{left:`kolicon-cogwheel`},_label:`Processing`,_variant:`tertiary`,_on:t})]})}),(0,W.jsx)(G,{id:`spinner-label`,heading:`Spinner with Label`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{className:`spinner-button`,_icons:{left:`kolicon-cogwheel`},_label:`Loading...`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{className:`spinner-button`,_icons:{left:`kolicon-cogwheel`},_label:`Syncing...`,_variant:`secondary`,_on:t})]})})]}),(0,W.jsx)(`style`,{children:`
|
|
20
|
+
@keyframes spin {
|
|
21
|
+
from {
|
|
22
|
+
transform: rotate(0deg);
|
|
23
|
+
}
|
|
24
|
+
to {
|
|
25
|
+
transform: rotate(360deg);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Target the icon part inside the button */
|
|
30
|
+
.spinner-button::part(icon) {
|
|
31
|
+
animation: spin 1s linear infinite;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.spinner-slow::part(icon) {
|
|
35
|
+
animation-duration: 1.5s;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.spinner-slower::part(icon) {
|
|
39
|
+
animation-duration: 2s;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (prefers-reduced-motion) {
|
|
43
|
+
.spinner-button::part(icon){
|
|
44
|
+
animation-duration: 10s;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`})]})},ko=[`top`,`right`,`bottom`,`left`],Ao={button:{basic:po,disabled:ho,"hide-label":So,icons:Co,"pin-toggle":To,spinner:Oo,width:()=>{let{dummyClickEventHandler:e}=Ia(),t={className:`w-8rem`,_on:{onClick:e}};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates buttons with custom widths. You can control the button width using CSS classes.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`fixed-width-buttons-8rem`,heading:`Fixed Width Buttons (8rem)`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_label:`Primary`,_variant:`primary`,...t}),(0,W.jsx)(j,{_label:`Secondary`,_variant:`secondary`,...t}),(0,W.jsx)(j,{_label:`Normal`,_variant:`normal`,...t}),(0,W.jsx)(j,{_label:`Danger`,_variant:`danger`,...t}),(0,W.jsx)(j,{_label:`Ghost`,_variant:`ghost`,...t})]})}),(0,W.jsx)(G,{id:`fixed-width-disabled-buttons`,heading:`Fixed Width Disabled Buttons (8rem)`,fitContent:!0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_disabled:!0,_label:`Primary`,_variant:`primary`,...t}),(0,W.jsx)(j,{_disabled:!0,_label:`Secondary`,_variant:`secondary`,...t}),(0,W.jsx)(j,{_disabled:!0,_label:`Normal`,_variant:`normal`,...t}),(0,W.jsx)(j,{_disabled:!0,_label:`Danger`,_variant:`danger`,...t}),(0,W.jsx)(j,{_disabled:!0,_label:`Ghost`,_variant:`ghost`,...t})]})})]})]})},"access-key":Ra,"aria-description":za,baselined:Ba,"short-key":Do,"expert-slot":go,"row-reverse-tooltip":Eo,"tooltip-align":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`With a hidden label, the label is shown as tooltip on hover and focus. `,(0,W.jsx)(`code`,{children:`_tooltipAlign`}),` places it on one of the four sides. A button places it on top by default, a link on the right.`]}),(0,W.jsx)(`p`,{children:`Hover or focus the elements to see the tooltips.`})]}),(0,W.jsxs)(G,{id:`tooltip-align`,className:`grid grid-cols-2 gap-16 p-16 justify-items-center`,skipSnapshot:!0,children:[ko.map(e=>(0,W.jsx)(j,{_label:`Tooltip ${e}`,_icons:`kolicon-alert-info`,_hideLabel:!0,_tooltipAlign:e},e)),(0,W.jsx)(j,{_label:`Button with default (top)`,_icons:`kolicon-check`,_hideLabel:!0}),(0,W.jsx)(R,{_label:`Link with default (right)`,_icons:`kolicon-link`,_hideLabel:!0,_href:`#/back-page`})]})]}),"focus-options":xo,"fixed-grid":mo}},jo={card:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolCard shows a card with title and slot content. The second sample features a close button.`})}),(0,W.jsxs)(G,{id:`basic`,className:`w-full grid grid-cols-2 gap-4`,narrow:!0,children:[(0,W.jsx)(N,{_label:`Card with title and content`,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with closer`,_hasCloser:!0,children:(0,W.jsx)(`p`,{children:`This card has a close button.`})})]})]}),"closer-callback":()=>{let[e,t]=(0,E.useState)(!0),[n,r]=(0,E.useState)(0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`The close button of KolCard calls `,(0,W.jsx)(`code`,{children:`_on.onClose`}),`. The card does not hide itself; the application decides what happens. Here the callback removes the card, and the button below brings it back.`]})}),(0,W.jsxs)(G,{id:`closer-callback`,className:`grid gap-4`,skipSnapshot:!0,children:[e?(0,W.jsx)(N,{_label:`Card that closes itself`,_hasCloser:!0,_on:{onClose:()=>{t(!1),r(e=>e+1)}},children:(0,W.jsx)(`p`,{children:`Click the close button to remove the card.`})}):(0,W.jsx)(j,{_label:`Show the card again`,_on:{onClick:()=>t(!0)}}),(0,W.jsxs)(`p`,{"aria-live":`polite`,children:[`Closed `,n,` time(s).`]})]})]})},headlines:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows cards with all headline levels as title.`})}),(0,W.jsxs)(G,{id:`headlines`,className:`w-full grid grid-cols-2 gap-4`,children:[(0,W.jsx)(N,{_label:`Card with headline level 0`,_level:0,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with headline level 1`,_level:1,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with headline level 2`,_level:2,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with headline level 3`,_level:3,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with headline level 4`,_level:4,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with headline level 5`,_level:5,children:(0,W.jsx)(`p`,{children:`Card contents.`})}),(0,W.jsx)(N,{_label:`Card with headline level 6`,_level:6,children:(0,W.jsx)(`p`,{children:`Card contents.`})})]})]}),linked:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolCards with links. The headline is wrapped with an a-tag. The whole card is clickable.`})}),(0,W.jsxs)(G,{id:`linked`,className:`w-full grid grid-cols-2 gap-4`,children:[(0,W.jsx)(N,{_label:`Card with title and content`,_href:`#/back-page`,children:(0,W.jsx)(`p`,{children:`This card has a link.`})}),(0,W.jsx)(N,{_label:`Card with title and content`,_href:`#/back-page`,_target:`_blank`,children:(0,W.jsx)(`p`,{children:`This card has a link and a target.`})})]})]})}},Mo=({RefComponent:e,showButtons:t=!0,...n})=>(0,W.jsx)(Se,{className:`w-full`,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(e,{...n}),t&&(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(j,{_label:`Submit`,_icons:`kolicon-chevron-right`,_type:`submit`,_variant:`primary`}),(0,W.jsx)(j,{_label:`Bunte Icons`,_icons:{left:{icon:`kolicon-house`,style:{color:`#cc006e`}},right:{icon:`kolicon-kolibri`,style:{color:`#b41b1b`}}},_type:`submit`,_variant:`secondary`}),(0,W.jsx)(j,{_label:`Reset`,_type:`reset`,_variant:`tertiary`}),(0,W.jsx)(j,{_label:`Help`,_variant:`ghost`})]})]})});function No({children:e}){let[t]=ei(),n=t.has(`noColumns`);return(0,W.jsx)(`div`,{className:n?``:`grid md:grid-cols-2 gap-4`,children:e})}var Po=({heading:e,level:t=2,children:n,...r})=>(0,W.jsxs)(`section`,{...r,children:[e?(0,W.jsx)(P,{_level:t,_label:e}):null,n]}),Fo=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"}]`),Io=[...Fo.map(e=>({label:e.name,value:e.alpha2}))],Lo=[...Fo.map(e=>e.name)],Ro=({blockIdPrefix:e,snapshotOnly:t,...n})=>{let r=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...r(`hint`),children:(0,W.jsx)(ve,{...n,_hint:wa,_label:`Label`,_suggestions:Lo,_value:`Deutschland`})}),(0,W.jsx)(G,{...r(`disabled`),children:(0,W.jsx)(ve,{...n,_label:`Disabled`,_suggestions:Lo,_value:`Deutschland`,_disabled:!0})}),(0,W.jsx)(G,{...r(`error`),children:(0,W.jsx)(ve,{...n,_suggestions:Lo,_msg:{_type:`error`,_description:K},_touched:!0,_label:`Label`,_placeholder:`Placeholder`,_required:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...r(`access-key`),children:(0,W.jsx)(ve,{...n,_label:`With access key`,_suggestions:Lo,_value:`Deutschland`,_accessKey:`c`})}),(0,W.jsx)(G,{...r(`short-key`),skipSnapshot:n._hideLabel,children:(0,W.jsx)(ve,{...n,_label:`With short key`,_suggestions:Lo,_value:`Deutschland`,_shortKey:`s`})})]})},zo=e=>(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Text`,children:(0,W.jsx)(Ro,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,W.jsx)(Ro,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,...e,_hideLabel:!0})})]}),Bo=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(Mo,{RefComponent:zo,showButtons:!1})]}),Vo=e=>{console.log(`${e.type} (Native Event)`,e)},Ho=e=>{console.log(`${e.type} (Callback Event)`,e)},Uo=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`A HTML only KolCombobox.`})}),(0,W.jsx)(ve,{_label:`With string array in html`,_suggestions:`['Herr','Frau','Firma']`,_value:`Herr`,_on:{onBlur:Ho,onChange:Ho,onClick:Ho,onFocus:Ho,onInput:Ho,onKeyDown:Ho},onBlur:Vo,onChange:Vo,onClick:Vo,onFocus:Vo,onInput:Vo,onKeyDown:Vo})]}),Wo=({show:e})=>e?(0,W.jsx)(`div`,{className:`loading-overlay`,children:(0,W.jsx)(Ue,{_label:`loading`,_show:e,_variant:`cycle`,style:{backgroundColor:`transparent`}})}):null,Go={combobox:{basic:Bo,html:Uo,"lazy-loaded":()=>{let[e,t]=(0,E.useState)([]),[n,r]=(0,E.useState)(!1);function i(){e.length>0||(r(!0),setTimeout(()=>{t(Lo),r(!1)},5e3))}return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This combobox loads its list of countries 5 seconds after the first input of the user to simulate a call to the server.`})}),(0,W.jsxs)(`section`,{className:`w-full relative p-3`,children:[(0,W.jsx)(ve,{_label:`Lazy loaded countries`,_suggestions:e,onInput:()=>i()}),(0,W.jsx)(Wo,{show:n})]})]})}}},Ko={details:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the `,(0,W.jsx)(`code`,{children:`_open`}),`-prop programmatically. The sample includes an initially open state and a disabled but open Details component.`]})}),(0,W.jsxs)(G,{id:`basic`,children:[(0,W.jsx)(ye,{_label:`Closed initially`,children:(0,W.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 invidunt.`})}),(0,W.jsx)(ye,{_disabled:!0,_label:`Open initially (disabled)`,_open:!0,children:(0,W.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 invidunt.`})}),(0,W.jsx)(ye,{_label:`Open initially`,_open:!0,children:(0,W.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 invidunt.`})})]})]})}},qo=()=>{let[e]=ei(),t=e.get(`show-dialog`),n=(0,E.useRef)(null),r=(0,E.useRef)(null),i={onClick:()=>n.current?.openModal()},a={onClick:()=>r.current?.openModal()};return(0,E.useEffect)(()=>{t===`true`&&(async()=>{await n.current?.openModal(),await r.current?.openModal()})()},[t]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolDialog supports the variants `,(0,W.jsx)(`code`,{children:`blank`}),` and `,(0,W.jsx)(`code`,{children:`card`}),`. The card variant includes a `,(0,W.jsx)(`code`,{children:`KolCard`}),` container and a closer button.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(j,{_label:`Open blank dialog`,_on:i}),(0,W.jsx)(be,{ref:n,_label:`Blank dialog`,_variant:`blank`,_width:`40%`,children:(0,W.jsxs)(`div`,{className:`bg-white p-4 rounded shadow`,children:[(0,W.jsx)(`p`,{className:`mt-0`,children:`You must add styling and a close button yourself.`}),(0,W.jsx)(j,{_label:`Open card dialog`,className:`mr`,_on:a}),(0,W.jsx)(j,{_label:`Close`,_on:{onClick:()=>n.current?.closeModal()}})]})})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(j,{_label:`Open card dialog`,_on:a}),(0,W.jsx)(be,{ref:r,_label:`Card dialog`,_variant:`card`,_width:`30%`,children:(0,W.jsx)(`p`,{className:`mt-0`,children:`This variant wraps content inside a KolCard.`})})]})]})]})},Jo={dialog:{basic:qo,"scroll-lock":()=>{let e=(0,E.useRef)(null),t=(0,E.useRef)(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`Demonstrates that opening `,(0,W.jsx)(`strong`,{children:`KolDialog`}),`/`,(0,W.jsx)(`strong`,{children:`KolModal`}),` or `,(0,W.jsx)(`strong`,{children:`KolDrawer`}),` modally locks the background scroll: the page behind the overlay must not scroll, neither via mouse wheel/touch over the backdrop nor by dragging the page scrollbar. Non-modal`,` `,(0,W.jsx)(`code`,{children:`show()`}),` does not lock.`]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`How to test:`}),` scroll this long page down a bit, open the dialog or drawer below, then try to scroll the background (mouse wheel over the dimmed backdrop, or drag the scrollbar) – it should stay put. Close the overlay again and the page should scroll normally, restored to the same position without a layout shift.`]})]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4 mb-4`,children:[(0,W.jsx)(j,{_label:`Open modal dialog`,_on:{onClick:()=>e.current?.showModal()}}),(0,W.jsx)(j,{_label:`Open modal drawer`,_on:{onClick:()=>t.current?.showModal()}})]}),(0,W.jsxs)(be,{ref:e,_label:`Scroll lock dialog`,_variant:`card`,_width:`30%`,children:[(0,W.jsx)(`p`,{className:`mt-0`,children:`While I am open, the background must not scroll.`}),(0,W.jsx)(j,{_label:`Close`,_on:{onClick:()=>e.current?.closeModal()}})]}),(0,W.jsxs)(xe,{ref:t,_label:`Scroll lock drawer`,_align:`right`,children:[(0,W.jsx)(`p`,{className:`mt-0`,children:`While I am open, the background must not scroll.`}),(0,W.jsx)(j,{_label:`Close`,_on:{onClick:()=>t.current?.close()}})]}),(0,W.jsx)(`div`,{style:{height:`200vh`,flexShrink:0},className:`border border-dashed border-gray p-4`,children:(0,W.jsx)(`p`,{children:`This tall block simulates a long page. Scroll down, open an overlay above, and try to scroll here.`})})]})},"with-alert":()=>{let e=(0,E.useRef)(null),[t,n]=(0,E.useState)([]),[r,i]=(0,E.useState)(!0),a=e=>n(t=>[...t,`${new Date().toLocaleTimeString()} – ${e}`]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`Closing the `,(0,W.jsx)(`strong`,{children:`KolAlert`}),` inside the dialog must `,(0,W.jsx)(`em`,{children:`not`}),` trigger the dialog's `,(0,W.jsx)(`code`,{children:`onClose`}),` callback. Only closing the dialog itself (via the card closer or `,(0,W.jsx)(`code`,{children:`close()`}),`) should fire that callback.`]}),(0,W.jsxs)(`p`,{children:[`Watch the event log below: after clicking the alert closer you should see `,(0,W.jsx)(`em`,{children:`only`}),` "Alert onClose fired", not "Dialog onClose fired".`]})]}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(j,{_label:`Open dialog with alert`,_on:{onClick:()=>{i(!0),e.current?.showModal()}}}),(0,W.jsx)(be,{ref:e,_label:`Dialog with KolAlert inside`,_variant:`card`,_width:`40%`,_on:{onToggle:e=>console.log(`Dialog onToggle triggered!`,e),onClose:()=>{a(`Dialog onClose fired`)}},children:(0,W.jsxs)(`div`,{className:`p-4`,children:[r&&(0,W.jsx)(me,{_label:`Closeable alert`,_type:`info`,_variant:`card`,_hasCloser:!0,_on:{onClose:()=>{a(`Alert onClose fired`),i(!1)}},children:`Close this alert – the dialog must stay open and its onClose must NOT fire.`}),!r&&(0,W.jsx)(`p`,{children:`Alert was closed. The dialog is still open – correct behaviour!`})]})})]}),t.length>0&&(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`strong`,{children:`Event log:`}),(0,W.jsx)(`ul`,{children:t.map((e,t)=>(0,W.jsx)(`li`,{children:e},t))})]})]})]})}}},Yo=[`left`,`top`,`right`,`bottom`].map(e=>({label:e,value:e})),Xo=({value:e=`left`,onChange:t})=>(0,W.jsx)(`div`,{className:`grid gap-4`,children:(0,W.jsx)(`div`,{className:`container my-4 d-grid gap-4`,children:(0,W.jsx)(Ae,{_label:`Drawer alignment`,_value:e,_options:Yo,_orientation:`horizontal`,_on:{onChange:t}})})}),Zo={drawer:{basic:()=>{let[e]=ei(),t=e.get(`align`),n=e.get(`closer`)===`true`,r=(0,E.useRef)(null),[i,a]=(0,E.useState)(t||`left`),[o,s]=(0,E.useState)(n);return(0,E.useEffect)(()=>{t&&r.current?.showModal()},[t]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments.`})}),(0,W.jsx)(Xo,{value:i,onChange:(e,t)=>a(t)}),(0,W.jsx)(F,{_label:`Drawer has closer`,className:`mb-4`,_checked:o,_on:{onInput:(e,t)=>{s(t===!0)}}}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(xe,{ref:r,_label:`I am a drawer`,_level:2,_align:i,_hasCloser:o,_on:{onClose:()=>console.log(`Drawer onClose triggered!`),onToggle:e=>console.log(`Drawer onToggle triggered!`,e)},children:(0,W.jsxs)(`div`,{className:i===`left`||i===`right`?`drawer-content-vertical`:``,children:[(0,W.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.`}),(0,W.jsx)(j,{_label:`Close drawer`,_on:{onClick:()=>r.current?.close()}})]})}),(0,W.jsx)(j,{_label:`Open drawer`,_on:{onClick:()=>r.current?.showModal()}})]})]})},controlled:()=>{let[e]=ei(),t=e.get(`align`),[n,r]=(0,E.useState)(!1),[i,a]=(0,E.useState)(t||`left`);return(0,W.jsxs)(`div`,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows the KolDrawer controlled by the property `,(0,W.jsx)(`code`,{children:`_open`}),` instead of methods.`]})}),(0,W.jsx)(Xo,{value:i,onChange:(e,t)=>a(t)}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(xe,{_open:n,_align:i,_label:`I'm a controlled drawer`,_level:2,_on:{onClose:()=>r(!1)},children:(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`p`,{children:`Lorem ipsum dolor sit amet,`}),(0,W.jsx)(j,{_label:`Close drawer`,_on:{onClick:()=>r(!1)}})]})}),(0,W.jsx)(j,{_label:`Open drawer`,_on:{onClick:()=>r(!0)}})]})]})},scrolled:()=>{let e=(0,E.useRef)(null),[t,n]=(0,E.useState)(`bottom`),[r,i]=(0,E.useState)(!0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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).`})}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-4 mb-4`,children:[(0,W.jsx)(Xo,{value:t,onChange:(e,t)=>n(t)}),(0,W.jsx)(F,{_label:`Enable Overflow Handling (Recommended)`,_checked:r,_on:{onChange:(e,t)=>i(!!t)}})]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(xe,{ref:e,_label:`Scrollable Drawer`,_level:2,_align:t,children:r?(0,W.jsx)(`div`,{style:{width:t===`left`||t===`right`?`90vw`:void 0,height:t===`top`||t===`bottom`?`90vh`:void 0,overflow:`auto`,padding:`0`,border:`1px solid #999`},children:(0,W.jsxs)(`div`,{style:{width:t===`left`||t===`right`?`150vw`:void 0,height:t===`top`||t===`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:[(0,W.jsx)(`p`,{children:`✅ Content with proper overflow handling - scrollable within drawer bounds`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h3`,{children:`Large Content Area (Scrollable)`}),(0,W.jsxs)(`p`,{children:[`Container: `,t===`left`||t===`right`?`400px wide`:`90vw wide`,` ×`,` `,t===`top`||t===`bottom`?`90vh high`:`400px high`]}),(0,W.jsxs)(`p`,{children:[`Content: `,t===`left`||t===`right`?`150vw wide`:`400px wide`,` ×`,` `,t===`top`||t===`bottom`?`150vh high`:`400px high`]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`Overflow Handling:`}),` Enabled - Container has fixed size with overflow: auto`]}),(0,W.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.`}),(0,W.jsx)(`p`,{children:`With overflow handling enabled, this content scrolls properly within the drawer container. You can scroll horizontally/vertically to see all content.`}),(0,W.jsx)(`div`,{style:{marginTop:`auto`,paddingTop:`40px`},children:(0,W.jsx)(j,{_label:`Close drawer`,_on:{onClick:()=>e.current?.close()}})})]})]})}):(0,W.jsxs)(`div`,{style:{width:t===`left`||t===`right`?`150vw`:`400px`,height:t===`top`||t===`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:[(0,W.jsx)(`p`,{children:`❌ Content exceeding drawer bounds - problematic behavior`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h3`,{children:`Large Content Area`}),(0,W.jsxs)(`p`,{children:[`Width: `,t===`left`||t===`right`?`150vw (exceeds drawer width)`:`400px`]}),(0,W.jsxs)(`p`,{children:[`Height: `,t===`top`||t===`bottom`?`150vh (exceeds drawer height)`:`400px`]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`Overflow Handling:`}),` Disabled - Content extends beyond drawer boundaries`]}),(0,W.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.`}),(0,W.jsx)(`p`,{children:`Without overflow handling, this content may extend beyond the drawer boundaries, causing layout issues.`}),(0,W.jsx)(`div`,{style:{marginTop:`auto`,paddingTop:`40px`},children:(0,W.jsx)(j,{_label:`Close drawer`,_on:{onClick:()=>e.current?.close()}})})]})]})}),(0,W.jsx)(j,{_label:`Open scrollable drawer`,_on:{onClick:()=>e.current?.open()}})]})]})},"big-content":()=>{let e=(0,E.useRef)(null),[t,n]=(0,E.useState)(`bottom`);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions.`})}),(0,W.jsx)(`div`,{className:`flex flex-col gap-4 mb-4`,children:(0,W.jsx)(Xo,{value:t,onChange:(e,t)=>n(t)})}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(xe,{ref:e,_label:`Scrollable Drawer`,_align:t,_level:2,children:(0,W.jsxs)(`div`,{style:{width:t===`left`||t===`right`?`20vw`:void 0,height:t===`top`||t===`bottom`?`20vh`:void 0},children:[(0,W.jsx)(`h3`,{children:`Large Content Area (Scrollable)`}),(0,W.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.`}),(0,W.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.`}),(0,W.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.`}),(0,W.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.`}),(0,W.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.`}),(0,W.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.`}),(0,W.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.`}),(0,W.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.`}),(0,W.jsx)(`div`,{style:{marginTop:`auto`,paddingTop:`40px`},children:(0,W.jsx)(j,{_label:`Close drawer`,_on:{onClick:()=>e.current?.close()}})})]})}),(0,W.jsx)(j,{_label:`Open scrollable drawer`,_on:{onClick:()=>e.current?.open()}})]})]})}}},Qo={form:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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 and a submit button.`})}),(0,W.jsx)(G,{id:`form-basic`,className:`grid gap-2`,children:(0,W.jsxs)(Se,{className:`w-full`,_on:{onSubmit:e=>console.log(`submitted:`,e)},children:[(0,W.jsx)(L,{id:`input1`,_label:`Input 1`}),(0,W.jsx)(L,{id:`input2`,_label:`Input 2`}),(0,W.jsx)(L,{id:`input3`,_label:`Input 3`}),(0,W.jsx)(j,{_label:`Submit`,_variant:`primary`,_type:`submit`})]})})]}),"error-list":()=>{let e=(0,E.useRef)(null);return(0,E.useEffect)(()=>{e.current?.focusErrorList()},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows a form with error messages.`})}),(0,W.jsx)(G,{id:`error-list`,children:(0,W.jsx)(Se,{className:`w-full`,ref:e,_on:{onSubmit:()=>{e.current?.focusErrorList()}},_errorList:[{message:`Error in Input 2 (default scroll behaviour)`,selector:`#input2`},{message:`Error in Input 3 (no scrolling, just alert)`,selector:()=>alert(`Error in Input 3`)},{message:`Error in Input 4 (custom scroll behaviour)`,selector:`#input4`,options:{behavior:`instant`,block:`start`,afterFocus:()=>console.log(`after Focus Input 4`)}}],children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,W.jsx)(L,{id:`input1`,_label:`Input 1`}),(0,W.jsx)(L,{id:`input2`,_label:`Input 2`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,W.jsx)(L,{id:`input3`,_label:`Input 3`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,W.jsx)(L,{id:`input4`,_label:`Input 4`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}})]})})})]})},"error-list-scroll":()=>{let e=(0,E.useRef)(null);return(0,E.useEffect)(()=>{e.current?.focusErrorList()},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows a form with error messages.`})}),(0,W.jsx)(G,{id:`error-list`,children:(0,W.jsx)(Se,{className:`w-full`,ref:e,_on:{onSubmit:()=>{e.current?.focusErrorList()}},_errorList:[{message:`Error in Input 2 (default scroll behaviour)`,selector:`#input2`},{message:`Error in Input 3 (no scrolling, just alert)`,selector:()=>alert(`Error in Input 3`)},{message:`Error in Input 4 (custom scroll behaviour)`,selector:`#input4`,options:{behavior:`instant`,block:`start`,afterFocus:()=>console.log(`after Focus Input 4`)}}],children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-250`,children:[(0,W.jsx)(L,{id:`input1`,_label:`Input 1`}),(0,W.jsx)(L,{id:`input2`,_label:`Input 2`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,W.jsx)(L,{id:`input3`,_label:`Input 3`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,W.jsx)(L,{id:`input4`,_label:`Input 4`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,W.jsx)(`div`,{children:(0,W.jsx)(j,{_label:`ScrollTo`,_type:`submit`})})]})})})]})}}},$o=new WeakMap,es=e=>($o.has(e)===!1&&$o.set(e,(0,oi.createRoot)(e)),$o.get(e)),ts=[{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 ns(e){let{dummyClickEventHandler:t}=Ia(),n={onClick:t};return(0,W.jsx)(j,{...e,_on:n})}var rs={horizontal:[[{label:`Workdays`,colSpan:5,width:500},{label:`Weekend`,colSpan:2,width:200}],[{key:`monday`,label:`Monday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ns,{_label:n,style:{fontSize:`75%`}}))},compareFn:(e,t)=>e.monday<t.monday?-1:+(e.monday>t.monday),sortDirection:`ASC`,textAlign:`right`,width:100},{key:`tuesday`,label:`Tuesday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ge,{_color:`#060`,_label:n}))},compareFn:(e,t)=>e.tuesday<t.tuesday?-1:+(e.tuesday>t.tuesday),sortDirection:`DESC`,width:100},{key:`wednesday`,label:`Wednesday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ge,{_color:`#006`,_label:n}))},width:110},{key:`thursday`,label:`Thursday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ge,{_color:`#600`,_label:n}))},width:100},{key:`friday`,label:`Friday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ge,{_color:`#303`,_label:n}))},width:100},{key:`saturday`,label:`Saturday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ge,{_color:`#330`,_label:n}))},width:100},{key:`sunday`,label:`Sunday`,render:(e,t)=>{let{label:n}=t;is(e,(0,W.jsx)(ge,{_color:`#033`,_label:n}))},width:100}]],vertical:[[{label:`Early`,width:100},{label:`Noon`,width:100},{label:`Evening`,width:100},{label:`Night`,width:100}]]},is=(e,t)=>{let n=document.createElement(`div`);n.setAttribute(`role`,`presentation`),e.innerHTML=``,e.appendChild(n),es(n).render(t)},as={handout:{basic:()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center`,children:[(0,W.jsx)(Me,{className:`block w-75px`,_labeled:!1}),(0,W.jsx)(P,{_label:``,_level:1,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`Kolibri-Handout `,(0,W.jsxs)(`small`,{children:[`for `,uo(lo())]})]})}),(0,W.jsxs)(ye,{_label:`Abstract`,_open:!0,children:[`The handout shows a selection of KoliBri components in the style of `,(0,W.jsx)(`strong`,{children:uo(lo())}),`. 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 (`,(0,W.jsx)(R,{_label:`https://github.com/public-ui/kolibri`,_href:`https://github.com/public-ui/kolibri`,_target:`_blank`}),`).`]})]}),(0,W.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12`,children:[(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2`,_label:`Heading`,_level:2,children:(0,W.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,W.jsx)(P,{_label:`Heading Level 1`,_level:1}),(0,W.jsx)(P,{_label:`Heading Level 2`,_level:2}),(0,W.jsx)(P,{_label:`Heading Level 3`,_level:3}),(0,W.jsx)(P,{_label:`Heading Level 4`,_level:4}),(0,W.jsx)(P,{_label:`Heading Level 5`,_level:5}),(0,W.jsx)(P,{_label:`Heading Level 6`,_level:6}),(0,W.jsx)(P,{_label:`Heading Level 6`,_secondaryHeadline:`Lessons`,_level:6})]})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2`,_label:`Abbreviation and Progress`,_level:2,children:(0,W.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,W.jsxs)(`p`,{children:[`I am `,(0,W.jsx)(fe,{children:`e.g.`}),` an abbreviation.`]}),(0,W.jsx)(Le,{_variant:`bar`,_max:100,_value:33,_label:`Progress`}),(0,W.jsx)(Le,{_variant:`cycle`,_max:100,_value:66,_label:`Progress`})]})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3`,_label:`Button, LinkButton and Tab`,_level:2,children:(0,W.jsx)(`div`,{slot:``,className:`grid gap-2 p-2`,children:(0,W.jsxs)(Ke,{_label:``,_selected:0,_tabs:[{_label:`Button`},{_label:`LinkButton`},{_label:`Disabled Tab`,_disabled:!0}],children:[(0,W.jsxs)(`div`,{className:`grid gap-2 py-2`,children:[(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(j,{_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-chevron-left`,_label:`primary`,_variant:`primary`,_on:t})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(j,{_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-chevron-right`,_label:`secondary`,_variant:`secondary`,_on:t})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(j,{_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-chevron-up`,_label:`danger`,_variant:`danger`,_on:t})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(j,{_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-chevron-down`,_label:`normal`,_variant:`normal`,_on:t})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(j,{_label:`ghost`,_variant:`ghost`}),(0,W.jsx)(j,{_disabled:!0,_label:`ghost`,_variant:`ghost`}),(0,W.jsx)(j,{_icons:`kolicon-house`,_hideLabel:!0,_label:`ghost`,_variant:`ghost`,_on:t})]})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 py-2`,children:[(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`}),(0,W.jsx)(z,{_href:`#/back-page`,_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`}),(0,W.jsx)(z,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-left`,_label:`primary`,_variant:`primary`})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`}),(0,W.jsx)(z,{_href:`#/back-page`,_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`}),(0,W.jsx)(z,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-right`,_label:`secondary`,_variant:`secondary`})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`}),(0,W.jsx)(z,{_href:`#/back-page`,_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`}),(0,W.jsx)(z,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-up`,_label:`danger`,_variant:`danger`})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`}),(0,W.jsx)(z,{_href:`#/back-page`,_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`}),(0,W.jsx)(z,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-down`,_label:`normal`,_variant:`normal`})]}),(0,W.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_label:`ghost`,_variant:`ghost`}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`ghost`,_variant:`ghost`}),(0,W.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`ghost`,_variant:`ghost`})]})]})]})})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2`,_label:`Accordion, Link and ButtonLink`,_level:2,children:(0,W.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,W.jsx)(pe,{_label:`Links`,_level:3,_open:!0,children:(0,W.jsxs)(`div`,{className:`grid gap-2`,slot:``,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`Link text`}),(0,W.jsx)(R,{_href:`#/back-page`,_icons:`kolicon-house`,_label:`Link text with icon`}),(0,W.jsx)(R,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link text with icon only`}),(0,W.jsx)(R,{_href:`/`,_label:`Visited link`}),(0,W.jsxs)(`p`,{children:[`I am a `,(0,W.jsx)(R,{_href:`#/back-page`,_label:`externer Link`,_target:`w3c`}),` in the running text.`]})]})}),(0,W.jsx)(pe,{_label:`ButtonLinks`,_level:3,children:(0,W.jsxs)(`div`,{className:`grid gap-2`,slot:``,children:[(0,W.jsx)(M,{_label:`Link text`}),(0,W.jsx)(M,{_icons:`kolicon-house`,_label:`Link text with icon`}),(0,W.jsx)(M,{_icons:`kolicon-house`,_hideLabel:!0,_label:`Link text with icon only`}),(0,W.jsxs)(`p`,{children:[`I am a `,(0,W.jsx)(M,{_label:`Link`}),` in the running text.`]}),(0,W.jsx)(M,{_icons:{left:`kolicon-chevron-left`,right:`kolicon-chevron-right`,top:`kolicon-chevron-up`,bottom:`kolicon-chevron-down`},_label:`Icons`})]})})]})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3`,_label:`Alert`,_level:2,children:(0,W.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,W.jsx)(me,{_label:`Default message`,_type:`default`,children:`This is the text of the alert.`}),(0,W.jsx)(me,{_type:`success`,children:`Success message text`}),(0,W.jsx)(me,{_type:`error`,_hasCloser:!0,children:`This is a error message text.`}),(0,W.jsx)(me,{_label:`Info card`,_type:`info`,_variant:`card`,children:`This is the text of the alert.`}),(0,W.jsx)(me,{_label:`Warning card`,_type:`warning`,_hasCloser:!0,_variant:`card`,children:`This is the text of the alert.`})]})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2`,_label:`Nav and Breadcrumb`,_level:2,children:(0,W.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,W.jsx)(`div`,{children:(0,W.jsx)(Pe,{_label:`Main navigation`,_links:[{_label:`Homepage`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`2 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`},{_active:!0,_label:`3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`,_children:[{_label:`3.1 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`3.2 External navigation point`,_icons:`kolicon-house`,_href:`#/back-page`,_target:`_blank`},{_label:`3.3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`,_children:[{_active:!0,_label:`3.3.1 Navigation point (active)`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`3.3.2 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`}]}]},{_label:`3 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`}],_hasCompactButton:!0})}),(0,W.jsx)(`div`,{children:(0,W.jsx)(_e,{_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`}]})})]})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5`,_label:`Input`,_level:2,children:(0,W.jsx)(Se,{slot:``,children:(0,W.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2`,children:[(0,W.jsx)(Te,{_label:`Color`}),(0,W.jsx)(De,{_label:`Upload file`}),(0,W.jsx)(Oe,{_label:`Number input`}),(0,W.jsx)(I,{_type:`date`,_label:`Date`}),(0,W.jsx)(Ee,{_icons:`{'left': 'kolicon-house'}`,_msg:{_type:`error`,_description:`Test of an error message`},_touched:!0,_label:`E-mail address`}),(0,W.jsx)(L,{_hint:`I am a hint.`,_label:`First name`}),(0,W.jsx)(ke,{_label:`password`}),(0,W.jsx)(ze,{_options:`[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]`,_label:`Stimmung`}),(0,W.jsx)(je,{_min:0,_max:50,_value:25,_label:`Slider`}),(0,W.jsx)(Ae,{className:`herr-frau`,_options:`[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]`,_value:`1`,_label:`Salutation`}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(Ae,{_orientation:`horizontal`,_options:`[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]`,_value:`0`,_label:`Salutation`}),(0,W.jsx)(F,{_label:``,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`I accept the `,(0,W.jsx)(fe,{children:`AGB`}),`.`]})})]}),(0,W.jsx)(V,{_rows:4,_label:`Textarea`})]})})}),(0,W.jsx)(N,{className:`col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5`,_label:`Table with Pagination`,_level:2,children:(0,W.jsx)(`div`,{slot:``,className:`gap-2 p-2 flex flex-col`,children:(0,W.jsx)(B,{_label:`Table`,_headers:rs,_data:ts,_pagination:!0})})})]}),(0,W.jsx)(Xe,{_label:`5.0.2-test.2`})]})}}},os={heading:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolHeading renders a heading with the given level.`})}),(0,W.jsxs)(G,{id:`basic`,children:[(0,W.jsx)(P,{_label:`I'm a H1-heading`,_level:1}),(0,W.jsx)(P,{_label:`I'm a H2-heading`,_level:2}),(0,W.jsx)(P,{_label:`I'm a H3-heading`,_level:3}),(0,W.jsx)(P,{_label:`I'm a H4-heading`,_level:4}),(0,W.jsx)(P,{_label:`I'm a H5-heading`,_level:5}),(0,W.jsx)(P,{_label:`I'm a H6-heading`,_level:6})]})]}),badge:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows KolHeading with its different levels and content provided using the export slot instead of the `,(0,W.jsx)(`code`,{children:`_label`}),`-property.`]})}),(0,W.jsxs)(G,{id:`badged`,children:[(0,W.jsx)(P,{_label:``,_level:1,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,W.jsx)(ge,{_label:`Label`})]})}),(0,W.jsx)(P,{_label:``,_level:2,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,W.jsx)(ge,{_color:`#86ffc6`,_label:`Label`})]})}),(0,W.jsx)(P,{_label:``,_level:3,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,W.jsx)(ge,{_color:`#06539e`,_label:`Label`})]})}),(0,W.jsx)(P,{_label:``,_level:4,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,W.jsx)(ge,{_color:`#ae0000`,_label:`Label`})]})}),(0,W.jsx)(P,{_label:``,_level:5,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,W.jsx)(ge,{_color:`#8b008b`,_label:`Label`})]})}),(0,W.jsx)(P,{_label:``,_level:6,children:(0,W.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,W.jsx)(ge,{_color:`#ffc0cb`,_label:`Label`})]})})]})]}),paragraph:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolHeading with its different levels combined with some text content each.`})}),(0,W.jsxs)(G,{id:`paragraph`,children:[(0,W.jsx)(P,{_label:`Ich bin eine H1-Überschrift`,_level:1}),(0,W.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.`}),(0,W.jsx)(P,{_label:`Ich bin eine H2-Überschrift`,_level:2}),(0,W.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.`}),(0,W.jsx)(P,{_label:`Ich bin eine H3-Überschrift`,_level:3}),(0,W.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.`}),(0,W.jsx)(P,{_label:`Ich bin eine H4-Überschrift`,_level:4}),(0,W.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.`}),(0,W.jsx)(P,{_label:`Ich bin eine H5-Überschrift`,_level:5}),(0,W.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.`}),(0,W.jsx)(P,{_label:`Ich bin eine H6-Überschrift`,_level:6}),(0,W.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.`})]})]}),secondary:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows KolHeading with the prop `,(0,W.jsx)(`code`,{children:`_secondaryHeadline`}),` in use.`]})}),(0,W.jsx)(G,{id:`secondary`,children:(0,W.jsx)(P,{_label:`This is a H1 headline`,_secondaryHeadline:`This is a secondary headline`,_level:1})})]})}},ss={icon:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolIcon renders codicon icons. This sample shows regular icons and one with a custom style-property, changing the icon color.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(Ce,{className:`block`,_label:`Alert Info Icon`,_icons:`kolicon-alert-info`}),(0,W.jsx)(Ce,{className:`block`,_label:`Kolibri Icon`,_icons:`kolicon-kolibri`}),(0,W.jsx)(Ce,{className:`block`,_label:`House Icon`,_icons:`kolicon-house`}),(0,W.jsx)(Ce,{className:`block`,_label:`Settings Icon`,_icons:`kolicon-settings`}),(0,W.jsx)(Ce,{className:`block`,_label:`Pin Icon (pinned)`,_icons:`kolicon-pin-pinned`}),(0,W.jsx)(Ce,{className:`block`,_label:`Pin Icon (unpinned)`,_icons:`kolicon-pin-unpinned`}),(0,W.jsx)(Ce,{className:`block w-[1em] h-[1em]`,style:{color:`red`},_label:`House Icon`,_icons:`kolicon-house`}),(0,W.jsx)(Ce,{className:`block`,_label:`Plus Icon`,_icons:`codicon codicon-plus`})]})]}),"all-kolicons":()=>{let[e,t]=(0,E.useState)({}),[n,r]=(0,E.useState)(null);return(0,E.useEffect)(()=>{let e=new AbortController;return fetch(`assets/kolicons/kolicons.json`,{signal:e.signal}).then(e=>{if(!e.ok)throw Error(`Failed to load kolicons: ${e.status} ${e.statusText}`.trim());return e.json()}).then(e=>{t(e)}).catch(t=>{if(e.signal.aborted)return;let n=t instanceof Error?t.message:`Failed to load kolicons`;r(n),console.error(t)}),()=>e.abort()},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows all kolicons with their names.`})}),n&&(0,W.jsx)(me,{_alert:!0,_label:`Kolicons could not be loaded`,_type:`error`,children:n}),(0,W.jsx)(`div`,{className:`grid grid-cols-2 gap-8 p-8`,children:Object.entries(e).map(([e])=>(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(Ce,{_label:`Icon ${e}`,_icons:`kolicon-`+e}),(0,W.jsxs)(`span`,{children:[`kolicon-`,e]})]},e))})]})},font:()=>{let[e]=ei(),t=e.get(`theme`)??lo(),n=(0,E.useMemo)(()=>t?eo(t,`iconVariants`):[],[t]),r=(0,E.useMemo)(()=>t?eo(t,`iconVariantsButton`):[],[t]),i=(0,E.useMemo)(()=>t?eo(t,`iconVariantsInput`):[],[t]),a=Array.isArray(n)&&n.length>0,o=Array.isArray(r)&&r.length>0,s=Array.isArray(i)&&i.length>0;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolIcon renders different icon fonts depending on your theme.`})}),(0,W.jsx)(G,{id:`icons`,className:`grid grid-cols-2 gap-8 p-8`,skipSnapshot:!a,children:a?n.map(e=>(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(Ce,{_label:e,_icons:e}),(0,W.jsxs)(`span`,{children:[`<KolIcon _icons='`,e,`' _label="`,e,`" />`]})]},e)):(0,W.jsx)(`p`,{children:`This theme has no variants for icons.`})}),(0,W.jsx)(G,{id:`buttons`,className:`grid grid-cols-2 gap-8 p-8`,skipSnapshot:!o,children:o?r.map(e=>(0,W.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,W.jsx)(j,{_icons:e,_label:`Button`,_variant:`primary`}),(0,W.jsxs)(`span`,{children:[`<KolButton _icons='`,e,`' _label="Button" _variant="primary" />`]})]},e)):(0,W.jsx)(`p`,{children:`This theme has no variants for icons in buttons.`})}),(0,W.jsx)(G,{id:`inputs`,className:`grid gap-8 p-8`,skipSnapshot:!s,children:s?i.map(e=>(0,W.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,W.jsx)(L,{_icons:e,_label:`Input with Icon`}),(0,W.jsxs)(`span`,{children:[`<KolInputText _icons='`,e,`' _label="Input with Icon" />`]})]},e)):(0,W.jsx)(`p`,{children:`This theme has no variants for icons in inputs.`})})]})}}},cs={image:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolImage renders an image. The sample shows an image with alternative text.`})}),(0,W.jsx)(G,{id:`basic`,fitContent:!0,children:(0,W.jsx)(we,{_alt:`KoliBri design system illustration showing three people working on laptops surrounded by UI components, charts, and the KoliBri hummingbird logo`,_src:`assets/sample-image.png`,className:`w-image`})})]}),events:()=>{let[e,t]=(0,E.useState)([]),[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)([]),[o,s]=(0,E.useState)([]),c=(0,E.useRef)(null);return(0,E.useEffect)(()=>{let e=c.current;if(!e)return;let t=()=>a(e=>[...e,new Date().toLocaleTimeString()]),n=()=>s(e=>[...e,new Date().toLocaleTimeString()]);return e.addEventListener(`error`,t),e.addEventListener(`load`,n),()=>{e.removeEventListener(`error`,t),e.removeEventListener(`load`,n)}},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolImage fires both _on.onError / _on.onLoad callbacks and native error / load DOM events on the host element.`})}),(0,W.jsx)(`h3`,{children:`Via _on prop`}),(0,W.jsx)(we,{_alt:`This image will fail to load`,_src:`/this-image-does-not-exist.png`,_on:{onError:()=>t(e=>[...e,new Date().toLocaleTimeString()]),onLoad:()=>r(e=>[...e,new Date().toLocaleTimeString()])}}),(0,W.jsxs)(`p`,{children:[`onError fired: `,e.length===0?`not yet`:e.join(`, `)]}),(0,W.jsxs)(`p`,{children:[`onLoad fired: `,n.length===0?`not yet`:n.join(`, `)]}),(0,W.jsx)(`h3`,{children:`Via native addEventListener`}),(0,W.jsx)(we,{ref:c,_alt:`KoliBri design system illustration`,_src:`sample-image.png`,className:`w-image`}),(0,W.jsxs)(`p`,{children:[`native error fired: `,i.length===0?`not yet`:i.join(`, `)]}),(0,W.jsxs)(`p`,{children:[`native load fired: `,o.length===0?`not yet`:o.join(`, `)]})]})}}},ls=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`unchecked`),children:(0,W.jsx)(F,{...n,_label:`Not selected`,_value:!1,_required:!0})}),(0,W.jsx)(G,{...i(`indeterminate`),children:(0,W.jsx)(F,{...n,_label:`Indeterminate`,_value:null,_indeterminate:!0})}),(0,W.jsx)(G,{...i(`checked`),children:(0,W.jsx)(F,{...n,ref:r,_accessKey:`A`,_checked:!0,_label:`Selected`,_tooltipAlign:`right`,_value:!0})}),(0,W.jsx)(G,{...i(`long-label`),children:(0,W.jsx)(F,{...n,_checked:!0,_icons:{unchecked:`ckolicon-cross`},_label:`With a very long label and upheavals `.repeat(5),_value:!0})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(F,{...n,_disabled:!0,_label:`Disabled`,_value:!0,_hint:`Hint text`})}),(0,W.jsx)(G,{...i(`checked-disabled`),children:(0,W.jsx)(F,{...n,_checked:!0,_disabled:!0,_label:`Checked and disabled`})}),(0,W.jsx)(G,{...i(`indet-disabled`),children:(0,W.jsx)(F,{...n,_indeterminate:!0,_disabled:!0,_label:`Indeterminate and disabled`})}),(0,W.jsx)(G,{...i(`error`),children:(0,W.jsx)(F,{...n,_msg:{_type:`error`,_description:K},_label:`With error`,_touched:!0,_value:!0,_hint:`Hint text`,_required:!0})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(F,{...n,_label:`With access key`,_accessKey:`c`,_value:null})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(F,{...n,_label:`With short key`,_shortKey:`s`,_value:null})}),(0,W.jsx)(G,{...i(`info-popover`),children:(0,W.jsx)(F,{...n,_label:`With popover`,_value:!1,_required:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`},children:(0,W.jsx)(`span`,{slot:`expert`,children:`Expert Slot & required`})})})]})}),us=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Label align "left" with label`,children:(0,W.jsx)(ls,{blockIdPrefix:`left`,...e,_labelAlign:`left`})}),(0,W.jsx)(Po,{heading:`Label align "left" without Label (hideLabel)`,children:(0,W.jsx)(ls,{blockIdPrefix:`left-hide`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0,_labelAlign:`left`})})]}),(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Label align "right" with label`,children:(0,W.jsx)(ls,{blockIdPrefix:`right`,...e})}),(0,W.jsx)(Po,{heading:`Label align "right" without Label (hideLabel)`,children:(0,W.jsx)(ls,{blockIdPrefix:`right-hide`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})]})}),ds=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:us,showButtons:!1})]}),fs=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolInputCheckbox in the variant "button".`})}),(0,W.jsx)(Mo,{RefComponent:us,_variant:`button`,showButtons:!1})]}),ps=()=>{let[e,t]=(0,E.useState)([]),n=(0,E.useCallback)(e=>{t(t=>[`${new Date().toISOString().slice(11,23)} ${e}`,...t].slice(0,8))},[]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Clicking the label text while the checkbox is already focused must `,(0,W.jsx)(`strong`,{children:`not`}),` fire a spurious `,(0,W.jsx)(`code`,{children:`onBlur`}),`. To verify the fix: focus the checkbox (Tab or first click), then click its label text again — the event log should show only `,(0,W.jsx)(`code`,{children:`onChange`}),`, `,(0,W.jsx)(`strong`,{children:`not`}),` `,(0,W.jsx)(`code`,{children:`onBlur`}),` followed by `,(0,W.jsx)(`code`,{children:`onFocus`}),`.`]})}),(0,W.jsx)(F,{_label:`Accept terms and conditions`,_on:{onFocus:()=>n(`onFocus`),onBlur:()=>n(`onBlur`),onChange:(e,t)=>n(`onChange → ${String(t)}`)}}),(0,W.jsxs)(`section`,{style:{marginTop:`1rem`},children:[(0,W.jsx)(`p`,{children:(0,W.jsx)(`strong`,{children:`Event log (newest first):`})}),e.length===0?(0,W.jsx)(`p`,{children:`No events yet.`}):(0,W.jsx)(`ol`,{style:{fontFamily:`monospace`,fontSize:`0.875rem`},children:e.map((e,t)=>(0,W.jsx)(`li`,{children:e},t))})]})]})},ms=({label:e,blockId:t,renderInput:n})=>{let[r,i]=(0,E.useState)(null),[a,o]=(0,E.useState)(null),s=(0,E.useMemo)(()=>({onChange:(e,t)=>{i(t)},onInput:(e,t)=>{o(t)}}),[]);return(0,W.jsxs)(G,{id:t??ba(e),className:`grid gap-4 mb-6`,"aria-label":`Event callback demo: ${e}`,children:[n(s),(0,W.jsxs)(`div`,{className:`grid gap-2`,children:[(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`onInput value:`}),` `,(0,W.jsx)(`code`,{children:JSON.stringify(a)})]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`onChange value:`}),` `,(0,W.jsx)(`code`,{children:JSON.stringify(r)})]})]})]})},hs={"input-checkbox":{basic:ds,"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputCheckbox`,renderInput:e=>(0,W.jsx)(F,{_label:`Accept terms`,_on:e})})]}),"focus-events":ps,switch:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolInputCheckbox in the variant "switch".`})}),(0,W.jsx)(Mo,{RefComponent:us,_variant:`switch`,showButtons:!1})]}),button:fs}},gs=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(Te,{...n,_msg:{_type:`error`,_description:K},_icons:{left:`kolicon-kolibri`},_label:`Color (Black background test)`,_value:`#f08080`})}),(0,W.jsx)(G,{...i(`suggestions-error`),children:(0,W.jsx)(Te,{...n,_msg:{_type:`error`,_description:K},_label:`Color with error and suggestions`,_suggestions:`['#000000','#f08080', '#0000ff','#00ff00']`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(Te,{...n,_msg:{_type:`info`,_description:`Just a hint message.`},_label:`Color`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(Te,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Color`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(Te,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Color`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(Te,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Color`,_touched:!0})}),(0,W.jsx)(G,{...i(`hint`),children:(0,W.jsx)(Te,{...n,ref:r,_accessKey:`C`,_hint:`Hint text`,_label:`Color with hint`,_value:`#f08080`})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(Te,{...n,_disabled:!0,_label:`Color (Disabled)`,_value:`#f08080`})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(Te,{...n,_label:`With access key`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(Te,{...n,_label:`With short key`,_shortKey:`s`})}),(0,W.jsx)(G,{...i(`info-popover`),children:(0,W.jsx)(Te,{...n,_label:`With short popover`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})})]})}),_s=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Color`,children:(0,W.jsx)(gs,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Color (hideLabel)`,children:(0,W.jsx)(gs,{blockIdPrefix:`hide-label`,snapshotOnly:`suggestions-error`,ref:t,...e,_hideLabel:!0})})]})}),vs={"input-color":{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:_s,showButtons:!1})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputColor`,renderInput:e=>(0,W.jsx)(Te,{_label:`Pick color`,_on:e})})]})}},ys=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(I,{...n,_type:`date`,_label:`Date input (Black background test)`,_required:!0})}),(0,W.jsx)(G,{...i(`datetime-local`),children:(0,W.jsx)(I,{...n,_type:`datetime-local`,_label:`Local-Datetime (Standard)`,_required:!0})}),(0,W.jsx)(G,{...i(`datetime-seconds`),children:(0,W.jsx)(I,{...n,_step:1,_type:`datetime-local`,_hint:wa,_msg:{_type:`error`,_description:K},_label:`Local datetime (with seconds)`,_required:!0,_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(I,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Date`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(I,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Date`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(I,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Date`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(I,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Date`,_touched:!0})}),(0,W.jsx)(G,{...i(`month`),children:(0,W.jsx)(I,{...n,_type:`month`,_label:`Month`,_required:!0})}),(0,W.jsx)(G,{...i(`week`),children:(0,W.jsx)(I,{...n,ref:r,_accessKey:`W`,_type:`week`,_label:`Week`,_required:!0})}),(0,W.jsx)(G,{...i(`time`),children:(0,W.jsx)(I,{...n,_type:`time`,_label:`Time (standard)`,_required:!0})}),(0,W.jsx)(G,{...i(`time-seconds`),children:(0,W.jsx)(I,{...n,_step:1,_type:`time`,_label:`Time (with seconds)`,_required:!0})}),(0,W.jsx)(G,{...i(`readonly`),children:(0,W.jsx)(I,{...n,_readOnly:!0,_label:`Date input (read-only)`,_required:!0})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(I,{...n,_disabled:!0,_label:`Date input (Disabled)`,_required:!0})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(I,{...n,_label:`With access key`,_accessKey:`s`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(I,{...n,_label:`With short key`,_shortKey:`s`})})]})}),bs=({blockIdPrefix:e,...t})=>{let n=new Date(`January 10, 2024, 12:00`),r=new Date(`October 20, 2024, 15:00`);return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{id:`${e}-date-iso`,children:(0,W.jsx)(I,{...t,_type:`date`,_label:`Date with Iso`,_min:`2024-09-26`,_max:`2024-09-27`})}),(0,W.jsx)(G,{id:`${e}-date-object`,children:(0,W.jsx)(I,{...t,_type:`date`,_label:`Date with Date`,_min:n,_max:r})}),(0,W.jsx)(G,{id:`${e}-time-iso`,children:(0,W.jsx)(I,{...t,_type:`time`,_label:`Time with Iso`,_min:`12:00`,_max:`15:00`})}),(0,W.jsx)(G,{id:`${e}-time-object`,children:(0,W.jsx)(I,{...t,_type:`time`,_label:`Time with Date`,_min:n,_max:r})}),(0,W.jsx)(G,{id:`${e}-datetime-iso`,children:(0,W.jsx)(I,{...t,_type:`datetime-local`,_label:`DayTime with Iso`,_min:`2024-09-26T12:00`,_max:`2024-09-27T15:00`})}),(0,W.jsx)(G,{id:`${e}-datetime-object`,children:(0,W.jsx)(I,{...t,_type:`datetime-local`,_label:`DayTime with Date`,_min:n,_max:r})}),(0,W.jsx)(G,{id:`${e}-week-iso`,children:(0,W.jsx)(I,{...t,_type:`week`,_label:`Week with Iso`,_min:`2024-W10`,_max:`2024-W50`})}),(0,W.jsx)(G,{id:`${e}-week-object`,children:(0,W.jsx)(I,{...t,_type:`week`,_label:`Week with Date`,_min:n,_max:r})}),(0,W.jsx)(G,{id:`${e}-month-iso`,children:(0,W.jsx)(I,{...t,_type:`month`,_label:`Month with Iso`,_min:`2024-02`,_max:`2024-10`})}),(0,W.jsx)(G,{id:`${e}-month-object`,children:(0,W.jsx)(I,{...t,_type:`month`,_label:`Month with Date`,_min:n,_max:r})})]})},xs=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Date`,children:(0,W.jsx)(ys,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Date (hideLabel)`,children:(0,W.jsx)(ys,{blockIdPrefix:`hide-label`,snapshotOnly:`datetime-seconds`,ref:t,...e,_hideLabel:!0})}),(0,W.jsx)(Po,{heading:`Date (with min/max)`,children:(0,W.jsx)(bs,{blockIdPrefix:`min-max`,...e})})]})}),Ss=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(Mo,{RefComponent:xs,showButtons:!1})]}),Cs=e=>String(e).padStart(2,`0`),ws=(e,t,n)=>{let r=new Date(e,t-1,n);return r.getFullYear()===e&&r.getMonth()===t-1&&r.getDate()===n};function Ts(e){let t=/^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(e);if(!t)return null;let n=+t[1],r=+t[2],i=+t[3];return ws(i,r,n)?`${i}-${Cs(r)}-${Cs(n)}`:null}function Es(e){return e instanceof HTMLElement&&e.tagName===`KOL-INPUT-DATE`}async function Ds(e,t){typeof e.setIsoValue==`function`?await e.setIsoValue(t):e.value===void 0?e._value===void 0?e.setAttribute(`_value`,t):e._value=t:e.value=t,e.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}var Os=()=>{let[e,t]=(0,E.useState)(`31.12.2025`),[n,r]=(0,E.useState)(``),i=(0,E.useRef)(null),a=(0,E.useMemo)(()=>Ts(e),[e]);(0,E.useEffect)(()=>{let e=new AbortController;return document.addEventListener(`focusin`,e=>{let t=e.composedPath?.()??[];i.current=t.find(Es)??null},{capture:!0,signal:e.signal}),()=>e.abort()},[]),(0,E.useEffect)(()=>{let e=new AbortController;return document.addEventListener(`paste`,e=>{let t=i.current;if(!t)return;let n=Ts(e.clipboardData?.getData(`text`)??``);n?(e.preventDefault(),Ds(t,n),r(`Pasted.`)):r(`Clipboard: unrecognized date. Use DD.MM.YYYY.`)},{capture:!0,signal:e.signal}),()=>e.abort()},[]);let o=(0,E.useCallback)(async e=>{r(``);try{await navigator.clipboard.writeText(e),r(`Copied.`)}catch{r(`Copy failed. Your browser may block clipboard access.`)}},[]),s=(0,E.useCallback)((e,n)=>{e?.target&&t(typeof n==`string`?n:String(n??``))},[]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Type a date in German format (`,(0,W.jsx)(`code`,{children:`DD.MM.YYYY`}),`), click `,(0,W.jsx)(`em`,{children:`Copy to Clipboard`}),`, then paste it into the date field below with `,(0,W.jsx)(`kbd`,{children:`Ctrl`}),`+`,(0,W.jsx)(`kbd`,{children:`V`}),`. The ISO conversion happens internally.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,lang:`en`,children:[(0,W.jsxs)(`section`,{"aria-labelledby":`de-title`,children:[(0,W.jsx)(`h3`,{id:`de-title`,className:`text-lg font-semibold mb-2`,children:`German date (DD.MM.YYYY)`}),(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsx)(L,{className:`w-full`,_label:`German date (DD.MM.YYYY)`,_placeholder:`e.g., 31.12.2025`,_value:e,_type:`text`,_on:{onInput:s,onChange:s}}),(0,W.jsx)(`p`,{className:`opacity-80`,id:`button-desc`,children:`Click the button to copy the exact German date, then paste it into the date field below.`}),(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(j,{_label:`Copy to Clipboard`,_on:{onClick:()=>o(e)},"aria-describedby":`button-desc`}),!a&&(0,W.jsx)(`span`,{className:`text-red-600`,children:`Invalid date`})]}),(0,W.jsx)(I,{_type:`date`,_label:`Date (paste here with Ctrl+V)`,className:`w-full`})]})]}),(0,W.jsx)(`p`,{"aria-live":`polite`,role:`status`,className:`mt-2 opacity-80`,children:n})]})]})},ks=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputDate`,renderInput:e=>(0,W.jsx)(I,{_label:`Date`,_on:e})})]}),As=()=>{let e=(0,E.useRef)(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates the KolInputDate `,(0,W.jsx)(`code`,{children:`reset`}),`-Method, which can be used to clear the field, even when it holds incomplete or invalid values.`]})}),(0,W.jsx)(I,{className:`w-full`,ref:e,_label:`Resettable Input Date`,_value:`2024-02-10`}),(0,W.jsx)(j,{className:`mt`,_label:`Reset`,_on:{onClick:()=>e.current?.reset()}})]})},js=[`default`,`error`,`info`,`success`,`warning`];function Ms(e){return{onChange:()=>e(e=>!e)}}var Ns={"input-date":{basic:Ss,"get-value":ks,"copy-paste":Os,reset:As,"show-hide-msg":()=>{let[e,t]=(0,E.useState)(!0),[n,r]=(0,E.useState)(!0),[i,a]=(0,E.useState)(!1),o=Ms(t),s=Ms(r),c=Ms(a);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This example shows how messages work in input fields.`})}),(0,W.jsxs)(`div`,{className:`flex gap-4 flex-col`,children:[(0,W.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,W.jsx)(F,{_label:`Toggle Msg`,_on:o,_checked:e,_variant:`button`}),(0,W.jsx)(F,{_label:`Toggle Touched`,_on:s,_checked:n,_variant:`button`}),(0,W.jsx)(F,{_label:`Toggle Hide Msg`,_on:c,_checked:i,_variant:`button`})]}),(0,W.jsxs)(`pre`,{children:[`Message exists: `,e?`Yes`:`No`,` (showMsg: `,e?`Yes`:`No`,`)`,(0,W.jsx)(`br`,{}),`Non-Error-Message visible: `,e&&!i?`Yes`:`No`,` (showMsg: `,e?`Yes`:`No`,`, hideMsg: `,i?`Yes`:`No`,`)`,(0,W.jsx)(`br`,{}),`Error-Message visible: `,e&&n&&!i?`Yes`:`No`,` (showMsg: `,e?`Yes`:`No`,`, isTouched: `,n?`Yes`:`No`,`, hideMsg: `,i?`Yes`:`No`,`)`]}),js.map(t=>(0,W.jsx)(I,{_hideMsg:i,_label:`Date (_msg, ${t})`,_msg:e?{_description:`${t} message`,_type:t}:void 0,_touched:n},t))]})]})}}},Ps=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(Ee,{...n,_required:!0,_value:`test@mail.de`,_msg:{_type:`error`,_description:K},_label:`E-Mail (Black background test)`})}),(0,W.jsx)(G,{...i(`suggestions`),children:(0,W.jsx)(Ee,{...n,ref:r,_accessKey:`M`,_placeholder:`elke@mustermann.de`,_suggestions:`['test1@mail.de', 'test2@mail.de', 'test3@mail.de']`,_label:`E-Mail (list)`,_hint:wa,_msg:{_type:`error`,_description:K},_touched:!0,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}}})}),(0,W.jsx)(G,{...i(`info-popover`),children:(0,W.jsx)(Ee,{...n,_required:!0,_label:`E-Mail`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(Ee,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`E-Mail`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(Ee,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`E-Mail`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(Ee,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`E-Mail`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(Ee,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`E-Mail`,_touched:!0})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(Ee,{...n,_disabled:!0,_value:`test@mail.de`,_label:`E-Mail (Disabled)`})}),(0,W.jsx)(G,{...i(`readonly`),children:(0,W.jsx)(Ee,{...n,_readOnly:!0,_value:`test@mail.de`,_label:`E-Mail (Readonly)`})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(Ee,{...n,_value:`test@mail.de`,_label:`With access key`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(Ee,{...n,_value:`test@mail.de`,_label:`With short key`,_shortKey:`s`})})]})}),Fs=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Email`,children:(0,W.jsx)(Ps,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Email (hideLabel)`,children:(0,W.jsx)(Ps,{blockIdPrefix:`hide-label`,snapshotOnly:`suggestions`,ref:t,...e,_hideLabel:!0})})]})}),Is={"input-email":{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:Fs,showButtons:!1})]}),counter:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases an email input with a counter for the chars in the field. Maximal length is 30.`})}),(0,W.jsx)(G,{id:`counter`,children:(0,W.jsx)(Ee,{_label:`E-Mail`,_value:`anderson@example.com`,_hasCounter:!0,_maxLength:30})})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputEmail`,renderInput:e=>(0,W.jsx)(Ee,{_label:`E-Mail`,_on:e})})]})}},Ls={onClick:()=>console.log(`click`),onChange:(e,t)=>console.log(`onChange `,e,t),onInput:(e,t)=>console.log(`onInput`,e,t)},Rs=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(De,{...n,_label:`Upload file (Black background test)`,_icons:{left:{icon:`kolicon-up`}},_touched:!0,_on:Ls})}),(0,W.jsx)(G,{...i(`error`),children:(0,W.jsx)(De,{...n,_required:!0,_hint:wa,_msg:{_type:`error`,_description:K},_label:`Upload file (Error State)`,_icons:{left:{icon:`kolicon-up`}},_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(De,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Upload file`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(De,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Upload file`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(De,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Upload file`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(De,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Upload file`,_touched:!0})}),(0,W.jsx)(G,{...i(`multiple`),children:(0,W.jsx)(De,{...n,ref:r,_accessKey:`h`,_multiple:!0,_msg:{_type:`error`,_description:K},_label:`Upload file (Multiple)`})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(De,{...n,_disabled:!0,_label:`Upload file (Disabled)`})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(De,{...n,_label:`With access key`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(De,{...n,_label:`With short key`,_shortKey:`s`})})]})}),zs=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`File`,children:(0,W.jsx)(Rs,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`File (hideLabel)`,children:(0,W.jsx)(Rs,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Bs={"input-file":{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:zs,showButtons:!1})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputFile`,renderInput:e=>(0,W.jsx)(De,{_label:`Upload file`,_on:e})})]})}},Vs=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(Oe,{...n,_required:!0,_touched:!0,_value:123,_label:`Number input (Black background test)`})}),(0,W.jsx)(G,{...i(`icons-error`),children:(0,W.jsx)(Oe,{...n,_required:!0,_msg:{_type:`error`,_description:K},_touched:!0,_placeholder:`Mit Icons`,_label:`Number input`,_icons:{left:{icon:`kolicon-kolibri`},right:{icon:`kolicon-kolibri`}},_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-error`),children:(0,W.jsx)(Oe,{...n,_required:!0,_msg:{_type:`error`,_description:K},_touched:!0,_value:123,_label:`Number input`})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(Oe,{...n,_required:!0,_msg:{_type:`warning`,_description:K},_touched:!0,_value:123,_label:`Number input`})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(Oe,{...n,_required:!0,_msg:{_type:`info`,_description:K},_touched:!0,_value:123,_label:`Number input`})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(Oe,{...n,_required:!0,_msg:{_type:`success`,_description:K},_touched:!0,_value:123,_label:`Number input`})}),(0,W.jsx)(G,{...i(`min-max-step`),children:(0,W.jsx)(Oe,{...n,ref:r,_accessKey:`Z`,_max:10,_min:-10,_step:2,_label:`Number input (-10 to 10 in steps of 2)`})}),(0,W.jsx)(G,{...i(`hint`),children:(0,W.jsx)(Oe,{...n,_hint:`Hint text`,_value:123,_label:`Number input with hint`})}),(0,W.jsx)(G,{...i(`readonly`),children:(0,W.jsx)(Oe,{...n,_readOnly:!0,_value:123,_label:`Number input (Readonly)`})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(Oe,{...n,_disabled:!0,_value:123,_label:`Number input (Disabled)`})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(Oe,{...n,_label:`With access key`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(Oe,{...n,_label:`With short key`,_shortKey:`s`})})]})}),Hs=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Number`,children:(0,W.jsx)(Vs,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Number (hideLabel)`,children:(0,W.jsx)(Vs,{blockIdPrefix:`hide-label`,snapshotOnly:`msg-error`,ref:t,...e,_hideLabel:!0})})]})}),Us=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(Mo,{RefComponent:Hs,showButtons:!1})]}),Ws=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputNumber`,renderInput:e=>(0,W.jsx)(Oe,{_label:`Amount`,_on:e})})]}),Gs=e=>e.type===`checkbox`,Ks=e=>e.type===`file`,qs=e=>e instanceof Date,Js=e=>e==null,Ys=e=>typeof e==`object`,Xs=e=>!Js(e)&&!Array.isArray(e)&&Ys(e)&&!qs(e),Zs=e=>Xs(e)&&e.target?Gs(e.target)?e.target.checked:Ks(e.target)?e.target.files:e.target.value:e,Qs=/[.[\]'"]/,$s=e=>e.split(Qs).filter(Boolean);function ec(e,t){let n=$s(t),r=e._formValues,i=e._defaultValues;for(let e=0;e<n.length-1;e++){let t=n[e];if(r=r==null?r:r[t],i=i==null?i:i[t],r===null||i===null)return null}}var tc=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),nc=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function rc(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e);let t=typeof Blob<`u`&&e instanceof Blob,n=typeof FileList<`u`&&e instanceof FileList;if(nc&&(t||n))return e;let r=Array.isArray(e);if(!r&&e.constructor!==Object)return e;let i=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=rc(e[t]));return i}var ic={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},ac={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},oc={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},sc=[oc.required,oc.min,oc.max,oc.minLength,oc.maxLength,oc.pattern,oc.validate],cc=`form`,lc=`root`,uc=[`__proto__`,`constructor`,`prototype`],dc=/^\w*$/,fc=e=>dc.test(e),pc=e=>e===void 0,Y=(e,t,n)=>{if(!t||!Xs(e))return n;let r=fc(t)?[t]:$s(t);if(r.some(e=>uc.includes(e)))return n;let i=r.reduce((e,t)=>Js(e)?void 0:e[t],e);return pc(i)||i===e?pc(e[t])?n:e[t]:i},mc=e=>typeof e==`boolean`,hc=e=>typeof e==`function`,gc=(e,t,n)=>{let r=-1,i=fc(t)?[t]:$s(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=Xs(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(uc.includes(t))return;e[t]=a,e=e[t]}},_c=E.createContext(null);_c.displayName=`HookFormControlContext`;var vc=()=>E.useContext(_c),yc=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==ac.all&&(t._proxyFormState[i]=!r||ac.all),n&&(n[i]=!0),e[i]}});return i},bc=nc?E.useLayoutEffect:E.useEffect,xc=e=>{let t=e.constructor&&e.constructor.prototype;return Xs(t)&&t.hasOwnProperty(`isPrototypeOf`)},Sc=e=>Js(e)||!Ys(e),Cc=(e,t)=>t.length===0&&!Array.isArray(e)&&!xc(e);function wc(e,t,n=new WeakMap){if(e===t)return!0;if(Sc(e)||Sc(t))return Object.is(e,t);if(qs(e)&&qs(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Cc(e,r)||Cc(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(qs(r)&&qs(e)||(Xs(r)||Array.isArray(r))&&(Xs(e)||Array.isArray(e))?!wc(r,e,n):!Object.is(r,e))return!1}}return!0}function Tc(e){let t=E.useRef(!1),n=E.useRef(!1),r=E.useRef(void 0),i=E.useRef(0);return i.current++,!n.current&&e&&(n.current=!0,r.current=rc(e())),{resyncIfNeeded:E.useCallback((e,a,o)=>{if(e&&(t.current||n.current&&i.current>1)){let e=a();wc(r.current,e)||o(e)}t.current=!0},[]),snapshot:E.useCallback((e,t)=>{e&&(r.current=rc(t()))},[])}}function Ec(e){let t=vc(),{control:n=t,disabled:r,name:i,exact:a}=e||{},o=()=>({...n._formState,defaultValues:n._defaultValues}),[s,c]=E.useState(o),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:u,snapshot:d}=Tc(o);return bc(()=>{u(!r,o,c);let e=n._subscribe({name:i,formState:l.current,exact:a,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{e(),d(!r,o)}},[n,i,r,a,u,d]),E.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>yc(s,n,l.current,!1),[s,n])}var Dc=e=>typeof e==`string`,Oc=(e,t,n,r,i)=>Dc(e)?(r&&t.watch.add(e),Y(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Y(n,e,Y(i,e)))):(r&&(t.watchAll=!0),n);function kc(e){let t=vc(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=E.useRef(i),l=E.useRef(s),u=E.useRef(n),d=E.useRef(r);l.current=s;let f=()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e},[p,m]=E.useState(f),h=E.useRef(p),g=E.useCallback(e=>{let t=Oc(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),_=E.useCallback(e=>{if(!a){let t=Oc(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);wc(e,h.current)||(m(e),h.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:v,snapshot:y}=Tc(f),b=E.useRef(_);b.current=_;let x=E.useRef(g);x.current=g,bc(()=>{u.current!==n||!wc(d.current,r)?(u.current=n,d.current=r,b.current()):v(!a,()=>x.current(),e=>{m(e),h.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{b.current(e.values)}});return()=>{e(),y(!a,()=>x.current())}},[n,o,r,a,v,y]),E.useEffect(()=>n._removeUnmounted());let S=u.current!==n,C=d.current;return E.useMemo(()=>{if(a)return!1;let e=!S&&!wc(C,r);return S||e},[a,S,r,C])?g():p}function Ac(e){let t=vc(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=tc(i._names.array,n),l=kc({control:i,name:n,defaultValue:E.useMemo(()=>{let e=Y(i._formValues,n,Y(i._defaultValues,n,o));return pc(e)?ec(i,n):e},[i,n,o]),exact:s}),u=Ec({control:i,name:n,exact:s}),d=E.useRef(e),f=E.useRef(null),p=E.useRef(i.register(n,{...e.rules,value:l,...mc(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Y(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Y(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Y(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Y(u.validatingFields,n)},error:{enumerable:!0,get:()=>Y(u.errors,n)}}),[u,n]),h=E.useCallback(e=>{let t=Zs(e);return Y(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:Zs(e),name:n},type:ic.CHANGE})},[n,i]),g=E.useCallback(()=>p.current.onBlur({target:{value:Y(i._formValues,n),name:n},type:ic.BLUR}),[n,i._formValues]),_=E.useCallback(e=>{e&&(f.current={focus:()=>hc(e.focus)&&e.focus(),select:()=>hc(e.select)&&e.select(),setCustomValidity:t=>hc(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>hc(e.reportValidity)&&e.reportValidity()});let t=Y(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current,t._f._c=!0)},[i._fields,n]),v=E.useMemo(()=>({name:n,value:l,...mc(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return E.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...mc(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Y(i._fields,e);n&&n._f&&(n._f.mount=t,n._f._c=t)};if(t(n,!0),e){let e=rc(Y(a?i._defaultValues:i._options.values||i._defaultValues,n,Y(i._options.defaultValues,n,d.current.defaultValue)));gc(i._defaultValues,n,e),pc(Y(i._formValues,n))&&gc(i._formValues,n,e)}if(!c&&i.register(n,{...d.current.rules,...mc(d.current.disabled)?{disabled:d.current.disabled}:{}}),f.current){let e=Y(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),E.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),E.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var jc=e=>e.render(Ac(e)),Mc=e=>({isOnSubmit:!e||e===ac.onSubmit,isOnBlur:e===ac.onBlur,isOnChange:e===ac.onChange,isOnAll:e===ac.all,isOnTouch:e===ac.onTouched}),Nc=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},Pc=(e,t,n)=>{for(let r of n||Object.keys(e)){if(r===`_f`)continue;let i=n?Y(e,r):e[r];if(i){let{_f:e}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],e.name)||e.ref&&t(e.ref,e.name)||Pc(i,t))return!0}else if((Xs(i)||Array.isArray(i))&&Pc(i,t))return!0}}},Fc=(e,t,n)=>{let r=Y(e,n),i=Array.isArray(r)?r:[];return gc(i,lc,t[n]),gc(e,n,i),e},Ic=e=>Xs(e)&&!Object.keys(e).length,Lc=e=>{if(!nc)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Rc=e=>e.type===`radio`,zc=e=>e instanceof RegExp,Bc=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Vc={value:!1,isValid:!1},Hc={value:!0,isValid:!0},Uc=e=>{if(!Array.isArray(e))return Vc;if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}let t=e[0];return!t||!t.checked||t.disabled?Vc:!t.attributes||!(`value`in t.attributes)||pc(t.value)||t.value===``?Hc:{value:t.value,isValid:!0}},Wc={isValid:!1,value:null},Gc=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Wc):Wc;function Kc(e,t,n=`validate`){if(Dc(e)||Array.isArray(e)&&e.every(Dc)||mc(e)&&!e)return{type:n,message:Dc(e)?e:``,ref:t}}var qc=e=>Xs(e)&&!zc(e)?e:{value:e,message:``},Jc=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_,_c:v}=e._f,y=Y(n,h);if(!_||t.has(h))return{};let b=s?s[0]:o,x=e=>{if(i&&b.reportValidity){let t=mc(e)?``:e||``;s?s.forEach(e=>hc(e.setCustomValidity)&&e.setCustomValidity(t)):b.setCustomValidity(t),b.reportValidity()}},S={},C=Rc(o),w=Gs(o),T=C||w,ee=(g||Ks(o))&&pc(o.value)&&pc(y)||Lc(o)&&o.value===``&&!v||y===``||Array.isArray(y)&&!y.length,te=Bc.bind(null,h,r,S),E=(e,t,n,r=oc.maxLength,i=oc.minLength)=>{let a=e?t:n;S[h]={type:e?r:i,message:a,ref:o,...te(e?r:i,a)}};if(a?!Array.isArray(y)||!y.length:c&&(!T&&(ee||Js(y))||mc(y)&&!y||w&&!Uc(s).isValid||C&&!Gc(s).isValid)){let{value:e,message:t}=Dc(c)?{value:!!c,message:c}:qc(c);if(e&&(S[h]={type:oc.required,message:t,ref:b,...te(oc.required,t)},!r))return x(t),S}if(!ee&&(!Js(d)||!Js(f))){let e,t,n=qc(f),i=qc(d);if(!Js(y)&&!qs(y)&&!isNaN(y)){let r=o.valueAsNumber||y&&+y;Js(n.value)||(e=r>n.value),Js(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(y),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;Dc(n.value)&&y&&(e=s?a(y)>a(n.value):c?y>n.value:r>new Date(n.value)),Dc(i.value)&&y&&(t=s?a(y)<a(i.value):c?y<i.value:r<new Date(i.value))}if((e||t)&&(E(!!e,n.message,i.message,oc.max,oc.min),!r))return x(S[h].message),S}if((l||u)&&!ee&&(Dc(y)||a&&Array.isArray(y))){let e=qc(l),t=qc(u),n=!Js(e.value)&&y.length>+e.value,i=!Js(t.value)&&y.length<+t.value;if((n||i)&&(E(n,e.message,t.message),!r))return x(S[h].message),S}if(p&&!ee&&Dc(y)){let{value:e,message:t}=qc(p);if(zc(e)&&!y.match(e)&&(S[h]={type:oc.pattern,message:t,ref:o,...te(oc.pattern,t)},!r))return x(t),S}if(m){if(hc(m)){let e=Kc(await m(y,n),b);if(e&&(S[h]={...e,...te(oc.validate,e.message)},!r))return x(e.message),S}else if(Xs(m)){let e={};for(let t in m){if(!Ic(e)&&!r)break;let i=Kc(await m[t](y,n),b,t);i&&(e={...i,...te(t,i.message)},r||x(i.message),r&&(S[h]=e))}if(!Ic(e)&&(S[h]={ref:b,...e},!r))return S}}let ne=S[h];return x(!ne||ne.message),S},Yc=e=>Array.isArray(e)?e:[e],Xc=e=>Array.isArray(e)?e.filter(Boolean):[];function Zc(e,t){let n=t.length-1,r=0;for(;r<n;){if(Js(e)){e=void 0;break}e=e[t[r]],r++}return e}function Qc(e){for(let t in e)if(e.hasOwnProperty(t)&&!pc(e[t]))return!1;return!0}function X(e,t){if(Dc(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:fc(t)?[t]:$s(t);if(n.some(e=>uc.includes(String(e))))return e;let r=n.length===1?e:Zc(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Xs(r)&&Ic(r)||Array.isArray(r)&&Qc(r))&&X(e,n.slice(0,-1)),e}var $c=E.createContext(null);$c.displayName=`HookFormContext`;var el=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function tl(e,t){let n=Array.isArray(e)?[]:{};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];i&&(Xs(i)||Array.isArray(i))&&a?n[r]=tl(i,a):e[r]&&(n[r]=a)}return n}var nl=(e,t)=>e!==null&&Ys(e)&&Object.prototype.hasOwnProperty.call(e,t),rl=(e,t)=>{if(!t)return!1;let n=e;for(let r of fc(t)?[t]:$s(t)){if(!nl(n,r))return nl(e,t);n=n[r]}return!0},il=e=>e.type===`select-multiple`,al=e=>Rc(e)||Gs(e),ol=e=>Lc(e)&&e.isConnected;function sl(e){return Array.isArray(e)||Xs(e)}function cl(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];sl(o)&&sl(Y(t,a))?cl(o,t,a,r):r.push(a)}return r}var ll=e=>{for(let t in e)if(hc(e[t]))return!0;return!1};function ul(e){return Array.isArray(e)||Xs(e)&&!ll(e)}function dl(e){return!!(e&&`_f`in e)}function fl(e){return Array.isArray(e)?!e.some(e=>!pc(e)):!Object.keys(e).length}function pl(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function ml(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];ul(i)&&(!Array.isArray(i)||!dl(a))?(t[r]=Array.isArray(i)?[]:{},ml(i,t[r],a),fl(t[r])&&pl(t,r)):pc(i)||(t[r]=!0)}return t}function hl(e,t,n,r){n||=ml(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];ul(a)&&(!Array.isArray(a)||!dl(o))?(pc(t)||Sc(n[i])?n[i]=ml(a,Array.isArray(a)?[]:{},o):hl(a,Js(t)?{}:t[i],n[i],o),fl(n[i])&&pl(n,i)):wc(a,t[i])?pl(n,i):n[i]=!0}return n}var gl=(e,t)=>{let n=t.split(`.`),r=[],i=n[0];for(let t=1;t<n.length;i+=`.`+n[t++])!isNaN(+n[t])&&e.has(i)&&r.push(`${i}.${n[t]}`);return r},_l=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>pc(e)?e:t?e===``?NaN:e&&+e:n&&Dc(e)?new Date(e):r?r(e):e;function vl(e){let t=e.ref;return Ks(t)?t.files:Rc(t)?Gc(e.refs).value:il(t)?[...t.selectedOptions].map(({value:e})=>e):Gs(t)?Uc(e.refs).value:_l(t.value,e)}var yl=(e,t,n,r)=>{let i={};for(let n of e){let e=Y(t,n);e&&gc(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},bl=e=>pc(e)?e:zc(e)?e.source:Xs(e)?zc(e.value)?e.value.source:e.value:e,xl=`AsyncFunction`,Sl=e=>{if(!e||!e.validate)return!1;if(hc(e.validate))return e.validate.constructor.name===xl;if(Xs(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===xl)return!0}return!1},Cl=e=>e.mount&&(e.required||!pc(e.required)&&e.required!==!1||!pc(e.min)||!pc(e.max)||!pc(e.maxLength)||!pc(e.minLength)||e.pattern||e.validate);function wl(e,t,n){let r=Y(e,n);if(r?.type||r?.message||Array.isArray(r))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=Y(t,r),o=Y(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Tl=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||ac.all))},El=(e,t,n)=>!e||!t||e===t||Yc(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),Dl=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,Ol=(e,t)=>{let n=Y(e,t);!Xc(n).length&&!(n!=null&&n.root)&&X(e,t)},kl={mode:ac.onSubmit,reValidateMode:ac.onChange,shouldFocusError:!0},Al=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},jl={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Ml(e={}){let t={...kl,...e},n={...rc(jl),isLoading:hc(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(Xs(t.defaultValues)||Xs(t.values))&&rc(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:rc(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=Mc(t.mode),f=Mc(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g=(...e)=>e.some(e=>m[e]||h[e]),_={array:el(),state:el()},v=0,y=0,b=t.criteriaMode===ac.all,x=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},S=e=>{clearTimeout(l[e]),delete l[e],delete c[e]},C=e=>{S(e);let t=`${e}.`;for(let e of Object.keys(c))e.startsWith(t)&&S(e)},w=async e=>{if(!o.keepIsValid&&!t.disabled&&(g(`isValid`)||e)){let e=++v,i;t.resolver?(i=Ic((await k()).errors),e===v&&T()):i=await ce({fields:r,onlyCheckValid:!0,eventType:ic.VALID}),e===v&&i!==n.isValid&&_.state.next({isValid:i})}},T=(e,r)=>{!t.disabled&&g(`isValidating`,`validatingFields`)&&((e||s.mount).forEach(e=>{e&&(r?gc(n.validatingFields,e,r):X(n.validatingFields,e))}),_.state.next({validatingFields:n.validatingFields,isValidating:!Ic(n.validatingFields)}))},ee=()=>{n.dirtyFields=hl(i,a,void 0,r)},te=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){o.action=!0;let t=Y(r,e);if(o.actionArrayLengths.has(e)||o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0),u&&Array.isArray(t)){let n=s(t,c.argA,c.argB);l&&gc(r,e,n)}let a=Y(n.errors,e);if(u&&Array.isArray(a)){let t=a.root,r=s(a,c.argA,c.argB)||a;t&&(r.root=t),l&&gc(n.errors,e,r),Ol(n.errors,e)}let d=Y(n.touchedFields,e),f=u&&Array.isArray(d);if(f){let t=s(d,c.argA,c.argB);l&&gc(n.touchedFields,e,t)}let p=Y(n.dirtyFields,e);if(u&&Array.isArray(p)){let t=s(p,c.argA,c.argB)||p;l&&gc(n.dirtyFields,e,t)}g(`dirtyFields`)&&ee(),_.state.next({name:e,isDirty:ue(e,i),dirtyFields:n.dirtyFields,...f&&{touchedFields:n.touchedFields},errors:n.errors,isValid:n.isValid})}else gc(a,e,i)},E=(e,t)=>{gc(n.errors,e,t),n.errors={...n.errors},_.state.next({errors:n.errors})},ne=e=>{Object.keys(c).forEach(S);let t=!Ic(e);n.errors=e,_.state.next({errors:n.errors,...t?{isValid:!1}:{}}),!t&&o.mount&&w()},re=e=>{let t=fc(e)?[e]:$s(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=Js(n)?n:n[i],r=Js(r)?r:r[i],n===null&&r!==null)return!0}return!1},ie=e=>{if(!o.actionArrayLengths.size)return!1;let t=fc(e)?[e]:$s(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(Js(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;if(o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a],pc(n)&&i!==-1&&e>i&&+t[i]<s)return!0}return!1},ae=(c,l,u,d)=>{let f=Y(r,c);if(f){if(re(c)||ie(c))return;let r=pc(Y(a,c)),p=Y(a,c,pc(u)?Y(i,c):u);pc(p)||d&&d.defaultChecked||l?gc(a,c,l?p:vl(f._f)):fe(c,p),o.mount&&!o.action&&(t.resolver&&g(`isValidating`,`validatingFields`)?Promise.resolve().then(()=>w()):w(),r&&n.isDirty&&g(`isDirty`)&&(ue()||(n.isDirty=!1,_.state.next({...n}))),e.shouldUnregister&&r&&!pc(Y(a,c))&&Nc(c,s)&&(o.watch=!0))}},D=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=wc(Y(i,e),o);g(`isDirty`)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||ue(),u=d!==f.isDirty),d=!!Y(n.dirtyFields,e),t===n.isDirty?t?X(n.dirtyFields,e):gc(n.dirtyFields,e,!0):Al(n.dirtyFields,hl(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=g(`dirtyFields`)&&d!==!t}if(s){let t=Y(n.touchedFields,e);t||(gc(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=g(`touchedFields`)&&t!==s)}u&&l&&_.state.next(f)}return u?f:{}},O=(e,r,i,a)=>{let o=Y(n.errors,e),s=g(`isValid`)&&mc(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=x(e,()=>E(e,i)),c[e](t.delayError)):(S(e),i?gc(n.errors,e,i):X(n.errors,e),n.errors={...n.errors}),(i?!wc(o,i):o)||!Ic(a)||s){let t={...a,...s&&mc(r)?{isValid:r}:{},errors:n.errors,name:e};_.state.next(t)}},k=async e=>(T(e,!0),await t.resolver(a,t.context,yl(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),oe=async e=>{let t=y,{errors:i}=await k(e);if(t!==y)return i;if(T(e),e){for(let t of e){let e=Y(i,t);C(t);let a=s.array.has(t)&&Xs(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e))),o=Y(r,t),c=Xs(o)&&Object.keys(o).some(e=>e!==`_f`);a?Fc(n.errors,{[t]:e},t):e?.type||e?.message||Array.isArray(e)||Xs(e)&&c?gc(n.errors,t,e):X(n.errors,t)}n.errors={...n.errors}}else Object.keys(c).forEach(S),n.errors=i;return i},se=async({name:e,eventType:r})=>{if(t.validate){let i=y,o=await t.validate({formValues:a,formState:n,name:e,eventType:r});if(i!==y)return!0;if(Xs(o)){let e=!0;be(cc);for(let t in o){let n=o[t];n&&(e=!1,xe(`${cc}.${t}`,{message:Dc(n.message)?n.message:``,type:n.type||oc.validate}))}return e}return Dc(o)||!o?(xe(cc,{message:o||``,type:oc.validate}),!1):(be(cc),!0)}return!0},ce=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{let u=y;if(t.validate&&!l.runRootValidation&&(l.runRootValidation=!0,!await se({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let d=r[o];if(d){let{_f:r,...f}=d;if(r){let o=s.array.has(r.name),c=d._f&&Sl(d._f),f=g(`isValidating`,`validatingFields`);c&&f&&T([r.name],!0);let p=await Jc(d,s.disabled,a,b,t.shouldUseNativeValidation&&!i,o);if(u!==y)return l.valid;if(c&&f&&T([r.name]),p[r.name]&&(l.valid=!1,i)||(i||(S(r.name),Y(p,r.name)?o?Fc(n.errors,p,r.name):gc(n.errors,r.name,p[r.name]):X(n.errors,r.name)),e.shouldUseNativeValidation&&p[r.name]))break}!Ic(f)&&await ce({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},le=()=>{for(let e of s.unMount){let t=Y(r,e);t&&(t._f.refs?t._f.refs.every(e=>!ol(e)):!ol(t._f.ref))&&we(e)}s.unMount=new Set},ue=(e,t)=>(e&&t&&gc(a,e,t),!wc(o.mount?a:i,i)),de=(e,t,n)=>Oc(e,s,{...o.mount?a:pc(t)||Dc(e)?i:t},n,t),A=e=>Xc(Y(o.mount?a:i,e,t.shouldUnregister?Y(i,e,[]):[])),fe=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=Y(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&gc(a,e,_l(t,n)),l=Lc(n.ref)&&Js(t)?``:t,il(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?Gs(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):Ks(n.ref)?n.ref.value=``:(n.ref.value=l,n.ref.type||o||s||_.state.next({name:e,values:i?a:rc(a)})))}(n.shouldDirty||n.shouldTouch)&&D(e,c&&c._f&&!c._f.disabled&&(c._f.valueAsNumber||c._f.valueAsDate||c._f.setValueAs)?_l(t,c._f):l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&M(e,{delayError:n.delayError}),n.shouldValidate&&c&&c._f&&c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&M(c._f.deps)},pe=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&_.array.next({name:e,values:i?a:rc(a)});for(let a in t){if(!t.hasOwnProperty(a))continue;let l=t[a],u=e+`.`+a,d=Y(r,u);(s.array.has(e)||Xs(l)||d&&!d._f)&&!qs(l)?pe(u,l,n,i,o,c):fe(u,l,n,i,o,c)}},me=(e,t,i,c,l=!1)=>{let u=Y(r,e),d=s.array.has(e),f=c?t:rc(t),p=wc(Y(a,e),f);if(p||gc(a,e,f),d)_.array.next({name:e,values:c?a:rc(a)}),g(`isDirty`,`dirtyFields`)&&i.shouldDirty&&(ee(),l||_.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:ue(e,f)})),i.shouldValidate&&M(e,{delayError:i.delayError});else{let t=Array.isArray(f)&&!f.length||Ic(f),n=!p&&!l;!u||u._f||Js(f)||t?fe(e,f,i,c,l,n):pe(e,f,i,c,l,n)}if(!p&&!l){let t=Nc(e,s),r=c?a:rc(a);if(_.state.next({...t&&n,name:o.mount||t?e:void 0,values:r}),!d)for(let t of gl(s.array,e))_.state.next({name:t,values:r})}},he=(e,t,n={})=>me(e,t,n,!1),ge=(e,t={})=>{let r=hc(e)?e(a):e;if(!wc(a,r)){a={...a,...r};for(let e of s.mount)rl(r,e)&&me(e,Y(r,e),t,!0,!0);_.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&w()}},_e=async e=>{o.mount=!0;let i=e.target,l=i.name,p=!0,m=Y(r,l),h=e=>{p=Number.isNaN(e)||qs(e)&&isNaN(e.getTime())||wc(e,Y(a,l,e))};if(m){let o,v,x=i.type?vl(m._f):Zs(e),S=e.type===ic.BLUR||e.type===ic.FOCUS_OUT,C=!Cl(m._f)&&!t.validate&&!t.resolver&&!Y(n.errors,l)&&!m._f.deps,ee=C||Dl(S,Y(n.touchedFields,l),n.isSubmitted,f,d),te=Nc(l,s,S);if(gc(a,l,rc(x)),S){if(!i||!i.readOnly){m._f.onBlur&&m._f.onBlur(e);let t=c[l];t&&t(0)}}else m._f.onChange&&m._f.onChange(e);let E=D(l,x,S),ne=!Ic(E)||te;if(!S&&_.state.next({name:l,type:e.type,...u?{values:rc(a)}:{}}),ee)return C&&n.isValid||!g(`isValid`)||(t.mode===`onBlur`?S&&w():S||w()),ne&&_.state.next({name:l,...te?{}:E});if(!t.resolver&&t.validate&&await se({name:l,eventType:e.type}),!S&&te&&_.state.next({...n}),t.resolver){let e=y,{errors:t}=await k([l]);if(e!==y)return;if(T([l]),h(x),!p){!Ic(E)&&_.state.next(E);return}let i=wl(n.errors,r,l),a=wl(t,r,i.name||l);o=a.error,l=a.name,v=Ic(t)}else{let n=y;if(T([l],!0),o=(await Jc(m,s.disabled,a,b,t.shouldUseNativeValidation))[l],n!==y)return;if(T([l]),h(x),p){if(o)v=!1;else if(g(`isValid`)&&(v=await ce({fields:r,onlyCheckValid:!0,name:l,eventType:e.type}),n!==y))return}}p&&(m._f.deps&&(!Array.isArray(m._f.deps)||m._f.deps.length>0)&&M(m._f.deps),O(l,v,o,E))}},j=(e,t)=>{if(Y(n.errors,t)&&e.focus)return e.focus(),1},M=async(e,i={})=>{let a,o,l=Yc(e);if(t.resolver){let t=y,n=await oe(pc(e)?e:l);if(a=Ic(n),o=e?!l.some(e=>Y(n,e)):a,t!==y)return o}else e?(o=(await Promise.all(l.map(async e=>{let t=Y(r,e);return await ce({fields:t&&t._f?{[e]:t}:t,eventType:ic.TRIGGER})}))).every(Boolean),(o||n.isValid)&&w()):o=a=await ce({fields:r,name:e,eventType:ic.TRIGGER});if(i.delayError&&t.delayError&&Dc(e)){let r=Y(n.errors,e);r?(X(n.errors,e),c[e]=x(e,()=>E(e,r)),c[e](t.delayError)):S(e)}if(i.shouldTouch)for(let t of e?l:s.mount)!s.array.has(t)&&gc(n.touchedFields,t,!0);return _.state.next({...!Dc(e)||g(`isValid`)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},...i.shouldTouch&&g(`touchedFields`)?{touchedFields:n.touchedFields}:{},errors:n.errors}),i.shouldFocus&&!o&&Pc(r,j,e?l:s.mount),o},N=(e,t)=>{let r={...o.mount?a:i};return t&&(r=tl(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),pc(e)?r:Dc(e)?Y(r,e):e.map(e=>Y(r,e))},ve=e=>pc(e)?{...n.errors}:Dc(e)?Y(n.errors,e):e.map(e=>Y(n.errors,e)),ye=(e,t)=>{let r=t||n,i=Y(r.errors,e);return{invalid:!!i,isDirty:!!Y(r.dirtyFields,e),error:i,isValidating:!!Y(r.validatingFields,e),isTouched:!!Y(r.touchedFields,e)}},be=e=>{let t=e?Yc(e):void 0;t?t.forEach(e=>{C(e),X(n.errors,e),_.state.next({name:e,errors:n.errors})}):(Object.keys(c).forEach(S),n.errors={},_.state.next({errors:n.errors}))},xe=(e,t,i)=>{C(e);let a=(Y(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,types:l,...u}=Y(n.errors,e)||{};gc(n.errors,e,{...u,...t,ref:a}),_.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Se=(e,t)=>{if(hc(e)){u++;let{unsubscribe:n}=_.state.subscribe({next:n=>`values`in n&&e(n.values||de(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return de(e,t,!0)},P=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=_.state.subscribe({next:t=>{if(El(e.name,t.name,e.exact)&&Tl(t,e.formState||m,L,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},Ce=e=>(o.mount=!0,h={...h,...e.formState},P({...e,formState:{...p,...e.formState}})),we=(e,o={})=>{for(let c of e?Yc(e):s.mount)s.mount.delete(c),s.array.delete(c),s.disabled.delete(c),o.keepValue||(X(r,c),X(a,c)),o.keepError||(C(c),X(n.errors,c)),!o.keepDirty&&X(n.dirtyFields,c),!o.keepTouched&&X(n.touchedFields,c),!o.keepIsValidating&&X(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&X(i,c);u&&_.state.next({values:rc(a)}),_.state.next({...n,...o.keepDirty?{}:{isDirty:ue()},...o.keepIsValidating?{}:{isValidating:!Ic(n.validatingFields)}}),!o.keepIsValid&&w()},F=({disabled:e,name:t})=>{if(mc(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&w()}},Te=(e,n={})=>{let a=Y(r,e),c=mc(n.disabled)||mc(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;if(gc(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&a._f){let t=Y(r,e);for(let e of sc)e in n||delete t._f[e]}return a&&!l?F({disabled:mc(n.disabled)?n.disabled:t.disabled,name:e}):ae(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:bl(n.min),max:bl(n.max),minLength:bl(n.minLength),maxLength:bl(n.maxLength),pattern:bl(n.pattern)}:{},name:e,onChange:_e,onBlur:_e,ref:c=>{if(c){s.registerName.add(e),Te(e,n),s.registerName.delete(e),a=Y(r,e);let t=pc(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=al(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(ol),t,...Array.isArray(Y(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),gc(r,e,{_f:u}),ae(e,!1,void 0,t)}else a=Y(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(tc(s.array,e)&&o.action)&&s.unMount.add(e)}}},I=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Pc(r,j,s.mount),Ee=e=>{mc(e)&&(_.state.next({disabled:e}),Pc(r,(t,n)=>{let i=Y(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0))},De=(e,i)=>async o=>{let l,u;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let d=rc(a);if(_.state.next({isSubmitting:!0}),t.resolver){let e=y,{errors:t,values:r}=await k();if(e!==y)return;T(),Object.keys(c).forEach(S),n.errors=t,d=rc(r)}else{let e=y;if(await ce({fields:r,eventType:ic.SUBMIT}),e!==y)return;X(n.errors,lc)}if(s.disabled.size)for(let e of s.disabled)X(d,e);if(Ic(n.errors)){_.state.next({errors:{}});try{l=await e(d,o)}catch(e){u=e}}else i&&await i({...n.errors},o),I(),setTimeout(I);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ic(n.errors)&&!u,submitCount:n.submitCount+1,errors:n.errors}),u)throw u;return l},Oe=(e,t={})=>{Y(r,e)&&(X(n.validatingFields,e),pc(t.defaultValue)?he(e,rc(Y(i,e))):(he(e,t.defaultValue),gc(i,e,rc(t.defaultValue))),t.keepTouched||X(n.touchedFields,e),t.keepDirty||(X(n.dirtyFields,e),n.isDirty=t.defaultValue?ue(e,rc(Y(i,e))):ue()),t.keepError||(C(e),X(n.errors,e),w()),_.state.next({...n,isValidating:!Ic(n.validatingFields)}))},ke=(e,l={})=>{y++;let u=e?rc(e):i,d=rc(u),f=Ic(e),p=d,h=r;if(Object.keys(c).forEach(S),l.keepDefaultValues||(i=u),!l.keepValues){if(l.keepDirtyValues){let e=new Set([...s.mount,...cl(hl(i,a,void 0,h),n.dirtyFields)]);for(let t of e){let e=Y(n.dirtyFields,t),r=Y(a,t),i=Y(p,t);e&&!pc(r)?gc(p,t,r):!e&&!pc(i)&&he(t,i)}}else{if(nc&&pc(e))for(let e of s.mount){let t=Y(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Lc(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(l.keepFieldsRef)for(let e of s.mount)he(e,Y(p,e));else r={}}if(t.shouldUnregister){if(a=l.keepDefaultValues?rc(i):{},l.keepFieldsRef)for(let e of s.mount)gc(a,e,Y(p,e))}else a=rc(p);_.array.next({values:{...p}}),_.state.next({name:void 0,type:void 0,values:{...p}})}s={mount:l.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!t.shouldUnregister&&!Ic(p),o.watch=!!t.shouldUnregister,o.keepIsValid=!!l.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),l.keepErrors||(n.errors={}),_.state.next({submitCount:l.keepSubmitCount?n.submitCount:0,isDirty:f?!1:l.keepDirty?n.isDirty:l.keepValues?ue():!(!l.keepDefaultValues||wc(e,i)),isSubmitted:l.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:l.keepDirtyValues?l.keepDefaultValues&&a?hl(i,a,void 0,h):n.dirtyFields:l.keepDefaultValues&&e?hl(i,e,void 0,h):l.keepDirty?n.dirtyFields:l.keepValues?hl(i,a,void 0,h):{},touchedFields:l.keepTouched?n.touchedFields:{},...!l.keepIsValidating&&(n.isValidating||!Ic(n.validatingFields))?{validatingFields:{},isValidating:!1}:null,errors:l.keepErrors?n.errors:{},isSubmitSuccessful:l.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ae=(e,n)=>ke(hc(e)?e(a):e,{...t.resetOptions,...n}),je=(e,t={})=>{let n=Y(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&hc(e.select)&&e.select()})}},L=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};_.state.subscribe({next:L});let Me={control:{register:Te,unregister:we,getFieldState:ye,handleSubmit:De,setError:xe,_subscribe:P,_runSchema:k,_updateIsValidating:T,_focusError:I,_getWatch:de,_getDirty:ue,_setValid:w,_setFieldArray:te,_setDisabledField:F,_setErrors:ne,_getFieldArray:A,_reset:ke,_resetDefaultValues:()=>hc(t.defaultValues)&&t.defaultValues().then(e=>{Ae(e,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:le,_disableForm:Ee,_subjects:_,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=Mc(t.mode),f=Mc(t.reValidateMode),b=t.criteriaMode===ac.all}},subscribe:Ce,trigger:M,register:Te,handleSubmit:De,watch:Se,setValue:he,setValues:ge,getValues:N,getErrors:ve,reset:Ae,resetField:Oe,resetDefaultValues:(e,t={})=>{if(i=rc(e),!t.keepDirty){let e=hl(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!Ic(e)}t.keepIsValid||w(),_.state.next({...n,defaultValues:i})},clearErrors:be,unregister:we,setError:xe,setFocus:je,getFieldState:ye};return{...Me,formControl:Me}}function Nl(e={}){let t=E.useRef(void 0),n=E.useRef(void 0),r=E.useRef(e.formControl),i=E.useRef(!!e.validate),[a,o]=E.useState(()=>({...rc(jl),isLoading:hc(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:hc(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!hc(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=Ml(e);t.current={...r,formState:a}}}let s=t.current.control;s._options={...e,validate:e.validate};let c=()=>({...s._formState,defaultValues:s._defaultValues}),{resyncIfNeeded:l,snapshot:u}=Tc(c);return bc(()=>{l(!0,c,o);let e=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState,defaultValues:s._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),s._formState.isReady=!0,()=>{e(),u(!0,c)}},[s,l,u]),E.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),E.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),E.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),E.useEffect(()=>{var n;i.current&&!e.validate&&((n=t.current)==null||n.clearErrors(cc)),i.current=!!e.validate},[e.validate]),E.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),E.useEffect(()=>{if(s._proxyFormState.isDirty){let e=s._getDirty();e!==a.isDirty&&s._subjects.state.next({isDirty:e})}},[s,a.isDirty]),E.useEffect(()=>{e.values&&!wc(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),s._options.resetOptions?.keepIsValid||s._setValid(),n.current=e.values,o(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),E.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=E.useMemo(()=>yc(a,s),[s,a]),t.current}function Pl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Fl;(function(e){e.event=`event`,e.props=`prop`})(Fl||={});function Z(){}function Q(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function Il(e){return!!(e||``).match(/\d/)}function Ll(e){return e==null}function Rl(e){return typeof e==`number`&&isNaN(e)}function zl(e){return Ll(e)||Rl(e)||typeof e==`number`&&!isFinite(e)}function Bl(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Vl(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Hl(e,t,n){var r=Vl(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function Ul(e){var t=(0,E.useRef)(e);return t.current=e,(0,E.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function Wl(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function Gl(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function Kl(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function ql(e,t){return Array(t+1).join(e)}function Jl(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+ql(`0`,Math.abs(o))+i:o>=s?i+=ql(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Yl(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Wl(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=Kl(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function Xl(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Zl=Q(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),Ql=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function $l(e,t,n){return Math.min(Math.max(e,t),n)}function eu(e){return Math.max(e.selectionStart,e.selectionEnd)}function tu(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function nu(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function ru(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function iu(e,t,n,r,i,a,o){o===void 0&&(o=ru);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function au(e,t,n,r){var i=e.length;if(t=$l(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function ou(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Il(e[n])||Il(e[n-1]));return t}function su(e,t,n,r,i,a){a===void 0&&(a=Z);var o=Ul(function(e,t){var n,a;return zl(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Jl(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,E.useState)(function(){return o(Ll(e)?t:e,n)}),c=s[0],l=s[1],u=Ul(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;Ll(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,E.useMemo)(function(){l(p)},[p.formattedValue]),(0,E.useEffect)(function(){if(!Ll(t)&&Ll(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:Fl.props})}},[]),[c,u]}function cu(e){return e.replace(/[^0-9]/g,``)}function lu(e){return e}function uu(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=lu);var s=e.removeFormatting;s===void 0&&(s=cu);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Z);var p=e.onKeyDown;p===void 0&&(p=Z);var m=e.onMouseUp;m===void 0&&(m=Z);var h=e.onFocus;h===void 0&&(h=Z);var g=e.onBlur;g===void 0&&(g=Z);var _=e.value,v=e.getCaretBoundary;v===void 0&&(v=ou);var y=e.isValidInputCharacter;y===void 0&&(y=Il);var b=e.isCharacterSame,x=Pl(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),S=su(_,c,!!l,o,s,u),C=S[0],w=C.formattedValue,T=C.numAsString,ee=S[1],te=(0,E.useRef)(),ne=(0,E.useRef)({formattedValue:w,numAsString:T}),re=function(e,t){ne.current={formattedValue:e.formattedValue,numAsString:e.value},ee(e,t)},ie=(0,E.useState)(!1),ae=ie[0],D=ie[1],O=(0,E.useRef)(null),k=(0,E.useRef)({setCaretTimeout:null,focusTimeout:null});(0,E.useEffect)(function(){return D(!0),function(){clearTimeout(k.current.setCaretTimeout),clearTimeout(k.current.focusTimeout)}},[]);var oe=o,se=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},ce=function(e,t,n){(e.selectionStart!==0||e.selectionEnd!==e.value.length)&&(Xl(e,t),k.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&Xl(e,t)},0))},le=function(e,t,n){return au(e,t,v(e),n)},ue=function(e,t,n){var r=v(t),i=iu(t,w,e,n,r,y,b);return i=au(t,i,r),i},de=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=eu(n);n.value=t,o=ue(s,t,c),o!==void 0&&ce(n,o,t)}t!==w&&re(se(t,a),{event:i,source:r})};(0,E.useEffect)(function(){var e=ne.current,t=e.formattedValue,n=e.numAsString;(w!==t||T!==n)&&re(se(w,T),{event:void 0,source:Fl.props})},[w,T]);var A=O.current?eu(O.current):void 0;(typeof window<`u`?E.useLayoutEffect:E.useEffect)(function(){var e=O.current;if(w!==ne.current.formattedValue&&e){var t=ue(ne.current.formattedValue,w,A);e.value=w,ce(e,t,w)}},[w]);var fe=function(e,t,n){var r=t.target,i=te.current?Ql(te.current,r.selectionEnd):Zl(w,e),a=Object.assign(Object.assign({},i),{lastValue:w}),o=s(e,a),c=oe(o);if(o=s(c,void 0),d&&!d(se(c,o))){var l=t.target,u=ue(e,w,eu(l));return l.value=w,ce(l,u,w),!1}return de({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},pe=function(e,t){t===void 0&&(t=0),te.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},me=function(e){var t=e.target.value;fe(t,e,Fl.event)&&f(e),te.current=void 0},he=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c)p(e),pe(t,s);else{var l=o;c?(l=le(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!y(a[o])?l=le(a,o,`right`):n===`Backspace`&&!y(a[o])&&(l=le(a,o,`left`)),l!==o&&ce(t,l,a),p(e),pe(t,s)}},ge=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=le(r,e);i!==e&&ce(t,i,r)}};n(),requestAnimationFrame(function(){n()}),m(e),pe(t)},_e=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;O.current=t,k.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=le(a,r);o!==r&&(r!==0||i!==a.length)&&ce(t,o,a),h(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},j=function(e){O.current=null,clearTimeout(k.current.focusTimeout),clearTimeout(k.current.setCaretTimeout),g(e)},M=ae&&tu()?`numeric`:void 0,N=Object.assign({inputMode:M},x,{type:t,value:w,onChange:me,onKeyDown:he,onMouseUp:ge,onFocus:_e,onBlur:j});if(n===`text`)return i?E.createElement(E.Fragment,null,i(w,x)||null):E.createElement(`span`,Object.assign({},x,{ref:a}),w);if(r){var ve=r;return E.createElement(ve,Object.assign({},N,{ref:a}))}return E.createElement(`input`,Object.assign({},N,{ref:a}))}function du(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=fu(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=Wl(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=Kl(m,n,!!r)),l&&(p=Hl(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function fu(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function pu(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function mu(e,t){return RegExp(`(^-)|[0-9]|`+Bl(e),t?`g`:void 0)}function hu(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function gu(e,t,n){var r;t===void 0&&(t=nu(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=fu(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Il(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var ee=e.length,te=e.length-o.length;e.endsWith(o)?ee=te:(d>te||d>e.length-o.length)&&(ee=d),e=e.substring(0,ee),e=pu(y?`-`+e:e,i),e=(e.match(mu(m,!0))||[]).join(``);var E=e.indexOf(m);e=e.replace(new RegExp(Bl(m),`g`),function(e,t){return t===E?`.`:``});var ne=Wl(e,i),re=ne.beforeDecimal,ie=ne.afterDecimal,ae=ne.addNegation;return l.end-l.start<c.end-c.start&&re===``&&h&&!parseFloat(ie)&&(e=ae?`-`:``),e}function _u(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function vu(e){var t=fu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
|
|
48
|
+
Decimal separator can't be same as thousand separator.
|
|
49
|
+
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
50
|
+
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
51
|
+
`);return i.startsWith(`-`)&&a&&(console.error(`
|
|
52
|
+
Prefix can't start with '-' when allowNegative is true.
|
|
53
|
+
prefix: `+i+`
|
|
54
|
+
allowNegative: `+a+`
|
|
55
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function yu(e){e=vu(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Z);var a=e.onBlur;a===void 0&&(a=Z);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=Pl(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=fu(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return du(t,e)},y=function(t,n){return gu(t,n,e)},b=Ll(d)?u:d,x=f??hu(b,l,t);Ll(d)?Ll(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return zl(e)?e:(typeof e==`number`&&(e=Jl(e)),x&&typeof s==`number`?Yl(e,s,!!c):e)},C=su(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,ee=w.formattedValue,te=C[1];return Object.assign(Object.assign({},m),{value:ee,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Il(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=Zl(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:te,format:v,removeFormatting:y,getCaretBoundary:function(t){return _u(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`)e.preventDefault();else if(a!==u)i(e);else{r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&Xl(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(Xl(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&Xl(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&Xl(t,a-1),r===`Delete`&&d[a]===f&&Xl(t,a+1),i(e)}},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=Gl(n)),c&&s&&(n=Yl(n,s,c)),n!==T&&te({formattedValue:du(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Fl.event}),a(t)}})}function bu(e){var t=yu(e);return E.createElement(uu,Object.assign({},t))}var xu=class{parse(e){return e==null||e===``?``:String(e).replace(/[eE.,]/g,``).replace(/\d[+-]/g,``)}},Su=/[.,+eE]/,Cu=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&Su.test(e.key)&&e.preventDefault()};function wu({_label:e,_msg:t,_touched:n,_on:r,_required:i,value:a,thousandSeparator:o=!0,suffix:s=`€`,...c}){let l=r&&typeof r==`object`?r:void 0;return(0,W.jsx)(bu,{...c,value:a,suffix:s,thousandSeparator:o,valueIsNumericString:!1,customInput:r=>{let a=r.value;return(0,W.jsx)(L,{...r,_value:a,_label:e,_msg:t,_touched:n,_required:i,_on:{onBlur:r.onBlur,onChange:r.onChange,onFocus:r.onFocus,onInput:r.onInput}})},onValueChange:e=>{let t=new Event(`input`);l?.onInput?.(t,e.floatValue)},onBlur:e=>{l?.onBlur?.(e.nativeEvent)}})}function Tu(e){let{name:t,control:n,rules:r,defaultValue:i,shouldUnregister:a,disabled:o,_label:s,_required:c,...l}=e;return(0,W.jsx)(jc,{name:t,control:n,rules:r,defaultValue:i,shouldUnregister:a,disabled:o,render:({field:e,fieldState:t})=>{let n=l._on;return(0,W.jsx)(wu,{...l,_label:s,_required:c,value:e.value,_touched:t.isTouched,_msg:t.error?{_type:`error`,_description:t.error.message||String(t.error)}:void 0,_on:{onInput:(t,r)=>{e.onChange(r),n?.onInput?.(t,r)},onBlur:()=>e.onBlur()}})}})}function Eu(){let e=new xu,[t,n]=E.useState(void 0),[r,i]=E.useState(-128),[a,o]=E.useState(!1),s=Nl({defaultValues:{currency:1e6},mode:`onTouched`}),c=s.watch();return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`section`,{className:`w-full grid gap-4`,children:[(0,W.jsxs)(G,{id:`whole-number`,children:[(0,W.jsx)(Se,{children:(0,W.jsx)(Oe,{_label:`Whole number`,_step:1,_value:t??r,_on:{onKeyDown:Cu,onBlur:()=>{o(!0)},onInput:(t,r)=>{let a=e.parse(r),o=a===``?void 0:Number(a);n(o),i(o)}}})}),(0,W.jsx)(`pre`,{className:`text-base mt-2`,children:JSON.stringify({value:r,touched:a},null,2)})]}),(0,W.jsxs)(G,{id:`currency`,children:[(0,W.jsx)(Se,{_on:{onSubmit:e=>{s.handleSubmit(async()=>{})(e)}},children:(0,W.jsx)(Tu,{control:s.control,name:`currency`,decimalScale:2,displayType:`input`,rules:{required:`Please enter a currency amount.`},_label:`Currency`,_required:!0})}),(0,W.jsx)(`pre`,{className:`text-base mt-2`,children:JSON.stringify(c,null,2)})]})]})]})}var Du={"input-number":{basic:Us,"get-value":Ws,"number-formatter":Eu}},Ou=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(ke,{...n,_label:`Passwort (Black background test)`})}),(0,W.jsx)(G,{...i(`icons-error`),children:(0,W.jsx)(ke,{...n,ref:r,_accessKey:`P`,_required:!0,_hint:wa,_msg:{_type:`error`,_description:K},_placeholder:`Mit Icons`,_label:`Passwort`,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}},_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(ke,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Passwort`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(ke,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Passwort`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(ke,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Passwort`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(ke,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Passwort`,_touched:!0})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(ke,{...n,_disabled:!0,_msg:{_type:`error`,_description:K},_label:`Passwort (Disabled)`,_touched:!0})}),(0,W.jsx)(G,{...i(`readonly`),children:(0,W.jsx)(ke,{...n,_readOnly:!0,_label:`Passwort (Readonly)`})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(ke,{...n,ref:r,_shortKey:`c`,_label:`With access key`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(ke,{...n,ref:r,_shortKey:`s`,_label:`With short key`})})]})}),ku=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Password`,children:(0,W.jsx)(Ou,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Password (hideLabel)`,children:(0,W.jsx)(Ou,{blockIdPrefix:`hide-label`,snapshotOnly:`icons-error`,ref:t,...e,_hideLabel:!0})})]})}),Au={"input-password":{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:ku,showButtons:!1})]}),counter:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases a password input with a counter for the chars in the field. Maximal length is 30.`})}),(0,W.jsx)(G,{id:`counter`,children:(0,W.jsx)(ke,{_label:`Password`,_value:`Hunter2`,_hasCounter:!0,_maxLength:30})})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputPassword`,renderInput:e=>(0,W.jsx)(ke,{_label:`Password`,_on:e})})]}),"show-password":()=>{let e=(0,E.useRef)(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(G,{id:`show-password`,children:(0,W.jsxs)(Se,{className:`w-full`,children:[(0,W.jsx)(ke,{_placeholder:`With 'Show password' button`,_label:`Password`,ref:e,className:`block`,_visibilityToggle:!0}),(0,W.jsx)(ke,{_placeholder:`With 'Show password' button`,_label:`Password`,ref:e,className:`block`,_visibilityToggle:!0,_value:`Password`}),(0,W.jsx)(ke,{_placeholder:`With 'Show password' button and disabled`,_label:`Password`,ref:e,className:`block`,_disabled:!0,_visibilityToggle:!0})]})})]})}}},ju=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(Ae,{...n,_options:`[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`Salutation (Black background test)`})}),(0,W.jsx)(G,{...i(`error`),children:(0,W.jsx)(Ae,{...n,_required:!0,_msg:{_type:`error`,_description:K},_touched:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`Salutation (with error)`})}),(0,W.jsx)(G,{...i(`horizontal`),children:(0,W.jsx)(Ae,{...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)`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`},_tooltipAlign:`right`})}),(0,W.jsx)(G,{...i(`horizontal-disabled`),children:(0,W.jsx)(Ae,{...n,_disabled:!0,_orientation:`horizontal`,_required:!0,_msg:{_type:`error`,_description:K},_touched:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]`,_label:`Salutation (horizontal with error)`})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(Ae,{...n,_disabled:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]`,_label:`Salutation`,_touched:!0})}),(0,W.jsx)(G,{...i(`horizontal-hints`),children:(0,W.jsx)(Ae,{...n,_orientation:`horizontal`,_required:!0,_msg:{_type:`error`,_description:K},_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:wa})})]})}),Mu=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Radio`,children:(0,W.jsx)(ju,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Radio (hideLabel)`,children:(0,W.jsx)(ju,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Nu=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolInputRadio renders a set of radio buttons. The sample shows KolInputRadio in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:Mu,showButtons:!1})]}),Pu=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputRadio`,renderInput:e=>(0,W.jsx)(Ae,{_label:`Option`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`}],_on:e})})]}),Fu=()=>{let[e,t]=(0,E.useState)(!0),[n,r]=(0,E.useState)(`horizontal`),i=[{label:`Field 1`,value:1},{label:`Field 2`,value:2}];return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows the `,(0,W.jsx)(`code`,{children:`horizontal`}),` and `,(0,W.jsx)(`code`,{children:`vertical`}),` orientation of KolInoutRadio. It also features a button to test re-rendering.`]})}),(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(j,{_label:`Click me a few times`,_on:{onClick:()=>{t(e=>!e)}}}),(0,W.jsx)(F,{_label:`Switch orientation (horizontal/vertical)`,_on:{onChange:()=>{r(e=>e===`horizontal`?`vertical`:`horizontal`)}},_variant:`switch`})]}),e&&(0,W.jsx)(Se,{children:(0,W.jsxs)(G,{id:`orientation`,className:`container my-4 d-grid gap-4`,children:[(0,W.jsx)(Ae,{_label:`Test (${n})`,_options:i,_orientation:n,_required:!0}),(0,W.jsx)(Ae,{_hideLabel:!0,_label:`Test (${n})`,_options:i,_orientation:n,_required:!0})]})})]})},Iu=()=>{let e=[{label:`Field 1`,value:{id:1,name:`Option 1`}},{label:`Field 2`,value:{id:2,name:`Option 2`}}];return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(q,{children:[`This sample shows KolInputRadio with `,(0,W.jsx)(`code`,{children:`object`}),` and `,(0,W.jsx)(`code`,{children:`undefined`}),` values.`]}),(0,W.jsxs)(Se,{children:[(0,W.jsxs)(`p`,{children:[`In this example for `,(0,W.jsx)(`code`,{children:`KolInputRadio`}),`, the values of the options are defined as objects.`]}),(0,W.jsx)(G,{id:`object-value`,className:`container my-4 d-grid gap-4`,children:(0,W.jsx)(Ae,{_value:e[1].value,_options:e,_label:`Test (with object value)`})}),(0,W.jsxs)(`p`,{children:[`In this example for `,(0,W.jsx)(`code`,{children:`KolInputRadio`}),`, no value is set.`]}),(0,W.jsx)(G,{id:`no-value`,className:`container my-4 d-grid gap-4`,children:(0,W.jsx)(Ae,{_options:e,_label:`Test (without value)`})})]})]})},Lu=[{label:1,value:1,hint:`One person`},{label:2,value:2,hint:`Two persons`},{label:3,value:3,hint:`Three persons`}],Ru=JSON.stringify([{label:`Mrs.`},{label:`Mr.`},{label:`Company`,value:`company`}]),zu=[{label:`No`,value:!1},{label:`Yes`,value:!0}],Bu={"input-radio":{basic:Nu,"get-value":Pu,horizontal:Fu,object:Iu,"option-values":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`The options of KolInputRadio accept a number as `,(0,W.jsx)(`code`,{children:`label`}),`, which is shown as text, and an optional `,(0,W.jsx)(`code`,{children:`hint`}),` per option. An option without `,(0,W.jsx)(`code`,{children:`value`}),` uses its label as value, and a falsy value such as `,(0,W.jsx)(`code`,{children:`false`}),` is selected like any other value.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{id:`number-labels`,children:(0,W.jsx)(Ae,{_label:`Number of persons (number labels with hints)`,_options:Lu,_value:2})}),(0,W.jsx)(G,{id:`label-as-value`,children:(0,W.jsx)(Ae,{_label:`Salutation (options without value)`,_options:Ru,_value:`Mr.`,_orientation:`horizontal`})}),(0,W.jsx)(G,{id:`falsy-value`,children:(0,W.jsx)(Ae,{_label:`Newsletter (value false selected)`,_options:zu,_value:!1,_orientation:`horizontal`})})]})]})}},Vu=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(je,{...n,_min:0,_max:50,_msg:{_type:`error`,_description:K},_label:`Slider (Black background test)`,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}},_touched:!0})}),(0,W.jsx)(G,{...i(`error`),children:(0,W.jsx)(je,{...n,ref:r,_accessKey:`F`,_min:0,_max:50,_step:10,_hint:wa,_msg:{_type:`error`,_description:K},_label:`Slider with error`,_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(je,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Slider`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(je,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Slider`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(je,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Slider`,_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(je,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Slider`,_touched:!0})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(je,{...n,_disabled:!0,_min:0,_max:50,_label:`Slider (disabled)`})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(je,{...n,_min:0,_max:50,_label:`With access key`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(je,{...n,_min:0,_max:50,_label:`With short key`,_shortKey:`s`})}),(0,W.jsx)(G,{...i(`small-range`),children:(0,W.jsx)(je,{...n,_min:0,_max:5,_label:`Small range (max=5): number input should not be narrower than 4 digits wide`})})]})}),Hu=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Range`,children:(0,W.jsx)(Vu,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Range (hideLabel)`,children:(0,W.jsx)(Vu,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Uu={"input-range":{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(Mo,{RefComponent:Hu,showButtons:!1})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputRange`,renderInput:e=>(0,W.jsx)(je,{_label:`Range`,_on:e})})]})}},Wu=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates access keys and short keys for KolInputText. Access keys provide keyboard shortcuts for focusing inputs.`})}),(0,W.jsx)(G,{id:`access-key-value`,children:(0,W.jsx)(L,{_label:`With access key (Alt+F)`,_value:`Press Alt+F to focus`,_accessKey:`f`})}),(0,W.jsx)(G,{id:`short-key-value`,children:(0,W.jsx)(L,{_label:`With short key (Alt+N)`,_value:`Press Alt+N to focus`,_shortKey:`n`})}),(0,W.jsx)(G,{id:`access-key-placeholder`,children:(0,W.jsx)(L,{_label:`Access key (Alt+E)`,_value:``,_placeholder:`Email address`,_accessKey:`e`})}),(0,W.jsx)(G,{id:`short-key-placeholder`,children:(0,W.jsx)(L,{_label:`Short key (Alt+P)`,_value:``,_placeholder:`Phone number`,_shortKey:`p`})})]}),Gu=`
|
|
56
|
+
label { display: block; }
|
|
57
|
+
span { display: block; margin-bottom: 4px; }
|
|
58
|
+
input { border: 1px solid #888; padding: 4px 8px; font: inherit; }
|
|
59
|
+
`,Ku=(e,t)=>{let n=e.getRootNode();return(t??``).trim().split(/\s+/).filter(Boolean).map(e=>n instanceof ShadowRoot?n.querySelector(`#${CSS.escape(e)}`):document.getElementById(e)).filter(e=>e!==null)},qu=class extends HTMLElement{static get observedAttributes(){return[`aria-details`]}connectedCallback(){this._render()}attributeChangedCallback(){this.isConnected&&this._render()}_render(){this.innerHTML=`<style>${Gu}</style><label><span>Native input, no shadow root</span><input aria-label="Native light input"></label>`;let e=this.querySelector(`input`),t=this.getAttribute(`aria-details`);t?e.setAttribute(`aria-details`,t):e.removeAttribute(`aria-details`)}},Ju=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`})}static get observedAttributes(){return[`aria-details`]}connectedCallback(){this.shadowRoot.innerHTML=`<style>${Gu}</style><label><span>Native input, inside a shadow root</span><input aria-label="Native shadow input"></label>`,this._sync(this.getAttribute(`aria-details`))}attributeChangedCallback(e,t,n){this.isConnected&&this._sync(n)}_sync(e){let t=this.shadowRoot.querySelector(`input`);if(`ariaDetailsElements`in t)try{t.ariaDetailsElements=Ku(this,e)}catch{}}};typeof customElements<`u`&&(customElements.get(`demo-input-light`)||customElements.define(`demo-input-light`,qu),customElements.get(`demo-input-shadow`)||customElements.define(`demo-input-shadow`,Ju));var Yu=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`Demonstrates how to use `,(0,W.jsx)(`code`,{children:`_ariaDetails`}),` to reference an external element that provides detailed information about form inputs. All inputs below reference the same details box via their `,(0,W.jsx)(`code`,{children:`_ariaDetails`}),` prop.`]}),(0,W.jsxs)(`p`,{children:[`The native inputs above are the control group: the first one declares a plain `,(0,W.jsx)(`code`,{children:`aria-details`}),` IDREF in the same tree, the second one is wrapped in a native web component whose shadow input bridges the reference via `,(0,W.jsx)(`code`,{children:`ariaDetailsElements`}),` — the same mechanism KoliBri uses. If a native case announces the details in a screen reader while the KoliBri fields do not, the gap is in KoliBri; if the native shadow case is silent too, the platform does not support the relation across the boundary yet (Safari/VoiceOver lacks element reflection — verify with NVDA or JAWS on Chromium instead).`]}),(0,W.jsxs)(`p`,{children:[`The last example below replicates the`,` `,(0,W.jsxs)(`a`,{href:`https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-details`,children:[`MDN example for `,(0,W.jsx)(`code`,{children:`aria-details`})]}),`: a term references its definition and an explanatory link — the canonical use outside of forms the attribute was designed for.`]})]}),(0,W.jsxs)(G,{id:`aria-details`,className:`grid gap-8`,children:[(0,W.jsxs)(`div`,{className:`grid gap-4 p-4 border border-gray-300 rounded`,children:[(0,W.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Native reference implementations`}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`label`,{className:`block`,children:[(0,W.jsx)(`span`,{className:`block mb-2`,children:`Native HTML input (no web component)`}),(0,W.jsx)(`input`,{"aria-details":`details-box-native-light`,"aria-label":`Native light input`,className:`border border-gray-500 p-2`})]}),(0,W.jsx)(`div`,{id:`details-box-native-light`,className:`mt-2 p-2 bg-blue-50 border-l-4 border-blue-400 rounded text-sm text-blue-800`,children:`Details for the plain native input: the IDREF resolves in the same tree — no boundary to cross.`})]}),(0,W.jsx)(`div`,{children:E.createElement(`demo-input-light`,{"aria-details":`details-box-native-light`})}),(0,W.jsxs)(`div`,{children:[E.createElement(`demo-input-shadow`,{"aria-details":`details-box-native-shadow`}),(0,W.jsxs)(`div`,{id:`details-box-native-shadow`,className:`mt-2 p-2 bg-blue-50 border-l-4 border-blue-400 rounded text-sm text-blue-800`,children:[`Details for the native shadow input: the reference crosses the boundary via `,(0,W.jsx)(`code`,{children:`ariaDetailsElements`}),` on the input.`]})]})]}),(0,W.jsxs)(`div`,{className:`grid gap-4 p-4 border border-gray-300 rounded`,children:[(0,W.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Form Inputs with Shared Details`}),(0,W.jsx)(L,{_label:`Email Address`,_ariaDetails:`details-box`,_placeholder:`user@example.com`,_hint:`We'll never share your email`}),(0,W.jsx)(ze,{_label:`Country`,_ariaDetails:`details-box`,_options:[{label:`Germany`,value:`de`},{label:`Austria`,value:`at`},{label:`Switzerland`,value:`ch`}]}),(0,W.jsx)(V,{_label:`Message`,_ariaDetails:`details-box`,_placeholder:`Enter your message here...`,_rows:4}),(0,W.jsx)(ve,{_label:`Favorite Language`,_ariaDetails:`details-box`,_suggestions:[`TypeScript`,`JavaScript`,`Python`,`Go`,`Rust`,`Java`]})]}),(0,W.jsxs)(`div`,{id:`details-box`,className:`p-4 bg-blue-50 border-l-4 border-blue-400 rounded`,role:`complementary`,children:[(0,W.jsx)(`h3`,{className:`font-semibold text-blue-900 mb-2`,children:`💡 Form Details`}),(0,W.jsxs)(`ul`,{className:`text-sm text-blue-800 space-y-2`,children:[(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Email:`}),` Please enter a valid email address. We use this to contact you about your submission.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Country:`}),` Select your country of residence. This helps us provide localized support.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Message:`}),` Provide as much detail as possible. The more information you give, the better we can assist you.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Language:`}),` Choose your preferred programming language. This helps us recommend relevant resources.`]})]})]}),(0,W.jsxs)(`div`,{className:`grid gap-4 p-4 border border-gray-300 rounded`,children:[(0,W.jsx)(`h2`,{className:`text-lg font-semibold`,children:`MDN example: term & definition`}),(0,W.jsxs)(`p`,{children:[`The term below references two targets: the definition paragraph and the explanatory image link. Screen reader support for `,(0,W.jsx)(`code`,{children:`aria-details`}),` is heavily fragmented — check `,(0,W.jsx)(`a`,{href:`https://a11ysupport.io/tech/aria/aria-details_attribute`,children:`a11ysupport.io`}),` before relying on it.`]}),(0,W.jsxs)(`p`,{children:[`The `,(0,W.jsx)(`strong`,{children:`cubic-bezier()`}),` functional notation defines a cubic`,` `,(0,W.jsx)(`span`,{role:`term`,"aria-details":`bezier bezImg`,className:`underline decoration-dotted underline-offset-4`,children:`Bézier curve`}),`. As these curves are continuous, they are often used to smooth down the start and end of the curve and are therefore sometimes called easing functions.`]}),(0,W.jsxs)(`p`,{role:`definition`,id:`bezier`,className:`p-2 bg-blue-50 border-l-4 border-blue-400 rounded text-sm text-blue-800`,children:[`A `,(0,W.jsx)(`strong`,{children:`Bézier curve`}),`, (Pronounced \\ ˈbe-zē-ˌā \\ `,(0,W.jsx)(`i`,{"aria-description":`English pronunciation`,children:`BEH-zee-ay`}),`) is a mathematically described curve used in computer graphics and animation. The curve is defined by a set of control points with a minimum of two. Web related graphics and animations use Cubic Béziers, which are curves with four control points P`,(0,W.jsx)(`sub`,{children:`0`}),`, P`,(0,W.jsx)(`sub`,{children:`1`}),`, P`,(0,W.jsx)(`sub`,{children:`2`}),`, and P`,(0,W.jsx)(`sub`,{children:`3`}),`.`]}),(0,W.jsx)(`a`,{href:`https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function`,id:`bezImg`,"aria-label":`Explanation of Bézier curve in CSS easing functions`,target:`_blank`,rel:`noreferrer`,className:`block w-fit`,children:(0,W.jsxs)(`svg`,{width:`200`,height:`160`,viewBox:`0 0 200 160`,role:`img`,"aria-label":`Cubic Bézier curve showing 4 control points.`,className:`border border-gray-400 rounded bg-white`,children:[(0,W.jsx)(`path`,{d:`M 20 130 C 60 10, 140 150, 180 30`,fill:`none`,stroke:`#0075ff`,strokeWidth:`2`}),(0,W.jsx)(`line`,{x1:`20`,y1:`130`,x2:`60`,y2:`10`,stroke:`#888`,strokeDasharray:`4 3`}),(0,W.jsx)(`line`,{x1:`140`,y1:`150`,x2:`180`,y2:`30`,stroke:`#888`,strokeDasharray:`4 3`}),(0,W.jsx)(`circle`,{cx:`20`,cy:`130`,r:`4`,fill:`#0075ff`}),(0,W.jsx)(`circle`,{cx:`60`,cy:`10`,r:`4`,fill:`#888`}),(0,W.jsx)(`circle`,{cx:`140`,cy:`150`,r:`4`,fill:`#888`}),(0,W.jsx)(`circle`,{cx:`180`,cy:`30`,r:`4`,fill:`#0075ff`}),(0,W.jsx)(`text`,{x:`12`,y:`148`,fontSize:`12`,fill:`#202020`,children:`P0`}),(0,W.jsx)(`text`,{x:`60`,y:`24`,fontSize:`12`,fill:`#202020`,textAnchor:`middle`,children:`P1`}),(0,W.jsx)(`text`,{x:`140`,y:`144`,fontSize:`12`,fill:`#202020`,textAnchor:`middle`,children:`P2`}),(0,W.jsx)(`text`,{x:`184`,y:`20`,fontSize:`12`,fill:`#202020`,textAnchor:`end`,children:`P3`})]})})]})]})]}),Xu=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases the component placed on a colored background.`})}),(0,W.jsxs)(G,{id:`background-default`,className:`grid gap-4 bg-blue-400 p-4 rounded`,children:[(0,W.jsx)(`strong`,{children:`Default background:`}),(0,W.jsx)(L,{_label:`First name`,_value:`John Doe`})]}),(0,W.jsxs)(G,{id:`background-unset`,className:`grid gap-4 bg-blue-400 p-4 rounded`,children:[(0,W.jsx)(`strong`,{children:`Unset background:`}),(0,W.jsx)(L,{style:{backgroundColor:`unset`},_label:`First name`,_value:`John Doe`})]})]}),Zu=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases the most important InputText variants: default, required, validation error, disabled, read-only, search with clear button, and with icons.`})}),(0,W.jsx)(G,{id:`events`,children:(0,W.jsx)(L,{_label:`Name`,_value:`Anderson-Clark`,_on:{onBlur:Ho,onChange:Ho,onClick:Ho,onFocus:Ho,onInput:Ho,onKeyDown:Ho},onBlur:Vo,onChange:Vo,onClick:Vo,onFocus:Vo,onInput:Vo,onKeyDown:Vo})}),(0,W.jsx)(G,{id:`error`,children:(0,W.jsx)(L,{_label:`Name`,_required:!0,_msg:{_type:`error`,_description:`Please enter your name`},_touched:!0})}),(0,W.jsx)(G,{id:`hint`,children:(0,W.jsx)(L,{_label:`Name`,_required:!0,_hint:`Enter your surname`})}),(0,W.jsx)(G,{id:`disabled`,children:(0,W.jsx)(L,{_label:`Name`,_value:`Anderson-Clark`,_disabled:!0})}),(0,W.jsx)(G,{id:`info-popover`,children:(0,W.jsx)(L,{_label:`Name`,_required:!0,_value:`Anderson-Clark`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{id:`readonly-popover`,children:(0,W.jsx)(L,{_label:`Name`,_readOnly:!0,_value:`Anderson-Clark`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{id:`icon`,children:(0,W.jsx)(L,{_label:`Name`,_icons:`kolicon-house`,_value:`Anderson-Clark`})}),(0,W.jsx)(G,{id:`search`,children:(0,W.jsx)(L,{_label:`Search`,_type:`search`,_value:`test`,_placeholder:`Search with clear button`})})]}),Qu=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample demonstrates the clear button for search type input fields.`})}),(0,W.jsx)(G,{id:`search-empty`,children:(0,W.jsx)(L,{_label:`Search`,_type:`search`,_placeholder:`Enter search term`})}),(0,W.jsx)(G,{id:`search-value`,children:(0,W.jsx)(L,{_label:`Search (with value)`,_type:`search`,_value:`test`,_placeholder:`Enter search term`})}),(0,W.jsx)(G,{id:`search-disabled`,children:(0,W.jsx)(L,{_label:`Search (disabled)`,_type:`search`,_disabled:!0,_value:`test`,_placeholder:`Disabled search`})}),(0,W.jsx)(G,{id:`search-read-only`,children:(0,W.jsx)(L,{_label:`Search (read only)`,_type:`search`,_readOnly:!0,_value:`test`})}),(0,W.jsx)(G,{id:`text-no-clear-button`,children:(0,W.jsx)(L,{_label:`Text (no clear button)`,_type:`text`,_value:`test`,_placeholder:`Regular text input`})})]}),$u=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases an input with a counter for the chars in the field. Maximal length is 30.`})}),(0,W.jsx)(G,{id:`counter`,children:(0,W.jsx)(L,{_label:`Name`,_icons:`kolicon-house`,_value:`Anderson-Clark`,_hasCounter:!0,_maxLength:30})})]}),ed=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates the disabled state of KolInputText. Disabled inputs cannot be edited or focused.`})}),(0,W.jsx)(G,{id:`placeholder`,children:(0,W.jsx)(L,{_label:`Disabled with placeholder`,_placeholder:`Placeholder text`,_disabled:!0})}),(0,W.jsx)(G,{id:`value`,children:(0,W.jsx)(L,{_label:`Disabled with value`,_value:`This field is disabled`,_disabled:!0})}),(0,W.jsx)(G,{id:`error`,children:(0,W.jsx)(L,{_label:`Disabled with error message`,_value:`Invalid value`,_msg:{_type:`error`,_description:`Error message`},_disabled:!0,_touched:!0})}),(0,W.jsx)(G,{id:`enabled`,children:(0,W.jsx)(L,{_label:`Comparison: Enabled`,_value:`This field is enabled`})})]}),td=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`This sample shows KolInputText with expert slot. The expert slot allows for complex custom content beyond simple text inputs.`}),(0,W.jsxs)(`p`,{children:[`For further information on the expert slot see its `,(0,W.jsx)(`a`,{href:`https://public-ui.github.io/docs/concepts/expert-slot`,children:`documentation`})]})]}),(0,W.jsx)(G,{id:`text`,children:(0,W.jsx)(L,{_label:``,_type:`text`,children:(0,W.jsx)(`span`,{slot:`expert`,children:`I am more than just a input field`})})}),(0,W.jsx)(G,{id:`badge`,children:(0,W.jsx)(L,{_label:``,_type:`text`,_value:`Complex example`,children:(0,W.jsxs)(`div`,{slot:`expert`,className:`flex items-center gap-2`,children:[(0,W.jsx)(ge,{_label:`Premium`,_color:`#1a73e8`}),(0,W.jsx)(Ce,{_icons:`kolicon-check`,_label:``}),(0,W.jsx)(`span`,{children:`Verified account with premium features`})]})})}),(0,W.jsx)(G,{id:`note`,children:(0,W.jsx)(L,{_label:``,_type:`text`,_placeholder:`Enter your email`,children:(0,W.jsxs)(`div`,{slot:`expert`,style:{padding:`0.5rem`,backgroundColor:`#f0f0f0`,borderRadius:`4px`},children:[(0,W.jsx)(`strong`,{children:`Note:`}),` This email will be used for account recovery and notifications.`]})})}),(0,W.jsx)(G,{id:`required`,children:(0,W.jsx)(L,{_label:``,_type:`text`,_required:!0,children:(0,W.jsxs)(`div`,{slot:`expert`,className:`inline-block`,children:[(0,W.jsx)(`span`,{className:`expert-slot-required-label`,children:`Username`}),(0,W.jsx)(Ie,{_label:`Help`,_icons:`kolicon-alert-info`,_variant:`ghost`,_hideLabel:!0,_inline:!0,children:(0,W.jsx)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:`You have to take care of the asterics on your own!`})})]})})}),(0,W.jsx)(G,{id:`readonly`,children:(0,W.jsx)(L,{_label:``,_type:`text`,_readOnly:!0,_value:`(read only) is also not appended`,children:(0,W.jsxs)(`div`,{slot:`expert`,className:`inline-block`,children:[(0,W.jsx)(`span`,{className:`expert-slot-required-label`,children:`Username`}),(0,W.jsx)(Ie,{_label:`Help`,_icons:`kolicon-alert-info`,_variant:`ghost`,_hideLabel:!0,_inline:!0,children:(0,W.jsx)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:`Readonly is also not appended`})})]})})})]}),nd=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolInputText`,renderInput:e=>(0,W.jsx)(L,{_label:`Name`,_on:e})})]}),rd=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This story demonstrates the `,(0,W.jsx)(`code`,{children:`_hideLabel`}),` feature for KolInputText. It allows hiding the label visually while keeping it accessible for screen readers.`]})}),(0,W.jsx)(G,{id:`search`,children:(0,W.jsx)(L,{_hideLabel:!0,_label:`Search`,_placeholder:`Search...`,_type:`search`})}),(0,W.jsx)(G,{id:`error`,children:(0,W.jsx)(L,{_hideLabel:!0,_label:`Email`,_placeholder:`Enter email`,_msg:{_type:`error`,_description:`Invalid email format`},_touched:!0})}),(0,W.jsx)(G,{id:`address-group`,children:(0,W.jsxs)(`fieldset`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,W.jsx)(`legend`,{children:`Street Address`}),(0,W.jsx)(me,{className:`col-span-2`,_level:0,_type:`error`,children:`Please complete the address`}),(0,W.jsx)(L,{_hideLabel:!0,_hideMsg:!0,_label:`Street name`,_placeholder:`Street name`,_msg:{_type:`error`,_description:`Please complete the address`},_touched:!0}),(0,W.jsx)(L,{_hideLabel:!0,_hideMsg:!0,_label:`House number`,_placeholder:`Number`,_msg:{_type:`error`,_description:`Please complete the address`},_touched:!0})]})})]}),id=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows the `,(0,W.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.`]})}),(0,W.jsx)(G,{id:`single-error`,children:(0,W.jsx)(L,{_msg:{_type:`error`,_description:`Error message`},_label:`Input with error`,_touched:!0})}),(0,W.jsx)(G,{id:`combined-error`,children:(0,W.jsxs)(`fieldset`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,W.jsx)(`legend`,{children:`Combined input field`}),(0,W.jsx)(me,{className:`col-span-2`,_level:0,_type:`error`,children:`This is a combined error message`}),(0,W.jsx)(L,{_msg:{_type:`error`,_description:`This is a combined error message`},_hideMsg:!0,_label:`First input`,_touched:!0}),(0,W.jsx)(L,{_msg:{_type:`error`,_description:`This is a combined error message`},_hideMsg:!0,_label:`Second input with error`,_touched:!0})]})})]}),ad=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates all available message types for KolInputText: default, info, error, warning, and success.`})}),(0,W.jsx)(G,{id:`msg-default`,children:(0,W.jsx)(L,{_label:`Default message`,_value:`Valid value`,_msg:{_type:`default`,_description:`This is a default message`},_touched:!0})}),(0,W.jsx)(G,{id:`msg-error`,children:(0,W.jsx)(L,{_label:`Error message`,_value:`Invalid value`,_msg:{_type:`error`,_description:`This is an error message`},_touched:!0})}),(0,W.jsx)(G,{id:`msg-info`,children:(0,W.jsx)(L,{_label:`Info message`,_value:`Some value`,_msg:{_type:`info`,_description:`This is an informational message`},_touched:!0})}),(0,W.jsx)(G,{id:`msg-success`,children:(0,W.jsx)(L,{_label:`Success message`,_value:`Valid value`,_msg:{_type:`success`,_description:`This is a success message`},_touched:!0})}),(0,W.jsx)(G,{id:`msg-warning`,children:(0,W.jsx)(L,{_label:`Warning message`,_value:`Valid value`,_msg:{_type:`warning`,_description:`This is a warning message`},_touched:!0})})]}),od=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`Regression sample for #9073: when both _msg and _hasCounter are set, aria-describedby must reference both the message and counter elements.`}),(0,W.jsx)(`p`,{children:`Open DevTools and inspect each input to confirm aria-describedby contains both IDs.`})]}),(0,W.jsx)(G,{id:`warning`,children:(0,W.jsx)(L,{_label:`Warning + Counter`,_msg:{_type:`warning`,_description:`Bitte prüfen Sie Ihre Eingabe.`},_hasCounter:!0,_maxLength:30})}),(0,W.jsx)(G,{id:`error`,children:(0,W.jsx)(L,{_label:`Error + Counter (touched)`,_msg:{_type:`error`,_description:`Pflichtfeld – bitte ausfüllen.`},_hasCounter:!0,_maxLength:30,_touched:!0})}),(0,W.jsx)(G,{id:`info`,children:(0,W.jsx)(L,{_label:`Info + Counter`,_msg:{_type:`info`,_description:`Hinweis: maximal 20 Zeichen.`},_hasCounter:!0,_maxLength:20})})]}),sd=`^[A-Za-z]{3}-\\d{3}$`,cd=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample demonstrates HTML5 pattern validation for both native input and KolInputText components.`})}),(0,W.jsx)(G,{id:`pattern`,children:(0,W.jsxs)(`form`,{className:`grid gap-4`,children:[(0,W.jsxs)(`div`,{className:`grid gap-2`,children:[(0,W.jsx)(`label`,{htmlFor:`native-input`,children:`Native Input (Pattern: AAA-123, case-insensitive)`}),(0,W.jsx)(`input`,{id:`native-input`,name:`native-input`,pattern:sd,type:`text`})]}),(0,W.jsx)(L,{_label:`KoliBri Input (Pattern: AAA-123, case-insensitive)`,_name:`kolibri-input`,_pattern:sd,_hint:`Note: This input is not linked to the form element. The validation inside the Shadow DOM is currently not triggered on form submit.`}),(0,W.jsx)(`div`,{children:(0,W.jsx)(`button`,{type:`submit`,children:`Submit`})})]})})]}),ld=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates the placeholder feature of KolInputText.`})}),(0,W.jsx)(G,{id:`first-name`,children:(0,W.jsx)(L,{_label:`First name`,_placeholder:`Enter your first name`})}),(0,W.jsx)(G,{id:`email`,children:(0,W.jsx)(L,{_label:`Email address`,_placeholder:`user@example.com`})}),(0,W.jsx)(G,{id:`tel`,children:(0,W.jsx)(L,{_label:`Phone number`,_placeholder:`+49 123 456789`,_type:`tel`})}),(0,W.jsx)(G,{id:`url`,children:(0,W.jsx)(L,{_label:`Website`,_placeholder:`https://example.com`,_type:`url`})}),(0,W.jsx)(G,{id:`search`,children:(0,W.jsx)(L,{_label:`Search`,_placeholder:`Search...`,_type:`search`})})]}),ud=()=>(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story demonstrates the readonly state of KolInputText. Readonly inputs can be focused but not edited.`})}),(0,W.jsx)(G,{id:`placeholder`,children:(0,W.jsx)(L,{_label:`Readonly with placeholder`,_placeholder:`Placeholder text`,_readOnly:!0})}),(0,W.jsx)(G,{id:`value`,children:(0,W.jsx)(L,{_label:`Readonly with value`,_value:`This field is readonly`,_readOnly:!0})}),(0,W.jsx)(G,{id:`info`,children:(0,W.jsx)(L,{_label:`Readonly with info message`,_value:`Read-only value`,_msg:{_type:`info`,_description:`This field cannot be edited`},_readOnly:!0,_touched:!0})}),(0,W.jsx)(G,{id:`editable`,children:(0,W.jsx)(L,{_label:`Comparison: Editable`,_value:`This field is editable`})})]}),dd=()=>{let e=E.useRef(null);function t(){e.current?.focus(),e.current?.setSelectionStart(8)}function n(){e.current?.focus(),e.current?.setSelectionRange(2,5)}function r(){e.current?.focus(),e.current?.setRangeText(`INSERTED`,5,9,`select`)}return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows how to change the selection in a KolInputText.`})}),(0,W.jsxs)(G,{id:`select-range`,children:[(0,W.jsx)(L,{_value:`Very long value`,_label:`Text Input Label`,ref:e}),(0,W.jsx)(M,{_label:`Set Start`,onClick:t}),(0,W.jsx)(M,{_label:`Set Range`,onClick:n}),(0,W.jsx)(M,{_label:`Set Range Text`,onClick:r})]})]})},fd={_icons:`kolicon-alert-info`,_hideLabel:!0},pd={left:{icon:`kolicon-eye`},right:{icon:`kolicon-check`}},md=()=>{let e=Oi.getInstance(document),t={onClick:()=>{e.enqueue({description:`Smart-Button clicked`,label:`Toaster`,type:`default`})}};return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput.`})}),(0,W.jsx)(G,{id:`enabled`,children:(0,W.jsx)(L,{_label:`Input with button and icons`,_type:`text`,_smartButton:{...fd,_label:`Open Toast`,_on:t},_icons:pd})}),(0,W.jsx)(G,{id:`disabled`,children:(0,W.jsx)(L,{_label:`Disabled input with button and icons`,_disabled:!0,_type:`text`,_smartButton:{...fd,_label:`Disabled Button`},_icons:pd})})]})},hd=class{SEPARATOR=` `;CHARS_PER_GROUP=4;KEEP_ALPHANUM=/[^a-zA-Z0-9]/g;parse(e){return e.replace(this.KEEP_ALPHANUM,``).toUpperCase()}format(e){let t=this.parse(e),n=RegExp(`(.{${this.CHARS_PER_GROUP}})(?!$)`,`g`);return t.replace(n,`$1${this.SEPARATOR}`)}adjustCursorPosition(e,t,n){let r=this.format(e),i=this.format(t);if(n>=r.length)return i.length;let a=0;for(let e=0;e<n&&e<r.length;e++)r[e]!==this.SEPARATOR&&a++;let o=0;for(let e=0;e<i.length;e++)if(i[e]!==this.SEPARATOR&&o++===a)return e;return i.length}},gd=class{LOCALE=navigator.language;CURRENCY_SYMBOL=` €`;parse(e){let t=e.replace(/[^\d.,]/g,``),n=t.lastIndexOf(`,`),r=t.lastIndexOf(`.`),i;return i=n>r?t.replace(/\./g,``).replace(`,`,`.`):r>n?t.replace(/,/g,``):t.replace(/[.,]/g,``),parseFloat(i)||0}format(e){let t=typeof e==`string`?this.parse(e):e;return new Intl.NumberFormat(this.LOCALE,{minimumFractionDigits:2,maximumFractionDigits:2}).format(t)+this.CURRENCY_SYMBOL}adjustCursorPosition(e,t,n){let r=this.format(e),i=this.format(t);if(n>=r.length)return i.length;let a=0;for(let e=0;e<n&&e<r.length;e++)/\d/.test(r[e])&&a++;let o=0;for(let e=0;e<i.length;e++)if(/\d/.test(i[e])&&o++===a)return e;return i.length}};function _d(){let e=new hd,t=new gd,n=Nl({defaultValues:{iban:`DE89370400440532013000`}}),r=Nl({defaultValues:{currency:1e6}}),i=t=>{let r=t.target,i=e.parse(r.value),a=e.adjustCursorPosition(n.getValues(`iban`),i,r.selectionStart||0);n.setValue(`iban`,i),requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.setSelectionRange(a,a)})})};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`This example demonstrates two different formatting strategies for input fields:`}),(0,W.jsxs)(`ul`,{children:[(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Live Formatting (IBAN):`}),` Formatting happens while typing. The value is immediately formatted and displayed with intelligent cursor positioning. Best for fixed-format values where users expect visual feedback during input.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`On-Blur Formatting (Currency):`}),` Formatting happens when leaving the field (onBlur event). Allows free typing without interruption. Best for numeric values where users might input in various formats.`]})]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`Key Concept:`}),` The form model always stores the `,(0,W.jsx)(`em`,{children:`unformatted`}),` value (raw IBAN string, numeric currency value), while the input field displays the `,(0,W.jsx)(`em`,{children:`formatted`}),` value for better readability.`]})]}),(0,W.jsxs)(G,{id:`iban`,className:`w-full flex flex-col`,children:[(0,W.jsxs)(`div`,{className:`p-2`,children:[(0,W.jsx)(P,{_label:`Live Formatting - IBAN`,_level:2}),(0,W.jsx)(`p`,{className:`text-sm mb-2`,children:`Formatting occurs during input with intelligent cursor control`}),(0,W.jsx)(Se,{children:(0,W.jsx)(`form`,{onSubmit:n.handleSubmit(async()=>{}),children:(0,W.jsx)(jc,{name:`iban`,control:n.control,render:({field:t})=>(0,W.jsx)(`div`,{className:`block mt-2`,children:(0,W.jsx)(L,{id:`field-iban`,_label:`IBAN`,_value:e.format(t.value??``),_required:!0,_on:{onInput:i,onBlur:t.onBlur}})})})})})]}),(0,W.jsxs)(`div`,{className:`p-2`,children:[(0,W.jsx)(P,{_label:`Model (Unformatted Value)`,_level:2}),(0,W.jsx)(`pre`,{className:`text-base`,children:JSON.stringify(n.watch(),null,2)})]})]}),(0,W.jsxs)(G,{id:`currency`,className:`w-full flex flex-col`,children:[(0,W.jsxs)(`div`,{className:`p-2`,children:[(0,W.jsx)(P,{_label:`On-Blur Formatting - Currency`,_level:2}),(0,W.jsx)(`p`,{className:`text-sm mb-2`,children:`Formatting occurs when leaving the field (onBlur) for uninterrupted input`}),(0,W.jsx)(Se,{children:(0,W.jsx)(`form`,{onSubmit:r.handleSubmit(async()=>{}),children:(0,W.jsx)(jc,{name:`currency`,control:r.control,render:({field:e})=>(0,W.jsx)(`div`,{className:`block mt-2`,children:(0,W.jsx)(L,{id:`field-currency`,_label:`Currency`,_value:t.format(e.value??0),_on:{onBlur:n=>{let r=n.target,i=t.parse(r.value);e.onChange(i),e.onBlur()}}})})})})})]}),(0,W.jsxs)(`div`,{className:`p-2`,children:[(0,W.jsx)(P,{_label:`Model (Numeric Value)`,_level:2}),(0,W.jsx)(`pre`,{className:`text-base`,children:JSON.stringify(r.watch(),null,2)})]})]})]})}var vd={"input-text":{"aria-details":Yu,basic:Zu,"clear-button":Qu,"get-value":nd,"message-types":ad,placeholder:ld,disabled:ed,readonly:ud,counter:$u,"msg-and-counter":od,"access-short-key":Wu,"hide-label":rd,"hide-msg":id,"text-formatter":_d,"smart-button":md,"expert-slot":td,pattern:cd,"select-range":dd,background:Xu,variant:()=>{let[e]=ei(),t=e.get(`theme`)??lo(),n=(0,E.useMemo)(()=>t?eo(t,`inputVariants`):[],[t]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This story showcases input variants depending on your choosen theme.`})}),(0,W.jsx)(`div`,{className:`grid grid-cols-2 gap-8 p-8`,children:!Array.isArray(n)||n.length===0?(0,W.jsx)(G,{id:`no-variants`,children:(0,W.jsx)(`p`,{children:`This theme has no variants for inputs.`})}):n.map(e=>(0,W.jsxs)(G,{id:`variant-${ba(String(e))}`,heading:`Variante: ${String(e)}`,className:`grid gap-4 p-8`,children:[(0,W.jsx)(L,{_label:`Input Text`,_hint:`Enter your surname`,_variant:e,_msg:{_type:`error`,_description:`Error message`},_touched:!0,_hasCounter:!0}),(0,W.jsx)(ke,{_label:`Input Passwort`,_variant:e}),(0,W.jsx)(Te,{_label:`Input Color`,_variant:e}),(0,W.jsx)(I,{_label:`Input Date`,_variant:e}),(0,W.jsx)(Ee,{_label:`Input Email`,_variant:e}),(0,W.jsx)(De,{_label:`Input File`,_variant:e}),(0,W.jsx)(Oe,{_label:`Input Number`,_variant:e}),(0,W.jsx)(je,{_label:`Input Range`,_variant:e}),(0,W.jsx)(ze,{_label:`Select`,_options:[{label:`Please select…`,value:``},{label:`One`,value:`one`},{label:`Two`,value:`two`}],_variant:e}),(0,W.jsx)(Be,{_label:`Single Select`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`}],_variant:e}),(0,W.jsx)(ve,{_label:`Combobox`,_suggestions:`['Herr','Frau','Firma']`,_variant:e}),(0,W.jsx)(Ae,{_label:`Radio Group`,_options:[{label:`Field 1`,value:1},{label:`Field 2`,value:2}],_variant:e}),(0,W.jsx)(V,{_label:`Textarea`,_variant:e})]},e))})]})}}},$={kolibri:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolKolibri renders the KoliBri logo. The sample show the logo with and without label and with a custom color.`})}),(0,W.jsxs)(G,{id:`basic`,children:[(0,W.jsx)(P,{class:`block`,_level:3,_label:`Regular`}),(0,W.jsx)(Me,{class:`block`,style:{width:300}}),(0,W.jsx)(P,{class:`block`,_level:3,_label:`Without Label`}),(0,W.jsx)(Me,{class:`block`,style:{width:300},_labeled:!1}),(0,W.jsx)(P,{class:`block`,_level:3,_label:`Customized color`}),(0,W.jsx)(Me,{class:`block`,style:{width:300},_color:`#cc006e`})]})]})}},yd={"link-button":{basic:()=>{let[e]=ei(),t=e.get(`theme`)??lo(),n=(0,E.useMemo)(()=>t?eo(t,`buttonVariants`):[],[t]),{dummyClickEventHandler:r}=Ia(),i={onClick:r};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolLinkButton renders a link that looks like a button. The sample shows the different theme exclusive styling variants.`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsxs)(G,{id:`variants`,children:[(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(n)||n.length===0?(0,W.jsx)(`p`,{children:`This theme has no variants for this component.`}):n.map(e=>(0,W.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_label:`${e}`,_variant:e,_on:i},e))}),(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(n)||n.length===0?(0,W.jsx)(`p`,{children:`This theme has no variants for this component.`}):n.map(e=>(0,W.jsx)(z,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-settings`,_label:`${e}`,_variant:e,_on:i},e))})]})})]})},"aria-description":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolLinkButton with aria-description`})}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_label:`Link Button Text without area description`}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`Link Button Text`,_ariaDescription:`Link Button Aria Description`}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`Link Button Text`,_ariaDescription:`Link Button Aria Description with external Link`,_target:`_blank`})]})]}),target:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolLinkButton with diffrent Targets`})}),(0,W.jsxs)(G,{id:`target`,className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_label:`Link Button Target default`}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`Link Button Target _self`,_target:`_blank`}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`Link Button Target _blank`,_target:`_blank`})]})]})}},bd={link:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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`,` `,(0,W.jsx)(`code`,{children:`display`}),`-properties.`]})}),(0,W.jsxs)(G,{id:`basic`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_inline:!1,_label:`Simple Link`}),(0,W.jsx)(R,{_disabled:!0,_href:`#/back-page`,_inline:!1,_label:`Simple Link (disabled)`}),(0,W.jsx)(R,{_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_inline:!1,_label:`Icon Link`}),(0,W.jsx)(R,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_inline:!1,_label:`Icon Link (disabled)`}),(0,W.jsxs)(`p`,{children:[`In this paragraph, a standard link `,(0,W.jsx)(R,{_href:`#/back-page`,_label:`Simple Link`}),` and a disabled link`,` `,(0,W.jsx)(R,{_disabled:!0,_href:`#/back-page`,_label:`Simple Link (disabled)`}),` are inserted. They are rendered by default as `,(0,W.jsx)(`strong`,{children:`inline elements`}),`.`]}),(0,W.jsxs)(`p`,{children:[`In this paragraph, a link is inserted that is rendered as an inline-block element.`,` `,(0,W.jsx)(R,{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.`,(0,W.jsx)(`br`,{}),(0,W.jsx)(`br`,{}),`After that, there is a link that is rendered as a block element. `,(0,W.jsx)(R,{class:`d-block`,_href:`#/back-page`,_label:`Simple Link`}),`, therefore, I span the entire width of the parent element, causing a line break.`]}),(0,W.jsx)(R,{_href:`#/back-page`,_inline:!1,_label:`Special Variant Link`,_variant:`theme-link`})]})]}),icons:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolLink with icons in different alignments and combinations.`})}),(0,W.jsxs)(G,{id:`icons`,children:[(0,W.jsx)(R,{_icons:`kolicon-house`,_label:`I am a link with an icon on the left`,_href:`#/back-page`}),(0,W.jsx)(R,{_icons:{right:`kolicon-house`},_label:`I am a link with an icon on the right`,_href:`#/back-page`}),(0,W.jsx)(R,{_icons:{top:`kolicon-house`},_label:`I am a link with an icon at the top`,_href:`#/back-page`}),(0,W.jsx)(R,{_icons:{bottom:`kolicon-house`},_label:`I am a link with icon below`,_href:`#/back-page`}),(0,W.jsx)(R,{_icons:{top:`kolicon-house`,right:`kolicon-house`,bottom:`kolicon-house`,left:`kolicon-house`},_label:`I am a link with all icons`,_href:`#/back-page`}),(0,W.jsx)(R,{_icons:`kolicon-house`,_href:`https://public-ui.github.io/`,_label:`I am a external link with an icon on the left`,_target:`_blank`}),(0,W.jsx)(R,{_icons:{right:`kolicon-house`},_href:`https://public-ui.github.io/`,_label:`I am a external linkwith an icon on the right`,_target:`_blank`}),(0,W.jsx)(R,{_icons:{top:`kolicon-house`},_href:`https://public-ui.github.io/`,_label:`I am a external link with an icon at the top`,_target:`_blank`}),(0,W.jsx)(R,{_icons:{bottom:`kolicon-house`},_href:`https://public-ui.github.io/`,_label:`I am a external link with icon below`,_target:`_blank`}),(0,W.jsx)(R,{_href:`https://public-ui.github.io/`,_label:`I am a external link with all icons`,_target:`_blank`,_icons:{top:`kolicon-house`,right:`kolicon-house`,bottom:`kolicon-house`,left:`kolicon-house`}})]})]}),image:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(G,{id:`image`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`I am a link that is rendered as text`}),(0,W.jsx)(R,{_href:`#/back-page`,_label:``,children:(0,W.jsx)(we,{_alt:`KoliBri design system illustration showing three people working on laptops surrounded by UI components, charts, and the KoliBri hummingbird logo`,_src:`sample-image.png`,className:`w-image`,slot:`expert`})})]})]}),target:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows KolLink with different `,(0,W.jsx)(`code`,{children:`_target`}),`-properties.`]})}),(0,W.jsx)(G,{id:`target`,className:`text-base d-flex gap-4`,children:(0,W.jsxs)(`ul`,{children:[(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#/back-page`,_label:`Link without target`})}),(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#/back-page`,_label:`Link with target (_self)`,_target:`_self`})}),(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#/back-page`,_label:`Link with target (_blank)`,_target:`_blank`})}),(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link without target`})}),(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link with target (_self)`,_target:`_self`})}),(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link with target (_blank)`,_target:`_blank`})})]})})]}),"aria-description":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolLink with aria-description`})}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`Link Text without aria description`}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`Link Text`,_ariaDescription:`Link Area Description`})]})]}),"access-key":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`With S access key`,_accessKey:`S`}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`Very small s`,_accessKey:`s`}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`Access key does not appear in label`,_accessKey:`s`}),(0,W.jsx)(R,{_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_label:`access key without label`,_accessKey:`s`})]})]}),"short-key":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`With S short key`,_shortKey:`S`}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`Very small s`,_shortKey:`s`}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`Short key does not appear in label`,_shortKey:`s`}),(0,W.jsx)(R,{_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_label:`short key without label`,_shortKey:`s`})]})]}),"react-router":()=>{let e=Bn();return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(`div`,{className:`grid gap-4`,children:(0,W.jsx)(R,{_href:`/back-page`,_inline:!1,_label:`Go to overview`,_on:{onClick:t=>{t.preventDefault(),e(`/back-page`)}}})})]})},"linked-headline":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows a linked headline with anchor.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(R,{_href:`/#/link/linked-headline#headline1`,_label:``,children:(0,W.jsx)(P,{_label:`I'm H2-heading number one`,_level:2,slot:`expert`,id:`headline1`})}),(0,W.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 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.`}),(0,W.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 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.`}),(0,W.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 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.`}),(0,W.jsx)(R,{_href:`/#/link/linked-headline#headline2`,_label:``,children:(0,W.jsx)(P,{_label:`I'm H2-heading number two`,_level:2,slot:`expert`,id:`headline2`})}),(0,W.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 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.`}),(0,W.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 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.`}),(0,W.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 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.`}),(0,W.jsx)(R,{_href:`/#/link/linked-headline#headline3`,_label:``,children:(0,W.jsx)(P,{_label:`I'm H2-heading number three`,_level:2,slot:`expert`,id:`headline3`})}),(0,W.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 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.`}),(0,W.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 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.`}),(0,W.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 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.`})]})]}),"on-click":()=>{let[e,t]=(0,E.useState)(0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`This sample demonstrates the issue described in`,` `,(0,W.jsx)(`a`,{href:`https://github.com/public-ui/kolibri/issues/10726`,target:`_blank`,rel:`noopener noreferrer`,children:`#10726`}),`.`,(0,W.jsx)(`br`,{}),`Test the behavior of KolLink with onClick handlers and compare it to native <a> tags.`]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`Expected behavior (like native <a> tag):`}),(0,W.jsxs)(`ul`,{children:[(0,W.jsx)(`li`,{children:`onClick without preventDefault: Execute onClick AND navigate to href`}),(0,W.jsx)(`li`,{children:`onClick with preventDefault: Execute onClick, BLOCK navigation`}),(0,W.jsx)(`li`,{children:`onClick returning false: Execute onClick, BLOCK navigation`})]})]}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`Current behavior (Issue #10726):`}),(0,W.jsxs)(`ul`,{children:[(0,W.jsx)(`li`,{children:`❌ onClick with preventDefault: Still navigates to href (should only execute onClick)`}),(0,W.jsx)(`li`,{children:`❌ onClick returning false: Still navigates to href (should only execute onClick)`})]})]})]}),(0,W.jsx)(G,{id:`on-click`,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(`div`,{className:`bg-gray-100 p-4 rounded`,children:[(0,W.jsx)(`h2`,{className:`h3 mb-2`,children:`Test Results`}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`onClick executions:`}),` `,e]}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600`,children:`(Open browser console to see detailed logs)`}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600`,children:`Note: This demo uses href="#test" to avoid actual page reloads. Check the URL hash and console output.`})]}),(0,W.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,W.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 1: onClick ohne preventDefault`}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click increments counter AND adds #test-1 to URL`}),(0,W.jsx)(R,{_href:`#test-1`,_label:`Click me (no preventDefault)`,_on:{onClick:(e,n)=>{console.log(`Test 1: onClick ohne preventDefault`,{event:e,href:n}),t(e=>e+1)}},_inline:!1})]}),(0,W.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,W.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 2: onClick mit preventDefault()`}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click increments counter but does NOT add #test-2 to URL`}),(0,W.jsx)(R,{_href:`#test-2`,_label:`Click me (with preventDefault)`,_on:{onClick:(e,n)=>{console.log(`Test 2: onClick mit preventDefault`,{event:e,href:n}),t(e=>e+1),e.preventDefault()}},_inline:!1})]}),(0,W.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,W.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 3: onClick returning false`}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click increments counter but does NOT add #test-3 to URL`}),(0,W.jsx)(R,{_href:`#test-3`,_label:`Click me (return false)`,_on:{onClick:(e,n)=>(console.log(`Test 3: onClick mit return false`,{event:e,href:n}),t(e=>e+1),!1)},_inline:!1})]}),(0,W.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,W.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 4: useNavigate Pattern (Issue #10726)`}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click logs navigate action but does NOT add #test-4 to URL`}),(0,W.jsx)(R,{_href:`#test-4`,_label:`Click me (simulate useNavigate)`,_on:{onClick:(e,n)=>{console.log(`Test 4: onClick mit simulate navigate`,{event:e,href:n}),t(e=>e+1),e.preventDefault(),console.log(`Simulated navigate to:`,n)}},_inline:!1})]}),(0,W.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,W.jsx)(`h3`,{className:`h4 mb-2`,children:`Reference: Native <a> Tag`}),(0,W.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Test native <a> tag behavior for comparison`}),(0,W.jsxs)(`div`,{className:`grid gap-2`,children:[(0,W.jsx)(`a`,{href:`#native-test-1`,onClick:()=>{console.log(`Native a: onClick ohne preventDefault`),t(e=>e+1)},className:`btn btn-primary`,children:`Native: No preventDefault`}),(0,W.jsx)(`a`,{href:`#native-test-2`,onClick:e=>{console.log(`Native a: onClick mit preventDefault`),t(e=>e+1),e.preventDefault()},className:`btn btn-primary`,children:`Native: With preventDefault`}),(0,W.jsx)(`a`,{href:`#native-test-3`,onClick:()=>(console.log(`Native a: onClick mit return false`),t(e=>e+1),!1),className:`btn btn-primary`,children:`Native: Return false`})]})]})]})})]})},"link-variant":()=>{let[e]=ei(),t=e.get(`theme`)??lo(),n=(0,E.useMemo)(()=>t?eo(t,`linkVariants`):[],[t]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows the theme specific variants of KolLink.`})}),(0,W.jsxs)(G,{id:`variants`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`Normal link without a variant`}),!Array.isArray(n)||n.length===0?(0,W.jsx)(`p`,{children:`This theme has no variants for this component.`}):n.map(e=>(0,W.jsx)(R,{_href:`#/back-page`,_label:`Theme exclusive variant: ${e}`,_variant:e},e))]})]})}}},xd={meter:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolMeter renders a semantic meter element. You can use _min (default 0), _max (default 1) and _unit (default %) to customize it.`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsx)(G,{id:`basic`,heading:`Basic`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(Ne,{_label:`Storage used`,_value:.5}),(0,W.jsx)(Ne,{_label:`Weight`,_max:100,_value:75,_unit:`kg`}),(0,W.jsx)(Ne,{_label:`Temperature`,_min:-100,_max:100,_value:-50,_unit:`°C`})]})})})]}),clamped:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`A `,(0,W.jsx)(`code`,{children:`_value`}),` outside the range of `,(0,W.jsx)(`code`,{children:`_min`}),` and `,(0,W.jsx)(`code`,{children:`_max`}),` is clamped into it: a value above `,(0,W.jsx)(`code`,{children:`_max`}),` renders as`,` `,(0,W.jsx)(`code`,{children:`_max`}),`, a value below `,(0,W.jsx)(`code`,{children:`_min`}),` as `,(0,W.jsx)(`code`,{children:`_min`}),`.`]})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsx)(G,{id:`clamped`,heading:`Values outside the range`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(Ne,{_label:`Value 140, maximum 100 (shows 100)`,_max:100,_value:140,_unit:`%`}),(0,W.jsx)(Ne,{_label:`Value 60, range 0 to 100 (unchanged)`,_max:100,_value:60,_unit:`%`}),(0,W.jsx)(Ne,{_label:`Value -20, minimum 0 (shows 0)`,_min:0,_max:100,_value:-20,_unit:`%`}),(0,W.jsx)(Ne,{_label:`Value -40 °C, range -20 to 60 °C (shows -20 °C)`,_min:-20,_max:60,_value:-40,_unit:`°C`})]})})})]}),dynamic:()=>{let[e,t]=(0,E.useState)(120);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolMeter announces value changes immediately to screen readers. Use the buttons below to verify the live region updates without delay.`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsxs)(G,{id:`dynamic-value`,heading:`Dynamic value`,children:[(0,W.jsx)(Ne,{_label:`Used hard disk space`,_max:500,_min:0,_unit:`GB`,_value:e}),(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(j,{_label:`120 GB`,_on:{onClick:()=>t(120)},_variant:`secondary`}),(0,W.jsx)(j,{_label:`240 GB`,_on:{onClick:()=>t(240)},_variant:`secondary`}),(0,W.jsx)(j,{_label:`360 GB`,_on:{onClick:()=>t(360)},_variant:`secondary`}),(0,W.jsx)(j,{_label:`480 GB`,_on:{onClick:()=>t(480)},_variant:`secondary`})]})]})})]})},optimum:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`The _optimum prop indicates the preferred value. Combined with _low and _high, the browser uses it to determine whether the current value is in a good, acceptable or bad zone – which affects the semantic coloring.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`optimum-medium-zone-good`,heading:`Optimum in medium zone (good = medium)`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(Ne,{_label:`Temperature is nice`,_min:-20,_max:60,_low:10,_high:30,_optimum:20,_value:20,_unit:`°C`}),(0,W.jsx)(Ne,{_label:`It's too cold`,_min:-20,_max:60,_low:10,_high:30,_optimum:20,_value:-10,_unit:`°C`}),(0,W.jsx)(Ne,{_label:`It's too hot`,_min:-20,_max:60,_low:10,_high:30,_optimum:20,_value:50,_unit:`°C`})]})}),(0,W.jsx)(G,{id:`optimum-low-zone-good-low`,heading:`Optimum in low zone (good = low)`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(Ne,{_label:`Memory Usage`,_max:100,_value:10,_low:25,_high:75,_optimum:10}),(0,W.jsx)(Ne,{_label:`Memory Usage`,_max:100,_value:50,_low:25,_high:75,_optimum:10}),(0,W.jsx)(Ne,{_label:`Memory Usage`,_max:100,_value:90,_low:25,_high:75,_optimum:10})]})}),(0,W.jsx)(G,{id:`optimum-high-zone-good-high`,heading:`Optimum in high zone (good = high)`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(Ne,{_label:`Battery level`,_max:100,_value:10,_low:25,_high:75,_optimum:90}),(0,W.jsx)(Ne,{_label:`Battery level`,_max:100,_value:50,_low:25,_high:75,_optimum:90}),(0,W.jsx)(Ne,{_label:`Battery level`,_max:100,_value:90,_low:25,_high:75,_optimum:90})]})})]})]}),orientation:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`The _orientation prop switches the meter bar between horizontal (default) and vertical. Vertical meters grow from bottom to top and are useful for tank fill levels, signal strength or similar scalar indicators.`})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`vertical`,heading:`Vertical`,children:(0,W.jsxs)(`div`,{className:`flex flex-row gap-8 items-end`,children:[(0,W.jsx)(Ne,{style:{"--kol-meter-vertical-height":`100`},_label:`Tank 100l`,_max:100,_value:50,_orientation:`vertical`,_unit:`l`}),(0,W.jsx)(Ne,{style:{"--kol-meter-vertical-height":`150`},_label:`Tank 150l`,_max:150,_value:50,_orientation:`vertical`,_unit:`l`}),(0,W.jsx)(Ne,{style:{"--kol-meter-vertical-height":`200`},_label:`Tank 200l`,_max:200,_value:150,_orientation:`vertical`,_unit:`l`})]})}),(0,W.jsx)(G,{id:`vertical-ranges-optimum`,heading:`Vertical with ranges and optimum`,children:(0,W.jsxs)(`div`,{className:`flex flex-row gap-8`,children:[(0,W.jsx)(Ne,{_label:`Low`,_max:100,_value:10,_low:25,_high:75,_optimum:50,_orientation:`vertical`}),(0,W.jsx)(Ne,{_label:`OK`,_max:100,_value:50,_low:25,_high:75,_optimum:50,_orientation:`vertical`}),(0,W.jsx)(Ne,{_label:`High`,_max:100,_value:90,_low:25,_high:75,_optimum:50,_orientation:`vertical`})]})})]})]})}},Sd={modal:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(me,{_label:`Component is DEPRECATED`,_type:`error`,_variant:`card`,className:`header-alert`,children:[`The Modal component was renamed to Dialog. Please use the Dialog sample instead.\xA0`,(0,W.jsx)(R,{_href:`/#/dialog`,_target:`_blank`,_label:`Open Dialog samples`})]}),(0,W.jsx)(qo,{})]})}},Cd=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows KolNav with a link to the current page. This makes the component automatically assign `,(0,W.jsx)(`code`,{children:`aria-current="page"`}),`to it.`]})}),(0,W.jsx)(G,{id:`aria-current`,children:(0,W.jsx)(Pe,{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}]})})]}),wd=[{_label:`Homepage`,_icons:`kolicon-house`,_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:`kolicon-house`,_children:[{_label:`3.1 Navigation point`,_icons:`kolicon-house`,_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:`kolicon-kolibri`,_children:[{_label:`6.1 Nested link`,_href:`#/back-page`}]}],Td=[{_label:`Homepage`,_icons:`kolicon-house`,_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:`kolicon-house`},{_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:`kolicon-kolibri`}],Ed=[{_label:`Homepage`,_icons:`kolicon-house`,_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:`kolicon-house`,_children:[{_label:`3.1 Navigation point`,_icons:`kolicon-house`,_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`}]}],Dd={nav:{basic:()=>{let[e,t]=(0,E.useState)(!0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`section`,{className:`grid gap-8`,children:[(0,W.jsx)(`section`,{children:(0,W.jsx)(F,{_label:`Show icons when expanded`,_checked:e,_on:{onChange:(e,n)=>{t(n)}}})}),(0,W.jsx)(G,{id:`navigation-submenu`,heading:`Navigation without submenu`,fitContent:!0,children:(0,W.jsx)(Pe,{class:`block w-fit`,_label:`Navigation without submenu`,_links:Td,_hasCompactButton:!0,_hasIconsWhenExpanded:e})}),(0,W.jsx)(G,{id:`navigation-submenu-2`,heading:`Navigation with submenu`,fitContent:!0,children:(0,W.jsx)(Pe,{class:`block w-fit`,_label:`Navigation with submenu`,_links:wd,_hasCompactButton:!0,_hasIconsWhenExpanded:e})}),(0,W.jsx)(G,{id:`navigation-submenu-active`,heading:`Navigation with submenu active`,fitContent:!0,children:(0,W.jsx)(Pe,{class:`block w-fit`,_label:`Navigation with submenu active`,_links:Ed,_hasCompactButton:!0,_hasIconsWhenExpanded:e})})]})]})},"aria-current":Cd}},Od={pagination:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(G,{id:`basic`,narrow:!0,children:[(0,W.jsx)(Fe,{_max:316514,_page:15475,_pageSize:20,_siblingCount:3,_boundaryCount:1,_label:`Large dataset, page in the middle (Entries 309481 to 309500 of 316514)`,_on:{}}),(0,W.jsx)(Fe,{_max:316514,_page:1,_pageSize:50,_siblingCount:2,_boundaryCount:1,_label:`Large dataset, first page (Entries 1 to 50 of 316514)`,_on:{}}),(0,W.jsx)(Fe,{_max:316514,_page:6331,_pageSize:50,_siblingCount:2,_boundaryCount:1,_label:`Large dataset, last page (Entries 316501 to 316514 of 316514)`,_on:{}}),(0,W.jsx)(Fe,{_max:14,_page:14,_pageSize:1,_siblingCount:1,_boundaryCount:2,_label:`Small dataset, last page (Entries 14 to 14 of 14)`,_on:{}}),(0,W.jsx)(Fe,{_max:4,_page:1,_pageSize:4,_siblingCount:0,_boundaryCount:2,_label:`Tiny dataset, first page (Entries 1 to 4 of 4)`,_on:{}}),(0,W.jsx)(Fe,{_max:10,_page:15,_pageSize:5,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:`Edge case: page exceeds max (corrected to page 2, Entries 6 to 10 of 10)`,_on:{}}),(0,W.jsx)(Fe,{_max:1e3,_page:10,_pageSize:25,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:`Medium dataset with boundary buttons only (Entries 226 to 250 of 1000)`,_on:{}}),(0,W.jsx)(Fe,{_max:379,_page:6,_pageSize:10,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:`With page size options`,_on:{},_pageSizeOptions:[10,25,50,100]}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:1,_boundaryCount:1,_label:`Page size 10, sibling count 1 (Entries 41 to 50 of 100)`,_on:{}}),(0,W.jsx)(Fe,{_max:250,_page:3,_pageSize:30,_siblingCount:2,_boundaryCount:0,_label:`No boundary buttons, sibling count 2 (Entries 61 to 90 of 250)`,_on:{}})]})]}),"button-visibility":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample demonstrates how to show or hide the navigation buttons (first, previous, next, last) in a pagination. All examples use the same dataset configuration (_max=100, _page=5, _pageSize=10) to show the effect of different button visibility settings.`})}),(0,W.jsxs)(G,{id:`button-visibility`,children:[(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`Default: All buttons visible (first, previous, next, last)`,_on:{}}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`Only previous and next buttons`,_on:{},_hasButtons:{first:!1,last:!1,next:!0,previous:!0}}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`No navigation buttons, only page numbers`,_on:{},_hasButtons:!1})]}),(0,W.jsxs)(G,{id:`button-combinations`,skipSnapshot:!0,children:[(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`Only first and last buttons`,_on:{},_hasButtons:{first:!0,last:!0,next:!1,previous:!1}}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except first`,_on:{},_hasButtons:{first:!1,last:!0,next:!0,previous:!0}}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except last`,_on:{},_hasButtons:{first:!0,last:!1,next:!0,previous:!0}}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except previous`,_on:{},_hasButtons:{first:!0,last:!0,next:!0,previous:!1}}),(0,W.jsx)(Fe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except next`,_on:{},_hasButtons:{first:!0,last:!0,next:!1,previous:!0}})]})]}),"sibling-boundary":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample demonstrates how _siblingCount and _boundaryCount affect the number of page buttons shown. All examples use the same dataset configuration (_max=20, _page=5, _pageSize=1) to clearly show the effect of these settings. _siblingCount controls how many page buttons appear next to the current page, while _boundaryCount controls how many buttons appear at the beginning and end of the pagination.`})}),(0,W.jsxs)(G,{id:`sibling-boundary`,children:[(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_label:`Default: siblingCount=1, boundaryCount=1 (shows pages 1, 4, 5, 6, 20)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:2,_boundaryCount:1,_label:`siblingCount=2, boundaryCount=1 (shows pages 1, 3, 4, 5, 6, 7, 20)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:3,_boundaryCount:1,_label:`siblingCount=3, boundaryCount=1 (shows pages 1, 2, 3, 4, 5, 6, 7, 8, 20)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:0,_boundaryCount:1,_label:`siblingCount=0, boundaryCount=1 (shows pages 1, 5, 20 only)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:1,_boundaryCount:2,_label:`siblingCount=1, boundaryCount=2 (shows pages 1, 2, 4, 5, 6, 19, 20)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:1,_boundaryCount:3,_label:`siblingCount=1, boundaryCount=3 (shows pages 1, 2, 3, 4, 5, 6, 18, 19, 20)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:1,_boundaryCount:0,_label:`siblingCount=1, boundaryCount=0 (shows pages 4, 5, 6 only, with ellipsis)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:0,_boundaryCount:0,_label:`siblingCount=0, boundaryCount=0 (shows page 5 only, with ellipsis on both sides)`,_on:{}}),(0,W.jsx)(Fe,{_max:20,_page:5,_pageSize:1,_siblingCount:5,_boundaryCount:2,_label:`siblingCount=5, boundaryCount=2 (shows almost all pages)`,_on:{}}),(0,W.jsx)(Fe,{_max:100,_page:50,_pageSize:1,_siblingCount:3,_boundaryCount:2,_label:`Larger dataset: _max=100, _page=50, siblingCount=3, boundaryCount=2`,_on:{}})]})]})}},kd=[`top`,`right`,`bottom`,`left`],Ad={"popover-button":{align:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`code`,{children:`_popoverAlign`}),` places the popover on one of the four sides of the button; the default is `,(0,W.jsx)(`code`,{children:`bottom`}),`. If there is not enough space, the popover moves to the opposite side.`]}),(0,W.jsx)(`p`,{children:`Open the buttons one after the other to compare the positions.`})]}),(0,W.jsx)(G,{id:`popover-align`,className:`grid grid-cols-2 gap-32 p-32 justify-items-center`,skipSnapshot:!0,children:kd.map(e=>(0,W.jsx)(Ie,{_label:`Popover ${e}`,_popoverAlign:e,children:(0,W.jsxs)(`p`,{className:`m-0 p-2 bg-white`,children:[`Popover placed `,(0,W.jsx)(`strong`,{children:e}),`.`]})},e))})]}),basic:()=>{let{dummyClickEventHandler:e}=Ia(),t=E.useRef(null),n={onClick:e},r=[{type:`button`,_label:`Show`,_icons:`kolicon-eye`,_on:n},{type:`button`,_label:`Delete`,_icons:`kolicon-minus`,_on:n},{type:`button`,_label:`Add`,_icons:`kolicon-plus`,_on:n}];return(0,E.useEffect)(()=>{t.current&&(t.current.showPopover(),t.current.focus())},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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 `,(0,W.jsx)(`code`,{children:`_popoverAlign`}),` prop.`]})}),(0,W.jsxs)(`div`,{className:`flex flex-col gap-4 items-center`,children:[(0,W.jsx)(Ie,{_label:`Actions`,_variant:`primary`,_icons:{right:`kolicon-chevron-down`},ref:t,children:(0,W.jsx)(qe,{_label:`Action toolbar`,_items:r,_orientation:`vertical`})}),(0,W.jsx)(Ie,{_label:`Help`,_icons:`kolicon-alert-info`,_popoverAlign:`right`,_tooltipAlign:`bottom`,_hideLabel:!0,children:(0,W.jsxs)(`div`,{className:`w-sm p-2 border border-solid border-gray bg-white`,children:[(0,W.jsx)(P,{_label:`Help Information`,_level:0}),(0,W.jsxs)(`p`,{children:[(0,W.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.`]})]})})]})]})},inline:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`A PopoverButton inline with some dummy text. Here the PopoverButton has the height of the surrounding text. As statet in`,(0,W.jsx)(`a`,{href:`https://www.w3.org/WAI/WCAG21/Understanding/target-size.html`,children:`Understanding SC 2.5.5`}),` target size of a help icon in text can be smaller than 44px by 44px.`]})}),(0,W.jsx)(G,{id:`inline`,className:`flex flex-col gap-4`,children:(0,W.jsxs)(`p`,{children:[`Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium.`,(0,W.jsx)(Ie,{_inline:!0,_label:`Help`,_icons:`kolicon-alert-info`,_popoverAlign:`right`,_tooltipAlign:`bottom`,_hideLabel:!0,children:(0,W.jsxs)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:[(0,W.jsx)(P,{_label:`Help Information`,_level:0}),(0,W.jsxs)(`p`,{children:[(0,W.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.`]})]})}),(0,W.jsx)(`br`,{}),`Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae.`]})})]})}},jd={progress:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolProgress renders a progress indicator. The sample shows the variants "bar" and "cycle" with and without labels.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2`,children:[(0,W.jsxs)(G,{id:`percentages`,heading:`Percentages`,className:`flex flex-col gap-4`,children:[(0,W.jsx)(Le,{_variant:`bar`,_max:7,_value:0}),(0,W.jsx)(Le,{_variant:`bar`,_max:7,_value:2}),(0,W.jsx)(Le,{_variant:`bar`,_max:7,_value:7}),(0,W.jsx)(Le,{_variant:`cycle`,_max:7,_value:6})]}),(0,W.jsxs)(G,{id:`custom-units`,heading:`Custom units`,className:`flex flex-col gap-4`,children:[(0,W.jsx)(Le,{_label:`Distance`,_variant:`bar`,_max:65434,_value:7236,_unit:`m`}),(0,W.jsx)(Le,{_label:`12 Tasks to do`,_variant:`bar`,_max:12,_value:5,_unit:`tasks completed`}),(0,W.jsx)(Le,{_label:`Max 150 kg`,_variant:`cycle`,_max:150,_value:42,_unit:`kg`})]}),(0,W.jsxs)(G,{id:`min-max`,heading:`Min & Max`,className:`flex flex-col gap-4`,children:[(0,W.jsx)(Le,{_label:`More than max`,_variant:`bar`,_max:7,_value:14}),(0,W.jsx)(Le,{_label:`Less than min`,_variant:`bar`,_max:7,_value:-7})]})]})]}),changing:()=>{let[e,t]=(0,E.useState)(5),[n,r]=(0,E.useState)(10);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This shows that values can be changed and that they are clamped at max value (here at 10).`})}),(0,W.jsxs)(`fieldset`,{title:`changing`,className:`flex flex-col gap-4`,children:[(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(`button`,{onClick:()=>t(-2),children:`set -2`}),(0,W.jsx)(`button`,{onClick:()=>t(5),children:`set 5`}),(0,W.jsx)(`button`,{onClick:()=>t(13),children:`set 13`}),(0,W.jsx)(`button`,{onClick:()=>r(-1),children:`change max to -1`}),(0,W.jsx)(`button`,{onClick:()=>r(5),children:`change max to 5`}),(0,W.jsx)(`button`,{onClick:()=>r(10),children:`change max to 10`})]}),(0,W.jsx)(Le,{_label:`Showing ${e} of ${n}`,_variant:`bar`,_max:n,_value:e}),(0,W.jsx)(Le,{_variant:`cycle`,_max:n,_value:e})]})]})}}},Md={quote:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolQuote renders a quote with optional citation. This sample shows a quote in the variant "inline" with a link for citation.`})}),(0,W.jsx)(G,{id:`basic`,children:(0,W.jsx)(Re,{_href:`https://datatracker.ietf.org/doc/html/rfc1149`,_quote:`Avian carriers can provide high delay.`,_variant:`inline`})})]}),block:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows a quote in the "block" variant.`})}),(0,W.jsx)(G,{id:`block`,children:(0,W.jsx)(Re,{_label:`RFC 1149`,_href:`https://datatracker.ietf.org/doc/html/rfc1149`,_quote:`Avian carriers can provide high delay, low throughput, and low altitude
|
|
60
|
+
service. The connection topology is limited to a single point-to-point path
|
|
61
|
+
for each carrier, used with standard carriers, but many carriers can be used
|
|
62
|
+
without significant interference with each other, outside early spring.
|
|
63
|
+
This is because of the 3D ether space available to the carriers, in contrast
|
|
64
|
+
to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
|
|
65
|
+
avoidance system, which increases availability.`,_variant:`block`})})]})}},Nd=[{label:`Prof. Dr. very long value with more word so it really really breaks the layout `,value:`long`},{label:`No salutation`,value:``},{label:`Mrs.`,value:`Mrs.`},{label:`Mr.`,value:`Mr.`},{label:`Divers`,value:`Divers`}],Pd=Nd.map((e,t)=>t===0?{label:`Select salutation`,value:``,disabled:!0}:e),Fd=Io.reduce((e,t)=>{let n=t.label.charAt(0).toUpperCase();return e[n]||(e[n]={label:n,options:[]}),e[n].options.push({label:t.label,value:t.label}),e},{}),Id=Object.values(Fd),Ld=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`salutation-icons`),children:(0,W.jsx)(ze,{...n,ref:r,_accessKey:`a`,_options:Nd,_label:`Salutation`,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}}})}),(0,W.jsx)(G,{...i(`disabled`),children:(0,W.jsx)(ze,{...n,_options:Nd,_label:`Disabled`,_disabled:!0})}),(0,W.jsx)(G,{...i(`error`),children:(0,W.jsx)(ze,{...n,_options:Pd,_label:`Salutation with error`,_msg:{_type:`error`,_description:K},_touched:!0})}),(0,W.jsx)(G,{...i(`multiple`),children:(0,W.jsx)(ze,{...n,_options:Io,_label:`Multiple choice`,_multiple:!0})}),(0,W.jsx)(G,{...i(`multiple-error`),children:(0,W.jsx)(ze,{...n,_options:Io,_label:`Multiple choice with error`,_multiple:!0,_required:!0,_msg:{_type:`error`,_description:K},_hint:wa,_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(ze,{...n,_options:Nd,_label:`With access key`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(ze,{...n,_options:Nd,_label:`With short key`,_shortKey:`s`})}),(0,W.jsx)(G,{...i(`grouped`),children:(0,W.jsx)(ze,{...n,_options:Id,_label:`With grouped by first letter`,_value:`Albanien`})}),(0,W.jsx)(G,{...i(`grouped-multiple`),children:(0,W.jsx)(ze,{...n,_options:Id,_label:`With grouped by first letter (multiple)`,_multiple:!0,_value:[`Albanien`]})})]})}),Rd=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Text`,children:(0,W.jsx)(Ld,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,W.jsx)(Ld,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),zd={select:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:Rd,showButtons:!1})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolSelect`,renderInput:e=>(0,W.jsx)(ze,{_label:`Select option`,_options:[{label:`Please select…`,value:``},{label:`One`,value:`one`},{label:`Two`,value:`two`}],_on:e})})]}),"multiple-dropdown":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Shows KolSelect with multiple=true and rows=1 - a select with multiselection in a dropdown.`})}),(0,W.jsx)(ms,{label:`KolSelect`,renderInput:e=>(0,W.jsx)(ze,{_label:`Select options`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`},{label:`Three`,value:`three`},{label:`Four`,value:`four`},{label:`Five`,value:`five`},{label:`Six`,value:`six`},{label:`Seven`,value:`seven`},{label:`Eight`,value:`eight`},{label:`Nine`,value:`nine`}],_multiple:!0,_rows:1,_on:e})})]})}},Bd=[{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`}],Vd=({blockIdPrefix:e,snapshotOnly:t,...n})=>{let r=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...r(`hint`),children:(0,W.jsx)(Be,{...n,_hint:wa,_label:`Label`,_options:Io,_value:`de`})}),(0,W.jsx)(G,{...r(`disabled`),children:(0,W.jsx)(Be,{...n,_label:`Disabled`,_options:Io,_value:`de`,_disabled:!0})}),(0,W.jsx)(G,{...r(`error`),children:(0,W.jsx)(Be,{...n,_options:Io,_msg:{_type:`error`,_description:K},_rows:3,_touched:!0,_label:`Label`,_placeholder:`Placeholder`,_required:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...r(`access-key`),children:(0,W.jsx)(Be,{...n,_label:`With access key`,_options:Io,_value:`de`,_accessKey:`c`})}),(0,W.jsx)(G,{...r(`short-key`),children:(0,W.jsx)(Be,{...n,_label:`With short key`,_options:Io,_value:`de`,_shortKey:`s`})}),(0,W.jsx)(G,{...r(`long-labels`),children:(0,W.jsx)(Be,{...n,_label:`With long labels`,_options:Bd,_placeholder:`Placeholder`})}),(0,W.jsx)(G,{...r(`no-clear-button`),children:(0,W.jsx)(Be,{...n,_label:`With hidden clear button`,_options:Io,_value:`de`,_hasClearButton:!1})}),(0,W.jsx)(G,{...r(`boolean-values`),children:(0,W.jsx)(Be,{...n,_label:`Boolean option values (Issue #9122)`,_options:[{label:`False`,value:!1},{label:`True`,value:!0}],_value:!1})}),(0,W.jsx)(G,{...r(`disabled-options`),children:(0,W.jsx)(Be,{...n,_hint:wa,_label:`With disabled options`,_options:[{value:`bw`,label:`Baden-Württemberg`,disabled:!0},{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`},{value:`ni`,label:`Niedersachsen`,disabled:!0},{value:`nw`,label:`Nordrhein-Westfalen`},{value:`rp`,label:`Rheinland-Pfalz`},{value:`sl`,label:`Saarland`},{value:`sn`,label:`Sachsen`},{value:`st`,label:`Sachsen-Anhalt`,disabled:!0},{value:`sh`,label:`Schleswig-Holstein`},{value:`th`,label:`Thüringen`,disabled:!0}],_value:`be`})})]})},Hd=e=>(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Text`,children:(0,W.jsx)(Vd,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,W.jsx)(Vd,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,...e,_hideLabel:!0})})]}),Ud=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`SingleSelect provides a select field for a single value, supported by a search field.`})}),(0,W.jsx)(Mo,{RefComponent:Hd,showButtons:!1})]}),Wd=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolSingleSelect`,renderInput:e=>(0,W.jsx)(Be,{_label:`Search option`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`}],_on:e})})]}),Gd=({show:e})=>e?(0,W.jsx)(`div`,{className:`loading-overlay`,children:(0,W.jsx)(Ue,{_label:`loading`,_show:e,_variant:`cycle`,style:{backgroundColor:`transparent`}})}):null,Kd=()=>{let[e,t]=(0,E.useState)([]),[n,r]=(0,E.useState)(!1);function i(){e.length>0||(r(!0),setTimeout(()=>{t(Io),r(!1)},5e3))}return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This single select loads its list of countries 5 seconds after the first input of the user to simulate a call to the server.`})}),(0,W.jsxs)(`section`,{className:`w-full relative p-3`,children:[(0,W.jsx)(Be,{_label:`Lazy loaded countries`,_options:e,onInput:()=>i()}),(0,W.jsx)(Gd,{show:n})]})]})},qd=[{label:`Zero`,value:0},{label:`No`,value:!1},{label:`Empty string`,value:``},{label:`One`,value:1},{label:`Two (disabled)`,value:2,disabled:!0}],Jd=[{label:2024,value:2024},{label:2025,value:2025},{label:2026,value:2026}],Yd={"single-select":{basic:Ud,"get-value":Wd,"lazy-loaded":Kd,"option-values":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`The options of KolSingleSelect accept any value, also falsy ones such as `,(0,W.jsx)(`code`,{children:`0`}),`, `,(0,W.jsx)(`code`,{children:`false`}),` or an empty string; the selected option is found by its value. A number as `,(0,W.jsx)(`code`,{children:`label`}),` is shown as text. Disabled options stay visible in the list but can not be selected.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{id:`falsy-zero`,children:(0,W.jsx)(Be,{_label:`Value 0 selected`,_options:qd,_value:0})}),(0,W.jsx)(G,{id:`falsy-false`,children:(0,W.jsx)(Be,{_label:`Value false selected`,_options:qd,_value:!1})}),(0,W.jsx)(G,{id:`number-labels`,children:(0,W.jsx)(Be,{_label:`Number labels (year)`,_options:Jd,_value:2025})})]})]})}},Xd={"skip-nav":{basic:()=>{let e=(0,E.useRef)(null);return(0,E.useEffect)(()=>{e.current?.focus()},[]),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus.`}),(0,W.jsx)(`p`,{children:`For testing purposes, click into the example and press the tab-key in order to focus the first link.`})]}),(0,W.jsx)(He,{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`}]})]})}}},Zd={spin:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`KolSpin renders a loading indicator. It supports the variants "dot" (default) and "cycle". With`,` `,(0,W.jsx)(`code`,{children:`_variant="none"`}),` and the expert slot a custom animation can be used – custom animations are not necessarily barrier-free. Color and size can be changed with the CSS properties `,(0,W.jsx)(`code`,{children:`--kol-spin-color`}),` and `,(0,W.jsx)(`code`,{children:`--kol-spin-size`}),`. The label (`,(0,W.jsx)(`code`,{children:`_label`}),`) is only exposed to assistive technology, so it does not change the visual appearance.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsx)(G,{id:`basic`,heading:`Variant dot (default)`,fitContent:!0,children:(0,W.jsx)(Ue,{_show:!0})}),(0,W.jsx)(G,{id:`cycle`,heading:`Variant cycle`,fitContent:!0,children:(0,W.jsx)(Ue,{_show:!0,_variant:`cycle`})}),(0,W.jsx)(G,{id:`custom`,heading:`Custom animation (expert slot)`,fitContent:!0,children:(0,W.jsx)(Ue,{_show:!0,_variant:`none`,children:(0,W.jsx)(`span`,{slot:`expert`,className:`loader`})})}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(P,{_level:2,_label:`With label (screen reader only)`}),(0,W.jsx)(Ue,{_show:!0,_label:`Loading data...`})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(P,{_level:2,_label:`Custom color and size (CSS properties)`}),(0,W.jsx)(Ue,{_show:!0,style:{"--kol-spin-color":`green`,"--kol-spin-size":`80`}})]})]})]})}},Qd={"split-button":{basic:()=>{let{buttonWithTextClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`The `,(0,W.jsx)(`code`,{children:`SplitButton`}),` component combines a primary action button with a context menu. Clicking the main button triggers the`,(0,W.jsx)(`strong`,{children:` Edit`}),` action. The context menu opens a vertical list of additional actions:`,(0,W.jsx)(`strong`,{children:` Save`}),`, `,(0,W.jsx)(`strong`,{children:`Move`}),`, and `,(0,W.jsx)(`strong`,{children:`Delete`}),`.`]})}),(0,W.jsx)(G,{id:`basic`,className:`flex flex-col gap-4`,children:(0,W.jsx)(We,{_label:`Edit`,_on:t,children:(0,W.jsx)(qe,{_label:`Action toolbar`,_items:[{type:`button`,_label:`Save`,_icons:`kolicon-check`,_on:t},{type:`button`,_label:`Move Up`,_icons:`kolicon-chevron-up`,_on:t},{type:`button`,_label:`Delete`,_icons:`kolicon-minus`,_on:t}],_orientation:`vertical`})})})]})},"with-context":()=>{let e=E.useRef(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon.`})}),(0,W.jsx)(`div`,{className:`flex gap-4`,children:(0,W.jsx)(We,{ref:e,_label:`Only the arrow opens`,children:(0,W.jsxs)(`div`,{style:{width:300,padding:16,border:`1px solid #ccc`},onClick:e=>e.stopPropagation(),children:[(0,W.jsx)(`p`,{children:`SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon.`}),(0,W.jsxs)(`div`,{style:{gap:16,display:`flex`,flexDirection:`column`},children:[(0,W.jsx)(L,{_label:`User`}),(0,W.jsx)(L,{_label:`Role`}),(0,W.jsx)(j,{_label:`Close`,_on:{onClick:()=>{e.current?.closePopup()}}})]})]})})})]})}}},$d={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:140},{type:`action`,key:`actions`,label:`Actions`,textAlign:`left`,width:250,actions:e=>{let t=e;return[{type:`button`,_label:`Details`,_icons:`kolicon-eye`,_hideLabel:!0,_on:{onClick:()=>alert(`Details: ${t.id} - ${t.project}`)}},{type:`button`,_label:`Start`,_icons:`kolicon-chevron-right`,_variant:`secondary`,_on:{onClick:()=>alert(`Start task ${t.id}`)}},{type:`link`,_label:`View`,_href:`#/back-page?taskId=${t.id}`,_target:`_blank`,_icons:`kolicon-external-link`,_hideLabel:!1}]}},{type:`action`,key:`externalActions`,label:`External Actions`,textAlign:`right`,width:280,actions:e=>[{type:`link`,_label:`View on Dashboard`,_href:`#/back-page?taskId=${e.id}`,_target:`_blank`,_icons:`kolicon-external-link`,_hideLabel:!1}]}]]},ef=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`}],tf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,W.jsx)(G,{id:`action-columns`,className:`w-full`,children:(0,W.jsx)(B,{_label:`Tasks with action buttons`,_headers:$d,_data:ef,className:`block`})})]}),nf=50,rf=[`Max`,`Erika`,`John`,`Jane`,`Peter`,`Anna`,`Michael`,`Sarah`,`Thomas`,`Lisa`,`Daniel`,`Maria`,`Christian`,`Laura`,`Stefan`,`Julia`,`Andreas`,`Sophie`,`Markus`,`Emma`],af=[`Mustermann`,`Musterfrau`,`Doe`,`Smith`,`Schmidt`,`Müller`,`Weber`,`Meyer`,`Wagner`,`Becker`,`Fischer`,`Schneider`,`Hoffmann`,`Koch`,`Bauer`,`Richter`,`Klein`,`Wolf`,`Schröder`,`Neumann`],of=[`active`,`inactive`,`pending`],sf=(e=>Array.from({length:e},(e,t)=>{let n=rf[t%rf.length],r=af[Math.floor(t/rf.length)%af.length],i=of[t%of.length],a=t+1;return{id:a,name:`${n} ${r}`,email:`${n.toLowerCase()}.${r.toLowerCase()}${a>20?a:``}@example.com`,status:i}}))(nf),cf={horizontal:[[{key:`id`,label:`ID`,textAlign:`left`,width:60,compareFn:(e,t)=>e.id-t.id,sortDirection:`ASC`},{key:`name`,label:`Name`,textAlign:`left`,compareFn:(e,t)=>e.name.localeCompare(t.name,`de`),sortDirection:`ASC`,width:250},{key:`email`,label:`E-Mail`,textAlign:`left`,compareFn:(e,t)=>e.email.localeCompare(t.email,`de`),sortDirection:`ASC`,width:350},{key:`status`,label:`Status`,textAlign:`center`,width:100,compareFn:(e,t)=>e.status.localeCompare(t.status,`de`),sortDirection:`ASC`},{type:`action`,key:`actions`,label:`Aktionen`,textAlign:`center`,width:180,actions:e=>{let t=e;return[{type:`button`,_label:`Bearbeiten`,_icons:`kolicon-eye`,_hideLabel:!0,_tooltipAlign:`top`,_variant:`secondary`,_on:{onClick:()=>{console.log(`Edit clicked for:`,t),alert(`Bearbeiten: ${t.name}`)}}},{type:`button`,_label:`Löschen`,_icons:`kolicon-alert-error`,_hideLabel:!0,_tooltipAlign:`top`,_variant:`danger`,_on:{onClick:()=>{console.log(`Delete clicked for:`,t),alert(`Löschen: ${t.name}`)}}},{type:`button`,_label:`Details anzeigen`,_icons:`kolicon-alert-info`,_hideLabel:!0,_tooltipAlign:`top`,_variant:`normal`,_on:{onClick:()=>{console.log(`Details clicked for:`,t),alert(`Details: ${JSON.stringify(t,null,2)}`)}}}]}}]]},lf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`Performance demo: `,nf,` rows with action buttons defined once in the column header using the refactored approach. The factory function generates actions for each row on demand, eliminating redundant data and improving maintainability.`]}),(0,W.jsxs)(`p`,{children:[`Actions stay type-safe with `,(0,W.jsx)(`code`,{children:`ActionColumnPropType`}),` (ButtonProps or LinkProps), and no custom render functions are needed.`]})]}),(0,W.jsx)(`section`,{className:`w-full`,children:(0,W.jsx)(B,{_label:`Benutzerverwaltung mit Action-Spalte`,_headers:cf,_data:sf,className:`block`})})]}),uf={horizontal:[[{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:140},{label:`ID`,key:`id`,width:100,render:(e,t)=>{let{label:n}=t;return`Index: ${n}`}},{type:`action`,key:`actions`,label:`Actions`,width:100,actions:e=>{let t=e;return[{type:`button`,_label:`Details`,_icons:`kolicon-eye`,_hideLabel:!0,_on:{onClick:()=>alert(`Details: ${t.id} - ${t.project}`)}}]}}]]},df=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`,react:`test`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`,react:`test`}],ff=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,W.jsx)(`section`,{className:`w-full`,children:(0,W.jsx)(B,{_label:`Tasks with action buttons`,_headers:uf,_data:df,className:`block`,_hasSettingsMenu:!0})})]}),pf=new WeakMap,mf=new WeakMap,hf=new WeakMap,gf=new WeakMap,_f=0,vf=`
|
|
66
|
+
table { border-collapse: collapse; }
|
|
67
|
+
th, td { border: 1px solid #888; padding: 4px 12px; }
|
|
68
|
+
th { background: #f0f0f0; }
|
|
69
|
+
`,yf=`
|
|
70
|
+
<thead><tr><th scope="col">City</th><th scope="col">Country</th></tr></thead>
|
|
71
|
+
<tbody><tr><td>Berlin</td><td>Germany</td></tr></tbody>
|
|
72
|
+
`,bf=class extends HTMLElement{static get observedAttributes(){return[`aria-labelledby`]}connectedCallback(){this._render()}attributeChangedCallback(){this.isConnected&&this._render()}_render(){let e=this.getAttribute(`aria-labelledby`)??``;this.innerHTML=`<style>${vf}</style><table>${yf}</table>`;let t=this.querySelector(`table`);e?t.setAttribute(`aria-labelledby`,e):t.removeAttribute(`aria-labelledby`)}},xf=class extends HTMLElement{constructor(){super(),this.id||=`nit-${++_f}`;try{pf.set(this,this.attachInternals())}catch{}}connectedCallback(){this.innerHTML=`<table aria-labelledby="${this.id}">${yf}</table>`}set labelElements(e){let t=pf.get(this);if(t)try{t.ariaLabelledByElements=e}catch{}}},Sf=class extends HTMLElement{constructor(){super();try{mf.set(this,this.attachInternals())}catch{}hf.set(this,this.attachShadow({mode:`open`}))}static get observedAttributes(){return[`aria-labelledby`]}connectedCallback(){let e=hf.get(this);e.innerHTML=`<style>demo-inner-table { display: block; }${vf}</style><demo-inner-table></demo-inner-table>`,gf.set(this,e.querySelector(`demo-inner-table`)),this._sync(this.getAttribute(`aria-labelledby`))}attributeChangedCallback(e,t,n){this.isConnected&&this._sync(n)}_sync(e){let t=this.getRootNode(),n=(e??``).trim().split(/\s+/).filter(Boolean).map(e=>t instanceof ShadowRoot?t.querySelector(`#${CSS.escape(e)}`):document.getElementById(e)).filter(e=>e!==null),r=mf.get(this);if(r)try{r.ariaLabelledByElements=n}catch{}let i=gf.get(this);i&&(i.labelElements=n)}};typeof customElements<`u`&&(customElements.get(`demo-table-light`)||customElements.define(`demo-table-light`,bf),customElements.get(`demo-inner-table`)||customElements.define(`demo-inner-table`,xf),customElements.get(`demo-outer-table`)||customElements.define(`demo-outer-table`,Sf));var Cf={_data:[{city:`Berlin`,country:`Germany`}],_headers:{horizontal:[[{key:`city`,label:`City`},{key:`country`,label:`Country`}]],vertical:[]},_label:`Label should always be filled`,_minWidth:`auto`},wf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Demonstrates how to label a table using an external heading via `,(0,W.jsx)(`code`,{children:`_ariaLabelledby`}),`. The referenced heading lives outside the component's Shadow DOM. KoliBri resolves the element reference via `,(0,W.jsx)(`code`,{children:`ElementInternals.ariaLabelledByElements`}),`, which crosses the Shadow DOM boundary — unlike a plain `,(0,W.jsx)(`code`,{children:`aria-labelledby`}),` attribute, which is scoped to the same tree.`]})}),(0,W.jsxs)(`section`,{className:`w-full flex flex-col gap-6`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h2`,{id:`caption-native`,children:`Native HTML (no Web Component)`}),(0,W.jsxs)(`p`,{children:[`Plain `,(0,W.jsx)(`code`,{children:`<table aria-labelledby="…">`}),`. No Shadow DOM — the IDREF resolves directly in the document tree.`]}),(0,W.jsxs)(`table`,{"aria-labelledby":`caption-native`,children:[(0,W.jsx)(`thead`,{children:(0,W.jsxs)(`tr`,{children:[(0,W.jsx)(`th`,{children:`City`}),(0,W.jsx)(`th`,{children:`Country`})]})}),(0,W.jsx)(`tbody`,{children:(0,W.jsxs)(`tr`,{children:[(0,W.jsx)(`td`,{children:`Berlin`}),(0,W.jsx)(`td`,{children:`Germany`})]})})]})]}),(0,W.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h2`,{id:`caption-wc-light`,children:`Native Web Component — no Shadow DOM`}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`code`,{children:`demo-table-light`}),` renders the table into the light DOM (`,(0,W.jsx)(`code`,{children:`attachShadow`}),` not called). The table's `,(0,W.jsx)(`code`,{children:`aria-labelledby`}),` `,`IDREF resolves in the host document — no boundary to cross.`]}),E.createElement(`demo-table-light`,{"aria-labelledby":`caption-wc-light`})]}),(0,W.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h2`,{id:`caption-wc-shadow`,children:`Native Web Component — with Shadow DOM`}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`code`,{children:`demo-outer-table`}),` (shadow: open) resolves the IDREF via `,(0,W.jsx)(`code`,{children:`getRootNode()`}),` and sets`,` `,(0,W.jsx)(`code`,{children:`ElementInternals.ariaLabelledByElements`}),` on itself and on the inner element. The inner `,(0,W.jsx)(`code`,{children:`<table>`}),` references the inner element via IDREF — valid because both share the same shadow tree.`]}),E.createElement(`demo-outer-table`,{"aria-labelledby":`caption-wc-shadow`})]}),(0,W.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h2`,{id:`caption-stateless`,children:`kol-table-stateless`}),(0,W.jsxs)(`p`,{children:[`The `,(0,W.jsx)(`code`,{children:`<h2>`}),` above serves as the accessible label via `,(0,W.jsx)(`code`,{children:`_ariaLabelledby`}),`. No internal `,(0,W.jsx)(`code`,{children:`<caption>`}),` is rendered.`]}),(0,W.jsx)(Ge,{_ariaLabelledby:`caption-stateless`,...Cf,_hasSettingsMenu:!0})]}),(0,W.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h2`,{id:`caption-stateful`,children:`kol-table-stateful`}),(0,W.jsxs)(`p`,{children:[`Same via the stateful wrapper — `,(0,W.jsx)(`code`,{children:`_ariaLabelledby`}),` is forwarded to the internal stateless implementation.`]}),(0,W.jsx)(B,{_ariaLabelledby:`caption-stateful`,...Cf})]})]})]}),Tf=[{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`}],Ef=Array.from({length:200},(e,t)=>{let n=Tf[t%Tf.length];return{id:t+1,...n}});function Df(e){return Array.from({length:e},(e,t)=>{let n=Tf[t%Tf.length];return{id:t+1,...n}})}var Of={label:e=>`Selection for ${e.common_name}`,multiple:!0,keyPropertyName:`id`},kf=[{label:`ID`,key:`id`,textAlign:`right`,width:60},{label:`Common name`,key:`common_name`,textAlign:`left`,width:250},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:400},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:250},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:400},{label:`Diet`,key:`diet`,textAlign:`left`,width:200},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:300}],Af=()=>{let[e,t]=ei(),[n,r]=(0,E.useState)(50),[i,a]=(0,E.useState)([0,0]),o=(0,E.useRef)(!1),[s,c]=(0,E.useState)(kf),l={horizontal:[s]};function u(){if(o.current)return;let n=e.get(`rows`);n?+n<5e3&&r(+n):t(e=>(e.append(`rows`,`50`),e));let i=e.get(`addCols`);if(i){if(+i<200){let e=[...kf];for(let t=0;t<+i;t++)e.push({label:`label`+t,key:`key`+t,textAlign:`left`,width:100});c(e)}}else t(e=>(e.append(`addCols`,`0`),e));let s=e.get(`fixedCols`);if(s){let e=s.split(`.`);a([+e[0],+e[1]])}else t(e=>(e.append(`fixedCols`,`0.0`),e));o.current=!0}return(0,E.useEffect)(()=>u(),[e]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`You can change what this examples shows with query parameters. Change the values as you like:`}),(0,W.jsxs)(`ul`,{children:[(0,W.jsx)(`li`,{children:`rows=400 - loads 400 rows`}),(0,W.jsx)(`li`,{children:`addCols=10 - adds 10 empty columns to the end`}),(0,W.jsx)(`li`,{children:`fixedCols=2.1 - makes the first two and the last column sticky`})]})]}),(0,W.jsx)(P,{_level:2,_label:`Configurable table`}),(0,W.jsx)(B,{_label:`Animal species overview`,_data:Df(n),_headers:l,className:`block`,_selection:Of,_fixedCols:i})]})},jf=[{left:`Left Example`,center:`Center Example`,right:`Right Example`}],Mf=()=>0,Nf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with columns headers and data in different text alignments.`})}),(0,W.jsxs)(G,{id:`column-alignment`,className:`w-full flex flex-col`,fitContent:!0,children:[(0,W.jsx)(P,{_label:`Simple table`,_level:3}),(0,W.jsx)(B,{_label:`Table for demonstration purposes with different text align properties`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,width:160},{label:`center`,key:`center`,textAlign:`center`,width:160},{label:`right`,key:`right`,textAlign:`right`,width:160}]]},_data:jf,className:`block`,style:{maxWidth:`600px`}}),(0,W.jsx)(P,{_label:`Table with sortable columns`,_level:3,className:`block mt-6`}),(0,W.jsx)(B,{_label:`Table for demonstration purposes with sortable columns`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,compareFn:Mf,width:160},{label:`center`,key:`center`,textAlign:`center`,compareFn:Mf,width:160},{label:`right`,key:`right`,textAlign:`right`,compareFn:Mf,width:160}]]},_data:jf,className:`block`,style:{maxWidth:`600px`}}),(0,W.jsx)(P,{_label:`Table some sortable columns`,_level:3,className:`block mt-6`}),(0,W.jsx)(B,{_label:`Table for demonstration purposes with some but not all columns sortable`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,compareFn:Mf,width:160},{label:`center`,key:`center`,textAlign:`center`,compareFn:Mf,width:160},{label:`right`,key:`right`,textAlign:`right`,width:160}]]},_data:jf,className:`block`,style:{maxWidth:`600px`}}),(0,W.jsx)(P,{_label:`Table with vertical heading`,_level:3,className:`block mt-6`}),(0,W.jsx)(B,{_label:`Table for demonstration purposes with vertical heading`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,width:160},{label:`center`,key:`center`,textAlign:`center`,width:160},{label:`right`,key:`right`,textAlign:`right`,width:160}]],vertical:[[{label:`Vertical`,width:160}]]},_data:jf,className:`block`,style:{maxWidth:`600px`}})]})]}),Pf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan.`})}),(0,W.jsx)(G,{id:`complex-headers`,className:`w-full flex flex-col`,children:(0,W.jsx)(B,{_label:`Business hours`,_data:[{asp:`Center`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`,saturday:`09:00`,sunday:`10:00`},{asp:`Tiergarten`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`,saturday:`09:00`,sunday:`10:00`},{asp:`Maxvorstadt`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`,saturday:`09:00`,sunday:`10:00`}],_headers:{vertical:[[{label:`Berlin`,rowSpan:2,width:100},{label:`München`,width:100}]],horizontal:[[{label:`District`,rowSpan:2,key:`asp`,width:120,textAlign:`center`},{label:`Workdays`,colSpan:5,width:580,textAlign:`center`},{label:`Weekend`,colSpan:2,width:200,textAlign:`center`}],[{label:`Monday`,key:`monday`,width:50,textAlign:`center`},{label:`Tuesday`,key:`tuesday`,width:50,textAlign:`center`},{label:`Wednesday`,key:`wednesday`,width:50,textAlign:`center`},{label:`Thursday`,key:`thursday`,width:50,textAlign:`center`},{label:`Friday`,key:`friday`,width:50,textAlign:`center`},{label:`Saturday`,key:`saturday`,width:50,textAlign:`center`},{label:`Sunday`,key:`sunday`,width:50,textAlign:`center`}]]}})})]}),Ff=22,If=[{city:`Reykjavík`,temperature:6},{city:`Berlin`,temperature:21},{city:`Palma de Mallorca`,temperature:29},{city:`Cairo`,temperature:35},{city:`Helsinki`,temperature:14}],Lf={horizontal:[[{label:`City`,key:`city`,width:160},{label:`Temperature (°C)`,key:`temperature`,textAlign:`right`,width:160,compareFn:(e,t,n=`ASC`)=>{let r=e.temperature,i=t.temperature,a=Math.abs(r-Ff),o=Math.abs(i-Ff);return a===o?n===`DESC`?i-r:r-i:n===`DESC`?o-a:a-o},render:(e,t,n)=>{let r=Math.abs(n.temperature-Ff);return`${n.temperature} °C (Δ ${r} °C)`}}]]},Rf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates how `,(0,W.jsx)(`code`,{children:`compareFn`}),` receives the current `,(0,W.jsx)(`code`,{children:`sortDirection`}),`. Ascending sorts show cities that are closest to 22\xA0°C first, descending sorts highlight the most extreme temperatures.`]})}),(0,W.jsx)(`section`,{className:`w-full`,children:(0,W.jsx)(B,{_label:`Direction aware compare function`,_data:If,_headers:Lf,className:`block`})})]}),zf={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:160,sortDirection:`NOS`},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Diet`,key:`diet`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160,sortDirection:`NOS`}]]},Bf=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows an empty KolTableStateful.`})}),(0,W.jsx)(B,{_label:`Table for demonstration purposes`,_headers:zf,_data:[]})]}),Vf=10,Hf=[`Max`,`Erika`,`John`,`Jane`,`Peter`,`Anna`,`Michael`,`Sarah`,`Thomas`,`Lisa`,`Daniel`,`Maria`,`Christian`,`Laura`,`Stefan`,`Julia`,`Andreas`,`Sophie`,`Markus`,`Emma`],Uf=[`Mustermann`,`Musterfrau`,`Doe`,`Smith`,`Schmidt`,`Müller`,`Weber`,`Meyer`,`Wagner`,`Becker`,`Fischer`,`Schneider`,`Hoffmann`,`Koch`,`Bauer`,`Richter`,`Klein`,`Wolf`,`Schröder`,`Neumann`],Wf=[`active`,`inactive`,`pending`],Gf=(e=>Array.from({length:e},(e,t)=>{let n=Hf[t%Hf.length],r=Uf[Math.floor(t/Hf.length)%Uf.length],i=Wf[t%Wf.length],a=t+1;return{id:a,name:`${n} ${r}`,email:`${n.toLowerCase()}.${r.toLowerCase()}${a>20?a:``}@example.com`,status:i}}))(Vf),Kf=()=>{let[e,t]=E.useState(2),n=E.useMemo(()=>{let t=t=>(n,r)=>{let i=r.data;if(i.id===e+1){n.textContent=``;let e=document.createElement(`strong`);e.textContent=String(i[t]),n.appendChild(e)}else n.textContent=String(i[t])},n=e=>(t,n)=>{let r=t[e],i=n[e];return typeof r==`number`&&typeof i==`number`?r-i:typeof r==`string`&&typeof i==`string`?r.localeCompare(i,`de`):0};return{horizontal:[[{key:`id`,label:`ID`,textAlign:`left`,width:60,compareFn:n(`id`),render:t(`id`),sortDirection:`ASC`},{key:`name`,label:`Name`,textAlign:`left`,compareFn:n(`name`),render:t(`name`),sortDirection:`ASC`},{key:`email`,label:`E-Mail`,textAlign:`left`,compareFn:n(`email`),render:t(`email`),sortDirection:`ASC`},{key:`status`,label:`Status`,textAlign:`center`,width:100,compareFn:n(`status`),render:t(`status`),sortDirection:`ASC`}]]}},[e]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`This sample demonstrates how to programmatically highlight a specific row in a table. You can change the highlighted row by using the input field above the table.`}),(0,W.jsxs)(`p`,{children:[`The highlighting is achieved by using a custom `,(0,W.jsx)(`code`,{children:`render`}),` function for each column, which checks if the current row's ID matches the selected highlight index and applies bold styling.`]})]}),(0,W.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(Oe,{className:`self-start`,_label:`Highlight Row Index`,_value:e,_on:{onInput:(e,n)=>t(Number(n))},_min:0,_max:9}),(0,W.jsx)(B,{_label:`Benutzerverwaltung mit Hervorhebung`,_headers:n,_data:Gf,className:`block`})]})]})},qf=Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),Jf=[{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`)}],Yf=[{small:`Small Example`,large:`Larger Example`}],Xf={horizontal:[[{label:`Small Column`,key:`small`,textAlign:`left`,width:200},{label:`Large Column`,key:`large`,textAlign:`left`,width:300},{label:`Larger Column`,key:`large`,textAlign:`left`,width:400},{label:`Larger Column`,key:`large`,textAlign:`left`,width:400}]]},Zf={horizontal:[[{label:`Small Column`,key:`small`,textAlign:`left`,width:160},{label:`Large Column`,key:`large`,textAlign:`left`,width:160},{label:`Larger Column`,key:`large`,textAlign:`left`,width:160}]]},Qf={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,compareFn:()=>0,render:(e,t,n)=>qf.format(n.date)}]]},$f=()=>{let[e,t]=(0,E.useState)(!0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`div`,{className:`w-[400px] flex flex-col gap-4`,children:[(0,W.jsx)(G,{id:`scrollbar-horizontal`,className:`w-full flex flex-col gap-4`,children:(0,W.jsx)(B,{_label:`Table for demonstration purposes with horizontal scrollbar.`,_headers:e?Xf:Zf,_data:Yf,className:`block`})}),(0,W.jsx)(B,{_label:`Table for demonstration horizontal scrolling with pagination.`,_headers:Qf,_data:Jf,_pagination:!0}),(0,W.jsx)(G,{id:`scrollbar-horizontal-empty`,className:`w-full flex flex-col gap-4`,children:(0,W.jsx)(B,{_label:`Table for demonstration purposes with horizontal scrollbar with auto width calculation.`,_headers:e?Xf:Zf,_data:[],className:`block`})})]}),(0,W.jsx)(F,{_checked:e,_label:`Toggle width restriction`,_variant:`switch`,_on:{onChange:(e,n)=>{t(!!n)}}}),(0,W.jsx)(P,{_label:`Same table without scrollbar`,_level:2,className:`block mt-4`}),(0,W.jsx)(`p`,{className:`mt-0`,children:(0,W.jsx)(`i`,{children:`Scrollbar appears on very small viewport sizes`})}),(0,W.jsx)(G,{id:`scrollbar-horizontal-large`,className:`w-full flex flex-col gap-4`,skipSnapshot:!0,children:(0,W.jsx)(B,{_label:`Table for demonstration purposes without horizontal scrollbar`,_headers:Xf,_data:Yf,className:`block`,_pagination:!0})})]})};function ep(e){let{dummyClickEventHandler:t}=Ia(),n={onClick:t};return(0,W.jsx)(j,{...e,_on:n})}var tp=e=>{let t=`${e}`,n=t.charAt(0).toUpperCase()+t.slice(1);return{label:n,key:t,textAlign:`left`,width:160,render:(t,r)=>{let{label:i}=r,a={_label:n,_variant:e,_icons:{right:`kolicon-kolibri`}};es(Ze(t)).render(i===`button`?(0,W.jsx)(ep,{...a}):(0,W.jsx)(z,{_href:`#/back-page`,...a}))}}},np=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`section`,{className:`w-full flex flex-col`,children:[(0,W.jsx)(Ge,{_label:`Button styles`,_headers:{horizontal:[[tp(`primary`),tp(`secondary`),tp(`normal`),tp(`danger`),tp(`ghost`)]],vertical:[[{label:`Button`,width:120},{label:`Link-Button`,width:120}]]},_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`}),(0,W.jsx)(Ge,{_label:`Link styles`,_headers:{horizontal:[[{key:`regular`,label:`Regular`,textAlign:`left`,width:180,render:(e,t)=>{let{label:n}=t,r={_label:n,_icons:{right:`kolicon-kolibri`}};es(Ze(e)).render(n===`button-link`?(0,W.jsx)(M,{...r}):(0,W.jsx)(R,{_href:`#/back-page`,...r}))}}]],vertical:[[{label:`Link`,width:140},{label:`Button-Link`,width:140}]]},_data:[{regular:`link`},{regular:`button-link`}],className:`block mt`})]})]}),rp=Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),ip=[`Devon Chen`,`Fatima Alvi`,`Leon Köhler`,`Mila Schmidt`,`Sven Lindholm`],ap=[`Customer Service`,`Digital Services`,`Infrastructure`,`Municipal Office`],op=[`High`,`Medium`,`Low`],sp=[`Blocked`,`In progress`,`Ready`],cp=op.reduce((e,t,n)=>(e[t]=n,e),{}),lp=sp.reduce((e,t,n)=>(e[t]=n,e),{}),up=Array.from({length:15}).map((e,t)=>({date:new Date(Date.now()-t*1e3*60*60*24),assignee:ip[t%ip.length],department:ap[t%ap.length],priority:op[t%op.length],status:sp[t%sp.length],openTickets:t*3%11})),dp=[{label:`Assignee`,key:`assignee`,compareFn:(e,t)=>e.assignee.localeCompare(t.assignee,`de`),sortDirection:`ASC`,width:200},{label:`Department`,key:`department`,compareFn:(e,t)=>e.department.localeCompare(t.department,`de`),width:200},{label:`Priority`,key:`priority`,textAlign:`center`,compareFn:(e,t)=>cp[e.priority]-cp[t.priority],sortDirection:`DESC`,width:150},{label:`Status`,key:`status`,textAlign:`center`,compareFn:(e,t)=>lp[e.status]-lp[t.status],width:150},{label:`Open tickets`,key:`openTickets`,textAlign:`right`,compareFn:(e,t)=>e.openTickets-t.openTickets,width:100},{label:`Last updated`,key:`date`,textAlign:`center`,render:(e,t,n)=>rp.format(n.date),compareFn:(e,t)=>e.date<t.date?-1:+(t.date<e.date),width:150}],fp={horizontal:[dp]},pp={vertical:[dp]},mp=()=>{let[e,t]=(0,E.useState)(pp),[n,r]=(0,E.useState)(fp);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Multi-sort allows layering multiple column sorts at once. Compare the compact examples with the project backlog showcase to see how the sort order indicator helps track complex prioritisation.`})}),(0,W.jsxs)(`section`,{className:`w-full grid gap-6`,children:[(0,W.jsxs)(G,{id:`vertical`,heading:`Vertical`,children:[(0,W.jsx)(M,{_label:`Reset Table`,_on:{onClick:()=>t({vertical:[[...dp]]})}}),(0,W.jsx)(B,{_label:`Sort Table with Order and Date`,_data:up.slice(0,10),_headers:e,className:`block`,_allowMultiSort:!0,_on:{onSortChange:(e,t)=>console.log(`sort changed`,t)}})]}),(0,W.jsxs)(G,{id:`horizontal`,heading:`Horizontal`,children:[(0,W.jsx)(M,{_label:`Reset Table`,_on:{onClick:()=>r({horizontal:[[...dp]]})}}),(0,W.jsx)(B,{_label:`Sort Table with Order and Date`,_data:up,_headers:n,className:`block`,_allowMultiSort:!0})]})]})]})},hp=[{id:`1001`,name:`John`,age:30},{id:`1002`,name:`Jane`,age:25}],gp=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This example demonstrates a column that cannot be hidden in the settings.`})}),(0,W.jsx)(G,{id:`non-hidable`,fitContent:!0,children:(0,W.jsx)(B,{_label:`Table with a non-hidable column`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`id`,label:`ID`,hidable:!1,width:160},{key:`name`,label:`Name`,width:160},{key:`age`,label:`Age`,width:160}]]},_data:hp,className:`block`,style:{maxWidth:`600px`}})})]}),_p={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>qf.format(n.date)}]]},vp=()=>(0,W.jsxs)(`div`,{className:`w-full grid gap-14`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with different pagination positions. All paginations hide the first and last buttons.`})}),(0,W.jsxs)(`section`,{className:`w-full flex flex-col gap-14`,children:[(0,W.jsx)(G,{id:`bottom`,heading:`Table with pagination at the bottom.`,children:(0,W.jsx)(B,{_label:`Sample table with pagination at the bottom`,_data:Jf,_headers:_p,_pagination:{_page:1,_hasButtons:{first:!1,next:!0,last:!1,previous:!0}},_paginationPosition:`bottom`,_variant:`small`})}),(0,W.jsx)(G,{id:`top`,heading:`Table with pagination at the top.`,children:(0,W.jsx)(B,{_label:`Sample table with pagination at the top`,_data:Jf,_headers:_p,_pagination:{_page:2,_hasButtons:{first:!0,next:!1,last:!0,previous:!1}},_paginationPosition:`top`})}),(0,W.jsx)(G,{id:`both`,heading:`Table with pagination at both top and bottom.`,children:(0,W.jsx)(B,{_label:`Sample table with pagination at both top and bottom`,_data:Jf,_headers:_p,_pagination:{_page:3,_hasButtons:{first:!1,next:!1,last:!1,previous:!1}},_paginationPosition:`both`})})]})]}),yp=[{columnA:`Column A`,columnB:`Column B`,columnC:`Column C`}],bp=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This example shows the table with predefined settings.`})}),(0,W.jsx)(B,{_label:`Table for demonstration purposes with predefined settings`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`columnC`,visible:!0,label:`Column C`,width:450},{key:`columnB`,visible:!0,label:`Column B`,width:200},{key:`columnA`,visible:!1,label:`Column A`,width:160}]]},_data:yp,className:`block`})]});function xp(e){let t=[],n=new Date(`1970-01-01`).getTime(),r=new Date(`2025-12-31`).getTime();for(let i=0;i<e;i++){let e=n+Math.random()*(r-n);t.push({order:i,shipped:Math.random()>.5,date:new Date(e)})}return t}var Sp=xp(100);function Cp({label:e,icons:t}){let{dummyClickEventHandler:n}=Ia();return(0,W.jsx)(j,{_label:e,_icons:t,_on:{onClick:n}})}var wp={horizontal:[[{label:`#`,key:`order`,textAlign:`center`,width:100,render:(e,t)=>{let{label:n}=t;return`Index: ${n}`}},{label:`Status`,key:`shipped`,textAlign:`center`,width:100,render:(e,t)=>{let{label:n}=t,r=e;r.textContent=n?`Order has been dispatched 🚚`:`Order pending 📦`}},{label:`Date (string)`,key:`date`,width:150,textAlign:`center`,render:(e,t)=>{let{label:n}=t;e.innerHTML=`<strong>${qf.format(n)}</strong>`},compareFn:(e,t)=>e.date.getTime()-t.date.getTime()},{label:`Action (react)`,key:`action`,width:250,render:e=>{es(Ze(e)).render((0,W.jsxs)(`div`,{style:{display:`grid`,gridAutoFlow:`column`,alignItems:`end`,gap:`4px`,width:`190px`},children:[(0,W.jsx)(L,{_label:`Input`}),(0,W.jsx)(Cp,{label:`Save`,icons:{left:`kolicon-check`}})]}))}}]]},Tp=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful using React render functions for the cell contents.`})}),(0,W.jsx)(B,{_label:`Sort by date column`,_data:Sp,_headers:wp,className:`w-full`,_hasSettingsMenu:!0})]}),Ep=[{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`}],Dp=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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 `,(0,W.jsx)(`code`,{children:`hidable`}),`, `,(0,W.jsx)(`code`,{children:`sortable`}),`, and `,(0,W.jsx)(`code`,{children:`resizable`}),` flags.`]})}),(0,W.jsx)(B,{_label:`Table with column option restrictions`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`id`,label:`ID`,hidable:!1,sortable:!1,visible:!0,width:240},{key:`name`,label:`Name`,visible:!0,width:480},{key:`team`,label:`Team`,sortable:!1,visible:!0,width:320},{key:`email`,label:`E-Mail`,resizable:!1,visible:!0,width:400},{key:`status`,label:`Status`,hidable:!1,resizable:!1,visible:!0,width:160}]]},_data:Ep,className:`block`,style:{maxWidth:`720px`}})]}),Op=Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),kp=(e=`ASC`)=>(t,n)=>{let r=t.date.getTime()-n.date.getTime();return e===`DESC`?-r:r},Ap={horizontal:[[{label:`order`,key:`order`,textAlign:`center`,width:160},{label:`date`,key:`date`,textAlign:`center`,width:160,render:(e,t,n)=>Op.format(n.date),compareFn:(e,t,n)=>kp(n)(e,t)}]]},jp={vertical:[[{label:`order`,key:`order`,textAlign:`center`,width:160},{label:`date`,key:`date`,textAlign:`center`,width:160,render:(e,t,n)=>Op.format(n.date),compareFn:(e,t,n)=>kp(n)(e,t)}]]},Mp=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.`})}),(0,W.jsxs)(`section`,{className:`w-full grid gap-4`,children:[(0,W.jsx)(G,{id:`vertical-headers`,heading:`Vertical headers`,children:(0,W.jsx)(B,{_label:`Sort a date column`,_data:Jf.slice(0,10),_headers:jp,className:`block`})}),(0,W.jsx)(G,{id:`horizontal-headers`,heading:`Horizontal headers`,children:(0,W.jsx)(B,{_label:`Sort a date column`,_data:Jf,_headers:Ap,className:`block`})})]})]}),Np={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`},{key:`owner`,label:`Owner`,width:140},{type:`state`,key:`userStates`,label:`States`,textAlign:`left`,width:500}]]},Pp=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`,userStates:[{type:`badge`,_label:`Logged out`,_color:`#aa0000`},{type:`badge`,_label:`In Project`,_color:`#0000aa`}]},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`,userStates:[{type:`badge`,_label:`Logged in`,_color:`#00aa00`},{type:`badge`,_label:`In Project`,_color:`#0000aa`}]}],Fp=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Simple example using the state column: States are defined once in the column header definition using a factory function.`})}),(0,W.jsx)(G,{id:`action-columns`,className:`w-full`,children:(0,W.jsx)(B,{_label:`Tasks with action buttons`,_headers:Np,_data:Pp,className:`block`})})]}),Ip={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:160,sortDirection:`NOS`},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Diet`,key:`diet`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160,sortDirection:`NOS`}]]},Lp=()=>{let e=()=>new Promise(e=>setTimeout(()=>e({COMPLEX_DATA:Ef}),5e4)),t=()=>{a(!0),e().then(e=>{r(e.COMPLEX_DATA.slice(0,15)),a(!1)})},[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(!0);return(0,E.useEffect)(()=>t(),[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows how KolTableStateful can load data async.`})}),(0,W.jsx)(`section`,{className:`w-full relative`,children:(0,W.jsx)(B,{_label:`Table for demonstration purposes`,_loading:i,_headers:Ip,_data:n})})]})},Rp=T(C(((e,t,n)=>{((n,r)=>{typeof define==`function`&&define.amd?define([],r):typeof t==`object`&&e!==void 0?t.exports=r():n.Papa=r()})(n,function e(){var t=typeof self<`u`?self:typeof window<`u`?window:t===void 0?{}:t,n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,i={},a=0,o={};function s(e){return e.charCodeAt(0)===65279?e.slice(1):e}function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine=``,this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let t=this._config.newline;t||=(a=this._config.quoteChar||`"`,this._handle.guessLineEndings(e,a)),e=[...e.split(t).slice(i)].join(t)}this.isFirstChunk&&x(this._config.beforeFirstChunk)&&(a=this._config.beforeFirstChunk(e))!==void 0&&(e=a),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e,a=(this._partialLine=``,this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=a.meta.cursor,i=(this._finished||(this._partialLine=i.substring(e-this._baseIndex),this._baseIndex=e),a&&a.data&&(this._rowCount+=a.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),r)t.postMessage({results:a,workerId:o.WORKER_ID,finished:i});else if(x(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!i||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e||={}).chunkSize||(e.chunkSize=o.RemoteChunkSize),c.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.ontimeout=b(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?`POST`:`GET`,this._input,!n),this._config.downloadTimeout&&!n&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader(`Range`,`bytes=`+this._start+`-`+i));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&t.status===0&&this._chunkError()}},this._chunkLoaded=function(){t.readyState===4&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>(e=e.getResponseHeader(`Content-Range`))===null?-1:parseInt(e.substring(e.lastIndexOf(`/`)+1)))(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError(`Request timed out after `+this._config.downloadTimeout+`ms`)}}function u(e){(e||={}).chunkSize||(e.chunkSize=o.LocalChunkSize),c.call(this,e);var t,n,r=typeof FileReader<`u`;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e||={}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return e=this._config.chunkSize,t=e?(n=t.substring(0,e),t.substring(e)):(n=t,``),this._finished=!t,this.parseChunk(n)}}function f(e){c.call(this,e||={});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on(`data`,this._streamData),this._input.on(`end`,this._streamEnd),this._input.on(`error`,this._streamError)},this._checkIsFinished=function(){r&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=b(function(e){try{t.push(typeof e==`string`?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData(``)},this),this._streamCleanUp=b(function(){this._input.removeListener(`data`,this._streamData),this._input.removeListener(`end`,this._streamEnd),this._input.removeListener(`error`,this._streamError)},this)}function p(e){var t,n,r,i,a=2**53,s=-a,c=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,d=0,f=0,p=!1,g=!1,_=[],v={data:[],errors:[],meta:{}};function b(t){return e.skipEmptyLines===`greedy`?t.join(``).trim()===``:t.length===1&&t[0].length===0}function S(){if(v&&r&&(w(`Delimiter`,`UndetectableDelimiter`,`Unable to auto-detect delimiting character; defaulted to '`+o.DefaultDelimiter+`'`),r=!1),e.skipEmptyLines&&(v.data=v.data.filter(function(e){return!b(e)})),C()){if(v){if(Array.isArray(v.data[0])){for(var t=0;C()&&t<v.data.length;t++)v.data[t].forEach(e);v.data.splice(0,1)}else v.data.forEach(e)}function e(e){_.push(e)}}function n(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var o=i,u=t[i],u=((t,n)=>(t=>(e.dynamicTypingFunction&&e.dynamicTyping[t]===void 0&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?n===`true`||n===`TRUE`||n!==`false`&&n!==`FALSE`&&((e=>{if(c.test(e)&&(e=parseFloat(e),s<e&&e<a))return 1})(n)?parseFloat(n):l.test(n)?new Date(n):n===``?null:n):n)(o=e.header?i>=_.length?`__parsed_extra`:_[i]:o,u=e.transform?e.transform(u,o):u);o===`__parsed_extra`?(r[o]=r[o]||[],r[o].push(u)):r[o]=u}return e.header&&(i>_.length?w(`FieldMismatch`,`TooManyFields`,`Too many fields: expected `+_.length+` fields but parsed `+i,f+n):i<_.length&&w(`FieldMismatch`,`TooFewFields`,`Too few fields: expected `+_.length+` fields but parsed `+i,f+n)),r}var i;v&&(e.header||e.dynamicTyping||e.transform)&&(i=1,!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(n),i=v.data.length):v.data=n(v.data,0),e.header&&v.meta&&(v.meta.fields=_),f+=i)}function C(){return e.header&&_.length===0}function w(e,t,n,r){e={type:e,code:t,message:n},r!==void 0&&(e.row=r),v.errors.push(e)}x(e.step)&&(i=e.step,e.step=function(t){v=t,C()?S():(S(),v.data.length!==0&&(d+=t.data.length,e.preview&&d>e.preview?n.abort():(v.data=v.data[0],i(v,u))))}),this.parse=function(i,a,s){var c=e.quoteChar||`"`,c=(e.newline||=this.guessLineEndings(i,c),r=!1,e.delimiter?x(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter):((c=((t,n,r,i,a)=>{var s,c,l,u;a||=[`,`,` `,`|`,`;`,o.RECORD_SEP,o.UNIT_SEP];for(var d=0;d<a.length;d++){for(var f,p=a[d],m=0,g=0,_=0,v=(l=void 0,new h({comments:i,delimiter:p,newline:n,preview:10}).parse(t)),y=0;y<v.data.length;y++)r&&b(v.data[y])?_++:(f=v.data[y].length,g+=f,l===void 0?l=f:0<f&&(m+=Math.abs(f-l),l=f));0<v.data.length&&(g/=v.data.length-_),1.99<g&&(c===void 0||m<c||m===c&&u<g)&&(c=m,s=p,u=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=c.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),v.meta.delimiter=e.delimiter),y(e));return c.header=C(),e.preview&&e.header&&c.preview++,t=i,n=new h(c),v=n.parse(t,a,s),S(),p?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=x(e.chunk)?``:t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(p=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,n.abort(),v.meta.aborted=!0,x(e.complete)&&e.complete(v),t=``},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+`([^]*?)`+m(t),`gm`),n=(e=e.replace(t,``)).split(`\r`),t=e.split(`
|
|
73
|
+
`),e=1<t.length&&t[0].length<n[0].length;if(n.length===1||e)return`
|
|
74
|
+
`;for(var r=0,i=0;i<n.length;i++)n[i][0]===`
|
|
75
|
+
`&&r++;return r>=n.length/2?`\r
|
|
76
|
+
`:`\r`}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function h(e){var t=(e||={}).delimiter,n=e.newline,r=e.comments,i=e.step,a=e.preview,c=e.fastMode,l=null,u=!1,d=e.quoteChar==null?`"`:e.quoteChar,f=d;if(e.escapeChar!==void 0&&(f=e.escapeChar),(typeof t!=`string`||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=`,`),r===t)throw Error(`Comment character same as delimiter`);!0===r?r=`#`:(typeof r!=`string`||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),n!==`
|
|
77
|
+
`&&n!==`\r`&&n!==`\r
|
|
78
|
+
`&&(n=`
|
|
79
|
+
`);var p=0,h=!1;this.parse=function(o,g,_){if(typeof o!=`string`)throw Error(`Input must be a string`);var v=o.length,y=t.length,b=n.length,S=r.length,C=x(i),w=[],T=[],ee=[],te=p=0;if(!o)return le();if(c||!1!==c&&o.indexOf(d)===-1){for(var E=o.split(n),ne=0;ne<E.length;ne++){if(ee=E[ne],p+=ee.length,ne!==E.length-1)p+=n.length;else if(_)return le();if(!r||ee.substring(0,S)!==r){if(C){if(w=[],k(ee.split(t)),ue(),h)return le()}else k(ee.split(t));if(a&&a<=ne)return w=w.slice(0,a),le(!0)}}return le()}for(var re=o.indexOf(t,p),ie=o.indexOf(n,p),ae=new RegExp(m(f)+m(d),`g`),D=o.indexOf(d,p);;)if(o[p]===d)for(D=p,p++;;){if((D=o.indexOf(d,D+1))===-1)return _||T.push({type:`Quotes`,code:`MissingQuotes`,message:`Quoted field unterminated`,row:w.length,index:p}),se();if(D===v-1)return se(o.substring(p,D).replace(ae,d));if(d===f&&o[D+1]===f)D++;else if(d===f||D===0||o[D-1]!==f){re!==-1&&re<D+1&&(re=o.indexOf(t,D+1));var O=oe((ie=ie!==-1&&ie<D+1?o.indexOf(n,D+1):ie)===-1?re:Math.min(re,ie));if(o.substr(D+1+O,y)===t){ee.push(o.substring(p,D).replace(ae,d)),o[p=D+1+O+y]!==d&&(D=o.indexOf(d,p)),re=o.indexOf(t,p),ie=o.indexOf(n,p);break}if(O=oe(ie),o.substring(D+1+O,D+1+O+b)===n){if(ee.push(o.substring(p,D).replace(ae,d)),ce(D+1+O+b),re=o.indexOf(t,p),D=o.indexOf(d,p),C&&(ue(),h))return le();if(a&&w.length>=a)return le(!0);break}T.push({type:`Quotes`,code:`InvalidQuotes`,message:`Trailing quote on quoted field is malformed`,row:w.length,index:p}),D++}}else if(r&&ee.length===0&&o.substring(p,p+S)===r){if(ie===-1)return le();p=ie+b,ie=o.indexOf(n,p),re=o.indexOf(t,p)}else if(re!==-1&&(re<ie||ie===-1))ee.push(o.substring(p,re)),p=re+y,re=o.indexOf(t,p);else{if(ie===-1)break;if(ee.push(o.substring(p,ie)),ce(ie+b),C&&(ue(),h))return le();if(a&&w.length>=a)return le(!0)}return se();function k(e){w.push(e),te=p}function oe(e){var t=0;return t=e!==-1&&(e=o.substring(D+1,e))&&e.trim()===``?e.length:t}function se(e){return _||(e===void 0&&(e=o.substring(p)),ee.push(e),p=v,k(ee),C&&ue()),le()}function ce(e){p=e,k(ee),ee=[],ie=o.indexOf(n,p)}function le(r){if(e.header&&!g&&w.length&&!u){var i=w[0],a=Object.create(null),o=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=s(i[n]);if(a[r=x(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=a[r];for(;e=r+`_`+s,s++,o.has(e););o.add(e),i[n]=e,a[r]++,t=!0,(l=l===null?{}:l)[e]=r}else a[r]=1,i[n]=r;o.add(r)}t&&console.warn(`Duplicate headers found and renamed.`),u=!0}return{data:w,errors:T,meta:{delimiter:t,linebreak:n,aborted:h,truncated:!!r,cursor:te+(g||0),renamedHeaders:l}}}function ue(){i(le()),w=[],T=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return p}}function g(e){var t=e.data,n=i[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(x(n.userStep)){for(var o=0;o<t.results.data.length&&(n.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},a),!r);o++);delete t.results}else x(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var n=i[e];x(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function v(){throw Error(`Not implemented.`)}function y(e){if(typeof e!=`object`||!e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=y(e[t]);return n}function b(e,t){return function(){e.apply(t,arguments)}}function x(e){return typeof e==`function`}return o.parse=function(n,r){var c=(r||={}).dynamicTyping||!1;if(x(c)&&(r.dynamicTypingFunction=c,c={}),r.dynamicTyping=c,r.transform=!!x(r.transform)&&r.transform,r.downloadTimeout!==void 0){var c=parseInt(r.downloadTimeout);if(isNaN(c))throw Error(`Config downloadTimeout value (`+r.downloadTimeout+`) not parsable by parseInt(val).`);r.downloadTimeout=c}if(!r.worker||!o.WORKERS_SUPPORTED)return c=null,o.NODE_STREAM_INPUT,typeof n==`string`?(n=s(n),c=new(r.download?l:d)(r)):!0===n.readable&&x(n.read)&&x(n.on)?c=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(c=new u(r)),c.stream(n);(c=(()=>{var n;return!!o.WORKERS_SUPPORTED&&(n=(()=>{var n=t.URL||t.webkitURL||null,r=e.toString();return o.BLOB_URL||=n.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))})(),(n=new t.Worker(n)).onmessage=g,n.id=a++,i[n.id]=n)})()).userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,c.postMessage({input:n,config:r,workerId:c.id})},o.unparse=function(e,t){var n=!1,r=!0,i=`,`,a=`\r
|
|
80
|
+
`,s=`"`,c=s+s,l=!1,u=null,d=!1,f=((()=>{if(typeof t==`object`){if(typeof t.delimiter!=`string`||o.BAD_DELIMITERS.filter(function(e){return t.delimiter.indexOf(e)!==-1}).length||(i=t.delimiter),typeof t.quotes!=`boolean`&&typeof t.quotes!=`function`&&!Array.isArray(t.quotes)||(n=t.quotes),typeof t.skipEmptyLines!=`boolean`&&typeof t.skipEmptyLines!=`string`||(l=t.skipEmptyLines),typeof t.newline==`string`&&(a=t.newline),typeof t.quoteChar==`string`&&(s=t.quoteChar,c=s+s),typeof t.header==`boolean`&&(r=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw Error(`Option columns is empty`);u=t.columns}t.escapeChar!==void 0&&(c=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:typeof t.escapeFormulae==`boolean`&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(s),`g`));if(typeof e==`string`&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,l);if(typeof e[0]==`object`)return p(u||Object.keys(e[0]),e,l)}else if(typeof e==`object`)return typeof e.data==`string`&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]==`object`?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]==`object`||(e.data=[e.data])),p(e.fields||[],e.data||[],l);throw Error(`Unable to serialize unrecognized input`);function p(e,t,n){var o=``,s=(typeof e==`string`&&(e=JSON.parse(e)),typeof t==`string`&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),c=!Array.isArray(t[0]);if(s&&r){for(var l=0;l<e.length;l++)0<l&&(o+=i),o+=h(e[l],l);0<t.length&&(o+=a)}for(var u=0;u<t.length;u++){var d=(s?e:t[u]).length,f=!1,p=s?Object.keys(t[u]).length===0:t[u].length===0;if(n&&!s&&(f=n===`greedy`?t[u].join(``).trim()===``:t[u].length===1&&t[u][0].length===0),n===`greedy`&&s){for(var m=[],g=0;g<d;g++){var _=c?e[g]:g;m.push(t[u][_])}f=m.join(``).trim()===``}if(!f){for(var v=0;v<d;v++){0<v&&!p&&(o+=i);var y=s&&c?e[v]:v;o+=h(t[u][y],v)}u<t.length-1&&(!n||0<d&&!p)&&(o+=a)}}return o}function h(e,t){var r,a,l;return e==null?``:e.constructor===Date?isNaN(e.getTime())?``:e.toISOString():(l=!1,d&&typeof e==`string`&&d.test(e)&&(e=`'`+e,l=!0),a=(r=e.toString()).replace(f,c),(l=l||!0===n||typeof n==`function`&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(a,o.BAD_DELIMITERS)||-1<a.indexOf(i)||-1<r.indexOf(s)||a.charAt(0)===` `||a.charAt(a.length-1)===` `)?s+a+s:a)}},o.RECORD_SEP=``,o.UNIT_SEP=``,o.BYTE_ORDER_MARK=``,o.BAD_DELIMITERS=[`\r`,`
|
|
81
|
+
`,`"`,o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!n&&!!t.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=`,`,o.Parser=h,o.ParserHandle=p,o.NetworkStreamer=l,o.FileStreamer=u,o.StringStreamer=d,o.ReadableStreamStreamer=f,r&&(t.onmessage=function(e){e=e.data,o.WORKER_ID===void 0&&e&&(o.WORKER_ID=e.workerId),typeof e.input==`string`?t.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&t.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(l.prototype=Object.create(c.prototype)).constructor=l,(u.prototype=Object.create(c.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,o})}))(),1),zp={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>qf.format(n.date)}]]},Bp=(e,t)=>{let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.append(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),0)},Vp=e=>{let t=e.trim().replace(/[<>:"/\\|?*\u0000-\u001F]/g,`-`).replace(/\.+$/,``);return t.length>0?t:`table-export`},Hp=Jf.map(e=>({Date:qf.format(e.date),Order:e.order})),Up=()=>{let[e,t]=(0,E.useState)(`table-export`),n=(0,E.useCallback)((e,n)=>{t(String(n??``))},[]),r=Vp(e),i=(0,E.useCallback)(()=>{let e=Rp.default.unparse(Hp,{delimiter:`;`,newline:`\r
|
|
82
|
+
`});Bp(new Blob([``,e],{type:`text/csv;charset=utf-8;header=present`}),`${r}.csv`)},[r]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows CSV export for KolTableStateful data, using browser Blob downloads and a configurable file name.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(L,{_label:`Export file name`,_value:e,_hint:`The entered value is used for CSV export.`,_on:{onInput:n}}),(0,W.jsx)(`div`,{className:`flex gap-4`,children:(0,W.jsx)(j,{_label:`Export CSV`,_on:{onClick:i}})}),(0,W.jsx)(B,{_label:`Table with export actions`,_data:Jf,_headers:zp,className:`block`})]})]})},Wp=[{name:`Charlie`,score:72},{name:`Alice`,score:95},{name:`Bob`,score:88},{name:`Diana`,score:61},{name:`Eve`,score:84}],Gp={horizontal:[[{key:`name`,label:`Name`,sortDirection:`ASC`,compareFn:(e,t)=>e.name.localeCompare(t.name)},{key:`score`,label:`Score`,textAlign:`right`,compareFn:(e,t)=>e.score-t.score}]]},Kp=()=>{let e=(0,E.useRef)(null);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,W.jsx)(`code`,{children:`resetSort()`}),` method on `,(0,W.jsx)(`code`,{children:`KolTableStateful`}),`. Sort the table manually by clicking on a column header, then press “Reset Sort” to restore the default sort order defined in `,(0,W.jsx)(`code`,{children:`_headers`}),`.`]})}),(0,W.jsxs)(`section`,{className:`w-full grid gap-4`,children:[(0,W.jsx)(j,{_label:`Reset Sort`,_on:{onClick:()=>{e.current?.resetSort?.()}}}),(0,W.jsx)(B,{ref:e,_label:`Table with resettable sort`,_data:Wp,_headers:Gp,className:`block`,_on:{onSortChange:(e,t)=>console.log(`sort changed`,t)}})]})]})},qp=[{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`},{id:`U-004`,name:`Dmitri Volkov`,team:`Engineering`,email:`dmitri@example.org`,status:`Active`},{id:`U-005`,name:`Elena Costa`,team:`Design`,email:`elena@example.org`,status:`On leave`},{id:`U-006`,name:`Farid Haddad`,team:`Support`,email:`farid@example.org`,status:`Active`}],Jp=e=>(t,n,r=`ASC`)=>{let i=String(t[e]).localeCompare(String(n[e]));return r===`DESC`?-i:i},Yp=()=>({horizontal:[[{key:`id`,label:`ID`,visible:!0,width:120},{key:`name`,label:`Name`,visible:!0,width:240,compareFn:Jp(`name`)},{key:`team`,label:`Team`,visible:!0,width:200,compareFn:Jp(`team`)},{key:`email`,label:`E-Mail`,visible:!0,width:280},{key:`status`,label:`Status`,visible:!0,width:160,compareFn:Jp(`status`)}]]}),Xp=()=>{let[e,t]=(0,E.useState)(0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This example demonstrates that column settings applied via the settings menu are remembered. Open the settings menu and change a column's width, visibility or order and apply. Then sort a column, switch the pagination page, select a row, or use the "Force parent re-render" button – the customized columns must stay as you configured them and must no longer reset to their defaults (issue #10344).`})}),(0,W.jsx)(j,{_label:`Force parent re-render (${e})`,_on:{onClick:()=>t(e=>e+1)},className:`block`}),(0,W.jsx)(B,{_label:`Table that remembers settings across sorting, pagination and selection`,_hasSettingsMenu:!0,_pagination:{_page:1,_pageSize:3},_selection:{label:e=>`Select ${e.name}`,keyPropertyName:`id`,selectedKeys:[]},_headers:Yp(),_data:qp,className:`block`})]})},Zp={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:200},{type:`action`,key:`actions`,label:`Actions`,width:250,actions:e=>{let t=e;return[{type:`button`,_label:`Details`,_icons:`kolicon-eye`,_hideLabel:!0,_on:{onClick:()=>alert(`Details: ${t.id} - ${t.project}`)}}]}}]]},Qp=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`},{id:`T-03`,project:`UX audit`,owner:`Tyler Gray`},{id:`T-04`,project:`Software Architectur`,owner:`Tess Richardson`}],$p=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,W.jsx)(G,{id:`selection`,className:`w-full`,children:(0,W.jsx)(B,{_label:`Tasks with action buttons`,_headers:Zp,_data:Qp,className:`block`,_selection:{label:e=>`Selection for ${e.id}`,selectedKeys:[`T-01`],disabledKeys:[`T-04`],keyPropertyName:`id`},_on:{onSelectionChange:(e,t)=>{console.log(`Selection change via callback`,t)}}})})]}),em={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:200},{type:`action`,key:`actions`,label:`Actions`,width:250,actions:e=>{let t=e;return[{type:`button`,_label:`Start`,_icons:`kolicon-chevron-right`,_variant:`secondary`,_on:{onClick:()=>alert(`Start task ${t.id}`)}}]}}]]},tm=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`},{id:`T-03`,project:`UX audit`,owner:`Tyler Gray`},{id:`T-04`,project:`Software Architectur`,owner:`Tess Richardson`}],nm=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,W.jsx)(G,{id:`single-selection`,className:`w-full`,children:(0,W.jsx)(B,{_label:`Tasks with action buttons`,_headers:em,_data:tm,className:`block`,_selection:{label:e=>`Selection for ${e.id}`,selectedKeys:[`T-01`],disabledKeys:[`T-04`],keyPropertyName:`id`,multiple:!1},_on:{onSelectionChange:(e,t)=>{console.log(`Selection change via callback`,t)}}})})]}),rm=[{left:`Left Example`,center:`Center Example`,right:`Right Example`},{},{},{}],im=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper.`})}),(0,W.jsx)(G,{id:`stateless`,className:`w-full`,fitContent:!0,children:(0,W.jsx)(Ge,{_label:`Table for demonstration purposes`,_headers:{horizontal:[[{key:`left`,label:`left`,textAlign:`left`,sortDirection:`ASC`,width:100},{key:`center`,label:`center`,textAlign:`center`,sortDirection:`DESC`,width:100},{key:`right`,label:`right`,textAlign:`right`,sortDirection:`NOS`,width:100},{key:`nosort`,label:`no sort option`,width:150}]],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:rm,className:`block`,style:{maxWidth:`600px`},_on:{onSort:(e,t)=>{console.log(t)}}})})]}),am={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:160,sortDirection:`NOS`},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Diet`,key:`diet`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160,sortDirection:`NOS`}]]},om=()=>{let e=()=>new Promise(e=>setTimeout(()=>e({COMPLEX_DATA:Ef}),5e3)),t=()=>{a(!0),e().then(e=>{r(e.COMPLEX_DATA.slice(0,15)),a(!1)})},[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(!0);return(0,E.useEffect)(()=>t(),[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows how KolTableStateless can be used async and with KolPagination. Paging and sorting are not functional here, because a backend would offer this in real life.`})}),(0,W.jsxs)(G,{id:`async`,className:`w-full relative`,children:[(0,W.jsx)(Ge,{_label:`Table for demonstration purposes`,_loading:i,_headers:am,_data:n,_on:{onSort:()=>t()}}),(0,W.jsx)(Fe,{_max:200,_page:1,_siblingCount:0,_boundaryCount:2,_pageSize:15,_on:{onChangePage:()=>t()}})]})]})},sm=[{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 cm({label:e}){let{dummyClickEventHandler:t}=Ia();return(0,W.jsx)(j,{_label:e,_on:{onClick:t}})}var lm=()=>{let[e,t]=(0,E.useState)([`AAA1002`,`AAA1004`]),n={label:e=>`Selection for ${e.name}`,selectedKeys:e,keyPropertyName:`internalIdentifier`,disabledKeys:[`AAA1003`,`AAA1004`]},r=(0,E.useRef)(null),i=({detail:e})=>{console.log(`Selection change via event`,e)};return(0,E.useEffect)(()=>{let e=r.current,t=`kolSelectionChange`;return e?.addEventListener(t,i),()=>{e?.removeEventListener(t,i)}},[r]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateless with checkboxes for selection enabled.`})}),(0,W.jsx)(G,{id:`selection`,className:`w-full`,children:(0,W.jsx)(Ge,{_label:`Table with selection checkboxes`,_headers:{horizontal:[[{key:`id`,label:`#ID`,textAlign:`left`,width:70},{key:`name`,label:`Name`,textAlign:`left`,width:200},{key:`action`,label:`Action`,textAlign:`left`,render:(e,t)=>{let n=t.data?.id;es(Ze(e)).render((0,W.jsx)(cm,{label:`Click ${n}`}))},width:100}]]},_data:sm,_selection:n,_on:{onSelectionChange:(e,n)=>{console.log(`Selection change via callback`,n),t(n)}},className:`block`,ref:r})})]})},um=[{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`}],dm=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`This sample shows `,(0,W.jsx)(`code`,{children:`KolTableStateless`}),` with the settings menu enabled via`,(0,W.jsx)(`code`,{children:`_hasSettingsMenu`}),`. Each column demonstrates a different combination of sorting and resizing options.`]}),(0,W.jsxs)(`p`,{children:[`Every column declares an explicit `,(0,W.jsx)(`code`,{children:`width`}),`, so the width fields in the settings menu show the current pixel values instead of starting empty. This also prevents a resizable column from collapsing when its width is adjusted from the menu.`]}),(0,W.jsxs)(`ul`,{children:[(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`ID`}),` keeps a fixed width with `,(0,W.jsx)(`code`,{children:`resizable: false`}),` while still allowing sorting.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Name`}),` represents the default behavior with both sorting and resizing enabled.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Role`}),` disables sorting but keeps `,(0,W.jsx)(`code`,{children:`resizable: true`}),` so users can widen the column if necessary.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`E-Mail`}),` allows sorting but locks its width with `,(0,W.jsx)(`code`,{children:`resizable: false`}),` to keep the layout stable.`]}),(0,W.jsxs)(`li`,{children:[(0,W.jsx)(`strong`,{children:`Active`}),` is neither sortable nor resizable to emphasise the status indicator.`]})]})]}),(0,W.jsx)(Ge,{_label:`Users (stateless with settings menu)`,className:`w-full`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`id`,label:`ID`,textAlign:`center`,sortDirection:`NOS`,sortable:!0,resizable:!1,width:120},{key:`name`,label:`Name`,textAlign:`center`,sortDirection:`NOS`,sortable:!0,resizable:!0,width:200},{key:`role`,label:`Role`,textAlign:`center`,sortDirection:`NOS`,sortable:!1,resizable:!0,width:160},{key:`email`,label:`E-Mail`,textAlign:`center`,sortDirection:`NOS`,sortable:!0,resizable:!1,width:240},{key:`active`,label:`Active`,textAlign:`center`,sortDirection:`NOS`,sortable:!1,resizable:!1,width:120}]]},_data:um,_on:{onSort:(e,t)=>console.log(`sort`,t),onSelectionChange:(e,t)=>console.log(`selection`,t),onChangeHeaderCells:(e,t)=>console.log(`header settings changed`,t)}})]}),fm=[{id:`1001`,name:`Foo Bar`,internalIdentifier:`AAA1001`},{id:`1002`,name:`Foo Baz`,internalIdentifier:`AAA1002`},{id:`1003`,name:`Foo Disabled`,internalIdentifier:`AAA1003`}];function pm({label:e}){let{dummyClickEventHandler:t}=Ia();return(0,W.jsx)(j,{_label:e,_on:{onClick:t}})}var mm=()=>{let[e,t]=(0,E.useState)([`1002`]),n={label:e=>`Selection for ${e.name}`,multiple:!1,selectedKeys:e,disabledKeys:[`AAA1003`],keyPropertyName:`internalIdentifier`},r=(0,E.useRef)(null),i=(0,E.useCallback)(({detail:e})=>{console.log(`Selection change via event`,e)},[]),a=(0,E.useCallback)((e,n)=>{console.log(`Selection change via callback`,n),t(n)},[]);(0,E.useEffect)(()=>{let e=r.current,t=`kolSelectionChange`;return e?.addEventListener(t,i),()=>{e?.removeEventListener(t,i)}},[r,i]);let o=(0,E.useCallback)((e,t)=>{let n=t.data?.id;es(Ze(e)).render((0,W.jsx)(pm,{label:`Click ${n}`}))},[]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateless with checkboxes for selection enabled.`})}),(0,W.jsx)(G,{id:`single-selection`,className:`w-full`,fitContent:!0,children:(0,W.jsx)(Ge,{_label:`Table with selection checkboxes`,_headers:{horizontal:[[{key:`id`,label:`#ID`,textAlign:`left`,width:100},{key:`name`,label:`Name`,textAlign:`left`,width:200},{key:`action`,label:`Action`,textAlign:`left`,render:o,width:200}]]},_data:fm,_selection:n,_on:{onSelectionChange:a},className:`block`,ref:r})})]})},hm={label:e=>`Selection for ${e.common_name}`,multiple:!1,keyPropertyName:`internalIdentifier`},gm={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:60},{label:`Common name`,key:`common_name`,textAlign:`left`,width:250},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:400},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:250},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:400},{label:`Diet`,key:`diet`,textAlign:`left`,width:200},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:300}]]},_m=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with the first three and last columns sticky. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table. The data lists animal species with conservation-focused details.`})}),(0,W.jsx)(G,{id:`sticky-cols`,heading:`Sticky columns`,children:(0,W.jsx)(B,{_label:`Animal species overview`,_data:Ef,_headers:gm,className:`block`,_selection:hm,_fixedCols:[2,1]})})]}),vm={label:e=>`Selection for ${e.common_name}`,multiple:!1,keyPropertyName:`internalIdentifier`},ym={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:60},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160},{label:`Diet`,key:`diet`,textAlign:`left`,width:160},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160}]]},bm=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with vertical scrollbar. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table, if your chosen theme supports sticky header. The table's maximum height is set to 75vh with the CSS property --kol-table-max-height. The data lists animal species with conservation-focused details.`})}),(0,W.jsx)(G,{id:`sticky-header`,heading:`Sticky headers`,children:(0,W.jsx)(B,{_label:`Animal species overview`,_data:Ef,_headers:ym,className:`block`,_selection:vm,style:{"--kol-table-max-height":`75vh`}})})]}),xm={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>qf.format(n.date)}]]},Sm=()=>{let[e]=ei(),t=e.get(`theme`)??lo(),n=(0,E.useMemo)(()=>t?eo(t,`tableVariants`):[],[t]);return(0,W.jsxs)(`div`,{className:`w-full grid gap-14`,children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with different variants controlled by the theme.`})}),!Array.isArray(n)||n.length===0?(0,W.jsx)(G,{id:`variant-no`,children:(0,W.jsx)(`p`,{children:`This theme has no variants for tables.`})}):n.map((e,t)=>(0,W.jsx)(G,{id:`variant-`+t,className:`w-full flex flex-col gap-14`,children:(0,W.jsx)(B,{_label:`Table with variant: `+e,_data:Jf,_headers:xm,_pagination:{_page:1,_hasButtons:{first:!1,next:!0,last:!1,previous:!0}},_paginationPosition:`bottom`,_variant:e})}))]})},Cm=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTableStateful with footer data.`})}),(0,W.jsx)(G,{id:`with-footer`,children:(0,W.jsx)(B,{className:`w-full`,_label:`Business hours`,_headers:{horizontal:[[{label:`District`,key:`asp`,width:160},{label:`Monday`,key:`monday`,width:160},{label:`Tuesday`,key:`tuesday`,width:160},{label:`Wednesday`,key:`wednesday`,width:160},{label:`Thursday`,key:`thursday`,width:160},{label:`Friday`,key:`friday`,width:160}]]},_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`}]})})]}),wm={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>qf.format(n.date)}]]},Tm={_page:2},Em=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows how KolTableStateful can be navigated using a pagination.`})}),(0,W.jsx)(G,{id:`with-pagination`,className:`w-full`,children:(0,W.jsx)(B,{_label:`Table description`,_data:Jf,_headers:wm,_pagination:Tm})})]}),Dm=[{id:1001,name:`Max Mustermann`,email:`max.mustermann@example.com`},{id:1002,name:`Erika Musterfrau`,email:`erika.musterfrau@example.com`},{id:1003,name:`John Doe`,email:`john.doe@example.com`},{id:1004,name:`Jane Doe`,email:`jane.doe@example.com`},{id:1005,name:`Peter Smith`,email:`peter.smith@example.com`},{id:1006,name:`Anna Smith`,email:`anna.smith@example.com`},{id:1007,name:`Michael Schmidt`,email:`michael.schmidt@example.com`},{id:1008,name:`Sarah Schmidt`,email:`sarah.schmidt@example.com`},{id:1009,name:`Thomas Müller`,email:`thomas.mueller@example.com`},{id:1010,name:`Lisa Müller`,email:`lisa.mueller@example.com`}],Om={horizontal:[[{key:`id`,label:`ID`,textAlign:`left`,width:80,compareFn:(e,t)=>e.id-t.id,sortDirection:`ASC`},{key:`name`,label:`Name`,textAlign:`left`,compareFn:(e,t)=>e.name.localeCompare(t.name,`en`)},{key:`email`,label:`Email`,textAlign:`left`,compareFn:(e,t)=>e.email.localeCompare(t.email,`en`)}]]},km=[`Ada`,`Bruno`,`Clara`,`Finn`,`Ida`,`Jonas`,`Lena`,`Nele`,`Otto`,`Sina`],Am=[`Bauer`,`Fuchs`,`Hirsch`,`Kraft`,`Lindner`,`Moor`,`Reuter`,`Schubert`,`Wagner`,`Winter`];function jm(e){return e[Math.floor(Math.random()*e.length)]}function Mm(e){return e.reduce((e,t)=>Math.max(e,t.id),1e3)+1}function Nm(e){let t=jm(km),n=jm(Am);return{id:e,name:`${t} ${n}`,email:`${t.toLowerCase()}.${n.toLowerCase()}@example.com`}}var Pm={table:{"column-alignment":Nf,"complex-headers":Pf,empty:Bf,"horizontal-scrollbar":$f,"interactive-child-elements":np,"multi-sort":mp,"highlight-row":Kf,"non-hidable-columns":gp,"pagination-position":vp,"predefined-settings":bp,"action-columns":tf,"action-columns-performance":lf,"state-columns":Fp,"render-cell":Tp,"settings-column-options":Dp,"sort-data":Mp,"direction-aware-sort":Rf,"stateful-async":Lp,"stateful-export":Up,"stateful-reset-sort":Kp,"stateful-settings-persistence":Xp,"stateless-with-settings-menu":dm,"stateful-with-selection":$p,"stateful-with-single-selection":nm,stateless:im,"stateless-async":om,"stateless-with-selection":lm,"stateless-with-single-selection":mm,"sticky-cols":_m,"sticky-header":bm,"with-footer":Cm,"with-pagination":Em,"with-toolbar":()=>{let[e,t]=(0,E.useState)(Dm),[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(null),c=o!==null&&e.some(e=>e.id===o.id),l={keyPropertyName:`id`,label:e=>`Select row ${e.name}`,multiple:i,selectedKeys:n},u=(e,t)=>{r((t??[]).map(e=>e.id))},d=(e,t)=>{a(t===!0),t!==!0&&n.length>1&&r([])},f=()=>{s(Nm(Mm(e)))},p=()=>{let t=e.find(e=>e.id===n[0]);t!==void 0&&s({...t})},m=()=>{s(null)},h=()=>{o!==null&&t(e=>c?e.map(e=>e.id===o.id?o:e):[...e,o]),s(null)},g=[{type:`button`,_label:`Add`,_icons:{left:{icon:`kolicon-plus`}},_variant:`primary`,_on:{onClick:f}},{type:`button`,_label:`Edit`,_variant:`secondary`,_disabled:n.length!==1,_on:{onClick:p}},{type:`button`,_label:`Delete`,_icons:{left:{icon:`kolicon-cross`}},_variant:`danger`,_disabled:n.length===0,_on:{onClick:()=>{n.length!==0&&(t(e.filter(e=>!n.includes(e.id))),r([]))}}}];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample combines a toolbar with a table: a switch toggles between single and multiple selection. "Add" generates a new dummy record in a form and inserts it via "Create". "Edit" opens the selected row in the same form when exactly one row is selected. "Delete" removes all selected rows and is only enabled with a selection.`})}),(0,W.jsxs)(`section`,{className:`w-full`,children:[(0,W.jsx)(qe,{_label:`Table actions`,_items:g}),(0,W.jsx)(F,{className:`block w-fit py-2`,_label:`Multiple selection`,_variant:`switch`,_checked:i,_value:!0,_on:{onInput:d}}),(0,W.jsx)(xe,{_label:c?`Edit entry`:`Add entry`,_align:`right`,_level:2,_open:o!==null,_hasCloser:!0,_on:{onClose:m},children:o!==null&&(0,W.jsxs)(`div`,{className:`flex flex-col gap-4 py-4`,children:[(0,W.jsx)(L,{_label:`Name`,_value:o.name,_on:{onInput:(e,t)=>s({...o,name:String(t)})}}),(0,W.jsx)(L,{_label:`Email`,_value:o.email,_on:{onInput:(e,t)=>s({...o,email:String(t)})}}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(j,{_label:c?`Save`:`Create`,_variant:`primary`,_on:{onClick:h}}),(0,W.jsx)(j,{_label:`Cancel`,_variant:`secondary`,_on:{onClick:m}})]})]})}),(0,W.jsx)(B,{_label:`User management`,_headers:Om,_data:e,className:`block`,_selection:l,_on:{onSelectionChange:u}})]})]})},big:Af,"action-and-render":ff,variant:Sm,"aria-labelledby":wf}},Fm=[{_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_icons:`kolicon-eye`,_label:`Last tab`}],Im=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows KolTabs with the property `,(0,W.jsx)(`code`,{children:`_align`}),` set to `,(0,W.jsx)(`code`,{children:`left`}),`, `,(0,W.jsx)(`code`,{children:`right`}),`, `,(0,W.jsx)(`code`,{children:`top`}),` and `,(0,W.jsx)(`code`,{children:`bottom`}),`.`]})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:[`left`,`right`,`top`,`bottom`].map(e=>{let t=`Tabs with ${e} align`;return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(P,{_level:2,_label:t}),(0,W.jsxs)(Ke,{_tabs:Fm,_align:e,_label:t,children:[(0,W.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,W.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,W.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})]},e)})})]}),Lm=[{_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_icons:`kolicon-eye`,_label:`Last tab`}],Rm=Lm.map(e=>({...e,_icons:void 0})),zm=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs.`})}),(0,W.jsx)(G,{id:`regular`,children:(0,W.jsxs)(Ke,{_tabs:Rm,_label:`Regular tabs`,children:[(0,W.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,W.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,W.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})}),(0,W.jsx)(G,{id:`icons`,children:(0,W.jsxs)(Ke,{_tabs:Lm,className:`mt-4`,_label:`Tabs with icons`,children:[(0,W.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,W.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,W.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})})]}),Bm=[{_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_icons:`kolicon-eye`,_label:`Last tab`}],Vm=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsxs)(`p`,{children:[`This sample shows KolTabs with the property `,(0,W.jsx)(`code`,{children:`_behavior`}),` set to `,(0,W.jsx)(`code`,{children:`select-manual`}),` and `,(0,W.jsx)(`code`,{children:`select-automatic`}),`.`]}),(0,W.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.`})]}),(0,W.jsxs)(`div`,{className:`grid gap-8`,children:[(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(P,{_level:2,_label:`Tabs with "select manual" behavior`}),(0,W.jsxs)(Ke,{_tabs:Bm,_behavior:`select-manual`,_label:`Tabs with select manual behavior`,children:[(0,W.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,W.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,W.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})]}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(P,{_level:2,_label:`Tabs with "select automatic" behavior`}),(0,W.jsxs)(Ke,{_tabs:Bm,className:`mt-4`,_behavior:`select-automatic`,_label:`Tabs with select automatic behavior`,children:[(0,W.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,W.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,W.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})]})]})]}),Hm=()=>{let[e,t]=(0,E.useState)([{_label:`First tab`},{_label:`Second Tab`}]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTabs with a "create tab" button.`})}),(0,W.jsx)(G,{id:`create-button`,children:(0,W.jsxs)(Ke,{_tabs:e,className:`mt-4`,_label:`Tabs with create button`,_hasCreateButton:!0,_on:{onCreate:()=>{t([...e,{_label:`Tab #${e.length+1}`}])}},children:[e.map((e,t)=>(0,W.jsxs)(`div`,{slot:`tab-${t}`,children:[`Contents of `,e._label]},`tab-${t}`)),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`})]})})]})},Um=[{_hideLabel:!0,_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_hideLabel:!0,_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_hideLabel:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_hideLabel:!0,_icons:`kolicon-eye`,_label:`Last tab`}],Wm={tabs:{basic:zm,"create-button":Hm,"icons-only":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolTabs with hidden labels.`})}),(0,W.jsx)(G,{id:`icons-only`,children:(0,W.jsxs)(Ke,{_label:`Tabs with icons`,_tabs:Um,children:[(0,W.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,W.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,W.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,W.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})})]}),behavior:Vm,align:Im}},Gm=`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
|
|
83
|
+
magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
|
84
|
+
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing
|
|
85
|
+
elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
|
|
86
|
+
et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
|
|
87
|
+
sit amet.`,Km=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,W.jsx)(`code`,{children:`_adjustHeight`}),`-property of KolTextarea. The textarea automatically grows with its content.`]})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{id:`adjust-height`,children:(0,W.jsx)(V,{_adjustHeight:!0,_value:Gm,_label:`Text input (auto grow with value)`})}),(0,W.jsx)(V,{_adjustHeight:!0,_label:`Text input (auto grow with initial 3 rows)`,_rows:3})]})]}),qm=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{...i(`black-bg`),className:`black-background`,children:(0,W.jsx)(V,{...n,ref:r,_placeholder:`Placeholder`,_label:`Text`})}),(0,W.jsx)(G,{...i(`error`),children:(0,W.jsx)(V,{...n,_placeholder:`Placeholder`,_required:!0,_msg:{_type:`error`,_description:K},_label:`Text`,_touched:!0,_hint:wa,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,W.jsx)(G,{...i(`msg-info`),children:(0,W.jsx)(V,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`info`,_description:`Just a hint`},_touched:!0})}),(0,W.jsx)(G,{...i(`msg-warning`),children:(0,W.jsx)(V,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`warning`,_description:`Small warning`},_touched:!0})}),(0,W.jsx)(G,{...i(`msg-success`),children:(0,W.jsx)(V,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`success`,_description:`Success message`},_touched:!0})}),(0,W.jsx)(G,{...i(`msg-default`),children:(0,W.jsx)(V,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`default`,_description:`Default message`},_touched:!0})}),(0,W.jsx)(G,{...i(`rows`),children:(0,W.jsx)(V,{...n,ref:r,_accessKey:`T`,_label:`Text (3 rows)`,_rows:3})}),(0,W.jsx)(G,{...i(`placeholder`),children:(0,W.jsx)(V,{...n,ref:r,_label:`Text (placeholder)`,_rows:3,_placeholder:`Placeholder`})}),(0,W.jsx)(G,{...i(`disabled-empty`),children:(0,W.jsx)(V,{...n,ref:r,_label:`Text (disabled & placeholder)`,_rows:3,_placeholder:`Placeholder`,_disabled:!0})}),(0,W.jsx)(G,{...i(`readonly`),children:(0,W.jsx)(V,{...n,ref:r,_label:`Text (readonly)`,_rows:3,_placeholder:`Placeholder`,_readOnly:!0})}),(0,W.jsx)(G,{...i(`disabled-value`),children:(0,W.jsx)(V,{...n,ref:r,_label:`Text (disabled & value)`,_rows:3,_placeholder:`Placeholder`,_value:`Lorem ipsum`,_disabled:!0})}),(0,W.jsx)(G,{...i(`access-key`),children:(0,W.jsx)(V,{...n,ref:r,_label:`With access key`,_rows:3,_placeholder:`Placeholder`,_value:`Lorem ipsum`,_accessKey:`c`})}),(0,W.jsx)(G,{...i(`short-key`),children:(0,W.jsx)(V,{...n,ref:r,_label:`With short key`,_rows:3,_placeholder:`Placeholder`,_value:`Lorem ipsum`,_shortKey:`s`})})]})}),Jm=(0,E.forwardRef)(function(e,t){return(0,W.jsxs)(No,{children:[(0,W.jsx)(Po,{heading:`Text`,children:(0,W.jsx)(qm,{blockIdPrefix:`label`,...e})}),(0,W.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,W.jsx)(qm,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Ym={textarea:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states.`})}),(0,W.jsx)(Mo,{RefComponent:Jm,showButtons:!1})]}),"get-value":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`Shows the callback value from `,(0,W.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,W.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,W.jsx)(ms,{label:`KolTextarea`,renderInput:e=>(0,W.jsx)(V,{_label:`Message`,_on:e})})]}),"adjust-height":Km,resize:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,W.jsx)(`code`,{children:`_resize`}),`-property of KolTextarea. The sample textarea can (only) be resized in the given direction.`]})}),(0,W.jsx)(Se,{className:`w-full`,children:(0,W.jsxs)(G,{id:`resize`,className:`flex flex-col gap-4`,children:[(0,W.jsx)(V,{_label:`Text input (unset)`}),(0,W.jsx)(V,{_resize:`vertical`,_label:`Text input (vertical)`}),(0,W.jsx)(V,{_resize:`none`,_label:`Text input (none)`})]})})]}),rows:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,W.jsx)(`code`,{children:`_rows`}),`-property of KolTextarea. The sample textarea has a fixed row number of 10.`]})}),(0,W.jsx)(G,{id:`rows`,children:(0,W.jsx)(Se,{className:`w-full`,children:(0,W.jsx)(V,{_rows:10,_label:`Texteingabe`})})})]}),"with-counter":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`The sample demonstrates various `,(0,W.jsx)(`code`,{children:`KolTextarea`}),` configurations — contrasting soft vs. hard `,(0,W.jsx)(`code`,{children:`_maxLength`}),` settings and the optional`,(0,W.jsx)(`code`,{children:`_hasCounter`}),` — including one instance without length limits.`]})}),(0,W.jsxs)(G,{id:`with-counter`,className:`w-full flex flex-col gap-4`,children:[(0,W.jsx)(V,{_label:`Textarea with soft max length`,_value:`Lorem Ipsum`,className:`mt-2`,_maxLength:20,_hasCounter:!0,_maxLengthBehavior:`soft`}),(0,W.jsx)(V,{_label:`Textarea with max length`,_value:`Lorem Ipsum`,className:`mt-2`,_maxLength:20}),(0,W.jsx)(V,{_label:`Textarea with max length and counter`,_value:`Lorem Ipsum`,className:`mt-2`,_maxLength:20,_hasCounter:!0}),(0,W.jsx)(V,{_label:`Textarea with counter`,_value:`Lorem Ipsum`,className:`mt-2`,_hasCounter:!0})]})]})}},Xm=()=>{let[e]=ei(),t=e.get(`type`),n=Oi.getInstance(document),r=()=>{n.enqueue({description:`Toasty`,label:`Initial Toast`,type:`warning`,onClose:()=>{console.log(`Simple toast has been closed.`)}})};(0,E.useEffect)(()=>{t&&n.enqueue({description:`Toasty`,label:`Toast with type '${t}'`,type:t})},[t,n]);let i=()=>{n.enqueue({render:(e,{close:t})=>{es(e).render((0,W.jsx)(W.Fragment,{children:(0,W.jsx)(j,{_label:`Hello World from Toast!`,_on:{onClick:()=>{console.log(`Toast Button clicked!`),t()}}})}))},label:`Initial Toast`,type:`warning`})},a=async()=>{let e=await n.enqueue({description:`I will disappear in two seconds...`,label:`Good Bye`,type:`warning`});e&&setTimeout(e,2e3)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(me,{_label:`Component is DEPRECATED`,_type:`error`,_variant:`card`,className:`header-alert`,children:[`For more information, please refer\xA0`,(0,W.jsx)(R,{_href:`https://public-ui.github.io/en/docs/components/toaster`,_target:`_blank`,_label:`to the documentation`}),`.`]}),(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample demonstrates the toast service with all its options.`})}),(0,W.jsx)(`section`,{className:`grid gap-4`,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(j,{_label:`Show simple toast`,_on:{onClick:r}}),(0,W.jsx)(j,{_label:`Show complex toast`,_on:{onClick:i}}),(0,W.jsx)(j,{_label:`Show toast and close after 2 seconds`,_on:{onClick:()=>void a()}}),(0,W.jsx)(j,{_label:`Close all toasts`,_on:{onClick:()=>{n.closeAll()}}})]})})]})},Zm=[`default`,`info`,`success`,`warning`,`error`],Qm=Zm.map(e=>({label:e,value:e})),$m=e=>typeof e==`string`&&Zm.includes(e),eh={toast:{basic:Xm,configurator:()=>{let[e]=ei(),t=e.get(`type`),n=$m(t)?t:void 0,[r,i]=(0,E.useState)(()=>n??`default`),a=(0,E.useMemo)(()=>Oi.getInstance(document),[]);return(0,E.useEffect)(()=>(Zm.forEach(e=>{a.enqueue({description:`Toasty`,label:`Toast with type '${e}'`,type:e})}),()=>{a.closeAll()}),[a]),(0,E.useEffect)(()=>{n&&i(n)},[n]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(me,{_label:`Component is DEPRECATED`,_type:`error`,_variant:`card`,className:`header-alert`,children:[`For more information, please refer\xA0`,(0,W.jsx)(R,{_href:`https://public-ui.github.io/en/docs/components/toaster`,_target:`_blank`,_label:`to the documentation`}),`.`]}),(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`section`,{className:`grid gap-4`,children:[(0,W.jsx)(Ae,{_orientation:`horizontal`,_label:`Toast type`,_value:r,_options:Qm,_on:{onChange:(e,t)=>{$m(t)&&i(t)}}}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(j,{_label:`Open ${r} toast`,_on:{onClick:()=>{a.enqueue({description:`Toasty`,label:`Toast with type '${r}'`,type:r})}}}),(0,W.jsx)(j,{_label:`Close all toasts`,_on:{onClick:()=>{a.closeAll()}}})]})]})]})}}},th={toolbar:{basic:()=>{let e=[{type:`button`,_label:`Back`,_hideLabel:!0,_icons:{left:{icon:`kolicon-chevron-left`}}},{type:`button`,_label:`Next`,_hideLabel:!0,_icons:{right:{icon:`kolicon-chevron-right`}}},{type:`hr`},{type:`link`,_href:`#/back-page`,_label:`Simple Link 1`},{type:`link`,_href:`#/back-page`,_label:`Simple Link 3`},{type:`hr`},{type:`button`,_label:`Bold`,_variant:`secondary`},{type:`button`,_label:`Delete`,_icons:{right:{icon:`kolicon-cross`}},_variant:`danger`}];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(G,{id:`horizontal`,heading:`Orientation horizontal`,fitContent:!0,narrow:!0,children:(0,W.jsx)(qe,{class:`block w-fit`,_label:`Toolbar`,_items:e})}),(0,W.jsx)(G,{id:`vertical`,heading:`Orientation vertical`,fitContent:!0,children:(0,W.jsx)(qe,{class:`block w-fit`,_label:`Toolbar`,_items:e,_orientation:`vertical`})})]})},disabled:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolToolbars with some of the elements disabled.`})}),(0,W.jsx)(G,{id:`disabled`,fitContent:!0,children:(0,W.jsx)(qe,{_label:`Toolbar`,class:`block w-fit`,_items:[{type:`button`,_label:`Back`,_disabled:!0,_hideLabel:!0,_icons:{left:{icon:`kolicon-chevron-left`}}},{type:`button`,_label:`Next`,_hideLabel:!0,_icons:{right:{icon:`kolicon-chevron-right`}}},{type:`link`,_href:`#/back-page`,_label:`Simple Link 1`},{type:`link`,_href:`#/back-page`,_disabled:!0,_label:`Simple Link 3`},{type:`button`,_label:`Bold`}]})})]})}},nh=()=>{let e=[`🐶`,`🐱`,`🐭`,`🐹`,`🐰`,`🦊`,`🐻`,`🐼`,`🐨`,`🐯`,`🦁`,`🐮`,`🐷`,`🐽`,`🐸`,`🐵`];return e[Math.floor(Math.random()*e.length)]},rh={tree:{"basic/:subPage":()=>{let e=(0,E.useContext)(ya),{subPage:t}=Hn(),[n,r]=(0,E.useState)(`1 Home`),[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(!1),[c,l]=(0,E.useState)(!0),u=()=>{r(`1 Home ${nh()}`)},d=n=>({_href:`#/tree/basic/${n}${e?`?hideMenus`:``}`,_active:n===t});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded.`})}),(0,W.jsx)(G,{id:`tree`,fitContent:!0,children:(0,W.jsxs)(Je,{_label:`Sitemap`,class:`block w-fit`,children:[(0,W.jsx)(Ye,{_label:n,...d(`home`)}),(0,W.jsxs)(Ye,{_label:`2 About (open initially)`,...d(`about`),_open:!0,children:[(0,W.jsx)(Ye,{_label:`2.0 Legal`,...d(`legal`)}),(0,W.jsxs)(Ye,{_label:`2.1 Team`,...d(`team`),children:[(0,W.jsx)(Ye,{_label:`2.1.1. Values`,...d(`values`)}),(0,W.jsxs)(Ye,{_label:`2.1.2. Members`,...d(`members`),children:[(0,W.jsx)(Ye,{_label:`2.1.2.1 Humans`,...d(`humans`)}),i&&(0,W.jsx)(Ye,{_label:`2.1.2.2 Pets`,...d(`pets`)})]}),(0,W.jsx)(Ye,{_label:`2.1.3 Locations`,...d(`locations`),children:o&&(0,W.jsxs)(Ye,{_label:`2.1.3.1 Europe`,...d(`europe`),children:[(0,W.jsx)(Ye,{_label:`2.1.3.1.1 Denmark`,...d(`denmark`)}),(0,W.jsx)(Ye,{_label:`2.1.3.1.2 Netherlands`,...d(`netherlands`)})]})})]})]}),c&&(0,W.jsxs)(Ye,{_label:`3. Products`,...d(`products`),children:[(0,W.jsxs)(Ye,{_label:`3.1 Home`,...d(`home-products`),children:[(0,W.jsx)(Ye,{_label:`3.1.1 Refrigerators`,...d(`fridges`)}),(0,W.jsx)(Ye,{_label:`3.1.2 Coffee makers`,...d(`coffee-makers`)})]}),(0,W.jsx)(Ye,{_label:`3.1 Office`,...d(`office-products`),children:(0,W.jsx)(Ye,{_label:`3.2.1 Printers`,...d(`printers`)})})]})]})}),(0,W.jsxs)(`p`,{children:[`Current tree item: `,t??`none`]}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(j,{_label:`Change label for '1 Home'`,_on:{onClick:u}}),(0,W.jsx)(j,{_label:`Toggle '2.1.2.2 Pets'`,_on:{onClick:()=>a(!i)}}),(0,W.jsx)(j,{_label:`Toggle '2.2.1 Europe' (two levels at once)`,_on:{onClick:()=>s(!o)}}),(0,W.jsx)(j,{_label:`Toggle '3. Products'`,_on:{onClick:()=>l(!c)}})]})]})}}},ih={version:{basic:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolVersion renders a label showing the given version number.`})}),(0,W.jsx)(G,{id:`basic`,fitContent:!0,children:(0,W.jsx)(Xe,{_label:`1.1.1`})})]}),context:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows KolVersion inline with text paragraph content.`})}),(0,W.jsx)(G,{id:`context`,children:(0,W.jsxs)(`p`,{children:[(0,W.jsx)(Xe,{_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.`]})})]})}},ah=[{left:`Left Example`,center:`Center Example`,right:`Right Example`}],oh=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolAccordion can have other KoliBri components as content. Some are shown here.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(pe,{_label:`With Combobox`,_open:!0,children:(0,W.jsx)(ve,{_label:`Combobox in Accordion`,_suggestions:`['Herr','Frau','Firma']`})}),(0,W.jsx)(pe,{_label:`With Table`,_open:!0,children:(0,W.jsx)(B,{_label:`Table for demonstration purposes with different text align properties`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,width:300},{label:`center`,key:`center`,textAlign:`center`,width:300},{label:`right`,key:`right`,textAlign:`right`,width:300}]]},_data:ah})})]})]}),sh=({label:e})=>{let t=Oi.getInstance(document),n=(0,E.useRef)(null),r=(0,E.useRef)(null),i=()=>{t.enqueue({label:`Edit clicked`,description:`The button "edit" has been clicked for ${e}`,type:`info`})},a=()=>{t.enqueue({label:`Delete clicked`,description:`The button "delete" has been clicked for ${e}`,type:`warning`})};return(0,W.jsxs)(`div`,{style:{display:`flex`,gap:`calc(10rem / var(--kolibri-root-font-size, 16))`},onKeyUp:e=>{switch(e.code){case`KeyE`:n.current?.focus(),i();return;case`KeyD`:r.current?.focus(),a();return}},children:[(0,W.jsx)(j,{ref:n,_label:`Edit`,_shortKey:`e`,_on:{onClick:i}}),(0,W.jsx)(j,{ref:r,_label:`Delete`,_shortKey:`d`,_variant:`danger`,_on:{onClick:a}})]})},ch=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`This scenario demonstrates an interactive table where each row contains buttons with shortcut keys. The shortcut keys provide visual keyboard indicators and are also functionally implemented.`}),(0,W.jsxs)(`p`,{children:[(0,W.jsx)(`strong`,{children:`How to use:`}),` Move focus within one of the "Actions" cells and press "e" to edit or "d" to delete the corresponding row.`]})]}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsx)(G,{id:`interactive-table-button`,heading:`Interactive Table with Button Shortkeys`,children:(0,W.jsx)(B,{_label:`Interactive table with shortkey buttons in each row`,_data:[{label:`Row 1`},{label:`Row 2`},{label:`Row 3`},{label:`Row 4`}],_headers:{horizontal:[[{label:`Label`,key:`label`,textAlign:`left`,width:200},{label:`Actions`,key:`actions`,textAlign:`left`,width:150,render:(e,t)=>{let n=t.data;n?.label&&es(Ze(e)).render((0,W.jsx)(sh,{label:n.label}))}}]]},_pagination:{_page:1}})})})]}),lh=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This example show how different components works with tabIndex.`})}),(0,W.jsxs)(`div`,{className:`w-full grid gap-4`,children:[(0,W.jsx)(N,{_label:`Button`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(j,{_label:`Button 1, Tabindex 4`,_variant:`primary`,tabIndex:4}),(0,W.jsx)(j,{_disabled:!0,_label:`Button 2, Tabindex 3`,_variant:`primary`,tabIndex:3}),(0,W.jsx)(j,{_label:`Button 3, Tabindex 2`,_variant:`primary`,tabIndex:2}),(0,W.jsx)(j,{_label:`Button 4, Tabindex 1`,_variant:`primary`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`ButtonLink`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(M,{_label:`ButtonLink 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(M,{_disabled:!0,_label:`ButtonLink 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(M,{_label:`ButtonLink 3, Tabindex 2`,tabIndex:2}),(0,W.jsx)(M,{_label:`ButtonLink 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`Combobox`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(ve,{_hint:wa,_label:`Combobox 1, Tabindex 4`,_suggestions:Lo,_value:`Deutschland`,tabIndex:4}),(0,W.jsx)(ve,{_disabled:!0,_hint:wa,_label:`Combobox 2, Tabindex 3`,_suggestions:Lo,_value:`Deutschland`,tabIndex:3}),(0,W.jsx)(ve,{_touched:!0,_hint:wa,_msg:{_type:`error`,_description:K},_label:`Combobox 3, Tabindex 2`,_suggestions:Lo,_value:`Deutschland`,tabIndex:2}),(0,W.jsx)(ve,{_hint:wa,_label:`Combobox 4, Tabindex 1`,_suggestions:Lo,_value:`Deutschland`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputCheckbox`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(F,{_label:`InputCheckbox 4, Tabindex 1`,_value:!1,tabIndex:4}),(0,W.jsx)(F,{_disabled:!0,_label:`InputCheckbox 3, Tabindex 2`,_value:!1,tabIndex:3}),(0,W.jsx)(F,{_touched:!0,_label:`InputCheckbox 2, Tabindex 3`,_msg:{_type:`error`,_description:K},_value:!1,tabIndex:2}),(0,W.jsx)(F,{_label:`InputCheckbox 1, Tabindex 4`,_value:!1,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputColor`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(Te,{_value:`#f08080`,_label:`InputCheckbox 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(Te,{_disabled:!0,_value:`#f08080`,_label:`InputCheckbox 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(Te,{_touched:!0,_value:`#f08080`,_label:`InputCheckbox 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(Te,{_value:`#f08080`,_label:`InputCheckbox 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputDate`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(I,{_type:`datetime-local`,_label:`InputCheckbox 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(I,{_disabled:!0,_type:`datetime-local`,_label:`InputCheckbox 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(I,{_touched:!0,_type:`datetime-local`,_label:`InputCheckbox 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(I,{_type:`datetime-local`,_label:`InputCheckbox 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputEmail`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(Ee,{_label:`InputEmail 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(Ee,{_disabled:!0,_label:`InputEmail 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(Ee,{_touched:!0,_label:`InputEmail 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(Ee,{_label:`InputEmail 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputFile`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(De,{_label:`InputFile 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(De,{_disabled:!0,_label:`InputFile 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(De,{_touched:!0,_label:`InputFile 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(De,{_label:`InputFile 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputNumber`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(Oe,{_label:`InputNumber 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(Oe,{_disabled:!0,_label:`InputNumber 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(Oe,{_touched:!0,_label:`InputNumber 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(Oe,{_label:`InputNumber 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputPassword`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(ke,{_label:`InputPassword 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(ke,{_disabled:!0,_label:`InputPassword 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(ke,{_touched:!0,_label:`InputPassword 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(ke,{_label:`InputPassword 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputRadio`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(Ae,{_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`InputRadio 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(Ae,{_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}),(0,W.jsx)(Ae,{_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:K},tabIndex:2}),(0,W.jsx)(Ae,{_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`InputRadio 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputRange`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(je,{_label:`InputRange 1, Tabindex 4`,_min:0,_max:50,tabIndex:4}),(0,W.jsx)(je,{_disabled:!0,_label:`InputRange 2, Tabindex 3`,_min:0,_max:50,tabIndex:3}),(0,W.jsx)(je,{_touched:!0,_label:`InputRange 3, Tabindex 2`,_min:0,_max:50,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(je,{_label:`InputRange 4, Tabindex 1`,_min:0,_max:50,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`InputText`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(L,{_label:`InputText 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(L,{_disabled:!0,_label:`InputText 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(L,{_touched:!0,_label:`InputText 3, Tabindex 2`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(L,{_label:`InputText 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`LinkButton`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(z,{_href:`#/back-page`,_label:`InputText 1, Tabindex 4`,_variant:`primary`,tabIndex:4}),(0,W.jsx)(z,{_disabled:!0,_href:`#/back-page`,_label:`InputText 2, Tabindex 3`,_variant:`primary`,tabIndex:3}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`InputText 3, Tabindex 2`,_variant:`primary`,tabIndex:2}),(0,W.jsx)(z,{_href:`#/back-page`,_label:`InputText 4, Tabindex 1`,_variant:`primary`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`Link`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(R,{_href:`#/back-page`,_label:`InputText 1, Tabindex 4`,tabIndex:4}),(0,W.jsx)(R,{_disabled:!0,_href:`#/back-page`,_label:`InputText 2, Tabindex 3`,tabIndex:3}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`InputText 3, Tabindex 2`,tabIndex:2}),(0,W.jsx)(R,{_href:`#/back-page`,_label:`InputText 4, Tabindex 1`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`SingleSelect`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(Be,{_label:`InputText 1, Tabindex 4`,_options:Io,_value:`de`,tabIndex:4}),(0,W.jsx)(Be,{_disabled:!0,_label:`InputText 2, Tabindex 3`,_options:Io,_value:`de`,tabIndex:3}),(0,W.jsx)(Be,{_touched:!0,_label:`InputText 3, Tabindex 2`,_options:Io,_msg:{_type:`error`,_description:K},_value:`de`,tabIndex:2}),(0,W.jsx)(Be,{_label:`InputText 4, Tabindex 1`,_options:Io,_value:`de`,tabIndex:1})]})}),(0,W.jsx)(N,{_label:`SplitButton`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(We,{_label:`InputText 1, Tabindex 4`,tabIndex:4,children:`Dropdown-Inhalt`}),(0,W.jsx)(We,{_label:`InputText 2, Tabindex 3`,tabIndex:3,_disabled:!0,children:`Dropdown-Inhalt`}),(0,W.jsx)(We,{_label:`InputText 3, Tabindex 2`,tabIndex:2,children:`Dropdown-Inhalt`}),(0,W.jsx)(We,{_label:`InputText 4, Tabindex 1`,tabIndex:1,children:`Dropdown-Inhalt`})]})}),(0,W.jsx)(N,{_label:`Textarea`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,W.jsx)(V,{_label:`Textarea 1, Tabindex 4`,_rows:3,_placeholder:`Placeholder`,tabIndex:4}),(0,W.jsx)(V,{_disabled:!0,_label:`Textarea 2, Tabindex 3`,_rows:3,_placeholder:`Placeholder`,tabIndex:3}),(0,W.jsx)(V,{_touched:!0,_label:`Textarea 3, Tabindex 2`,_rows:3,_placeholder:`Placeholder`,_msg:{_type:`error`,_description:K},tabIndex:2}),(0,W.jsx)(V,{_label:`Textarea 4, Tabindex 1`,_rows:3,_placeholder:`Placeholder`,tabIndex:1})]})})]})]}),uh=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample demonstrates how tooltip animation duration and width can be customized via`,(0,W.jsx)(`code`,{children:`--kolibri-tooltip-animation-duration`}),` and `,(0,W.jsx)(`code`,{children:`--kol-tooltip-width`}),`.`]})}),(0,W.jsxs)(`div`,{className:`flex justify-center items-center gap-4`,children:[(0,W.jsx)(j,{_label:`Custom duration`,_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":`2500ms`},_icons:`fa-solid fa-clock`,_on:t}),(0,W.jsx)(j,{_label:`Custom width`,_hideLabel:!0,style:{"--kol-tooltip-width":`400px`},_icons:`kolicon-chevron-up`,_on:t})]})]})},dh=()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form.`})}),(0,W.jsxs)(Se,{_on:{onSubmit:()=>{console.error(`submitted`),alert(`submitted`)}},children:[(0,W.jsx)(I,{_label:`date`,_name:`datum`}),(0,W.jsx)(j,{_label:`Submit`,_type:`submit`})]})]}),fh=[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],ph=()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`This example shows how deactivated interactive elements are displayed.`}),(0,W.jsxs)(`ul`,{children:[(0,W.jsx)(`li`,{children:`Deactivated interactive elements pose a particular challenge for accessibility.`}),(0,W.jsx)(`li`,{children:`It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended.`}),(0,W.jsx)(`li`,{children:`Deactivated interactive elements should be labelled clearly and legibly.`}),(0,W.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.`})]}),(0,W.jsx)(`p`,{children:`This implementation ensures standardized use for all users.`})]}),(0,W.jsxs)(`div`,{className:`w-full grid gap-4`,children:[(0,W.jsx)(N,{_label:`Button`,_level:0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_label:`Label`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_label:`Label`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`fa-solid fa-house`,_label:`Label`,_on:t}),(0,W.jsx)(j,{_disabled:!0,_hideLabel:!0,_icons:`fa-solid fa-house`,_label:`Label`,_on:t})]})}),(0,W.jsx)(N,{_label:`ButtonLink`,_level:0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(M,{_label:`Label`}),(0,W.jsx)(M,{_disabled:!0,_label:`Label`}),(0,W.jsx)(M,{_hideLabel:!0,_icons:`fa-solid fa-house`,_label:`Label`}),(0,W.jsx)(M,{_hideLabel:!0,_icons:`fa-solid fa-house`,_disabled:!0,_label:`Label`})]})}),(0,W.jsx)(N,{_label:`Link`,_level:0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(R,{_href:`#`,_label:`Label`}),(0,W.jsx)(R,{_disabled:!0,_href:`#`,_label:`Label`}),(0,W.jsx)(R,{_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`}),(0,W.jsx)(R,{_disabled:!0,_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`})]})}),(0,W.jsx)(N,{_label:`LinkButton`,_level:0,children:(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(z,{_href:`#`,_label:`Label`}),(0,W.jsx)(z,{_disabled:!0,_href:`#`,_label:`Label`}),(0,W.jsx)(z,{_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`}),(0,W.jsx)(z,{_disabled:!0,_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`})]})}),(0,W.jsx)(N,{_label:`Accordion`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(pe,{_label:`Label`,children:`Content`}),(0,W.jsx)(pe,{_disabled:!0,_label:`Label`,children:`Content`}),(0,W.jsx)(pe,{_label:`Label (open)`,_open:!0,children:`Content`}),(0,W.jsx)(pe,{_disabled:!0,_label:`Label (open)`,_open:!0,children:`Content`})]})}),(0,W.jsx)(N,{_label:`Details`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(ye,{_label:`Label`,children:`Content`}),(0,W.jsx)(ye,{_disabled:!0,_label:`Label`,children:`Content`}),(0,W.jsx)(ye,{_label:`Label (open)`,_open:!0,children:`Content`}),(0,W.jsx)(ye,{_disabled:!0,_label:`Label (open)`,_open:!0,children:`Content`})]})}),[F,Te,I,Ee,De,Oe,ke,je,L].map(e=>{let t=e.render.displayName;return(0,W.jsx)(N,{_label:t,_level:0,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(e,{_label:`Label`}),(0,W.jsx)(e,{_disabled:!0,_label:`Label`}),(0,W.jsx)(e,{_hideLabel:!0,_label:`Label`}),(0,W.jsx)(e,{_disabled:!0,_hideLabel:!0,_label:`Label`})]})},t)}),[Ae,ze].map(e=>{let t=e.render.displayName;return(0,W.jsx)(N,{_label:t,_level:0,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(e,{_label:`Label`,_options:fh}),(0,W.jsx)(e,{_disabled:!0,_label:`Label`,_options:fh}),(0,W.jsx)(e,{_hideLabel:!0,_label:`Label`,_options:fh}),(0,W.jsx)(e,{_disabled:!0,_hideLabel:!0,_label:`Label`,_options:fh})]})},t)}),(0,W.jsx)(N,{_label:`KolTextarea`,_level:0,children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(V,{_label:`Label`,_rows:3}),(0,W.jsx)(V,{_disabled:!0,_label:`Label`,_rows:3}),(0,W.jsx)(V,{_hideLabel:!0,_label:`Label`,_rows:3}),(0,W.jsx)(V,{_disabled:!0,_hideLabel:!0,_label:`Label`,_rows:3})]})})]})]})},mh=()=>{let e=new Map;return e.set(`accordion`,(e,t)=>(0,W.jsx)(pe,{className:`w-full`,_label:`Accordion here`,ref:t})),e.set(`badge`,(e,t)=>(0,W.jsx)(ge,{className:`w-full`,_label:`Badge with button`,_smartButton:{_label:`Action`,_icons:`kolicon-house`,_on:{onClick:()=>{}}},ref:t})),e.set(`button`,(e,t)=>(0,W.jsx)(j,{_label:`Button here`,ref:t})),e.set(`buttonLink`,(e,t)=>(0,W.jsx)(M,{_label:`ButtonLink here`,ref:t})),e.set(`card`,(e,t)=>(0,W.jsx)(N,{className:`w-full`,_label:`Card with link here`,_href:`#`,ref:t})),e.set(`combobox`,(e,t)=>(0,W.jsx)(ve,{className:`w-full`,_label:`KolCombobox here`,_suggestions:[],ref:t})),e.set(`details`,(e,t)=>(0,W.jsx)(ye,{className:`w-full`,_label:`Details here`,ref:t,children:`detailed details`})),e.set(`inputCheckbox`,(e,t)=>(0,W.jsx)(F,{className:`w-full`,_name:`checkbox`,_label:`Checkbox`,ref:t})),e.set(`inputColor`,(e,t)=>(0,W.jsx)(Te,{className:`w-full`,_name:`color`,_label:`Color`,ref:t})),e.set(`inputDate`,(e,t)=>(0,W.jsx)(I,{className:`w-full`,_name:`date`,_label:`Date`,ref:t})),e.set(`inputEmail`,(e,t)=>(0,W.jsx)(Ee,{className:`w-full`,_name:`email`,_label:`Email`,ref:t})),e.set(`inputFile`,(e,t)=>(0,W.jsx)(De,{className:`w-full`,_name:`file`,_label:`File`,ref:t})),e.set(`inputFileMultiple`,(e,t)=>(0,W.jsx)(De,{className:`w-full`,_name:`file`,_label:`Files (multiple)`,_multiple:!0,ref:t})),e.set(`inputNumber`,(e,t)=>(0,W.jsx)(Oe,{className:`w-full`,_name:`number`,_label:`Number`,ref:t})),e.set(`inputPassword`,(e,t)=>(0,W.jsx)(ke,{className:`w-full`,_name:`password`,_label:`Password`,ref:t})),e.set(`inputRadio`,(e,t)=>(0,W.jsx)(Ae,{className:`w-full`,_name:`radio`,_label:`Radio`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],_value:`A`,ref:t})),e.set(`inputRange`,(e,t)=>(0,W.jsx)(je,{className:`w-full`,_name:`range`,_label:`Range`,ref:t})),e.set(`inputText`,(e,t)=>(0,W.jsx)(L,{className:`w-full`,_name:`text`,_label:`Text`,ref:t})),e.set(`link`,(e,t)=>(0,W.jsx)(R,{className:`w-full`,_label:`Link here`,_href:`#`,ref:t})),e.set(`linkButton`,(e,t)=>(0,W.jsx)(`div`,{children:(0,W.jsx)(z,{_label:`LinkButton here`,_href:`#`,ref:t})})),e.set(`popoverButton`,(e,t)=>(0,W.jsx)(Ie,{_label:`PopoverButton here`,ref:t})),e.set(`select`,(e,t)=>(0,W.jsx)(ze,{className:`w-full`,_name:`select`,_label:`Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],ref:t})),e.set(`selectMultiple`,(e,t)=>(0,W.jsx)(ze,{className:`w-full`,_name:`select`,_label:`Select (multiple)`,_multiple:!0,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],_rows:2,ref:t})),e.set(`singleSelect`,(e,t)=>(0,W.jsx)(Be,{className:`w-full`,_name:`singleSelect`,_label:`Single Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],ref:t})),e.set(`skipNav`,(e,t)=>(0,W.jsx)(He,{_label:`SkipNav`,_links:[{_label:`Skip to main content`,_href:`#main`}],ref:t})),e.set(`splitButton`,(e,t)=>(0,W.jsx)(We,{_label:`SplitButton here`,ref:t})),e.set(`tabs`,(e,t)=>(0,W.jsx)(Ke,{className:`w-full`,_label:`Tabs here`,_tabs:[{_label:`Tab 1`},{_label:`Tab 2`},{_label:`Tab 3`}],ref:t,children:`Tab content`})),e.set(`textarea`,(e,t)=>(0,W.jsx)(V,{className:`w-full`,_name:`textarea`,_label:`Textarea`,_rows:5,ref:t})),e.set(`toolbar`,(e,t)=>(0,W.jsx)(qe,{className:`w-full`,_label:`Toolbar here`,_items:[{type:`button`,_label:`Action 1`},{type:`button`,_label:`Action 2`}],ref:t})),e.set(`tree`,(e,t)=>(0,W.jsxs)(Je,{className:`w-full`,_label:`Tree here`,ref:t,children:[(0,W.jsx)(Ye,{_label:`1 Home`,_href:`#`}),(0,W.jsxs)(Ye,{_label:`2 Products`,_href:`#`,_open:!0,children:[(0,W.jsx)(Ye,{_label:`2.1 Electronics`,_href:`#`}),(0,W.jsx)(Ye,{_label:`2.2 Furniture`,_href:`#`})]}),(0,W.jsx)(Ye,{_label:`3 Services`,_href:`#`})]})),e},hh=e=>{let t=[...(0,E.useMemo)(()=>mh(),[]).keys()].map(e=>e);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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&&(0,W.jsx)(me,{_type:`error`,_variant:`card`,children:`Component not found.`}),(0,W.jsx)(P,{_level:2,_label:`Focus Test Cases`}),(0,W.jsx)(`ul`,{children:t.map(e=>(0,W.jsx)(`li`,{children:(0,W.jsx)(R,{_label:e,_href:`#/scenarios/focus-elements?component=${e}`})},e))})]})},gh=()=>{let e=(0,E.useMemo)(()=>mh(),[]),[t]=ei(),n=t.get(`component`),r=n?e.get(n):void 0,i=(0,E.useMemo)(()=>r?(0,E.forwardRef)(r):null,[r]),a=(0,E.useCallback)(e=>{e&&e.focus()},[n]);return n?i?(0,W.jsx)(`div`,{children:(0,W.jsx)(i,{ref:a})}):(0,W.jsx)(hh,{invalidComponent:!0}):(0,W.jsx)(hh,{})},_h=[{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}],vh=[{_icons:`fa-solid fa-chart-pie`,_label:`Erster Tab`},{_icons:`fa-solid fa-calendar`,_label:`Zweiter Tab`,_disabled:!0},{_icons:`fa-solid fa-briefcase`,_label:`Deaktivierter Tab`,_disabled:!0},{_icons:`fa-solid fa-address-card`,_label:`Letzter Tab`,_disabled:!0}],yh={horizontal:[[{key:`name`,label:`Name`,textAlign:`left`},{key:`species`,label:`Species`,textAlign:`left`},{key:`habitat`,label:`Habitat`,textAlign:`left`},{key:`diet`,label:`Diet`,textAlign:`left`},{key:`lifespan`,label:`lifespan`,textAlign:`right`}]]};function bh(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`div`,{className:`mainlayout`,children:[(0,W.jsx)(`aside`,{className:`nav-area`,children:(0,W.jsx)(Pe,{_label:`Main navigation`,_links:wd,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),(0,W.jsx)(`div`,{className:`content`,children:(0,W.jsxs)(Ke,{_tabs:vh,_align:`top`,_label:`Demo Tabs`,children:[(0,W.jsx)(`div`,{style:{overflow:`hidden`},children:(0,W.jsx)(B,{_label:`Table for demonstration purposes with horizontal scrollbar`,_headers:yh,_data:_h,_pagination:{_page:1},className:`block`})}),(0,W.jsx)(`div`,{}),(0,W.jsx)(`div`,{}),(0,W.jsx)(`div`,{})]})})]})]})}var xh=()=>{let e=`Unrecognized phone number.`;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.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.`}),(0,W.jsx)(`p`,{children:`The sample only demonstrates how the errors can be displayed, an actual validation logic is not part of the example.`})]}),(0,W.jsxs)(`fieldset`,{children:[(0,W.jsx)(`legend`,{children:`Phone number`}),(0,W.jsx)(me,{_alert:!0,_type:`error`,_label:e}),(0,W.jsxs)(`div`,{className:`grid grid-cols-3 gap-4 max-w-2xl`,children:[(0,W.jsx)(ze,{_options:[{label:`United States +1`,value:`1`},{label:`Greece +30 `,value:`30`},{label:`Germany +49`,value:`49`},{label:`Japan +81`,value:`81`}],_label:`CountryCode `,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0}),(0,W.jsx)(L,{_label:`Area code`,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0}),(0,W.jsx)(L,{_label:`Local number`,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0})]})]}),(0,W.jsxs)(`fieldset`,{className:`mt`,children:[(0,W.jsx)(`legend`,{children:`Pizza toppings`}),(0,W.jsx)(me,{_alert:!0,_type:`error`,_label:`Choose at least two and up to five toppings.`}),[`Mushrooms`,`Bell Peppers`,`Onions`,`Olives`,`Spinach`,`Tomatoes`,`Artichokes`,`Zucchini`,`Jalapeños`,`Basil`].map(t=>(0,W.jsx)(F,{_label:t,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0},t))]})]})},Sh=(0,E.createContext)(void 0),Ch=(0,E.createContext)(!1),wh=e=>{let t=(0,E.useRef)(null),[n,r]=(0,E.useState)(void 0),[i,a]=(0,E.useState)(e.inputProps._value),o=e.formatter||JSON.stringify,s=(0,E.useContext)(Sh),c=(0,E.useContext)(Ch),l=(0,E.useCallback)(async()=>{let e=await t.current?.getValue();r(e)},[]);(0,E.useEffect)(()=>{let e=()=>{l()};return s?.addEventListener(`runAll`,e),()=>{s?.removeEventListener(`runAll`,e)}},[s,l]);let u=Object.fromEntries([`onInput`,`onChange`,`onBlur`,`onClick`,`onFocus`,`onMouseDown`].map(t=>[t,(n,r)=>{c&&console.log(e.inputProps._label,t,r,n),t===`onInput`&&a(r)}]));return(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(`div`,{className:`grid grid-cols-3 items-end gap-4`,"data-testid":e.testId,children:[(0,W.jsx)(e.InputComponent,{ref:t,_on:u,...e.inputProps,_value:i}),(0,W.jsx)(j,{_label:`getValue()`,_on:{onClick:()=>{l()}}}),(0,W.jsx)(`pre`,{className:`text-base`,children:o(n)})]})})},Th=()=>{let e=(0,E.useMemo)(()=>new EventTarget,[]),[t,n]=(0,E.useState)(!0);return(0,W.jsx)(W.Fragment,{children:(0,W.jsx)(Sh.Provider,{value:e,children:(0,W.jsxs)(Ch.Provider,{value:t,children:[(0,W.jsx)(q,{children:(0,W.jsxs)(`p`,{children:[`This sample shows how the input components `,(0,W.jsx)(`code`,{children:`getValue()`}),` method works. It's called when clicking the "getValue()" button and prints the current value right next to itself.`]})}),(0,W.jsxs)(`section`,{className:`w-full flex flex-col`,children:[(0,W.jsx)(N,{_label:`Sample options`,className:`block ha mb-8`,children:(0,W.jsx)(F,{_label:`Log events to console`,_value:!0,_checked:t,_on:{onChange:(e,t)=>n(t)}})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(wh,{testId:`scenario-inputText`,InputComponent:L,inputProps:{_label:`InputText`}}),(0,W.jsx)(wh,{testId:`scenario-inputCheckboxString`,InputComponent:F,inputProps:{_label:`KolInputCheckbox (value)`,_value:`Checkbox True Value`}}),(0,W.jsx)(wh,{testId:`scenario-inputCheckboxBoolean`,InputComponent:F,inputProps:{_label:`KolInputCheckbox (boolean)`}}),(0,W.jsx)(wh,{testId:`scenario-inputColor`,InputComponent:Te,inputProps:{_label:`KolInputColor`}}),(0,W.jsx)(wh,{testId:`scenario-inputDate`,InputComponent:I,inputProps:{_label:`KolInputDate`}}),(0,W.jsx)(wh,{testId:`scenario-inputEmail`,InputComponent:Ee,inputProps:{_label:`KolInputEmail`}}),(0,W.jsx)(wh,{testId:`scenario-inputFile`,InputComponent:De,inputProps:{_label:`KolInputFile`},formatter:e=>e instanceof FileList?`FileList{${Array.from(e).map(e=>e.name).join(`, `)}}`:JSON.stringify(e)}),(0,W.jsx)(wh,{testId:`scenario-inputNumber`,InputComponent:Oe,inputProps:{_label:`KolInputNumber`}}),(0,W.jsx)(wh,{testId:`scenario-inputPassword`,InputComponent:ke,inputProps:{_label:`KolInputPassword`}}),(0,W.jsx)(wh,{testId:`scenario-inputRange`,InputComponent:je,inputProps:{_label:`KolInputRange`}}),(0,W.jsx)(wh,{testId:`scenario-inputRadio`,InputComponent:Ae,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`}}),(0,W.jsx)(wh,{testId:`scenario-select`,InputComponent:ze,inputProps:{_label:`KolSelect`,_options:[{label:`New York`,value:`New York`},{label:`Rio de Janeiro`,value:`Rio de Janeiro`},{label:`Rosenheim`,value:`Rosenheim`}]}}),(0,W.jsx)(wh,{testId:`scenario-singleSelect`,InputComponent:Be,inputProps:{_label:`KolSingleSelect`,_options:[{label:`New York`,value:`New York`},{label:`Rio de Janeiro`,value:`Rio de Janeiro`},{label:`Rosenheim`,value:`Rosenheim`}],_value:`Rosenheim`}}),(0,W.jsx)(wh,{testId:`scenario-combobox`,InputComponent:ve,inputProps:{_label:`KolCombobox`,_suggestions:Lo,_value:`Deutschland`}}),(0,W.jsx)(wh,{testId:`scenario-textarea`,InputComponent:V,inputProps:{_label:`KolTextarea`}}),(0,W.jsx)(wh,{testId:`scenario-button`,InputComponent:j,inputProps:{_label:`KolButton`,_variant:`ghost`,_value:`KolButton value`}}),(0,W.jsx)(wh,{testId:`scenario-buttonLink`,InputComponent:M,inputProps:{_label:`KolButtonLink`,_value:`KolButtonLink value`}}),(0,W.jsxs)(`div`,{className:`grid grid-cols-3 gap-4`,children:[(0,W.jsx)(`div`,{}),(0,W.jsx)(j,{_label:`Run all`,_variant:`primary`,_on:{onClick:()=>{e.dispatchEvent(new Event(`runAll`))}}})]})]})]})]})})})},Eh=()=>{let e=e=>[{text:e},{text:`partly english`,lang:`en`},{text:` Label`,lang:`de`}],t=[{_label:e(`Link `),_href:`#/`},{_label:e(`Link `),_href:`#/`}],n=[{_label:e(`Tab `)},{_label:`Second Tab`}];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`Label can use additional language attributes for screenreaders.`})}),(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(G,{id:`label-lang-accordion`,children:(0,W.jsx)(pe,{_label:e(`Accordion `),children:(0,W.jsx)(`p`,{children:`Contents Accordion`})})}),(0,W.jsx)(G,{id:`label-lang-alert`,children:(0,W.jsx)(me,{_label:e(`Alert `),children:`This is the text of the alert.`})}),(0,W.jsx)(G,{id:`label-lang-badge`,children:(0,W.jsx)(ge,{_label:e(`Badge `)})}),(0,W.jsx)(G,{id:`label-lang-breadcrumb`,children:(0,W.jsx)(_e,{_label:`Breadcrumb`,_links:t})}),(0,W.jsx)(G,{id:`label-lang-button`,children:(0,W.jsx)(j,{_label:e(`Button `)})}),(0,W.jsx)(G,{id:`label-lang-button-link`,children:(0,W.jsx)(M,{_label:e(`ButtonLink `)})}),(0,W.jsx)(G,{id:`label-lang-card`,children:(0,W.jsx)(N,{_label:e(`Card `),children:`Inhaltsbereich`})}),(0,W.jsx)(G,{id:`label-lang-details`,children:(0,W.jsx)(ye,{_label:e(`Details `),children:(0,W.jsx)(`p`,{children:`Contents Details`})})}),(0,W.jsx)(G,{id:`label-lang-heading`,children:(0,W.jsx)(P,{_label:e(`Heading `),_level:1})}),(0,W.jsx)(G,{id:`label-lang-checkbox`,children:(0,W.jsx)(F,{_label:e(`Checkbox`)})}),(0,W.jsx)(G,{id:`label-lang-input`,children:(0,W.jsx)(L,{_label:e(`Input `)})}),(0,W.jsx)(G,{id:`label-lang-link`,children:(0,W.jsx)(R,{_label:e(`Link `),_href:``})}),(0,W.jsx)(G,{id:`label-lang-link-button`,children:(0,W.jsx)(z,{_label:e(`LinkButton `),_href:``})}),(0,W.jsx)(G,{id:`label-lang-meter`,children:(0,W.jsx)(Ne,{_label:e(`Meter `),_max:1024,_min:0,_unit:`MB`,_value:512})}),(0,W.jsx)(G,{id:`label-lang-nav`,children:(0,W.jsx)(Pe,{_label:`Navi`,_links:t})}),(0,W.jsx)(G,{id:`label-lang-popover`,children:(0,W.jsx)(Ie,{_label:e(`Popover `),children:`Text`})}),(0,W.jsx)(G,{id:`label-lang-progress`,children:(0,W.jsx)(Le,{_label:e(`Progress `),_max:100,_value:45,_variant:`bar`})}),(0,W.jsx)(G,{id:`label-lang-quote`,children:(0,W.jsx)(Re,{_href:`https://public-ui.github.io/docs`,_label:e(`Quote `),_quote:`Quote.`,_variant:`inline`})}),(0,W.jsx)(G,{id:`label-lang-table`,children:(0,W.jsx)(B,{_label:e(`Table `),_data:[],_headers:{horizontal:[[{label:`ID`,key:`id`,width:160}]]}})}),(0,W.jsx)(G,{id:`label-lang-tabs`,children:(0,W.jsx)(Ke,{_tabs:n,_label:`Regular tabs`})}),(0,W.jsx)(G,{id:`label-lang-toolbar`,children:(0,W.jsx)(qe,{_label:`Toolbar`,_items:[{type:`button`,_label:e(`Button `)},{type:`link`,_label:e(`Link `),_href:`#`}]})}),(0,W.jsx)(G,{id:`label-lang-tree`,children:(0,W.jsx)(Je,{_label:`Tree`,children:(0,W.jsx)(Ye,{_label:e(`TreeItem `),_href:`#/`})})})]})]})},Dh=()=>{let[e,t]=(0,E.useState)(100),[n,r]=(0,E.useState)(null),[i,a]=(0,E.useState)(null),[o,s]=(0,E.useState)(!1),c={onInput:(e,n)=>{t(n)}},l=(e,t)=>{switch(e){case`text`:return(0,W.jsx)(L,{_label:`TextInput #${t}`},t);case`number`:return(0,W.jsx)(Oe,{_label:`NumberInput #${t}`},t);case`checkbox`:return(0,W.jsx)(F,{_label:`Checkbox #${t}`},t);case`skeleton`:return(0,W.jsx)(Ve,{_name:`skeleton-${t}`},t);default:return null}},u=()=>{if(!n)return null;let t=[];for(let r=1;r<=e;r++)t.push(l(n,r));return t},d=e=>{s(!0),a(null);let t=performance.now();r(e),setTimeout(()=>{let e=performance.now();a(e-t),s(!1)},0)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This example renders many KoliBri components to show the performance. Choose a component type and set the number of instances to render.`})}),(0,W.jsxs)(`div`,{className:`w-full mb-6`,children:[(0,W.jsx)(`div`,{className:`flex flex-wrap items-end gap-4 mb-4`,children:(0,W.jsx)(Oe,{_label:`Number of components`,_value:e,_min:1,_max:500,_on:c})}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4 mb-6`,children:[(0,W.jsx)(j,{_label:`Render TextInputs`,_variant:`primary`,onClick:()=>d(`text`)}),(0,W.jsx)(j,{_label:`Render NumberInputs`,_variant:`primary`,onClick:()=>d(`number`)}),(0,W.jsx)(j,{_label:`Render Checkboxes`,_variant:`primary`,onClick:()=>d(`checkbox`)}),(0,W.jsx)(j,{_label:`Render Skeletons`,_variant:`primary`,onClick:()=>d(`skeleton`)}),(0,W.jsx)(j,{_label:`Clear`,_variant:`secondary`,onClick:()=>{r(null),a(null),s(!1)}})]})]}),n&&(0,W.jsxs)(`div`,{className:`w-full mb-4`,children:[(0,W.jsxs)(`p`,{className:`text-sm text-gray-600 mb-2`,children:[`Rendering `,e,` `,n,` component`,e===1?``:`s`]}),o&&(0,W.jsx)(`p`,{className:`text-sm text-blue-600`,children:`⏱️ Measuring render time...`}),i!==null&&!o&&(0,W.jsxs)(`p`,{className:`text-sm text-green-600`,children:[`✅ Render time: `,i.toFixed(2),`ms`]})]}),(0,W.jsx)(`div`,{className:`w-full grid gap-4`,children:u()})]})},Oh=e=>e.type===`checkbox`,kh=e=>e.type===`file`,Ah=e=>e instanceof Date,jh=e=>e==null,Mh=e=>typeof e==`object`,Nh=e=>!jh(e)&&!Array.isArray(e)&&Mh(e)&&!Ah(e),Ph=e=>Nh(e)&&e.target?Oh(e.target)?e.target.checked:kh(e.target)?e.target.files:e.target.value:e,Fh=/[.[\]'"]/,Ih=e=>e.split(Fh).filter(Boolean);function Lh(e,t){let n=Ih(t),r=e._formValues,i=e._defaultValues;for(let e=0;e<n.length-1;e++){let t=n[e];if(r=r==null?r:r[t],i=i==null?i:i[t],r===null||i===null)return null}}var Rh=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),zh=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function Bh(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e);let t=typeof Blob<`u`&&e instanceof Blob,n=typeof FileList<`u`&&e instanceof FileList;if(zh&&(t||n))return e;let r=Array.isArray(e);if(!r&&e.constructor!==Object)return e;let i=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=Bh(e[t]));return i}var Vh={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},Hh={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},Uh={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`};Uh.required,Uh.min,Uh.max,Uh.minLength,Uh.maxLength,Uh.pattern,Uh.validate;var Wh=[`__proto__`,`constructor`,`prototype`],Gh=/^\w*$/,Kh=e=>Gh.test(e),qh=e=>e===void 0,Jh=(e,t,n)=>{if(!t||!Nh(e))return n;let r=Kh(t)?[t]:Ih(t);if(r.some(e=>Wh.includes(e)))return n;let i=r.reduce((e,t)=>jh(e)?void 0:e[t],e);return qh(i)||i===e?qh(e[t])?n:e[t]:i},Yh=e=>typeof e==`boolean`,Xh=e=>typeof e==`function`,Zh=(e,t,n)=>{let r=-1,i=Kh(t)?[t]:Ih(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=Nh(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(Wh.includes(t))return;e[t]=a,e=e[t]}},Qh=E.createContext(null);Qh.displayName=`HookFormControlContext`;var $h=()=>E.useContext(Qh),eg=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==Hh.all&&(t._proxyFormState[i]=!r||Hh.all),n&&(n[i]=!0),e[i]}});return i},tg=zh?E.useLayoutEffect:E.useEffect,ng=e=>{let t=e.constructor&&e.constructor.prototype;return Nh(t)&&t.hasOwnProperty(`isPrototypeOf`)},rg=e=>jh(e)||!Mh(e),ig=(e,t)=>t.length===0&&!Array.isArray(e)&&!ng(e);function ag(e,t,n=new WeakMap){if(e===t)return!0;if(rg(e)||rg(t))return Object.is(e,t);if(Ah(e)&&Ah(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ig(e,r)||ig(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(Ah(r)&&Ah(e)||(Nh(r)||Array.isArray(r))&&(Nh(e)||Array.isArray(e))?!ag(r,e,n):!Object.is(r,e))return!1}}return!0}function og(e){let t=E.useRef(!1),n=E.useRef(!1),r=E.useRef(void 0),i=E.useRef(0);return i.current++,!n.current&&e&&(n.current=!0,r.current=Bh(e())),{resyncIfNeeded:E.useCallback((e,a,o)=>{if(e&&(t.current||n.current&&i.current>1)){let e=a();ag(r.current,e)||o(e)}t.current=!0},[]),snapshot:E.useCallback((e,t)=>{e&&(r.current=Bh(t()))},[])}}function sg(e){let t=$h(),{control:n=t,disabled:r,name:i,exact:a}=e||{},o=()=>({...n._formState,defaultValues:n._defaultValues}),[s,c]=E.useState(o),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:u,snapshot:d}=og(o);return tg(()=>{u(!r,o,c);let e=n._subscribe({name:i,formState:l.current,exact:a,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{e(),d(!r,o)}},[n,i,r,a,u,d]),E.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>eg(s,n,l.current,!1),[s,n])}var cg=e=>typeof e==`string`,lg=(e,t,n,r,i)=>cg(e)?(r&&t.watch.add(e),Jh(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Jh(n,e,Jh(i,e)))):(r&&(t.watchAll=!0),n);function ug(e){let t=$h(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=E.useRef(i),l=E.useRef(s),u=E.useRef(n),d=E.useRef(r);l.current=s;let f=()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e},[p,m]=E.useState(f),h=E.useRef(p),g=E.useCallback(e=>{let t=lg(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),_=E.useCallback(e=>{if(!a){let t=lg(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);ag(e,h.current)||(m(e),h.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:v,snapshot:y}=og(f),b=E.useRef(_);b.current=_;let x=E.useRef(g);x.current=g,tg(()=>{u.current!==n||!ag(d.current,r)?(u.current=n,d.current=r,b.current()):v(!a,()=>x.current(),e=>{m(e),h.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{b.current(e.values)}});return()=>{e(),y(!a,()=>x.current())}},[n,o,r,a,v,y]),E.useEffect(()=>n._removeUnmounted());let S=u.current!==n,C=d.current;return E.useMemo(()=>{if(a)return!1;let e=!S&&!ag(C,r);return S||e},[a,S,r,C])?g():p}function dg(e){let t=$h(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=Rh(i._names.array,n),l=ug({control:i,name:n,defaultValue:E.useMemo(()=>{let e=Jh(i._formValues,n,Jh(i._defaultValues,n,o));return qh(e)?Lh(i,n):e},[i,n,o]),exact:s}),u=sg({control:i,name:n,exact:s}),d=E.useRef(e),f=E.useRef(null),p=E.useRef(i.register(n,{...e.rules,value:l,...Yh(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Jh(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Jh(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Jh(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Jh(u.validatingFields,n)},error:{enumerable:!0,get:()=>Jh(u.errors,n)}}),[u,n]),h=E.useCallback(e=>{let t=Ph(e);return Jh(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:Ph(e),name:n},type:Vh.CHANGE})},[n,i]),g=E.useCallback(()=>p.current.onBlur({target:{value:Jh(i._formValues,n),name:n},type:Vh.BLUR}),[n,i._formValues]),_=E.useCallback(e=>{e&&(f.current={focus:()=>Xh(e.focus)&&e.focus(),select:()=>Xh(e.select)&&e.select(),setCustomValidity:t=>Xh(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Xh(e.reportValidity)&&e.reportValidity()});let t=Jh(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current,t._f._c=!0)},[i._fields,n]),v=E.useMemo(()=>({name:n,value:l,...Yh(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return E.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...Yh(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Jh(i._fields,e);n&&n._f&&(n._f.mount=t,n._f._c=t)};if(t(n,!0),e){let e=Bh(Jh(a?i._defaultValues:i._options.values||i._defaultValues,n,Jh(i._options.defaultValues,n,d.current.defaultValue)));Zh(i._defaultValues,n,e),qh(Jh(i._formValues,n))&&Zh(i._formValues,n,e)}if(!c&&i.register(n,{...d.current.rules,...Yh(d.current.disabled)?{disabled:d.current.disabled}:{}}),f.current){let e=Jh(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),E.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),E.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var fg=e=>e.render(dg(e)),pg=E.createContext(null);pg.displayName=`HookFormContext`,Hh.onSubmit,Hh.onChange;function mg(e,t){let n=E.forwardRef((n,r)=>{let{name:i,control:a,rules:o,defaultValue:s,shouldUnregister:c,...l}=n;return E.createElement(fg,{name:i,control:a,rules:o,defaultValue:s,shouldUnregister:c,disabled:n._disabled,render:({field:n,fieldState:a})=>{let o=l._on,s={...l,ref:e=>{r&&(typeof r==`function`?r(e):r.current=e),e&&n.ref(e)},_name:i,_touched:a.isTouched,_disabled:n.disabled,_msg:a.error?{_type:`error`,_description:a.error.message||a.error.toString?.()||`Unknown error`}:void 0,_on:{...o||{},onInput:(e,t)=>{n.onChange(t),o?.onInput?.(e,t)},onChange:(e,t)=>{n.onChange(t),o?.onChange?.(e,t)},onBlur:e=>{n.onBlur(),o?.onBlur?.(e)}}};return t&&(s[t]=n.value),E.createElement(e,{...s})}})});return n.displayName=`withController(${e.displayName||e.name||`Component`})`,n}var hg=mg(L,`_value`),gg=mg(ke,`_value`),_g=mg(Ee,`_value`),vg=mg(Oe,`_value`),yg=mg(je,`_value`),bg=mg(I,`_value`),xg=mg(Te,`_value`),Sg=mg(De),Cg=mg(V,`_value`),wg=mg(ve,`_value`),Tg=mg(ze,`_value`),Eg=mg(Be,`_value`),Dg=mg(Ae,`_value`),Og=mg(F,`_checked`),kg={firstName:``,lastName:``,email:``,password:``,age:18,volume:50,birthday:``,favoriteColor:`#000000`,cv:null,bio:``,country:``,language:`de`,framework:``,gender:``,termsAccepted:!1},Ag=[{label:`English`,value:`en`},{label:`German`,value:`de`},{label:`French`,value:`fr`}],jg=[{label:`React`,value:`react`},{label:`Vue`,value:`vue`},{label:`Stencil`,value:`stencil`}],Mg=[{label:`Male`,value:`male`},{label:`Female`,value:`female`},{label:`Other`,value:`other`}],Ng=[`firstName`,`lastName`,`email`,`password`,`age`,`volume`,`birthday`,`favoriteColor`,`cv`,`bio`,`country`,`language`,`framework`,`gender`,`termsAccepted`],Pg=()=>{let{control:e,handleSubmit:t,setValue:n,getValues:r,trigger:i}=Nl({defaultValues:kg,mode:`onTouched`,shouldFocusError:!0}),a=()=>{Ng.forEach(e=>{n(e,r(e),{shouldTouch:!0,shouldValidate:!0})})},o=e=>{alert(JSON.stringify(e,null,2))},s=e=>{a(),i(void 0,{shouldFocus:!0}),console.warn(`Validation errors:`,e)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(Se,{className:`w-full max-w-xl`,_on:{onSubmit:e=>{t(o,s)(e)}},children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(hg,{name:`firstName`,control:e,_label:`First Name`,rules:{required:`First name is required`},_required:!0}),(0,W.jsx)(hg,{name:`lastName`,control:e,_label:`Last Name`,rules:{required:`Last name is required`},_required:!0}),(0,W.jsx)(_g,{name:`email`,control:e,_label:`Email`,rules:{required:`Email is required`},_required:!0}),(0,W.jsx)(gg,{name:`password`,control:e,_label:`Password`,rules:{required:`Password is required`},_required:!0}),(0,W.jsx)(vg,{name:`age`,control:e,_label:`Age`,rules:{required:`Age is required`,min:0},_required:!0}),(0,W.jsx)(yg,{name:`volume`,control:e,_label:`Volume (0–100)`,_min:0,_max:100}),(0,W.jsx)(bg,{name:`birthday`,control:e,_label:`Birthday`,rules:{required:`Birthday is required`}}),(0,W.jsx)(xg,{name:`favoriteColor`,control:e,_label:`Favorite Color`,id:`favoriteColor`}),(0,W.jsx)(Sg,{name:`cv`,control:e,_label:`Upload CV`,rules:{required:`Please upload your CV`},_required:!0}),(0,W.jsx)(Cg,{name:`bio`,control:e,_label:`Bio`,rules:{required:`Please provide a short bio`},_required:!0}),(0,W.jsx)(wg,{control:e,rules:{required:`Please select a country`},name:`country`,_label:`Country`,_suggestions:Lo,_required:!0}),(0,W.jsx)(Tg,{control:e,rules:{required:`Please select a language`},name:`language`,_label:`Preferred Language`,_options:Ag,_required:!0}),(0,W.jsx)(Eg,{rules:{required:`Please select a framework`},control:e,name:`framework`,_label:`Favorite Framework`,_options:jg,_required:!0}),(0,W.jsx)(Dg,{control:e,rules:{required:`Please select your gender`},name:`gender`,_label:`Gender`,_options:Mg,_required:!0}),(0,W.jsx)(Og,{name:`termsAccepted`,control:e,_label:`I accept the terms and conditions`,rules:{required:`You must accept the terms`},_required:!0}),(0,W.jsx)(j,{_label:`Submit`,_type:`submit`})]})})]})},Fg={first:``,second:``},Ig={scenarios:{"button-shortkey-table":ch,"change-tabindex":lh,"custom-tooltip-css-properties":uh,"date-in-form":dh,"disabled-interactive-scenario":ph,"focus-elements":gh,"label-lang":Eh,"input-group-with-error":xh,"inputs-get-value":Th,"react-hook-form-adapter":Pg,"react-hook-form-adapter-disabled":()=>{let{control:e,handleSubmit:t,watch:n}=Nl({defaultValues:Fg}),r=e=>{alert(JSON.stringify(e,null,2))};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows two fields of which just one can be filled. The other gets disabled.`})}),(0,W.jsx)(Se,{className:`w-full max-w-xl`,_on:{onSubmit:e=>{t(r)(e)}},children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(hg,{name:`first`,control:e,_label:`First`,_disabled:!!n(`second`)}),(0,W.jsx)(hg,{name:`second`,control:e,_label:`Second`,_disabled:!!n(`first`)}),(0,W.jsx)(j,{_label:`Submit`,_type:`submit`})]})})]})},"same-height-of-all-interactive-elements":()=>{let{dummyClickEventHandler:e}=Ia(),t={onClick:e};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsxs)(`div`,{className:`w-full flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,W.jsx)(z,{_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t}),(0,W.jsx)(z,{_hideLabel:!0,_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t}),(0,W.jsx)(ve,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Combobox`,_suggestions:[]}),(0,W.jsx)(Te,{_hideLabel:!0,_icons:{left:`kolicon-house`},_label:`Input-Color`}),(0,W.jsx)(De,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-File`}),(0,W.jsx)(I,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Date`}),(0,W.jsx)(Ee,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Email`}),(0,W.jsx)(Oe,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Number`}),(0,W.jsx)(ke,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Password`}),(0,W.jsx)(je,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Range`}),(0,W.jsx)(L,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Text`}),(0,W.jsx)(ze,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Select`,_options:[]}),(0,W.jsx)(Be,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Single Select`,_options:[]}),(0,W.jsx)(V,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Textarea`})]})]})},"same-height-of-all-form-elements-with-label":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`All form elements with labels, should have the same height and gaps to ensure a consistent and visually balanced user interface.`})}),(0,W.jsxs)(`div`,{className:`w-full flex flex-wrap gap-4`,children:[(0,W.jsx)(ve,{_icons:`kolicon-house`,_label:`Combobox`,_suggestions:[]}),(0,W.jsx)(Te,{_icons:{left:`kolicon-house`},_label:`Input-Color`}),(0,W.jsx)(De,{_icons:`kolicon-house`,_label:`Input-File`}),(0,W.jsx)(I,{_icons:`kolicon-house`,_label:`Input-Date`}),(0,W.jsx)(Ee,{_icons:`kolicon-house`,_label:`Input-Email`}),(0,W.jsx)(Oe,{_icons:`kolicon-house`,_label:`Input-Number`}),(0,W.jsx)(ke,{_icons:`kolicon-house`,_label:`Input-Password`}),(0,W.jsx)(je,{_icons:`kolicon-house`,_label:`Input-Range`}),(0,W.jsx)(L,{_icons:`kolicon-house`,_label:`Input-Text`}),(0,W.jsx)(ze,{_icons:`kolicon-house`,_label:`Select`,_options:[]}),(0,W.jsx)(Be,{_icons:`kolicon-house`,_label:`Single Select`,_options:[]}),(0,W.jsx)(V,{_icons:`kolicon-house`,_label:`Textarea`})]})]}),"static-form":()=>{let{searchParams:e}=new URL(location.href);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(q,{children:[(0,W.jsx)(`p`,{children:`This sample shows how KoliBri can be used in a static form context.`}),(0,W.jsxs)(`ol`,{children:[(0,W.jsxs)(`li`,{children:[`First you have to enable the `,(0,W.jsx)(`code`,{children:`experimental mode`}),`:`,` `,(0,W.jsx)(`code`,{className:`bg-gray-200`,children:`<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />`})]}),(0,W.jsxs)(`li`,{children:[`Currently you have to use a native `,(0,W.jsx)(`code`,{children:`form`}),` element:`,` `,(0,W.jsx)(`code`,{className:`bg-gray-200`,children:`<form method="GET">...</form>`})]}),(0,W.jsxs)(`li`,{children:[`It is important in static usage to give every input a `,(0,W.jsx)(`code`,{children:`name`}),` attribute:`,` `,(0,W.jsx)(`code`,{className:`bg-gray-200`,children:`<KolInputColor _name="color" _label="Color" />`})]}),(0,W.jsxs)(`li`,{children:[`Last of all one button should have the type `,(0,W.jsx)(`code`,{children:`submit`}),`:`,` `,(0,W.jsx)(`code`,{className:`bg-gray-200`,children:`<KolButton _label="Submit" _type="submit" _variant="primary" />`})]})]})]}),(0,W.jsxs)(`section`,{className:`w-full flex flex-col`,children:[e.size>0&&(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsx)(P,{_level:2,_label:`Submitted data`}),(0,W.jsx)(`pre`,{className:`text-base`,children:(0,W.jsx)(`code`,{children:JSON.stringify(Object.fromEntries(e.entries()),null,2)})})]}),(0,W.jsxs)(`form`,{className:`grid gap-4`,method:`get`,noValidate:!0,children:[(0,W.jsx)(F,{_name:`checkbox`,_label:`Checkbox`}),(0,W.jsx)(Te,{_name:`color`,_label:`Color`}),(0,W.jsx)(I,{_name:`date`,_label:`Date`}),(0,W.jsx)(Ee,{_name:`email`,_label:`Email`}),(0,W.jsx)(De,{_name:`file`,_label:`File`}),(0,W.jsx)(De,{_name:`file`,_label:`Files (multiple)`,_multiple:!0}),(0,W.jsx)(Oe,{_name:`number`,_label:`Number`}),(0,W.jsx)(ke,{_name:`password`,_label:`Password`}),(0,W.jsx)(Ae,{_name:`radio`,_label:`Radio`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}]}),(0,W.jsx)(je,{_name:`range`,_label:`Range`}),(0,W.jsx)(L,{_name:`text`,_label:`Text`}),(0,W.jsx)(ze,{_name:`select`,_label:`Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}]}),(0,W.jsx)(ze,{_name:`select`,_label:`Select (multiple)`,_multiple:!0,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],_rows:2}),(0,W.jsx)(Be,{_name:`singleSelect`,_label:`Single Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}]}),(0,W.jsx)(ve,{_name:`combobox`,_label:`Combobox`,_suggestions:Lo}),(0,W.jsx)(V,{_name:`textarea`,_label:`Textarea`,_rows:5}),(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,W.jsx)(j,{_label:`Submit`,_type:`submit`,_variant:`primary`}),(0,W.jsx)(j,{_label:`Reset`,_type:`reset`})]}),(0,W.jsx)(`input`,{type:`hidden`,value:crypto.randomUUID(),name:`random`})]})]})]})},"table-horizontal-scrollbar-advanced":bh,"toolbar-item-order":()=>{let[e,t]=(0,E.useState)(!1),[n,r]=(0,E.useState)(!1),i=()=>{t(!0),setTimeout(()=>{t(!1)},2e3)},a=()=>{r(!0),setTimeout(()=>{r(!1)},2e3)},o=(0,E.useMemo)(()=>Array.from({length:5},(t,n)=>({type:`button`,_label:`Button ${n+1}`,_on:{onClick:i},_icons:e?`fa-solid fa-spinner fa-spin`:void 0,_disabled:e})),[e]),s=(0,E.useMemo)(()=>Array.from({length:5},(e,t)=>({type:`button`,_label:`Button ${t+1}`,_on:{onClick:a},_disabled:n,_icons:n?`fa-solid fa-spinner fa-spin`:void 0})),[n]);return(0,W.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`},children:[(0,W.jsx)(P,{_label:`Disabled Toolbar Buttons Bug (solved)`}),(0,W.jsx)(P,{_label:`icon vor disabled`,_level:2}),(0,W.jsx)(qe,{_label:`KolToolbar A`,_items:o}),(0,W.jsx)(P,{_label:`disabled vor icon`,_level:2}),(0,W.jsxs)(`p`,{children:[`Klicke auf einen der `,s.length-1,` ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen.`]}),(0,W.jsx)(qe,{_label:`KolToolbar B`,_items:s})]})},"tooltip-positioning":()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.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.`})}),(0,W.jsx)(`div`,{style:{container:`test / size`,contain:`layout`},children:(0,W.jsx)(Ie,{_label:`Sample PopoverButton—Click for Popover`,_icons:`kolicon-alert-info`,_tooltipAlign:`right`,_hideLabel:!0,children:`This is an explanation shown on click.`})})]}),"accordion-components":oh,"z-index":()=>{let[e]=ei(),t=e.get(`show-dialog`),n=(0,E.useRef)(null);return(0,E.useEffect)(()=>{t===`true`&&n.current?.openModal()},[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`This sample shows the combination of a few components overlaying content. Dialog, Popover, Tooltip`})}),(0,W.jsx)(`div`,{className:`grid gap-8`,children:(0,W.jsxs)(`div`,{children:[(0,W.jsx)(j,{_label:`Open card dialog`,_on:{onClick:()=>n.current?.openModal()}}),(0,W.jsxs)(be,{ref:n,_label:`Card dialog`,_variant:`card`,_width:`30%`,children:[(0,W.jsx)(Ie,{_label:`Help`,_icons:`kolicon-alert-info`,_popoverAlign:`right`,_tooltipAlign:`bottom`,_hideLabel:!0,children:(0,W.jsxs)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:[(0,W.jsxs)(`p`,{children:[(0,W.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.`]}),(0,W.jsx)(j,{_hideLabel:!0,_icons:`kolicon-check`,_label:`OK`,_variant:`primary`})]})}),(0,W.jsx)(ve,{_label:`With string array in html`,_suggestions:`['Herr','Frau','Firma']`,_value:`Herr`,_hideLabel:!0}),(0,W.jsx)(Oe,{_label:`Amount`})]})]})})]})},"performance-test":Dh,skeleton:()=>{let e=(0,E.useRef)(null),t=(0,E.useRef)(null),n=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`millisecond`,maximumFractionDigits:1}),r=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),[i,a]=(0,E.useState)(3),[o,s]=(0,E.useState)([]),[c,l]=(0,E.useState)(``),[u,d]=(0,E.useState)(0),[f,p]=(0,E.useState)(20),[m,h]=(0,E.useState)(0),[g,_]=(0,E.useState)(null),[v,y]=(0,E.useState)(!1),b=(0,E.useRef)(0),x=(0,E.useRef)(20),S=(0,E.useRef)(0),C=e=>{let t=new Date,n=r.format(t),i=u+1;a(e.detail),l(n),d(i),s(t=>[{timestamp:n,count:e.detail,id:i},...t.slice(0,4)])},w=(0,E.useCallback)(()=>{if(S.current+=1,S.current>=x.current){let e=performance.now()-b.current;_(e),y(!1)}},[]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q,{children:(0,W.jsx)(`p`,{children:`KolSkeleton demonstriert Event-Emitter mit automatischem Intervall. Die Komponente emittiert alle 2 Sekunden ein "loaded" Event mit dem aktuellen Count-Wert. Über die Buttons kann die Komponente getoggled und fokussiert werden. Der interne ClickButton erhöht bei Klick den Counter.`})}),(0,W.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4 mb-4 items-center`,children:[(0,W.jsxs)(`div`,{className:`grid sm:grid-cols-2 gap-4`,children:[(0,W.jsx)(j,{_label:`Toggle Sichtbarkeit`,_on:{onClick:()=>e.current?.toggle()},_variant:`primary`}),(0,W.jsx)(j,{_label:`Fokus auf Button`,_on:{onClick:()=>e.current?.focus()},_variant:`secondary`})]}),(0,W.jsxs)(`div`,{className:`grid sm:grid-cols-2 gap-4 items-center`,children:[(0,W.jsx)(je,{ref:t,_label:`Anzahl der Skeletons`,_hideLabel:!0,_min:1,_max:1e4,_step:25,_value:f,_on:{onChange:(e,t)=>{let n=Number(t);p(n),S.current=0,x.current=n,b.current=performance.now(),_(null),y(!0),h(e=>e+1)},onBlur:()=>{t.current&&(t.current._value=f)}}}),(0,W.jsxs)(`span`,{className:`text-sm text-gray-600 whitespace-nowrap`,children:[f,` Skeletons`]})]})]}),(0,W.jsxs)(`div`,{className:`mb-4 px-3 py-2 border border-gray-300 rounded bg-gray-50 flex items-center gap-4 text-sm`,children:[(0,W.jsx)(`span`,{className:`font-semibold`,children:`Benchmark:`}),(0,W.jsx)(`span`,{className:v?`text-orange-600 font-bold`:g===null?`text-gray-400`:`text-green-600`,children:v?`Rendering…`:g===null?`Bereit`:`Fertig`}),(0,W.jsx)(`span`,{className:`font-bold text-blue-600`,"aria-live":`polite`,children:g===null?`—`:n.format(g)})]}),(0,W.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:Array.from({length:f},(t,n)=>(0,W.jsx)(Ve,{_name:`Example ${n}`,onLoaded:n===0?C:void 0,onRendered:w,ref:n===0?e:void 0},`skeleton-${m}-${n}`))}),(0,W.jsxs)(`div`,{className:`mt-6 p-4 border border-gray-300 rounded-lg bg-gray-50`,children:[(0,W.jsx)(`h3`,{className:`text-lg font-semibold mb-3`,children:`Event Monitor`}),(0,W.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`p`,{className:`font-medium`,children:`Aktueller Count-Wert:`}),(0,W.jsx)(`p`,{className:`text-2xl font-bold text-blue-600`,"aria-live":`polite`,children:i})]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`p`,{className:`font-medium`,children:`Letztes Event:`}),(0,W.jsx)(`p`,{className:`text-lg`,"aria-live":`polite`,children:c||`Noch kein Event empfangen`})]})]}),(0,W.jsxs)(`div`,{className:`mt-4`,children:[(0,W.jsxs)(`p`,{className:`font-medium mb-2`,children:[`Events empfangen: `,(0,W.jsx)(`span`,{className:`font-bold`,children:u})]}),o.length>0&&(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`p`,{className:`font-medium mb-2`,children:`Event-Historie (letzte 5):`}),(0,W.jsx)(`ul`,{className:`text-sm space-y-1 max-h-32 overflow-y-auto`,children:o.map(e=>(0,W.jsxs)(`li`,{className:`flex justify-between items-center p-2 bg-white rounded border`,children:[(0,W.jsxs)(`span`,{children:[`#`,e.id,`: Count = `,e.count]}),(0,W.jsx)(`span`,{className:`text-gray-500`,children:e.timestamp})]},e.id))})]})]}),(0,W.jsx)(`div`,{className:`mt-4 p-3 bg-blue-50 rounded`,children:(0,W.jsxs)(`p`,{className:`text-sm text-blue-800`,children:[`💡 `,(0,W.jsx)(`strong`,{children:`Tipp:`}),` Die Komponente emittiert automatisch alle 2 Sekunden ein Event. Klicke auf den "Click Button" in der Komponente, um den Count-Wert zu erhöhen.`]})})]})]})}}},Lg={...as,...Ta,...Ea,...ka,...Aa,...ja,...Pa,...La,...Ao,...jo,...Go,...Ko,...Jo,...Zo,...Qo,...os,...ss,...cs,...hs,...vs,...Ns,...Is,...Bs,...Du,...Au,...Bu,...Uu,...vd,...$,...yd,...bd,...xd,...Sd,...Dd,...Od,...Ad,...jd,...Md,...zd,...Xd,...Zd,...Yd,...Qd,...Pm,...Wm,...Ym,...eh,...th,...rh,...ih,...Ig};J(localStorage);var Rg=({customThemes:e})=>{let t=Ln(),[n,r]=ei(),i=n.has(`hideMenus`),a=(0,E.useMemo)(()=>{let t=[Va,...e&&e.length>0?e:Ha];return oo(t),t},[e]),o=n.get(`theme`)??lo(),[s,c]=(0,E.useState)(()=>$a.isInitialized(a));(0,E.useEffect)(()=>{let e=!0,t=$a.isInitialized(a),n=t=>{e&&c(t)};if(t)setTimeout(()=>n(!0),0);else return n(!1),$a.initialize(a).then(()=>{n(!0)}),()=>{e=!1}},[a]);let l=(e,t=`/`)=>{let n=[];for(let r in e)if(e[r]){let i=e[r],a=`${t}${r}`;typeof i==`function`?n.push(a):typeof i==`object`&&i&&(n=n.concat(l(i,`${a}/`)))}return n},u=e=>{let t=[];for(let n in e)if(e[n]){let r=e[n],i=`/${n}`;if(typeof r==`function`)t.push((0,W.jsx)(ur,{path:i,element:(0,W.jsx)(r,{})},i)),t.push((0,W.jsx)(ur,{path:`${i}/all`,element:(0,W.jsx)(`div`,{className:`d-grid gap-4`,children:a.map(e=>(0,W.jsxs)(`div`,{className:`d-grid gap-2`,children:[(0,W.jsx)(`div`,{className:`mt-4`,children:(0,W.jsx)(`strong`,{children:e.name})}),(0,W.jsx)(`div`,{className:`my-2`,children:(0,W.jsx)(r,{})}),(0,W.jsx)(`hr`,{"aria-hidden":`true`})]},e.key))})},`${i}/all`));else if(typeof r==`object`&&r){let e=Object.keys(r);e.length>0&&t.push((0,W.jsx)(ur,{path:`${i}/*`,element:(0,W.jsxs)(fr,{children:[(0,W.jsx)(ur,{path:`/`,element:(0,W.jsx)(lr,{to:e[0]})}),u(r)]})},i))}}return t},d=(0,E.useMemo)(()=>l(Lg),[]),f=(0,E.useMemo)(()=>u(Lg),[]),p=new Map;d.forEach(e=>{let t=e.split(`/`);p.has(t[1])||p.set(t[1],{label:t[1],value:e})}),co(o),aa(),va();let m=Ua.includes(o),[h,g]=ia(m);return(0,E.useEffect)(()=>{document.title=`KoliBri-Handout - ${uo(lo())} | v${Ni.version}`,document.body.setAttribute(`class`,o),document.body.dataset.theme=o},[o]),s?(0,W.jsx)(ya.Provider,{value:i,children:(0,W.jsxs)(`div`,{className:i?``:`app-container`,"data-theme":o,children:[!i&&(0,W.jsx)(Yi,{version:Ni.version,themes:a,theme:o,sample:t.pathname,routes:Lg,routeList:d,buildDate:`2026-11-12T15:27:02.074Z`,commitHash:`c86c1bd`,colorScheme:h,supportsDark:m,onThemeChange:e=>{r(t=>(t.set(`theme`,e),t)),window.location.reload()},onColorSchemeChange:g}),(0,W.jsx)(`main`,{className:`flex flex-col items-stretch p-4`,id:`route-container`,children:(0,W.jsxs)(fr,{children:[f,(0,W.jsx)(ur,{path:`*`,element:(0,W.jsx)(lr,{to:d[0],replace:!0})}),(0,W.jsx)(ur,{path:`back-page`,element:(0,W.jsx)(Fi,{})})]})})]})}):(0,W.jsx)(ya.Provider,{value:i,children:(0,W.jsx)(`main`,{className:`flex flex-col items-stretch p-4`,id:`route-container`,children:(0,W.jsx)(`p`,{children:`Loading data`})})})},zg=new URL(`https://x`+location.hash.substring(1)).searchParams.has(`enableI18nOverwriting`),Bg=new URL(`https://x`+location.hash.substring(1)).searchParams.has(`enableThemePatching`),Vg=new URL(`https://x`+location.hash.substring(1)).searchParams.has(`enableTagNameTransformer`),Hg=e=>`${e}-sample`;Vg&&ce(Hg);var Ug=async()=>{throw Error(`Environment variable THEME_MODULE not specified. The visual-tests app must be started via "kolibri-visual-test".`)};(async()=>{try{await pi(await Ug(),()=>{Mi(window,{transformTagName:Vg?Hg:void 0})},{environment:`production`,reflectInputValues:!0,theme:void 0,translation:{name:`en`},translations:zg?new Set([e=>e(`en`,{"kol-error":`Tiny error!`}),e=>e(`de`,{"kol-error":`Kleiner Fehler!`})]):void 0,transformTagName:Vg?Hg:void 0}),Bg&&l.patchTheme(`default`,{"KOL-BUTTON":`
|
|
88
|
+
button {
|
|
89
|
+
border: 1px solid red;
|
|
90
|
+
}`,"KOL-SPIN":`
|
|
91
|
+
.bg-spin-2 {
|
|
92
|
+
background-color: red;
|
|
93
|
+
}
|
|
94
|
+
.bg-spin-3 {
|
|
95
|
+
background-color: gold;
|
|
96
|
+
}`},{append:!0})}catch(e){console.warn(`Theme registration failed:`,e)}let e=r(),t=e?[{key:e,name:e}]:void 0;fo(t);let n=document.querySelector(`div#app`);n instanceof HTMLDivElement&&(0,oi.createRoot)(n).render((0,W.jsx)(E.StrictMode,{children:(0,W.jsx)(Yr,{children:(0,W.jsx)(Rg,{customThemes:t})})}))})();export{hi as a,Si as i,Di as n,ui as o,Ei as r,Ci as t};
|
|
97
|
+
//# sourceMappingURL=index-CcQDmtxr.js.map
|