smoothly 1.1.1-alpha.76 → 1.1.1-alpha.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-app_94.cjs.entry.js → smoothly-app_93.cjs.entry.js} +96 -94
- package/dist/cjs/smoothly-app_93.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-color.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/components/next/demo/group/index.js +1 -1
- package/dist/collection/components/next/demo/group/index.js.map +1 -1
- package/dist/collection/components/next/demo/nested/index.js +1 -1
- package/dist/collection/components/next/demo/nested/index.js.map +1 -1
- package/dist/collection/components/next/demo/nested/inner/index.js +1 -1
- package/dist/collection/components/next/demo/simple/simple.js +1 -1
- package/dist/collection/components/next/demo/simple/simple.js.map +1 -1
- package/dist/collection/components/next/table/body/index.js +1 -1
- package/dist/collection/components/next/table/cell/index.js +1 -1
- package/dist/collection/components/next/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/next/table/expandable/row/index.js +1 -1
- package/dist/collection/components/next/table/foot/index.js +1 -1
- package/dist/collection/components/next/table/group/index.js +1 -1
- package/dist/collection/components/next/table/head/index.js +1 -1
- package/dist/collection/components/next/table/index.js +1 -1
- package/dist/collection/components/next/table/row/index.js +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/index.js +2 -2
- package/dist/collection/components/picker/demo/index.js +2 -2
- package/dist/collection/components/picker/index.js +1 -1
- package/dist/collection/components/picker/option/index.js +1 -1
- package/dist/collection/components/picker/slotted-elements/index.js +1 -1
- package/dist/collection/components/spinner/index.js +2 -2
- package/dist/collection/components/submit/index.js +1 -1
- package/dist/collection/components/summary/index.js +1 -1
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/testing/index.js +1 -1
- package/dist/collection/components/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/table/expandable/row/index.js +1 -1
- package/dist/collection/components/table/footer/index.js +1 -1
- package/dist/collection/components/table/header/index.js +1 -1
- package/dist/collection/components/table/index.js +1 -1
- package/dist/collection/components/table/row/index.js +1 -1
- package/dist/collection/components/tabs/demo/index.js +1 -1
- package/dist/collection/components/tabs/index.js +1 -1
- package/dist/collection/components/tabs/tab/index.js +1 -1
- package/dist/collection/components/theme/color/index.js +1 -1
- package/dist/collection/components/theme/demo/index.js +1 -1
- package/dist/collection/components/theme/guide/index.js +8 -8
- package/dist/collection/components/theme/picker/index.js +2 -2
- package/dist/collection/components/toggle/index.js +1 -1
- package/dist/collection/components/toggle-switch/index.js +1 -1
- package/dist/collection/components/trigger/index.js +1 -1
- package/dist/collection/components/trigger/sink/index.js +1 -1
- package/dist/collection/components/trigger/source/index.js +1 -1
- package/dist/components/{p-47cae6aa.js → p-00176e8c.js} +2 -2
- package/dist/components/{p-47cae6aa.js.map → p-00176e8c.js.map} +1 -1
- package/dist/components/{p-f0d21c65.js → p-023a2e64.js} +3 -3
- package/dist/components/{p-f0d21c65.js.map → p-023a2e64.js.map} +1 -1
- package/dist/components/{p-13e45b6d.js → p-0c0fe9cf.js} +3 -3
- package/dist/components/{p-13e45b6d.js.map → p-0c0fe9cf.js.map} +1 -1
- package/dist/components/{p-e163931c.js → p-0e976832.js} +2 -2
- package/dist/components/{p-e163931c.js.map → p-0e976832.js.map} +1 -1
- package/dist/components/{p-0b270579.js → p-10d95683.js} +12 -18
- package/dist/components/p-10d95683.js.map +1 -0
- package/dist/components/{p-70d8f891.js → p-11ea4eca.js} +2 -2
- package/dist/components/{p-70d8f891.js.map → p-11ea4eca.js.map} +1 -1
- package/dist/components/{p-8199860b.js → p-157cc4ae.js} +19 -19
- package/dist/components/{p-8199860b.js.map → p-157cc4ae.js.map} +1 -1
- package/dist/components/{p-9c7ed9ba.js → p-22a42ff7.js} +2 -2
- package/dist/components/{p-9c7ed9ba.js.map → p-22a42ff7.js.map} +1 -1
- package/dist/components/{p-068205e4.js → p-2838a4dc.js} +3 -3
- package/dist/components/{p-068205e4.js.map → p-2838a4dc.js.map} +1 -1
- package/dist/components/{p-83cebccf.js → p-2ada1fab.js} +2 -2
- package/dist/components/{p-83cebccf.js.map → p-2ada1fab.js.map} +1 -1
- package/dist/components/{p-6011bd18.js → p-2cc69d85.js} +2 -2
- package/dist/components/{p-6011bd18.js.map → p-2cc69d85.js.map} +1 -1
- package/dist/components/{p-f645719e.js → p-2d689afd.js} +3 -3
- package/dist/components/{p-f645719e.js.map → p-2d689afd.js.map} +1 -1
- package/dist/components/{p-f8d11f29.js → p-2e76caa5.js} +2 -2
- package/dist/components/{p-f8d11f29.js.map → p-2e76caa5.js.map} +1 -1
- package/dist/components/{p-8e26edfc.js → p-2f95c7e7.js} +2 -2
- package/dist/components/{p-8e26edfc.js.map → p-2f95c7e7.js.map} +1 -1
- package/dist/components/{p-abef7b76.js → p-30a4732f.js} +3 -3
- package/dist/components/{p-abef7b76.js.map → p-30a4732f.js.map} +1 -1
- package/dist/components/{p-cff159f1.js → p-34ca9a04.js} +3 -3
- package/dist/components/{p-cff159f1.js.map → p-34ca9a04.js.map} +1 -1
- package/dist/components/{p-0f663ebd.js → p-3d0b925a.js} +4 -4
- package/dist/components/{p-0f663ebd.js.map → p-3d0b925a.js.map} +1 -1
- package/dist/components/{p-4640c0e8.js → p-4217fb08.js} +2 -2
- package/dist/components/{p-4640c0e8.js.map → p-4217fb08.js.map} +1 -1
- package/dist/components/{p-4d9d644a.js → p-44f13c6b.js} +2 -2
- package/dist/components/{p-4d9d644a.js.map → p-44f13c6b.js.map} +1 -1
- package/dist/components/{p-62c0a96a.js → p-464313d3.js} +2 -2
- package/dist/components/{p-62c0a96a.js.map → p-464313d3.js.map} +1 -1
- package/dist/components/{p-fd207cba.js → p-46a2eedf.js} +10 -10
- package/dist/components/{p-fd207cba.js.map → p-46a2eedf.js.map} +1 -1
- package/dist/components/{p-0b75b823.js → p-47f4ee01.js} +2 -2
- package/dist/components/{p-0b75b823.js.map → p-47f4ee01.js.map} +1 -1
- package/dist/components/{p-252b1b0a.js → p-47f65ca7.js} +2 -2
- package/dist/components/{p-252b1b0a.js.map → p-47f65ca7.js.map} +1 -1
- package/dist/components/{p-8b2c9568.js → p-48b13a1a.js} +4 -4
- package/dist/components/{p-8b2c9568.js.map → p-48b13a1a.js.map} +1 -1
- package/dist/components/{p-7686fcdf.js → p-4d8b8169.js} +2 -2
- package/dist/components/{p-7686fcdf.js.map → p-4d8b8169.js.map} +1 -1
- package/dist/components/{p-5fb67d85.js → p-554e8b0c.js} +4 -4
- package/dist/components/{p-5fb67d85.js.map → p-554e8b0c.js.map} +1 -1
- package/dist/components/{p-a0855ad8.js → p-58141d72.js} +5 -5
- package/dist/components/{p-a0855ad8.js.map → p-58141d72.js.map} +1 -1
- package/dist/components/{p-3dc0059c.js → p-61695ae0.js} +2 -2
- package/dist/components/{p-3dc0059c.js.map → p-61695ae0.js.map} +1 -1
- package/dist/components/{p-c9cafe5f.js → p-62811e6b.js} +2 -2
- package/dist/components/{p-c9cafe5f.js.map → p-62811e6b.js.map} +1 -1
- package/dist/components/p-6b47d2a7.js +99 -0
- package/dist/components/p-6b47d2a7.js.map +1 -0
- package/dist/components/{p-033af975.js → p-6e7002bd.js} +2 -2
- package/dist/components/{p-033af975.js.map → p-6e7002bd.js.map} +1 -1
- package/dist/components/{p-7b89bee3.js → p-757cbe93.js} +3 -3
- package/dist/components/{p-7b89bee3.js.map → p-757cbe93.js.map} +1 -1
- package/dist/components/{p-62ab7c33.js → p-76c26961.js} +7 -7
- package/dist/components/{p-62ab7c33.js.map → p-76c26961.js.map} +1 -1
- package/dist/components/{p-0d82c3c7.js → p-7a26283c.js} +3 -3
- package/dist/components/{p-0d82c3c7.js.map → p-7a26283c.js.map} +1 -1
- package/dist/components/p-7c07eb47.js +183 -0
- package/dist/components/{p-c81361b3.js.map → p-7c07eb47.js.map} +1 -1
- package/dist/components/{p-175af0cd.js → p-7eaba509.js} +2 -2
- package/dist/components/{p-175af0cd.js.map → p-7eaba509.js.map} +1 -1
- package/dist/components/{p-0211b746.js → p-7ebca2c3.js} +2 -2
- package/dist/components/{p-0211b746.js.map → p-7ebca2c3.js.map} +1 -1
- package/dist/components/{p-36702bed.js → p-802e206b.js} +2 -2
- package/dist/components/{p-36702bed.js.map → p-802e206b.js.map} +1 -1
- package/dist/components/{p-5a123527.js → p-825d36f6.js} +2 -2
- package/dist/components/{p-5a123527.js.map → p-825d36f6.js.map} +1 -1
- package/dist/components/{p-445ed4b4.js → p-848a5486.js} +5 -5
- package/dist/components/{p-445ed4b4.js.map → p-848a5486.js.map} +1 -1
- package/dist/components/{p-9986ee7a.js → p-94752df4.js} +2 -2
- package/dist/components/{p-9986ee7a.js.map → p-94752df4.js.map} +1 -1
- package/dist/components/{p-1a1398e8.js → p-94861ebf.js} +24 -30
- package/dist/components/p-94861ebf.js.map +1 -0
- package/dist/components/{p-9efcb1a8.js → p-9bcc30c3.js} +14 -14
- package/dist/components/{p-9efcb1a8.js.map → p-9bcc30c3.js.map} +1 -1
- package/dist/components/{p-cb9fa266.js → p-9e8065f2.js} +2 -2
- package/dist/components/{p-cb9fa266.js.map → p-9e8065f2.js.map} +1 -1
- package/dist/components/{p-dd230fbb.js → p-a378ddd5.js} +4 -4
- package/dist/components/{p-dd230fbb.js.map → p-a378ddd5.js.map} +1 -1
- package/dist/components/{p-d92ffdf8.js → p-a7946789.js} +14 -14
- package/dist/components/{p-d92ffdf8.js.map → p-a7946789.js.map} +1 -1
- package/dist/components/{p-4b4bd1b5.js → p-a7ab0ee3.js} +2 -2
- package/dist/components/{p-4b4bd1b5.js.map → p-a7ab0ee3.js.map} +1 -1
- package/dist/components/{p-5a66e94a.js → p-ab80dba5.js} +6 -6
- package/dist/components/{p-5a66e94a.js.map → p-ab80dba5.js.map} +1 -1
- package/dist/components/{p-4af8edea.js → p-afc6043a.js} +2 -2
- package/dist/components/{p-4af8edea.js.map → p-afc6043a.js.map} +1 -1
- package/dist/components/{p-dcafdc77.js → p-b1ee8a80.js} +2 -2
- package/dist/components/{p-dcafdc77.js.map → p-b1ee8a80.js.map} +1 -1
- package/dist/components/{p-d39e86fa.js → p-b9c48f3a.js} +12 -18
- package/dist/components/p-b9c48f3a.js.map +1 -0
- package/dist/components/{p-8470397f.js → p-b9e497af.js} +2 -2
- package/dist/components/{p-8470397f.js.map → p-b9e497af.js.map} +1 -1
- package/dist/components/{p-5f532bfe.js → p-bb0b65dc.js} +2 -2
- package/dist/components/{p-5f532bfe.js.map → p-bb0b65dc.js.map} +1 -1
- package/dist/components/{p-b87c3563.js → p-be3768ec.js} +2 -2
- package/dist/components/{p-b87c3563.js.map → p-be3768ec.js.map} +1 -1
- package/dist/components/p-c5807da7.js +164 -0
- package/dist/components/{p-fe5a2027.js.map → p-c5807da7.js.map} +1 -1
- package/dist/components/{p-ed6f27c4.js → p-c7f1ecfe.js} +2 -2
- package/dist/components/{p-ed6f27c4.js.map → p-c7f1ecfe.js.map} +1 -1
- package/dist/components/{p-d44f2d5d.js → p-db59b108.js} +2 -2
- package/dist/components/{p-d44f2d5d.js.map → p-db59b108.js.map} +1 -1
- package/dist/components/{p-df47e031.js → p-df720506.js} +23 -6
- package/dist/components/p-df720506.js.map +1 -0
- package/dist/components/{p-56ed03a1.js → p-e2c70e8e.js} +16 -16
- package/dist/components/{p-56ed03a1.js.map → p-e2c70e8e.js.map} +1 -1
- package/dist/components/{p-ffe70318.js → p-e412378e.js} +2 -2
- package/dist/components/{p-ffe70318.js.map → p-e412378e.js.map} +1 -1
- package/dist/components/{p-99a99b05.js → p-e605534a.js} +2 -2
- package/dist/components/{p-99a99b05.js.map → p-e605534a.js.map} +1 -1
- package/dist/components/{p-c8381cd9.js → p-e788bdb9.js} +2 -2
- package/dist/components/{p-c8381cd9.js.map → p-e788bdb9.js.map} +1 -1
- package/dist/components/{p-dfdec79b.js → p-e7d4dc6e.js} +2 -2
- package/dist/components/{p-dfdec79b.js.map → p-e7d4dc6e.js.map} +1 -1
- package/dist/components/{p-4fadb153.js → p-f09f7aac.js} +8 -8
- package/dist/components/{p-4fadb153.js.map → p-f09f7aac.js.map} +1 -1
- package/dist/components/{p-fea6ef5e.js → p-f3bc2e14.js} +2 -2
- package/dist/components/{p-fea6ef5e.js.map → p-f3bc2e14.js.map} +1 -1
- package/dist/components/{p-96026be7.js → p-faf7e0b7.js} +8 -8
- package/dist/components/{p-96026be7.js.map → p-faf7e0b7.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +79 -85
- package/dist/components/smoothly-app-demo.js.map +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-color.js +32 -1
- package/dist/components/smoothly-color.js.map +1 -1
- package/dist/components/smoothly-dialog-demo.js +1 -1
- package/dist/components/smoothly-dialog.js +1 -1
- package/dist/components/smoothly-display-demo.js +1 -1
- package/dist/components/smoothly-display.js +1 -1
- package/dist/components/smoothly-filter-field.js +1 -1
- package/dist/components/smoothly-filter-input.js +1 -1
- package/dist/components/smoothly-filter.js +1 -1
- package/dist/components/smoothly-form.js +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-color.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-controlled-form.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-next-demo-colspan.js +1 -1
- package/dist/components/smoothly-next-demo-group.js +1 -1
- package/dist/components/smoothly-next-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-next-demo-nested.js +1 -1
- package/dist/components/smoothly-next-demo-simple.js +1 -1
- package/dist/components/smoothly-next-demo.js +1 -1
- package/dist/components/smoothly-next-table-body.js +1 -1
- package/dist/components/smoothly-next-table-cell.js +1 -1
- package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-next-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-next-table-expandable-row.js +1 -1
- package/dist/components/smoothly-next-table-foot.js +1 -1
- package/dist/components/smoothly-next-table-head.js +1 -1
- package/dist/components/smoothly-next-table-row-group.js +1 -1
- package/dist/components/smoothly-next-table-row.js +1 -1
- package/dist/components/smoothly-next-table.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.js +1 -1
- package/dist/components/smoothly-picker-demo.js +1 -1
- package/dist/components/smoothly-picker-menu.js +1 -1
- package/dist/components/smoothly-picker-option.js +1 -1
- package/dist/components/smoothly-picker.js +1 -1
- package/dist/components/smoothly-slotted-elements.js +1 -1
- package/dist/components/smoothly-spinner.js +1 -1
- package/dist/components/smoothly-submit.js +1 -1
- package/dist/components/smoothly-summary.js +1 -1
- package/dist/components/smoothly-tab.js +1 -1
- package/dist/components/smoothly-table-cell.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-table-expandable-row.js +1 -1
- package/dist/components/smoothly-table-footer.js +1 -1
- package/dist/components/smoothly-table-header.js +1 -1
- package/dist/components/smoothly-table-row.js +1 -1
- package/dist/components/smoothly-table-testing.js +1 -1
- package/dist/components/smoothly-table.js +1 -1
- package/dist/components/smoothly-tabs-demo.js +1 -1
- package/dist/components/smoothly-tabs.js +1 -1
- package/dist/components/smoothly-theme-color.js +1 -1
- package/dist/components/smoothly-theme-colors.js +1 -1
- package/dist/components/smoothly-theme-demo.js +1 -1
- package/dist/components/smoothly-theme-guide.js +1 -1
- package/dist/components/smoothly-theme-picker.js +1 -1
- package/dist/components/smoothly-toggle-switch.js +1 -1
- package/dist/components/smoothly-toggle.js +1 -1
- package/dist/components/smoothly-trigger-sink.js +1 -1
- package/dist/components/smoothly-trigger-source.js +1 -1
- package/dist/components/smoothly-trigger.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-app_94.entry.js → smoothly-app_93.entry.js} +97 -94
- package/dist/esm/smoothly-app_93.entry.js.map +1 -0
- package/dist/{components/p-58680a5b.js → esm/smoothly-color.entry.js} +8 -25
- package/dist/esm/smoothly-color.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/p-0c8a6d1c.entry.js +2 -0
- package/dist/smoothly/p-cc8baf14.entry.js +2 -0
- package/dist/smoothly/p-cc8baf14.entry.js.map +1 -0
- package/dist/smoothly/{p-4314f54d.entry.js → p-d92924af.entry.js} +2 -2
- package/dist/smoothly/p-ee564977.entry.js +2 -0
- package/dist/smoothly/p-ee564977.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/smoothly-app_94.cjs.entry.js.map +0 -1
- package/dist/components/p-0b270579.js.map +0 -1
- package/dist/components/p-1a1398e8.js.map +0 -1
- package/dist/components/p-4855229f.js +0 -105
- package/dist/components/p-4855229f.js.map +0 -1
- package/dist/components/p-58680a5b.js.map +0 -1
- package/dist/components/p-c81361b3.js +0 -183
- package/dist/components/p-d39e86fa.js.map +0 -1
- package/dist/components/p-df47e031.js.map +0 -1
- package/dist/components/p-fe5a2027.js +0 -164
- package/dist/esm/smoothly-app_94.entry.js.map +0 -1
- package/dist/smoothly/p-1cdcd03f.entry.js +0 -2
- package/dist/smoothly/p-b0967cc3.entry.js +0 -2
- package/dist/smoothly/p-b0967cc3.entry.js.map +0 -1
- /package/dist/smoothly/{p-1cdcd03f.entry.js.map → p-0c8a6d1c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-4314f54d.entry.js.map → p-d92924af.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as t,c as o,H as s,g as a,F as i}from"./p-f27dd6d5.js";import{a as n,T as l,C as r,o as c,i as d,s as h,r as b,b as f,u as y,D as m,M as u,I as p}from"./p-79b7e071.js";import{r as g,N as k}from"./p-c3f85494.js";import{D as v,a as x,T as w,C as S,L as C,b as z}from"./p-5ab5a176.js";import{g as T}from"./p-7e394c6a.js";class j extends n{constructor(){super(...arguments);this.is=e=>e!=undefined}}function _(e){return new j(e??"any")}const L='smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:5;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;gap:1rem;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;gap:0.5em;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}@media screen and (max-width: 900px){smoothly-app>smoothly-notifier>header>nav{width:50dvw;max-width:15rem;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;right:0;height:auto}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app>smoothly-notifier>header>nav>ul li{margin-right:0;margin-bottom:1em;width:100%}smoothly-app>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center;gap:1em}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app>smoothly-notifier>header>nav:not(.menu-open){display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const A=L;const I=class{constructor(t){e(this,t);this.rooms={};this.label="App";this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var e;if(!this.selected&&!window.location.search)(e=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((e=>!(e===null||e===void 0?void 0:e.element.disabled))))===null||e===void 0?void 0:e.element.setSelected(true)}async selectRoom(e){var t;(t=this.rooms[e])===null||t===void 0?void 0:t.element.setSelected(true)}async selectedChanged(){var e;Object.values(this.rooms).forEach((e=>{var t;return(e===null||e===void 0?void 0:e.element.path)!=((t=this.selected)===null||t===void 0?void 0:t.element.path)&&(e===null||e===void 0?void 0:e.element.setSelected(false))}));const t=await((e=this.selected)===null||e===void 0?void 0:e.element.getContent());if(this.mainElement&&t){this.mainElement.innerHTML="";this.mainElement.appendChild(t)}}burgerVisibilityHandler(e){this.burgerVisibility=e.detail}burgerStatusHandler(e){e.stopPropagation();this.menuOpen=e.detail}async locationChangeHandler(e){var t;(t=this.rooms[e.state.smoothlyPath])===null||t===void 0?void 0:t.element.setSelected(true,{history:true})}roomSelectedHandler(e){this.selected={element:e.target};if(this.burgerVisibility)this.menuOpen=false;if(!e.detail.history){const e=this.selected.element.path.toString();const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;window.history.pushState({smoothlyPath:e},"",t.href)}}roomLoadedHandler(e){const t=this.rooms[e.target.path.toString()]={element:e.target};if(t.element.selected){this.selected=t;window.history.replaceState({smoothlyPath:t.element.path},"",window.location.href)}}clickHandler(e){if(this.burgerVisibility)if(e.composedPath().some((e=>e==this.burgerElement||e==this.navElement)));else this.menuOpen=false}render(){return t("smoothly-notifier",{key:"431be0a7435dc54e77fc947dd130b651ccd3200b"},t("header",{key:"9549c24ede22a32148fa1ef5f55006ccc2a42a67",color:this.color},t("h1",{key:"9485a4b317dd333fd5551d39940829d4d9d1a780"},t("a",{key:"ff70fd3a02302b74ef23bbaaa75381005acf63f4",href:""},this.label)),t("slot",{key:"1115dcdab3e2e0f5d8daa1669532dd37818d0842",name:"header"}),t("nav",{key:"61bd6c2e07ae0119119e2bfbe84815b62ed7ad04",ref:e=>this.navElement=e,class:{"menu-open":this.menuOpen}},t("ul",{key:"d7156c740c7f84de3649ac2f98327f3e8113206a"},t("div",{key:"f228a1bf7863889570bf94c9272b05dc59212ba9",class:"nav-start-container"},t("slot",{key:"df9b9486a2cf8cfb6a31360af748cb68657ee7d4",name:"nav-start"})),t("slot",{key:"390e52ea3f0126e19a6230e09505c0566be8a72b"}," "),t("div",{key:"c474d995c833df57d0ae4e79bb848a66307fe6b6",class:"nav-end-container"},t("slot",{key:"d4f06aae874c8817bc431edd42598f29f196cde8",name:"nav-end"})))),t("smoothly-burger",{key:"34193e1d0cfe46243b9d50b1a4dbbc1ef878715d",ref:e=>this.burgerElement=e,open:this.menuOpen,onSmoothlyNavStatus:e=>this.burgerStatusHandler(e),onSmoothlyVisibleStatus:e=>this.burgerVisibilityHandler(e)})),t("main",{key:"10590585b9f6b8e8741bfa00c1b4e836ece4e423",ref:e=>this.mainElement=e}))}static get watchers(){return{selected:["selectedChanged"]}}};I.style=A;const E=class{constructor(t){e(this,t);this.baseUrl=undefined}render(){return t("smoothly-app",{key:"8e30444b68a9b4a25d6c0cd66b47ccdf76bad6b8",color:"dark",label:"Smoothly Demo",home:"/root",ref:e=>this.app=e},t("smoothly-trigger",{key:"f8782b8caea95ccf9ced3e3f616a436ab01971dd",slot:"nav-start",type:"link",name:"logout"},t("smoothly-icon",{key:"3412744cb0a7d002381229610b61f9b5a7af5089",toolTip:"Log out",name:"log-out",size:"medium"})),t("smoothly-app-room",{key:"7c894234f86860da3688897ad40a82e65a404217",path:"/root",label:"root"},t("smoothly-theme-demo",{key:"46f23f2fe33c2fcd035583763c1739d201a92442"})),t("smoothly-app-room",{key:"ad78157e082a62b59f7aaf14733918a20d198ce1",path:"/links",label:"Links"},t("smoothly-input",{key:"4dcdaa3a8229fb6f237f89cdb498d78167bbea75",type:"text"},"Default"),t("div",{key:"d922acb8ec4f8267b955fd36999c386244bc6969",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"86213e89df7b3f645c7679eee5524c3b0cc1d969",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"1cf971554889a40376c404962846a5746319dc21",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"356bfe26b53078781c5ec3769d3f9310499cf931",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"4eb7973c9d76300a4714280f4c80ce398b835222",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"6d1e2f80470e6041b559e128900c9c2e036dd1f6",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"f4bfaefb96287638ec3262b71094e7a2a5a35d61",path:"/input",label:"Input"},t("smoothly-input-demo",{key:"e8491534213e6b6916624436c764344ae84ac229"})),t("smoothly-app-room",{key:"ac98840ef4ac258a5c0f0aae72fb72665a07c604",path:"/button",label:"Button"},t("smoothly-button-demo",{key:"e4bf691ec697912f58932130c59ca08e714020db"})),t("smoothly-app-room",{key:"bc3ee6970fb8a2953b006ffc9a4c7eb4c2860a24",path:"/dialog",label:"Dialog"},t("smoothly-dialog-demo",{key:"2c162d779a91b5020e8929566c1a5193a82b16ac"})),t("smoothly-app-room",{key:"0a4fe9b1ac84b8105a5e829d4fa1070033611399",path:"/display",label:"Display",icon:"eye-outline"},t("smoothly-display-demo",{key:"e3f78aef423e6e42fd36d3b475c34baab0f38356"})),t("smoothly-app-room",{key:"cc3a6f71c9249ce402ff01b99f8ec41af81b312c",path:"/table",label:"Table"},t("smoothly-table-demo",{key:"5220ba66bb0f62aa551067e32208789b25a7060d"})),t("smoothly-app-room",{key:"1642bfbfd3db95aa7f996cf4ca19bc6c80d11406",path:"/next",label:"Next"},t("smoothly-next-demo",{key:"2ef7ac09af7560b17ccc73bf7846413bf0e9871b"})),t("smoothly-app-room",{key:"2a83a56cc4ae34d61deb79366313ebfcb1f2c362",path:"/tabs",label:"Tabs"},t("smoothly-tabs-demo",{key:"12acf23c44062bcae2213ce804ab9ddea7902734"})),t("smoothly-app-room",{key:"012d994c9818c40a0fd73aa39b22a856f0f158a5",path:"/icon",label:"Icon",content:t("smoothly-icon-demo",null)}),t("smoothly-app-room",{key:"b728616de075d9122e283a228fc8787a0ab7ac26",path:"/redirect",label:"Redirect"},t("smoothly-button",{key:"85b4539bcfb3c08f5733bf7fb88fd21e2463918f",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"c568309ba7018a4a011bc8da809ac548f8b5fcb9",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"e47e0625f4f0174a36e4fc1e0f4f1b5e00b4a8a6",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"b9f27e614a384af7882da19856005a94fd27a294",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"3e1a5e31ebf22d7fd717e69124802bb075b89148",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"bb226f0c20f83b41cc204ea0e5be5747e09c3c11",path:"/hidden"},t("p",{key:"9d3d9f728b1b27127ba8d00748ee361ec5cb0cae"},"hello world!")),t("smoothly-app-room",{key:"8c5ebf312c7f909586e1568b6a4a9401bb94dfa4",path:"/redirect/nested"},"this is a nested room"))}};var O=class{constructor(e,t,o,s,a,i){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=e;this.name=t;this.prefix=o;this.value=s;this.suffix=a;this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var D=/[$_\p{ID_Start}]/u;var M=/[$_\u200C\u200D\p{ID_Continue}]/u;var R=".*";function $(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function P(e,t=false){const o=[];let s=0;while(s<e.length){const a=e[s];const i=function(a){if(!t)throw new TypeError(a);o.push({type:"INVALID_CHAR",index:s,value:e[s++]})};if(a==="*"){o.push({type:"ASTERISK",index:s,value:e[s++]});continue}if(a==="+"||a==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:e[s++]});continue}if(a==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:e[s++]});continue}if(a==="{"){o.push({type:"OPEN",index:s,value:e[s++]});continue}if(a==="}"){o.push({type:"CLOSE",index:s,value:e[s++]});continue}if(a===":"){let t="";let a=s+1;while(a<e.length){const o=e.substr(a,1);if(a===s+1&&D.test(o)||a!==s+1&&M.test(o)){t+=e[a++];continue}break}if(!t){i(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:t});s=a;continue}if(a==="("){let t=1;let a="";let n=s+1;let l=false;if(e[n]==="?"){i(`Pattern cannot start with "?" at ${n}`);continue}while(n<e.length){if(!$(e[n],false)){i(`Invalid character '${e[n]}' at ${n}.`);l=true;break}if(e[n]==="\\"){a+=e[n++]+e[n++];continue}if(e[n]===")"){t--;if(t===0){n++;break}}else if(e[n]==="("){t++;if(e[n+1]!=="?"){i(`Capturing groups are not allowed at ${n}`);l=true;break}}a+=e[n++]}if(l){continue}if(t){i(`Unbalanced pattern at ${s}`);continue}if(!a){i(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:a});s=n;continue}o.push({type:"CHAR",index:s,value:e[s++]})}o.push({type:"END",index:s,value:""});return o}function H(e,t={}){const o=P(e);t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");const s=`[^${N(t.delimiter)}]+?`;const a=[];let i=0;let n=0;let l=new Set;const r=e=>{if(n<o.length&&o[n].type===e)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const d=e=>{const t=r(e);if(t!==void 0)return t;const{type:s,index:a}=o[n];throw new TypeError(`Unexpected ${s} at ${a}, expected ${e}`)};const h=()=>{let e="";let t;while(t=r("CHAR")??r("ESCAPED_CHAR")){e+=t}return e};const b=e=>e;const f=t.encodePart||b;let y="";const m=e=>{y+=e};const u=()=>{if(!y.length){return}a.push(new O(3,"","",f(y),"",3));y=""};const p=(e,t,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!t&&!o&&c===3){m(e);return}u();if(!t&&!o){if(!e){return}a.push(new O(3,"","",f(e),"",c));return}let d;if(!o){d=s}else if(o==="*"){d=R}else{d=o}let h=2;if(d===s){h=1;d=""}else if(d===R){h=0;d=""}let b;if(t){b=t}else if(o){b=i++}if(l.has(b)){throw new TypeError(`Duplicate name '${b}'.`)}l.add(b);a.push(new O(h,b,f(e),d,f(n),c))};while(n<o.length){const e=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let a=e??"";if(t.prefixes.indexOf(a)===-1){m(a);a=""}u();let i=c();p(a,o,s,"",i);continue}const a=e??r("ESCAPED_CHAR");if(a){m(a);continue}const i=r("OPEN");if(i){const e=h();const t=r("NAME");let o=r("REGEX");if(!t&&!o){o=r("ASTERISK")}const s=h();d("CLOSE");const a=c();p(e,t,o,s,a);continue}u();d("END")}return a}function N(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function F(e){return e&&e.ignoreCase?"ui":"u"}function U(e,t,o){return Y(H(e,o),t,o)}function W(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function Y(e,t,o={}){o.delimiter??(o.delimiter="/#?");o.prefixes??(o.prefixes="./");o.sensitive??(o.sensitive=false);o.strict??(o.strict=false);o.end??(o.end=true);o.start??(o.start=true);o.endsWith="";let s=o.start?"^":"";for(const a of e){if(a.type===3){if(a.modifier===3){s+=N(a.value)}else{s+=`(?:${N(a.value)})${W(a.modifier)}`}continue}if(t)t.push(a.name);const e=`[^${N(o.delimiter)}]+?`;let i=a.value;if(a.type===1)i=e;else if(a.type===0)i=R;if(!a.prefix.length&&!a.suffix.length){if(a.modifier===3||a.modifier===1){s+=`(${i})${W(a.modifier)}`}else{s+=`((?:${i})${W(a.modifier)})`}continue}if(a.modifier===3||a.modifier===1){s+=`(?:${N(a.prefix)}(${i})${N(a.suffix)})`;s+=W(a.modifier);continue}s+=`(?:${N(a.prefix)}`;s+=`((?:${i})(?:`;s+=N(a.suffix);s+=N(a.prefix);s+=`(?:${i}))*)${N(a.suffix)})`;if(a.modifier===0){s+="?"}}const a=`[${N(o.endsWith)}]|$`;const i=`[${N(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${i}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${a})`}return new RegExp(s,F(o))}if(!o.strict){s+=`(?:${i}(?=${a}))?`}let n=false;if(e.length){const t=e[e.length-1];if(t.type===3&&t.modifier===3){n=o.delimiter.indexOf(t)>-1}}if(!n){s+=`(?=${i}|${a})`}return new RegExp(s,F(o))}var B={delimiter:"",prefixes:"",sensitive:true,strict:true};var q={delimiter:".",prefixes:"",sensitive:true,strict:true};var G={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function K(e,t){if(!e.length){return false}if(e[0]==="/"){return true}if(!t){return false}if(e.length<2){return false}if((e[0]=="\\"||e[0]=="{")&&e[1]=="/"){return true}return false}function V(e,t){if(e.startsWith(t)){return e.substring(t.length,e.length)}return e}function J(e,t){if(e.endsWith(t)){return e.substr(0,e.length-t.length)}return e}function X(e){if(!e||e.length<2){return false}if(e[0]==="["){return true}if((e[0]==="\\"||e[0]==="{")&&e[1]==="["){return true}return false}var Z=["ftp","file","http","https","ws","wss"];function Q(e){if(!e){return true}for(const t of Z){if(e.test(t)){return true}}return false}function ee(e,t){e=V(e,"#");if(t||e===""){return e}const o=new URL("https://example.com");o.hash=e;return o.hash?o.hash.substring(1,o.hash.length):""}function te(e,t){e=V(e,"?");if(t||e===""){return e}const o=new URL("https://example.com");o.search=e;return o.search?o.search.substring(1,o.search.length):""}function oe(e,t){if(t||e===""){return e}if(X(e)){return fe(e)}else{return be(e)}}function se(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.password=e;return o.password}function ae(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.username=e;return o.username}function ie(e,t,o){if(o||e===""){return e}if(t&&!Z.includes(t)){const o=new URL(`${t}:${e}`);return o.pathname}const s=e[0]=="/";e=new URL(!s?"/-"+e:e,"https://example.com").pathname;if(!s){e=e.substring(2,e.length)}return e}function ne(e,t,o){if(re(t)===e){e=""}if(o||e===""){return e}return ye(e)}function le(e,t){e=J(e,":");if(t||e===""){return e}return ce(e)}function re(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ce(e){if(e===""){return e}if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function de(e){if(e===""){return e}const t=new URL("https://example.com");t.username=e;return t.username}function he(e){if(e===""){return e}const t=new URL("https://example.com");t.password=e;return t.password}function be(e){if(e===""){return e}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)){throw new TypeError(`Invalid hostname '${e}'`)}const t=new URL("https://example.com");t.hostname=e;return t.hostname}function fe(e){if(e===""){return e}if(/[^0-9a-fA-F[\]:]/g.test(e)){throw new TypeError(`Invalid IPv6 hostname '${e}'`)}return e.toLowerCase()}function ye(e){if(e===""){return e}if(/^[0-9]*$/.test(e)&&parseInt(e)<=65535){return e}throw new TypeError(`Invalid port '${e}'.`)}function me(e){if(e===""){return e}const t=new URL("https://example.com");t.pathname=e[0]!=="/"?"/-"+e:e;if(e[0]!=="/"){return t.pathname.substring(2,t.pathname.length)}return t.pathname}function ue(e){if(e===""){return e}const t=new URL(`data:${e}`);return t.pathname}function pe(e){if(e===""){return e}const t=new URL("https://example.com");t.search=e;return t.search.substring(1,t.search.length)}function ge(e){if(e===""){return e}const t=new URL("https://example.com");t.hash=e;return t.hash.substring(1,t.hash.length)}var ke=class{constructor(e){this.tokenList=[];this.internalResult={};this.tokenIndex=0;this.tokenIncrement=1;this.componentStart=0;this.state=0;this.groupDepth=0;this.hostnameIPv6BracketDepth=0;this.shouldTreatAsStandardURL=false;this.input=e}get result(){return this.internalResult}parse(){this.tokenList=P(this.input,true);for(;this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){this.tokenIncrement=1;if(this.tokenList[this.tokenIndex].type==="END"){if(this.state===0){this.rewind();if(this.isHashPrefix()){this.changeState(9,1)}else if(this.isSearchPrefix()){this.changeState(8,1);this.internalResult.hash=""}else{this.changeState(7,0);this.internalResult.search="";this.internalResult.hash=""}continue}else if(this.state===2){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(this.isGroupClose()){this.groupDepth-=1}else{continue}}if(this.isGroupOpen()){this.groupDepth+=1;continue}switch(this.state){case 0:if(this.isProtocolSuffix()){this.internalResult.username="";this.internalResult.password="";this.internalResult.hostname="";this.internalResult.port="";this.internalResult.pathname="";this.internalResult.search="";this.internalResult.hash="";this.rewindAndSetState(1)}break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let e=7;let t=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){e=2;t=3}else if(this.shouldTreatAsStandardURL){e=2}this.changeState(e,t)}break;case 2:if(this.isIdentityTerminator()){this.rewindAndSetState(3)}else if(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix()){this.rewindAndSetState(5)}break;case 3:if(this.isPasswordPrefix()){this.changeState(4,1)}else if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 4:if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 5:if(this.isIPv6Open()){this.hostnameIPv6BracketDepth+=1}else if(this.isIPv6Close()){this.hostnameIPv6BracketDepth-=1}if(this.isPortPrefix()&&!this.hostnameIPv6BracketDepth){this.changeState(6,1)}else if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 6:if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 7:if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 8:if(this.isHashPrefix()){this.changeState(9,1)}break}}}changeState(e,t){switch(this.state){case 0:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 2:break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString();break}this.changeStateWithoutSettingComponent(e,t)}changeStateWithoutSettingComponent(e,t){this.state=e;this.componentStart=this.tokenIndex+t;this.tokenIndex+=t;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(e){this.rewind();this.state=e}safeToken(e){if(e<0){e=this.tokenList.length-e}if(e<this.tokenList.length){return this.tokenList[e]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(e,t){const o=this.safeToken(e);return o.value===t&&(o.type==="CHAR"||o.type==="ESCAPED_CHAR"||o.type==="INVALID_CHAR")}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?")){return true}if(this.tokenList[this.tokenIndex].value!=="?"){return false}const e=this.safeToken(this.tokenIndex-1);return e.type!=="NAME"&&e.type!=="REGEX"&&e.type!=="CLOSE"&&e.type!=="ASTERISK"}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return this.tokenList[this.tokenIndex].type=="OPEN"}isGroupClose(){return this.tokenList[this.tokenIndex].type=="CLOSE"}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const e=this.tokenList[this.tokenIndex];const t=this.safeToken(this.componentStart).index;return this.input.substring(t,e.index)}computeShouldTreatAsStandardURL(){const e={};Object.assign(e,B);e.encodePart=ce;const t=U(this.makeComponentString(),void 0,e);this.shouldTreatAsStandardURL=Q(t)}};var ve=["protocol","username","password","hostname","port","pathname","search","hash"];var xe="*";function we(e,t){if(typeof e!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(e,t);return{protocol:o.protocol.substring(0,o.protocol.length-1),username:o.username,password:o.password,hostname:o.hostname,port:o.port,pathname:o.pathname,search:o.search!==""?o.search.substring(1,o.search.length):void 0,hash:o.hash!==""?o.hash.substring(1,o.hash.length):void 0}}function Se(e,t){if(!t){return e}return ze(e)}function Ce(e,t,o){let s;if(typeof t.baseURL==="string"){try{s=new URL(t.baseURL);e.protocol=Se(s.protocol.substring(0,s.protocol.length-1),o);e.username=Se(s.username,o);e.password=Se(s.password,o);e.hostname=Se(s.hostname,o);e.port=Se(s.port,o);e.pathname=Se(s.pathname,o);e.search=Se(s.search.substring(1,s.search.length),o);e.hash=Se(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}}if(typeof t.protocol==="string"){e.protocol=le(t.protocol,o)}if(typeof t.username==="string"){e.username=ae(t.username,o)}if(typeof t.password==="string"){e.password=se(t.password,o)}if(typeof t.hostname==="string"){e.hostname=oe(t.hostname,o)}if(typeof t.port==="string"){e.port=ne(t.port,e.protocol,o)}if(typeof t.pathname==="string"){e.pathname=t.pathname;if(s&&!K(e.pathname,o)){const t=s.pathname.lastIndexOf("/");if(t>=0){e.pathname=Se(s.pathname.substring(0,t+1),o)+e.pathname}}e.pathname=ie(e.pathname,e.protocol,o)}if(typeof t.search==="string"){e.search=te(t.search,o)}if(typeof t.hash==="string"){e.hash=ee(t.hash,o)}return e}function ze(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Te(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function je(e,t){t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");t.sensitive??(t.sensitive=false);t.strict??(t.strict=false);t.end??(t.end=true);t.start??(t.start=true);t.endsWith="";const o=".*";const s=`[^${Te(t.delimiter)}]+?`;const a=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let n=0;n<e.length;++n){const l=e[n];if(l.type===3){if(l.modifier===3){i+=ze(l.value);continue}i+=`{${ze(l.value)}}${W(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!t.prefixes.includes(l.prefix));const d=n>0?e[n-1]:null;const h=n<e.length-1?e[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&h&&!h.prefix.length&&!h.suffix.length){if(h.type===3){const e=h.value.length>0?h.value[0]:"";c=a.test(e)}else{c=!h.hasCustomName()}}if(!c&&!l.prefix.length&&d&&d.type===3){const e=d.value[d.value.length-1];c=t.prefixes.includes(e)}if(c){i+="{"}i+=ze(l.prefix);if(r){i+=`:${l.name}`}if(l.type===2){i+=`(${l.value})`}else if(l.type===1){if(!r){i+=`(${s})`}}else if(l.type===0){if(!r&&(!d||d.type===3||d.modifier!==3||c||l.prefix!=="")){i+="*"}else{i+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(a.test(l.suffix[0])){i+="\\"}}i+=ze(l.suffix);if(c){i+="}"}if(l.modifier!==3){i+=W(l.modifier)}}return i}var _e=class{constructor(e={},t,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof t==="string"){s=t}else{o=t}if(typeof e==="string"){const t=new ke(e);t.parse();e=t.result;if(s===void 0&&typeof e.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}e.baseURL=s}else{if(!e||typeof e!=="object"){throw new TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`)}if(s){throw new TypeError(`parameter 1 is not of type 'string'.`)}}if(typeof o==="undefined"){o={ignoreCase:false}}const a={ignoreCase:o.ignoreCase===true};const i={pathname:xe,protocol:xe,username:xe,password:xe,hostname:xe,port:xe,search:xe,hash:xe};this.pattern=Ce(i,e,true);if(re(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of ve){if(!(n in this.pattern))continue;const e={};const t=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(e,B);e.encodePart=ce;break;case"username":Object.assign(e,B);e.encodePart=de;break;case"password":Object.assign(e,B);e.encodePart=he;break;case"hostname":Object.assign(e,q);if(X(t)){e.encodePart=fe}else{e.encodePart=be}break;case"port":Object.assign(e,B);e.encodePart=ye;break;case"pathname":if(Q(this.regexp.protocol)){Object.assign(e,G,a);e.encodePart=me}else{Object.assign(e,B,a);e.encodePart=ue}break;case"search":Object.assign(e,B,a);e.encodePart=pe;break;case"hash":Object.assign(e,B,a);e.encodePart=ge;break}try{this.parts[n]=H(t,e);this.regexp[n]=Y(this.parts[n],this.names[n],e);this.component_pattern[n]=je(this.parts[n],e)}catch(e){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return false}try{if(typeof e==="object"){o=Ce(o,e,false)}else{o=Ce(o,we(e,t),false)}}catch(e){return false}let s;for(s of ve){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return}try{if(typeof e==="object"){o=Ce(o,e,false)}else{o=Ce(o,we(e,t),false)}}catch(e){return null}let s={};if(t){s.inputs=[e,t]}else{s.inputs=[e]}let a;for(a of ve){let e=this.regexp[a].exec(o[a]);if(!e){return null}let t={};for(let[o,s]of this.names[a].entries()){if(typeof s==="string"||typeof s==="number"){let a=e[o+1];t[s]=a}}s[a]={input:o[a]??"",groups:t}}return s}static compareComponent(e,t,o){const s=(e,t)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(e[o]<t[o])return-1;else if(e[o]===t[o])continue;else return 1}return 0};const a=new O(3,"","","","",3);const i=new O(0,"","","","",3);const n=(e,t)=>{let o=0;for(;o<Math.min(e.length,t.length);++o){let a=s(e[o],t[o]);if(a)return a}if(e.length===t.length){return 0}return s(e[o]??a,t[o]??a)};if(!t.component_pattern[e]&&!o.component_pattern[e]){return 0}if(t.component_pattern[e]&&!o.component_pattern[e]){return n(t.parts[e],[i])}if(!t.component_pattern[e]&&o.component_pattern[e]){return n([i],o.parts[e])}return n(t.parts[e],o.parts[e])}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}};if(!globalThis.URLPattern){globalThis.URLPattern=_e}const Le=".sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{overflow-y:auto;height:100%}:not([label].sc-smoothly-app-room-h,[icon]).sc-smoothly-app-room-h,[disabled].sc-smoothly-app-room-h{display:none}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{display:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room{height:100%;list-style:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0 1.5em;height:100%}[selected].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{display:flex;color:rgb(var(--smoothly-color-contrast));background:rgb(var(--smoothly-color-shade))}.sc-smoothly-app-room-h:hover>li.sc-smoothly-app-room>a.sc-smoothly-app-room{color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));transition:0.2s}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>smoothly-icon.sc-smoothly-app-room{align-self:inherit;margin-bottom:1em}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}}";const Ae=Le;const Ie=class{constructor(t){e(this,t);this.smoothlyRoomSelected=o(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=o(this,"smoothlyRoomLoaded",7);this.label=undefined;this.icon=undefined;this.disabled=undefined;this.path="";this.selected=undefined;this.content=undefined}componentWillLoad(){this.selected=(typeof this.path=="string"?new URLPattern({pathname:this.path}):this.path).test(window.location);this.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(e,t){this.selected=e;if(e)this.smoothlyRoomSelected.emit({history:!!(t===null||t===void 0?void 0:t.history)})}clickHandler(e){if(!e.metaKey&&!e.ctrlKey&&e.which!=2&&e.button!=1){e.preventDefault();this.setSelected(true)}}render(){return t(s,{key:"c374d547ac05f13c3facdfff51480668b95ced17"},t("li",{key:"461ef1a539f61845b164d3092b44436d7e438529"},t("a",{key:"93c7e7359fc6256913213a547ffe9f18779361d9",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:e=>this.clickHandler(e)},this.icon?t("smoothly-icon",{name:this.icon,toolTip:this.label}):this.label)),t("div",{key:"7201cc01f15c650f9aaab73da5356402a246b834",ref:e=>this.contentElement=e},this.content&&t("smoothly-lazy",{key:"175c244d4601807388ed2bf39f4d9ef36195f949",content:this.content}),t("slot",{key:"5ae8abb4ab7e67ac7a1a84c6b23589621a88b607"})))}};Ie.style=Ae;const Ee=".sc-smoothly-back-to-top-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";const Oe=Ee;const De=class{constructor(t){e(this,t);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){window.addEventListener("scroll",(()=>{this.visible=document.body.scrollTop>20||document.documentElement.scrollTop>20}))}render(){const e={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return t(s,{key:"53ccc01f7dcaecb7d834ef5b22812a480357449a",style:e,onClick:()=>window.scrollTo({top:0,left:0,behavior:"smooth"})},t("smoothly-icon",{key:"c64f94f0501ef98f359d98f62d140ae39a3af3ba",name:"caret-up-outline"}))}};De.style=Oe;const Me="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Re=Me;const $e=class{constructor(t){e(this,t);this.smoothlyNavStatus=o(this,"smoothlyNavStatus",7);this.smoothlyVisibleStatus=o(this,"smoothlyVisibleStatus",7);this.visible=undefined;this.open=false;this.mediaQuery="(max-width: 900px)";this.history=undefined}componentWillLoad(){this.history=window.matchMedia(this.mediaQuery).matches;if(!window.matchMedia(this.mediaQuery).matches)this.visible=false;else this.visible=true;this.smoothlyNavStatus.emit(!this.visible);this.smoothlyVisibleStatus.emit(this.visible)}openChanged(){this.smoothlyNavStatus.emit(this.open)}clickHandler(e){if(this.visible)this.open=!this.open}resizeHandler(){const e=window.matchMedia(this.mediaQuery).matches;if(e!=this.history){if(e){this.visible=true;this.open=false}else{this.visible=false;this.open=false}this.smoothlyVisibleStatus.emit(this.visible);this.smoothlyNavStatus.emit(!this.visible)}this.history=e}render(){return t(s,{key:"b98d72398fae12c1bd390f67f58e1248bb6882fe"},t("span",{key:"7c88219e5284002eb9db1a8fc10f399fc49fcc1b",class:"burger"},t("smoothly-icon",{key:"c3bb99aaf9fa589476cd2dc153fad554fca10d45",name:"menu"})))}get element(){return a(this)}static get watchers(){return{open:["openChanged"]}}};$e.style=Re;const Pe=({disabled:e,type:o,link:s},a)=>e&&(s||o=="link")?t("slot",null):o=="link"?t("a",{href:s,onClick:!s||!Ne(s)?undefined:e=>(e.preventDefault(),g(He(s)))},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):o=="download"?t("a",{href:s,target:"_blank",download:true},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):t("button",{disabled:e},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"}));function He(e){let t;if(e.startsWith(window.location.origin))t=new URL(e).pathname;else if(e.match(/^\//))t=new URL(e,window.location.origin).pathname;else t=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${e}`,window.location.origin).pathname;return t}function Ne(e){return new URL(e,window.location.origin).origin==window.location.origin}const Fe='[color=default].sc-smoothly-button{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-button{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-button{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-button{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-button{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-button{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-button{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-button{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-button{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-button{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-button-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;cursor:pointer;border:none;outline:none;position:relative}[type=link].sc-smoothly-button-h{display:inline;border:none}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h>a.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-button-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-button{padding:0.8em;min-width:8em}.sc-smoothly-button-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-button{padding:0.6em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[shape=rounded].sc-smoothly-button-h>button.sc-smoothly-button,[shape=rounded].sc-smoothly-button-h{border-radius:2rem}[type=button].sc-smoothly-button-h>a.sc-smoothly-button{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-button-h>button.sc-smoothly-button{font-size:100%}[size=large].sc-smoothly-button-h>button.sc-smoothly-button{font-size:130%}.sc-smoothly-button-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-button-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-button-h,[shape=rounded].sc-smoothly-button-h>button.sc-smoothly-button::before{border-radius:2rem}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border:1px solid rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear]):hover>button.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border:solid 1px rgb(var(--smoothly-button-focus-border))}[fill=outline].sc-smoothly-button-h:hover>button.sc-smoothly-button::before,[fill=outline].sc-smoothly-button-h:focus-within>button.sc-smoothly-button::before,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px}.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:active,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline]):hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline]):focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline]):active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-button-h>button.sc-smoothly-button,.sc-smoothly-button-h.sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}[hidden].sc-smoothly-button-h{display:none}';const Ue=Fe;const We=class{constructor(t){e(this,t);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.link=undefined}render(){return t(Pe,{key:"aafea4c6f3e065c3545b5291fee82b4214f20895",disabled:this.disabled,type:this.type,link:this.link},t("slot",{key:"804458165d6ef03f56043bf91160ee2033932abc"}))}};We.style=Ue;const Ye=".sc-smoothly-button-confirm-h{display:inline-block}[disabled].sc-smoothly-button-confirm-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-confirm-h:not([warning])>smoothly-button.sc-smoothly-button-confirm:first-child{display:none}[warning].sc-smoothly-button-confirm-h>smoothly-button.sc-smoothly-button-confirm:nth-child(2){display:none}[expand].sc-smoothly-button-confirm-h{width:100%}";const Be=Ye;const qe=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyConfirm=o(this,"smoothlyConfirm",7);this.color=undefined;this.name=undefined;this.doubleClickTime=.2;this.expand=undefined;this.fill=undefined;this.disabled=false;this.shape=undefined;this.type="button";this.size=undefined;this.clickTimeStamp=undefined}clickHandler(e){if(this.clickTimeStamp&&e.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=e.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return t(s,{key:"905dc4b5a7a9749b8cb0f4600c772ec82efa71f8",warning:this.clickTimeStamp},t("smoothly-button",{key:"be819c318548fd0630ab66856294a0377e30ca49",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:this.type,onClick:e=>this.clickHandler(e)},t("smoothly-icon",{key:"f7f4746efa12829c18e92d4841ec6fac78cd0069",name:"alert-outline",fill:"solid",color:"warning",size:"tiny"})),t("smoothly-button",{key:"e2df98438c55c873da39250cb25b01b5e5a8f180",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:this.type,onClick:e=>this.clickHandler(e)},t("slot",{key:"7523cffabdbcc9e7d582d39cfc068baae56d23b7"})))}};qe.style=Be;const Ge="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}";const Ke=Ge;const Ve=class{constructor(t){e(this,t)}render(){return[t("h2",{key:"c946a73beb10ec53b4c7963473cd1567f616b4a8"},"Buttons"),t("section",{key:"cd9a3688a7cc3cb1006aafa4302b53d91e0bcd67"},t("h4",{key:"d7550a7796d55a0c517ee0ed2945e45dac0546d9"},"Confirm button (two clicks)"),t("div",{key:"817e6ea3e090b9cf65ffd342cb5705b1d99ec7a6"},t("smoothly-button-confirm",{key:"d493fa902612b279675f3beecabd489158bfc615",name:"confirm",type:"button",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"a22afdb56432deeda0cddcf80fef81e340d03155",name:"confirm-icon",type:"button",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"1d4391904bdc003360c075261b945840d39cfbc7",name:"checkmark-outline",size:"small"}))),t("h4",{key:"52837b1304bd139f1d36430bada8c5df2c1054d5"},"Toggle button"),t("smoothly-toggle",{key:"5e94137ae7d485dec5650a0324efaba55071cc96"},t("smoothly-icon",{key:"d15f2d12957424b5ff5e83221c6f1e625c385c4a",name:"card",fill:"solid",slot:"icon-slot"})),t("smoothly-toggle",{key:"94bce09284a1b77b7ad15f8e974a117f2a641d8b"},t("smoothly-icon",{key:"d94f441999b3486b207558a53c9d9b9eb4b07d9b",name:"briefcase",slot:"icon-slot"})),t("smoothly-toggle",{key:"2d1b2e78c515547ea932871f6248fc43a749f2e6"},t("smoothly-icon",{key:"f45917f8945d259aac4b3ee142f6670ecda71953",name:"airplane",slot:"icon-slot"})),t("h4",{key:"8d0723fc12c45dd036e478e468a72d6ed5d1325f"},"Toggle switches"),t("smoothly-toggle-switch",{key:"79d5eee6c7e8c3be4f197645f5d662e5731d8446",checkmark:false,color:"primary",disabled:false,size:"small",onSmoothlyToggleSwitchChange:e=>{console.log("toggleSwitch ",e.detail)}}),t("smoothly-toggle-switch",{key:"aab35fc159ede89f9d9b6218936c163a93ea8535",disabled:false}),t("smoothly-toggle-switch",{key:"5f47a08b4de92c0713fb310b2545dfa617a09110",disabled:false,size:"large"}),t("h4",{key:"53378d28f9eebed8658148a9b76edeceb0ea84e7"},"Links with icons"),t("smoothly-button",{key:"d0547266ba61bd7b9396a44c53bbd4216b6616ae",type:"link"},t("smoothly-icon",{key:"3c19b04c763b05724cfaae6b3681f38fc41b15a4",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"b563ff00df71c8ea916a573763053ea2e4976748",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"6b355f2629cce75fedf7d90f5c99a118ff6d0d9d",name:"call",slot:"start"}),t("a",{key:"a44575dba79a8918b805ee11f266669bf3227e4b",href:"https://google.com"},"link")),t("smoothly-button",{key:"23633a6c638be6f6cfacb4c4a746f03bdc1139a4",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"15e9ffeff826b88ebe6eb3fef4c2879821686f9a",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"69e3fa6cd3fa349e7402734d226f7e394f77672c"},"Size and Color test"),t("smoothly-button",{key:"82b97a66090eae54e026fd37cfcfd57e6bb58797",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"1bd11faf37e38c8fa1842f3241e40e8548e33f0a",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"cf2c7f9860727e40402e804d75e233c9c65c76c7",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"905c60059993c38dc9c1e762c19f236f537ae975",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"fb0c8e214b044f65c6e71dd8e4d4990b465b1749",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"c254b27771108ed4983c3df9c71cd3396258733e",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"25d82e3cea5642b9232d6ac224cb49f37e9e89cd",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"1d48f4340e7683a25cbc9d1edecc0f963b999a36",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"7948a1e81a0d325c7c8bca78aacdd6461cc59047",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"63e192913e1001981ca147ca93e888c6bad4bd8d"},"Expand examples"),t("smoothly-button",{key:"7be14d785994575e4c75cddcaa8325cb0cac7dd5",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"2d2fd4b864b375e2d9abe841c83c53114dc29e38",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"db0d88d42816e26ba75cefa1eca3b2dc9929693f"},"Fill examples"),t("div",{key:"f134c9800f6721fc4a0029fc87d685b3c48f3011"},t("smoothly-button",{key:"e6c1a492ac1e81621a28a85867441caadc9a0036",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"8f72ada221e25f3e8311999d0638affe6abc18b5",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"7adee7c9651187359b13a229759d0a9cad7a11c4",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"2e562350f7d6d5dc6ecd6bc91084109f075a45c1",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"174016156924f68651d9216e0428462d7b97736a",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"f70c5dfc2be78254bd9e642ade6188587a3bc562",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"5a53f91cc0075c905cc239130a220520965cbb81",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"0f7a7a7e44c8c362fe943e99d72c8ba4c0bea478",name:"basketball"}))),t("h4",{key:"e4dd1d3803492311807de095d9bd751c085ae280"},'Buttons with Icon in "start"'),t("div",{key:"1ab3677c6986eb8603ba8a7088722bb9c501d2e4"},t("smoothly-button",{key:"c5dcf60b0657d8fc031f839199597dfb966d80b2",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"dcc9b955680a33064beeff2ee69ac9a604659fbc",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"bc15eafc66c74411b678c6d73e5b0a5996f93549",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"9c63d8cb3baf695d316216ace01a74ddcee65e46",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"0ea68979e6c7c50cb5bb6b70b274a8b23f7b7b1a",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"28d969989285018682c120998c0a0d5fb99f0950",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"8835b73c4b1d4ecce18f72948a4803267ce83047",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"2b57e99f7bf0b6bb7bbc56420dcd0a2d61cdd645",name:"call"})),t("smoothly-button",{key:"64879daf7c3e3af62ccc11141d883b816635bf73",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"4abaebe293edfe400ecb1672cbeb584025a1f0e3",name:"airplane"}))),t("h4",{key:"86efddce4215a0ec0e64dae40a162e29b26e9548"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"d997951a8883ad4775959592caa29d1035236309",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"964a526960464305a2947a86a159ed5d75c8230d",name:"arrow-forward",slot:"end"})),t("h4",{key:"67fe6ed19b2ae9819ab4632b4152d4ace760b4df"},"Test for icon button"),t("div",{key:"0bf151e08c1ea1f4c5bf28096e01e3e5efbe5498"},t("smoothly-button",{key:"8be3e4ded3ff2407615b377fbca953f4ed299782",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"07e3ba9eca738cc4ee38f26474f2dc2542ae9f20",name:"call"})),t("smoothly-button",{key:"e5d9f6e71fefec7d7d6400c9e70d1993eae4e522",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"042aaffb00660f1cc7513ba4b6391386ca2bf022",name:"search-outline"})),t("smoothly-button",{key:"5849f97a3cd9167cf08d4921a646b5ba31564429",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"878a03d57ca71a47edee51404348f7347f93afe6",name:"checkmark-circle"}))),t("h4",{key:"b83e722b4fe3dc41f09cb223f80ba5bff89f4b6d"},"Link examples"),t("div",{key:"dc2901ec457b8fa17c5464a13402eeb53b55a80a"},t("smoothly-button",{key:"72dd6f7951586214a19eac2aee7b18d5a9b778d9",type:"link"},"type link"),t("smoothly-button",{key:"ae035117c1d854f38dbbe4441c4b9e53fc5d0a5d",type:"button",fill:"clear"},t("a",{key:"74c9a2a086cd0d8d40a3758988cb83b159edf5c5",href:"https://google.com"},"link")),t("smoothly-button",{key:"bf49f9576f387d289edff17070b53be8c1f66e9b",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"408a016b158af9672a76a831780cb09c89b93a75"},"Disabled buttons"),t("div",{key:"6926e16152b13b1a2ff455600d81fdc95ddcb974"},t("smoothly-button",{key:"5a5b1b2bb8f8eb1c4cf188b2d44eadb7669a4a8b",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"98dbfbf10ec3b8dbc85f1de8b54280e8069d00e3",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"a09a924988895ea7465431ee3c0069d8dbcf2c80"})]}};Ve.style=Ke;function Je(e){const t=new Date(e);t.setDate(1);let o=-((t.getDay()+6)%7)+1;const s=[];for(let t=0;t<6;t++){const a=[];for(let t=0;t<7;t++){const t=new Date(e);t.setUTCDate(o++);a.push(v.create(t))}if(t<5||v.firstOfMonth(a[0])==v.firstOfMonth(e))s.push(a)}return s}function Xe(){const e=new globalThis.Date;e.setDate(e.getDate()-e.getDay()+1);const t=[];for(let o=0;o<7;o++){t.push(e.toLocaleString(undefined,{weekday:"short"}));e.setDate(e.getDate()+1)}return t}function Ze(e){const t=new globalThis.Date(e);const o=[];for(let s=0;s<12;s++){t.setMonth(s,28);const a=v.create(t);o.push({date:a,name:t.toLocaleString(undefined,{month:"long"}),selected:a.substr(0,7)==e.substr(0,7)})}return o}function Qe(e){const t=new globalThis.Date(e);const o=(new Date).getFullYear()-10;const s=(new Date).getFullYear()+10;const a=[];for(let i=o;i<=s;i++){t.setFullYear(i);const o=v.create(t);a.push({date:o,name:t.toLocaleString(undefined,{year:"numeric"}),selected:o==e})}return a}const et=".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));cursor:pointer;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-color), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-medium-tint));color:rgb(var(--smoothly-medium-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}";const tt=et;const ot=class{constructor(t){e(this,t);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyStartChange=o(this,"smoothlyStartChange",7);this.smoothlyEndChange=o(this,"smoothlyEndChange",7);this.smoothlyDateSet=o(this,"smoothlyDateSet",7);this.smoothlyDateRangeSet=o(this,"smoothlyDateRangeSet",7);this.clickCounter=0;this.month=undefined;this.value=v.now();this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.doubleInput=undefined;this.firstSelected=undefined}onStart(e){this.smoothlyStartChange.emit(e)}onEnd(e){this.smoothlyEndChange.emit(e)}onClick(e){this.smoothlyValueChange.emit(this.value=e);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=e;else{if(this.start&&e>this.start)this.end=e;else this.start=e}}!this.doubleInput&&this.smoothlyDateSet.emit(this.value);this.doubleInput&&this.clickCounter%2==0&&this.start&&this.end&&this.smoothlyDateRangeSet.emit({start:this.start,end:this.end})}onHover(e){if(this.doubleInput&&this.clickCounter%2==1){if(e<this.frozenDate){this.start=e;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=e}}}render(){var e,o;return[t("smoothly-input-month",{key:"85fad35f34758508acbef19fe790028361f741c3",name:"month",value:(e=this.month)!==null&&e!==void 0?e:this.value,inCalendar:true,next:true,previous:true,onSmoothlyInput:e=>{e.stopPropagation();"month"in e.detail&&typeof e.detail.month=="string"&&(this.month=e.detail.month)}},t("div",{key:"15aabb3c5fe7947966134363f84420f0c19c7e84",slot:"year-label"},t("slot",{key:"1f14681f81194ec85c1ccd4f748c519476eeef2f",name:"year-label"})),t("div",{key:"6365b002b22d1a45e8af8d0f4f17a463b06f5ac5",slot:"month-label"},t("slot",{key:"1c0ebe5ee5e1711d72c847cd36714495f5511214",name:"month-label"}))),t("table",{key:"875306a0d5e410a552bc084f35dd1f7b14e65150"},t("thead",{key:"dd9314cf4b9646087ef9ebe30f7afa22ea98edca"},t("tr",{key:"09180988072ac18d206b75b3ec3e7a927070f36d"},Xe().map((e=>t("th",null,e))))),Je((o=this.month)!==null&&o!==void 0?o:this.value).map((e=>t("tr",null,e.map((e=>{var o,s,a;return t("td",{tabindex:1,onMouseOver:()=>{!this.doubleInput&&(this.min||this.max)&&(e<this.min||e>this.max)?undefined:this.onHover(e)},onClick:(this.min||this.max)&&(e<this.min||e>this.max)?undefined:()=>this.onClick(e),class:(e==this.value?["selected"]:[]).concat(...e==v.now()?["today"]:[],v.firstOfMonth((o=this.month)!==null&&o!==void 0?o:this.value)==v.firstOfMonth(e)?["currentMonth"]:[],this.doubleInput?this.start==e||this.end==e?["selected"]:e>=((s=this.start)!==null&&s!==void 0?s:"")&&e<=((a=this.end)!==null&&a!==void 0?a:"")?["dateRange"]:[]:"").concat(...this.min||this.max?e<this.min||e>this.max?["disable"]:[]:"").join(" ")},e.substring(8,10))}))))))]}get element(){return a(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};ot.style=tt;const st=".sc-smoothly-dialog-h{display:block;position:fixed;top:55%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog{margin-top:var(--smoothly-dialog-margin-top)}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) div.header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header])>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog>smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";const at=st;const it=class{constructor(t){e(this,t);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(e){if(l.is(e.detail)&&e.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return t("section",{key:"a9df67b616a45f234750c337394fe775575db9ef"},t("div",{key:"498b833d143a0f30f47aff6aa933654f7f5d2617",class:"header"},this.closable&&t("smoothly-trigger",{key:"ad37009967de28544cf3300791941c1afa7e4992",fill:"clear",name:"close"},t("smoothly-icon",{key:"2a2423a156463e1ba2f1541d5ad302e31838d3a9",name:"close-circle",fill:"solid",color:this.color})),this.header?t("h1",null,this.header):t("slot",{name:"header"})),t("div",{key:"413a6dceb45ad024433d66b8c6d0d51d0913cdf8",class:"content"},t("slot",{key:"7a25cb36f7a526126e2b896b1118b9eddf06e87d"})))}render(){return t(s,this.hostData(),this.__stencil_render())}};it.style=at;const nt=class{constructor(t){e(this,t)}render(){return t("smoothly-dialog",{key:"472a3ac77d99da8715da9a8a45e10589aa301607",color:"default",closable:true},t("smoothly-frame",{key:"744138de704bc9022b09960ed220fd3f64e24843",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}}))}};function lt(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}function rt(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function ct(e,t,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?rt(e,t,s):lt(e,t,s)}var dt;(function(e){function t(e){return e.direction=="backward"?e.start:e.end}e.getCursor=t;function o(e){return e.direction!="backward"?e.start:e.end}e.getStalker=o})(dt||(dt={}));var ht;(function(e){function t(e){return{value:e.value,selection:{start:e.selection.start,end:e.selection.end,direction:e.selection.direction}}}e.copy=t})(ht||(ht={}));class bt{constructor(e){this.value=e.value;this.selection={start:e.selection?.start,end:e.selection?.end,direction:e.selection?.direction}}get(e,t=1){return this.value.substring(e,e+t)}is(e,...t){const o=this.get(e);return t.some((e=>o==e))}isDigit(e){const t=this.get(e);return t>="0"&&t<="9"}match(e){return this.value.match(e)}replace(e,t,o){let s;if(typeof e=="string"&&typeof t=="string"){let o;s=this;while((o=s.value.indexOf(e))>-1)s=s.replace(o,o+e.length,t)}else if(typeof e=="number"&&typeof t=="number"){const a={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";a.value=this.value.slice(0,e)+o+this.value.slice(t,this.value.length);if(this.selection.start>=t)a.selection.start=this.selection.start+o.length-t+e;else if(this.selection.start>e&&this.selection.start<t)a.selection.start=Math.min(this.selection.start,e+o.length);if(this.selection.end>=t)a.selection.end=this.selection.end+o.length-t+e;else if(this.selection.end>e&&this.selection.end<t)a.selection.end=Math.min(this.selection.end,e+o.length);s=new bt(a)}return s||this}insert(e,t){return this.replace(e,e,t)}append(e){return this.insert(this.value.length,e)}prepend(e){return this.insert(0,e)}suffix(e){return new bt({value:this.value+e,selection:this.selection})}delete(e,t){let o;if(!this.value)o=this;else if(typeof e=="string"){let t;o=this;while(e&&(t=o.value.indexOf(e))>-1)o=o.delete(t,t+e.length)}else o=this.replace(e,t||e+1,"");return o}truncate(e){return this.value.length>=e?this.delete(e,this.value.length):this}pad(e,t,o){let s=this;while(e>s.value.length+t.length)s=s.insert(o,t);if(e>s.value.length)s=s.insert(o,t.substring(0,e-s.value.length));return s}padEnd(e,t){return this.pad(e,t,this.value.length)}padStart(e,t){return this.pad(e,t,0)}toLower(){return this.map((e=>e.toLowerCase()))}toUpper(){return this.map((e=>e.toUpperCase()))}map(e){let t=this;let o=0;for(let s=0;s<this.value.length;s++){const a=e(this.get(s),s);t=t.replace(o,o+1,a);o+=a.length}return t}static copy(e){return new bt({...e})}static create(){return new bt({value:"",selection:{start:0,end:0}})}static modify(e){return new bt(typeof e=="string"?{value:e,selection:{start:e.length,end:e.length}}:e)}}var ft;(function(e){function t(e,t,o){let c=ht.copy(e.unformat(bt.copy(t)));if(t.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(t.value))o?.key&&(o.key="Backspace");if(o){if(o.ctrlKey||o.metaKey){if(o.key=="a")n(c,0,c.value.length,"forward");else if(["ArrowLeft","ArrowRight"].includes(o.key)&&t?.type!="password")c=s(e,t,o);else if(["Delete","Backspace"].includes(o.key)&&t?.type!="password")c=a(e,t,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))i(c,o);else if(["Delete","Backspace"].includes(o.key)){c.selection.start==c.selection.end&&n(c,c.selection.start+(o.key=="Backspace"?-1:0),c.selection.end+(o.key=="Delete"?1:0));l(c)}else if(o.key!="Unidentified"){l(c);e.allowed(o.key,c)&&r(c,o.key)}}return e.format(bt.copy(c))}e.apply=t;function o(e,t,o){const s=ht.copy(e.unformat(bt.copy(t)));r(s,o);return e.format(bt.copy(s))}e.paste=o;function s(e,t,o){let s=dt.getCursor(t.selection);let a=dt.getStalker(t.selection);s=ct(t.value,s,o.key=="ArrowLeft"?"backward":"forward");a=o.shiftKey?a:s;return ht.copy(e.unformat(bt.copy({...t,selection:{start:Math.min(a,s),end:Math.max(a,s),direction:a<s?"forward":a>s?"backward":"none"}})))}function a(e,t,o){const s=dt.getCursor(t.selection);const a=ct(t.value,s,o.key=="Backspace"?"backward":"forward");const i=ht.copy(e.unformat(bt.copy({...t,selection:{start:Math.min(s,a),end:Math.max(s,a),direction:"none"}})));i.value=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.selection.end=i.selection.start;return i}function i(e,t){let o=dt.getCursor(e.selection);let s=dt.getStalker(e.selection);o=t.key=="Home"?0:t.key=="End"?e.value.length:e.selection.start==e.selection.end||t.shiftKey?Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length):t.key=="ArrowLeft"?e.selection.start:e.selection.end;s=t.shiftKey?s:o;e.selection.direction=s<o?"forward":s>o?"backward":"none";e.selection.start=Math.min(s,o);e.selection.end=Math.max(s,o)}function n(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}function l(e){r(e,"")}function r(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}})(ft||(ft={}));const yt={};function mt(e,t){yt[e]=t}function ut(e,...t){const o=yt[e];return o&&o(t)}function pt(e,t,...o){const s=ut(t,...o);return s?s.format(bt.modify(s.toString(typeof e=="string"?gt(e,t,o):e))).value:""}function gt(e,t,...o){const s=ut(t,o);return s?s.fromString(s.unformat(bt.modify(e)).value):undefined}class kt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(e){return e}allowed(e,t){return t.value.length<3&&e>="0"&&e<="9"}}mt("card-csc",(()=>new kt));class vt{toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString().padStart(2,"0")+e[1].toString().padStart(2,"0"):""}fromString(e){return typeof e=="string"&&e.length==4?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(2))]:undefined}format(e){let t=e;if(e.value.length>0&&!e.is(0,"0","1"))t=t.prepend("0");if(t.value.length>1)t=t.insert(2," / ");return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(e){return e.delete(" / ")}allowed(e,t){return t.value.length<4&&e>="0"&&e<="9"}}mt("card-expires",(()=>new vt));class xt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){const t=wt(e.value);const o=e.map(((e,o)=>(o!=0&&o%4==0&&o+1<t.length[0]?" ":"")+e));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:t.length.slice(1),pattern:t.verification,classes:["issuer-"+t.icon]}}unformat(e){return e.delete(" ")}allowed(e,t){const o=wt(t.value);return e>="0"&&e<="9"&&t.value.length<o.length[0]}}mt("card-number",(()=>new xt));function wt(e){let t=St;for(const o in Ct)if(Object.prototype.hasOwnProperty.call(Ct,o)&&Ct[o].identification.test(e)){t={...St,name:o,...Ct[o]};break}return t}const St={name:"unknown",verification:/^\d{19}$/,identification:/^\d/,length:[16,16,19],icon:"generic"};const Ct={amex:{verification:/^3[47][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{3}$/,identification:/^3[47]/,length:[15,18,18],icon:"amex"},dankort:{verification:/^(5019)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{2}$/,identification:/^3(?:0[0-5]|[68][0-9])/,length:[14,17,17],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^6(?:011|5[0-9]{2})/,length:[16,19,19],icon:"generic"},electron:{verification:/^((4026|4405|4508|4844|4913|4917)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|((4175)\s(00)[0-9]{2}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(4026|417500|4405|4508|4844|4913|4917)/,length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(636)/,length:[16,19,19],icon:"generic"},jcb:{verification:/^((?:2131|1800)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|(35[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(?:2131|1800|35\d{3})/,length:[16,19,19],icon:"generic"},unionpay:{verification:/^(62|88)[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(62|88)/,length:[16,19,19],icon:"generic"},maestro:{verification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)/,length:[16,19,19],icon:"maestro"},mastercard:{verification:/^5[1-5][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^5[1-5][0-9]/,length:[16,19,19],icon:"mastercard"},visa:{verification:/^4[0-9]{3}\s[0-9]{4}\s[0-9]{4}\s[0-9](?:[0-9]{3})?$/,identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var zt;(function(e){function t(e){let t;switch(e){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":t="dd/mm/YYYY";break;case"en-US":t="mm/dd/YYYY";break;case"et-EE":case"de-AT":case"de-DE":case"he-IL":case"is-IS":case"lv-LV":case"pl-PL":case"ru-RU":case"fi-FI":t="dd.mm.YYYY";break;case"hi-IN":case"en-IN":t="dd-mm-YYYY";break;default:t="YYYY-mm-dd";break}return t}e.fromLocale=t;function o(e){let t;switch(e){case"dd/mm/YYYY":t="en-GB";break;case"mm/dd/YYYY":t="en-US";break;case"dd.mm.YYYY":t="de-DE";break;default:t="sv-SE";break}return t}e.toLocale=o;function s(e){return typeof e=="string"&&(e=="YYYY-mm-dd"||e=="dd/mm/YYYY"||e=="dd.mm.YYYY"||e=="mm/dd/YYYY")}e.is=s})(zt||(zt={}));class Tt{constructor(e){this.separator=e}unformat(e){return e.delete(this.separator)}validMonth(e,t,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(t),0).getDate()>=Number.parseInt(e)}}const jt={};function _t(e,t){jt[e]=t}mt("date",(e=>{const t=e&&e.length>0?e[0]:undefined;const o=zt.is(t)?t:zt.fromLocale(t);const s=jt[o]??jt["YYYY-mm-dd"];return s()}));class Lt extends Tt{constructor(e){super(e)}toString(e){return v.is(e)&&e.length==10?[e.substring(8,10),e.substring(5,7),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e?.length==8?`${e.substring(4,8)}-${e.substring(2,4)}-${e.substring(0,2)}`:undefined;return v.is(t)?t:undefined}format(e){let t=e.delete(this.separator);if(t.get(0,1)>"3")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>"1")t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|[12][0-9]|3[01])","(0[1-9]|1[012])","\\d{4}$"].join(this.separator))}}allowed(e,t){return t.selection.start==1&&t.value[0]=="3"?e>="0"&&e<="1":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==2?e>="0"&&e<="9"&&(e=="0"||e=="1"||this.validMonth(t.value.substring(0,2),e)):t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value[2]+e):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value.substring(2,4),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9"}}_t("dd.mm.YYYY",(()=>new Lt(".")));_t("dd/mm/YYYY",(()=>new Lt("/")));_t("dd-mm-YYYY",(()=>new Lt("-")));class At extends Tt{constructor(e){super(e)}toString(e){return v.is(e)&&e.length==10?[e.substring(5,7),e.substring(8,10),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e.length==8?`${e.substring(4,8)}-${e.substring(0,2)}-${e.substring(2,4)}`:undefined;return v.is(t)?t:undefined}format(e){let t=e.delete(this.separator);if(t.get(0,1)>"1")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>(t.get(0,2)=="02"?"2":"3"))t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])","\\d{4}$"].join(this.separator))}}allowed(e,t){const o=t.selection.start==1&&t.value[0]=="1"?e>="0"&&e<="2":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value[2]+e,t.value.substring(0,2)):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(2,4),t.value.substring(0,2),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9";return o}}_t("mm/dd/YYYY",(()=>new At("/")));class It extends Tt{constructor(e){super(e)}toString(e){return typeof e!="string"?"":e}fromString(e){const t=e?.length==8?`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`:undefined;return v.is(t)?t:undefined}daysInMonth(e){const t=`${e.substring(0,4)}-${e.substring(4,6)}-01`;return v.is(t)?+v.lastOfMonth(`${e.substring(0,4)}-${e.substring(4,6)}-01`).substring(8,10):31}format(e){let t=e.delete(this.separator);if(t.value.length>3){t=t.insert(4,this.separator);if(t.get(5,1)>"1")t=t.insert(5,"0");if(t.value.length>6){t=t.insert(7,this.separator);if(t.get(8,1)>this.daysInMonth(e.value).toString().substring(0,1))t=t.insert(8,"0")}}return{...t,type:"text",length:[0,10],pattern:new RegExp(["^\\d{4}","(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])$"].join(this.separator))}}allowed(e,t){const o=this.daysInMonth(t.value);return t.selection.start==5&&t.value[4]=="0"?e>="1"&&e<="9":t.selection.start==5&&t.value[4]=="1"?e>="0"&&e<="2":t.selection.start==7&&t.value[6]=="0"?e>="1"&&e<="9":t.selection.start==7&&(t.value[6]=="2"&&o<30||t.value[6]=="3")?e>="0"&&e<=o.toString().substring(1):t.selection.start<8&&e>="0"&&e<="9"}}_t("YYYY-mm-dd",(()=>new It("-")));class Et{toString(e){return typeof e=="string"?e:""}fromString(e){let t=e.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(t?.match(/-\d$/))t=t.substring(0,t.length-1)+"0"+t.substring(t.length-1,t.length);t=!t.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:t+o.substring(t.length,o.length);return x.is(t)?t:undefined}format(e){let t=Ot(e);if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))t=t.insert(10," ");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))t=t.replace(11,12,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))t=t.insert(11,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))t=t.insert(11,"23:5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))t=t.replace(10,13,"00:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))t=t.insert(12,"3:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))t=t.insert(12,"3:5").append(":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))t=t.insert(13,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))t=t.insert(14,"5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))t=t.insert(16,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))t=t.insert(17,"5");return{...t,type:"text",length:[0,19],pattern:/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/}}unformat(e){return e}allowed(e,t){return t.value.length<19&&(e>="0"&&e<="9"||e=="-"||e==":"||e=="."||e==" ")}}mt("date-time",(()=>new Et));function Ot(e,t){let o=e;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Dt(o.value,t))o=o.replace(0,10,Dt("31"+o.value.substring(2,10),t)?"31"+o.value.substring(2,10):Dt("30"+o.value.substring(2,10),t)?"30"+o.value.substring(2,10):Dt("29"+o.value.substring(2,10),t)?"29"+o.value.substring(2,10):Dt("28"+o.value.substring(2,10),t)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Dt(o.value,t))o=o.replace(0,10,Dt(o.value.substring(0,3)+"31"+o.value.substring(5,10),t)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Dt(o.value.substring(0,3)+"30"+o.value.substring(5,10),t)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Dt(o.value.substring(0,3)+"29"+o.value.substring(5,10),t)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Dt(o.value.substring(0,3)+"28"+o.value.substring(5,10),t)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(e.value.length==10){if(!Dt(o.value)){o=o.replace(0,10,Dt(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Dt(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Dt(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Dt(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return e}}return o}function Dt(e,t){let o;let s;let a;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(3,5));a=parseInt(e.substring(0,2));return o&&s&&a?a>0&&Mt(o,s)>=a:false;case"mm/dd/YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(0,2));a=parseInt(e.substring(3,5));return o&&s&&a?a>0&&Mt(o,s)>=a:false;default:o=parseInt(e.substring(0,4));s=parseInt(e.substring(5,7));a=parseInt(e.substring(8,10));return o&&s&&a?a>0&&Mt(o,s)>=a:false}}function Mt(e,t){let o;switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:o=31;break;case 4:case 6:case 9:case 11:o=30;break;case 2:o=28;break}return o}class Rt{toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString()+" / "+e[1].toString():typeof e=="number"?e.toString():""}fromString(e){return typeof e=="string"&&e.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(e.length-2))]:typeof e=="string"&&e.match(/\d{1,2}/)?Number.parseInt(e):undefined}format(e){let t=e;if(e.match(/^\d\/$/))t=e.replace(1,2," / ");else if(e.match(/^\d{1,2}\s$/))t=e.replace(e.value.length-1,e.value.length," / ");else if(e.match(/^[\D.]+\/[\D.]+$/))t=e.delete(0,e.value.length);else if(e.match(/^[\D.]+\/[\D.]+\d$/))t=e.delete(0,e.value.length-1);else if(e.match(/^[\D.]+\/[\D.]+\d\d$/))t=e.delete(0,e.value.length-2);else if(e.match(/^[\D.]+\//))t=e.delete(0,e.value.search("/")+1);else if(e.match(/^\d\d\/$/))t=e.replace(2,3," / ");else if(e.match(/^\d\d\s+\/$/))t=e.delete(2,e.value.length);else if(e.match(/^\d\s+\/$/))t=e.delete(1,e.value.length);else if(e.match(/^\d\d\s\s+\/\s*$/))t=e.replace(2,e.value.length," / ");else if(e.match(/^\d\s\s+(\/\s*)?$/))t=e.replace(1,e.value.length," / ");else if(e.match(/^\d\s\/\s\d\d.+$/))t=e.delete(6,e.value.length);else if(e.value.length>1&&e.value.indexOf("/")<1)t=e.insert(2," / ");else if(e.value.length>1&&e.value.split("/").length>2)t=e.delete(e.value.lastIndexOf("/"));else if(e.value.length==1&&!e.isDigit(0))t=e.delete(0);return{...t,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(e){return e}allowed(e,t){return t.value.length<7&&(e>="0"&&e<="9"||e=="/"||e==" ")}}mt("divisor",(()=>new Rt));class $t{constructor(){this.separator=":";this.patterns={allowed:/^-?\d*(?::{0,1}[0-5]{0,1}[0-9]{0,1}|[.,]{0,1}[0-9]{0,2})$/,extract:/^(-?)(\d*)([:,.]{0,1})([0-9]{0,2})$/,zeros:/^(-?)(0+)(?:[1-9]|0[,.:]?)/}}toString(e){let t;if(!w.is(e))t="";else{const o=w.normalize(e);if(!o.minutes&&!o.hours)t="";else if(this.separator!=":")t=(+w.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)t=o.hours.toString(10);else if(!o.hours&&o.minutes)t=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else t=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return t}fromString(e){let t;const o=e.match(this.patterns.extract);if(!o)t=undefined;else{const[e,s,a,i,n]=o;this.separator=i;if(i==":"){const e={hours:parseInt(a),minutes:parseInt(n)};const o=s?-1:1;t=w.normalize({hours:!Number.isFinite(e.hours)?0:e.hours*o,minutes:!Number.isFinite(e.minutes)?0:e.minutes*o})}else{const o=parseFloat(e.replace(",","."));t=w.normalize({hours:!Number.isFinite(o)?0:o})}}return t}format(e){let t=e;const[,o,s,a]=e.match(this.patterns.extract)??[];if(!s&&a)t=t.insert(o?1:0,"0");const i=t.match(this.patterns.zeros);if(i){const[,e,o]=i;if(o){const s=e?1:0;t=t.delete(s,o.length+s)}}return{...t,type:"tel",pattern:this.patterns.allowed}}unformat(e){const[,,,t]=e.match(this.patterns.extract)??[];if(t)this.separator=t;return e}allowed(e,t){const o=t.value.slice(0,t.selection.start)+e+t.value.slice(t.selection.end);return!!o.match(this.patterns.allowed)}}mt("duration",(()=>new $t));class Pt{constructor(e){this.settings=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}mt("email",(e=>new Pt(e||{})));class Ht{constructor(e,t){this.settings=e;this.mode=t}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}split(e){let t;let o="";return e.map(((e,s)=>{const a=s!==0&&e===e.toUpperCase()&&isNaN(+e)&&o!==" "&&this.isSymbolAllowed(e)&&t?" "+e:(e==="_"||e==="-")&&o!==" "?" ":e===" "&&o===" "||!this.isSymbolAllowed(e)||!t&&!this.isSymbolLetter(e)&&this.mode!=="code"?"":e;!t&&(t=this.isSymbolLetter(e));this.isSymbolAllowed(e)&&(o=e);return a})).toLower().delete("-").delete("_")}isSymbolLetter(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isSymbolAllowed(e){return this.isSymbolLetter(e)||e>="0"&&e<="9"||e===" "}format(e){const t=this.split(e);let o;switch(this.mode){case"code":o=t.delete(" ");break;case"pascal":case"camel":let s;o=t.map(((e,t)=>{const o=t===0&&this.mode==="pascal"||s?e.toUpperCase():e.toLowerCase();s=e==" ";return o})).delete(" ");break;case"snake":case"attribute":o=t.replace(" ",this.mode==="snake"?"_":"-");break;default:o=e}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(e){return e}allowed(e,t){return this.isSymbolLetter(e)||e>="0"&&e<="9"&&(this.mode=="code"||t.value.length>0)||e=="_"&&this.mode=="snake"&&t.value.length>0||e=="-"&&this.mode=="attribute"&&t.value.length>0}}mt("identifier-code",(e=>new Ht(e||{},"code")));mt("identifier-pascal",(e=>new Ht(e||{},"pascal")));mt("identifier-snake",(e=>new Ht(e||{},"snake")));mt("identifier-camel",(e=>new Ht(e||{},"camel")));mt("identifier-attribute",(e=>new Ht(e||{},"attribute")));class Nt{constructor(e){this.country=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){let t=e;const o=(new Date).getFullYear().toString();if(e.value.length>1&&e.get(0,2)!="19"&&e.get(0,2)!="20")t=t.prepend(e.get(0,2)>o.substring(2,4)?"19":"20");if(t.value.length>=8)t=t.insert(8,"-");return{...t.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(e){return e.delete("-")}allowed(e,t){return t.value.length<13&&e>="0"&&e<="9"}}mt("identity-number",(e=>new Nt(e&&e.length>0?e[0]:undefined)));class Ft{toString(e){return typeof e=="number"?e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseInt(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t:undefined}format(e){return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}unformat(e){return e}allowed(e,t){return e>="0"&&e<="9"}}mt("integer",(()=>new Ft));class Ut{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"password",autocomplete:"current-password"}}unformat(e){return e}allowed(e,t){return true}}mt("password",(()=>new Ut));class Wt{toString(e){return typeof e=="number"?(e*100).toString():""}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t/100:undefined}format(e){return{...e.value?e.suffix(" %"):e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(e){return e.delete(" %")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")}}mt("percent",(()=>new Wt));const Yt=[{countryCode:"+46",areaCodes:["011","0120","0121","0122","0123","0125","013","0140","0141","0142","0143","0144","0150","0151","0152","0155","0156","0157","0158","0159","016","0171","0173","0174","0175","0176","018","019","021","0220","0221","0222","0223","0224","0225","0226","0227","023","0240","0241","0243","0246","0247","0248","0250","0251","0253","0258","026","0270","0271","0278","0280","0281","0290","0291","0292","0293","0294","0295","0297","0300","0301","0302","0303","0304","031","0320","0321","0322","0325","033","0340","0345","0346","035","036","0370","0371","0372","0380","0381","0382","0383","0390","0392","0393","040","0410","0411","0413","0414","0415","0416","0417","0418","042","0430","0431","0433","0435","044","0451","0454","0455","0456","0457","0459","046","0470","0471","0472","0474","0476","0477","0478","0479","0480","0481","0485","0486","0490","0491","0492","0493","0494","0495","0496","0498","0499","0500","0501","0502","0503","0504","0505","0506","0510","0511","0512","0513","0514","0515","0520","0521","0522","0523","0524","0525","0526","0528","0530","0531","0532","0533","0534","054","0550","0551","0552","0553","0554","0555","0560","0563","0564","0565","0570","0571","0573","0580","0581","0582","0583","0584","0585","0586","0587","0589","0590","0591","060","0611","0612","0613","0620","0621","0622","0623","0624","063","0640","0642","0643","0644","0645","0647","0650","0651","0652","0653","0657","0660","0661","0662","0663","0670","0671","0672","0680","0682","0684","0687","0690","0691","0692","0693","0695","0696","08","090","0910","0911","0912","0913","0914","0915","0916","0918","0920","0921","0922","0923","0924","0925","0926","0927","0928","0929","0930","0932","0933","0934","0935","0940","0941","0942","0943","0950","0951","0952","0953","0954","0960","0961","0970","0971","0973","0975","0976","0977","0978","0980","0981","010","020","0378","070","072","073","076","079","0710","0740","0746","0749","0741","0742","0743","0744","0745","0747","075","077","078","0900","0939","0944","0969","099"]}];class Bt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){let t=e;if(t.value.startsWith("+")){for(const e of Yt)if(t.value.startsWith(e.countryCode))for(let o of e.areaCodes){o=o.substring(1);if(t.value.startsWith(e.countryCode+o)&&!t.value.includes("-"))t=t.insert(e.countryCode.length,"-").insert(e.countryCode.length+1+o.length,"-")}}else{const e=Yt[0];for(const o of e.areaCodes)if(t.value.startsWith(o)&&!t.value.includes("-")){t=t.insert(o.length,"-");t=t.delete(0);t=t.insert(0,"-").insert(0,e.countryCode)}}if(t.value.includes("-")){const e=t.value.indexOf("-",t.value.indexOf("-")+1)+1;const o=t.value.substring(e,t.value.length+1).length;switch(o){case 4:t=t.insert(e+2," ");break;case 5:t=t.insert(e+3," ");break;case 6:t=t.insert(e+2," ");t=t.insert(e+5," ");break;case 7:t=t.insert(e+3," ");t=t.insert(e+6," ");break;case 8:case 9:t=t.insert(e+3," ");t=t.insert(e+7," ");break}if(o>9){const s=Math.ceil(o/3)-1;if(s>0){for(let o=0;o<s;o++){const s=o*3+3+o;t=t.insert(s+e," ")}}}}return{...t,type:"tel",autocomplete:"tel"}}unformat(e){return e.delete(" ").delete("-")}allowed(e,t){return e>="0"&&e<="9"||t.selection.start==0&&e=="+"&&!t.value.includes("+")}}mt("phone",(()=>new Bt));class qt{constructor(e){this.country=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){const t=!e.value.includes(" ")&&e.value.length>=4?e.insert(3," "):e;return{...t.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(e){return e.delete(" ")}allowed(e,t){return t.value.length<=5&&e>="0"&&e<="9"}}mt("postal-code",(e=>new qt(e&&e.length>0?e[0]:undefined)));class Gt{constructor(e){this.currency=e}toString(e){return typeof e=="number"?isNaN(e)?"":e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return t!=undefined&&!isNaN(t)?t:undefined}format(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):bt.copy(e);const o=this.currency&&S.decimalDigits(this.currency);if(!t.value.includes(".")&&o&&Math.abs(Number.parseFloat(t.value))>0)t=t.suffix(".0");let s=t.value&&t.value.includes(".")?t.value.indexOf("."):undefined;if(s==0){t=t.prepend("0");s++}if(s!=undefined){const e=s+1+(o??2)-t.value.length;t=e<0?t.truncate(t.value.length+e):t.suffix("0".repeat(e))}else s=t.value.length;const a=s<=0?0:Math.ceil(s/3)-1;for(let e=0;e<a;e++){const o=s-(a-e)*3;t=t.insert(o," ");s++}if(t.match(/^[0\s]{2,}$/))t=t.replace(0,t.value.length,"0");else if(t.match(/^[0\s]{2,}(\s\w{3}){1}$/))t=t.replace(0,t.value.length-4,"0");t=this.currency&&(t.value.length>1||t.value.length==1&&t.value.charAt(0)!=".")?t.suffix(" "+this.currency):t;return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}unformat(e){return this.currency?e.delete(" ").delete(""+this.currency):e.delete(" ")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")}}mt("price",(e=>new Gt(e&&e.length>0?e[0]:undefined)));class Kt{constructor(e){this.settings=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"text",...this.settings}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}mt("text",(e=>new Kt(e||{})));class Vt{toString(e){return typeof e=="string"?"#"+e:""}fromString(e){return e?"#"+e:undefined}format(e){const t=e.delete("#");return{...t.value?t.prepend("#"):t,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(e){return e.delete("#")}allowed(e,t){return(e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F")&&t.value.length<6}}mt("hex-color",(()=>new Vt));const Jt=".sc-smoothly-display-h{display:block;white-space:wrap}[hidden].sc-smoothly-display-h{display:none}.sc-smoothly-display-h>div.sc-smoothly-display{opacity:0.6;font-size:.8rem}";const Xt=Jt;const Zt=class{constructor(t){e(this,t);this.type=undefined;this.label=undefined;this.value=undefined;this.currency=undefined;this.country=undefined;this.format=undefined}render(){var e,o;let s;const a=this.type;switch(a){default:s=pt(this.value,a);break;case"email":s=t("a",{key:"3b628fa629ae2afd53c4e825e03a83a7c89b2f06",href:"mailto:"+this.value},pt(this.value,a));break;case"phone":s=t("a",{key:"999bad3f103712c92c6270c5b565d0f9b76ee2da",href:"tel:"+this.value},pt(this.value,a,this.country));break;case"postal-code":s=pt(this.value,a,this.country);break;case"price":s=pt(this.value,a,this.currency);break;case"date":s=(e=ut(this.type,Qt()))===null||e===void 0?void 0:e.toString(this.value);break;case"duration":s=pt(this.value,a)||"0";break;case"date-time":s=this.format?x.localize(this.value,this.format,Qt()):(o=ut(this.type,Qt()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[t("div",null,this.label),s]:s}};function Qt(){const e=navigator.language;return C.is(e)?e:z.is(e)?C.toLocale(e):undefined}Zt.style=Xt;const eo=".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";const to=eo;const oo=class{constructor(t){e(this,t);this.amount=undefined;this.currency=undefined;this.toInteger=false}format(e){const t=3;const o=2;const s=S.decimalDigits(this.currency)?S.decimalDigits(this.currency):o;let a=e.length;let i;let n=e;if(n=="")n="0";if(e.includes(".")){i=e.indexOf(".");if(i==0){n="0"+n;i++}a=i;n=n.padEnd(i+s+1,"0");n=n.substring(0,i+s+1)}else if(!this.toInteger){n=n+".";i=n.length-1;n=n.padEnd(i+s+1,"0")}const l=Math.ceil(a/t)-1;if(l>0){for(let e=0;e<l;e++){const o=a-(l-e)*t;n=n.slice(0,o)+" "+n.slice(o,n.length);a++}}return n}render(){return[typeof this.amount=="number"?this.format(this.amount.toString()):this.format(this.amount)," ",this.currency]}};oo.style=to;const so=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[t("main",{key:"21fb2b79f1e444d11b25150a336ce64e74f94386"},t("fieldset",{key:"8b8ef87a351e4cb8754f44f74ad31185db62b0cb"},t("h2",{key:"e466ccf59ad1f4e2a41c8dd1b1d85da6b37c8f95"},"Smoothly display"),t("dl",{key:"acb593cb9a73566cc3defcc55eede3a7710a42b0"},t("dt",{key:"9ccdcb7f5e3f55ea39d78b8ed6e75edb5f4a4c96"},"Duration"),t("dd",{key:"b7c93ccc874874faabe5e313ba204795a19adfc0"},t("div",{key:"d6e3d99849191e6d8effae216348bd634a4114b2"},t("div",{key:"bb64f8e9518218a499d0e52b5df759b31093e0e0"},t("smoothly-display",{key:"151b7ca20847a1e41701d3c93ad780a222f990fb",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),t("div",{key:"72035e5cab01fd9a06d2782ba1255c2f86cbfdac"},t("smoothly-display",{key:"0f4723aac6e41aa4a7e29b0456e4661066b28985",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),t("div",{key:"1346fe1098e87dab09ae4268fab19f7eb18cd949"},t("smoothly-display",{key:"5e70c627fe2dc9e1d65cfec40fa63a36d419466f",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),t("div",{key:"24beed45ab0c2cb2703d97ddecb72b767f19d989"},t("smoothly-display",{key:"a57ee2a431537bffe6d8a630c2466e342a10f089",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),t("div",{key:"44f65151109d00905e996e9205d71588ecabaea3"},t("smoothly-display",{key:"5c0a01aca2d99cb82c66701d4c7d7de26043d987",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),t("div",{key:"18cbc082f3d8f71f3ba6c6b7eb3a977b13d45268"},t("smoothly-display",{key:"a5bbf74186f51ce22f6eceb8396f215e7b0fc297",style:{display:"inline"},type:"duration",value:{}})," h"),t("div",{key:"1d2361cec57f38f40636641702f92100ebcd9122"},t("smoothly-display",{key:"a561ef92252a23064e7f7f7ffca3314a099329f2",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),t("dt",{key:"ab7b23c9c2ad57ceb6a2ce75d8f0a4e93439e610"},"text"),t("dd",{key:"8913158f3f3a5c4012ae94a3f1b38442fcb5aff2"},t("smoothly-display",{key:"d499f8496a9f4097981a467ea5ac35a5df2de08c",type:"text",value:"text"})),t("dt",{key:"bb6c8188cf259e6f02e97b6cc9eb501884511273"},"postal code"),t("dd",{key:"f2cfd26983f702edfae52397d2fb7922392c09cd"},t("smoothly-display",{key:"59b41529a331cd7628a3842f78c1fbdfc2dc7908",type:"postal-code",value:"752 31"})),t("dt",{key:"404965ffbb4dd6f63875513a892a37dec659a12c"},"password"),t("dd",{key:"42cc9622653f3d3c6e0cbbff1869c9f1d0cfebd5"},t("smoothly-display",{key:"d19df95ba738913d47cf10f0f3354a54b5497d6c",type:"password",value:"password"})),t("dt",{key:"9411e0684eeb446c24c8e0cccb119bdc1c9479ef"},"email"),t("dd",{key:"192e5797670b583b9a7b25fa04ac3f1bc904e682"},t("smoothly-display",{key:"493846541998fa4e3439c5381a2de3bf86418fe4",type:"email",value:"test@example.com"})),t("dt",{key:"ca04a64ab04e2442422bc3c700551a90f4ad7a72"},"price"),t("dd",{key:"2c7d5555e7a9695929fc4abcf5ec8b555982989f"},t("smoothly-display",{key:"27e5a4173aaf1ee97b0d825be2eeebe95289279a",type:"price",value:"13.37",currency:"SEK"})),t("dt",{key:"aef33d8ffa1c7d010e4edf3e0f0bed386dc63733"},"display amount without decimals"),t("dd",{key:"1ccf6b3296d9efb9c522a47a1c24b4e9918c1406"},t("smoothly-display-amount",{key:"519367a674f18e73164ed2586635955d2ba5b93d",amount:200,currency:"SEK",toInteger:true})),t("dt",{key:"0488bc4933efc543e9b5612cf14fbcb81d30661c"},"display amount with decimals if they are set, otherwise no decimal"),t("dd",{key:"ac99e5e3f4ea547832103dd93429138fb246f95d"},t("smoothly-display-amount",{key:"6bd8456d3ac2d2d3daeac6ea2884da0b9ea7f85a",amount:200.2,currency:"SEK",toInteger:true})),t("dt",{key:"0b189082a2cc51f2cef3f6040c30c28b2ecfa1e9"},"display amount with decimals"),t("dd",{key:"5f69bf41d78f1b1d136903a55581612335360453"},t("smoothly-display-amount",{key:"bcedebe17cf2d8077c88142bf0b4f3272453711a",amount:200.2,currency:"SEK"})),t("dt",{key:"f8f639f58cc65ad05494b09247c620a126142ff4"},"percent"),t("dd",{key:"8f6530be0744fee54ef271b3444b3554e0d6b862"},t("smoothly-display",{key:"5d5acd226a6fbb3f2e7d3380cb501781909fa7ce",type:"percent",value:"42"})),t("dt",{key:"0d984e0e64c252423d37933efdfbf62dd41deb85"},"phone"),t("dd",{key:"7aeae77595e7fb6847c4e40c28db6932d3d80bc9"},t("smoothly-display",{key:"9f02027733c6db61515bcc1823974c70fe423cd6",type:"phone",value:"0101881108"})),t("dt",{key:"b984492258b6a5e2b4dfad55114a08fa25b36ef9"},"card number"),t("dd",{key:"0b10f1cc15c88f7d6ba2f6421a348d4a0efb8c64"},t("smoothly-display",{key:"2948f5f2783c264395a23b144727282b0649d45f",type:"card-number",value:"4111111111111111"})),t("dt",{key:"b64a7e94a6b7ca231cd2b946ee27b3474cc5dfc7"},"card expires"),t("dd",{key:"cfe3d136e5d3d6622de04c9201d179bfb4672938"},t("smoothly-display",{key:"7365b74dd4818fc6cbc1098243a20fd74b3d3690",type:"card-expires",value:"7/22"})),t("dt",{key:"52e5d20d8995ee127bb8222e32d63d353bac9936"},"card csc"),t("dd",{key:"4678dba41d8c6d00cb3190cff31e0981df32ee74"},t("smoothly-display",{key:"f2e165095b74940160a8df2975f2d177bffacf05",type:"card-csc",value:"987"})),t("dt",{key:"1196622dc3d779d759a6c8b9de8c39dc342a04c1"},"date"),t("dd",{key:"0a2aa0d887c0f662eb8451947b961bb21a761aa3"},t("smoothly-display",{key:"a616ea8e0574c14cabe100620d9a9ecf48597d8c",type:"date",value:"2022-07-07"})),t("dt",{key:"68609294bde9f4790712512cc82d99f01434cd3c"},"date time"),t("dd",{key:"39b9dea5c4a235283fd1667c2954de83cb048b55"},t("smoothly-display",{key:"f1a98bd0f798155ecc674e66d45b1f18ff2ed751",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"010031fae71fe222ab2d528c899512784ca21970"},t("smoothly-display",{key:"b375ce742eb9360df12cf2c66c3ab3aebaf1c394",type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"8cee2f68326e56036e0c8b534d1fde663b12cce1"},t("smoothly-display",{key:"c0770b51d3945e7d2de2aab0828b94c9bb15d225",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"96055e5c2dabd5405c9abddce2e08968e9eaadc9"},t("smoothly-display",{key:"d60e6b6eb84d57ea00feb2d457b5cd564dd3e506",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"e2694df2828884cbfdcadb61560c11de4db12a3c"},t("smoothly-display",{key:"60ca7111a02fd2f8ae446ed47ebc7aa72f6fcd90",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"cf6d77ee7b2e40a85fc5ecc461d53e64e4c75d63"},t("smoothly-display",{key:"fe0e73a5605455fb03ac3d0e883ae5a552173a57",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"762672939d4c1eefb371fcda3a738f55374ae64d"},t("smoothly-display",{key:"5a74b9a9714e3de668cfc5d46cae215c58489dc6",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),t("dt",{key:"f356d28db5bb573c2ff82bbfb794d29b66ecda23"},"Display amount"),t("dd",{key:"f464334b8b15f49223028a84983ed513a79fdafe"},t("smoothly-display-amount",{key:"7c4f09f8eb3e6b1b8d0ee9a56efc7f991335f6ae",currency:"SEK",amount:"1289.5"})))),t("h2",{key:"fcbda1c4a2b8bd411813bd1f82aa8f7883ab6196"},"With labels"),t("dd",{key:"adc9d7239a854c1f6d75ef2f070a988cfbe72be3"},t("smoothly-display",{key:"169e9ce713bb556a263839055f210608fc5b1398",label:"Today",type:"date",value:v.now()}),t("smoothly-display",{key:"e8b301eb18a9573277a053a645e5ea55fc50d0b8",label:"Total amount",type:"price",currency:"SEK",value:6789}),t("smoothly-display",{key:"2e0230fe4247c6f3b3b62dbc74aa38094d80ad66",label:"Total amount",type:"price",currency:"GBP",value:678.9})),t("fieldset",{key:"cd2e32fd25edf9c376a9df946b3c483af1e9de50"},t("h2",{key:"d5ea111411bd4907b06bb8e39a486ace1e044b2c"},"Test of different kinds of notifier"),t("button",{key:"fa98d9428a5a3f23c6f10aa67ce309743345a1b7",onClick:()=>this.noticeWarning(k.warn("This is a test warning notice."))},"warning"),t("button",{key:"2a70fc1b6877fe4f5ff34217b6c3634eae3950d3",onClick:()=>this.noticeWarning(k.succeeded("This is a test success notice."))},"success"),t("button",{key:"e2e496c438fe702aab7491d0d69b48e3a797e7c4",onClick:()=>this.noticeWarning(k.failed("This is a test danger notice."))},"danger"),t("button",{key:"7ce3c7267f78cf8f0af170ca943b656250815cf5",onClick:()=>this.noticeWarning(k.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),t("button",{key:"d2cdaadb1e4c0dcdea7a8e6b397cb8e647a61e73",onClick:()=>this.noticeWarning(k.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),t("fieldset",{key:"981a8e6bfdfe273a53844d0a6070032afd0a4561"},t("h2",{key:"fe68cb5ee3f1f64af08a12a8302da3caa5c60f9b"},"Smoothly spinner"),t("div",{key:"1bceae17a2d0765bed5777654384498225df2776",style:{width:"fit-content"}},"Large",t("smoothly-spinner",{key:"d5a84dfd2c6d85190863164134f91aeb9aadbcaa",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),t("div",{key:"299a6c268756e56215b5a3a48a9ae52bd29f3fc8",style:{width:"fit-content"}},"Medium",t("smoothly-spinner",{key:"3775dd5f4c8038753f194fd5883463420ef73d4c",size:"medium"})),t("div",{key:"0f3589f051cf7fa1de881cfad1213ac93f9dc857",style:{width:"fit-content"}},"Small",t("smoothly-spinner",{key:"9b7af2a0cd970de6c5c28e245d3c74e4737b284a",size:"small"})),t("div",{key:"aade413500a50ba9ac55e4047857f61a2f8c57fd"},"Icon sized spinner on button",r.types.map((e=>t("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&t("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&t("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),t("h3",{key:"a3210a74d9cf2d7d74226d18218fedaad783e5f4"},"Spinner with overlay"),t("div",{key:"afaf5c22a938808ab68a91ae1aca975fdeed54a7",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",t("smoothly-spinner",{key:"90be46809c710b3958322ec5ce1521c6253b23ee",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),t("div",{key:"0e261e6dd8306aed2b15a9aed2a4421227e4f3af",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",t("smoothly-spinner",{key:"d363c43da6cfe0dc1ae2458e995d1f454da3d083",overlay:true,color:"secondary",size:"medium"})),t("div",{key:"58670a4d38f46faf5ac6fe687edcb98cb03d3421",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",t("smoothly-spinner",{key:"227934aaeb1e59f4c2ea09d0acbdb1c06e0b5f86",overlay:true,size:"small"}))),t("fieldset",{key:"4e46252a2172815fcb77c1c7f272e30e27c0213d"},t("h2",{key:"a1ecf6dc5dd87afec362f20d3d54fd165398ceed"},"Smoothly summary"),t("smoothly-summary",{key:"a16ecad214007e1ea23fdc376b079da0ab4db3b4"},t("p",{key:"63380f66d73b288fc01701ae1d41c6be0b07f0af",slot:"summary"},"Some title"),t("p",{key:"18da9552e8b9d7f6c16364d2d2f02eb4f60ccf99",slot:"content"},"Some content")),t("smoothly-summary",{key:"d8dbde1853c16d5f0ae2eced0c56371643fcacdd",size:"large"},t("p",{key:"f284356d76d1666bf9566149c488a13c3396f3d7",slot:"summary"},"Some title"),t("p",{key:"a5dd6a3c84e904f9f9c749486d934f3e742021a7",slot:"content"},"Some content")),t("smoothly-summary",{key:"3f1f463a33c9f619104d97e371d18c05beee5589",color:"danger",fill:"clear"},t("div",{key:"ba7a644ba1924121bd42d3c8d665910e0cff2fdb",slot:"summary",style:{display:"flex",gap:"0.3rem"}},t("span",{key:"38e2f7a939cf53db9f49fbef3e6bb3b02308faf0"},"Person"),t("smoothly-icon",{key:"3b6ca21e4a8139f24c4d4d51422a86f2f3890af4",name:"person",color:"light",fill:"clear",size:"tiny"})),t("p",{key:"471a5d6d69d74e7b258c4992fb07c2f9d4bf0eb7",slot:"content"},"Some person information.")),t("smoothly-summary",{key:"c9af30bde457f42f1415d7065b96c15d82c3b966",color:"danger",fill:"clear",open:true},t("p",{key:"d951da5ca92a2e4fc18d287f76048a0087563131",slot:"summary"},"Some other title"),t("p",{key:"9ce784aeb0b359d092f8090539443c529590504d",slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.")),t("h2",{key:"3ebc3666946129ca32474da5dfad2925cbcd2a2e"},"Label"),ao.map((e=>t("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name)))))]}};const ao=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];class io{filter(e){return e.filter((e=>this.is(e)))}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}const no=[e=>e instanceof io?e:undefined];function lo(e){no.push(e)}let ro;function co(e){ro=e}function ho(e){let t;for(const o of no){t=o(e);if(t)break}return t||ro}class bo extends io{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(e){return true}toString(){return""}}co(new bo);class fo extends io{constructor(e){super();this.criteria=e;this.precedence=50;this.class="Any"}is(e){return e&&typeof e=="object"&&Object.getOwnPropertyNames(e).some((t=>this.criteria.is(e[t])||this.is(e[t])))}toString(){return this.criteria.stringify(this.precedence)}}class yo extends io{constructor(e){super();this.precedence=40;this.class="And";this.rules=e.reduce(((e,t)=>t instanceof yo?[...e,...t.rules]:[...e,t]),[])}is(e){return this.rules.every((t=>t.is(e)))}toString(){return this.rules.map((e=>e.stringify(this.precedence))).join(" ")}generalize(){return new yo(this.rules.map((e=>e.class=="Property"?e:new fo(e))))}}function mo(...e){return new yo(e.map(ho))}var uo;(function(e){e.is=po})(uo||(uo={}));function po(e,t=false){return typeof e=="number"||typeof e=="string"||e instanceof io||t&&typeof e=="object"&&e&&Object.values(e).every((e=>Array.isArray(e)?e.every((e=>po(e,true))):po(e,true)))}var go=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var ko={};var vo={};var xo={};var wo={};var So={};(function(e){Object.defineProperty(e,"__esModule",{value:true});(function(e){e[e["Logging"]=0]="Logging";e[e["Debug"]=1]="Debug";e[e["Warning"]=2]="Warning";e[e["Recoverable"]=3]="Recoverable";e[e["Critical"]=4]="Critical"})(e.Level||(e.Level={}))})(So);Object.defineProperty(wo,"__esModule",{value:true});const Co=So;class zo{constructor(e,t=Co.Level.Recoverable,o="unknown",s){this.description=e;this.level=t;this.type=o;this.region=s}toString(){return Co.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}wo.Message=zo;Object.defineProperty(xo,"__esModule",{value:true});const To=wo;class jo{raise(e,t,o,s){if(!(e instanceof To.Message))e=new To.Message(e,t,o,s);console.error(e.toString())}}xo.ConsoleHandler=jo;var _o={};var Lo={};Object.defineProperty(Lo,"__esModule",{value:true});class Ao{constructor(e,t){this.line=e;this.column=t}toString(){return"Ln "+this.line+", Col "+this.column}}Lo.Position=Ao;Object.defineProperty(_o,"__esModule",{value:true});const Io=Lo;class Eo extends Io.Position{constructor(e,t,o){super(t,o);this.resource=e}toString(){return this.resource.toString()+" @ "+super.toString()}}_o.Location=Eo;var Oo={};Object.defineProperty(Oo,"__esModule",{value:true});class Do{constructor(e,t,o,s){this.resource=e;this.start=t;this.end=o;this.content=s}merge(e){return e?new Do(this.resource,this.start,e.end,this.content?this.content:""+e.content?e.content:""):this}toString(){let e=this.resource.toString();if(this.start&&this.end)e+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)e+=this.content;return e}}Oo.Region=Do;Object.defineProperty(vo,"__esModule",{value:true});var Mo=xo;vo.ConsoleHandler=Mo.ConsoleHandler;var Ro=So;vo.Level=Ro.Level;var $o=_o;vo.Location=$o.Location;var Po=wo;vo.Message=Po.Message;var Ho=Lo;vo.Position=Ho.Position;var No=Oo;vo.Region=No.Region;var Fo={};var Uo={};var Wo={};var Yo={};var Bo={};Object.defineProperty(Bo,"__esModule",{value:true});class qo{constructor(e,t){this.name=e;this.password=t}get isEmpty(){return!this.name&&!this.password}toString(){let e="";if(this.name)e=this.name;if(this.password)e+=":"+this.password;return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new qo(o[0],o[1])}else t=new qo;return t}}Bo.User=qo;var Go={};Object.defineProperty(Go,"__esModule",{value:true});class Ko{constructor(e=[],t){this.host=e;this.port=t}get isEmpty(){return this.host.length==0&&!this.port}toString(){let e=this.host.join(".");if(this.port)e+=":"+this.port.toString();return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new Ko(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else t=new Ko;return t}}Go.Endpoint=Ko;Object.defineProperty(Yo,"__esModule",{value:true});const Vo=Bo;const Jo=Go;class Xo{constructor(e=new Vo.User,t=new Jo.Endpoint){this.user=e;this.endpoint=t}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let e="";if(!this.user.isEmpty)e=this.user.toString()+"@";if(!this.endpoint.isEmpty)e=e+this.endpoint.toString();return e}static parse(e){let t;if(e){const o=e.split("@",2);t=new Xo(Vo.User.parse(o.length==2?o.pop():undefined),Jo.Endpoint.parse(o.pop()))}return t}}Yo.Authority=Xo;var Zo={};Object.defineProperty(Zo,"__esModule",{value:true});const Qo=Yo;class es{constructor(e=[],t=new Qo.Authority,o=[],s={},a){this.scheme=e;this.authority=t;this.path=o;this.query=s;this.fragment=a}get isRelative(){return this.path[0]=="."||this.path[0]==".."}get isFolder(){return this.path[this.path.length-1]==""}get folder(){return this.isFolder?this:new es(this.scheme,this.authority,this.path.filter(((e,t)=>t<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const e=this.name.split(".");return e.length>1?e[e.length-1]:""}createArray(e,t){const o=[];while(t-- >0)o.push(e);return o}normalize(){let e=0;const t=this.path.reverse().filter(((t,o)=>{let s=false;if((t==""||t==".")&&o<this.path.length-1)s=false;else if(t=="..")e++;else if(e>0)e--;else s=true;return s})).concat(this.createArray("..",e)).reverse();return new es(this.scheme,this.authority,t,this.query,this.fragment)}resolve(e){return!e?this:new es(this.scheme.length>0?this.scheme:e.scheme,!this.authority.isEmpty?this.authority:e.authority,this.isRelative?e.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(e){return new es(this.scheme,this.authority,e instanceof Array?[...this.path,...e]:[...this.path,e],this.query,this.fragment)}toString(){let e="";if(this.scheme.length>0)e+=this.scheme.join("+")+":";if(!this.authority.isEmpty)e+="//"+this.authority.toString();else if(this.scheme.length>0)e+="//";if(this.path){let t=this.path.join("/");if(t[0]!="."||e.length>0)t="/"+t;e+=t}if(Object.keys(this.query).length>0)e+="?"+this.query.toString();if(this.fragment)e+="#"+this.fragment;return e}static parse(e){let t;switch(e){case"":case null:case undefined:break;default:let o=true;let s=[];let a=e.split("://",2);if(a.length>1){s=(a.shift()||"").split("+");e=a.shift()}else if(e.slice(0,2)=="//")e=e.slice(2);else o=false;let i;let n;if(e&&(i=e.lastIndexOf("#"))>-1){n=e.slice(i+1);e=e.slice(0,i)}let l={};if(e&&(i=e.lastIndexOf("?"))>-1){l=new Object;e.slice(i+1).split(";").forEach((e=>{a=e.split("=");const t=a.shift();const o=a.shift();if(t&&o)l[t]=o}));e=e.slice(0,i)}let r;let c=[];if(e){a=e.split("/");if(a.length>0){switch(a[0]){case".":case"..":break;case"":a.shift();break;default:if(o)r=Qo.Authority.parse(a.shift());else a.unshift(".");break}c=a}}t=new es(s,r,c,l,n);break}return t}}Zo.Locator=es;es.empty=new es(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(Wo,"__esModule",{value:true});var ts=Yo;Wo.Authority=ts.Authority;var os=Go;Wo.Endpoint=os.Endpoint;var ss=Zo;Wo.Locator=ss.Locator;var as=Bo;Wo.User=as.User;var is={};var ns={};var ls={};Object.defineProperty(ls,"__esModule",{value:true});class rs{}ls.Device=rs;Object.defineProperty(ns,"__esModule",{value:true});const cs=ls;class ds extends cs.Device{}ns.InDevice=ds;Object.defineProperty(is,"__esModule",{value:true});const hs=ns;class bs extends hs.InDevice{static addOpener(e,t){if(!t)t=0;bs.openers.push({open:e,priority:t});bs.openers=bs.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){let t;let o=0;do{t=bs.openers[o++].open(e)}while(!t&&o<bs.openers.length);return t}}is.Reader=bs;bs.openers=[];Object.defineProperty(Uo,"__esModule",{value:true});const fs=Wo;const ys=vo;const ms=is;var us=is;Uo.Reader=us.Reader;class ps extends ms.Reader{constructor(e){super();this.backend=e;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return!!this.backend}get opened(){return!!this.backend}get isEmpty(){return(this.buffer.length==0||this.buffer[0].data=="\0")&&this.backend.isEmpty}get resource(){const e=this.location;return e?e.resource:fs.Locator.empty}get location(){return this.locationValue}get region(){return new ys.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(e){if(!e)e=1;let t;while(e>this.buffer.length&&(t=this.backend.read()))this.buffer.push({data:t,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,e>this.buffer.length?this.buffer.length:e).map((e=>e.data)).join("")}read(e){if(!e)e=1;const t=this.peek(e);if(t&&t.length>0){this.locationValue=this.buffer[t.length-1].location;this.buffer.splice(0,t.length);this.lastContent+=t}return t}peekIs(e,t){let o;if(e)if(typeof e=="string"){const s=e;while(t&&t-- >0)e+=s;o=this.peek(e.length)==e?e:undefined}else if(e.length>0&&!(o=this.peekIs(e[0]))&&e.length)o=this.peekIs(e.slice(1));return o}readIf(e){let t;if(e)if(typeof e=="string")t=this.peek(e.length)==e&&this.read(e.length)||undefined;else if(e.length>0&&!(t=this.readIf(e[0]))&&e.length)t=this.readIf(e.slice(1));return t}readAll(){let e="";while(this.peek())e+=this.read();return e!=""?e:undefined}mark(){const e=this.region;this.lastMark=this.location;this.lastContent="";return e}static create(e){return e?new ps(e):undefined}}Uo.BufferedReader=ps;var gs={};var ks={};var vs=go&&go.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ks,"__esModule",{value:true});function xs(e){return vs(this,void 0,void 0,(function*(){}))}ks.close=xs;function ws(e){return vs(this,void 0,void 0,(function*(){}))}ks.fsync=ws;function Ss(e,t,o){return vs(this,void 0,void 0,(function*(){return 0}))}ks.open=Ss;function Cs(e,t,o,s){return vs(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}ks.write=Cs;function zs(e,t){return{isDirectory:()=>false}}ks.lstatSync=zs;function Ts(e){return[]}ks.readdirSync=Ts;function js(e,t){return""}ks.readFileSync=js;var _s={};Object.defineProperty(_s,"__esModule",{value:true});const Ls="/";_s.sep=Ls;var As={};var Is=go&&go.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(As,"__esModule",{value:true});const Es=vo;const Os=Wo;const Ds=is;class Ms extends Ds.Reader{constructor(e,t){super();this.content=e;this.resource=t;this.tabSize=2;this.count=0;this.line=1;this.column=1;this.lastContent="";this.readable=true;this.content+="\0";this.lastPosition=this.location}get opened(){return this.count+1>=this.content.length}get isEmpty(){return this.opened}get location(){return new Es.Location(this.resource,this.line,this.column)}get region(){return new Es.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Is(this,void 0,void 0,(function*(){const e=!(yield this.isEmpty);if(e)this.count=this.content.length;return e}))}read(){let e;if(this.count<this.content.length)e=this.content.charAt(this.count);else if(this.count==this.content.length)e=undefined;this.count++;if(e){switch(e){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=e}return e}mark(){const e=this.region;this.lastPosition=this.location;this.lastContent="";return e}static create(e,t){return e!=undefined?new Ms(e,t||Os.Locator.empty):undefined}}As.StringReader=Ms;Object.defineProperty(gs,"__esModule",{value:true});const Rs=ks;const $s=_s;const Ps=Wo;const Hs=is;const Ns=As;class Fs extends Hs.Reader{constructor(e){super();this.backend=e}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.backend.isEmpty}get resource(){return this.backend?this.backend.resource:Ps.Locator.empty}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){return this.backend.read()}mark(){return this.backend.mark()}static open(e){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=Ns.StringReader.create(Rs.readFileSync((e.isRelative?"":$s.sep)+e.path.join($s.sep),"utf-8"),e)}catch(t){console.log(`Failed to open file: ${e.toString()}`)}return t?new Fs(t):undefined}}gs.FileReader=Fs;Hs.Reader.addOpener((e=>Fs.open(e)),10);var Us={};var Ws=go&&go.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Us,"__esModule",{value:true});const Ys=ks;const Bs=_s;const qs=Wo;const Gs=vo;const Ks=is;const Vs=gs;class Js extends Ks.Reader{constructor(e){super();this.files=e;this.tabSizeValue=2;this.lastLocation=new Gs.Location(qs.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(e){this.tabSizeValue=e;if(this.current)this.current.tabSize=e}get readable(){return this.current!=undefined&&this.current.readable||this.files.length>0}get opened(){return this.current!=undefined||this.files.length>0}get isEmpty(){return this.files.length==0&&(!this.current||this.current.isEmpty)}get resource(){return this.current?this.current.resource:this.lastLocation.resource}get location(){return this.current?this.current.location:this.lastLocation}get region(){return this.current?this.current.region:new Gs.Region(this.resource)}close(){return Ws(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let e;if(!this.current&&this.files.length>0){this.current=Vs.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){e=this.current.read();if(e==undefined||e=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return e}mark(){return this.current?this.current.mark():new Gs.Region(this.resource)}static getFiles(e,t,o=[]){let s=[];const a=Ys.readdirSync(e);a.forEach((a=>{const i=e+Bs.sep+a;if(o.indexOf(i)==-1){if(Ys.lstatSync(i).isDirectory())s=s.concat(Js.getFiles(i,t,o));else if(a.length>t.length&&a.lastIndexOf(t,a.length-t.length)===a.length-t.length)s.push(i)}}));return s}static open(e){let t;try{if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file")&&e.isFolder||e.name.match("*"))t=Js.getFiles((e.isRelative?"":Bs.sep)+e.folder.path.join(Bs.sep),e.extension)}catch(e){}return t?new Js(t.map((e=>new qs.Locator(["file"],undefined,e.split(Bs.sep))))):undefined}}Us.FolderReader=Js;Ks.Reader.addOpener((e=>Js.open(e)),0);var Xs={};var Zs={};var Qs={};var ea={};Object.defineProperty(ea,"__esModule",{value:true});function*ta(e){let t;while((t=e())!=undefined)yield t}function oa(e){return e.next instanceof Function}function*sa(e,t){let o;while(!(o=e.next()).done)yield o.value;if(oa(t))while(!(o=t.next()).done)yield o.value;else yield t}class aa{constructor(e){this.iterator=e instanceof Function?ta(e):e}get length(){let e=0;while(!this.next().done)e++;return e}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const e=this.next();return e.done?undefined:e.value}next(e){return this.nextValue=this.iterator.next(e)}append(e){return new aa(sa(this,e))}map(e){return new aa((()=>{const t=this.fetch();return t!=undefined?e(t):undefined}))}reduce(e,t){const o=this.fetch();return o?this.reduce(e,e(t,o)):t}apply(e){const t=this.fetch();if(t){e(t);this.apply(e)}}filter(e){return new aa((()=>{let t;do{t=this.fetch()}while(t!=undefined&&!e(t));return t}))}toArray(){const e=this.fetch();let t;if(!e)t=[];else{t=this.toArray();t.unshift(e)}return t}static from(e){return new aa(e)}}ea.Enumerator=aa;aa.empty=aa.from((()=>undefined));var ia={};Object.defineProperty(ia,"__esModule",{value:true});const na=ea;function la(e){return e==null?false:typeof e[Symbol.iterator]==="function"}class ra{constructor(e){this.get=e}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new na.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(e){return new ra((()=>this.get().append(e)))}map(e){return new ra((()=>this.get().map(e)))}reduce(e,t){return this.get().reduce(e,t)}apply(e){this.get().apply(e)}filter(e){return new ra((()=>this.get().filter(e)))}toArray(){return this.getEnumerator().toArray()}static from(e){return la(e)?new ra((()=>new na.Enumerator(e[Symbol.iterator]()))):new ra((()=>{const t=e();return t instanceof na.Enumerator?t:new na.Enumerator(t)}))}}ia.Enumerable=ra;ra.empty=ra.from([]);var ca={};Object.defineProperty(ca,"__esModule",{value:true});const da=ea;class ha extends da.Enumerator{constructor(e){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=e;this.position=0}}ca.ArrayEnumerator=ha;var ba={};Object.defineProperty(ba,"__esModule",{value:true});const fa=ea;class ya extends fa.Enumerator{constructor(e){super((()=>{const e=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return e}));this.backend=e;this.buffer=[]}peek(e){if(!e)e=0;let t;while(e>this.buffer.length-1&&(t=this.backend.fetch()))this.buffer.push(t);return e>this.buffer.length-1?undefined:this.buffer[e]}}ba.BufferedEnumerator=ya;var ma={};Object.defineProperty(ma,"__esModule",{value:true});class ua{static padLeft(e,t,o){return ua.pad(e,t,o,true)}static padRight(e,t,o){return ua.pad(e,t,o,false)}static pad(e,t,o,s){let a="";const i=o-e.length;for(let e=0;e<i;e++)a+=t;return s?a+e:e+a}}ma.String=ua;Object.defineProperty(Qs,"__esModule",{value:true});var pa=ea;Qs.Enumerator=pa.Enumerator;var ga=ia;Qs.Enumerable=ga.Enumerable;var ka=ca;Qs.ArrayEnumerator=ka.ArrayEnumerator;var va=ba;Qs.BufferedEnumerator=va.BufferedEnumerator;var xa=ma;Qs.String=xa.String;var wa={};Object.defineProperty(wa,"__esModule",{value:true});const Sa=ls;class Ca extends Sa.Device{}wa.OutDevice=Ca;var za=go&&go.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Zs,"__esModule",{value:true});const Ta=Wo;const ja=Qs;const _a=wa;class La extends _a.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(e){return za(this,void 0,void 0,(function*(){return e instanceof ja.Enumerator?this.writeImplementation(e):e instanceof Array?this.writeImplementation(new ja.ArrayEnumerator(e)):this.writeImplementation(new ja.ArrayEnumerator([e]))}))}writeLine(e){return za(this,void 0,void 0,(function*(){return e instanceof ja.Enumerator?this.writeImplementation(e.append(this.newLineSymbol)):e instanceof Array?this.writeImplementation(new ja.ArrayEnumerator([...e,this.newLineSymbol])):e?this.writeImplementation(new ja.ArrayEnumerator([e,this.newLineSymbol])):this.writeImplementation(new ja.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(e,t){if(!t)t=0;La.openers.push({open:e,priority:t});La.openers=La.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){return za(this,void 0,void 0,(function*(){let t;if(typeof e=="string"){const o=Ta.Locator.parse(e);t=o?yield La.open(o):undefined}else{let o=0;do{t=yield La.openers[o++].open(e)}while(!t&&o<La.openers.length)}return t}))}}Zs.Writer=La;La.openers=[];Object.defineProperty(Xs,"__esModule",{value:true});const Aa=Zs;class Ia extends Aa.Writer{constructor(e){super();this.backend=e;this.autoFlush=true;this.indentionSymbol="\t";this.indentionCount=0;this.indentNext=false}get resource(){return this.backend.resource}get opened(){return this.backend.opened}get writable(){return this.backend.writable}flush(){return this.backend.flush()}close(){return this.backend.close()}increase(){this.indentionCount++;return true}decrease(){this.indentionCount--;return this.indentionCount>=0}getIndention(){return this.indentionSymbol.repeat(this.indentionCount)}writeImplementation(e){const t=[];let o;let s=e.fetch();if(s)do{o=s;s=e.fetch();if(this.indentNext)o=this.getIndention()+o;this.indentNext=o.endsWith(this.newLineSymbol);o=o.replace(this.newLineSymbol,this.newLineSymbol+this.getIndention());if(this.indentNext)o=o.substring(0,o.length-this.indentionCount*this.indentionSymbol.length);t.push(this.backend.write(o))}while(s);return Promise.all(t).then((e=>e.reduce(((e,t)=>e&&t),true)))}}Xs.Indenter=Ia;var Ea={};Object.defineProperty(Ea,"__esModule",{value:true});const Oa=is;const Da=Uo;class Ma extends Oa.Reader{constructor(e,t){super();this.prefix=t;this.done=false;this.backend=e instanceof Da.BufferedReader?e:Da.BufferedReader.create(e)}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){let e;if(!this.done){e=this.backend.read();this.done=e=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new Ma(e,t):e}}Ea.PrefixReader=Ma;var Ra={};var $a=go&&go.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Ra,"__esModule",{value:true});const Pa=ks;const Ha=_s;const Na=Zs;class Fa extends Na.Writer{constructor(e,t){super();this.resource=e;this.descriptor=t;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return $a(this,void 0,void 0,(function*(){let e=true;try{yield Pa.fsync(this.descriptor)}catch(t){e=false}return e}))}close(){return $a(this,void 0,void 0,(function*(){let e=this.opened;if(e){try{yield Pa.close(this.descriptor)}catch(t){e=false}this.descriptor=0}return e}))}writeImplementation(e){return $a(this,void 0,void 0,(function*(){let t=true;const o=Buffer.from(e.reduce(((e,t)=>e+t),""));try{const e=yield Pa.write(this.descriptor,o,0,"utf8");t=e.bytesWritten==o.length}catch(e){t=false}return t&&(!this.autoFlush||(yield this.flush()))}))}static open(e){return $a(this,void 0,void 0,(function*(){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=yield Pa.open((e.isRelative?"":Ha.sep)+e.path.join(Ha.sep),"w")}catch(e){t=undefined}return t?new Fa(e,t):undefined}))}}Ra.FileWriter=Fa;Na.Writer.addOpener(Fa.open);var Ua={};Object.defineProperty(Ua,"__esModule",{value:true});const Wa=is;const Ya=Uo;class Ba extends Wa.Reader{constructor(e,t){super();this.endMark=t;this.done=false;this.backend=e instanceof Ya.BufferedReader?e:Ya.BufferedReader.create(e);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const e=!this.done;if(e)this.done=true;return Promise.resolve(e)}read(){let e;if(!this.done){e=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new Ba(e,t):e}}Ua.TillReader=Ba;var qa={};Object.defineProperty(qa,"__esModule",{value:true});const Ga=is;const Ka=Uo;class Va extends Ga.Reader{constructor(e,t){super();this.endMark=t;this.done=-1;this.backend=e instanceof Ka.BufferedReader?e:Ka.BufferedReader.create(e);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done==0||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const e=this.done>0;if(e)this.done=0;return Promise.resolve(e)}read(){let e;if(this.done!=0){e=this.backend.read();let t;if(this.done>0)this.done--;else if(t=this.backend.peekIs(this.endMark))this.done=t.length}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new Va(e,t):e}}qa.UntilReader=Va;Object.defineProperty(Fo,"__esModule",{value:true});var Ja=Uo;Fo.BufferedReader=Ja.BufferedReader;var Xa=ls;Fo.Device=Xa.Device;var Za=gs;Fo.FileReader=Za.FileReader;var Qa=Us;Fo.FolderReader=Qa.FolderReader;var ei=Xs;Fo.Indenter=ei.Indenter;var ti=ns;Fo.InDevice=ti.InDevice;var oi=wa;Fo.OutDevice=oi.OutDevice;var si=Ea;Fo.PrefixReader=si.PrefixReader;var ai=is;Fo.Reader=ai.Reader;var ii=As;Fo.StringReader=ii.StringReader;var ni=Ra;Fo.FileWriter=ni.FileWriter;var li=Ua;Fo.TillReader=li.TillReader;var ri=qa;Fo.UntilReader=ri.UntilReader;var ci=Zs;Fo.Writer=ci.Writer;Object.defineProperty(ko,"__esModule",{value:true});const di=vo;var hi=ko.Error=di;const bi=Fo;var fi=ko.IO=bi;const yi=Wo;ko.Uri=yi;const mi=Qs;var ui=ko.Utilities=mi;class pi extends fi.BufferedReader{constructor(e,t){super(typeof e=="string"?fi.StringReader.create(e):e);this.errorHandler=t}raise(e,t,o="lexical",s){if(!(e instanceof hi.Message)){if(!t)t=hi.Level.Critical;if(!s)s=this.region;e=new hi.Message(e,t,o,s)}if(this.errorHandler)this.errorHandler.raise(e)}requirePrefix(e){return new pi(new fi.PrefixReader(this,e),this.errorHandler)}till(e){return new pi(fi.TillReader.create(this,e),this.errorHandler)}until(e){return new pi(fi.UntilReader.create(this,e),this.errorHandler)}peekIsSymbol(e){return this.peekIs(e??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function gi(e,t,o){const s=new pi(e,t);return new ui.Enumerator((()=>{let e;let t=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(t=s.peekIsSymbol(o))e={value:s.read(t)||"",region:s.mark()};else{let t="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))t+=s.read();if(t)e={value:t,region:s.mark()}}}return e}))}class ki{tokenize(e){return gi(e,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((e=>({value:e.value}))).toArray()}}class vi extends ki{constructor(e){super();this.class="array";this.array=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return vi.completor.flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])}isType(e){return global.Array.isArray(e)}static add(...e){this.completor.push(...e)}static is(e){return e instanceof vi}}vi.completor=[];var xi;(function(e){function t(e){return typeof e=="object"&&typeof e.start=="number"&&typeof e.end=="number"}e.is=t})(xi||(xi={}));var wi;(function(e){function t(e){return e.map((e=>typeof e.cursor=="number"?e.value.slice(0,e.cursor)+"_"+e.value.slice(e.cursor,e.value.length):e.value+"_"))}e.stringify=t;function o(e,t,s){return Array.isArray(t)?t.map((t=>o(e,t,s))):{value:e+t.value+(s??""),cursor:typeof t?.cursor=="number"?t?.cursor+e.length:xi.is(t.cursor)?{start:t.cursor.start+e.length,end:t.cursor.end+e.length}:t.value.length+e.length,suggestion:t.suggestion}}e.prepend=o})(wi||(wi={}));class Si extends ki{constructor(){super();this.class="boolean"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;const a=o?Si.literals.filter((e=>e.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?wi.prepend(":",Si.literals.filter((e=>e.value.startsWith(s[1]?.value??"")))):[];return[...a??[],...(o?[]:Si.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e=="boolean"}static add(...e){this.completor.push(...e)}}Si.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Si.completor=[];var Ci;(function(e){function t(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e.length<=3&&e[0].value==":"&&o.value.startsWith(e[1]?.value??"")&&(e[2]?.value??"(")=="("?wi.prepend(":",[o]):e.length<=4&&e.slice(0,4).reduce(((e,t)=>e+t.value),"")==":"+o.value?wi.prepend(":"+o.value.substring(0,o.value.length-1),t(),")"):e.length==5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[4].value==":"+o.value?wi.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):e.length>5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[e.length-1].value==":"+o.value?wi.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):[]}e.functions=t;function o(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1?wi.prepend(":",[o]):wi.prepend(":",t(e.slice(1)))}e.expressions=o;function s(e,t,o){return e.length>=1&&e[0].value==o.value?wi.prepend(o.value,t(e.slice(1))):e.length==0||e.length==1&&o.value.startsWith(e[0].value)||e[0].value==o.value.replace(/ /g,"")?[o]:[]}e.operators=s})(Ci||(Ci={}));class zi extends ki{constructor(e){super();this.input=e;this.class="number";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return[...s.length>0&&s[0].value==":"&&t?wi.prepend(":",t.complete(s.slice(1),undefined,this)):t&&s.length>=0&&o?wi.prepend(" ",t?.complete(s,undefined,undefined)):[],...(o?zi.completorArgument:zi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return isNaN(+e)?false:true}static add(...e){this.completor.push(...e)}static addArgument(...e){this.completorArgument.push(...e)}static is(e){return e instanceof zi||!global.Number.isNaN(e)}}zi.completor=[];zi.completorArgument=[];class Ti extends ki{constructor(e){super();this.properties=e;this.class="object";this.completions=Object.keys(this.properties).map((e=>({value:e,suggestion:{value:e}})))}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;const i=this.filterByType(o);if(!t){const e=s.length>0?this.match(s[0],i):undefined;if(e)a=s.length>=1?wi.prepend(e.value,this.properties[e.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))a=wi.prepend(s[0].value+s[1].value+s[2].value,o.complete(s.slice(3),this,o));else if(o&&s.length>0&&o.isType(s[0].value))a=wi.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let e;a=s.length==0?[...this.addDot(i,o),...o?.class=="number"?[]:Ti.wildcard]:s.length==1&&(e=Ti.wildcard.find((e=>e.value==s[0].value)))?wi.prepend(e.value,this.completions,o?".":""):s.length>=1&&(e=Ti.wildcard.find((e=>e.value==s[0].value)))?wi.prepend(e.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],i),o)}}else a=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?wi.prepend(".",this.addDot(i,o)):this.properties[s[1].value]?wi.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),t,o)):wi.prepend(".",this.addDot(this.partial(s[1],i),o));return[...a.reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[]),...Ti.completor.flatMap((e=>e(s,this,t)))]}filterByType(e){return e?this.completions.filter((t=>this.properties[t.value].class==e.class||(this.properties[t.value].class=="object"?this.properties[t.value].filterByType(e).length>0:false))):this.completions}addDot(e,t){return!e?[]:t?e.map((e=>this.properties[e.value].class=="object"?{value:e.value+".",suggestion:{value:e.suggestion?.value+"."}}:e)):e}partial(e,t){const o=t.filter((t=>t.value.startsWith(e.value)));return o&&o.length>0?o:undefined}match(e,t){const o=t.filter((t=>t.value==e.value));return o&&o.length>0?o[0]:undefined}isType(e){return false}static add(...e){this.completor.push(...e)}}Ti.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Ti.completor=[];class ji extends ki{constructor(e){super();this.class="string";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;if(o)a=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else a=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[wi.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...a??[],...(o?[]:ji.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e.value=="string"}static add(...e){this.completor.push(...e)}static is(e){return e instanceof ji}}ji.completor=[];class _i extends ki{constructor(e){super();this.type=e;this.class="union"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return this.type?this.type?.flatMap((e=>e?.complete(s,t,o)??[])):[]}isType(e){return e instanceof _i}static is(e){return e instanceof _i}}var Li;(function(e){function t(e,t){const o=e.complete(t);return o.filter((e=>!t.includes(e.value)&&e.suggestion?.value)).map((e=>({full:e.value,cursor:e?.cursor??e.value.length,addon:e?.suggestion?.value,description:e?.suggestion?.description})))}e.complete=t;function o(e){let t;switch(typeof e){case"object":t=global.Array.isArray(e)?new vi(e.map((e=>o(e)))):new Ti(global.Object.entries(e).reduce(((e,t)=>({...e,[t[0]]:o(t[1])})),{}));break;case"string":t=new ji(e);break;default:t=new zi(e);break}return t}e.convert=o;e.Array=vi;e.Boolean=Si;e.Completion=wi;e.Object=Ti;e.String=ji;e.Number=zi;e.Union=_i;e.Completor=Ci})(Li||(Li={}));class Ai extends io{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(e){return typeof e=="string"&&e.endsWith(this.needle)}toString(){return`*${this.needle}`}}function Ii(e,t){return Ci.expressions(e,(e=>!e||e[0].value=="*"&&t.value&&t.value.endsWith(e[1]?.value??"")?[Li.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Li.String.add(Ii);class Ei extends io{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Every"}is(e){return Array.isArray(e)&&e.every((e=>this.criteria.is(e)))}toString(){return`every(${this.criteria.toString()})`}}function Oi(e,t){const o=e=>t.array.some(Li.String.is)&&e?t.array.filter(Li.String.is).map((t=>t.complete([{value:":"},...e]))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Li.String.is)?t.array.filter(Li.String.is).map((e=>({value:e?.value??""}))):t.array.some(Li.Number.is)&&e?t.array.filter(Li.Number.is).map((t=>t.complete(e))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Li.Number.is)?t.array.filter(Li.Number.is).map((e=>({value:(e?.value??"").toString()}))):[];return Ci.functions(e,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Li.Array.add(Oi);class Di extends io{constructor(e,t,o){super();this.identifier=e;this.argument=t;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(e){return this.definition?.is(e)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class Mi{stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}class Ri extends Mi{constructor(e,t){super();this.name=t;this.precedence=Ri.precedence;this.class="Value";if(typeof e=="string")this.value=isNaN(+e.replace(",","."))?e:+e.replace(",",".");else this.value=e}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(e){return e?this.get(e):+this.value}get(e){return typeof this.value=="string"?+e[this.value]:this.name&&typeof this.value=="object"?this.value.get(e[this.name]):+this.value}static create(e,t){return new Ri(e,t)}}Ri.precedence=19;class $i extends io{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(e,t){return(isNaN(+e)?e:+e)>(this.value instanceof Ri&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function Pi(e,t,o){return Li.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">",suggestion:{value:">"}})}Li.Number.add(Pi);Li.String.add(Pi);class Hi extends io{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(e,t){return(isNaN(+e)?e:+e)>=(this.value instanceof Ri&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function Ni(e,t,o){return Li.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">=",suggestion:{value:">="}})}Li.Number.add(Ni);Li.String.add(Ni);class Fi extends io{constructor(e){super();this.property=e;this.precedence=85;this.class="Has"}is(e,t){return typeof e=="object"&&e?Object.entries(e).some((e=>{t=typeof t=="string"?t:this.property;return e[0]==t?true:typeof e[1]=="object"&&e[1]?this.is(e[1],t.includes(".")&&t.split(".")[0]==e[0]?t.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function Ui(e,t,o){return o&&t?.class=="object"?Ci.functions(e,(e=>t.completions.filter((t=>t.value.startsWith(e?e[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Li.Object.add(Ui);class Wi extends io{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(e){return typeof e=="string"&&e.includes(this.needle)}toString(){return`*${this.needle}*`}}function Yi(e,t){const o=new Wi(e);return t?o.is(t):o}function Bi(e,t){return Ci.expressions(e,(e=>!e||e.length==3&&t.value?.includes(e[1].value)&&t.value!=e[1].value||e.length==2&&e[0].value+e[1].value=="**"?[Li.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:e.length==1&&e[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Li.String.add(Bi);class qi extends io{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Some"}is(e,t){return Array.isArray(e)&&e.some((e=>this.criteria.is(e,t)))}toString(){return`some(${this.criteria.toString()})`}}function Gi(e,t){const o=new qi(ho(e));return t?o.is(t):o}function Ki(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1&&e[0].value==":"?Li.Completion.prepend(":",t.array.filter(Li.String.is).filter((e=>e.value&&e.value!="string")).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):e.length==2&&e[0].value==":"?Li.Completion.prepend(":",t.array.filter(Li.String.is).filter((t=>t.value&&t.value!="string"&&t.value.startsWith(e[1].value))).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):[]}Li.Array.add(Ki);class Vi extends io{constructor(e){super();this.value=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(e,t){return Array.isArray(e)&&po(this.value)?Gi(this.value,e):(typeof e=="boolean"?e.toString():isNaN(+e)?e:+e)==(typeof this.value=="object"?this.value.evaluate(t):this.value)}toString(){return this.value.toString()}}lo((e=>typeof e=="bigint"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"?new Vi(e):undefined));class Ji extends io{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(e,t){return(isNaN(+e)?e:+e)<(this.value instanceof Ri&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function Xi(e,t,o){return Li.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<",suggestion:{value:"<"}})}Li.Number.add(Xi);Li.String.add(Xi);class Zi extends io{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(e,t){return(isNaN(+e)?e:+e)<=(this.value instanceof Ri&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function Qi(e,t,o){return Li.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<=",suggestion:{value:"<="}})}Li.Number.add(Qi);Li.String.add(Qi);function en(e,t){return Ci.expressions(e,(e=>e&&e?.length==1&&e[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Li.String.add(en);class tn extends io{constructor(e){super();this.criteria=e;this.precedence=tn.precedence;this.class="Not"}is(e){return!this.criteria.is(e)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}tn.precedence=90;function on(e,t){const o=new tn(ho(e));return t?o.is(t):o}function sn(e,t,o){return t&&t.class!="object"&&o?Ci.expressions(e,(e=>e[0].value!="!"?[]:Li.Completion.prepend("!",t.complete(e.slice(1),o,t))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Li.String.add(sn);Li.Number.add(sn);Li.Boolean.add(sn);Li.Object.add(sn);class an extends io{constructor(e){super();this.precedence=an.precedence;this.class="Or";this.criteria=e.reduce(((e,t)=>t instanceof an?[...e,...t.criteria]:[...e,t]),[])}is(e){return this.criteria.some((t=>t.is(e)))}toString(){return this.criteria.map((e=>e.stringify(this.precedence))).join(" | ")}}an.precedence=30;function nn(e,t,o){return Li.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Li.Number.addArgument(nn);class ln extends ui.BufferedEnumerator{constructor(e,t){super(Array.isArray(e)?new ui.ArrayEnumerator(e):e);this.errorHandler=t}clone(e="(",t=")"){let o=0;return new ln(new ui.Enumerator((()=>{let s;if(this.peekIs(e))o++;else if(this.peekIs(t))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...e){return e.every(((e,t)=>{const o=this.peek(t);return o&&o.value&&ln.is(e,o.value)}))}fetchIf(...e){const t=[];if(this.peekIs(...e))e.forEach((e=>t.push(this.fetch())));return e.length==1?t.length==1?t[0]:undefined:e.length==t.length?t:undefined}mark(){return ui.Enumerable.from(ui.Enumerable.empty)}raise(e,t=hi.Level.Critical,o="grammatical",s){if(typeof e=="string"){if(!s&&this.last)s=this.last.region;e=new hi.Message(e,t,o,s)}this.errorHandler.raise(e)}static is(e,t){return Array.isArray(e)?e.some((e=>ln.is(e,t))):typeof e!="string"?e.test(t):e.startsWith("!")&&e!="!"?!ln.is(e.substring(1),t):e=="any"?ln.symbol.every((e=>e!=t)):e=="symbol"?ln.symbol.some((e=>e==t)):e=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(t):e==t}}ln.wildcard=["*","?"];ln.separator=["(",")","."];ln.operator=["!","|"];ln.comparator=["<","<=",">",">=",":"];ln.binaryOperator=[" * "," + "," - "];ln.symbol=[...ln.wildcard,...ln.separator,...ln.operator,...ln.comparator];function rn(e,t){if(typeof e=="string"){t=t||new hi.ConsoleHandler;const o=gi(e,t).toArray();e=new ln(o,t)}t=t instanceof io?t:undefined;const o=[];while(e.peek()){if(e.fetchIf("|"))o[o.length-1]=new an([o[o.length-1],cn(0,e)]);else o.push(cn(0,e))}return o.length==1?o[0]:new yo(o)}function cn(e,t){let o;const s=typeof e=="number"?t=>e<t:t=>e.precedence>t;const a=typeof e=="number"?undefined:e;for(const e of dn)if(s(e[1]||Number.MAX_SAFE_INTEGER)){const s=e[0](t,a);if(s){o=cn(s,t);break}}return o||a||new yo([])}const dn=[];function hn(e,t){dn.push([e,t])}function bn(e,t){if(typeof e=="string"){t=t||new hi.ConsoleHandler;const o=gi(e,t).toArray();e=new ln(o,t)}t=t instanceof Mi?t:undefined;let o;let s=false;let a=false;while(!o!=s&&!a&&e.peek()){let t=1;s=false;a=false;while(!s&&!a&&e.peek(t)){s=ln.binaryOperator.some((o=>e.peek(t)?.value==o));a=ln.comparator.some((o=>e.peek(t)?.value==o));t++}o=fn(o??Number.MAX_SAFE_INTEGER,e)}if(!o)e.raise("Missing Expression");return o??new Ri(NaN)}function fn(e,t){let o;const s=typeof e=="number"?undefined:e;for(const s of yn){const a=s[0](t,e);if(a){o=a;break}}return o||s}const yn=[];function mn(e,t){yn.push([e,t])}hn((e=>{const t=e.fetchIf(":","every","(")&&new Ei(rn(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));hn((e=>{const t=e.fetchIf(":","some","(")&&new qi(rn(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));hn(un(rn));mn(un(bn));function un(e){return t=>{const o=t.fetchIf("(")&&e(t.clone());if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}}hn((e=>e.fetchIf(">")&&new $i(bn(e))));hn((e=>e.fetchIf(">=")&&new Hi(bn(e))));hn((e=>e.fetchIf("<")&&new Ji(bn(e))));hn((e=>e.fetchIf("<=")&&new Zi(bn(e))));hn((e=>e.fetchIf("!")&&new tn(cn(tn.precedence,e))));hn((e=>{const t=e.fetchIf("has","(","any",")")||e.fetchIf(":","has","(","any",")");return t&&new Fi(t.length==4?t[2].value:t[3].value)}));class pn extends io{constructor(e){super();this.value=e;this.precedence=85;this.class="Within"}is(e){return this.value.includes(e)}toString(){return`within(${this.value.join(", ")})`}}function gn(e,t){const o=new pn(e);return t?o.is(t):o}function kn(e,t,o){return o&&t?.class?Ci.functions(e,(e=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Li.String.add(kn);Li.Number.add(kn);hn((e=>{const t=e.fetchIf(":","within","(");let o;if(t&&e.peek()){o=[e.fetch()?.value??""];while(e.fetchIf(","))o.push(e.fetchIf("any")?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o?new pn(o):undefined}));class vn extends io{constructor(e){super();this.criteria=e;this.precedence=85;this.class="Contains"}is(e,t){return Array.isArray(e)&&this.criteria.every((t=>e.some((e=>t==e))))}toString(){return`contains(${this.criteria.join(", ")})`}}function xn(e,t){const o=new vn(e);return t?o.is(t):o}function wn(e,t,o){return Ci.functions(e,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Li.Array.add(wn);hn((e=>{const t=e.fetchIf(":","contains","(");const o=[];if(t&&e.peek()){do{o.push(e.fetchIf("any")?.value??"")}while(e.fetchIf(","));if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o.length>0?new vn(o):undefined}));hn((e=>{const t=e.peek(3)?.value;const o=[")",",","("].find((e=>e==t))||e.peek(2)?.value==")"?e.fetchIf("identifier","("):undefined;let s;if(o&&e.peek()){s=[e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(e.fetchIf(","))s.push(e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return o&&s?new Di(o[0].value,s):undefined}));class Sn extends io{constructor(e,t){super();this.name=e;this.criteria=t;this.precedence=Sn.precedence;this.class="Property";this.symbol="."}is(e,t){return!this.criteria?e==t?.[this.name]:typeof e=="object"?this.criteria.is(e[this.name],t??e):this.criteria.is(e,t?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Sn.precedence=80;function Cn(e,t,o){const s=(Array.isArray(e)?e:[e]).reduceRight(((e,t)=>new Sn(t,e)),ho(t));return o?s.is(o):s}lo((e=>typeof e=="object"&&!(e instanceof io)&&!Array.isArray(e)?mo(...Object.getOwnPropertyNames(e).map((t=>Cn(t,e[t])))):undefined));hn((e=>{const t=[];let o;while(o=e.fetchIf("identifier","."))t.push(o[0].value);if(e.peekIs("identifier",ln.comparator)&&(o=e.fetchIf("identifier")))t.push(o.value);return t.length>0?t.reduceRight(((e,t)=>new Sn(t,e)),e.peekIs("identifier")&&(o=e.fetchIf("identifier"))?new Sn(o.value):cn(Sn.precedence,e)):undefined}));hn((e=>{const t=e.fetchIf(":","*","any","*")||e.fetchIf("*","any","*");return t&&new Wi(t.length==4?t[2].value:t[1].value)}));class zn extends io{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(e){return typeof e=="string"&&e.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Tn(e,t){return Ci.expressions(e,(e=>!e||e.length==1&&e[0].value=="*"||e.length==2&&e[1].value=="*"&&t.value&&t.value.startsWith(e[0]?.value??"")?[Li.Completion.prepend("",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Li.String.add(Tn);hn((e=>{const t=e.fetchIf(":","any","*")||e.fetchIf("any","*");return t&&new zn(t?.length==3?t[1].value:t[0].value)}));hn((e=>{const t=e.fetchIf(":","*","any")||e.fetchIf("*","any");return t&&new Ai(t?.length==3?t[2].value:t[1].value)}));class jn extends Mi{toString(){const e=this.symbol;return this.left.stringify(jn.getPrecedence(e))+` ${e} `+this.right.stringify(jn.getPrecedence(e))}constructor(e,t,o,s){super();this.precedence=t;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=e.replace(/ /g,"")}evaluate(e){let t;switch(this.getSymbol()){case"+":t=this.left.evaluate(e)+this.right.evaluate(e);break;case"-":t=this.left.evaluate(e)-this.right.evaluate(e);break;case"*":t=this.left.evaluate(e)*this.right.evaluate(e);break;default:t=NaN;break}return t}getSymbol(){return this.symbol}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}static getPrecedence(e){let t;e=e?.replace(/ /g,"");switch(e){case"+":t=14;break;case"-":t=15;break;case"*":t=16;break;default:t=undefined;break}return t}static create(e,t,o){let s;const a=new jn("+",14,t,o);const i=jn.getPrecedence(e);if(i)s=new jn(e,i,t,o);return s||a}}function _n(e,t,o){return[" + "," - "," * "].map((e=>({value:e,suggestion:{value:e}}))).map((s=>Li.Completor.operators(e,(e=>e?o.complete(e,undefined,t):[]),s))).reduce(((e,t)=>e.concat(t)),[])}Li.Number.addArgument(_n);mn(((e,t)=>{let o;const s=e.peekIs(ln.binaryOperator)&&e.fetch().value;let a;if(s&&typeof t=="object"){let i;let n;let l=0;a=jn.getPrecedence(s);while(!n&&e.peek(l)){n=e.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:jn.getPrecedence(e.peek(l)?.value);l++}if(n&&a<n){i=fn(a,e);if(!i){e.raise("Missing right hand side of "+s)}}else i=fn(NaN,e);if(n&&a==n||n==Number.MAX_SAFE_INTEGER){o=fn(new jn(s,a,t,i),e)}else o=new jn(s,a,t,i)}return o}));mn(((e,t)=>{const o=[];let s;while(s=e.fetchIf("identifier","."))o.push(s[0].value);let a;if(o.length==0){s=e.fetchIf("any",".","any")||e.fetchIf("any",",","any")||e.fetchIf("any");a=s&&(Array.isArray(s)?new Ri(+s.map((e=>e.value.replace(",","."))).join("")):new Ri(s.value))}else{s=e.fetchIf("identifier");const t=new Ri(s?s.value:0);a=o.length>0?o.reduceRight(((e,t)=>new Ri(isNaN(+e)?e:+e,t)),t):undefined}if(a&&typeof t=="number"&&!isNaN(t)&&t!=Number.MAX_SAFE_INTEGER)a=fn(a,e);return a}));hn((e=>{let t;if(e.fetchIf(":")){let o=false;let s=false;let a=1;while(!o&&!s&&e.peek(a)){o=ln.binaryOperator.some((t=>e.peek(a)?.value==t));s=ln.comparator.some((t=>e.peek(a)?.value==t));a++}if(o)t=bn(e)}const o=e.fetchIf("any");return t?new Vi(t):o&&new Vi(o.value)}));hn((e=>{e.raise(`Ignoring unknown token "${e.fetch()}"`);return undefined}));function Ln(e,t,o={input:[],identifier:[]}){return An[t?.class]?.(e,t,o)??t}const An={};function In(e,t){An[e]=t}In("And",((e,t,o)=>new yo(t.rules.map((t=>Ln(e,t,o))))));var En;(function(e){function t(e,t){let o=undefined;let s;const a=typeof e=="string"?e:e.toString();if(t&&t.input&&t.identifier&&t?.input?.length>0&&t?.identifier?.length>0&&t.identifier.includes(a)){s=t.identifier.indexOf(a);o=isNaN(+t.input[s])?t.input[s]:+t.input[s]}return o}e.argument=t})(En||(En={}));In("EndsWith",((e,t,o)=>{const s=En.argument(t.needle,o);return s?new Ai(typeof s=="object"?s.value.toString():s.toString()):t}));In("Every",((e,t,o)=>new Ei(Ln(e,t.criteria,o))));In("FunctionCall",((e,t,o)=>{const s=e[t.identifier];const a=s?rn(s.definition):undefined;const i=a?Ln(e,a,{input:o?.input?.concat(t.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Di(t.identifier,t.argument,i)}));In("GreaterThan",((e,t,o)=>{const s=En.argument(t.value,o);return s?new $i(s):t}));In("GreaterThanOrEqual",((e,t,o)=>{const s=En.argument(t.value,o);return s?new Hi(s):t}));In("Has",((e,t,o)=>{const s=En.argument(t.property,o);return s?new Fi(typeof s=="object"?s.value.toString():s.toString()):t}));In("Includes",((e,t,o)=>{const s=En.argument(t.needle,o);return s?new Wi(typeof s=="object"?s.value.toString():s.toString()):t}));In("LesserThan",((e,t,o)=>{const s=En.argument(t.value,o);return s?new Ji(s):t}));In("LesserThanOrEqual",((e,t,o)=>{const s=En.argument(t.value,o);return s?new Zi(s):t}));In("Not",((e,t,o)=>new tn(Ln(e,t.criteria,o))));In("Or",((e,t,o)=>new an(t.criteria.map((t=>Ln(e,t,o))))));In("Property",((e,t,o)=>new Sn(t.name,t.criteria&&Ln(e,t.criteria,o))));In("Some",((e,t,o)=>new qi(Ln(e,t.criteria,o))));In("StartsWith",((e,t,o)=>{const s=En.argument(t.needle,o);return s?new zn(typeof s=="object"?s.value.toString():s.toString()):t}));In("Is",((e,t,o)=>{const s=En.argument(t.value,o);return s?new Vi(s):t}));class On extends io{constructor(e){super();this.criteria=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(e){return this.criteria.length==e.length&&this.criteria.every(((t,o)=>t.is(e[o])))}toString(){return`[${this.criteria.map((e=>e.toString())).join(", ")}]`}}lo((e=>Array.isArray(e)?new On(e.map(ho)):undefined));function Dn(e,t){const o=ho(e);return t?o.is(t):o}function Mn(e,t){const o=ho(e);return o.filter(t)}const Rn=c({emit:d()});var $n;(function(e){let t;(function(e){e.type=c({property:h().optional(),properties:b(h(),h()).optional()})})(t=e.Element||(e.Element={}));e.type=t.type.extend({smoothlyFilterUpdate:Rn,smoothlyFilterManipulate:Rn})})($n||($n={}));const Pn='.sc-smoothly-filter-h {\n\tposition: relative;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tmargin-left: 1rem;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tmargin-right: 1rem;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n\n.sc-smoothly-filter-h>div.sc-smoothly-filter-s > [slot=detail] {\n\tz-index: 5;\n}\n\n.sc-smoothly-filter-h.sc-smoothly-filter-s > [slot=bar] {\n\tpointer-events: auto;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\n\t&>[looks="plain"] {\n\t\tdisplay: flex;\n\t\talign-self: stretch;\n\t\talign-items: center;\n\t}\n}\n\n.sc-smoothly-filter-h > div.sc-smoothly-filter:empty + smoothly-icon.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > smoothly-icon.sc-smoothly-filter {\n\tcursor: pointer;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\tflex-shrink: 0;\n}\n\n.sc-smoothly-filter-h > div.close.sc-smoothly-filter {\n\tposition: fixed;\n\tz-index: 3;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100dvw;\n\theight: 100dvh;\n\tbackground: transparent;\n}\n\n.sc-smoothly-filter-h > div.hidden.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > .container.sc-smoothly-filter {\n\tpadding: 2em;\n\tposition: absolute;\n\tright: 0.35em;\n\twidth: fit-content;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttop: 100%;\n\twidth: fit-content;\n\tz-index: 4;\n\tbackground-color: rgb(var(--smoothly-color));\n\tmargin: 0.8em -2em;\n}\n\n\n.sc-smoothly-filter-h > div.container.sc-smoothly-filter:before {\n\tcontent: "";\n\twidth: 0.6em;\n\theight: 0.6em;\n\ttransform: rotate(45deg);\n\tborder-top: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-left: 1px solid rgb(var(--smoothly-medium-tint));\n\tbackground-color: rgb(var(--smoothly-color));\n\tposition: absolute;\n\tz-index: 3;\n}\n\n\n.sc-smoothly-filter-h > div.container.arrow-top.sc-smoothly-filter:before {\n\tleft: calc(91%);\n\ttop: -5px;\n}\n\n.sc-smoothly-filter-h div.container.sc-smoothly-filter:after {\n\tcontent: "";\n\theight: 100%;\n\twidth: 100%;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-radius: 0.25em;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}';const Hn=Pn;const Nn=class{constructor(t){e(this,t);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=mo();this.expanded=false}updateHandler(e){e.stopPropagation();if($n.Element.type.is(e.target))this.filters.add(e.detail)}manipulateHandler(e){e.stopPropagation();this.updating=true;this.criteria=e.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((e=>e(this.criteria)));this.updating=false}filterFieldHandler(e){e.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=mo(e.detail));this.filters.forEach((e=>e(this.criteria)))}}clear(){var e;(e=this.field)===null||e===void 0?void 0:e.clear();this.smoothlyFilter.emit(this.criteria=mo());this.filters.forEach((e=>e(this.criteria)))}render(){return t(s,{key:"5f02f45f2ddaedea29afe2ba837544a4211a0848"},t("slot",{key:"79f8ac230d422b913a1c9da8d8db80a4791ccd2a",name:"bar"}),t("smoothly-filter-field",{key:"9e443bf3973e58c73c18cb2d448aa3f3e091f211",criteria:this.criteria,ref:e=>this.field=e}),this.criteria.toString()!=""&&t("smoothly-icon",{key:"0da20ed0b3eadd8b006a4c554e263cc47270687a",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),t("div",{key:"a97816f89e1b1e208b61f252590b8d5a547007bd",class:this.expanded?"container arrow-top":"hidden"},t("slot",{key:"f997b4fa9ce28c5445d3a0a4569ddea943c699b0",name:"detail"})),t("smoothly-icon",{key:"8a10d7ce00cf8b4f184086944475dfa1218233b3",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),t("div",{key:"6957b939ed8985a3040e16632df965a3cd979d58",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};Nn.style=Hn;const Fn=".sc-smoothly-filter-field-h{flex-grow:5}";const Un=Fn;const Wn=class{constructor(t){e(this,t);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.criteria=undefined}async clear(){var e;await((e=this.input)===null||e===void 0?void 0:e.clear())}filterFieldEmit(){var e,t;this.smoothlyFilterField.emit(rn((t=(e=this.input)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""))}render(){return t(s,{key:"973a380a36fe3bda8b3517263304c386737ea564",onKeyDown:e=>e.key=="Enter"&&this.filterFieldEmit()},t("smoothly-input",{key:"2254bd3352501ef83dc866a2785aa545d22e4c1f",name:"filter",ref:e=>this.input=e,value:this.criteria.toString(),onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyBlur:e=>{e.stopPropagation();this.filterFieldEmit()},onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation()}},"Filter"))}};Wn.style=Un;const Yn=".sc-smoothly-filter-input-h{display:contents}.sc-smoothly-filter-input-h>smoothly-input.sc-smoothly-filter-input{flex-grow:1;min-width:10em;flex-basis:40%}";const Bn=Yn;const qn=class{constructor(t){e(this,t);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.type="text";this.needle="";this.label=undefined;this.property=undefined;this.placeholder=undefined}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(e){var t;if(e instanceof yo&&e.rules.length>0)for(const o of e.rules){const e=this.isCriteria(o,this.property);if(e){this.needle=(t=e.needle)!==null&&t!==void 0?t:"";break}}else this.needle=""}isCriteria(e,t){const[o,...s]=t.split(".");return e instanceof Sn&&e.name==o&&(e.criteria instanceof Wi&&e.criteria||e.criteria instanceof Sn&&this.isCriteria(e.criteria,s.join(".")))||undefined}inputHandler(e){e.stopPropagation();const t=e.detail[this.property];const o=e=>{let o=e;const s=t?this.getCriteria(t):undefined;if(o instanceof yo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s?e!=-1&&o.rules.splice(e,1):e==-1?o.rules.push(s):o.rules[e]=s;o=mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(e){return this.property.split(".").reduceRight(((e,t)=>Cn(t,e)),Yi(e))}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Sn&&e.name==o&&(s.length==0||!!e.criteria&&this.findInstanceOf(e.criteria,s.join(".")))}render(){return t("smoothly-input",{key:"b56129f24bc8693afce8ae512bf28eb3d8e4f0a3",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>this.inputHandler(e)},this.label,t("slot",{key:"73681d12344f1e2722672e13eca712c6bb775bf6"}))}};qn.style=Bn;const Gn=".sc-smoothly-filter-select-h{display:contents}.sc-smoothly-filter-select-h>smoothly-input-select.sc-smoothly-filter-select{flex-grow:1;width:12.5em}";const Kn=Gn;const Vn=class{constructor(t){e(this,t);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.updating=false;this.items=new Map;this.label=undefined;this.property=undefined;this.multiple=false;this.type="string";this.looks="plain"}async componentDidLoad(){this.smoothlyInputLooks.emit((e=>this.looks=e));this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(e){var t,o;(o=await((t=this.selectElement)===null||t===void 0?void 0:t.getItems()))===null||o===void 0?void 0:o.forEach((e=>this.items.set(e.value,{state:this.property.split(".").reduceRight(((e,t)=>({[t]:e})),e.value),item:e})))}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks)}}update(e){this.updating=true;if(e instanceof yo&&e.rules.length>0)for(const t of this.items.values()){const o=e.rules.some((e=>this.isCriteria(e,this.property,t.state)&&(this.type=="array"?this.findInstanceOf(e,this.property):e.is(t.state))));t.item.selected=o}else this.items.forEach((e=>e.item.selected=false));this.updating=false}isCriteria(e,t,o){const[s,...a]=t.split(".");const i=e instanceof Sn&&e.name==s?this.isCriteria(e.criteria,a.join("."),o[s]):this.multiple?e instanceof pn&&e.value.some((e=>e==o))||this.type=="array"&&e instanceof vn&&e.criteria.some((e=>e==o)):e instanceof Vi&&e.value==o;return i}selectHandler(e){e.stopPropagation();if(!this.updating){const t=e.detail[this.property];const o=e=>{let o=e;const s=this.getCriteria(t);if(!(o instanceof io))o=s?mo(o,s):o;else if(o instanceof yo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s&&e>=0?o.rules.splice(e,1):!s?undefined:e==-1?o.rules.push(s):o.rules[e]=s;o=mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Sn&&e.name==o&&(e.criteria instanceof pn||e.criteria instanceof Vi||e.criteria instanceof vn||e.criteria instanceof Sn&&this.findInstanceOf(e.criteria,s.join(".")))}getCriteria(e){let t;if(this.multiple&&h().array({criteria:"minLength",value:1}).is(e))t=this.type=="array"?xn(e):gn(e);else if(typeof e=="string")t=Dn(e);else t=undefined;return t&&this.property.split(".").reduceRight(((e,t)=>Cn(t,e)),t)}render(){return t("smoothly-input-select",{key:"63dd66346169d75070e8083372c91376d91d4b74",ref:e=>this.selectElement=e,name:this.property,looks:this.looks,multiple:this.multiple,onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyItemSelect:e=>e.stopPropagation(),onSmoothlyInput:e=>this.selectHandler(e)},this.label&&t("span",{key:"15a587708da19b84534eff8ecfb91538594a1ee6",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),t("slot",{key:"32b9046a80528a81bbdcadb8eba42421b94a150e",name:"items"}))}get element(){return a(this)}};Vn.style=Kn;const Jn=".sc-smoothly-filter-toggle-h{position:relative;display:inline-block;cursor:pointer}.sc-smoothly-filter-toggle-h:hover>smoothly-icon.sc-smoothly-filter-toggle{stroke:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-tint));fill:rgb(var(--smoothly-success-tint))}[flip].sc-smoothly-filter-toggle-h{transform:scaleX(-1)}";const Xn=Jn;const Zn=class{constructor(t){e(this,t);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.icon=undefined;this.properties=undefined;this.toolTip=undefined;this.not=undefined;this.flip=false;this.active=false}componentWillLoad(){this.active&&this.activeHandler()}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(e){if(e instanceof yo&&e.rules.length>0){this.active=Object.entries(this.properties).every((([t,o])=>e.rules.some((e=>{const s=!this.not?e:e instanceof tn?e.criteria:undefined;return o==""?!(s instanceof Sn&&s.name==t):this.isCriteria(s,t,o)}))))}else this.active=false}isCriteria(e,t,o){const[s,...a]=t.split(".");return e instanceof Sn&&e.name==s&&(e.criteria instanceof Vi&&e.criteria.value==o||this.isCriteria(e.criteria,a.join("."),o))}activeHandler(e){const t=t=>{let o=t;e&&(this.active=!this.active);if(o instanceof yo){for(const[e,t]of Object.entries(this.properties)){const s=!this.active||this.active&&t==""?undefined:this.not?on(this.createCriteria(e,t)):this.createCriteria(e,t);const a=o.rules.findIndex((t=>this.findInstanceOf(t,e)));!s&&a>=0?o.rules.splice(a,1):!s?undefined:a==-1?o.rules.push(s):o.rules[a]=s}o=mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(t.bind(this))}createCriteria(e,t){const[o,...s]=e.split(".");return Cn(o,s.length==0?Dn(t):this.createCriteria(s.join("."),t))}findInstanceOf(e,t){const o=!this.not?e:e instanceof tn?e.criteria:false;const[s,...a]=t.split(".");return o instanceof Sn&&o.name==s&&(a.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,a.join(".")))}render(){return t("smoothly-icon",{key:"dae8e2369eeb83660f0bd447c33ebaa93162bd83",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};Zn.style=Xn;var Qn;(function(e){function t(e){return typeof e=="string"&&(e=="GET"||e=="POST"||e=="DELETE"||e=="HEAD"||e=="PATCH"||e=="PUT"||e=="OPTIONS"||e=="TRACE"||e=="CONNECT")}e.is=t;function o(e){e=e?.toUpperCase();return t(e)?e:undefined}e.parse=o})(Qn||(Qn={}));const el={};function tl(e,...t){t.forEach((t=>el[t]=e))}function ol(e){const t=e.headers.get("Content-Type");const o=t&&t.split(";");const s=el[o?.[0]??"plain/text"];return s?s(e):e.text()}const sl={};function al(e,...t){t.forEach((t=>sl[t]=e))}function il(e,t){const o=sl[t?.split(";")[0]??""];return o?o(e,t):e}function nl(e){return e.toLowerCase().replace(/-[a-z]/g,(e=>e.substring(1).toUpperCase()))}function ll(e){const t=e.replace(/[A-Z]/g,(e=>"-"+e));return t[0].toUpperCase()+t.substring(1)}const rl=[["aIM","A-IM",1],["accept","Accept",2],["acceptCharset","Accept-Charset",2],["acceptDatetime","Accept-Datetime",1],["acceptEncoding","Accept-Encoding",2],["acceptLanguage","Accept-Language",2],["accessControlRequestMethod","Access-Control-Request-Method",1],["accessControlRequestHeaders","Access-Control-Request-Headers",1],["authorization","Authorization",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentLength","Content-Length",1],["contentMD5","Content-MD5",1],["contentType","Content-Type",1],["cookie","Cookie",1],["date","Date",1],["expect","Expect",1],["forwarded","Forwarded",1],["from","From",1],["host","Host",1],["http2Settings","HTTP2-Settings",1],["ifMatch","If-Match",2],["ifModifiedSince","If-Modified-Since",1],["ifNoneMatch","If-None-Match",2],["ifRange","If-Range",1],["ifUnmodifiedSince","If-Unmodified-Since",1],["maxForwards","Max-Forwards",1],["origin","Origin",1],["pragma","Pragma",1],["proxyAuthorization","Proxy-Authorization",1],["range","Range",1],["referer","Referer",1],["te","TE",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["userAgent","User-Agent",1],["upgrade","Upgrade",2],["via","Via",2],["warning","Warning",1],["upgradeInsecureRequests","Upgrade-Insecure-Requests",1],["xRequestedWith","X-Requested-With",1],["dnt","DNT",1],["xForwardedFor","X-Forwarded-For",1],["xForwardedHost","X-Forwarded-Host",1],["xForwardedProto","X-Forwarded-Proto",1],["xMsContinuation","X-Ms-Continuation",1],["frontEndHttps","Front-End-Https",1],["xHttpMethodOverride","X-Http-Method-Override",1],["xAttDeviceId","X-ATT-DeviceId",1],["xWapProfile","X-Wap-Profile",1],["proxyConnection","Proxy-Connection",1],["xCsrfToken","X-Csrf-Token",1],["xCorrelationID","X-Correlation-ID",1],["xModNonce","x-mod-nonce",1],["xModRetry","x-mod-retry",1],["saveData","Save-Data",1],["xAuthToken","X-Auth-Token",1],["xTrackingId","x-tracking-id",1]];var cl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&rl.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=rl.find((([t,o,s])=>t==e));return[o?o[1]:ll(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?[...e]:Object.entries(e)).map((([e,t])=>{const o=rl.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[nl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.entries=="function"}})(cl||(cl={}));var dl;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["method","url","parameter","search","remote","header","body"].some((t=>t==e))))&&Qn.is(e.method)&&e.url instanceof URL&&typeof e.parameter=="object"&&Object.entries(e.parameter).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&typeof e.search=="object"&&Object.entries(e.search).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&(e.remote==undefined||typeof e.remote=="string")&&(e.header==undefined||cl.is(e.header))}e.is=t;async function o(e){const o=t(e)?e:a(e);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:e,...t})=>t)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:cl.to(s),body:["GET","HEAD"].some((e=>e==o.method))?undefined:await il(await o.body,o.header.contentType)}}e.to=o;function s(e){const t=new URL(e.url);return{method:Qn.parse(e.method)??"GET",url:t,header:cl.from(e.headers),parameter:{},search:Object.fromEntries(t.searchParams.entries()),body:ol(e),..."cf"in e&&{cloudflare:e.cf}}}e.from=s;function a(e){let t;if(typeof e=="string")t=a({url:e});else{const o=typeof e.url=="string"?new URL(e.url):e.url;t={method:Qn.parse(e.method)??"GET",url:o,parameter:e.parameter??{},search:{...e.search,...Object.fromEntries(o.searchParams.entries())},remote:e.remote,header:e.header??{},body:e.body}}return t}e.create=a;(function(e){e.is=cl.is;e.from=cl.from;e.to=cl.to})(e.Header||(e.Header={}))})(dl||(dl={}));const hl=typeof Response!="undefined"?Response:globalThis.Response;var bl=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var fl=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var yl,ml,ul,pl,gl,kl,vl,xl,wl;class Sl{get state(){return bl(this,pl,"f")?"closed":"opened"}set onMessage(e){if(bl(this,ml,"f").length&&e){bl(this,ml,"f").forEach(e);fl(this,ml,[],"f")}fl(this,kl,e,"f")}set onClose(e){if(this.state=="closed"&&e)e();fl(this,vl,e,"f")}set onOpen(e){if(this.state=="opened"&&e)e();fl(this,wl,e,"f")}constructor(e,t){yl.add(this);ml.set(this,[]);ul.set(this,[]);pl.set(this,false);gl.set(this,void 0);kl.set(this,void 0);vl.set(this,void 0);wl.set(this,void 0);fl(this,gl,e,"f");if(t)fl(this,ul,undefined,"f");bl(this,gl,"f").addEventListener("open",(()=>{if(bl(this,wl,"f"))bl(this,wl,"f").call(this);bl(this,yl,"m",xl).bind(this)}));bl(this,gl,"f").addEventListener("message",(async e=>{const t=this.processReceived(e.data);bl(this,yl,"m",xl).call(this);if(bl(this,kl,"f"))bl(this,kl,"f").call(this,t);else bl(this,ml,"f")?.push(t)}));bl(this,gl,"f").addEventListener("close",(()=>{if(bl(this,vl,"f"))bl(this,vl,"f").call(this);fl(this,pl,true,"f")}))}send(e){if(bl(this,ul,"f"))bl(this,ul,"f").push(this.processSend(e));else bl(this,gl,"f").send(this.processSend(e))}}ml=new WeakMap,ul=new WeakMap,pl=new WeakMap,gl=new WeakMap,kl=new WeakMap,vl=new WeakMap,wl=new WeakMap,yl=new WeakSet,xl=function e(){bl(this,ul,"f")?.forEach((e=>bl(this,gl,"f").send(e)));fl(this,ul,undefined,"f")};class Cl extends Sl{processReceived(e){return e?.arrayBuffer?e.arrayBuffer():typeof e=="string"?(new TextEncoder).encode(e).buffer:e}processSend(e){return e}}class zl extends Sl{processReceived(e){return JSON.parse(e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e)}processSend(e){return JSON.stringify(e)}}class Tl extends Sl{processReceived(e){return e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e}processSend(e){return e}}var jl=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var _l=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Ll,Al,Il;class El{get json(){if(!jl(this,Ll,"f"))_l(this,Ll,new zl(this.backend,this.isOpen),"f");return jl(this,Ll,"f")}get string(){if(!jl(this,Al,"f"))_l(this,Al,new Tl(this.backend,this.isOpen),"f");return jl(this,Al,"f")}get arrayBuffer(){if(!jl(this,Il,"f"))_l(this,Il,new Cl(this.backend,this.isOpen),"f");return jl(this,Il,"f")}constructor(e,t){this.backend=e;this.isOpen=t;Ll.set(this,void 0);Al.set(this,void 0);Il.set(this,void 0)}createResponse(e={}){return{status:101,socket:this,header:e}}close(e,t){this.backend.close(e,t)}}Ll=new WeakMap,Al=new WeakMap,Il=new WeakMap;var Ol;(function(e){e.Factory=El})(Ol||(Ol={}));const Dl=[["accessControlAllowOrigin","Access-Control-Allow-Origin",1],["accessControlAllowCredentials","Access-Control-Allow-Credentials",1],["accessControlExposeHeaders","Access-Control-Expose-Headers",2],["accessControlMaxAge","Access-Control-Max-Age",1],["accessControlAllowMethods","Access-Control-Allow-Methods",2],["accessControlAllowHeaders","Access-Control-Allow-Headers",2],["acceptPatch","Accept-Patch",1],["acceptRanges","Accept-Ranges",1],["age","Age",1],["allow","Allow",2],["altSvc","Alt-Svc",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentDisposition","Content-Disposition",1],["contentEncoding","Content-Encoding",1],["contentLanguage","Content-Language",2],["contentLength","Content-Length",1],["contentLocation","Content-Location",1],["contentMD5","Content-MD5",1],["contentRange","Content-Range",1],["contentSecurityPolicy","Content-Security-Policy",1],["contentType","Content-Type",1],["date","Date",1],["deltaBase","Delta-Base",1],["eTag","ETag",1],["expires","Expires",1],["iM","IM",1],["lastModified","Last-Modified",1],["link","Link",1],["location","Location",1],["p3P","P3P",1],["pragma","Pragma",1],["proxyAuthenticate","Proxy-Authenticate",1],["publicKeyPins","Public-Key-Pins",1],["refresh","Refresh",1],["retryAfter","Retry-After",1],["server","Server",1],["setCookie","Set-Cookie",1],["status","Status",1],["strictTransportSecurity","Strict-Transport-Security",1],["timingAllowOrigin","Timing-Allow-Origin",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["tk","Tk",1],["upgrade","Upgrade",2],["vary","Vary",2],["via","Via",1],["warning","Warning",1],["wwwAuthenticate","WWW-Authenticate",1],["xContentDuration","X-Content-Duration",1],["xContentSecurityPolicy","X-Content-Security-Policy",1],["xContentTypeOptions","X-Content-Type-Options",1],["xCorrelationId","X-Correlation-ID",1],["xFrameOptions","X-Frame-Options",1],["xMsContinuation","X-Ms-Continuation",1],["xPoweredBy","X-Powered-By",1],["xRequestId","X-Request-ID",1],["xUACompatible","X-UA-Compatible",1],["xWebkitCsp","X-WebKit-CSP",1],["xXssProtection","X-XSS-Protection",1]];var Ml;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&Dl.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=Dl.find((([t,...o])=>t==e));return[o?o[1]:ll(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?n(e):Object.entries(e)).map((([e,t])=>{const o=Dl.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[nl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.forEach=="function"}function n(e){const t=[];e.forEach(((e,o)=>t.push([o,e])));return t}})(Ml||(Ml={}));var Rl;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||Ml.is(e.header))&&(e.socket==undefined||typeof e.socket.close=="function"&&typeof e.socket.json?.send=="function"&&typeof e.socket.string?.send=="function"&&typeof e.socket.arrayBuffer?.send=="function")&&(e.status!=undefined||e.header!=undefined||e.body!=undefined)}e.is=t})(Rl||(Rl={}));var $l;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||Ml.is(e.header))&&(e.socket==undefined||e.socket instanceof WebSocket)}e.is=t;async function o(e){return new hl(await il(await e.body,e.header.contentType),{status:e.status,headers:new Headers(Ml.to(!e.header.contentType?.startsWith("multipart/formdata")?e.header:(({contentType:e,...t})=>t)(e.header))),...e.socket&&{webSocket:{...e.socket.createResponse().socket}?.backend}})}e.to=o;function s(e){return{status:e.status,header:Ml.from(e.headers),body:e.status==101?undefined:ol(e),...e.webSocket&&{socket:new Ol.Factory(e.webSocket)}}}e.from=s;function a(e,t){const o=Rl.is(e)?{status:200,header:{},body:undefined,...e.socket&&{socket:e.socket},...e}:typeof e?.createResponse=="function"&&(t==undefined||Ml.is(t))?e.createResponse(t):{status:typeof e=="object"&&typeof e.status=="number"&&e.status||200,header:typeof e=="object"?{...e.header,...(e.status==301||e.status==302)&&e.location?{location:e.location}:{}}:{},body:!(typeof e=="object"&&!Array.isArray(e))||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof FormData?e:(({header:e,...t})=>t)(e),...e.webSocket&&{socket:new Ol.Factory(e.webSocket)}||e.socket&&{socket:e.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof t=="string"?t:t?.contentType?t.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?i(o.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":o.header.contentType=o.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(o.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(o.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return o}e.create=a;function i(e){const t=new Uint8Array(ArrayBuffer.isView(e)?e.buffer:e).slice(0,4);return[37,80,68,70].every(((e,o)=>e==t[o]))}e.Header=Ml;e.Like=Rl})($l||($l={}));const Pl=Hl(globalThis.fetch);Pl.create=Hl;function Hl(e){return async t=>{const o=dl.create(t);return $l.from(await e(o.url.toString(),await dl.to(o)))}}var Nl;(function(e){function t(e){const t=new globalThis.FormData;t.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(e,"",t)))],{type:"application/json; charset=utf-8"}));return t}e.to=t;function o(e,t,a){return Object.entries(e).reduce(((e,[i,n])=>{n instanceof Blob?a.append(t?`${t}.${i}`:i,n):typeof n=="object"&&n?Array.isArray(n)?e[i]=s(n,t?`${t}.${i}`:i,a):e[i]=o(n,t?`${t}.${i}`:i,a):e[i]=n;return e}),{})}function s(e,t,a){return e.reduce(((e,i)=>{typeof i=="object"&&i?Array.isArray(i)?e.push(s(i,t,a)):e.push(o(i,t,a)):e.push(i);return e}),[])}async function a(e){const t={};for(const[o,s]of e.entries())await i(t,o.split("."),s);return t}e.from=a;async function i(e,[t,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?t=="*"?n(e,JSON.parse(await s.text())):typeof e[t]=="object"&&e[t]?n(e[t],JSON.parse(await s.text())):e[t]=JSON.parse(await s.text()):e[t]=s;else i(typeof e[t]=="object"&&e[t]?e[t]:e[t]={},o,s)}function n(e,...t){if(t.length){const[o,...s]=t;Object.entries(o).forEach((([t,s])=>l(s)?n(l(e[t])?e[t]:e[t]={},s):e[t]=o[t]));n(e,...s)}}function l(e){return e&&typeof e=="object"&&!Array.isArray(e)}e.isObject=l})(Nl||(Nl={}));function Fl(e){const t=[];const o=(e,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":t.push(`${e}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))o(e?e+`[${t}]`:t,s[t]);break}};o("",e);return t.join("&")}function Ul(e){const t=e=>typeof e=="object"&&Object.keys(e).sort().every(((e,t)=>`${e}`==`${t}`))?Object.entries(e).sort().map((e=>typeof e[1]=="object"?t(e[1]):e[1])):typeof e=="object"?Object.fromEntries(Object.entries(e).map((e=>[e[0],t(e[1])]))):e;const o=(e,t,s)=>{e[t[0]]=t.length>1?o(e[t[0]]??{},t.slice(1),s):s;return e};const s=e.split("&").map((e=>e.split("=",2))).map((([e,t])=>[decodeURIComponent(e).split("[").map((e=>e.replace("]",""))),decodeURIComponent(t.replace(/\+/g," "))]));return s.reduce(((e,[s,a])=>t(o(e,s,a))),{})}tl((async e=>await e.text()),"text/plain","text/html");tl((async e=>await e.json()),"application/json");tl((async e=>await e.arrayBuffer()),"application/pdf");tl((async e=>Nl.from(await e.formData())),"multipart/form-data");tl((async e=>Ul(await e.text())),"application/x-www-form-urlencoded");al((async e=>typeof e=="string"?e:e.toString()),"text/plain","text/html");al((async e=>JSON.stringify(e)),"application/json");al((async e=>e),"application/pdf");al((async e=>Fl(e)),"application/x-www-form-urlencoded");al((async e=>e instanceof globalThis.FormData?e:Nl.to(e)),"multipart/form-data");var Wl;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.clear=="function"}e.is=t})(Wl||(Wl={}));var Yl;(function(e){let t;(function(e){e.type=c({edit:d(),readonly:f(),listen:d(),reset:d(),setInitialValue:d()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=c({emit:d()});e.type=t.type.extend({changed:f(),value:_().optional(),smoothlyFormDisable:o});e.is=e.type.is})(Yl||(Yl={}));var Bl;(function(e){e.types=["plain","grid","border","line","transparent"];e.type=h(e.types);e.is=e.type.is})(Bl||(Bl={}));var ql;(function(e){let t;(function(e){e.type=c({value:y(m.type,m.valueType).optional(),color:r.type.optional(),name:h(),looks:Bl.type,defined:f().optional(),binary:d().optional()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=c({emit:d()});e.type=t.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyInputForm:o.optional()});e.is=e.type.is})(ql||(ql={}));const Gl='smoothly-form{display:block;position:relative}smoothly-form>form{position:relative;min-width:15em}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:10em;flex-basis:40%}smoothly-form[looks="grid"]>form>fieldset{border:rgba(var(--text-color), .5) solid .5px}smoothly-form[looks="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{gap:2em}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:0.5rem}';const Kl=Gl;const Vl=class{constructor(t){e(this,t);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyFormInput=o(this,"smoothlyFormInput",7);this.smoothlyFormSubmit=o(this,"smoothlyFormSubmit",7);this.smoothlyFormReset=o(this,"smoothlyFormReset",7);this.smoothlyFormEdit=o(this,"smoothlyFormEdit",7);this.smoothlyFormClear=o(this,"smoothlyFormClear",7);this.notice=o(this,"notice",7);this.contentType="json";this.inputs=new Map;this.readonlyAtLoad=this.readonly;this.listeners={};this.color=undefined;this.value={};this.action=undefined;this.type=this.action?"create":undefined;this.readonly=false;this.looks="plain";this.name=undefined;this.prevent=true;this.changed=false;this.processing=undefined}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async listen(e,t){var o;var s;((o=(s=this.listeners)[e])!==null&&o!==void 0?o:s[e]=[]).push(t);t(this)}watchValue(){var e;this.changed=[...this.inputs.values()].some((e=>Yl.type.is(e)?e.changed:true));(e=this.listeners.changed)===null||e===void 0?void 0:e.forEach((e=>e(this)))}watchReadonly(){var e;(e=this.listeners.changed)===null||e===void 0?void 0:e.forEach((e=>e(this)))}smoothlyInputLooksHandler(e){e.stopPropagation();e.detail(this.looks,this.color)}async smoothlyInputHandler(e){this.value=m.merge(this.value,e.detail);this.smoothlyFormInput.emit(m.convertArrays(this.value))}windowSubmitHandler(e){e.target==this.element&&e.detail.result(false)}submitHandler(e){this.action&&e.stopPropagation()}async smoothlyInputLoadHandler(e){var t,o;e.stopPropagation();e.detail(this);if(ql.Element.is(e.target)){if(await((o=(t=e.target).binary)===null||o===void 0?void 0:o.call(t)))this.contentType="form-data";this.value=m.merge(this.value,{[e.target.name]:e.target.value});this.inputs.set(e.target.name,e.target)}}async smoothlyFormDisableHandler(e){e.stopPropagation();e.detail(this.readonly)}async submit(e){this.processing=new Promise((t=>{this.smoothlyFormSubmit.emit({value:m.convertArrays(this.value),result:t,type:e==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(k.execute("Submitting form",(async()=>{const s=e?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const a=await Pl(dl.create(s=="GET"?{method:s,url:`${o}?${Fl(this.value)}`}:Object.assign({method:s,url:o},this.value&&{header:{contentType:this.contentType?"multipart/form-data":"application/json"},body:this.value}))).catch((()=>undefined));const i=!a||(a===null||a===void 0?void 0:a.status)<200||a.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];t(i[0]);return[...i]})))}}));if(await this.processing){this.type=="create"&&await this.clear();this.setInitialValue();this.readonlyAtLoad&&this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){this.inputs.forEach((e=>{Wl.is(e)&&e.clear()}));this.smoothlyFormClear.emit()}async edit(e){this.inputs.forEach((t=>{Yl.Element.type.is(t)&&t.edit(e)}));this.readonly=!e;this.smoothlyFormEdit.emit(e)}async reset(){this.inputs.forEach((e=>{Yl.Element.type.is(e)&&e.reset()}));this.changed=[...this.inputs.values()].some((e=>Yl.type.is(e)?e.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){this.inputs.forEach((e=>{Yl.Element.type.is(e)&&e.setInitialValue()}))}render(){return t(s,{key:"bd8e89ad9377e3482b0970e354ad0c168f46f04c"},t("smoothly-spinner",{key:"d7e94e4c4f94334f18bc657e8fe3c4d12679be69",overlay:true,hidden:!this.processing}),t("form",{key:"05688fca9297aeda5fd69edaab2f53b40df74d5e",onSubmit:!this.prevent?undefined:e=>e.preventDefault(),name:this.name},t("fieldset",{key:"53baa7c58ca6ca9fd22a6797665f7b9683dc4a4a"},t("slot",{key:"2b448b7071e115df3cce15db43a4864c31fb2c9a"})),t("div",{key:"ec4481db890942b8bbe87aa9b8064368dfd4a7df"},t("slot",{key:"7db114e57e010e76bb199992222e74bce22f5c8f",name:"edit"}),t("slot",{key:"6da02cff3c9b367d892e314cda912a0874e497bc",name:"reset"}),t("slot",{key:"38bfd7496418b479da79893b9f7e095d96dbff99",name:"clear"}),t("slot",{key:"e88c3e83409b8810a1a9a99251144cd0a8fe7587",name:"submit"}))))}get element(){return a(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};Vl.style=Kl;const Jl=".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";const Xl=Jl;const Zl=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.message2=o(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const e=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return e&&e.contentWindow||undefined}get defaultOrigin(){const e=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return e?e[0]:"*"}componentDidLoad(){var e;if(this.contentWindow)u.listen((e=this.origin)!==null&&e!==void 0?e:this.defaultOrigin,((e,t)=>{if(e==this.name)if(l.is(t))this.trigger.emit(t);else this.message2.emit({destination:e,content:t})}),window)}async send(e,t){var o,s;if(typeof e=="string")u.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+e,t,this.contentWindow);else if(u.is(e)&&this.contentWindow)u.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+e.destination,content:e.destination},this.contentWindow)}render(){return[]}get element(){return a(this)}};Zl.style=Xl;const Ql="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:block}[rotate].sc-smoothly-icon-h{--rotate:rotate(var(--rotation, 0deg));transform:var(--rotate)}[flip=x].sc-smoothly-icon-h{--flip:scaleX(-1);transform:var(--flip)}[flip=y].sc-smoothly-icon-h{--flip:scaleY(-1);transform:var(--flip)}[rotate][flip].sc-smoothly-icon-h{transform:var(--rotate)var(--flip)}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}";const er=Ql;const tr=class{constructor(t){e(this,t);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";this.rotate=undefined;this.flip=undefined;this.toolTip=undefined;this.latestPromise=undefined;this.document=undefined}async componentWillLoad(){await this.nameChanged()}async nameChanged(){if(this.name!="empty"){const e=this.latestPromise=p.load(this.name);let t=await e;if(e==this.latestPromise){t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)t=t===null||t===void 0?void 0:t.replace(/<title>.*<\/title>/,"");else if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(t)}}else this.updateDocument()}updateDocument(e){this.document=e!==null&&e!==void 0?e:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\n\t\t<title>Empty</title>\n\t\t</svg>`}render(){var e;return t(s,{key:"2a8570880c46a738cc95bb49cc3e3523b859a243",innerHTML:this.document,style:{["--rotation"]:`${(e=this.rotate)!==null&&e!==void 0?e:0}deg`}})}static get watchers(){return{name:["nameChanged"]}}};tr.style=er;const or=".sc-smoothly-icon-demo-h{display:block}[hidden].sc-smoothly-icon-demo-h{display:none}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>*.sc-smoothly-icon-demo{margin:0.5cm}";const sr=or;const ar=class{constructor(t){e(this,t);this.page=0}render(){return[t("h1",{key:"bd260856aa0fea0c1b97c69b771bec30620bb76b"},"Icons"),t("div",{key:"eb13722a274ffd23f544c0b1594786ada32f6091"},["add-circle","add","airplane","alarm","albums","alert-circle","alert","american-football","analytics","aperture","apps","archive","arrow-back-circle","arrow-back","arrow-down-circle","arrow-down","arrow-forward-circle","arrow-forward","arrow-redo-circle","arrow-redo","arrow-undo-circle","arrow-undo","arrow-up-circle","arrow-up","at-circle","at","attach","backspace","bandage","barbell","bar-chart","barcode","baseball","basketball","basket","battery-charging","battery-dead","battery-full","battery-half","beaker","bed","beer","bicycle","bluetooth","boat","body","bonfire","bookmarks","bookmark","book","briefcase","browsers","brush","bug","build","bulb","business","bus","cafe","calculator","calendar","call","camera-reverse","camera","card","caret-back-circle","caret-back","caret-down-circle","caret-down","caret-forward-circle","caret-forward","caret-up-circle","caret-up","car-sport","car","cart","cash","cellular","chatbox-ellipses","chatbox","chatbubble-ellipses","chatbubbles","chatbubble","checkbox","checkmark-circle","checkmark-done-circle","checkmark-done","checkmark","chevron-back-circle","chevron-back","chevron-down-circle","chevron-down","chevron-forward-circle","chevron-forward","chevron-up-circle","chevron-up","clipboard","close-circle","close","cloud-circle","cloud-done","cloud-download","cloud-offline","cloud","cloud-upload","cloudy-night","cloudy","code-download","code-slash","code","code-working","cog","color-fill","color-filter","color-palette","color-wand","compass","construct","contract","contrast","copy","create","crop","cube","cut","desktop","disc","document-attach","documents","document","document-text","download","duplicate","ear","earth","easel","egg","ellipse","ellipsis-horizontal-circle","ellipsis-horizontal","ellipsis-vertical-circle","ellipsis-vertical","enter","exit","expand","eyedrop","eye-off","eye","fast-food","female","file-tray-full","file-tray-stacked","file-tray","film","filter","finger-print","fitness","flag","flame","flashlight","flash-off","flash","flask","flower","folder-open","folder","football","funnel","game-controller","gift","git-branch","git-commit","git-compare","git-merge","git-network","git-pull-request","glasses","globe","golf","grid","hammer","hand-left","hand-right","happy","hardware-chip","headset","heart-circle","heart-dislike-circle","heart-dislike","heart-half","heart","help-buoy","help-circle","help","home","hourglass","ice-cream","images","image","infinite","information-circle","information","journal","keypad","key","language","laptop","layers","leaf","library","link","list-circle","list","locate","location","lock-closed","lock-open","log-in","logo-amazon","logo-amplify","logo-android","logo-angular","logo-apple-appstore","logo-apple","logo-behance","logo-bitbucket","logo-bitcoin","logo-buffer","logo-capacitor","logo-chrome","logo-closed-captioning","logo-codepen","logo-css3","logo-designernews","logo-docker","logo-dribbble","logo-dropbox","logo-edge","logo-electron","logo-euro","logo-facebook","logo-firebase","logo-firefox","logo-flickr","logo-foursquare","logo-github","logo-gitlab","logo-google-playstore","logo-google","logo-hackernews","logo-html5","logo-instagram","logo-ionic","logo-ionitron","logo-javascript","logo-laravel","logo-linkedin","logo-markdown","logo-medium","logo-nodejs","logo-no-smoking","logo-npm","logo-octocat","logo-paypal","logo-pinterest","logo-playstation","logo-pwa","logo-python","logo-react","logo-reddit","logo-rss","logo-sass","logo-skype","logo-slack","logo-snapchat","logo-soundcloud","logo-stackoverflow","logo-steam","logo-stencil","logo-tiktok","logo-tumblr","logo-tux","logo-twitch","logo-twitter","logo-usd","log-out","logo-web-component","logo-venmo","logo-whatsapp","logo-vimeo","logo-windows","logo-vk","logo-wordpress","logo-vue","logo-xbox","logo-xing","logo-yahoo","logo-yen","logo-youtube","magnet","mail-open","mail","mail-unread","male-female","male","man","map","medal","medical","medkit","megaphone","menu","mic-circle","mic-off-circle","mic-off","mic","moon","move","musical-notes","musical-note","navigate-circle","navigate","newspaper","notifications-circle","notifications-off-circle","notifications-off","notifications","nuclear","nutrition","open","options","paper-plane","partly-sunny","pause-circle","pause","paw","pencil","people-circle","people","person-add","person-circle","person-remove","person","phone-landscape","phone-portrait","pie-chart","pin","pint","pizza","planet","play-back-circle","play-back","play-circle","play-forward-circle","play-forward","play-skip-back-circle","play-skip-back","play-skip-forward-circle","play-skip-forward","play","podium","power","pricetags","pricetag","print","pulse","push","qr-code","radio-button-off","radio-button-on","radio","rainy","reader","receipt","recording","refresh-circle","refresh","reload-circle","reload","remove-circle","remove","reorder-four","reorder-three","reorder-two","repeat","resize","restaurant","return-down-back","return-down-forward","return-up-back","return-up-forward","ribbon","rocket","rose","sad","save","scan-circle","scan","school","search-circle","search","send","server","settings","shapes","share-social","share","shield-checkmark","shield","shirt","shuffle","skull","snow","speedometer","square","star-half","star","stats-chart","stop-circle","stop","stopwatch","subway","sunny","swap-horizontal","swap-vertical","sync-circle","sync","tablet-landscape","tablet-portrait","tennisball","terminal","text","thermometer","thumbs-down","thumbs-up","thunderstorm","timer","time","today","toggle","trail-sign","train","transgender","trash-bin","trash","trending-down","trending-up","triangle","trophy","tv","umbrella","walk","wallet","warning","watch","water","videocam","wifi","wine","volume-high","volume-low","volume-medium","volume-mute","volume-off","woman"].slice(this.page*100,100).map((e=>t("smoothly-icon",{name:e,toolTip:e})))),t("h3",{key:"97948d8264020f046325a5db72fd3e2528390738"},"Icon transforms"),t("div",{key:"0c006739fcb8e3fd43d11f1900d4ec0571a224b5"},t("smoothly-icon",{key:"9bbc294fc290b962b545b5812022405d77fcea06",name:"bicycle",toolTip:"Normal"}),t("smoothly-icon",{key:"6f9c5d31b6933142c079757455b2ca258b3f891b",name:"bicycle",toolTip:"Flipped horizontally",flip:"x"}),t("smoothly-icon",{key:"57dcaec6f292bdbbb03ff7606ab41c6af521a75c",name:"bicycle",toolTip:"Flipped vertically",flip:"y"}),t("smoothly-icon",{key:"5e43974ad3c0fd3abe992cb126b7c5b755506487",name:"bicycle",toolTip:"Rotated 180deg",rotate:180}),t("smoothly-icon",{key:"d105f76842ffbe1fec4c6af4128c7139d6fd07e6",name:"wine",toolTip:"Rotated 60deg",rotate:60}),t("smoothly-icon",{key:"e556290d3fc11a9226d977e978164abac1a56758",name:"wine",toolTip:"Rotated 213deg",rotate:213}),t("smoothly-icon",{key:"84bb99cae47c6014e46894b36913403509facb27",name:"wine",toolTip:"Rotated -60deg",rotate:-60}),t("smoothly-icon",{key:"6afdfd323aa9ef25257daa97dae5e8d68d4a4e2c",name:"musical-notes",toolTip:"Flipped horizontally and rotated 45deg",rotate:45,flip:"x"}))]}};ar.style=sr;const ir='.sc-smoothly-input-h{box-sizing:border-box}[readonly].sc-smoothly-input-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-h[looks="border"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-h{border:transparent solid 1px}.sc-smoothly-input-h[looks="line"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-h{border-bottom:transparent solid 1px}.sc-smoothly-input-h[looks="grid"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-h{border:none}[looks="transparent"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-h:not(:focus-within)>input.sc-smoothly-input{background:transparent}[looks="transparent"].sc-smoothly-input-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);overflow:hidden;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input:nth-child(2){margin-left:0.2em}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>input.sc-smoothly-input{padding:0.7em 0.7em 0.7em 0.8em}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input{padding:1.2em 0.7em 0.2em 0.8em;box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}.sc-smoothly-input-h>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.sc-smoothly-input-h:not([readonly]):not(.has-value)[placeholder]>div.sc-smoothly-input>label.sc-smoothly-input,.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):not(.has-value):focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:focus{outline:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:hover,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:focus,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--smoothly-input-foreground))}';const nr=ir;const lr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyBlur=o(this,"smoothlyBlur",7);this.smoothlyChange=o(this,"smoothlyChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.keepFocusOnReRender=false;this.uneditable=this.readonly;this.listener={};this.color=undefined;this.delay=0;this.looks="plain";this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.showLabel=true;this.autocomplete=true;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.currency=undefined;this.changed=false;this.formatter=undefined;this.initialValue=undefined}async listen(e,t){this.listener[e]=t;t(this)}async SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name==this.name)){e.stopPropagation();e.detail(this)}}typeChange(){let e;switch(this.type){case"price":e=ut("price",this.currency);break;default:e=ut(this.type,rr());break}this.formatter=e||ut("text")}newState(e){return this.formatter.format(bt.copy(this.formatter.unformat(bt.copy(e))))}valueWatcher(e,t){var o,s;this.changed=this.initialValue!==this.value;if(this.lastValue!=e){this.lastValue=e;this.state=Object.assign(Object.assign({},this.state),{value:this.newState({value:this.formatter.toString(e),selection:this.state.selection}).value})}if(e!=t){if(typeof e=="string")e=e.trim();this.smoothlyInputEmit(e)}(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this)}async smoothlyInputEmit(e){var t;(t=this.abortInputEvent)===null||t===void 0?void 0:t.call(this);const o=window.setTimeout((()=>{this.abortInputEvent=undefined;this.smoothlyInput.emit({[this.name]:e})}),this.delay*1e3);this.abortInputEvent=()=>{this.abortInputEvent=undefined;window.clearTimeout(o)}}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}onCurrency(){this.state=Object.assign(Object.assign({},this.state),{value:this.newState({value:this.formatter.toString(this.value),selection:this.state.selection}).value,pattern:this.newState({value:this.formatter.toString(this.value),selection:this.state.selection}).pattern})}componentWillLoad(){var e,t;this.typeChange();const o=this.formatter.toString(this.value)||"";this.lastValue=this.initialValue=this.value;const s=o.length;this.state=this.newState({value:o,selection:{start:s,end:s,direction:"none"}});this.smoothlyInputLooks.emit(((e,t)=>(this.looks=e,!this.color&&(this.color=t))));this.smoothlyInputLoad.emit((()=>{}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidRender(){if(this.keepFocusOnReRender){this.inputElement.focus();this.keepFocusOnReRender=false}}async clear(){!this.uneditable&&(this.value=undefined)}async edit(e){!this.uneditable&&(this.readonly=!e)}async reset(){!this.uneditable&&(this.value=this.initialValue)}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:this.value})}async getFormData(e){const t={};const o=document.forms.namedItem(e);if(o){const e=o.elements;for(let o=0;o<e.length;o++){const s=e.item(o);if(this.hasNameAndValue(s)&&s.name)t[s.name]=s.value}const s=o.getElementsByTagName("smoothly-input");for(let e=0;e<s.length;e++){const o=s.item(e);if(this.hasNameAndValue(o)&&o.name)t[o.name]=o.value}}return t}hasNameAndValue(e){return typeof e.name=="string"&&typeof e.value=="string"}async setKeepFocusOnReRender(e){this.keepFocusOnReRender=e}async setSelectionRange(e,t,o){this.state=this.newState(Object.assign(Object.assign({},this.state),{selection:{start:e,end:t,direction:o!==null&&o!==void 0?o:this.state.selection.direction}}));const s=this.formatter.format(bt.copy(this.formatter.unformat(bt.copy(Object.assign({},this.state)))));this.updateBackend(s,this.inputElement)}onBlur(e){this.smoothlyBlur.emit();if(this.abortInputEvent){this.abortInputEvent();const e=typeof this.value=="string"?this.value.trim():this.value;this.smoothlyInput.emit({[this.name]:e})}if(this.initialValue!=this.value)this.smoothlyChange.emit({[this.name]:this.value})}onFocus(e){const t=this.formatter.format(bt.copy(this.formatter.unformat(bt.copy(Object.assign({},this.state)))));if(e.target)this.updateBackend(t,e.target,false)}onClick(e){var t,o,s;const a=e.target;this.state=Object.assign(Object.assign({},this.state),{value:a.value,selection:{start:(t=a.selectionStart)!==null&&t!==void 0?t:a.value.length,end:(o=a.selectionEnd)!==null&&o!==void 0?o:a.value.length,direction:(s=a.selectionDirection)!==null&&s!==void 0?s:"none"}});const i=this.newState(Object.assign({},this.state));this.updateBackend(i,a)}onKeyDown(e){var t,o,s;if(e.key&&!(e.key=="Unidentified")){const a=e.target;this.state=Object.assign(Object.assign({},this.state),{value:a.value,selection:{start:(t=a.selectionStart)!==null&&t!==void 0?t:a.value.length,end:(o=a.selectionEnd)!==null&&o!==void 0?o:a.value.length,direction:(s=a.selectionDirection)!==null&&s!==void 0?s:"none"}});if(!((e.ctrlKey||e.metaKey)&&(e.key=="v"||e.key=="x"||e.key=="c"))&&e.key.length==1||e.key=="ArrowLeft"||e.key=="ArrowRight"||e.key=="Delete"||e.key=="Backspace"||e.key=="Home"||e.key=="End"){e.preventDefault();this.processKey(e,a)}else if(e.key=="ArrowUp"||e.key=="ArrowDown")e.preventDefault()}}onPaste(e){e.preventDefault();let t=e.clipboardData?e.clipboardData.getData("text"):"";const o=e.target;t=this.expiresAutocompleteFix(o,t);this.processPaste(t,o)}onInput(e){var t;if(e.inputType=="insertReplacementText"){this.processKey({key:"a",ctrlKey:true},e.target);[...(t=e.data)!==null&&t!==void 0?t:""].forEach((t=>this.processKey({key:t},e.target)))}else{const t=e.target;let o=t.value;if(o){e.preventDefault();this.processKey({key:"a",ctrlKey:true},t);o=this.expiresAutocompleteFix(t,o);for(const e of o)this.processKey({key:e},t)}}}expiresAutocompleteFix(e,t){var o;if(((o=e.attributes.getNamedItem("autocomplete"))===null||o===void 0?void 0:o.value)=="cc-exp")t=t.match(/^20\d\d[.\D]*\d\d$/)?t.substring(t.length-2,t.length)+t.substring(2,4):t.match(/^(1[3-9]|[2-9]\d)[.\D]*\d\d$/)?t.substring(t.length-2,t.length)+t.substring(0,2):t.match(/^\d\d[.\D]*20\d\d$/)?t.substring(0,2)+t.substring(t.length-2,t.length):t;return t}processPaste(e,t){if(!this.readonly){const o=ft.paste(this.formatter,this.state,e);this.updateBackend(o,t)}}processKey(e,t){if(!this.readonly){const o=ft.apply(this.formatter,this.state,e);this.updateBackend(o,t)}}updateBackend(e,t,o=true){var s;if(e.value!=t.value)t.value=e.value;if(o){if(t.selectionStart!=undefined&&e.selection.start!=t.selectionStart)t.selectionStart=e.selection.start;if(t.selectionEnd!=undefined&&e.selection.end!=t.selectionEnd)t.selectionEnd=e.selection.end;if(t.selectionDirection!=null)t.selectionDirection=(s=e.selection.direction)!==null&&s!==void 0?s:t.selectionDirection}this.state=e;this.value=this.lastValue=this.formatter.fromString(this.formatter.unformat(bt.copy(Object.assign({},this.state))).value)}render(){var e,o,a,i,n,l,r,c;return t(s,{key:"1aee216f0844083d09cb902d676106b9349b8f40",class:{"has-value":((e=this.state)===null||e===void 0?void 0:e.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var e;return(e=this.inputElement)===null||e===void 0?void 0:e.focus()}},t("slot",{key:"7634a268b0d02c7cba2eafde4b306e41bed5a82d",name:"start"}),t("div",{key:"e78fbacdf5ddb5df73cfc41632744f7cb5ee94c9"},t("input",{key:"995ffe665e6eddf2765c8a88843a3d6bee6458b7",color:this.color,name:this.name,type:(a=this.state)===null||a===void 0?void 0:a.type,inputmode:(i=this.state)===null||i===void 0?void 0:i.inputmode,placeholder:this.placeholder,required:this.required,autocomplete:this.autocomplete?(n=this.state)===null||n===void 0?void 0:n.autocomplete:"off",disabled:this.disabled,readOnly:this.readonly,pattern:((l=this.state)===null||l===void 0?void 0:l.pattern)&&((r=this.state)===null||r===void 0?void 0:r.pattern.source),value:(c=this.state)===null||c===void 0?void 0:c.value,onInput:e=>this.onInput(e),onFocus:e=>this.onFocus(e),onClick:e=>this.onClick(e),onBlur:e=>this.onBlur(e),onKeyDown:e=>this.onKeyDown(e),ref:e=>this.inputElement=e,onPaste:e=>this.onPaste(e)}),t("label",{key:"f1c35a5aef47f1bae13d75201ea9cf95e1be5676",htmlFor:this.name},t("slot",{key:"eca8de92c0cb73a97d4bbee9bc5c185718931d89"})),t("smoothly-icon",{key:"8907c615253fe9488200e63ba70a9a6d705fc6dd",name:"alert-circle",color:"danger",fill:"clear",size:"small"})),t("slot",{key:"b6d413e439eb7ec3af471b25e289e6abc897b49a",name:"end"}))}static get watchers(){return{type:["typeChange"],value:["valueWatcher"],readonly:["watchingReadonly"],currency:["onCurrency"]}}};function rr(){const e=navigator.language;return C.is(e)?e:z.is(e)?C.toLocale(e):undefined}lr.style=nr;const cr='.sc-smoothly-input-checkbox-h{box-sizing:border-box}[readonly].sc-smoothly-input-checkbox-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-checkbox-h[looks="border"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks="line"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks="grid"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5em;padding:.6em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.2em;width:1.2em;border:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly])>smoothly-icon.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly])>input.sc-smoothly-input-checkbox{cursor:pointer}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}';const dr=cr;const hr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name=undefined;this.changed=false;this.readonly=false;this.checked=false;this.value=this.checked;this.looks="plain";this.disabled=undefined}componentWillLoad(){var e,t;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.smoothlyInputLooks.emit((e=>this.looks=e));this.smoothlyInputLoad.emit((()=>{}));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}elementCheck(){var e,t;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:this.checked});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}inputHandler(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return t(s,{key:"b8a62598d828001ff68d8b7d9b9de37416a0bb1c",onClick:()=>this.inputHandler()},t("input",{key:"6eea14f84017655288a8bd12082a3bb819628695",type:"checkbox",checked:this.checked}),this.checked&&t("smoothly-icon",{key:"31905479b80115f8abd8fa0404b757903f2f135f",name:"checkmark-outline",size:"tiny"}),t("label",{key:"4f6f6de8c600ed1b42fcfa67632805d80cff0d21"},t("slot",{key:"90a603345a8f37ecefd6f38f53ba54f073aed932"})))}static get watchers(){return{checked:["elementCheck"]}}};hr.style=dr;const br='[color=default].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-clear-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;cursor:pointer;border:none;outline:none;position:relative}[type=link].sc-smoothly-input-clear-h{display:inline;border:none}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-clear{padding:0.8em;min-width:8em}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-clear{padding:0.6em}[size=icon].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0.5em}[shape=rounded].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[shape=rounded].sc-smoothly-input-clear-h{border-radius:2rem}[type=button].sc-smoothly-input-clear-h>a.sc-smoothly-input-clear{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:100%}[size=large].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:130%}.sc-smoothly-input-clear-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-clear-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-clear-h,[shape=rounded].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear::before{border-radius:2rem}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border:1px solid rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-clear-h:not([fill=clear]):hover>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-visible,[fill=outline].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear::before{border:solid 1px rgb(var(--smoothly-button-focus-border))}[fill=outline].sc-smoothly-input-clear-h:hover>button.sc-smoothly-input-clear::before,[fill=outline].sc-smoothly-input-clear-h:focus-within>button.sc-smoothly-input-clear::before,[fill=outline].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px}.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:focus-visible,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:active,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline]):hover,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline]):focus-visible,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline]):active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h{margin:0rem;min-width:0rem;display:flex}[type="input"].sc-smoothly-input-clear-h{line-height:1}[type="form"].sc-smoothly-input-clear-h{margin:1em 0em}.sc-smoothly-input-clear-h[type="input"].sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h[type="input"] .sc-smoothly-input-clear-s>smoothly-icon{filter:opacity(60%);font-size:70%;color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-clear-h[type="input"]:hover.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h[type="input"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}[type="input"].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0rem;margin:0rem;min-width:0rem}';const fr=br;const yr=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size=undefined;this.shape=undefined;this.display=true;this.type="input"}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Wl.is(e)){this.parent=e;if(Yl.Element.is(e)){e.listen("changed",(async e=>{if(ql.is(e)){this.display=!e.readonly&&(typeof e.defined=="boolean"?e.defined:Boolean(e.value))}if(e instanceof Vl){this.disabled=e.readonly||Object.values(e.value).filter((e=>e)).length<1;this.display=!e.readonly}}))}}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.clear()}render(){return t(Pe,{key:"43ec96dadafc48eaf946fc649bb852a9fdc5226f",disabled:this.disabled,type:"button"},t("slot",{key:"c275ec6704b95f7afdd2b3bfd2eb68842014ca6d"}))}};yr.style=fr;const mr=".sc-smoothly-input-color-h{display:flex}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:5em;margin-right:0.25rem;background-color:var(--value);border:rgb(var(--smoothly-input-border)) solid 1px;border-radius:2px}";const ur=mr;const pr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.looks="plain";this.name=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((e=>this.looks=e));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}))}smoothlyInputHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}async clear(){this.value=undefined}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}inputHandler(e){this.value=e.detail[this.name]}render(){return t(s,{key:"7fdfb8975132a7807a92271747c022925693d6cc",style:{"--value":this.value}},t("smoothly-input",{key:"b6528d78e8757c14ea04c62419f6bdd4ce349f1c",value:this.value,name:this.name,looks:this.looks,onSmoothlyInput:e=>this.inputHandler(e)},"Color",t("div",{key:"2a4683d24a4872a382ddb307e5e688c71733f864",slot:"end",class:"color-sample"})))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};pr.style=ur;const gr='.sc-smoothly-input-date-h{box-sizing:border-box}[readonly].sc-smoothly-input-date-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-date-h[looks="border"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-h{border:transparent solid 1px}.sc-smoothly-input-date-h[looks="line"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-h{border-bottom:transparent solid 1px}.sc-smoothly-input-date-h[looks="grid"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-date-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-date-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-date-h{border:none}[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within)>input.sc-smoothly-input-date{background:transparent}[looks="transparent"].sc-smoothly-input-date-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background))}[looks=transparent].sc-smoothly-input-date-h smoothly-input.sc-smoothly-input-date{outline:none}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-h>div.sc-smoothly-input-date{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>div.arrow.sc-smoothly-input-date{box-sizing:border-box;position:absolute;top:1px;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h>span.icons.sc-smoothly-input-date{display:flex;flex-direction:row;align-items:center;margin-right:.4em}@media screen and (min-width: 400px){.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}';const kr=gr;const vr=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.color=undefined;this.looks="plain";this.name=undefined;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true;this.disabled=undefined}componentWillLoad(){this.smoothlyInputLoad.emit((e=>{}));this.smoothlyInputLooks.emit(((e,t)=>(this.looks=e,!this.color&&(this.color=t))))}async clear(){this.value=undefined}onStart(e){this.smoothlyValueChange.emit(e);this.smoothlyInput.emit({[this.name]:e})}smoothlyInputHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}dateSetHandler(e){this.open=false;e.stopPropagation()}render(){var e;return t(s,{key:"8c4bd6658f9e04b70b8c99a176d8177f3789e91c"},t("smoothly-input",{key:"ad4d909e15735da31e5b758ec3cd778cf3c0eba3",color:this.color,name:this.name,onFocus:()=>this.open=!this.open,onClick:()=>this.open=!this.open,disabled:this.disabled,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInput:e=>this.value=e.detail[this.name]},t("slot",{key:"e8ceed77f92c7ec37732621077b747519e37dcc0"})),t("span",{key:"514543cfea62df2ecb6b9113913b7eba37d07df4",class:"icons"},t("slot",{key:"d5ac297407e90f5ff45950e83038e568709cb0f5",name:"end"})),this.open&&!this.disabled&&[t("div",{key:"1b6e575016954799f606c7ef6f286829dbf88b4f",onClick:()=>this.open=false}),t("nav",{key:"c8096f448bf21bd4b928c8b6e4bfbfd4375f79f5"},t("div",{key:"5205c82e0b5a9e84dc7265737cc09c3d5102496f",class:"arrow"}),t("smoothly-calendar",{key:"8fa9610b97bfe3d9af94eaa87ca5195259f2af39",doubleInput:false,value:(e=this.value)!==null&&e!==void 0?e:v.now(),onSmoothlyValueChange:e=>{this.value=e.detail;e.stopPropagation()},max:this.max,min:this.min},t("div",{key:"b31c5385183db46d5664b8e6611bd82c3884964b",slot:"year-label"},t("slot",{key:"e25b6393c27466891db7924dfde5371912a38c1d",name:"year-label"})),t("div",{key:"0d93a6678014d745ce22234ec731b102850d2337",slot:"month-label"},t("slot",{key:"52bc694b9fc7317e713e8980ce32506b16bbc26b",name:"month-label"}))))])}get element(){return a(this)}static get watchers(){return{value:["onStart"]}}};vr.style=kr;const xr='.sc-smoothly-input-date-range-h{box-sizing:border-box}[readonly].sc-smoothly-input-date-range-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-date-range-h[looks="border"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-range-h{border:transparent solid 1px}.sc-smoothly-input-date-range-h[looks="line"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-range-h{border-bottom:transparent solid 1px}.sc-smoothly-input-date-range-h[looks="grid"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-date-range-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-date-range-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-date-range-h{border:none}[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within)>input.sc-smoothly-input-date-range{background:transparent}[looks="transparent"].sc-smoothly-input-date-range-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h{position:relative;display:flex;width:fit-content;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-date-range-h:focus-within smoothly-input.sc-smoothly-input-date-range{outline:none}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em;min-width:18em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;top:0px;left:0px;right:0px;bottom:0px;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>div.arrow.sc-smoothly-input-date-range{position:absolute;box-sizing:border-box;top:1px;left:-7em;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;background-color:var(--smoothly-input-background);border-radius:0.25rem;cursor:pointer}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range{min-width:15rem;border-radius:var(--border-radius, none);background-color:transparent}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}.sc-smoothly-input-date-range-h>span.icons.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center;margin-right:0.4em}';const wr=xr;const Sr=class{constructor(t){e(this,t);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name="dateRange";this.color=undefined;this.looks="plain";this.readonly=false;this.showLabel=true;this.start=undefined;this.end=undefined;this.placeholder="from — to";this.max=undefined;this.min=undefined;this.changed=false;this.value=undefined;this.open=undefined}componentWillLoad(){this.setInitialValue();this.updateValue();this.smoothlyInputLoad.emit((e=>{}));this.smoothlyInputLooks.emit(((e,t)=>(this.looks=e,!this.color&&(this.color=t))));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}inputHandler(e){const t="dateRangeInput"in e&&typeof e.dateRangeInput=="string"&&e.dateRangeInput.split(" - ");if(t&&t.length==2&&v.is(t[0])&&v.is(t[1])){this.start=t[0];this.end=t[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var e,t;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.start=this.initialStart;this.end=this.initialEnd}async setInitialValue(){this.initialStart=this.start;this.initialEnd=this.end;this.changed=false}async clear(){this.start=undefined;this.end=undefined;this.smoothlyInput.emit({[this.name]:undefined})}render(){const e=navigator.language;return t(s,{key:"0610698932df21255f4d622b2b9405d53876e17c",tabindex:0},t("section",{key:"e1b204850e35fa872130e72d371e2a021e5f0265",onClick:()=>!this.readonly&&(this.open=!this.open)},t("smoothly-input",{key:"c92c980ecf71c8e8c2e3cd6d343a8b5716548a0b",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${pt(this.start,"date",e)} — ${pt(this.end,"date",e)}`:undefined,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:e=>{e.stopPropagation();this.inputHandler(e.detail)}},t("slot",{key:"f04c37e720e26235056845ec26306a21a95ff27f"}))),t("span",{key:"1df312e526387bf60dd7a2d5a2de3ecba3e6ec13",class:"icons"},t("slot",{key:"8968171899fbbe812061b6dca3d5a4d02db88635",name:"end"})),this.open&&t("div",{key:"2bb57ec46f092fd29476407a9d3b64ed743a5c6c",onClick:()=>this.open=false}),this.open&&t("nav",{key:"87b1201c884542c8095e99799b0f4019d5adf373"},t("div",{key:"d933915c04782afd5be545da43144ad01776dd36",class:"arrow"}),t("smoothly-calendar",{key:"f5712ea297fca8e0a6f4ef2877081366e33cee9f",doubleInput:true,onSmoothlyValueChange:e=>e.stopPropagation(),onSmoothlyStartChange:e=>{e.stopPropagation();this.start=e.detail},onSmoothlyEndChange:e=>{e.stopPropagation();this.end=e.detail},onSmoothlyDateSet:e=>e.stopPropagation(),onSmoothlyDateRangeSet:e=>{e.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:e.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return a(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};Sr.style=wr;const Cr="smoothly-input-demo{display:block;margin:2em;margin-bottom:20rem}.checkbox-group{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div>smoothly-color>*,.select-div>*{flex-basis:49%}";const zr=Cr;const Tr=class{constructor(t){e(this,t);this.duration={hours:8}}render(){return t(s,{key:"9acde87e9f09c4aa84f675a50a134480d23d1f90"},t("h2",{key:"64dac79548fadce4e7a918307ee2d4d23b0777b4"},"Array in Form"),t("smoothly-form",{key:"92f337386d65b72bccb0bbe400de2debac126de8",looks:"line",onSmoothlyFormSubmit:e=>console.log(e.detail)},t("smoothly-input",{key:"251c02cae1e2abc002c419dbba459817a2dba1d0",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"3e1339eb7c2b128e60efdb95ac0a64a12020a2be",name:"pets.0.age",max:100,step:1},"First Pet's Age"),t("smoothly-input",{key:"a1b0568e7b823c88dead5c6e16bd261a63410f11",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"6faca7ba62b5d7fe09f868ecde91b07dfbd4f3ec",name:"pets.1.age",max:100,step:1},"Second Pet's Age"),t("smoothly-input",{key:"6556ee16537bd3cc60bfa0e15854f01d6c517e32",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"4fa3018712c0ac1a1d7f2b1d9a2cf421aadf9875",name:"pets.2.age",max:100,step:1},"Third Pet's Age"),t("smoothly-input-submit",{key:"94bcdee86152a9a7a449723b4652c43019896b7f",slot:"submit"})),t("h2",{key:"e9336dcbbbee86c5d2428f168390f9747475681b"},"input-date-range outside from"),t("smoothly-input-date-range",{key:"c90a4dcb4154f700c9563395eb9250d62ff270bd",onSmoothlyInput:e=>console.log("dateRange: ",e)},"Date Range",t("smoothly-input-clear",{key:"3cd8f6d2f3190f25964310e86bfdea661bdc0d72",slot:"end",size:"icon"},t("smoothly-icon",{key:"876388ddbba28a63b35afd53b3febf87a41c875d",name:"close"}))),t("h2",{key:"fbb1b62b4c9831c9e373fcc8d13335dc59ad509a"},"Controlled form"),t("smoothly-input-demo-controlled-form",{key:"6e3d10d2bdee86046ed37aac297d81c1ea153609"}),t("h2",{key:"eeeb814871cf61380b27f705175aeaa7e8a21743"},"Create form defaulting type"),t("smoothly-form",{key:"58c5a2517a0a681b5e44969e2e4f3e889505f577",looks:"line",action:"https://api.toiletapi.com/6b12fd2f-e896-46f9-b38f-25cf42cee4b4"},t("smoothly-input",{key:"61f8497814c6703b2ae9d196fa32fdb1f11d81bd",type:"text",name:"name"},"Name"),t("smoothly-input-reset",{key:"6b92dd8e0ac78861daba5f3d00ecd768be08a050",slot:"reset",type:"form",size:"icon",color:"warning",fill:"default"}),t("smoothly-input-submit",{key:"8d45365e8b30b19c8c61fce6058479cd52dd1262",slot:"submit",size:"icon",color:"success"})),t("h2",{key:"f0d21e75dfdc02b40c654611d1607d4a4aff346e"},"Select"),t("div",{key:"8932daf9231b08f6a4a176f6c432964b09d64ea7",class:"select-div"},t("smoothly-input-select",{key:"26f359c9c4f733acd968de701137dee239b1c625",name:"select-dessert",looks:"border",onSmoothlyInput:e=>console.log(e.detail)},t("label",{key:"c383fd588493e262ee0119a4db2f15d49fb8f146",slot:"label"},"Select with clear button"),t("smoothly-item",{key:"5ab677d3c1028780611c8a2db913728b274bd8d1",value:"1"},"Ice cream"),t("smoothly-item",{key:"11f34ff7c1e2ba85beb52dfc54af702987ff9c93",value:"2"},"Sponge cake"),t("smoothly-item",{key:"8f0335fbb2171b77be09253db35ec96dc0a9b0c7",value:"3"},"Cookie"),t("smoothly-item",{key:"f2c448310d79c072adab0535cd95349bc2eeec4b",value:"4"},"Croissant"),t("smoothly-item",{key:"47a1e842f9c218a0c1e723d5a51e8882cfc451a7",value:"5"},"Chocolate fondue"),t("smoothly-input-clear",{key:"23a4bfe43f241959446589653f53c6cb935b37bc",size:"icon",slot:"end"},t("smoothly-icon",{key:"7e460581319b6244bf9514ff7c733f2cd04b8f61",name:"close"}))),t("smoothly-input-select",{key:"5b6ccb6a8a076df1220c0b35954564e98d941ef2",multiple:true,name:"select-dessert-multiple",looks:"border",onSmoothlyInput:e=>console.log(e.detail)},t("label",{key:"afe147c339f75416fd3b5aaca049f6c638561411",slot:"label"},"Select multiple with reset button"),t("smoothly-item",{key:"4bdf92d63a128f1b0c1116a0f422e18567250255",value:"ice cream"},"Ice cream"),t("smoothly-item",{key:"fab384c9d3826ee9632e588e09895fad53b4b9f8",value:"sponge cake"},"Sponge cake"),t("smoothly-item",{key:"e72346854c7d581ca73b814112de230d9a33dc4d",selected:true,value:"cookie"},"Cookie"),t("smoothly-item",{key:"b55d478351991181106ba336289e4f329a5c922f",value:"croissant"},"Croissant"),t("smoothly-item",{key:"4a51bca1ab7e716fc03d722ca7d2493a69b5b616",selected:true,value:"chocolate fondue"},"Chocolate fondue"),t("smoothly-input-reset",{key:"014b5166ba081a3b4c480fad91ed3de0a3a351b4",size:"icon",slot:"end"},t("smoothly-icon",{key:"334dd01c786f3517b0a86ae701f12af74c6437a5",name:"refresh-outline"}))),t("smoothly-input-select",{key:"6aa506524e5c71ff861cc919124d66f7706aac0c",name:"select-icon",clearable:false,showSelected:false,onSmoothlyInput:e=>console.log("Form Readonly",e.detail)},t("smoothly-item",{key:"41d507262f8a51151bd8aac2207af0832918484c",value:"folder",selected:true},t("smoothly-icon",{key:"1f73c2a146ab5858b1b93d95a1b2e0b73ce39294",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"f814c9a78875dc3a6fe19032e79267eaa8212094",value:"camera"},t("smoothly-icon",{key:"d3d6a7bf8699bd3b38984bb1ce39bd8bd8fea043",size:"small",name:"camera-outline"})))),t("h2",{key:"fc3287f4b26c27b6050a34a96547c04e54b18483"},"Delayed"),t("smoothly-input",{key:"1835575a7aa8fda12a4c9d26aa4eb1a96c8f00a7",name:"Delayed",delay:2},"Delayed"),t("h2",{key:"58936ce3dcfd931e60c5126661f38a3962af5042"},"Editable form and Input with Clear and Reset - Readonly"),t("smoothly-form",{key:"d32f338958f0e2e5ee2493bdb2da43568a1616d5",looks:"grid",readonly:true,action:"https://api.toiletapi.com/6b12fd2f-e896-46f9-b38f-25cf42cee4b4"},t("smoothly-input",{key:"3b77370cffbc8fe63ed315cfb9d55bf55507d72d",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"22b0fa416957a9c67f482eaa699ff44921a15f0e",name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"acd915a6b869576a4b00ffc06008ce4aedb6fe8a",size:"icon",slot:"end"},t("smoothly-icon",{key:"be0af718b04a495e396d3cefdccbadb97fe25553",name:"close"}))),t("smoothly-input",{key:"902e2682af59c7dfee8485ed3ddde3d7eef9b5e9",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"31dddfe027857e0942dfd48a53d2dda4572a5595",size:"icon",slot:"end"},t("smoothly-icon",{key:"99846370bf6141f4c6982bbc4144537cecf0c7e1",name:"refresh-outline"}))),t("smoothly-input-radio",{key:"b31883434a41bde8494b7f9a4b8b31ae034db8c7",clearable:true,name:"radioFirstInput"},t("p",{key:"79da806ec24b6ca06e65ca12b17daf6c644b0f10",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"040f80e816bdea356b453d7fd580d7e24f9d2810",slot:"options",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"3e395679a33ce132b325a1deea84ecec574f5ae0",selected:true,slot:"options",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"523329d8e86f71fffcef57e9ea0737c9e3ff4cc8",slot:"options",value:"third"},"Label 3")),t("smoothly-input-select",{key:"f965bfdf715f520042c53f559fea04a9cf503897",menuHeight:"7.5items",placeholder:"Select...",multiple:true,name:"select-month"},t("label",{key:"3c5ea2216890b57320b1feafaf70c6b8dba0f27e",slot:"label"},"Month"),t("smoothly-item",{key:"94b7726b7a29b876f1ea0873ce136998a9446ead",value:"1"},"January"),t("smoothly-item",{key:"d4848491de437c4baa63a4a7d7e96c03b0a3c611",value:"2"},"February"),t("smoothly-item",{key:"7c1ffdd3a553b5189b4cf9cc8c8914b1baa96b0b",value:"3"},"March"),t("smoothly-item",{key:"6206c5839d0d47595a7fc1643602f5160224100d",value:"4"},"April"),t("smoothly-item",{key:"c52d04531f70e8c44617d7a05fca76bd7e0c2e5b",value:"5"},"May"),t("smoothly-item",{key:"5f61248fae212a5d48e1a2794106b0056dd7ccac",value:"6"},"June"),t("smoothly-item",{key:"1df02bc3b28f97ec1eb35f5298194513046167c4",value:"7"},"July"),t("smoothly-item",{key:"0c3c0e129a29be2a77068f115cf89987ae35e4b1",value:"8"},"August"),t("smoothly-item",{key:"8eed8f626cd84a361d978c9d9867a7492be499c4",value:"9"},"September"),t("smoothly-item",{key:"3619a3b9d419712fd7aa70ab5eaaf0d9b60880e6",value:"10"},"October"),t("smoothly-item",{key:"55ca082b2ecd77e95933d6c9e911459c531a228d",value:"11"},"November"),t("smoothly-item",{key:"e3a4a0898c772393ab89fa96ddbaf2deb020f016",value:"12"},"December"),t("smoothly-input-clear",{key:"c607ca940ad342d6ad65c56c916282811724d311",size:"icon",slot:"end"},t("smoothly-icon",{key:"c830bb4604fa233661a14a140f518dfcb4207d58",name:"close"}))),t("smoothly-input-select",{key:"807c68634fccd646c9795afd40935be97bb2c1aa",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"c56203f304bf91a4f8fbe69bb4fe4ff30fb939b8",value:"folder",selected:true},t("smoothly-icon",{key:"9f97b79d0bdc26b267395447df8371b32bcfd542",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"4cef86b3625757f403922549a089a67ed69ca1c5",value:"camera"},t("smoothly-icon",{key:"045b27fb657a41171aa50b035924032ab9f0fc8e",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"5b6c3146ac762ea5c1565dc35c8d835b5a518cce",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"fc3bfc4ece56e6d4d52a4452caed6f5360a762a4",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-date-range",{key:"1bbb223266e0ec912b00c70cf99dd974451ae9e7",start:v.now(),end:v.now()}),t("smoothly-input-range",{key:"993f7853a34b4a3d2db2f4be13bcf08408dabd7a",step:1,name:"range3",value:2e4},"Select"),t("smoothly-picker",{key:"51d17cf980f612020c2aed9c01aec7e08e539cad",multiple:true,name:"animals"},t("span",{key:"8012cf21c8fe75cea5acb311682c97fb4d4b36db",slot:"label"},"Animals"),t("span",{key:"a795883058d883897e0b20c382277cd7fb0b3fd5",slot:"search"},"Search"),t("smoothly-picker-option",{key:"67c0ae9207dad62ec7db96cdcf9a7186da225efc",selected:true,value:"cat"},"Cat"),t("smoothly-picker-option",{key:"298116a4f051db9e8c244e931b4fae2932dc93a0",value:"dog"},"Dog"),t("smoothly-picker-option",{key:"2ad4095fbc1c341aa9a1fd3d2240bf19577fd4c2",value:"fish"},"Fish")),t("smoothly-input-file",{key:"6d05700ab58e894e6d442d7b3f51319a569ef885",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"a37544c3526e48198e2be6ec78126cd1fd2aec5c",slot:"label"},"Profile"),t("smoothly-icon",{key:"78f102c96908a1caac48c3f119cd8dc1d2a1bff7",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input-edit",{key:"42b75f4f9ba5867051a632693f6245e9addbcf67",fill:"default",type:"button",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"ea3e78eed16c3ec0e27f8c150a91e9354052f533",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"313d9c0d04abf552b5f971e28aebea70c0c7b100",delete:true,slot:"clear",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"4382af088eb668b7d1f07857d10af650bb5dfda7",fill:"default",type:"button",color:"success",slot:"submit",size:"icon",shape:"rounded"},t("smoothly-icon",{key:"96be2a8e7365057377513a0604c7bae663631794",name:"checkmark-outline",fill:"solid",size:"tiny"}))),t("h2",{key:"f9abc3e4f497545f9f1fafb74ba583798ffc7e9e"},"Editable form and Input with Clear and Reset - Editable"),t("smoothly-form",{key:"8fa625bae2c05f827ad62d9c22ccfd6bdcc9a3d6",looks:"grid",type:"create",action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4"},t("smoothly-input",{key:"14f40d5d4893481c3c774002052e4a2e6b91d3e3",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"02e949f416eaa910222ea49aba8d21ca1066ce06",name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"16b353904ffe2176615ba417d1a2483ee313402a",size:"icon",slot:"end"},t("smoothly-icon",{key:"d079741c4cbdd5f95cfded4b728ae57e2931aa43",name:"close"}))),t("smoothly-input",{key:"e117d84638161b0d75b00ea5b5a25ab06c224d5c",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"3faf0eefb713e92690c87ad1ba159ad2342f6dc0",size:"icon",slot:"end"},t("smoothly-icon",{key:"81c8b3859c42a626143ead037fbebebd491b349d",name:"refresh-outline"}))),t("smoothly-input-radio",{key:"b0b3d01638c627806a0004fed112c61b84e3dc1c",clearable:true,name:"radioFirstInput"},t("p",{key:"cfcb5d119ed10c5a6fd793484e82fbb0ecca3471",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"bc89a69891d686c108ce739aabb86f50e4df3e60",slot:"options",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"c4fd66dc39a9d7676211578bc085ce90ae5e4baf",selected:true,slot:"options",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"cd26866b85a5f53645e4c5a4079ae365a8303f62",slot:"options",value:"third"},"Label 3")),t("smoothly-input-select",{key:"4fddd57cc36e42b9eebc1639187cdfd74eb7a6d3",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"129baedb21eaca5adb66709524de0492c89613ed",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"dbd0addd0f4806ce07946be92ca5c2a4c158c169",value:"1"},"January"),t("smoothly-item",{key:"9c09bf1cb69475a04166d47d61bb3402b3186783",value:"2"},"February"),t("smoothly-item",{key:"d01f265f348dc15b321793392e63ca9f494ecddf",value:"3"},"March"),t("smoothly-item",{key:"7d1be054c219ccee94205e678495488276b4cd64",value:"4"},"April"),t("smoothly-item",{key:"08e3bbe678db572de436b68ab182d2ad55e11baa",value:"5"},"May"),t("smoothly-item",{key:"b0f8a958a041cc3fdba802081b31eefa32fadeea",value:"6"},"June"),t("smoothly-item",{key:"b72ebdcdd4dafd31068f385b53999a1371e8990f",value:"7"},"July"),t("smoothly-item",{key:"99344c934316a9456a835ee6be4799dabc448b4e",value:"8"},"August"),t("smoothly-item",{key:"89d003312116d784eac8a32505719db6bd65795b",value:"9"},"September"),t("smoothly-item",{key:"5323de68c599bccd202767df1d5035cd66e7be4c",value:"10"},"October"),t("smoothly-item",{key:"b6b829cad23305c777a9cf9670d405294fde66ab",value:"11"},"November"),t("smoothly-item",{key:"579c824f39dc42f6295fdd9349165c953d3e1077",value:"12"},"December")),t("smoothly-input-select",{key:"32b3446a327108c9048355f4687687ace44a02fb",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"5d22b541a97b519f229159bde79dce2ac4422638",value:"folder",selected:true},t("smoothly-icon",{key:"2aed033a3a23b9ad0c9aac0ed9429cd53b79cb96",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"99454cc7dc411e1518fd8c0cf5b66bc8a08a225a",value:"camera"},t("smoothly-icon",{key:"d953e769ea0a61e762a7ed2ba6b1187b58631225",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"bef7d77f2c6100b7d9d13b4439acea327b168e3b",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"35556aecba2928f8fc1b0069cbb549851ebcb767",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"101b3d371f267f7be7290153d061d2fb6f33082a",step:1,name:"range3",value:2e4},"Select"),t("smoothly-picker",{key:"d41acb2db7983e287e992b3123fab1e93a592e27",multiple:true,name:"animals"},t("span",{key:"221d774951eaf0da8d84dc03c79fe5a08b6f8592",slot:"label"},"Animals"),t("span",{key:"76d97fb106966925f311253909f3d52c515aeb09",slot:"search"},"Search"),t("smoothly-picker-option",{key:"d087c0c0029e9c3570a911def1c59555f036043c",selected:true,value:"cat"},"Cat"),t("smoothly-picker-option",{key:"e5339d7bc3775a17cfd69fc23fda6c7c37185dab",value:"dog"},"Dog"),t("smoothly-picker-option",{key:"7d366b6e07fd371153302e3408b7c2cf7ed28ce5",value:"fish"},"Fish")),t("smoothly-input-edit",{key:"bdc65666154637f81febe62f7056ee0c4940493e",fill:"default",type:"button",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"9f60c0afeb9ac7ea17ce9a252ad95007208b1273",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"16ef94327db1288463414a63ab92a6bcd5f7b4f0",delete:true,slot:"clear",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"99acab5a91b689bf154f20deeb20f9587eab34ef",fill:"default",type:"button",color:"success",slot:"submit",size:"icon",shape:"rounded"},t("smoothly-icon",{key:"6ce4b02590a558f21575710a747228eb1d32c7cf",name:"checkmark-outline",fill:"solid",size:"tiny"}))),t("h2",{key:"f606f05db0982ca3527d9f2a00ee7e9bc31923bb"},"Color"),t("smoothly-form",{key:"f7c709a36c34fd5eb56a2ad1fc98c069e4f55baf",looks:"border"},t("smoothly-input-color",{key:"d6e6cdcbd83d09b46aa2e8b6b49afb0999259488",name:"color"})),t("h2",{key:"18f485d5ec9eadb6486e7d0f466b3dd4abec4950"},"Range"),t("smoothly-form",{key:"cb0518e4918917d85d24d15db980f34e19af337a",looks:"border"},t("smoothly-input-range",{key:"aa823d36bf20def295a4354e5e81ef0ca65c69d4",step:1,name:"range",outputSide:"right"},"Select and so"),t("smoothly-input-range",{key:"48cb9aa85627d0df07570ceb8d36c3bcade3a180",step:1,name:"range2"},"Select with really really long label",t("smoothly-icon",{key:"22ab400d5e3b614293fd999781a04a53e9adf7a4",name:"checkmark-circle",slot:"start"}),t("smoothly-input-clear",{key:"26d6e86721fd3cae056816d143f205e43017921e",size:"icon",slot:"end"},t("smoothly-icon",{key:"52503727257d5a9709ddd3adbada7febf6ecb21d",name:"close"}))),t("smoothly-input-range",{key:"3298519a46b305373318050842d1a8958134e4f0",step:1,name:"range3"},"Select")),t("h2",{key:"55299fe4658a24321aa8dd41f4ea80e86b0ec8df"},"Duration"),t("smoothly-form",{key:"1de85d24a3eff18640c83d532cba695856d1ad6f",looks:"border"},t("smoothly-input",{key:"600c1d09f30295e195dcb681b1c489b2be452b47",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:e=>{const t=e.detail.duration;console.log("event duration",t);this.duration=t}},"Duration"),t("smoothly-input",{key:"db5805b17087b7fe016c67f29f30f6c4440e3f4b",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:e=>{const t=e.detail.duration;console.log("event duration",t);this.duration=t}},"Duration")),t("h2",{key:"5cdf6355a958e6e156aeaa3068219ead42e0d47c"},"Transparent inputs"),t("smoothly-form",{key:"28b96429906527d77b4f848cc3b57fa7498c0831",looks:"transparent"},t("smoothly-input-file",{key:"0d9a1d6842938b29136b537bd7b006907c1935d1",name:"file"},t("span",{key:"6998c24d09f3e277f86da2f84e2f975f1aa33529",slot:"label"},"File"),t("smoothly-icon",{key:"1d5064daa1c2c5c635ac5b033514d07994cc4236",slot:"button",name:"folder-open-outline",size:"small"})),t("smoothly-input",{key:"02e1d96b8bda88a17c9e0b5b6b7e057a1672b6b9",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),t("smoothly-picker",{key:"2ab2cc2f74cb30729b65e9c35a4b3bc2b2c975c9"},t("span",{key:"f41c8f747c65cc548a7fa9a4d36a0e594cf2ed42",slot:"label"},"Picker"),t("span",{key:"7f5bb776fd14a9a07307116ef168d5158523cdff",slot:"search"},"Search"),t("smoothly-picker-option",{key:"78f0311b15c07817425c64694a3ce94637b8f31d",value:"circle"},t("smoothly-icon",{key:"304438bd14fb5ff64da18d3b1584dd0f4b62dde6",name:"ellipse-outline"})),t("smoothly-picker-option",{key:"109232c1a3fd49c3047a87c6381e961596186f70",value:"square"},t("smoothly-icon",{key:"7f4bb7d8052c905f7dfefd4f939607ea449421d7",name:"square-outline"}))),t("smoothly-input-date",{key:"96ea6975ca26af10f9852f8469ef4a8d9257869b"},"Date"),t("smoothly-input-date-range",{key:"76db31da8793cb70fdea23bd01c72aa643cd411d"},"Date Range"),t("smoothly-input-select",{key:"99d42c88e3041529bb99fd8000b5f9384c786e16",name:"transport"},t("smoothly-item",{key:"40a80fc94d390ef5630fc1057b2beb917bf85585",value:"plane"},t("smoothly-icon",{key:"fe6bc9e71a9a5b704de6be4ba4fa500da21020bc",name:"airplane-outline"})),t("smoothly-item",{key:"0c912626b664ad04c642645523b1f28edce7f4dd",value:"car"},t("smoothly-icon",{key:"bfdfd3add9bdbe13b8853c313f5a44a79eb8742a",name:"car-outline"})),t("smoothly-item",{key:"c457c502c2f6278180ae0ecced746cfd4ff577b0",value:"bus",selected:true},t("smoothly-icon",{key:"860e2402a3527d6557fd5f23d2eb3e4e3c24d739",name:"bus-outline"})))),t("h2",{key:"eb62adcc375bb2d40fb3f829cbc13d07c4f6fae0"},"Submit"),t("smoothly-form",{key:"dcae4d5fbbba009cdf660ba1bba8746d682f3a9f",looks:"border"},t("smoothly-input",{key:"ddc882b967aa1a325e00fa911ba55290632422e9",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"a988bbeaaa68b59d719ff2b08915dc90e47aeac0",type:"password",name:"password"},"Password"),t("smoothly-input-clear",{key:"4fbec4708c7735067e9da8b413b79c579e89f492",fill:"default",type:"form",color:"danger",slot:"clear"},"Clear"),t("smoothly-submit",{key:"eb810e30e7c6c7f3d099bd413becc62a38134f44",slot:"submit"},"Submit")),t("h2",{key:"7ab081a5a189ddb2a6336f4d2695fed106040415"},"Prices"),t("smoothly-form",{key:"cec900114af117b13fd9a66884ead5c4acf198bf",looks:"border"},t("smoothly-input",{key:"de3bd476da19318e7519dfd954b8d61387dad177",type:"price",name:"no"},"No currency"),t("smoothly-input",{key:"620f02d1ea763be90c242c15e42e384cfc5adceb",type:"price",name:"crowns",currency:"SEK"},"SEK"),t("smoothly-input",{key:"42b976a11c3e5789808f8195fe93af5b06c115ff",type:"price",name:"usDollar",currency:"USD"},"USD"),t("smoothly-input",{key:"4b1ed4568cc7c17c97f7353d6c77fe5ee71fc78a",type:"price",name:"pounds",currency:"GBP"},"GBP"),t("smoothly-input",{key:"69c9630761221e72dd32cf0e38bde9f3b0e8ae0a",type:"price",name:"peso",currency:"UYW"},"UYW"),t("smoothly-input",{key:"5074eefdf05ffedbcbf1a68181ef3216b4d97c78",type:"price",name:"iceland",currency:"ISK"},"ISK"),t("smoothly-input",{key:"2dde887d960a20977a1b0a0a793172156775033a",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),t("smoothly-input-clear",{key:"8ca2e1550a110cd9ca0b1c98d4a497233d25a834",fill:"default",type:"form",color:"danger",slot:"clear"},"Clear"),t("smoothly-submit",{key:"38573de7afa9d300ea2e34a3676d5c7fc8e8075b",slot:"submit"},"Submit")),t("h4",{key:"d6a83829cc02fa5dcf29e69691363616ef8bd211"},"Clear"),t("smoothly-form",{key:"b238f3ac4c3c29378e59870ea23c17b5437e935c",looks:"border"},t("smoothly-input",{key:"8e62c73915c45b21dafa72933c75a4dac1170e2d",name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"817b4471221343a18bae193308b05b19d91a5033",name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"c618bac43d6d09b7dd0078de791d68fd8e724f09",size:"icon",slot:"end"},t("smoothly-icon",{key:"f38805b056b97f23096f57d955ee464abf2cc120",name:"close"}))),t("smoothly-input",{key:"aa0e98daa809fd8126f22df04a9c542f76d68930",type:"phone",name:"Phone"},"Phone",t("smoothly-input-clear",{key:"684a1487c96575e4bd48464960f65ca12cb71956",slot:"end"},t("smoothly-icon",{key:"2af189c72ec76fa8c3d2709076a51200dc2135c0",name:"close"}))),t("smoothly-input-clear",{key:"d8287cdf0973854d5652bcc2747da5e769e1a64d",fill:"default",type:"form",color:"danger",slot:"submit"},"Clear")),t("h2",{key:"b22e40acd098326fc3def02693251fd78d887ca9"},"Identifier"),t("smoothly-form",{key:"ca930e840b5a94dd553a7313afffdcbdec5ce01d",looks:"border"},t("smoothly-input",{key:"65601daeffb48c792de9b3397a190af6821e4510",type:"identifier-code"},"Code"),t("smoothly-input",{key:"7d7e1f3c13e9fbc9884ea8635f5aac0435ab4044",type:"identifier-attribute"},"Attribute"),t("smoothly-input",{key:"8ccbc04542704c87a992c17a4feab19b4b26d85a",type:"identifier-snake"},"Snake"),t("smoothly-input",{key:"79daf05f31488c2cc90dee0a4b2ab7e25780df72",type:"identifier-pascal"},"Pascal"),t("smoothly-input",{key:"f85c03b36154c9a098ed0c039748a3b09ddb7313",type:"identifier-camel"},"Camel")),t("h2",{key:"0858593bb08117aa73d2d7bd34284aa93cd64d37"},"Border"),t("smoothly-form",{key:"555d76c11e6f55407c2a92feb5ce1f8edb6fa67d",looks:"border"},t("smoothly-input",{key:"f8d424f99883385cb190e0d9fef43e666860ca0e",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"183583054da603858d6e7de05bfae48c376748ee",type:"password",name:"password"},"Password"),t("smoothly-submit",{key:"6a05df4d92a78d5acc00c844e5881755028046fb",slot:"submit",onSubmit:e=>alert(e),color:"success",fill:"solid"},"Send")),t("h2",{key:"33d924b24d15505199010f42ad7d928bae8a304b"},"Grid"),t("h4",{key:"629aec77687349bfabc522a761194d225be7fe45"},"Contact"),t("smoothly-form",{key:"0d345ec93ad00d9aa3ae63f1a13bc22ec2f24d93",looks:"grid",action:"https://webhook.site/85bb78f6-b450-4a74-81ac-d7cac6e94bbe"},t("smoothly-input",{key:"58b2319e455da4d38ae3910279bb1011586c41e6",type:"text",name:"name.last"},"First Name"),t("smoothly-input",{key:"6b3bce9c63b3d951b691e03de0a8964f6ed95fd6",type:"text",name:"name.first"},"Last Name"),t("smoothly-input",{key:"1a9c8bf504d13c3d63019ba7f77f049a96cb0903",type:"text",name:"street",value:"Torgny Segerstedts Allé 87"},"Street"),t("smoothly-input",{key:"215491d7bd8621cb55463ba75230b55cfbfb90e1",type:"postal-code",name:"zip"},"ZipCode"),t("smoothly-input",{key:"39232ff1e51890f51c56e7cbc3531e83dddafdfd",type:"text",name:"city"},"City"),t("smoothly-input",{key:"0fdf786ade2d357151ef64398b892ebb0371d656",type:"text",name:"countryCode"},"CountryCode"),t("smoothly-input",{key:"cf396649975ff7d80aa52e711b00276be9230c77",type:"phone",name:"phone"},"Phone"),t("smoothly-input",{key:"d077a999397cd8864e7ee858c9bc144b96bd63cd",type:"email",name:"email"},"Email"),t("smoothly-submit",{key:"3b5665743a89e69bd4822765fd122af214505ac4",slot:"submit",color:"success",fill:"solid"},t("smoothly-icon",{key:"eeac76ced0a976d26ce09669857aedb939a9bdb5",name:"checkmark-circle",slot:"start"}),"Submit")),t("h4",{key:"b004b4185ecc990e165dae0f500b945588515006"},"Card"),t("smoothly-form",{key:"c1056e4eb7049ca1beff72a199b1e0998415fc44",looks:"grid",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail))},t("smoothly-input",{key:"829b9be40ec17316b5dda4691435a9e32c81813c",type:"card-number",name:"card"},"Card #"),t("smoothly-submit",{key:"d081b6cb90430c09e3d80281e9aab70aeb66bceb",size:"icon",slot:"submit",color:"success",fill:"solid"},t("smoothly-icon",{key:"ca78e2a25d9c3100001b7e489fddec2cd148fb6f",name:"checkmark-circle"})),t("smoothly-input",{key:"d42265a69b8923446467a8123bb14e93bb4de62e",type:"card-expires",name:"expires"},"Expires"),t("smoothly-input",{key:"433bb06e3cec3c2e7172c17e43fae5d219e7b0a8",type:"card-csc",name:"csc"},"CVV/CVC"),t("smoothly-input",{key:"6479b88b10fecbe72b6a32d366a98b1eb967be74",type:"text",name:"name.first"},"First Name"),t("smoothly-input",{key:"86fe0a78f39af240e2e4334fd9092617c39e0280",type:"text",name:"name.last"},"Last Name")),t("h4",{key:"c84f8a55d76c2b37ed04b16934991c40e4a5a1df"},"Contact"),t("smoothly-form",{key:"d61b338964ad978fe2356eb107fdc56b330865d9",looks:"grid"},t("smoothly-input",{key:"c55dc7b90b2dc67d9e3e715b14a992f8b069507a",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"a655a3102eead1b09f4158dcd17bbb4266b128f9",type:"password",name:"password"},"Password"),t("smoothly-input",{key:"a316db0d389cf2254fa6de653b7fc04c5af08d03",type:"price",currency:"SEK",name:"price"},"Price"),t("smoothly-input",{key:"87f47e508c3f2948948169f8b86e08c345028b83",type:"percent",name:"percent"},"Percent"),t("smoothly-submit",{key:"2e3f982128da272e6dfc7ce777d1992c9b9b9020",slot:"submit",color:"success",fill:"solid",size:"icon"},t("smoothly-icon",{key:"f7ec0b78514fdfa817628b8349cd9d00e1f0f354",name:"checkmark-circle"}))),t("h4",{key:"5fea51944fc9e89b42d0cb8df1492a33d32eddef"},"Random"),t("smoothly-form",{key:"d96f5d9c40b15595b2687fee6228af3037d92d97",looks:"grid"},t("smoothly-input",{key:"ec2106b893566e299162446dc21aa5359254ecef",type:"text",name:"name",readonly:true,value:"Readonly",onSmoothlyBlur:()=>console.log("smoothly blur"),style:{width:"100%"}},"Readonly"),t("smoothly-input",{key:"95a185e6b95f8c6f8070a4147e50c9aa9ea304c0",type:"text",name:"testing"},"TextTest"),t("smoothly-input",{key:"e634e883ea80306deaeb7dc392f0a674da76237e",type:"date-time",name:"date-time"},"Date-Time"),t("smoothly-input",{key:"c78646776d0dd51223eee32bbd4dd9d54f2dc09d",type:"divisor",name:"divisor"},"Divisor"),t("smoothly-input",{key:"237aced49d26ff2188dcbc116e9b099e7962bd78",type:"date",name:"date"},"Date"),t("smoothly-input-date",{key:"ac07fd43684df869589b688cdd9de69cf90b1c55",name:"some-date"},"Calendar")),t("h2",{key:"d73b2161c04dbe285e4e02ea48bfb2ca8d6c6714"},"Line"),t("smoothly-form",{key:"51ad50fe4d4f093ae8639824e30b1d4949a88a4b",looks:"line",action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4"},t("smoothly-input",{key:"ede62e305979623376257fa7fadc3abf6ba1b633",type:"text",name:"name.last",onSmoothlyChange:e=>console.log("smoothly change event")},"First Name"),t("smoothly-input",{key:"fdef5351893494fbae59476faf992bb1afd19167",type:"text",name:"name.first",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name"),t("smoothly-submit",{key:"bfca7449047e37144e29c3c343bc1cb24917c4a7",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"},"Send")),t("h2",{key:"8f0cb224dd2775e6d0fcdd3323ad3bc2eb912369"},"Input Alternatives"),t("smoothly-form",{key:"43b9d82bdeefb2b0f69b8837e81f9c9d77be58e8",looks:"border"},t("smoothly-input",{key:"b51c85f26a5f819374a98927193c025a76a1b7ad",type:"text",name:"name.last",onSmoothlyChange:e=>console.log("smoothly change event")},t("smoothly-icon",{key:"63882e2736a00d60e9450535d8a6c5be16fde1af",name:"checkmark-circle",slot:"start"}),"First Name"),t("smoothly-input",{key:"0493a49ff8757af8aef45243bc0060468c76991b",type:"text",name:"name.first",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"31671f4f569bdfd34ba768c5920fb653f78c0603",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"df4520fddd095f6f7e19efb43f8772d6e2f4b48a",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"6a52a6c40b08f2e0f2cadf06becf91def678e689",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"c490a53641d842db5b28b9d815f8db5fc0d8e61c",placeholder:"test"}),t("smoothly-submit",{key:"159a77530942fb52cc7a85071ca24bba4747df0f",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"},"Send")),t("h4",{key:"815234470ec25f69ac3d09b0764e86a49ec37b95"},"Smoothly checkboxes"),t("smoothly-form",{key:"4dc397f2467ab11f7f7ea7c3a5014122b4b128c5"},t("div",{key:"4b665e8f97765b63d5177a3e2ce950a721fa0cbb",class:"checkbox-group"},t("smoothly-input-checkbox",{key:"6b274a43406df45b75d00a5911060acc3a2701fd",disabled:true,name:"first-checkbox"},t("smoothly-icon",{key:"4cee98c5891f5184d826b5ab6209993c5944aceb",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),t("smoothly-input-checkbox",{key:"e66f0693c11831ea25d6a8ac6e87da1f8e5da4f1",name:"second-checkbox",checked:true},t("smoothly-icon",{key:"8bed30eba3823782be27e5eb6a36f548f3ea7d32",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",t("smoothly-input-clear",{key:"29425bab1f7b9c4518dbb79a9eb71b5c08e127e8",size:"icon",slot:"end"},t("smoothly-icon",{key:"df33878518d7936f71ae638dacd4d2630de17331",name:"close"}))),t("smoothly-input-checkbox",{key:"bdbcab5d3bd99ff0d64aa801452f0f0abd7f3e26",name:"third-checkbox"},"3rd"))),t("h4",{key:"032fbd5a42ab2d274409e669d8ba229eb9ca018c"},"Smoothly Radio Buttons"),t("smoothly-form",{key:"e0215e01f4d9df02c675949c2816c548a430b03b",onSmoothlyFormSubmit:e=>console.log(e.detail),looks:"border"},t("smoothly-input-radio",{key:"a2a1ff93daa230e83701dbeee52c587a7e5bd1d9",clearable:true,name:"radioFirstInput"},t("smoothly-icon",{key:"9c796363b02e44411ad05da7ee0f0f0de9c087e2",name:"checkmark-circle",slot:"start"}),t("smoothly-input-clear",{key:"7edaa97c772317cf83518c6217a2555590a1551a",size:"icon",slot:"end"},t("smoothly-icon",{key:"b7eb58c8ad5f7fcfeccd70f46eb40237372c3d4e",name:"close"})),t("p",{key:"060cdb7abd4f614f2cd3b1550eb8adf49bdd0c35",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"a646993c4a13543fe74d95bab4922e61aac2d23a",slot:"options",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"4db610af991958bf3f4e38877ecfe205c43daa43",selected:true,slot:"options",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"bd43496a22d6838f61122dc7bfc9462b5c7db782",slot:"options",value:"third"},"Label 3")),t("smoothly-input-radio",{key:"57282b2317d84293ada3cb5cf2053c481c6de62f",name:"radioSecondInput"},t("p",{key:"47239188cf32053a4d30e1eec9d17d2919b3f346",slot:"label"},"Not clearable"),t("smoothly-input-radio-item",{key:"4fbd3ec6e73489351772ff14802684c6318ab3f0",slot:"options",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"e3dfb5609914b347bdd7e28e9cc780307d64a2eb",slot:"options",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"65d9d42f2643e6219ae1cc76d9c3db9d5d9efcce",slot:"options",value:"third"},"Label 3"),t("smoothly-input-radio-item",{key:"81884cb097138f971c0614346f7956b4bd5f99aa",slot:"options",value:"fourth"},"Label 4"),t("smoothly-input-radio-item",{key:"e96669712d47b61e3329232293601812c672fa47",slot:"options",value:"fifth"},"Label 5"),t("smoothly-input-radio-item",{key:"3f727b0a448c2aab55b048daa182f80287a8c50e",slot:"options",value:"sixth"},"Label 6"))),t("h4",{key:"02cd6bf507d88ac7e923d9dfe9035ce15197f7c3"},"Smoothly Picker"),t("smoothly-picker-demo",{key:"d13c539eeba9e2cb240a29d554f958f9d63e21d6"}),t("smoothly-back-to-top",{key:"711966a9617730688113181ae179d6e9da5e1df9"}),t("h4",{key:"c419c12fb3f81dd08955554465cdb330c5d84f60"},"Smoothly Date"),t("smoothly-input-date",{key:"def058f55c2d54374f43fca11ef74639d25446ed"},"Date"),t("smoothly-input-date",{key:"0288afcf65f4fa356a01cd3722577fef92343304",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-form",{key:"3247497d35d3ac79cd354d803b49a988debf0b5a",looks:"grid",onSmoothlyFormSubmit:e=>console.log(e.detail)},t("smoothly-input-date-range",{key:"a1d788be3820c284affffe355faba922cfca0441",name:"testing",start:v.now(),end:v.nextMonth(v.now()),min:"2021-10-10",max:"2024-12-30"}),t("smoothly-input-clear",{key:"89d82eb076f9d043f6972105a78b564f747a60d3",type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),t("smoothly-submit",{key:"8c181c3f3c836b20910e4f11f869069b4e23899d",slot:"submit"},"submit daterange")),t("smoothly-input-date-range",{key:"386c656fade76ffc42c9f11735af5a64d5209cfb",looks:"grid",start:v.now(),end:v.nextMonth(v.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),t("smoothly-form",{key:"3e7d622dcb58876a0add455fff90cb230e6ff6c0",looks:"grid",onSmoothlyFormSubmit:e=>console.log("Submitted",e.detail)},t("smoothly-input",{key:"53f00b4ebe37cbf2cec29d8c527f9a3b396b7ef1",type:"text",name:"text"},"Text"),t("div",{key:"82629b821e3c8fe0c52d7b8e9653bfd1a54ccec6"},t("smoothly-input-file",{key:"eab8169a9c28a28c9444c135b9abc0909121d8ee",placeholder:"Select or drag a file here",name:"file"},t("span",{key:"35bcecf14994d4946d687b520de782332156ce0b",slot:"label"},"Testing file input"),t("smoothly-icon",{key:"9877488591d31263ee09897dd560c1521135707f",slot:"button",name:"folder-outline"}))),t("smoothly-input-file",{key:"378f628b66eed1523f8d442f9628395a3121e213",camera:"back",placeholder:"Capture a photo",name:"image"},t("span",{key:"4eb5b78f4f7bdebf62b1c5ec47997aeb21387787",slot:"label"},"Testing camera photo"),t("smoothly-icon",{key:"f131251788f72127fc464d0b83990998339b59a4",slot:"button",name:"camera-outline"})),t("smoothly-input-clear",{key:"802a445ba9f26062f7b5c6380c2fa82c70a3529c",type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),t("smoothly-submit",{key:"4db24e06c8d37870a5c7d59ba63a14c49a1df3cc",slot:"submit"},"Submit")),t("br",{key:"737899f9ab2a57871821bc2b9364eaead17df496"}),t("smoothly-form",{key:"760e161d31ef5fb6fe562e198902604344956183",looks:"line",onSmoothlyFormSubmit:e=>console.log("form input",e.detail)},t("smoothly-input",{key:"e0beb0a142a1a2a72533c944a56e6f998154ddbb",name:"text"},"Input"),t("smoothly-input-file",{key:"a8e271d10e89350a078ba7568f3e76c001ef49d5",camera:"back",placeholder:"Capture a photo",name:"image"},t("span",{key:"c2910634bf99a2a8c2c59321ef825f1fa69d1606",slot:"label"},"Testing camera photo"),t("smoothly-icon",{key:"25ae0b966a15582c4a05095e169aba81559af854",slot:"button",name:"camera-outline"})),t("smoothly-picker",{key:"d65ed825e7433c381d106d90fe805f50980205a3",name:"picker"},t("span",{key:"15f6414d16f2872b1bf171ff84c49b12b7125cf6",slot:"label"},"Shape"),t("span",{key:"c806825759972ccedcf1a66e5c0f46a747361bcf",slot:"search"},"Search"),t("smoothly-picker-option",{key:"76f82751c3270fc2eee7d9eb988098d3335f3863",value:"circle"},t("span",{key:"d28267bd5c5582a7517127e6fe586659a13a21a8",slot:"label"},"Circle"),t("smoothly-icon",{key:"79077fe11d3834ba2fe3be421575897f914c51cf",size:"tiny",name:"ellipse-outline"})),t("smoothly-picker-option",{key:"00db0863ee382ea0aa0756d4a6bd011065c09a63",value:"cube"},t("span",{key:"0b385595b18989920ec1557fa0a0421ae44afb2c",slot:"label"},"Cube"),t("smoothly-icon",{key:"3a35278e2d52d6c133b7b4cd8436f3de9a380811",size:"tiny",name:"cube-outline"})),t("smoothly-picker-option",{key:"b01ee511a461bd8cafca36842495579c1e0f77de",value:"square",selected:true},t("span",{key:"c70644fe6328949323aea92741c2925a90c6a79b",slot:"label"},"Square"),t("smoothly-icon",{key:"9374aef450f63718321ce975351f40a5a4db8edb",size:"tiny",name:"square-outline"}))),t("smoothly-input-select",{key:"9d63e9aed1ce574cad843c08cf4bddc26df8400a",name:"select",placeholder:"Select...",menuHeight:"7.5items"},t("smoothly-item",{key:"745603738aa3b939f73b08bbfd1256183fb6acc0",value:"1"},"January"),t("smoothly-item",{key:"542e0f0a63f425b09ab2c9b7bbba33854614793b",value:"2"},"February"),t("smoothly-item",{key:"3e4b5329362c0e6c19067ee3ff414e04ca9bdc05",value:"3"},"March"),t("smoothly-item",{key:"1c34412e80a8959c08c317fa5efd9a6031403723",value:"4"},"April"),t("smoothly-item",{key:"f1a55711d30bccb266d4ac92b3b0e7f0f34ad571",value:"5"},"May"),t("smoothly-item",{key:"1132c15877e5d8d42168098377ae16d57110644f",value:"6"},"June"),t("smoothly-item",{key:"ffa9c17abee0acf6a3da4b1bb024173a06021709",value:"7"},"July"),t("smoothly-item",{key:"925e8d8cad4a47607b9cc4ef0e2c5a194da1364f",value:"8"},"August"),t("smoothly-item",{key:"c3db33083dc1b715f511a7c95ffc242b6c828a70",value:"9"},"September"),t("smoothly-item",{key:"7dd7794a3df9c1e0d0e2ab3262d2cd9d468770c6",value:"10"},"October"),t("smoothly-item",{key:"322526bd53d12d1d9c76ee7b89bfb00ddbcb2168",value:"11"},"November"),t("smoothly-item",{key:"aa8f2d0dfbd9daf240e99d1cff7323e12609dd04",value:"12"},"December")),t("smoothly-input-date-range",{key:"96606abcf803307c594bf18cc1ec61d24c96f314",name:"date-range",start:v.now(),end:v.nextMonth(v.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),t("smoothly-input-date",{key:"17924c8a3fbc700852518ba6b90f1b3aa7c44697",name:"date",value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-submit",{key:"5ee9711551647fa3cc028e3a8b8b675b766975f3",slot:"submit",color:"success",fill:"solid",size:"icon"},t("smoothly-icon",{key:"fa9d65446f9a457851247f827f2893b9fa5673d1",name:"checkmark-circle",fill:"solid",size:"medium"}))),t("h4",{key:"b244345ec3e15b12f4d40d0188b6fe5a50076768"},"Form with spinner showcase"),t("smoothly-form",{key:"207a80eeac101a0c61a0587407d0af1edac1f909",looks:"line",onSmoothlyFormSubmit:e=>console.log("form input",e.detail)},t("smoothly-input",{key:"f12ac16360122f7e7e0fd4ee560c77c844fc672c",name:"text"},"Input"),t("smoothly-input-file",{key:"276972abf6a5d01bd78fa7c9c3e85dff9f521620",camera:"back",placeholder:"Capture a photo",name:"image"},t("span",{key:"653f3319b2ad49d3a158e784c0a0d7bb2c3d472c",slot:"label"},"Testing camera photo"),t("smoothly-icon",{key:"7d8f3d2dfa2b9834978d3d7985ee316a9f42a6b1",slot:"button",name:"camera-outline"})),t("smoothly-picker",{key:"7d3d76d89f34aba07a64d44efe537a5adc139655",name:"picker"},t("span",{key:"80b8f07758783d3242497bd4a6a1fd44eabd019f",slot:"label"},"Shape"),t("span",{key:"6e7e9f48caa06018d064f473a2d81ef8a283e3aa",slot:"search"},"Search"),t("smoothly-picker-option",{key:"6bae81f9fbad0afa19186b4b52d697bb6f8e7b1c",value:"circle"},t("span",{key:"729f2368e72bcd977730aad321e2750a286340bf",slot:"label"},"Circle"),t("smoothly-icon",{key:"ec4a2136804ec06c96f4189c4c437f72e15add1a",size:"tiny",name:"ellipse-outline"})),t("smoothly-picker-option",{key:"1769ee9d91dbb429c85fdd012b76a029088ee95f",value:"cube"},t("span",{key:"bf764adc9ab4835927cad444997ccb68cc01986c",slot:"label"},"Cube"),t("smoothly-icon",{key:"5fc3c8e5d0957ff18b37cb140daff7a657451e56",size:"tiny",name:"cube-outline"})),t("smoothly-picker-option",{key:"3d81847bfafdc5b08ef4b0559334cf4bae4ecae7",value:"square",selected:true},t("span",{key:"c7a1d67233c07d005e9c34fb27711ac5d1c523aa",slot:"label"},"Square"),t("smoothly-icon",{key:"8aec6c3ddc75387f5c76bef1d091ba474091f83f",size:"tiny",name:"square-outline"}))),t("smoothly-input-select",{key:"01ca6b377f2406d38a4e6c2057ede0a9d2dfccbf",name:"select",placeholder:"Select..."},t("smoothly-item",{key:"fa18e24be271f22e3fb8d4bc4d707de496dfff45",value:"1"},"January"),t("smoothly-item",{key:"ea7863cf624ecf98e0c283140c3c4fad3a95d575",value:"2"},"February"),t("smoothly-item",{key:"ac54bacfb4a92a26384c42afc17607d9ea851e69",value:"3"},"March"),t("smoothly-item",{key:"b315a99c6240b65f6bd716b3a3d0d00e80b1fd5a",value:"4"},"April"),t("smoothly-item",{key:"c7f5b55146028d441255a87aae59792642ed758d",value:"5"},"May"),t("smoothly-item",{key:"83d54f6176bfb4a5643df6b86c0299d08a3e6e99",value:"6"},"June"),t("smoothly-item",{key:"08372d2c336aef7ea5ab18a761db85ec640d8068",value:"7"},"July"),t("smoothly-item",{key:"a912779469f68b1eeb73d41f3a2e04efe0773e3e",value:"8"},"August"),t("smoothly-item",{key:"7eb2ed0a7c3476b5dad6f9c8367cfbecbf45d6ae",value:"9"},"September"),t("smoothly-item",{key:"53aa9385ef904e1ef6a07ec49454fafa42217450",value:"10"},"October"),t("smoothly-item",{key:"e576b06436ba50b99c4181e011989c372cbdfba5",value:"11"},"November"),t("smoothly-item",{key:"d732ca5108af7b524a3b9e92fd62b16d89c264a7",value:"12"},"December")),t("smoothly-input-date-range",{key:"d115fb10272d03d98441d0e7ffcce0786ae25059",name:"date-range",start:v.now(),end:v.nextMonth(v.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),t("smoothly-input-date",{key:"925ab8ed2fd29a6ba835012cd5ae87ac8049b4e8",name:"date",value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-submit",{key:"c2d90da5d921c1f8585de23a700aa045848d65b4",slot:"submit",color:"success",fill:"solid",size:"icon"},t("smoothly-icon",{key:"86135fa12d5ecd3cbbc4aa6a3e810b0ec92f0f29",name:"checkmark-circle",fill:"solid",size:"medium"}))))}};Tr.style=zr;const jr=".sc-smoothly-input-demo-controlled-form-h{display:flex;width:100%}.sc-smoothly-input-demo-controlled-form-h smoothly-form.sc-smoothly-input-demo-controlled-form{width:100%}";const _r=jr;const Lr=class{constructor(t){e(this,t);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=v.now()}nameChanged(e,t){console.log(`updated name from '${t}' to '${e}'`)}async submitHandler(e){e.stopPropagation();console.log("Received event. Processing...",e.detail);if(!(typeof e.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof e.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!S.is(e.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((e=>window.setTimeout(e,1e3)));this.name=e.detail.value.name;this.date=e.detail.value.date;this.currency=e.detail.value.currency;console.log("Finished processing successfully. Resolving true.");e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"1a286a315880527635c8e81569be90ebb769fb7d"},t("smoothly-form",{key:"a0a0bf4e0d477c5ade0662a209f3ac5781506661",readonly:true,looks:"grid",onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input",{key:"7cbf91ebea628ec4109048bcd4ab14b7014004df",type:"text",name:"name",value:this.name},"Name"),t("smoothly-input-select",{key:"54af6fa87d365a2d376395755c9a15a23067a1cb",name:"currency"},t("span",{key:"d046fb86578ed371c56b845958d19c37b1a63306",slot:"label"},"Currency"),this.currencies.map((e=>t("smoothly-item",{selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"7125c65bf561b99eb3e6dd4c3adbad1aaaea48b4"},"Dummy"),t("smoothly-input-month",{key:"4d0871854c509c3b20e8f07d1606b7bdba349950",name:"date",value:this.date,next:true,previous:true},t("span",{key:"91cf9d0c4ddee6e830175598d69347f2ae3a327d",slot:"year-label"},"Year"),t("span",{key:"93012f3df674d0e22ae9b6fc3a6a02f473cf012a",slot:"month-label"},"Month")),t("smoothly-input-edit",{key:"532437a2deda68c2a32e1644de5a46cb25fc907d",slot:"edit",type:"button",size:"icon",color:"primary",fill:"default"}),t("smoothly-input-reset",{key:"f4284e777a43f642f40bc5587f62c5313fb91645",slot:"reset",type:"form",size:"icon",color:"warning",fill:"default"}),t("smoothly-input-submit",{key:"6c02d05c29fce26f168589150c0ca0dd21046594",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};Lr.style=_r;const Ar='[color=default].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-edit-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;cursor:pointer;border:none;outline:none;position:relative}[type=link].sc-smoothly-input-edit-h{display:inline;border:none}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-edit{padding:0.8em;min-width:8em}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-edit{padding:0.6em}[size=icon].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{padding:0.5em}[shape=rounded].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,[shape=rounded].sc-smoothly-input-edit-h{border-radius:2rem}[type=button].sc-smoothly-input-edit-h>a.sc-smoothly-input-edit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:100%}[size=large].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:130%}.sc-smoothly-input-edit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-edit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-edit-h{width:100%}[expand=full].sc-smoothly-input-edit-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-edit-h,[shape=rounded].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit::before{border-radius:2rem}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border:1px solid rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-edit-h:not([fill=clear]):hover>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-visible,[fill=outline].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit::before{border:solid 1px rgb(var(--smoothly-button-focus-border))}[fill=outline].sc-smoothly-input-edit-h:hover>button.sc-smoothly-input-edit::before,[fill=outline].sc-smoothly-input-edit-h:focus-within>button.sc-smoothly-input-edit::before,[fill=outline].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px}.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:focus-visible,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:active,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline]):hover,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline]):focus-visible,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline]):active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h .sc-smoothly-input-edit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}[hidden].sc-smoothly-input-edit-h{display:none}.sc-smoothly-input-edit-h:not([display]){display:none}[editable].sc-smoothly-input-edit-h{opacity:0.5}.sc-smoothly-input-edit-h smoothly-icon.default.sc-smoothly-input-edit{transform:translate(.1em, -.1em)}.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>button>*+smoothly-icon{display:none}';const Ir=Ar;const Er=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="tertiary";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=true;this.shape=undefined;this.type="button";this.size=undefined;this.toolTip="Edit"}componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Yl.type.is(e)){this.parent=e;e.listen("changed",(async e=>{this.display=e.readonly}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.edit(true)}render(){return t(s,{key:"1c82dd0c895ececcb0328e0f74881f3f9ebf7457",title:this.toolTip},t(Pe,{key:"7fb43708d06e6ddfe9d22f342c77b398cbce42a3",disabled:this.disabled,type:"button"},t("smoothly-icon",{key:"a61c47989d2b6f80412157fa55001b8ccb1f9c96",class:"default",name:"create-outline",fill:"solid",size:"tiny"})))}};Er.style=Ir;const Or='.sc-smoothly-input-file-h{box-sizing:border-box}[readonly].sc-smoothly-input-file-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-file-h[looks="border"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-file-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-file-h{border:transparent solid 1px}.sc-smoothly-input-file-h[looks="line"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-file-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}.sc-smoothly-input-file-h[looks="grid"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-file-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-file-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-file-h{border:none}[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background:transparent}[looks="transparent"].sc-smoothly-input-file-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:0.4rem;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.mask.sc-smoothly-input-file{position:absolute;inset:0;color:rgb(var(--smoothly-hover-contrast));background-color:rgb(var(--smoothly-input-hover-background))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.mask.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem;column-gap:1ch}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{padding-top:0.4rem;display:flex;width:100%;align-items:baseline;justify-content:flex-start;color:rgb(var(--smoothly-input-foreground));cursor:inherit}.sc-smoothly-input-file-h>label.sc-smoothly-input-file-s>*{display:block;width:100%;font-size:0.65em;opacity:0.8}.sc-smoothly-input-file-h:not([show-label]) label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>span.sc-smoothly-input-file{cursor:pointer}';const Dr=Or;const Mr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.transfer=new DataTransfer;this.changed=false;this.readonly=false;this.accept=undefined;this.color=undefined;this.looks="plain";this.camera=undefined;this.name=undefined;this.showLabel=true;this.value=undefined;this.placeholder=undefined;this.dragging=false}get files(){this.transfer.items.clear();this.value&&this.transfer.items.add(this.value);return this.transfer.files}componentWillLoad(){this.smoothlyInputLooks.emit(((e,t)=>(this.looks=e,!this.color&&(this.color=t))));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}valueChanged(){this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:this.value})}inputHandler(e){var t,o,s;e.stopPropagation();if((o=(t=this.input)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(e){var t;e.preventDefault();e.stopPropagation();this.dragging=false;if((t=e.dataTransfer)===null||t===void 0?void 0:t.files.length)this.value=e.dataTransfer.files[0]}clickHandler(e){var t;if(!this.readonly&&!e.composedPath().find((e=>e==this.input))){(t=this.input)===null||t===void 0?void 0:t.click()}}dragOverHandler(e){e.preventDefault();e.stopPropagation()}dragEnterHandler(e){e.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(e){e.stopPropagation();this.dragging=false}render(){var e,o,a;return t(s,{key:"c37d34f7791a18c71f13534b7b491a75f15546b7",class:{dragging:this.dragging},tabindex:0,onClick:e=>this.clickHandler(e),onDragOver:e=>this.dragOverHandler(e),onDragEnter:e=>this.dragEnterHandler(e)},t("label",{key:"9d61809b271ce1909993c2ca92197c5ff40a589c"},t("slot",{key:"87fa3f6a894a3ff39cc6b7be479246cea4eda36f",name:"label"})),t("div",{key:"720b1fba82e7de5fc078b29021d1a54f074619b9",class:"input"},t("smoothly-button",{key:"cd2060c14fd22950e912123874c49fc6022838df",color:this.color,fill:"clear",size:"flexible"},t("slot",{key:"be0ba03d5bcc58c679e29b91cf16dbdfa679d068",name:"button"})),t("span",{key:"9a90df9bbdf330709b9e9cb60d346f2ad59c3cec"},(o=(e=this.value)===null||e===void 0?void 0:e.name)!==null&&o!==void 0?o:this.placeholder),t("div",{key:"3c25050e39973bd8741d6cf06ce29907ab96ddb4",class:"mask",onDrop:e=>this.dropHandler(e),onDragLeave:e=>this.dragLeaveHandler(e)}),t("input",{key:"8698b7f3b30bb28e9b8a83fa851b879692baa0c9",ref:e=>this.input=e,type:"file",capture:this.camera=="back"?"environment":"user",accept:(a=this.accept)!==null&&a!==void 0?a:!this.camera?undefined:"image/jpeg",files:this.files,onInput:e=>this.inputHandler(e)})),t("slot",{key:"1852d8ed0c7d7d4fdd336e604b137ae10df997f7"}))}static get watchers(){return{value:["valueChanged"]}}};Mr.style=Dr;const Rr=".sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;pointer-events:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month:hover,.sc-smoothly-input-month-h>div.sc-smoothly-input-month>smoothly-input-select.sc-smoothly-input-month>*.sc-smoothly-input-month:hover{cursor:pointer}";const $r=Rr;const Pr=class{constructor(t){e(this,t);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.listener={};this.readonly=undefined;this.color=undefined;this.looks=undefined;this.name=undefined;this.value=v.now();this.next=false;this.previous=false;this.inCalendar=false}componentWillLoad(){this.smoothlyInputLooks.emit((e=>this.looks=e));this.smoothlyInputLoad.emit((()=>{}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(e){var t;if(!this.readonly){const o=v.parse((t=this.value)!==null&&t!==void 0?t:v.now());o.setMonth(o.getMonth()+e);this.value=v.create(o)}}async clear(){var e,t;(e=this.year)===null||e===void 0?void 0:e.clear();(t=this.month)===null||t===void 0?void 0:t.clear()}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){var e,t;(e=this.year)===null||e===void 0?void 0:e.reset();(t=this.month)===null||t===void 0?void 0:t.reset()}async setInitialValue(){var e,t;(e=this.year)===null||e===void 0?void 0:e.setInitialValue();(t=this.month)===null||t===void 0?void 0:t.setInitialValue()}inputHandler(e){if(e.target!=this.element){e.stopPropagation();const t=e.detail[`${this.name}-year`];const o=e.detail[`${this.name}-month`];if(o&&v.is(o))this.value=v.firstOfMonth(o);else if(t&&v.is(t))this.value=v.firstOfMonth(t)}}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}render(){var e,o;return t(s,{key:"987e7d1cf3eda9a4d8d22fad78a7f69784526eaf"},t("smoothly-icon",{key:"f5e9641fd9f27c30ebab3a3cd6aa03e042234249",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly},onClick:()=>this.adjustMonth(-1)}),t("smoothly-input-select",{key:"84ed607ca3d3fe4dfadb060dd39c14bca6f13453",ref:e=>this.year=e,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,inCalendar:this.inCalendar,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"19a72fccd3ac7e64b614b5dd892a1b322eb9c5d7",slot:"label"},t("slot",{key:"194bb7ab346936fcecbde9f374210350c0d9ca4b",name:"year-label"})),Qe((e=this.value)!==null&&e!==void 0?e:v.now()).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-input-select",{key:"cca028fa050c994c8bb5c8c2c73951c1d8934904",ref:e=>this.month=e,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,changed:this.changed,menuHeight:"5.5items",required:true,inCalendar:this.inCalendar,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"99e270f3be40a109f41a5141f8f9a919ed773744",slot:"label"},t("slot",{key:"f60f568a039ae801c24c280f5ff1f9d8f78655fd",name:"month-label"})),Ze((o=this.value)!==null&&o!==void 0?o:v.now()).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-icon",{key:"9552262c0335545bb93eac79d52416a49fe86276",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly},onClick:()=>this.adjustMonth(1)}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Pr.style=$r;const Hr='.sc-smoothly-input-radio-h{box-sizing:border-box}[readonly].sc-smoothly-input-radio-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-radio-h[looks="border"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-radio-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-radio-h{border:transparent solid 1px}.sc-smoothly-input-radio-h[looks="line"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-radio-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-radio-h{border-bottom:transparent solid 1px}.sc-smoothly-input-radio-h[looks="grid"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-radio-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-radio-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-radio-h{border:none}[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background:transparent}[looks="transparent"].sc-smoothly-input-radio-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-radio-h{padding:.4em;background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center}.sc-smoothly-input-radio-h>div.input-group.sc-smoothly-input-radio{display:flex;width:100%;align-items:center;gap:1em}.sc-smoothly-input-radio-h>div.input-group.sc-smoothly-input-radio>div.sc-smoothly-input-radio{align-items:center;display:flex;justify-content:right;width:100%;flex-wrap:wrap;gap:1em}.sc-smoothly-input-radio-h>div.input-group.sc-smoothly-input-radio-s>p{margin:0 0 0 0.2em;white-space:nowrap}';const Nr=Hr;const Fr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.valueReceivedOnLoad=false;this.listener={};this.changed=false;this.value=undefined;this.looks="plain";this.clearable=undefined;this.readonly=false;this.name=undefined}componentWillLoad(){var e,t;this.smoothlyInputLooks.emit((e=>this.looks=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}));this.initialValue=this.active}handleRegister(e){e.stopPropagation();e.detail(this.name)}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}smoothlyRadioInputHandler(e){var t,o,s;e.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((t=this.active)===null||t===void 0?void 0:t.value)===e.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==e.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=e.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(e,t){this.listener[e]=t;t(this)}async clear(){var e;if(this.clearable){(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=undefined;this.value=undefined}}async edit(e){this.readonly=!e}async reset(){var e,t,o;(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=this.initialValue;this.value=(t=this.initialValue)===null||t===void 0?void 0:t.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}valueChanged(){var e,t,o;this.valueReceivedOnLoad&&(this.changed=((e=this.initialValue)===null||e===void 0?void 0:e.value)!==this.value);this.smoothlyInput.emit({[this.name]:this.value});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}render(){return t(s,{key:"0587ae47597eb55b64369f63ba7bc83324f5c712"},t("slot",{key:"4f6e83b71947f4db88fe6f6f42bbfc3d5d58302f",name:"start"}),t("slot",{key:"7e5f20166063c1a5c6e49e025bd724c913e50d11"}),t("div",{key:"786c9ac3f6116edea77635128fb63cafedeefa8e",class:"input-group"},t("slot",{key:"bb59e3eabeea3cd869e72da8183c3051abb4d0d5",name:"label"}),t("div",{key:"e45070d2a1c11f129eb205a88fb6a54d9f4c6cd8"},t("slot",{key:"da6441dfa8e1265ac8a536a446e198390f558797",name:"options"}))),t("slot",{key:"ce1437d6c585fd275c1b398a006a91856304b41f",name:"end"}))}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Fr.style=Nr;const Ur=".sc-smoothly-input-radio-item-h{display:flex;align-items:center;position:relative}.sc-smoothly-input-radio-item-h:hover>*.sc-smoothly-input-radio-item{cursor:pointer}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item:focus-visible+smoothly-icon.sc-smoothly-input-radio-item{outline:2px solid rgb(var(--smoothly-primary-color));border-radius:1px}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item{opacity:0;z-index:1;width:1.5em;height:1.5em;position:absolute;transform:translateX(50%)}.sc-smoothly-input-radio-item-h>label.sc-smoothly-input-radio-item{padding:0 .3em;white-space:nowrap}";const Wr=Ur;const Yr=class{constructor(t){e(this,t);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioButtonRegister=o(this,"smoothlyRadioButtonRegister",7);this.value=undefined;this.selected=false;this.looks="plain";this.name=undefined}componentWillLoad(){this.smoothlyRadioButtonRegister.emit((e=>this.name=e));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:e=>this.selected=e})}render(){return t(s,{key:"95d16b339b3e92a477a880888cf2f71dc97c023c",onClick:()=>this.inputHandler()},t("input",{key:"428d0dee608c33287ff2297555e200bf653e3b38",name:this.name,type:"radio",checked:this.selected}),t("smoothly-icon",{key:"b7ecae07b1f83fbdedaea851b50451f2e59b10e6",name:this.selected?"checkmark-circle":"ellipse-outline",size:"medium",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),t("label",{key:"33f25498f8c969ab77133d2d306d2ac7161af33e"},t("slot",{key:"656bff1596c43b09f1c103b7c57bd6af271c7f7a"})))}get element(){return a(this)}};Yr.style=Wr;const Br='.sc-smoothly-input-range-h{box-sizing:border-box}[readonly].sc-smoothly-input-range-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-range-h[looks="border"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-range-h{border:transparent solid 1px}.sc-smoothly-input-range-h[looks="line"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-range-h{border-bottom:transparent solid 1px}.sc-smoothly-input-range-h[looks="grid"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-range-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-range-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-range-h{border:none}[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within)>input.sc-smoothly-input-range{background:transparent}[looks="transparent"].sc-smoothly-input-range-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;background-color:rgb(var(--smoothly-input-background));padding:0 .4em}.sc-smoothly-input-range-h .sc-smoothly-input-range:nth-child(2){margin-left:0.2em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range{position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding:1.1em 0 .1em 0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>output.sc-smoothly-input-range{min-width:4em;text-align:center;margin-left:.5em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>label.sc-smoothly-input-range{position:absolute;display:block;white-space:nowrap;text-align:center;top:.5em;left:0;font-size:.6em}.output-side-right.sc-smoothly-input-range-h>dov.sc-smoothly-input-range>label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:left;padding-right:.5em}.output-side-right.sc-smoothly-input-range-h>dov.sc-smoothly-input-range>output.sc-smoothly-input-range{order:3;margin:0}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--smoothly-color-contrast)) solid;cursor:pointer;margin-top:-.45em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--smoothly-color-contrast)) solid;cursor:pointer}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value])>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value])>dov.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}';const qr=Br;const Gr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.initialValue=this.value;this.value=undefined;this.looks="plain";this.changed=false;this.readonly=false;this.min=0;this.max=1e5;this.name="range";this.labelText=undefined;this.step="any";this.outputSide="left"}componentWillLoad(){this.smoothlyInputLooks.emit((e=>this.looks=e));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var e,t;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:this.value});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}inputHandler(e){e.target instanceof HTMLInputElement&&(this.value=this.step!=="any"?e.target.valueAsNumber:Math.round(e.target.valueAsNumber*100)/100)}smoothlyInputLoadHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this)}}render(){var e,o;return t(s,{key:"7c9b3eccb7a4d192702873801187f55b97da3b07",class:{"output-side-right":this.outputSide==="right"}},t("slot",{key:"e7842822ecb65f19a72169639e0f34dec8e635bf",name:"start"}),t("div",{key:"eb880a779d7b497f023df07600b86286d25414e4"},t("label",{key:"3f61e438b5b3bf00411d2c79083c5368ae6db62e",htmlFor:this.name},t("slot",{key:"32e923ba59ee5ef76de936dde138ed0318deb790"})),t("output",{key:"f28dd0b193ef54e427e61f579c7e49d499bc2753",htmlFor:this.name},(e=this.value)!==null&&e!==void 0?e:"—"),t("input",{key:"01d54844343339f872914bd85f14f5a76dac26bc",name:this.name,part:"range",type:"range",min:this.min,max:this.max,step:this.step,disabled:this.readonly,onInput:e=>this.inputHandler(e),value:(o=this.value)!==null&&o!==void 0?o:this.min})),t("slot",{key:"acb6b035a3641b107f4e10e681720fccdb2129e2",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Gr.style=qr;const Kr='[color=default].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-reset-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;cursor:pointer;border:none;outline:none;position:relative}[type=link].sc-smoothly-input-reset-h{display:inline;border:none}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-reset{padding:0.8em;min-width:8em}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-reset{padding:0.6em}[size=icon].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{padding:0.5em}[shape=rounded].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,[shape=rounded].sc-smoothly-input-reset-h{border-radius:2rem}[type=button].sc-smoothly-input-reset-h>a.sc-smoothly-input-reset{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:100%}[size=large].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:130%}.sc-smoothly-input-reset-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-reset-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-reset-h,[shape=rounded].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset::before{border-radius:2rem}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border:1px solid rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear]):hover>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-visible,[fill=outline].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset::before{border:solid 1px rgb(var(--smoothly-button-focus-border))}[fill=outline].sc-smoothly-input-reset-h:hover>button.sc-smoothly-input-reset::before,[fill=outline].sc-smoothly-input-reset-h:focus-within>button.sc-smoothly-input-reset::before,[fill=outline].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px}.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:active,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline]):hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline]):focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline]):active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h{transition:0.6s;min-width:0rem}[type="input"].sc-smoothly-input-reset-h{line-height:1}.sc-smoothly-input-reset-h[type="input"].sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type="input"] .sc-smoothly-input-reset-s>smoothly-icon{filter:opacity(60%);font-size:70%}.sc-smoothly-input-reset-h[type="input"]:hover.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type="input"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}[type="input"].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:0rem}.sc-smoothly-input-reset-h smoothly-icon.default.sc-smoothly-input-reset{transform:translateY(-.1em) scaleX(-1)}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>button>*+smoothly-icon{display:none}';const Vr=Kr;const Jr=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size=undefined;this.shape=undefined;this.display=true;this.type="input";this.tooltip="Reset"}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Yl.Element.type.is(e)){this.parent=e;this.readonlyAtLoad=e.readonly;e.listen("changed",(async e=>{if(ql.is(e)){this.display=e.readonly?false:e.changed}if(e instanceof Vl){this.display=!e.readonly;this.disabled=!this.readonlyAtLoad&&!e.changed}}))}}))}clickHandler(e){var t,o;e.stopPropagation();(t=this.parent)===null||t===void 0?void 0:t.reset();this.parent instanceof Vl&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){return t(s,{key:"7bf2f48e8a2a7f5f1e3bdb4eb189989fd818ef9b",title:this.tooltip},t(Pe,{key:"91047e6a5cb527fea253befdee513555a3bec23c",disabled:this.disabled,type:"button"},t("smoothly-icon",{key:"59f9c91380f2539727391e17b523b4555518a9e4",class:"default",name:"refresh-outline",fill:"solid",size:"tiny"})))}};Jr.style=Vr;var Xr;(function(e){let t;(function(e){e.type=c({value:_(),deselectable:f(),selected:f().optional(),filter:d()});e.is=e.type.is})(t=e.Element||(e.Element={}));e.type=t.type.extend({});e.is=e.type.is})(Xr||(Xr={}));const Zr='.sc-smoothly-input-select-h{box-sizing:border-box}[readonly].sc-smoothly-input-select-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-input-select-h[looks="border"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}.sc-smoothly-input-select-h[looks="line"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}.sc-smoothly-input-select-h[looks="grid"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-input-select-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background:transparent}[looks="transparent"].sc-smoothly-input-select-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;min-height:2.7em;display:flex;cursor:default;padding:.7em;overflow:hidden;width:100%;white-space:nowrap;gap:1em;text-overflow:ellipsis}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center;margin-right:.4em}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-icon{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));filter:opacity(60%)}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-input-reset{padding-right:.2em}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label]{position:absolute;left:0.4em;top:0.6em;opacity:0.8;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h:not(.has-value)[placeholder].sc-smoothly-input-select-s>[slot=label]{top:0.4em;transform:scale(0.6)}.has-value.sc-smoothly-input-select-h:has([slot=label])>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h:not([in-calendar]).has-value:has([slot=label])>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([in-calendar]):not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{padding-bottom:.1em;padding-left:.8em;padding-top:1.1em}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:10;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0}[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px;left:-1px;right:-1px}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{border:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .5) solid 2px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .2) solid 2px;left:-2px;right:-2px}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item{padding:.7em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item:not([selectable]){display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:var(--smoothly-color-contrast)}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:not([selectable])>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}';const Qr=Zr;const ec=class{constructor(t){e(this,t);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.initialValue=[];this.initialValueHandled=false;this.listener={};this.items=[];this.name="selected";this.color=undefined;this.looks="plain";this.showSelected=true;this.readonly=false;this.inCalendar=false;this.multiple=false;this.clearable=true;this.changed=false;this.defined=false;this.placeholder=undefined;this.menuHeight=undefined;this.required=false;this.searchDisabled=false;this.open=false;this.selected=[];this.filter=""}componentWillLoad(){var e,t;this.smoothlyInputLooks.emit(((e,t)=>(this.looks=e,!this.color&&(this.color=t))));this.smoothlyInputLoad.emit((()=>{}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var e,t,o,s,a;this.itemHeight===undefined&&(this.itemHeight=(e=this.items.find((e=>e.clientHeight>0)))===null||e===void 0?void 0:e.clientHeight);if(this.menuHeight&&this.itemHeight){(t=this.element)===null||t===void 0?void 0:t.style.setProperty("--menu-height",!this.menuHeight.endsWith("items")||this.items.length==0?this.menuHeight:`${this.itemHeight*+((s=(o=this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g))===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:"10")}px`)}(a=this.element)===null||a===void 0?void 0:a.style.setProperty("--element-height",`${this.element.clientHeight}px`)}async getItems(){return this.items}async listen(e,t){this.listener[e]=t;t(this)}async reset(){this.selected.forEach((e=>e.selected=e.hidden=false));this.initialValue.forEach((e=>e.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var e;if(this.clearable){this.selected.forEach((e=>e.selected=e.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(e=this.placeholder)!==null&&e!==void 0?e:""}}}async edit(e){this.readonly=!e}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}onSelectedChange(){var e,t;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;const o=!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((e=>e.value)):undefined;this.smoothlyInput.emit({[this.name]:o});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}onRequiredChange(){this.items.forEach((e=>e.deselectable=!this.required))}async onFilterChange(e){e=e.toLowerCase();await Promise.all(this.items.map((t=>t.filter(e))))}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async smoothlyInputLoadHandler(e){if(e.target&&("name"in e.target&&e.target.name!==this.name||e.composedPath().some((e=>e==this.iconsDiv))&&!e.composedPath().some((e=>e==this.toggle)))){e.stopPropagation()}else if(Xr.Element.is(e.target)){e.stopPropagation();e.target.deselectable=!this.required;this.items.push(e.target)}e.detail(this)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(e){e.stopPropagation();if(this.multiple){this.selected=e.detail.selected?[...this.selected,e.detail]:this.selected.filter((e=>e.selected))}else if(e.detail.selected||!this.items.some((e=>e.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!e.detail.selected?this.selected.filter((e=>e.selected)):[e.detail];!this.showSelected&&e.detail.selected&&(e.detail.hidden=true)}this.displaySelected();this.element.focus()}onClosed(){if(!this.open){const e=this.items.find((e=>e.marked));if(e)e.marked=false}}handleShowOptions(e){const t=(e===null||e===void 0?void 0:e.composedPath().some((e=>e==this.iconsDiv)))&&!e.composedPath().some((e=>e==this.toggle));const o=e===null||e===void 0?void 0:e.composedPath().find((e=>"tagName"in e&&e.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!t&&(this.open=!this.open);this.filter=""}areValuesEqual(e,t){return e.length===t.length&&t.every((t=>e.includes(t)))}displaySelected(){const e="<div>"+this.selected.map((e=>e.innerHTML)).join("</div><div>")+"</div>";this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?e:this.placeholder?this.placeholder:"")}onKeyDown(e){if(!this.searchDisabled){e.stopPropagation();const t=this.items.some((e=>e.getAttribute("hidden")===null));if(e.key!="Tab"&&!e.ctrlKey&&!e.metaKey)e.preventDefault();if(this.open){switch(e.key){case"ArrowUp":t&&this.move(-1);break;case"ArrowDown":t&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((e=>e.marked));if(o===null||o===void 0?void 0:o.value)o.selected=!o.selected;if(!this.multiple){this.open=false;this.filter=""}break;case"Tab":this.open=false;break;default:if(e.key.length==1)this.filter+=e.key;break}}else{switch(e.key){case"Enter":case" ":this.handleShowOptions();break;case"ArrowDown":this.handleShowOptions();this.move(1);break;case"ArrowUp":this.handleShowOptions();this.move(-1);break;case"Tab":break;default:this.handleShowOptions();if(e.key.length==1)this.filter+=e.key;break}}}}move(e){let t=this.items.findIndex((e=>e.marked));if(t==-1)t=0;else{this.items[t].marked=false;t=(t+e+this.items.length)%this.items.length}if(this.items.some((e=>!e.hidden)))while(this.items[t].hidden){t=(t+e+this.items.length)%this.items.length}this.items[t].marked=true;this.scrollTo(this.items[t])}scrollTo(e){var t,o,s;(t=this.optionsDiv)===null||t===void 0?void 0:t.scrollTo({top:e.offsetTop-((s=(o=this.optionsDiv)===null||o===void 0?void 0:o.clientHeight)!==null&&s!==void 0?s:0)/2})}render(){return t(s,{key:"9bcfa72ea90db357f45ab6e0c1d025cda3415876",tabIndex:0,class:{"has-value":this.selected.length!==0},onClick:e=>this.handleShowOptions(e)},t("div",{key:"536cf124f9c7440d4bd639ec158cdf56be231c3f",class:"select-display",ref:e=>this.displaySelectedElement=e},this.placeholder),t("div",{key:"42a17174ab0a83577969b0b296b62ac72763f5b4",class:"icons",ref:e=>this.iconsDiv=e},t("slot",{key:"2ec4004fd7669e4ff1bcc9fffc4672d421e38e24",name:"end"}),this.looks=="border"&&t("smoothly-icon",{key:"c2903cff51528457c96626534f5c6137dcd0f853",ref:e=>this.toggle=e,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),t("slot",{key:"6dee7b785f062a0382f856f016e3b847cc5f0602",name:"label"}),t("div",{key:"22ce8d200a5fdd6ecc6206ab6422911184f493e4",class:{hidden:!this.open,options:true},ref:e=>{this.optionsDiv=e}},this.filter.length>0&&t("smoothly-item",{key:"87d694dc12ee9c96169200657e8c979b527eaf51",selectable:false},t("smoothly-icon",{key:"be6105bd419c49d819f8ac7a5da5e4329cd2c33f",name:"search-outline",size:"small"}),this.filter,t("smoothly-icon",{key:"e9551e0114e178b98179020b79eb48fa1187960d",name:"backspace-outline",size:"small",onClick:e=>{e.stopPropagation();this.filter="";this.element.focus()}})),t("slot",{key:"ed1e43cca6fd623a6541c93534bd17289b003e08"})))}get element(){return a(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};ec.style=Qr;var tc;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.submit=="function"}e.is=t})(tc||(tc={}));const oc=".sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}";const sc=oc;const ac=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.delete=false;this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=false;this.shape=undefined;this.type="button";this.size=undefined;this.toolTip=this.delete?"Remove":"Submit";this.inactive=undefined}componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(tc.is(e)&&Yl.type.is(e)){this.parent=e;e.listen("changed",(async e=>{this.display=!e.readonly;this.inactive=!this.delete&&(e.readonly||Object.values(e.value).filter((e=>e)).length<1||!e.changed)}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit(this.delete)}render(){var e,o;return t(s,{key:"87699e635588311db642896bf4982f32cebdb1cb",title:this.toolTip},this.delete==true?t("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,type:this.type,color:(e=this.color)!==null&&e!==void 0?e:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},t("slot",null),t("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):t("smoothly-button",{disabled:this.disabled||this.inactive,size:this.size,type:this.type,shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"success",fill:this.fill,onClick:()=>this.clickHandler()},t("slot",null),t("smoothly-icon",{name:"checkmark-outline",fill:"solid",size:"tiny"})))}};ac.style=sc;const ic="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-input-selected-background));color:rgb(var(--smoothly-input-selected-foreground));border-left:5px solid rgb(var(--smoothly-input-selected-border))}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:5px solid transparent;color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}[marked].sc-smoothly-item-h,.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-input-hover-background));color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-item-h[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:hover.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}";const nc=ic;const lc=class{constructor(t){e(this,t);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.selectable=true;this.deselectable=true}clickHandler(){if(this.selectable&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&this.selectable)this.smoothlyItemSelect.emit(this.element)}async filter(e){var t;const o=typeof this.value==="string"?this.value:JSON.stringify((t=this.value)!==null&&t!==void 0?t:"");this.element.hidden=e&&this.selectable?!(o.includes(e)||this.element.innerText.toLowerCase().includes(e)):false}render(){return t(s,{key:"f3aedba75963e1c8a97102e81dd2fdb41757e94e",tabIndex:-1},t("slot",{key:"5df7d9e38640ee784c8e647b46008ae64b4bcbbb"}))}get element(){return a(this)}static get watchers(){return{selected:["selectedWatcher"]}}};lc.style=nc;const rc=".sc-smoothly-label-h{position:relative;width:max-content;display:flex;justify-content:center;align-items:center;padding:0.15em 0.6em;border-radius:2em;color:rgb(var(--smoothly-default-contrast));background-color:hsl(var(--hue), 85%, 70%)}[shape=rectangle].sc-smoothly-label-h{border-radius:0.3em}";const cc=rc;const dc=class{constructor(t){e(this,t);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){return t(s,{key:"a4c888c10c098cadf86a7a1255a91ba025f17fdf",title:this.description,style:{"--hue":this.hue.toString()}},t("slot",{key:"0810555b86c6c47e2b1ab10d911be83c294b24ea"}))}};dc.style=cc;const hc=".sc-smoothly-lazy-h{display:block}";const bc=hc;const fc=class{constructor(t){e(this,t);this.show=false;this.content=undefined}loadMoreHandler(e){e.stopPropagation();this.show=true}render(){return t(s,{key:"6a379888d6a506adb63efe1a63f63c51add79cef"},t("slot",{key:"f41cb19a1b6f621479c4c5e78d80ca721c896c44",name:"before"}),t("smoothly-load-more",{key:"4771974084e7a75b857a2f1b326c60b41e0115c9",onSmoothlyLoadMore:e=>this.loadMoreHandler(e)}),this.show&&(typeof this.content=="function"?t(this.content,null):this.content),t("slot",{key:"636c9e35b38998b9f956560a785d8d68f65dfeb0"}))}};fc.style=bc;const yc=".sc-smoothly-load-more-h{display:block;position:relative;top:var(--offset,)}";const mc=yc;const uc=class{constructor(t){e(this,t);this.smoothlyLoadMore=o(this,"smoothlyLoadMore",7);this.offset="0";this.name="";this.multiple=false}componentWillLoad(){const e=new IntersectionObserver(((e,t)=>this.observationHandler(t,e)));e.observe(this.element)}observationHandler(e,t){var o,s;if((s=(o=t.find((e=>e.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(e.unobserve(this.element),e.disconnect())}}render(){return t(s,{key:"10c8082a2848eea425ce126becaa2556035ad6c6",style:{"--offset":`${this.offset}`}})}get element(){return a(this)}};uc.style=mc;const pc=".sc-smoothly-next-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const gc=pc;const kc=class{constructor(t){e(this,t)}render(){return t(s,{key:"fd167174c4c8d2fddbc5c2c8d67a69cffc610679"},t("smoothly-next-demo-group",{key:"8b6891f7f8186765bd77d9bf5b3f6f09e58ef4ec"}),t("smoothly-next-demo-colspan",{key:"7278d265ef8ba9591a12b7f6f68521ff82e81d28"}),t("smoothly-next-demo-simple",{key:"9a5248f07dcbc1a438d5e58f103db6cf12fd9faa"}),t("smoothly-next-demo-nested",{key:"f2e3dc9953ffebe9cdc329716db26e1cca740371"}),t("smoothly-next-table-demo-filtered",{key:"6ccca1f4a4edb7e17cd172f89202b554a58e2f46"}))}};kc.style=gc;const vc=".sc-smoothly-next-demo-colspan-h{display:block}.sc-smoothly-next-demo-colspan-h smoothly-display.sc-smoothly-next-demo-colspan{display:inline}";const xc=vc;const wc=class{constructor(t){e(this,t)}render(){return t(s,{key:"ac8466ecf9f5347f5eaed5945117494d10fbd9cc"},t("smoothly-next-table",{key:"966fb3e88e5f45944360c07b98a9cd685b936996",columns:3},t("smoothly-next-table-head",{key:"c5b29d748e3baab61176c3acaec67423e281465a"},t("smoothly-next-table-row",{key:"9d0e7b623076fc701fc26441c653ac794542261d"},t("smoothly-next-table-cell",{key:"12849fb837e43563bf06fe74010abcc6ba0eaced"},"Date"),t("smoothly-next-table-cell",{key:"294523be61f122c9c4cb3cdf3123ad2cb6b51429"},"Skip"),t("smoothly-next-table-cell",{key:"ea03a798efa7c43b08a3d51656c93d4e10b6866c"},"Total"))),t("smoothly-next-table-body",{key:"0d2dbec3d62cf63599f8955b69357e92325f2fea"},t("smoothly-next-table-row",{key:"8519b49744abae2fc5f6f376e9499980a94ba044"},t("smoothly-next-table-cell",{key:"0dfc5f5539b99410502c6d6cdc54d910c8154665",span:2},t("smoothly-display",{key:"4f2214b77f30d85b4fde959a8bbc6baae86d97f2",type:"date",value:"2024-01-01"})),t("smoothly-next-table-cell",{key:"d4e2cdc0f906c7b2a21fa19de75b2cda75af25d5"},t("smoothly-display",{key:"583c11fc703acd6a22bab9dd3c71502a7e6fbfd5",type:"price",value:120,currency:"EUR"}))),t("smoothly-next-table-row",{key:"35ee16e09ff4383013e9b7f3049fb1d717684fc4"},t("smoothly-next-table-expandable-cell",{key:"6e0671f6de6216670d86f562279c541799786fac",span:2},t("smoothly-display",{key:"33b340559ca661ac2280f6cefed69ca436764cfe",type:"date",value:"2024-01-02"}),t("smoothly-lazy",{key:"f0f1dca62beb27b5eb6d2c410f6a215766a0a678",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),t("smoothly-next-table-expandable-cell",{key:"c9e97dcb0095bdbb923fcd97c05c54e0bfc0d96c"},t("smoothly-display",{key:"6ad7841c9b4b633bdbaa58a309ae63b834afeb11",type:"price",value:220,currency:"EUR"}),t("smoothly-lazy",{key:"1dc81fcfe5184669d4dda23ada950a17dd1eda30",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),t("smoothly-next-table-row",{key:"f65b4da8f022136244462a682de9bb22a362e590"},t("smoothly-next-table-cell",{key:"849a03946dc3a01737e583bd10f88dc7d2a27ee9"},t("smoothly-display",{key:"3975d14cff76efa29fa4e2085cfd8f5f367c438f",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"b19be2471707e8b9d648412fd86e56b3ec654458"},"Not Skipped"),t("smoothly-next-table-cell",{key:"0ee653fac30e4f16ab10ba5eb041a4fae1d46dd7"},t("smoothly-display",{key:"69dfd025580d769721f77b7c57bfdf72453ceaa5",type:"price",value:320,currency:"EUR"}))))))}};wc.style=xc;const Sc=".sc-smoothly-next-demo-group-h{display:block}.sc-smoothly-next-demo-group-h smoothly-display.sc-smoothly-next-demo-group{display:inline}.sc-smoothly-next-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-next-demo-group{grid-column:span 2}.sc-smoothly-next-demo-group-h>smoothly-display.sc-smoothly-next-demo-group{display:inherit;font-size:2em}.sc-smoothly-next-demo-group-h>*.sc-smoothly-next-demo-group{margin-bottom:2rem}.sc-smoothly-next-demo-group-h fake-group-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-row-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-expandable-row-wrapper.sc-smoothly-next-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-next-demo-group-h fake-cell-wrapper.sc-smoothly-next-demo-group{grid-column:span 1;display:block}.sc-smoothly-next-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-next-demo-group{display:contents}";const Cc=Sc;const zc=class{constructor(t){e(this,t)}render(){return t(s,{key:"5d56b03eb97616e30ece37f629f39485b0e5708f"},t("smoothly-display",{key:"f5360ca93d4658778a49a01334679ca8f9a16f3b",type:"text",value:"Group"}),t("smoothly-next-table",{key:"88f04736ccced992c742935d12c4d86789fee38e",color:"primary",columns:2},t("smoothly-next-table-head",{key:"faf45d5b7ff1fe857d72c79fc42f38f545e9b6c1"},t("smoothly-next-table-row",{key:"6714d32001e6eb7ac053c08c1df2165bb0bb0929"},t("smoothly-next-table-cell",{key:"18b8c8894f7b79a688661abe6b61433e08b2e1d8"},"Date"),t("smoothly-next-table-cell",{key:"15e871c099b3213c9b5c6ee0cc3dd1cb0d01292a"},"Total"))),t("smoothly-next-table-body",{key:"d3aec297f634d976f94aaf8eeb95e1ebd3c618b8"},t("smoothly-next-table-row-group",{key:"9dcc0cfa20ce5186cb288ab006d7b45aa29f75b9",align:true},t("smoothly-display",{key:"489def9fdbb627a0638fbcceea9a8c86a612cba7",slot:"start",type:"date",value:"2024-01-01"}),t("smoothly-display",{key:"7fc0d039b45dca48ea8ca52778b09cdd4dd8de00",slot:"end",type:"price",currency:"EUR",value:510}),t("smoothly-next-table-expandable-row",{key:"c91ee5b3818981cf2c36f3ec0084d3444a66ec71"},t("smoothly-next-table-cell",{key:"b6a57f1d865985624d18da6ba1d64aef399c5824"},t("smoothly-display",{key:"3b9d57fb4400b45b62a240edd7f6bd6233cf4327",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"51139b6d5dc0a8208dcb91848b6dd08e1f377e39"},t("smoothly-display",{key:"2d866b2358fd0a33b4cb48a260f2dc571f69d307",type:"price",currency:"EUR",value:250})),t("smoothly-lazy",{key:"a34003280f16dbdde0cf46f5a9ceec49e278e1d1",slot:"detail",content:t(i,null,"Details of 2024-01-01T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"6b0f4b6d7b810ab7e46a9fa15e5b17962d57b7ce"},t("smoothly-next-table-cell",{key:"5a8a8b46648f2adc4fbfb9f83d823a1386fa096e"},t("smoothly-display",{key:"d3f1a0da19c0796cdab7c667f60631eb34ec6aa0",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"aa15a2ee96fe18eef5d71154f9e9584cae71dba7"},t("smoothly-display",{key:"f3ef958a17422978c2cb7fed9972a329f0758017",type:"price",currency:"EUR",value:260})),t("smoothly-lazy",{key:"2f9cbc48aa384b9cf18a0a0df117964e61c1baa5",slot:"detail",content:t(i,null,"Details of 2024-01-01T13:37:00.000Z")}))),t("smoothly-next-table-row",{key:"54a532a857901b5cf86452bcef52519cd10b4f82"},t("smoothly-next-table-cell",{key:"5473438582ef2b6a59d1469b9e3e4706df7976bb"},t("smoothly-display",{key:"482e30cd76d43ad92fb539eceb2d457e3395aaf7",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"9e39ef3e80fbbaa5f40a2beb216958b4ecd825d2"},t("smoothly-display",{key:"60809b1e1df2f1c8482b46f1bdd7279ef1efed35",type:"price",currency:"EUR",value:130}))),t("smoothly-next-table-row-group",{key:"9d605bfae7226d1686455fe299f07e8201efef93"},t("smoothly-display",{key:"b8b96a007564b34de3a88997d4b9b89bdda665c2",slot:"start",type:"date",value:"2024-01-03"}),t("smoothly-display",{key:"b8e6056ab1f2bb3741e837ea3bf7895a76cb77c8",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"447163a3171f75f7b9340b204bfd92ff52558d0e"},t("smoothly-next-table-cell",{key:"f868db2a2ee6d5287800d788da37df818ead06f0"},t("smoothly-display",{key:"cc58dc5bddb9cded44121f6b8eac04bdfb3efa71",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"fe4188b08091ae10176711ee21e5d594bfa9ef49"},t("smoothly-display",{key:"f682b5507fd0b3bedf099ca8300f42dab9647fe5",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"664a5529cfb1081d03c5981242419ecb729bac70",slot:"detail",content:t(i,null,"Details of 2024-01-03T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"7fc01b056787e00028067c9a04c850a62a219858"},t("smoothly-next-table-cell",{key:"4332ed8e8f8e1d5ad9d37e0642c8892b33dbbeec"},t("smoothly-display",{key:"019841311dd2a94030527e424989b74ea5b522ae",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"ea3ebeeb126d97dcacaecda508bd65b50c0711b7"},t("smoothly-display",{key:"0d84fd8191432bb6deec84591857ec161b0e1dcf",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"cdeec63d71732d1923a8f3b79036d12247f38b98",slot:"detail",content:t(i,null,"Details of 2024-01-03T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"3550aa60b2e9e9e9980a64cf143ce0d17d4c1fa5"},t("smoothly-display",{key:"3f7e9c3dc8bb79266fd6155abdaacd02be3b48ef",slot:"start",type:"date",value:"2024-01-04"}),t("smoothly-next-table-expandable-row",{key:"da4294c6b2e44f187d85e4238b68eabe0a6cbe0c"},t("smoothly-next-table-cell",{key:"8c3a545a335ae3cf7407cfa649d721d27c83b85b"},t("smoothly-display",{key:"22fc42a0b0aa717032f58644054ff2541e9e5d01",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"c7110196e7aae21debea3fa4299b36425acf3235"},t("smoothly-display",{key:"0119736188d0589d46c6d297263ded37be1fb800",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"848d08981aff1004587f7da62bb5fa03116b570c",slot:"detail",content:t(i,null,"Details of 2024-01-04T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"bba15eae4caf007a6e8d1f387366a0382ac2dbf7"},t("smoothly-next-table-cell",{key:"48fd64a22091e1c89dd1db080055723522ed39dc"},t("smoothly-display",{key:"f794887ab4e3fc1b0715b5d47769abab75686560",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"7426bf45d2898a584741ea98b4d0f132a78af825"},t("smoothly-display",{key:"58b13d4c9c2c85272e2f401c51e120c5d78d1ef8",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"55fca423e0d86eccb6b87d45e71aef93e605aaa6",slot:"detail",content:t(i,null,"Details of 2024-01-04T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"a43ca279d26cdfe9ebb4cdc5378ce376bfc25922"},t("smoothly-display",{key:"77af0b448e37e1bb17d6b7882e609fe8dda4d70a",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"aeda26c78d0c4e6cf030f645dcfcf8afedc13e06"},t("smoothly-next-table-cell",{key:"deeb287a4a4087508f852bc5a4892a08913e015f"},t("smoothly-display",{key:"dccb72a1b917e3ade1ef28a05ec2d61eb15a8ec0",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"906e0fac17dc5043d77e9416ffa89520eeb7e238"},t("smoothly-display",{key:"1cc78e68f4e7d575c07e077cae9cb4cda656c6cc",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"369b56208198df9cfaba5e680e8402fa4c392902",slot:"detail",content:t(i,null,"Details of 2024-01-05T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"ec5aa7f7426ce7b04684d195a220507ebfa4f18a"},t("smoothly-next-table-cell",{key:"d1e85789875059e3f6c37f8d9503792bed720f19"},t("smoothly-display",{key:"5046dc700293122c0fc02a7d4c4de6471873b972",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"1559e7c310ec93921dce04f3b89afbcd7a2427bf"},t("smoothly-display",{key:"d97321e909f7ae634fc9302adb45ef5ca5b023d0",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"7c6fb3e8499cc7299acb918fdee250734724c393",slot:"detail",content:t(i,null,"Details of 2024-01-05T13:37:00.000Z")}))),t("fake-group-wrapper",{key:"e4910f2765f913c9f9784b7182e3e663cf020080"},t("smoothly-next-table-row-group",{key:"3e0dc61365b76dd9fc9a4113c36c0d20797aba5b"},t("smoothly-display",{key:"37e77907b4015a75c867b5d08122862d30a6f37f",slot:"start",type:"date",value:"2024-01-06"}),t("smoothly-display",{key:"74cf92c57a70efe3e58838e4754dbadb10c87b66",slot:"end",type:"price",currency:"EUR",value:720}),t("fake-row-wrapper",{key:"ccf5fb158226fe203bc42c7248c1bcc34be527f8"},t("smoothly-next-table-row",{key:"0ed77719dc24e96e7d537487da8d2044e4141ccb"},t("fake-cell-wrapper",{key:"571eaf6d4a7ff2934e2a407ef21d70cdece5d7f4"},t("smoothly-next-table-cell",{key:"fd69bbc8604f94b77eaa0bfb1e1c2325472fd0d1"},t("smoothly-display",{key:"e7daad0840115e690fc6fa6c2ef3c5f8f4ac1c1a",type:"date",value:"2024-01-02"}))),t("fake-expandable-cell-wrapper",{key:"d701fc0ab6f9ea6586d26dd9af0d45d3794de2d8"},t("smoothly-next-table-expandable-cell",{key:"43cabebb6bb2c962e3c4a1444ff8b4e5e7d73b49"},t("smoothly-display",{key:"202feda5c64dbda8a1226c5a7621eada51be67cb",type:"price",currency:"EUR",value:130}),t("smoothly-lazy",{key:"f1ccfbd2ad7aead8b4257b5ec2797ad97112bc72",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),t("fake-expandable-row-wrapper",{key:"9a0867eae1807af82538ce74a0d90dd26354bbee"},t("smoothly-next-table-expandable-row",{key:"90746e19fe5119eebdcb225fb17be32173d02442"},t("fake-cell-wrapper",{key:"2494993605e20bc7dd89206277a7018116767db3",class:"span-2"},t("smoothly-next-table-cell",{key:"8d318b5239d57a3e3d5029f3c8e9d6f73cba8570",span:2},t("smoothly-display",{key:"281bf3060133574b6d9e14a8bf0f69bccea0bf05",type:"date",value:"2024-01-07"}))),t("smoothly-lazy",{key:"5a3a04973f15eefa820f9f669916fbebe6e7a2e2",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),t("smoothly-next-table-row-group",{key:"34f1e972e2fd680de532f5da65ad7f92ea15d863"},t("smoothly-display",{key:"8f1432361f56d412853ffa3c0c48cd595068af8b",slot:"start",type:"date",value:"2024-01-08"}),t("smoothly-display",{key:"c3fdb30de2d3b7630de71d2f174d9697e2dbe97b",slot:"end",type:"price",currency:"EUR",value:720})))))}};zc.style=Cc;const Tc=[{id:"667d329f9f4934ecdc4bf9eb",balance:1450.03,age:35,eyeColor:"blue",name:"Glenda Ballard",gender:"female",company:"ZENTIA",registered:"2022-06-13T12:39:15.908",friends:[{id:0,name:"Manning Hunter",age:30,balance:1922.25},{id:1,name:"Mcmillan Oliver",age:32,balance:2440.53},{id:2,name:"Graham Garza",age:33,balance:3712.59},{id:3,name:"Gabrielle Neal",age:36,balance:2519.25},{id:4,name:"Dotson Duncan",age:29,balance:3274.11}]},{id:"667d329f4e07097167ef92a2",balance:2488.91,age:21,eyeColor:"blue",name:"Delaney Haley",gender:"male",company:"COMTOURS",registered:"2018-05-11T08:58:36.197",friends:[{id:0,name:"Elsa Cochran",age:28,balance:2009.45},{id:1,name:"Willis Acevedo",age:33,balance:2198.01},{id:2,name:"Slater Fowler",age:34,balance:2888.16},{id:3,name:"Ashley Wilkerson",age:22,balance:1863.65},{id:4,name:"Ola Lynch",age:23,balance:3649.29}]},{id:"667d329f14a0aeea0d70d5e7",balance:1660.91,age:36,eyeColor:"brown",name:"Riddle Reilly",gender:"male",company:"OPTIQUE",registered:"2016-09-15T09:46:07.962",friends:[{id:0,name:"Hazel Steele",age:33,balance:3129.64},{id:1,name:"Golden Chapman",age:40,balance:2491},{id:2,name:"Solomon Lopez",age:26,balance:1382.71},{id:3,name:"Castro Booth",age:23,balance:1991.6},{id:4,name:"Hernandez Bartlett",age:25,balance:2842.85},{id:5,name:"Lindsay Wagner",age:20,balance:3636.6}]},{id:"667d329f953aaaba19bea98b",balance:1381.34,age:24,eyeColor:"brown",name:"Diana Burns",gender:"female",company:"CODACT",registered:"2023-06-02T09:07:46.478",friends:[{id:0,name:"Tamika Merritt",age:25,balance:2401.06},{id:1,name:"Ballard Buckner",age:36,balance:1986.13},{id:2,name:"Stokes Ramirez",age:25,balance:3521.75},{id:3,name:"Wood Aguirre",age:36,balance:1186.13},{id:4,name:"Sophia Bowen",age:25,balance:2750.95},{id:5,name:"Wilkinson Gordon",age:34,balance:3864.91}]},{id:"667d329f6a753976e21e23b5",balance:3054.74,age:22,eyeColor:"brown",name:"Jackson Burnett",gender:"male",company:"COMCUR",registered:"2019-06-05T09:17:31.312",friends:[{id:0,name:"Atkinson Alston",age:37,balance:1025.72},{id:1,name:"Delia Ford",age:34,balance:3061.87},{id:2,name:"Marylou Hanson",age:33,balance:3255.77},{id:3,name:"Kelly Ray",age:32,balance:3671.73},{id:4,name:"Valdez Weeks",age:38,balance:3911.29},{id:5,name:"Hayes Crawford",age:20,balance:3194.97}]},{id:"667d329fc4805cafac37861e",balance:1173.94,age:20,eyeColor:"green",name:"Stephenson Mcleod",gender:"male",company:"POLARAX",registered:"2015-12-10T07:36:10.267",friends:[{id:0,name:"Kristine Newton",age:26,balance:2713.9},{id:1,name:"Craft Patel",age:40,balance:3822.36},{id:2,name:"Cochran French",age:30,balance:1535.91},{id:3,name:"Bowen Vinson",age:29,balance:2787.01},{id:4,name:"Adrian Ewing",age:21,balance:2319.14},{id:5,name:"Jimmie Mathews",age:31,balance:2869.09},{id:6,name:"Dixon Daugherty",age:24,balance:1496.25}]},{id:"667d329f76318162fe27b208",balance:2977.01,age:24,eyeColor:"blue",name:"Claudette Christensen",gender:"female",company:"PIVITOL",registered:"2021-08-08T07:08:00.936",friends:[{id:0,name:"Parker Lamb",age:36,balance:3409.27},{id:1,name:"Kennedy Bryan",age:34,balance:3904.27},{id:2,name:"Johanna Barton",age:20,balance:3613.79},{id:3,name:"Vazquez Melendez",age:26,balance:3692.31},{id:4,name:"Mendoza Wooten",age:31,balance:2175.64},{id:5,name:"Kelli Hicks",age:21,balance:1326.46},{id:6,name:"Jill Sanchez",age:36,balance:3214.36}]},{id:"667d329ff80a953b7f0a73d2",balance:1993.09,age:20,eyeColor:"green",name:"Buckley Gutierrez",gender:"male",company:"HOUSEDOWN",registered:"2015-04-02T04:53:42.985",friends:[{id:0,name:"Leanne Pennington",age:37,balance:3111.48},{id:1,name:"Juarez Hoover",age:29,balance:2000.62},{id:2,name:"Navarro Mccormick",age:22,balance:3083.93},{id:3,name:"Berry Curry",age:31,balance:3181.41},{id:4,name:"Josefa Howard",age:30,balance:3744.56}]},{id:"667d329f4f53eb59f0512361",balance:2374.56,age:34,eyeColor:"brown",name:"Sallie Mccoy",gender:"female",company:"REALYSIS",registered:"2018-05-11T05:26:36.604",friends:[{id:0,name:"Martina Kirby",age:22,balance:1278.07},{id:1,name:"Macias Lyons",age:20,balance:2991.44},{id:2,name:"Alta Chaney",age:26,balance:1032.71},{id:3,name:"White Manning",age:39,balance:3103.16},{id:4,name:"Mason Rosa",age:31,balance:1384.77},{id:5,name:"Meghan Martin",age:27,balance:1982.09}]},{id:"667d329f8a6cf9319bfdbd30",balance:3220.94,age:23,eyeColor:"blue",name:"Huff Hull",gender:"male",company:"GADTRON",registered:"2023-02-14T01:58:56.938",friends:[{id:0,name:"Rochelle Maldonado",age:28,balance:1548.77},{id:1,name:"Diann Conrad",age:32,balance:1721.33},{id:2,name:"Hope Jarvis",age:38,balance:1265.24},{id:3,name:"Dixie Huffman",age:31,balance:3764.23},{id:4,name:"Erickson Porter",age:27,balance:2958.59},{id:5,name:"Christensen Thomas",age:21,balance:1233.2}]},{id:"667d329f1415ecb1efb216cc",balance:2907.83,age:26,eyeColor:"brown",name:"Hancock Eaton",gender:"male",company:"POLARIUM",registered:"2018-02-25T01:03:11.860",friends:[{id:0,name:"Flynn Gilmore",age:27,balance:2582.57},{id:1,name:"Kline Hickman",age:31,balance:3853.99},{id:2,name:"Hatfield Owens",age:40,balance:2016.57},{id:3,name:"Michael Carson",age:31,balance:1293.03},{id:4,name:"Strickland Lowery",age:23,balance:1367.06},{id:5,name:"Georgia Chavez",age:37,balance:2957.48},{id:6,name:"Alma Berry",age:26,balance:2357.01}]},{id:"667d329f722eb89c82b56dec",balance:1602.02,age:35,eyeColor:"brown",name:"Lorrie Mcpherson",gender:"female",company:"PYRAMIA",registered:"2018-12-07T05:18:34.223",friends:[{id:0,name:"Bridgett Everett",age:37,balance:1438.53},{id:1,name:"Carlene Farley",age:25,balance:1410.54},{id:2,name:"Phoebe Mendez",age:24,balance:1979.36},{id:3,name:"Louella Cox",age:36,balance:3430.55},{id:4,name:"Velez Pugh",age:30,balance:3436.5}]},{id:"667d329ff853efe8c4e0a454",balance:2654.19,age:36,eyeColor:"brown",name:"Luann Jennings",gender:"female",company:"NAXDIS",registered:"2014-02-18T04:25:50.302",friends:[{id:0,name:"Walton Gentry",age:26,balance:1328.43},{id:1,name:"Lucy Koch",age:23,balance:2134.54},{id:2,name:"Toni Meyers",age:31,balance:2572.29},{id:3,name:"Vicki Frost",age:39,balance:3299.36},{id:4,name:"Meadows Baker",age:21,balance:2323.75}]},{id:"667d329f84f3bfbfcc763674",balance:2528.48,age:28,eyeColor:"brown",name:"Michelle Carey",gender:"female",company:"IDEGO",registered:"2016-10-01T04:25:07.187",friends:[{id:0,name:"Roman Sanders",age:40,balance:3551.16},{id:1,name:"Amanda Herman",age:22,balance:3928.02},{id:2,name:"Kay Montgomery",age:26,balance:3241.16},{id:3,name:"Valentine Wilder",age:23,balance:1413.31},{id:4,name:"Brigitte Nixon",age:32,balance:3113.39}]},{id:"667d329f4359ec766055a765",balance:3732.65,age:30,eyeColor:"brown",name:"Beach Maddox",gender:"male",company:"GEEKETRON",registered:"2021-03-24T11:55:31.135",friends:[{id:0,name:"Candy Gibbs",age:20,balance:2602.28},{id:1,name:"Alissa Rosario",age:36,balance:1958.84},{id:2,name:"Imelda Harmon",age:23,balance:3817.79},{id:3,name:"Addie Serrano",age:35,balance:3154.77},{id:4,name:"Jordan Shields",age:26,balance:3566.08}]},{id:"667d329f9ef3817d307e2583",balance:2151.52,age:32,eyeColor:"brown",name:"Whitney Hood",gender:"male",company:"EVENTAGE",registered:"2021-06-17T12:11:56.473",friends:[{id:0,name:"Noel Walsh",age:29,balance:2790.49},{id:1,name:"Barlow Rodriquez",age:35,balance:1664.23},{id:2,name:"Nash Keith",age:23,balance:2285.17},{id:3,name:"Chavez Webster",age:23,balance:3381.55},{id:4,name:"Herminia Chen",age:24,balance:1064.96},{id:5,name:"Susana Glass",age:22,balance:2749.35}]},{id:"667d329f9bd581700cac2dbc",balance:2209.77,age:40,eyeColor:"blue",name:"Tasha Mosley",gender:"female",company:"QUIZKA",registered:"2014-05-11T11:44:55.071",friends:[{id:0,name:"Larsen Wall",age:22,balance:1523.28},{id:1,name:"Holmes Hopkins",age:35,balance:1112.68},{id:2,name:"Giles Espinoza",age:21,balance:2550.95},{id:3,name:"Aimee Rosales",age:26,balance:2195.06},{id:4,name:"Karin Little",age:28,balance:2896.23},{id:5,name:"Angelita Mcfadden",age:25,balance:1051.15}]},{id:"667d329f6e2dbb2002be4b9e",balance:3298.23,age:31,eyeColor:"brown",name:"Schneider Walker",gender:"male",company:"BLEENDOT",registered:"2020-02-11T08:57:29.025",friends:[{id:0,name:"Helena William",age:34,balance:2579.69},{id:1,name:"Silva Ware",age:30,balance:2683.79},{id:2,name:"Enid Oconnor",age:22,balance:1816.46},{id:3,name:"Knowles Goff",age:24,balance:1675.75},{id:4,name:"Carolina Greer",age:29,balance:3337.27}]},{id:"667d329f8c548510c5d4f5ce",balance:2823.51,age:35,eyeColor:"green",name:"Mayo Shepard",gender:"male",company:"KIOSK",registered:"2024-02-24T12:45:57.463",friends:[{id:0,name:"Olga Hester",age:21,balance:3878.21},{id:1,name:"Rogers Sampson",age:23,balance:2669.62},{id:2,name:"Myra Johnson",age:27,balance:3489.32},{id:3,name:"Mcfadden Phillips",age:20,balance:2758.8},{id:4,name:"Park Moody",age:23,balance:3519.08}]},{id:"667d329f6574ada6f090fd54",balance:2631.69,age:40,eyeColor:"blue",name:"Avis Carlson",gender:"female",company:"LINGOAGE",registered:"2016-08-08T08:59:54.752",friends:[{id:0,name:"Mcdonald Dyer",age:25,balance:2262.39},{id:1,name:"Irene Baldwin",age:29,balance:1291.1},{id:2,name:"Rollins Anderson",age:26,balance:1437.04},{id:3,name:"Juliana Larson",age:29,balance:3492.22},{id:4,name:"Michele Gardner",age:20,balance:2003.15},{id:5,name:"Vang Cardenas",age:31,balance:1855.52},{id:6,name:"Puckett Hubbard",age:21,balance:1659.92}]}];const jc=".sc-smoothly-next-demo-nested-h{display:block}.sc-smoothly-next-demo-nested-h>smoothly-display.sc-smoothly-next-demo-nested{font-size:2em}.sc-smoothly-next-demo-nested-h>*.sc-smoothly-next-demo-nested{margin-bottom:2rem}";const _c=jc;const Lc=class{constructor(t){e(this,t)}render(){return t(s,{key:"a691aebee7ef20fb9f484cb2fdb0b425521864fb"},t("smoothly-display",{key:"0bd8866e9a3bfe99d6b84c9a8af4010f243f3cc1",type:"text",value:"Nested"}),t("smoothly-next-table",{key:"8c7c0d89c4c3cd735e9192370e5efd5fc277213a",color:"primary",columns:8},t("smoothly-next-table-head",{key:"c118320c0fe00478e17047ef7c291426c37a6f58"},t("smoothly-next-table-row",{key:"1282cac487e655f5219426d8901cff1cb73c9aa9"},t("smoothly-next-table-cell",{key:"47d347dcfeaf5dd8362bc516cd6be79e482100b4"},"Id"),t("smoothly-next-table-cell",{key:"5353a4be419702c0224eda846e63c698c756808f"},"Registered"),t("smoothly-next-table-cell",{key:"e770a72942d73020531d9339606f1d2bb9bed1b8"},"Name"),t("smoothly-next-table-cell",{key:"5baf4bb22afc938ce9d29561d77a64d58a17f4d7"},"Age"),t("smoothly-next-table-cell",{key:"1d585110f6fcdcfbdc0ab112ff434b0c6754b141"},"Balance"),t("smoothly-next-table-cell",{key:"846d1741e40f6f4cedfc7c0f163bbdbf05a45366"},"EyeColor"),t("smoothly-next-table-cell",{key:"5a417b6fd901dc2fe4af9dfd72b091d184c4e7eb"},"Gender"),t("smoothly-next-table-cell",{key:"f0898b96ea50dbe5f84d05b61e65c3e2a1645343"},"Company"))),t("smoothly-next-table-body",{key:"57f146559d69d698931e0893815e8986a39dd25a"},Tc.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-demo-nested-inner",{color:"secondary",data:e.friends,slot:"detail"}),t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.registered),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance),t("smoothly-next-table-cell",null,e.eyeColor),t("smoothly-next-table-cell",null,e.gender),t("smoothly-next-table-cell",null,e.company))))),t("smoothly-next-table-foot",{key:"2771b961e61dbe48cda62fef74bceb09c94eefac"},t("smoothly-next-table-row",{key:"1584d7f958f1689f1ce1011f8f1c47a16ef2355d"},t("smoothly-next-table-cell",{key:"fe5daeea6a10480688babd4462077464597b01d6"},"Footer Cell"),t("smoothly-next-table-cell",{key:"3c756b1ebb2330dcdfeaec9d5cfcc0cc2fea871f"},"Footer Cell")))))}};Lc.style=_c;const Ac=".sc-smoothly-next-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const Ic=Ac;const Ec=class{constructor(t){e(this,t);this.data=undefined}render(){var e;return t(s,{key:"a3f06a8b508b918174e7be4e5b9bae8275edbf2c"},t("smoothly-next-table",{key:"1e0d6e298bdcbda8ec444211d5a4f9941b0c2c12",columns:4},t("smoothly-next-table-head",{key:"d4eaef193b9dae9dcbe3c5169bd8113483e14fd2"},t("smoothly-next-table-row",{key:"9b1ad224fbfc2fc4beea887a3733fd3ee5e5fb3e"},t("smoothly-next-table-cell",{key:"17bbd913fce928ebbfc5c796a0ca0e93e9671fb2"},"Id"),t("smoothly-next-table-cell",{key:"2a68fa9f9637c07cf4761dcf4d6d7f17e0405235"},"Name"),t("smoothly-next-table-cell",{key:"49d18de3edd4b57bb4e0c3e78fbc48b561707f79"},"Age"),t("smoothly-next-table-cell",{key:"726f7d09af79714f7dd0dd4ca85cd444f554f472"},"Balance"))),t("smoothly-next-table-body",{key:"2ef3ed38ca7690fdefefcc1e7cdf6a582807c994"},(e=this.data)===null||e===void 0?void 0:e.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance)))))))}};Ec.style=Ic;const Oc=".sc-smoothly-next-demo-simple-h{display:block}.sc-smoothly-next-demo-simple-h>smoothly-display.sc-smoothly-next-demo-simple{font-size:2em}.sc-smoothly-next-demo-simple-h>*.sc-smoothly-next-demo-simple{margin-bottom:2rem}";const Dc=Oc;const Mc=class{constructor(t){e(this,t)}render(){return t(s,{key:"57221473e61c11430922db0433acb4865c6307fe"},t("smoothly-display",{key:"5c8dd23a2893e0efc624c90a55190063816fdf0d",type:"text",value:"Simple"}),t("smoothly-next-table",{key:"497969b252f771619758a95de0fedb8a955ffb6b",color:"primary",columns:2},t("smoothly-next-table-head",{key:"55bf229dcf52a029afcc1199dce35f886f15e48b"},t("smoothly-next-table-row",{key:"c2b212ae3baf93cd9697adaabffd970709146a8a"},t("smoothly-next-table-cell",{key:"0eebb2fdab7bc5d3b8b4bb2f20e23177ab37fe6e"},"Breed"),t("smoothly-next-table-cell",{key:"f7c4c11707422ef80d222a254c8a540de94e854e"},"Coat"))),t("smoothly-next-table-body",{key:"e0936fc4b0b7ceef180ed707b0bb8613b2035e7f"},Rc.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country:",t("br",null),e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern))))),t("smoothly-next-table-expandable-row",{key:"deb609c03930576c1fe9be61782bf5ae3e752e78"},t("div",{key:"1bdc172f33f10f48da2e3a1358dd6bf6056fb211",slot:"detail"},"Content",t("br",{key:"ba0cf33bb8347fa83fdf0f30f4149e872e13162f"}),"of",t("br",{key:"a5c1a596ca515a374244df4097103984533800bd"}),"the",t("br",{key:"a3ad859b6915e963a2219cb35dba63919f07c746"}),"expandable",t("br",{key:"a4b8868af9410b3a0723ed888dbbdcc7eb2a7d2a"}),"row"),t("smoothly-next-table-cell",{key:"94cca2aa7ce805700ddc4011bb49ca613b360ae2"},"Cell1 in expandable row"),t("smoothly-next-table-cell",{key:"6d1b6527280bacde8440b9978064570768d53398"},"Cell2 in expandable row")),t("smoothly-next-table-row",{key:"bd6a2d131f85a78455194d41b59d65b0e29966ab"},t("smoothly-next-table-cell",{key:"78ae3c0e24ad43c66dc969f7c6f1e45fb1c10a61"},"Cell5"),t("smoothly-next-table-expandable-cell",{key:"5ac731c5fb40a377437318d392f26626c444f686"},"Expandable Cell",t("div",{key:"e6bc7b13c5eec9c77ebf17378e9c306ac546e2a2",slot:"detail"},"Content of the expandable cell"))),t("smoothly-next-table-row",{key:"2ad31b4e4098cbbf174d3ee916f6c8b65202efe9"},t("smoothly-next-table-expandable-cell",{key:"04a80947ef5206c3e9060dafb3793fb1718f7a36"},"Expandable Cell 1",t("div",{key:"92704dd765774ebb54b619538196a6476f22066b",slot:"detail"},"Content of the expandable cell 1")),t("smoothly-next-table-expandable-cell",{key:"a168a3b3f13eb93e4e9576766799fe408fa0c5ee"},"Expandable Cell 2",t("div",{key:"ed09bf2b304f58d35fad3ef744edd2991644e32c",slot:"detail"},"Content of the expandable cell 2")))),t("smoothly-next-table-foot",{key:"e670d50318a4db96a1461a1e42ff67ce2953e891"},t("smoothly-next-table-row",{key:"59e250b22b22ddfe17767cb79bd85e2f511a7d30"},t("smoothly-next-table-cell",{key:"b28114aea9ee2c4e6119534ad5668c06c79c96b5"},"Footer Cell"),t("smoothly-next-table-cell",{key:"ac1d12554b0cfd9f14cec51d33a1d806ef5dad97"},"Footer Cell")))))}};const Rc=[{breed:"Abyssinian",country:"Ethiopia",origin:"Natural/Standard",coat:"Short",pattern:"Ticked"},{breed:"Aegean",country:"Greece",origin:"Natural/Standard",coat:"Semi-long",pattern:"Bi- or tri-colored"},{breed:"American Curl",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Bobtail",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Shorthair",country:"United States",origin:"Natural",coat:"Short",pattern:"All but colorpoint"},{breed:"American Wirehair",country:"United States",origin:"Mutation",coat:"Rex",pattern:"All but colorpoint"},{breed:"Arabian Mau",country:"Arabian Peninsula",origin:"Natural",coat:"Short",pattern:""},{breed:"Australian Mist",country:"Australia",origin:"Crossbreed",coat:"Short",pattern:"Spotted and Classic tabby"},{breed:"Asian",country:"developed in the United Kingdom (founding stock from Asia)",origin:"",coat:"Short",pattern:"Evenly solid"},{breed:"Asian Semi-longhair",country:"United Kingdom",origin:"Crossbreed",coat:"Semi-long",pattern:"Solid"}];Mc.style=Dc;const $c=".sc-smoothly-next-table-h{display:grid;grid-template-columns:repeat(var(--columns), auto);color:rgb(var(--smoothly-table-foreground));stroke:rgb(var(--smoothly-table-foreground));fill:rgb(var(--smoothly-table-foreground))}";const Pc=$c;const Hc=class{constructor(t){e(this,t);this.columns=1}render(){return t(s,{key:"1edbf4bf33b50ba8bef76e4b01c3d42e7621cfe2",style:{"--columns":this.columns.toString()}},t("slot",{key:"e819837a7c6ca268916b7ab73f20ada90c4c880d"}))}};Hc.style=Pc;const Nc=".sc-smoothly-next-table-body-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;color:rgb(var(--smoothly-table-foreground));background-color:rgb(var(--smoothly-table-background))}";const Fc=Nc;const Uc=class{constructor(t){e(this,t)}render(){return t(s,{key:"7aada42099295b0418033976b87562512c16ec9d"},t("slot",{key:"e75333f0b3cf6b94d878e9b050013b7f54c683a4"}))}};Uc.style=Fc;const Wc=".sc-smoothly-next-table-cell-h{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding:0.3rem 1.1rem;white-space:nowrap}";const Yc=Wc;const Bc=class{constructor(t){e(this,t);this.span=1}render(){return t(s,{key:"b79740995bc33a4cab5417ec9622b321d9370f9c",style:{"--smoothly-table-cell-span":this.span.toString(10)}},t("slot",{key:"d6f0aeba71b8367b184f179c2f927a53ee9858b9"}))}};Bc.style=Yc;var qc=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Gc=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Kc;class Vc{get selected(){var e;return Gc(this,Kc,(e=qc(this,Kc,"f"))!==null&&e!==void 0?e:Object.values(this.data),"f")}constructor(e,t={}){this.key=e;this.data=t;Kc.set(this,void 0)}handle(e){var t;return new Vc(this.key,"check-all"in e?(t=e["check-all"])!==null&&t!==void 0?t:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),e)).filter((([e,t])=>t!=undefined))))}render(e){var o,s,a;return Array.isArray(e)?t("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(e.map((e=>[e[this.key],e]))),intermediate:this.selected.length>0&&this.selected.length<e.length,checked:this.selected.length==e.length?true:this.selected.length==0&&false}):t("smoothly-checkbox",{name:(o=e[this.key])===null||o===void 0?void 0:o.toString(),value:e,checked:!!this.data[(a=(s=e[this.key])===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""]})}static create(e){return new Vc(e)}}Kc=new WeakMap;const Jc='.sc-smoothly-next-table-demo-filtered-h{display:grid;grid-template-columns:auto auto;grid-template-areas:"header filter"\n\t\t"main main";margin-bottom:50em}.sc-smoothly-next-table-demo-filtered-h>smoothly-display.sc-smoothly-next-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-next-table-demo-filtered-h>smoothly-filter.sc-smoothly-next-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-next-table-demo-filtered-h>*.sc-smoothly-next-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(2),.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-head.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(4){justify-content:end}';const Xc=Jc;const Zc=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Vc.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await Pl("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Qc[e.country])!==null&&t!==void 0?t:[]}),names:(o=Qc[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&Mn(this.criteria,this.cats);return t(s,{key:"f56af5f09d0949c986ac848e544addfdc1316cac"},t("smoothly-display",{key:"b9b8f684e5f87e756765394610c5f3e09ee2e0c3",type:"text",value:"Filtered"}),t("smoothly-filter",{key:"cbebd52ef4b42df3588c5e4fa8e6579c94518a96"},t("smoothly-filter-toggle",{key:"195baeae0c3bd17d367c5538ea6401aaf9a6df1a",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"ae93205432082614ef7eda8719b1032512149e77",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"77f95e3ccf360921576af4bb00ee6a267eb41c5d",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"5a4f4fd22ba6bc3bdc3781e9bd3354fd9881fd16",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"952889c32c6233efb03c066b5d2e472b83c9b1bf",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"05d2fe5758a9a1483f3f970c5c4bdf24ac744033",slot:"detail"},t("smoothly-form",{key:"c00eade8f7bcc3c4a2f186cb84e413c0c6ef2aa4",looks:"border"},t("smoothly-filter-select",{key:"e5efcfed3cd53ab1eec3c5c64184e330c62f91b9",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"846fc35b7bcdc9b27667c8ef1f679f943374fcc3",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"ab02eff1de24be41046a2f64d2410bcc5acea46f",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Qc).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"d6dc6360ba7a486c1e18bf9f89d36173340dfcfe",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"ed885765979c98b440639a107aa228c5047af947",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-next-table",{columns:4},t("smoothly-next-table-head",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-cell",null,"Breed"),t("smoothly-next-table-cell",null,"Coat"),t("smoothly-next-table-cell",null,"Price"))),e.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-next-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-next-table-foot",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",{span:3},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`}))))))}};const Qc={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Zc.style=Xc;const ed='.sc-smoothly-next-table-expandable-cell-h{display:contents}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;box-sizing:border-box;align-items:center;white-space:nowrap;position:relative}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell:hover::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{rotate:45deg}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell:hover{background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground));stroke:rgb(var(--smoothly-table-hover-foreground));fill:rgb(var(--smoothly-table-hover-foreground))}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell{box-shadow:1px 1px 1px -1px rgb(var(--smoothly-table-border)) inset, -3px -1px 1px -3px rgb(var(--smoothly-table-border)) inset}[open].sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));stroke:rgb(var(--smoothly-table-expanded-foreground));fill:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-next-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-next-table-expandable-cell{display:none}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-border));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const td=ed;const od=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableCellOpened=o(this,"smoothlyNextTableExpandableCellOpened",7);this.smoothlyNextTableExpandableCellRegister=o(this,"smoothlyNextTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyNextTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open;this.smoothlyNextTableExpandableCellOpened.emit()}render(){return t(s,{key:"3e728bd60780f10e9054a82279cd4135d1df148e",style:{"--smoothly-table-cell-span":this.span.toString(10)}},t("div",{key:"b6ac1ee5bc66fdd71cc551fe8d0736c5922a0126",onClick:()=>this.clickHandler(),class:"content"},t("slot",{key:"807304742ff26239f889d8b7dca20be7caddc9c9"})),t("div",{key:"bd6737058677233456c7bdcab641046db96bd64e",class:"detail"},t("slot",{key:"df06eb707ac3f17f34001f67324a2d7678a92fab",name:"detail"})))}};od.style=td;const sd='.sc-smoothly-next-table-expandable-row-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 0fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-expandable-row-h.sc-smoothly-next-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-next-table-expandable-row-h{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));grid-template-rows:auto 1fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border)), 0px 0px 1px rgb(var(--smoothly-table-border)) inset;grid-template-rows:0fr 1fr}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{grid-column:1/-1;cursor:default;position:relative;overflow:hidden;background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-border));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const ad=sd;const id=class{constructor(t){e(this,t);this.open=false}clickHandler(e){this.div&&e.composedPath().includes(this.div)||(this.open=!this.open)}render(){return t(s,{key:"19657325b762ecb9858ce933e7d4e5cb0829749f",onClick:e=>this.clickHandler(e)},t("slot",{key:"a12e24fed1a33361b95f911da3c220200bff337f"}),t("div",{key:"90586b47a3e18e40b754ff43e9b2442931fef8a4",ref:e=>this.div=e},t("slot",{key:"c965ac6f11f49416f27e987587f4e26847d11547",name:"detail"})))}};id.style=ad;const nd=".sc-smoothly-next-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}";const ld=nd;const rd=class{constructor(t){e(this,t)}render(){return t(s,{key:"59704cdef8b749f0e02c1e2c31037e7742c4c13d"},t("slot",{key:"ee391911b18dd9851ab5eda943f8410cdea9108b"}))}};rd.style=ld;const cd=".sc-smoothly-next-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:0;position:sticky;z-index:1;--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold}";const dd=cd;const hd=class{constructor(t){e(this,t)}render(){return t(s,{key:"18885e1acd94e34e6061cfd64a0b1e65d31d6f38"},t("slot",{key:"949e286b8f14aa0e055115ca66f628841d4dd618"}))}};hd.style=dd;const bd=".sc-smoothly-next-table-row-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;box-sizing:border-box;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const fd=bd;const yd=class{constructor(t){e(this,t);this.expandableCells=new Set}smoothlyNextTableExpandableCellRegisterHandler(e){e.stopPropagation();this.expandableCells.add(e.target)}smoothlyNextTableExpandableCellOpenedHandler(e){e.stopPropagation();for(const t of this.expandableCells)e.target!=t&&t.close()}render(){return t(s,{key:"ff16577591e3931a2b88a99d58e4361adf8014af"},t("slot",{key:"5175bcd85cfa33c48ad92c7ea72c6bbd16b645b9"}))}};yd.style=fd;const md=".sc-smoothly-next-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group{display:contents}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group>*.sc-smoothly-next-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2, auto);justify-content:space-between;padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-next-table-row-group-h:not([open])>div.sc-smoothly-next-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{content:'';display:flex;position:absolute;top:50%;translate:0 -50%;left:0.3em;height:0.4em;width:0.4em;border-bottom:1px solid rgb(var(--smoothly-default-contrast));border-right:1px solid rgb(var(--smoothly-default-contrast));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover>div.sc-smoothly-next-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const ud=md;const pd=class{constructor(t){e(this,t);this.align=false;this.open=false}clickHandler(){this.open=!this.open}render(){return t(s,{key:"e18472f490bebc979b164758e3c6bc873565ea97"},t("div",{key:"a35e8180466a1528dc87e2965456fe9c7108c3d1",onClick:()=>this.clickHandler()},t("div",{key:"803b693c46a1c523ee26ccb49aea2c11cfc0121c"},t("slot",{key:"01230185ba37445978764800bd9c6f51d0ed1431",name:"start"})),t("div",{key:"6c32c2f460a16557aecad30f80d2e1f279399066"},t("slot",{key:"efea02b22c9a5ea9c4ccb3f60f1fff5386dece41",name:"end"}))),t("div",{key:"02ed4eaac4ac31b93a4b981c9f0bbe0320640fd4"},t("slot",{key:"c964ac761682fb58b9a1cd4e17d949ce2bfb7711"})))}};pd.style=ud;const gd=".sc-smoothly-notification-h{display:block;position:relative;min-width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin:0 2rem 0 1rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{font-size:0.7em;position:absolute;right:0}";const kd=gd;const vd=class{constructor(t){e(this,t);this.remove=o(this,"remove",7);this.listener=e=>{if(e.state=="closed")this.remove.emit(e);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=undefined;this.tick={}}get properties(){let e;switch(this.notice.state){case"delayed":case"warning":e=["warning","warning-outline"];break;case"success":e=["success","checkmark-circle"];break;case"executing":e=["light","hourglass-outline"];break;case"failed":e=["danger","alert-circle"];break;default:e=["light",undefined];break}return e}onTrigger(e){if(e.detail.name=="close"){e.stopPropagation();this.notice.close()}}onUpdatedNotice(e,t){if(t)t.unlisten(this.listener);e.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return t(s,{key:"8153ff768436e198e3328110a36db1b65f7f344e",color:this.properties[0],fill:"solid"},this.closable&&t("smoothly-trigger",{key:"b6d4f169fdb2682c8eb283c3a5d8af22ddb6aa78",fill:"clear",name:"close"},t("smoothly-icon",{key:"8e1042ed81f728453201d837424a2eb1735e159c",name:"close-circle-outline"})),t("span",{key:"f8ba74b6b21744ba28258bb71de0f56f7d9b9444",class:this.icon?"icon":"clean"},this.icon&&t("smoothly-icon",{key:"5fb45ec4654054569b9350d939d70707cf12fbb7",name:this.properties[1]}),t("p",{key:"a62236628dfc7991a7d1f00b96ce72bc7716fcd5"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};vd.style=kd;const xd=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const wd=xd;const Sd=class{constructor(t){e(this,t);this.icon=false;this.notices=[]}onNotice(e){this.notices=[...this.notices,e.detail]}onRemove(e){this.notices=[...this.notices.filter((t=>t!=e.detail))]}render(){return[t("slot",{key:"dbaed218cb094a1760e1d5af15e4b117997a86fa"}),t("aside",{key:"b2a7a8f6b64bee297b0bbcaa3f882f04caa11380"},this.notices.map((e=>t("smoothly-notification",{notice:e,icon:this.icon}))))]}};Sd.style=wd;const Cd='.sc-smoothly-picker-h{box-sizing:border-box}[readonly].sc-smoothly-picker-h{color:rgba(var(--smoothly-input-foreground), 0.7);fill:rgba(var(--smoothly-input-foreground), 0.7);stroke:rgba(var(--smoothly-input-foreground), 0.7)}.sc-smoothly-picker-h[looks="border"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-picker-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-picker-h{border:transparent solid 1px}.sc-smoothly-picker-h[looks="line"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-picker-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-picker-h{border-bottom:transparent solid 1px}.sc-smoothly-picker-h[looks="grid"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-picker-h{border:rgb(var(--smoothly-input-border)) solid .5px}[looks="grid"][readonly].sc-smoothly-picker-h{border:transparent solid .5px}[looks="transparent"].sc-smoothly-picker-h{border:none}[looks="transparent"].sc-smoothly-picker-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-picker-h:not(:focus-within)>input.sc-smoothly-picker{background:transparent}[looks="transparent"].sc-smoothly-picker-h:focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-picker-h{display:flex;position:relative;width:max-content;padding:1em 0.7em 0.2em 0.8em;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-picker-h>smoothly-slot-elements.sc-smoothly-picker{white-space:nowrap}.sc-smoothly-picker-h>smoothly-slot-elements.selected.sc-smoothly-picker{position:relative;display:flex;align-items:center;gap:1rem;width:100%;overflow:hidden;text-overflow:ellipsis;margin-right:2px}.sc-smoothly-picker-h>smoothly-slot-elements.selected.sc-smoothly-picker::after{content:"";position:absolute;top:0;bottom:0;right:0;width:2ch}.sc-smoothly-picker-h:not([looks=transparent])>smoothly-slot-elements.selected.sc-smoothly-picker::after{background:linear-gradient(90deg, rgba(var(--smoothly-input-background), 0) 0%, rgba(var(--smoothly-input-background), 1) 100%)}.sc-smoothly-picker-h>smoothly-slot-elements.selected.sc-smoothly-picker>*.sc-smoothly-picker{display:none}.sc-smoothly-picker-h>span.label.sc-smoothly-picker{position:absolute;left:0.4rem;top:0.6rem;color:rgb(var(--smoothly-input-foreground));opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-picker-h>smoothly-slot-elements.selected.sc-smoothly-picker:not(:empty)+span.label.sc-smoothly-picker{top:0.4em;transform:scale(0.6)}';const zd=Cd;const Td=class{constructor(t){e(this,t);this.smoothlyPickerLoaded=o(this,"smoothlyPickerLoaded",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyChange=o(this,"smoothlyChange",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.valueReceivedOnLoad=false;this.initialValue=new Map;this.listener={};this.looks="plain";this.name=undefined;this.changed=false;this.open=false;this.mutable=false;this.multiple=false;this.readonly=false;this.validator=undefined;this.selected=new Map;this.display=undefined}componentWillLoad(){var e,t;this.smoothlyInputLooks.emit((e=>this.looks=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.smoothlyInputLoad.emit((()=>{}));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}selectedChanged(){const e=Array.from(this.selected.values(),(e=>e.value));this.changed=!this.areValuesEqual(this.selected,this.initialValue);this.smoothlyInput.emit({[this.name]:this.multiple?e:e.at(0)});this.smoothlyChange.emit({[this.name]:this.multiple?e:e.at(0)});this.display=Array.from(this.selected.values(),(e=>{const t=document.createElement("span");e.slotted.forEach((e=>t.appendChild(e.cloneNode(true))));return t}));!this.valueReceivedOnLoad&&(this.initialValue=new Map(this.selected))}componentDidLoad(){if(this.controls)this.smoothlyPickerLoaded.emit(this.controls)}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks)}}menuLoadedHandler(e){this.controls=e.detail}optionLoadedHandler(e){if(e.detail.selected)this.selected=this.multiple?new Map(this.selected.set(e.detail.value,e.detail).entries()):(new Map).set(e.detail.value,e.detail);!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}optionChangeHandler(e){if(this.readonly&&!this.valueReceivedOnLoad||!this.readonly)if(this.multiple)this.selected=e.detail.selected?new Map(this.selected.set(e.detail.value,e.detail).entries()):!this.selected.delete(e.detail.value)?this.selected:new Map(this.selected.entries());else this.selected=!e.detail.selected?new Map:(new Map).set(e.detail.value,e.detail)}clickHandler(e){this.open=!e.composedPath().includes(this.element)||this.readonly?false:!this.open}focusHandler(e){if(!e.composedPath().includes(this.element))this.open=false}async clear(){this.selected.forEach((e=>e.selected&&e.element.clickHandler()))}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){await this.reset();this.readonly=!e}async reset(){const e=Array.from(this.initialValue.values(),(e=>e.value));this.selected.forEach((t=>!e.includes(t.value)&&t.selected&&t.set.selected(false)));this.initialValue.forEach((e=>e.set.selected(true)))}async setInitialValue(){this.initialValue=new Map(this.selected);this.selectedChanged()}areValuesEqual(e,t){const o=Array.from(t.values(),(e=>e.value));const s=Array.from(e.values(),(e=>e.value));return s.length===o.length&&o.every((e=>s.includes(e)))}render(){return t(s,{key:"920d7e4628623449c9733685da1df7258b18561e",tabindex:0},t("smoothly-slot-elements",{key:"b21d6b31724884c2a96e4d3779799f13c2cc2326",class:"selected",nodes:this.display}),t("span",{key:"f8293e29c67da6c73347ff4e4bc8fdc1b870f383",class:"label"},t("slot",{key:"dc95ddeb38d10a2c8f03815dcf249e872fc44144",name:"label"})),this.looks=="border"&&t("button",{key:"61937f90280e44aee24c932e5d25e967d17050ee"},t("smoothly-icon",{key:"17d5d1b68f4797c22dc9bc81922886a80c42fd2a",size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),t("slot",{key:"8cc30ba2abba213ba7cb6fe4fc3bc01c3e9008d9",name:"child"}),t("smoothly-picker-menu",{key:"8ef1bfef8cecaeca341ce0c28a19d7629fa5d724",open:this.open,looks:this.looks,onClick:e=>e.stopPropagation(),multiple:this.multiple,mutable:this.mutable,readonly:this.readonly,validator:this.validator},t("slot",{key:"7307a3d8142b08c8564be721cf51197df906e6ca",name:"search",slot:"search"}),t("slot",{key:"b14c54d394423f01502359016b897d61979d1a58",name:"display",slot:"display"}),t("slot",{key:"27a516930e996f711b4489d6b966200f1cf5c81c"})))}get element(){return a(this)}static get watchers(){return{selected:["selectedChanged"]}}};Td.style=zd;const jd=".sc-smoothly-picker-demo-h{display:flex;flex-direction:column}.sc-smoothly-picker-demo-h smoothly-form.sc-smoothly-picker-demo{max-width:50rem}.sc-smoothly-picker-demo-h .counter.sc-smoothly-picker-demo{position:relative;width:3rem;height:3rem}.sc-smoothly-picker-demo-h .counter-button.sc-smoothly-picker-demo{position:absolute;top:0;left:0;padding:0;margin:0;height:3rem;width:3rem;background-color:inherit;border:none;display:flex;justify-content:center;align-items:center}.sc-smoothly-picker-demo-h .controlled.sc-smoothly-picker-demo smoothly-input.sc-smoothly-picker-demo:not([readonly]),.sc-smoothly-picker-demo-h .controlled.sc-smoothly-picker-demo smoothly-picker.sc-smoothly-picker-demo:not([readonly]){outline:1px solid rgb(var(--smoothly-success-color))}";const _d=jd;function Ld(e){return e.match(/^.+@.+/)?true:{result:false,notice:k.failed("That is not an email")}}const Ad=class{constructor(t){e(this,t);this.users={"giovani@rocket.com":"giovani doe","jessie@rocket.com":"jessie doe","james@rocket.com":"james doe"};this.counter=3;this.data={message:"hello world",emails:[{value:"jessie@rocket.com"},{value:"james@rocket.com"}],options:[{value:"giovani@rocket.com"},{value:"john@example.com"},{value:"jane@example.com"},{value:"jack@example.com"},{value:"jessica@example.com"},{value:"julia@example.com"},{value:"jayden@example.com"},{value:"jake@example.com"},{value:"jamie@example.com"},{value:"jasmine@example.com"}]};this.change=undefined}inputHandler(e){if(this.change){this.change=Object.assign(Object.assign({},this.change),e.detail);console.log("demo input",this.change)}}submitHandler(e){console.log("submitted",e.detail)}clickHandler(){var e,t;if(!this.change)(e=this.controls)===null||e===void 0?void 0:e.remember();else(t=this.controls)===null||t===void 0?void 0:t.restore();this.change=this.change?undefined:Object.assign(Object.assign({},this.data),{emails:[...this.data.emails]})}loadedHandler(e){this.controls=e.detail}render(){var e,o;return t(s,{key:"d2d8584bfd3a54a0e67c44764fb2178bd761efed"},t("div",{key:"0ab0645d229a58fc3b83695fcf2744970c708e0c"},t("smoothly-button",{key:"7d05e946bff0cd93a0ffce19f885aed4e7089f02",onClick:()=>this.counter+=1},"Add one"),t("smoothly-button",{key:"d3419c58867442886ba874ad3f7b7020b64aecf2",onClick:()=>this.counter-=1},"Remove one"),t("smoothly-picker",{class:"counter",key:Array.from({length:this.counter}).toString(),name:"counter",multiple:true,mutable:true},Array.from({length:this.counter}).map(((e,o)=>t("smoothly-picker-option",{value:o,selected:o<this.counter-1},o))),t("span",{key:"15168d0626abb5de1c98a73296d2f85197f64d32",slot:"search"},"Search"),t("button",{key:"e9231067927533eb82c1d3dcff4849bb3e6e4207",slot:"child",class:"counter-button"},t("smoothly-icon",{key:"27b58b47dc325aca5da2b4e974bc7d29bf219726",name:"add-outline"})))),t("h5",{key:"0f4035459cc413bf1d09e09f249896bc4955a030"},"Controlled input"),t("smoothly-button",{key:"7f9ac3ea09d4a77d5422fe3a6b74374c38e9a851",color:"secondary",onClick:()=>this.clickHandler()},!this.change?"start edit":"end edit"),t("smoothly-form",{key:"f1df5ae402b32aae671c73433e9635e4c2bacfb2",class:"controlled",looks:"line",onSmoothlyFormInput:e=>this.inputHandler(e)},t("smoothly-input",{key:"bca81b4181cee577d64fc05d7a449beabf039229",readonly:!this.change,name:"message",value:this.data.message},"Message"),t("smoothly-picker",{key:"45d0e3ec8f4700c9a235579015e628af95e97f72",name:"emails",mutable:true,multiple:true,readonly:!this.change,validator:Ld,onSmoothlyPickerLoaded:e=>this.loadedHandler(e)},t("span",{key:"1b110d0928bb343014771c30bbeb8e11223f3403",slot:"label"},"Emails"),t("span",{key:"638a1bf9bc29921b227147a69bae91dbf882582b",slot:"search"},"Search"),t("smoothly-icon",{key:"e9c3012a5b99d671c6ade63d8aedf5e9898a4112",size:"tiny",slot:"display",name:"person-add-outline"}),((o=(e=this.change)===null||e===void 0?void 0:e.emails)!==null&&o!==void 0?o:this.data.emails).map((e=>{var o;return t("smoothly-picker-option",{key:e.value,value:e,selected:true,search:[(o=this.users[e.value])!==null&&o!==void 0?o:[]].flat()},t("span",null,this.users[e.value]),t("span",{slot:"label"},e.value),t("smoothly-icon",{size:"tiny",slot:"display",name:"person-outline"}))})),this.data.options.map((e=>{var o;return t("smoothly-picker-option",{key:e.value,value:e,search:[(o=this.users[e.value])!==null&&o!==void 0?o:[]].flat()},t("span",null,this.users[e.value]),t("span",{slot:"label"},e.value),t("smoothly-icon",{size:"tiny",slot:"display",name:"person-outline"}))}))),t("smoothly-input-clear",{key:"aaa240fa3e58bf1c9bb958fe96004b4684998c34",slot:"submit",type:"form",color:"danger",fill:"solid"},"Clear"),t("smoothly-button",{key:"a4545350fc24226508996357e4573e87368f09b3",slot:"submit",color:"secondary",onClick:()=>{var e;return(e=this.controls)===null||e===void 0?void 0:e.clear()}},"Removed added by mutation"),t("smoothly-submit",{key:"3c91b9112480ab67bb65eccd383b0788d15d1458",size:"icon",slot:"submit"},t("smoothly-icon",{key:"0ad5893d4302efeba277c806b7f148f75580e696",name:"checkmark-circle"}))),t("h5",{key:"7c96b9a75c8295bab6a5a7b21dd8f2eb62ad4d09"},"uncontrolled inputs"),t("smoothly-form",{key:"0d4fb3f5406791b9eae0e39942612dfa2015e70e",onSmoothlyFormSubmit:e=>console.log("submitted",e.detail),looks:"line"},t("smoothly-input",{key:"e64809c750644e9e6f465d3f78ee336f6e002a37",name:"purpose",type:"text"},"Purpose"),t("smoothly-picker",{key:"abceb6c64a111f5df80630fe3448f10026024c2a",multiple:true,mutable:true,name:"emails",validator:Ld},t("span",{key:"b7f31c98db28893ec8798f60e0beb756fbf212e7",slot:"label"},"Emails"),t("span",{key:"201464daedd052163861d660700b9b70aa50de5f",slot:"search"},"Search"),t("smoothly-picker-option",{key:"d1dc5e081101ac21621638ba7b38e7ddf47fae2d",value:"james@rocket.com"},"james@rocket.com"),t("smoothly-picker-option",{key:"ed7f05daab7157ab13db40f6625c4ed37843cf63",selected:true,value:"jessie@rocket.com"},"jessie@rocket.com"),t("smoothly-picker-option",{key:"8e2793c9d2d53657181b78f4a85da37bf277c852",value:"giovanni@rocket.com"},"giovanni@rocket.com")),t("smoothly-submit",{key:"c880a9f5b3688c64732f223e8721135b57482df0",slot:"submit"},"Submit"),t("smoothly-input-clear",{key:"0deb56d1a09dba398574ba4c00bee950c71c6c5c",type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),t("smoothly-picker",{key:"a0885814e43b16b836c4f15168c6a58ad0eaa559",name:"shape"},t("span",{key:"de47263a9e99c620f4e15f7830bd1df4aa490a9d",slot:"label"},"Shape"),t("span",{key:"b82781b1265b2c1c16eda15e7d7380dfeb0fac50",slot:"search"},"Search"),t("smoothly-picker-option",{key:"b71fe951085be3b440af8edbc1fad65771cab636",value:"circle"},t("span",{key:"e100724913cd2361d9498da8f17f9f3f43daee81",slot:"label"},"Circle"),t("smoothly-icon",{key:"10c50cf663499b9dec6c9f00fb0fafcbeaa22ed5",size:"tiny",name:"ellipse-outline"})),t("smoothly-picker-option",{key:"ea51daddbe5a411461e4ef1c8acef7be9f683222",value:"cube"},t("span",{key:"4e6a49f2d491b3edbc480d2cf7e657e44c2d5332",slot:"label"},"Cube"),t("smoothly-icon",{key:"5de46fa7c767a55f285df1aa8b39b96d42fed648",size:"tiny",name:"cube-outline"})),t("smoothly-picker-option",{key:"ae1dfbf4b626256b7d42a395c98b30636df87d1d",value:"square",selected:true},t("span",{key:"03bc6fda838c8aa8115d029833418430ae23ad7f",slot:"label"},"Square"),t("smoothly-icon",{key:"a72fc29432be78004bedcb145e9e8088179ce264",size:"tiny",name:"square-outline"}))),t("smoothly-picker",{key:"5465399a29c3603f8909ddc9acd34d69ca642217",multiple:true,readonly:true,name:"animals"},t("span",{key:"cc4f60946fdc4054a9390ae265bf886835d60707",slot:"label"},"Animals"),t("span",{key:"cfc10ac77ae70bcaaf2f1b65857d705bcca45aa2",slot:"search"},"Search"),t("smoothly-picker-option",{key:"6ac9dd133fc8babeaff6ae92fb315a48db247059",selected:true,value:"cat"},"Cat"),t("smoothly-picker-option",{key:"166e01b768b1135ae46b70f60182c7ed0634bc63",value:"dog"},"Dog"),t("smoothly-picker-option",{key:"5f3037c674b6508762158dca80343d8ac5e8f0b4",value:"fish"},"Fish"))),t("smoothly-picker",{key:"ea15431ecffef169beb16d79fe3b6dcbcb9257fe",looks:"border",name:"icon",multiple:true},t("span",{key:"688f3d96b74a9547b898d8a56e3ddcd52bbef43d",slot:"label"},"Icon"),t("span",{key:"cb57fa93eaad849dc91a5fee47ed9f6e2386a259",slot:"search"},"Search"),t("smoothly-picker-option",{key:"80a88c427d2a7b9246ce99756ba4cb6b38e1cc2a",value:"circle",required:true},t("span",{key:"072fb19aaa8bc10deb22cc07afa40662cb950737",slot:"label"},"Circle"),t("smoothly-icon",{key:"fea18468cb6ce7ca8ef4af5ca86afd9056bea73b",size:"tiny",name:"ellipse-outline"})),t("smoothly-picker-option",{key:"9c2b4aec785d7f05d41e8a560ad97349571e145c",value:"cube"},t("span",{key:"78b484c9cb6f0cd66fd4c79f9c1a883ac42ace30",slot:"label"},"Cube"),t("smoothly-icon",{key:"645b0d13219f249a79a8d76f92cac37a3cc1504f",size:"tiny",name:"cube-outline"})),t("smoothly-picker-option",{key:"dda9ead327216b0f4b9b5dc5660a62c2d694349e",value:"square",selected:true},t("span",{key:"fa9df9eb893501c01c1d75dcfb3325478c03c2df",slot:"label"},"Square"),t("smoothly-icon",{key:"f3a1bd39b8fe3ac70634c7abc50dfe7ae57a1c5e",size:"tiny",name:"square-outline"})),t("smoothly-picker-option",{key:"e78e9460b715a46d73fccac3832a73901c3b9450",value:"airplane"},t("span",{key:"074270d5ba70ead7bccfc7aae8e7232d0bd11369",slot:"label"},"Airplane"),t("smoothly-icon",{key:"71374eabbb933a5e2edd42f70db91a781a411a30",size:"tiny",name:"airplane-outline"})),t("smoothly-picker-option",{key:"198274c16d3184c99b23b127cf47f2eec48bba2e",value:"alarm"},t("span",{key:"85fced878aa1637fb864ed31b9129596812c864d",slot:"label"},"Alarm"),t("smoothly-icon",{key:"7842eb37f47be63b33daac45dd6c01c27fef1e40",size:"tiny",name:"alarm-outline"})),t("smoothly-picker-option",{key:"c5f302846b261be341dbb8c05e1a2e335d661b9b",value:"archive"},t("span",{key:"4e22b642466ae5a7acf95710c6e2febc18dd9c59",slot:"label"},"Archive"),t("smoothly-icon",{key:"46bdc3325716e231170cecd6027d5d226c31a0fd",size:"tiny",name:"archive-outline"})),t("smoothly-picker-option",{key:"5a42bad4f5241cf518e63e099c8391b212414363",value:"bag"},t("span",{key:"babe6ce59fd64494b574b54e35dd06e39a30a536",slot:"label"},"Bag"),t("smoothly-icon",{key:"a06298b270c0c2f115c04b4aa8da23d026f5e075",size:"tiny",name:"bag-outline"})),t("smoothly-picker-option",{key:"8c5b0b668bac751457ce74dfb635e42567dac4f9",value:"cafe"},t("span",{key:"1b3c075b25a98eec214fa27c8f04950be6f9a963",slot:"label"},"Cafe"),t("smoothly-icon",{key:"af62eacdb2cd9d9e88fe0cd704067f0826a92d62",size:"tiny",name:"cafe-outline"})),t("smoothly-picker-option",{key:"58dfa56f30b479c74402b33746697e45efb4bbe4",value:"disc"},t("span",{key:"24457768947e634edfadfdbfe4068e9ef9062a68",slot:"label"},"Disc"),t("smoothly-icon",{key:"2ae3e83d599a679acc62ca83a904a947530edc34",size:"tiny",name:"disc-outline"})),t("smoothly-picker-option",{key:"af039084b6d23017aaa1390f4db527f101f8d88e",value:"earth"},t("span",{key:"d5490ac1042b2f6dbaf2fada7d262153bd9f36a2",slot:"label"},"Earth"),t("smoothly-icon",{key:"6332b2d6704098c1090651dc41711093fab9ca2d",size:"tiny",name:"earth-outline"})),t("smoothly-picker-option",{key:"5af7330f81f1583364470b37f521d157b06e48d9",value:"fast-food"},t("span",{key:"dfe8ab90a37eb36adca0dc6e17a5f7b735da534b",slot:"label"},"Fast food"),t("smoothly-icon",{key:"51d541dde16d70bd3ec1d9d8bf927a9556b2fcbd",size:"tiny",name:"fast-food-outline"}))))}};Ad.style=_d;const Id=".sc-smoothly-picker-menu-h{display:flex;flex-direction:column;gap:0.5rem;position:absolute;z-index:4;left:-1px;right:-1px;min-width:max-content;background-color:rgb(var(--smoothly-input-background));padding:0.5rem;border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-picker-menu-h:not(.flip){top:100%}.flip.sc-smoothly-picker-menu-h{bottom:100%}.sc-smoothly-picker-menu-h:not([open]){display:none}.sc-smoothly-picker-menu-h>div.list.sc-smoothly-picker-menu{display:grid;grid-template-columns:auto 1fr auto;align-items:center;row-gap:0.5ch;overflow-y:auto;max-height:calc(1.75rem * 10 + 0.5ch * 9);padding-right:0.5rem;padding-bottom:0.25rem}.sc-smoothly-picker-menu-h>.hide.sc-smoothly-picker-menu{display:none}.sc-smoothly-picker-menu-h>div.controls.sc-smoothly-picker-menu{display:grid;grid-template-columns:1fr auto;gap:0.5rem;transition:grid-template-columns 200ms linear}.sc-smoothly-picker-menu-h>div.controls.sc-smoothly-picker-menu>button.sc-smoothly-picker-menu:disabled{opacity:0.3}";const Ed=Id;const Od=T().Observers;function*Dd(...e){for(const t of e)yield*t}function Md(e,t){e===null||e===void 0?void 0:e.set.selected(e.selected=t.selected);e===null||e===void 0?void 0:e.set.readonly(e.readonly=t.readonly);e===null||e===void 0?void 0:e.set.visible(e.visible=t.visible);e===null||e===void 0?void 0:e.set.value(e.value=t.value);e===null||e===void 0?void 0:e.set.search(e.search=t.search);return e}function Rd(e,t){e===null||e===void 0?void 0:e.addEventListener("smoothlyPickerOptionLoad",(e=>Md(e.detail,t)))}const $d=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.smoothlyPickerMenuLoaded=o(this,"smoothlyPickerMenuLoaded",7);this.looks=undefined;this.open=false;this.multiple=false;this.mutable=false;this.readonly=false;this.validator=undefined;this.backend=new Map;this.options=new Map;this.created=new Map;this.search="";this.valid=false;this.display=undefined;this.flip=false;this.flipChecked=false}componentWillLoad(){if(!Od.has(this.element)){const e=.4;Od.set(this.element,new IntersectionObserver((t=>{var o,s;return((s=(o=t.find((e=>e.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0)<e&&!this.flipChecked&&(this.flip=!this.flip,this.flipChecked=true)}),{threshold:e}))}}componentDidLoad(){this.smoothlyPickerMenuLoaded.emit({remember:()=>{this.memory={backend:new Map(Array.from(this.backend.entries(),(([e,t])=>[e,Object.assign({},t)]))),options:new Map(Array.from(this.options.entries(),(([e,t])=>[e,Object.assign({},t)])))}},restore:()=>{if(this.memory){for(const e of this.options.values()){const t=this.memory.options.get(e.value);if(t!=undefined)Md(e,t);else if(this.created.get(e.value))e.set.selected(e.selected=false)}for(const e of this.backend.values()){const t=this.memory.backend.get(e.value);if(t!=undefined)Md(e,t);else if(this.created.get(e.value))e.set.selected(e.selected=false)}}},clear:()=>{const e=Array.from(this.backend.entries());e.filter((([e])=>this.created.has(e))).forEach((([,e])=>e.set.selected(false)));this.backend=new Map(e.filter((([e])=>!this.created.has(e))));this.options=new Map(Array.from(this.options.entries()).filter((([e])=>!this.created.has(e))));this.created=new Map}})}disconnectedCallback(){var e;if(!this.element.parentElement){(e=Od.get(this.element))===null||e===void 0?void 0:e.disconnect();Od.remove(this.element)}}openChange(){const e=Od.get(this.element);if(this.open)e===null||e===void 0?void 0:e.observe(this.element);else e===null||e===void 0?void 0:e.unobserve(this.element)}readonlyChanged(){for(const e of Dd(this.options.values(),this.backend.values()))e.set.readonly(this.readonly)}scrollHandler(){this.flipChecked=false}optionLoadHandler(e){if(!this.listElement||!e.composedPath().includes(this.listElement)){e.stopPropagation();e.detail.set.readonly(this.readonly);const t=this.options.get(e.detail.value);if(t)e.detail.set.selected(t.element.selected)}}optionLoadedHandler(e){var t;if(!this.listElement||!e.composedPath().includes(this.listElement)){e.stopPropagation();const o=Md(this.backend.get(e.detail.value),e.detail);this.backend=new Map(this.backend.set(e.detail.value,Object.assign(Object.assign({},e.detail),{clone:(t=o===null||o===void 0?void 0:o.clone)!==null&&t!==void 0?t:e.detail.element.cloneNode(true)})).entries())}else this.options.set(e.detail.value,e.detail)}optionChangeHandler(e){var t;if(!this.listElement||!e.composedPath().includes(this.listElement)){e.stopPropagation();(t=this.options.get(e.detail.value))===null||t===void 0?void 0:t.set.selected(e.detail.selected)}else{const t=this.backend.get(e.detail.value);if(t===null||t===void 0?void 0:t.element.parentElement)t===null||t===void 0?void 0:t.set.selected(e.detail.selected)}if(!this.readonly&&!this.multiple&&e.detail.selected)for(const t of Dd(this.options.values(),this.backend.values()))if(t.value!=e.detail.value)t.set.selected(false)}inputHandler(e){e.stopPropagation();this.search=e.detail.search;if(!this.search){this.valid=false;for(const e of Dd(this.options.values(),this.backend.values()))e.set.visible(true)}else{this.valid=!Array.from(this.options.values()).find((e=>e.value==this.search));const e=this.search.toLocaleLowerCase();for(const t of Dd(this.options.values(),this.backend.values())){const o=t.value.toString().toLocaleLowerCase().includes(e);const s=t.search.some((t=>t.includes(e)));const a=o||s;t.set.visible(a)}}}addHandler(){var e;const t=!this.validator?true:this.validator(this.search);if(this.mutable){if(typeof t=="object"?t.result:t){if(!this.multiple)for(const e of Dd(this.options.values(),this.backend.values()))e.set.selected(false);this.created=new Map(this.created.set(this.search,{value:this.search,selected:true}).entries());this.search="";(e=this.searchElement)===null||e===void 0?void 0:e.focus();this.valid=false}if(typeof t=="object")this.notice.emit(t.notice)}}keyDownHandler(e){if(e.key=="Enter"){e.preventDefault();this.addHandler()}}emptyDisplayHandler(e){e.stopPropagation();e.detail.set.nodes(this.display)}render(){return t(s,{key:"e75febfa24e9af1a317ff245825554203e41d7d4",class:{valid:this.valid,flip:this.flip}},t("smoothly-slotted-elements",{key:"87354da29797a8c063f4b52f3a958ad1cf17bd0d",class:"hide",onSmoothlySlottedChange:e=>this.display=e.detail},t("slot",{key:"edf0ca6a5ac9794be73fc748b01b2a14174ec130",name:"display"})),t("div",{key:"0a4bb6d98da5c8466f6120eaf9db5857e22d7000",class:"hide"},t("slot",{key:"c713e2814da470597ebb2e88789f322d6eafacb7"}),Array.from(this.created.values(),(e=>t("smoothly-picker-option",{key:e.value,value:e.value,selected:e.selected},e.value,t("smoothly-slot-elements",{slot:"display",nodes:this.display}))))),t("div",{key:"3c58695459ec79f2be3829b2ac4084f4ff51d732",class:"controls"},t("smoothly-input",{key:"54ec6670cb6cbf4859f1a66ea8a97b698072c79d",ref:e=>this.searchElement=e,name:"search",value:this.search,looks:this.looks,onKeyDown:e=>this.keyDownHandler(e),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInput:e=>this.inputHandler(e),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation()},t("slot",{key:"eb14d7d57ebd942178d4a98feb39bd97c21183af",name:"search"})),this.mutable&&!this.readonly?t("button",{onClick:()=>this.addHandler(),disabled:!this.valid,type:"button"},t("smoothly-icon",{name:"add-outline"})):null),t("div",{key:"9c2594dff261cda351793965e6557742bf018c0b",class:"list",ref:e=>this.listElement=e},Array.from(this.backend.values()).sort(((e,t)=>e.position-t.position)).map((e=>t("smoothly-slot-elements",{ref:t=>Rd(t,e),clone:false,nodes:e.clone})))))}get element(){return a(this)}static get watchers(){return{open:["openChange"],readonly:["readonlyChanged"]}}};$d.style=Ed;const Pd=":host{display:contents}:host(:not([visible])){display:none}:host>*{cursor:pointer;padding:0.25ch 0.5rem}:host>div.display{padding-left:0}:host>button{color:unset;background-color:inherit;border:none;padding-right:0}:host>div.content{display:flex;column-gap:1rem;justify-content:space-between}:host([required])>*{cursor:default}:host([required])>button{opacity:0.65}";const Hd=Pd;var Nd=undefined&&undefined.__rest||function(e,t){var o={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0)o[s]=e[s];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++){if(t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a]))o[s[a]]=e[s[a]]}return o};const Fd=class{constructor(t){e(this,t);this.smoothlyPickerOptionLoad=o(this,"smoothlyPickerOptionLoad",7);this.smoothlyPickerOptionLoaded=o(this,"smoothlyPickerOptionLoaded",7);this.smoothlyPickerOptionChange=o(this,"smoothlyPickerOptionChange",7);this.selected=false;this.visible=true;this.value=undefined;this.search=[];this.position=-1;this.required=false;this.readonly=false;this.slotted=[]}get option(){var e;return{element:this.element,selected:this.selected,readonly:this.readonly,required:this.required,visible:this.visible,search:this.search,value:this.value,slotted:this.slotted,position:this.position>=0||!((e=this.element.parentElement)===null||e===void 0?void 0:e.parentElement)?this.position:Array.from(this.element.parentElement.parentElement.children).indexOf(this.element.parentElement),set:{selected:e=>this.selected=e,readonly:e=>this.readonly=e,visible:e=>this.visible=e,search:e=>this.search=e,value:e=>this.value=e}}}emitChange(){if(this.element.parentElement)this.smoothlyPickerOptionChange.emit(this.option)}componentWillLoad(){if(this.required)this.selected=true;this.smoothlyPickerOptionLoad.emit((e=>{var t=Nd(e,["slotted"]);return t})(this.option))}componentDidLoad(){this.smoothlyPickerOptionLoaded.emit(this.option)}slottedChangeHandler(e){e.stopPropagation();this.slotted=e.detail}async clickHandler(){if(!this.readonly&&!this.required)this.selected=!this.selected}render(){return t(s,{key:"56b66d0946b4368fb0d927fb9ae0087e8fc88d30",class:{visible:this.visible},onClick:()=>this.clickHandler()},t("div",{key:"821cbff8b0b2683666368fd51bb7eacd6c9659a3",part:"display",class:"display"},t("slot",{key:"041f8dccfbf1ae0246c9065f98a8e89f6a0b67c2",name:"display"})),t("div",{key:"695389817e24cb48623e7313b0b57dc73b9a92a3",part:"content",class:"content"},t("smoothly-slotted-elements",{key:"a0512cfd5d8d8427966d6068ea8b30eec582e5a0",onSmoothlySlottedChange:e=>this.slottedChangeHandler(e),clone:true},t("slot",{key:"78aa651822fcc198fbc1b5fa388ca31d29bad009"})),t("slot",{key:"b2ba060bc203b5dbfe0b6e0a1784491ce1fda768",name:"label"})),t("button",{key:"36fcbcad5078f32ca1b20ee4e3dd4be8741a0b9d",type:"button"},t("smoothly-icon",{key:"de1e5614cdd8deb2e52ea5f0502b56cef14f8090",name:this.selected?"checkbox-outline":"square-outline"})))}get element(){return a(this)}static get watchers(){return{position:["emitChange"],selected:["emitChange"],slotted:["emitChange"]}}};Fd.style=Hd;const Ud=".sc-smoothly-slot-elements-h{display:contents}";const Wd=Ud;const Yd=class{constructor(t){e(this,t);this.smoothlySlotEmpty=o(this,"smoothlySlotEmpty",7);this.clone=true;this.nodes=undefined}componentWillLoad(){if(!this.nodes)this.smoothlySlotEmpty.emit({set:{nodes:e=>this.nodes=e}})}componentDidLoad(){this.element.innerHTML="";if(this.nodes)if(Array.isArray(this.nodes))this.nodes.forEach((e=>this.element.appendChild(this.clone?e.cloneNode(true):e)));else this.element.appendChild(this.clone?this.nodes.cloneNode(true):this.nodes)}render(){return t(s,{key:"a2be9e7994945fbe0348871ebba036a2c42c915b"},t("slot",{key:"c6a39907d1c6fe45a8f21ea1f114c8844e8ca450"}))}get element(){return a(this)}static get watchers(){return{nodes:["componentDidLoad"]}}};Yd.style=Wd;const Bd=".sc-smoothly-slotted-elements-h{display:contents}";const qd=Bd;const Gd=class{constructor(t){e(this,t);this.smoothlySlottedChange=o(this,"smoothlySlottedChange",7);this.clone=true}componentDidRender(){const e=Array.from(this.element.childNodes,(e=>{let t;if(e instanceof HTMLSlotElement){const o=e.assignedNodes();t=o.length?o.map((e=>this.clone?e.cloneNode(true):e)):this.clone?e.cloneNode(true):e}else t=e;return t})).flat();this.smoothlySlottedChange.emit(Array.from(e,(e=>this.clone?e.cloneNode(true):e)))}render(){return t(s,{key:"869dd5c36848fdc8747547b03667a0e1ae8f493e"},t("slot",{key:"e5b78923d5ca95ad6a0872438073088700859455"}))}get element(){return a(this)}};Gd.style=qd;const Kd="[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}";const Vd=Kd;const Jd=class{constructor(t){e(this,t);this.size="large";this.overlay=undefined}render(){const e=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return t(s,{key:"c1ac57abc95e3c6c162756d054e8c4fb1e66e423",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},t("svg",{key:"a73db312467fd70dd446cd8d8957cf1edb3c9ac2",class:"spinner",viewBox:`0 0 ${60+e} ${60+e}`,xmlns:"http://www.w3.org/2000/svg"},t("circle",{key:"2e4d006dbe6aaea68dd493e1e16b0afece224bd0",class:"path",fill:"none","stroke-width":e,"stroke-linecap":"round",cx:`${30+e/2}`,cy:`${30+e/2}`,r:"30"})))}};Jd.style=Vd;const Xd='[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;cursor:pointer;border:none;outline:none;position:relative}[type=link].sc-smoothly-submit-h{display:inline;border:none}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h>a.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-submit-h>button.sc-smoothly-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[shape=rounded].sc-smoothly-submit-h>button.sc-smoothly-submit,[shape=rounded].sc-smoothly-submit-h{border-radius:2rem}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-submit-h,[shape=rounded].sc-smoothly-submit-h>button.sc-smoothly-submit::before{border-radius:2rem}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border:1px solid rgb(var(--smoothly-button-foreground))}.sc-smoothly-submit-h:not([fill=clear]):hover>button.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-submit:focus-visible,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{border:solid 1px rgb(var(--smoothly-button-focus-border))}[fill=outline].sc-smoothly-submit-h:hover>button.sc-smoothly-submit::before,[fill=outline].sc-smoothly-submit-h:focus-within>button.sc-smoothly-submit::before,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px}.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:active,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline]):hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline]):focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline]):active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-submit-h>button.sc-smoothly-submit,.sc-smoothly-submit-h.sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h .sc-smoothly-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}[hidden].sc-smoothly-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}';const Zd=Xd;const Qd=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(tc.is(e)){this.parent=e}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit()}render(){return t(Pe,{key:"2ee55af412ada2f4c7d2a7fec75e3984569700ae",disabled:this.disabled,type:this.type},t("slot",{key:"7a00bc708b67222e0f29cef098f5cba582f0d932"}))}};Qd.style=Zd;const eh=".sc-smoothly-summary-h{display:grid;grid-template-columns:auto 1fr;column-gap:0.3rem}.sc-smoothly-summary-h>details.sc-smoothly-summary{display:contents}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{display:grid;grid-template-columns:subgrid;grid-column:1/-1;list-style:none;align-items:center}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-summary-h:hover details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{opacity:1}.sc-smoothly-summary-h>details[open].sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transform:rotate(90deg)}.sc-smoothly-summary-h>details.sc-smoothly-summary-s>[slot=content]{grid-column:2}@media screen and (min-width: 900px){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover{cursor:pointer}}";const th=eh;const oh=class{constructor(t){e(this,t);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}toggleHandler(e){if(e.target instanceof HTMLDetailsElement){this.open=e.target.open;this.smoothlySummaryOpen.emit(this.open)}}render(){return t("details",{key:"e4fb548af7b162712d6c97d68a34a69c8fda5965",onToggle:e=>this.toggleHandler(e),open:this.open},t("summary",{key:"2671ce09e44e2d70d04fc456ba8f3748a48646c6"},t("smoothly-icon",{key:"75ad205c685614cee0404fd6513aa5a5bd91b75c",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),t("slot",{key:"c7d8b72baaf5a215eb620eb8154ad330e6c8534b",name:"summary"})),t("slot",{key:"cfac2970eb567584729d06f3122a7ca312dae53c",name:"content"}))}};oh.style=th;const sh="[open].sc-smoothly-tab-h{border-bottom:3px solid rgb(var(--smoothly-primary-color));box-sizing:border-box;margin-bottom:-3px}.sc-smoothly-tab-h>label.sc-smoothly-tab{display:block;padding:.5rem;background-color:transparent;width:auto}.sc-smoothly-tab-h>label.sc-smoothly-tab:hover{cursor:pointer}";const ah=sh;const ih=class{constructor(t){e(this,t);this.expansionOpen=o(this,"expansionOpen",7);this.label=undefined;this.open=undefined}openHandler(){if(this.expansionElement&&this.open){this.expansionOpen.emit(this.expansionElement)}}onClick(e){e.stopPropagation();this.open=true}componentDidLoad(){this.openHandler()}render(){return t(s,{key:"5e69759ffd21fdc5ec3b3a7b24ae385bbd58ded1"},t("label",{key:"d892db50835ecf6c063a97f4855a6bcd06843b50"},this.label),t("div",{key:"d9072ee88ca750d2458f080c3be37ff1741257d6",ref:e=>this.expansionElement=e,hidden:!this.open},t("slot",{key:"3cc02d873fe2ada326a29e706a89226c81c8bb44"})))}static get watchers(){return{open:["openHandler"]}}};ih.style=ah;const nh=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const lh=nh;const rh=class{constructor(t){e(this,t);this.smoothlyNestedTable=o(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=o(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=o(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((e=>this.owner=e))}handleExpandableLoaded(e){e.stopPropagation();e.target&&this.expandable.set(e.target,e.detail)}handleExpandableState(e){e.stopPropagation();e.target&&(e.detail?this.expanded.add(e.target):this.expanded.delete(e.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(e){var t;this.open=!!this.expanded.size;e.target!=this.element&&(e.stopPropagation(),e.detail.owner&&((t=this.expandable.get(e.detail.owner))===null||t===void 0?void 0:t.allowSpotlight(e.detail.allowSpotlight)))}handleNestedTable(e){e.target!=this.element&&(e.stopPropagation(),e.detail())}handleEvents(e){e.stopPropagation()}render(){return[t("slot",{key:"6c77704025be60171fecfc1acfd628c6475daadf"})]}get element(){return a(this)}};rh.style=lh;const ch=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem .5rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div>.sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const dh=ch;const hh=class{constructor(t){e(this,t)}render(){return t(s,{key:"c2d52ed632722eed2a62ad7a8a1579532d535ee9"},t("div",{key:"db90c93940c91d063cbcf2e26344aee69e10f623"},t("div",{key:"3614684decfb33d24f2573967e7c35f9558b2e4a"},t("slot",{key:"812b5c6e8488a3a782719a5139268010cbad9319"})),t("smoothly-icon",{key:"43105a8225cf601cb94f091c1b25598b83300492",name:"caret-forward-outline",size:"tiny"})))}};hh.style=dh;const bh=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:2rem;margin-right:2rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";const fh=bh;const yh=class{constructor(t){e(this,t)}render(){return t(s,{key:"0199c6089bd104f53cdc4ea0447bbe1215349fe4"},t("h4",{key:"c173d7ad4f3eae433c010ee08ea218cf1b738ee3"},"Demo table 1: Filtered & Checked Table")," ",t("smoothly-lazy",{key:"f8c53993bbd36d33ae5e673e46ebbfa5918a6fcb",content:t("smoothly-table-demo-filtered",null)}),t("h4",{key:"c028d36aa8dbfa235bb82aba6562975934ecbee6"},"Demo table 2")," ",t("smoothly-table-testing",{key:"b25ff2ca980fb529c0bc7824c98ab70eb53e2e32"})," ",t("h4",{key:"40b4d6220ddb1b98f549d3602f05a5111ca93e97"},"Demo table 3"),t("smoothly-table",{key:"247231fa4b3750fade381fa76bb17f098db12d8a"},t("smoothly-table-row",{key:"dd84c9a60d8da1f1260ee27474f1e08dba3f8919"},t("smoothly-table-header",{key:"aaa16d5a99e7618d33a92f2efdd80e2f19bf2017"},"Header A"),t("smoothly-table-header",{key:"fe96175e69e505e8d66332fb4a9dc2bc25fd48e9"},"Header B"),t("smoothly-table-header",{key:"bfadb7f18d71666b3ad6d85ff26154a62165615e"},"Header C"),t("smoothly-table-header",{key:"e0145deba179f457d1602e5929e433cf099ef4e9"},"Header D")),t("smoothly-table-row",{key:"c82d396f0a96d9525aeb7bacdfa5d367d936c4bd"},t("smoothly-table-expandable-cell",{key:"06fa888cae6e45cdce8024ff5a94972211eb66f8"},"normal row (exp.cell)",t("div",{key:"b0c210a114c4a8dccba2f8d1a9658ddbefe42294",slot:"detail"},"expandable cell 1 content")),t("smoothly-table-expandable-cell",{key:"bb57efc1cf9df51541515e858234fba46996e504"},"expandable cell",t("div",{key:"f70ff63a0076e5517c414a3846533e72b0fdf39d",slot:"detail"},"expandable cell 2 content")),t("smoothly-table-expandable-cell",{key:"65dac4f45a8369825c9117bdc234b30ef013cdb2"},"expandable cell",t("div",{key:"8e0f03ce0dfaf125ea272a4ecaa18fe5a2306c73",slot:"detail"},"expandable cell 3 content")),t("smoothly-table-expandable-cell",{key:"cf77cd16859b67b372327427d2c37278efc1312f"},"expandable cell",t("div",{key:"703b1d42b1356f3251c537284f802d7b063bbc34",slot:"detail"},"expandable cell 4 content"))),t("smoothly-table-row",{key:"9ca1aefd28f1cebea26e7d6fb11c07ac8801b8e5"},t("smoothly-table-cell",{key:"63656b20b79c41e1df72c0b64ca346c4ed4d9d33"},'normal row (nor.cell)"'),t("smoothly-table-cell",{key:"fefdc946fb3d8f145f7c27538e51c3bd5b827f32"},"normal cell"),t("smoothly-table-expandable-cell",{key:"74398758d6376bea77b0e77dd635c2d6dd132887"},"expandable cell",t("div",{key:"505bdcaa5e815e23a4c5586d7d9b8fc7cce6e03c",slot:"detail"},"expandable cell details.")),t("smoothly-table-expandable-cell",{key:"d8829cefcb71f88e08c8e7ce4ac74ef90c509fd8"},"expandable cell",t("div",{key:"066d7000b15665695c1aea7dde8b909bcf420cc1",slot:"detail"},"expandable cell details."))),t("smoothly-table-expandable-row",{key:"c7922a2b4308d54286b47b6c68d15afb24c60ee1"},t("smoothly-table-cell",{key:"15d1afa6eeb079b457de5bef88a62228eb590e13"},"expandable row (nor.cell)"),t("smoothly-table-cell",{key:"dbd39aca6aafb27ba7078135a0ab341f6a8bd59e"},"Normal cell"),t("smoothly-table-cell",{key:"1b9e8441647e0d192dab1214b8acbe3f448ef2c3"},"normal cell"),t("smoothly-table-cell",{key:"1807e4ea564c9733c304761da4a3faa11d2e3c2c"},"Normal cell"),t("div",{key:"f0fde21564486357af6fb3f6b923617dd9ebac72",slot:"detail"},"expandable row content"))),t("h4",{key:"6c77d4a7cb1f8080d349f5e0ac9fdcae8374aae2"},"Demo table 4"),t("smoothly-table",{key:"9edf09318a69f41df8da72374c8a944be6086a13"},t("smoothly-table-row",{key:"1410e9f8b1721790aef47dab0e8d9cd502f91eb2"},t("smoothly-table-header",{key:"88afc88c6918af6662c7adb9ceafa0ba977b34fa"},"Header A"),t("smoothly-table-expandable-cell",{key:"ebeecb1c15a557e8f9a124cb7578f57e28a74db7"},"Header expansion",t("div",{key:"e4d3ec3cf1b249679a177ac3e2f47397edd2c8a9",slot:"detail"},"Expansion content"))),t("smoothly-table-expandable-row",{key:"2b87b847d7f5be88f7831d441849cf71bc92c6e6"},t("smoothly-table-cell",{key:"14f8ae156a08410d69385dddbe1715cd09014e07"},"A Content"),t("smoothly-table-cell",{key:"e932b122c343c8a9711f24620498ffa9a4aabfd7"},"Expansion cell"),t("div",{key:"60f03e7e4b997c71109411eeea0333234fe2aa2f",slot:"detail"},t("smoothly-tab-switch",{key:"8c05d4c240a2279466a71ad048c09077a26374a2"},t("smoothly-tab",{key:"10e0ee626468973113c22eca337dbe761be912d5",label:"innertable 1",open:true},t("smoothly-table",{key:"a13416aa26174e02388a6fea0406160265282785"},t("smoothly-table-row",{key:"abfddab412021513198ef084be5a4b7fc83b4b95"},t("smoothly-table-header",{key:"24118b3e6d2e44dd04b69f222364cb94cec79423"},"Header B")),t("smoothly-table-expandable-row",{key:"8868d7b7d666f6043e381c1e823bb58d2b8ad940"},"B Content"))),t("smoothly-tab",{key:"5a503817618661fe716f4a41ce187ceaef3d1bcc",label:"innertable 2"},t("smoothly-table",{key:"ca2906de7c7b89671eb6a7d5e26286ce15f3871f"},t("smoothly-table-row",{key:"5e4158dffe959a6bd28ae9a985e0903a35c3493a"},t("smoothly-table-header",{key:"f0effae68f5ef4a3432336e9bd0f39e31b010ae3"},"Header C")),t("smoothly-table-expandable-row",{key:"0cea182264fc5c1b23c955ea7c9b5bac952af5d1"},t("smoothly-table-cell",{key:"4eb2059f545dc9b82f807ccf650febbb11b6d081"},"C Content"))))))),t("smoothly-table-row",{key:"e8d3964f303c1b3e6cbf9b12190b494ce56a84c6"},t("smoothly-table-cell",{key:"fd2d1f24613332a9fad25e385d37d40eec8e6074"},"A Content"),t("smoothly-table-expandable-cell",{key:"9823dc28a0dca98584713ae08adc7e2acbe70074"},"Expandable cell",t("div",{key:"d1d31bce54cb71c917eec6161fd790ddb4a60390",slot:"detail"},"Expansion content")))),t("h4",{key:"5bacea3b36d6aa0951764c5aae9352f8246a5bb8"},"Demo table 5"),t("smoothly-table",{key:"4eb7e0ffd2d1b833ee21cfa1d81f7680f34b22b8"},t("smoothly-table-row",{key:"eb5d795bc9e336342dd7db345209e8859d54e4e3"},t("smoothly-table-header",{key:"7a7903f4f7b57a29f8567398451f51249432138a"},"A"),t("smoothly-table-header",{key:"4939ffb0fcb4c06b420d4a1d0e6f2afa249c74bd"},"B")),t("smoothly-table-expandable-row",{key:"fc8d9e600aea680c01a57ca9fb17242b2afc7a04"},t("smoothly-table-cell",{key:"d74e46d3a250000edfe23b9be123c86928aac402"},"nested expandable row"),t("smoothly-table-cell",{key:"7ef256a866f15844431234235dfd70f9fa99b08c"},"b row"),t("div",{key:"0e2263e2e27f1a0049691498322d79f5ebe6c385",slot:"detail"},t("smoothly-table",{key:"05fb8983d89825a0e3e77203055158f66b17b6c6"},t("smoothly-table-row",{key:"e004dc222bfe9882fe6a2aa8a27cf4453f2e5691"},t("smoothly-table-header",{key:"8202507fe3a9fc52cfd12d7ab8ec8105d10ca33c"},"C"),t("smoothly-table-header",{key:"747b369f342fb8df894280ba0332467ed1b7aa1c"},"D")),t("smoothly-table-expandable-row",{key:"ef0249218000e5e8ac663a373c229b14b4e20314"},t("smoothly-table-cell",{key:"7f549318054fad911ec2343f92373ac2c08ad981"},"c"),t("smoothly-table-cell",{key:"0b285f5e685a71b1a86937e43faf1d7fe28e6f8e"},"d"),t("div",{key:"ac7d82c6584ae82ad8965fbde250f07cf59d7a9f",slot:"detail"},t("smoothly-table",{key:"c6fb0392f179b4534cc8ffbfe089492d44bf76f2"},t("smoothly-table-row",{key:"c776615876142f50e3bf58f6ac5c36461a5ff834"},t("smoothly-table-header",{key:"f36453d012a75ea6a1bbbd25e017ad58623c3520"},"E"),t("smoothly-table-header",{key:"4f3faf1cfbc84e6f7fd0290cd9d8f0f9e52aa781"},"F")),t("smoothly-table-expandable-row",{key:"1aaba04b6e00912e89cf816c4dd73a240391dfc1"},t("smoothly-table-cell",{key:"a4ea666226a3aa5602b57e1f5d29bc7af27e385a"},"e row"),t("smoothly-table-cell",{key:"40530a66ed33198c3dcf150e7c3976e9d926bdca"},"f row"),t("div",{key:"b550595647dd864ffdd82cdafac95c8aa424baad",slot:"detail"},"nested expandable row expansion e f")))))))),t("smoothly-table-expandable-row",{key:"669fd4e6c66e293e68a6755f72d78a63fd9778fc"},t("smoothly-table-cell",{key:"03fa248018d54f4e7261d5cda350942036c337c6"},t("span",{key:"db4bf060446305954a23ed390096a77b74e7aba0"},"one"),t("span",{key:"f047854de24f711cc5ac27498fd4457218466e4a"},"two"),t("span",{key:"1976d13538fa037a9600a35ffad8c04271fa3844"},"three")),t("smoothly-table-cell",{key:"80617ea58c3f393fd0f1f47b83c537e572e528c2"},"five",t("smoothly-icon",{key:"76c1595e95a228cd0dd3be442175cb227ec22463",name:"paper-plane-sharp",size:"small"})),t("div",{key:"090cd4ed067759eb3689315be8db6ce53d49dc94",slot:"detail"},"four")),t("smoothly-table-row",{key:"db6b27a62e06a40b3741bfd146bacbbf7f3bf07e"},t("smoothly-table-expandable-cell",{key:"507c2214b3e37ab3ab5d0442cf4993b17052fd81"},t("span",{key:"586d1d020792f1731780c5450a70c50f5681ab64"},"nested expandable cells"),t("div",{key:"d695809b1dcd5df0a7871c8ce02bd2a6e134338f",slot:"detail"},t("smoothly-table",{key:"c1a13cb5cc7ec497b0dd7b785ec7c56af9d23ad1"},t("smoothly-table-row",{key:"69b39363b073f9c8511ece0f19b77b4e852c4c79"},t("smoothly-table-header",{key:"b7f6c77aab40977c2b81473527c14dbbe0003d32"},"E"),t("smoothly-table-header",{key:"d9a3ddc1b46388e385e8d5eceb490d890f53c9bd"},"F")),t("smoothly-table-row",{key:"380c20bee2d360b41a9b7d87943199f2fdd65aa5"},t("smoothly-table-expandable-cell",{key:"d465790285e2bfb811c67e7f22f7ba494b7dccb5"},"e cell",t("div",{key:"76d619241b6c2d845068fee4bb4893635edfd252",slot:"detail"},t("smoothly-table",{key:"569d81a715071002b8b4e84ddab00d692dab34cd"},t("smoothly-table-row",{key:"56951a84f273d8e39d1e325785f4789a881e06d7"},t("smoothly-table-header",{key:"2f28c0a0e433061ba1d301a17663abc930491c5a"},"G"),t("smoothly-table-header",{key:"4e02272beb0fcffd099475bab3d3fa5e6979b919"},"H")),t("smoothly-table-row",{key:"5698730e256e240148ab4798e693aea1a725bcb3"},t("smoothly-table-expandable-cell",{key:"99110627ff12220151eac97e79444b28de0e51ab"},"g cell",t("div",{key:"eb98e0cb3582f780165e3f187e94cc17be858175",slot:"detail"},"nested expandable cell expansion g")),t("smoothly-table-expandable-cell",{key:"919c24b3a287304d7e8b671ef9b6f516398a0bf5"},"h cell",t("div",{key:"375140b29e24b38796198d5dece658882be790e1",slot:"detail"},"nested expandable cell expansion h")))))),t("smoothly-table-expandable-cell",{key:"49524e7bf81ae10e7a81c055d632906f26cc9efe"},"f cell",t("div",{key:"ed59a12778f68dc1b8902c66ebe7be42fe14e9f7",slot:"detail"},"nested expandable cell expansion f")))))),t("smoothly-table-expandable-cell",{key:"c0d6ea59a3e515c3b736d31c165f56d0c49a88cf"},"b cell",t("div",{key:"24ce890c7f3dd97fab6767c171d45bbf305dac5b",slot:"detail"},t("smoothly-table",{key:"9f3f7062623002fc5f445a60d27732f40efc2793"},t("smoothly-table-row",{key:"0fb642401e5be4129af95149e82a7d226fc9085e"},t("smoothly-table-header",{key:"a9ce09085e44a0e2fbec1d6080ffbee10449ac46"},"C"),t("smoothly-table-header",{key:"3f3cbd8bdc053c03efda70749bacf23d3a5b08eb"},"D")),t("smoothly-table-row",{key:"cfbc4132558e98ea213c0b635ae9779210b734f3"},t("smoothly-table-expandable-cell",{key:"8346482b6f97e7883c616f471f2439416f225ae5"},"c cell",t("div",{key:"6a424aae58dea605bef45d041b3d966cd7b77fa1",slot:"detail"},"nested expandable cell expansion c")),t("smoothly-table-expandable-cell",{key:"7d1278d1772e50ec62d4535e84795e0ff21bcfb2"},"d cell",t("div",{key:"037fbf1a295acb416b6da777a9adb4f133a9888e",slot:"detail"},"nested expandable cell expansion d")))))))),t("h4",{key:"c142096a173352c4d54e6f140f0959faff1020f7"},"Demo table 6"),t("smoothly-table",{key:"60e642463fa9133bf2ffe99a72dabe05ac0e4712"},t("smoothly-table-row",{key:"79b3922ac5f8a651fb4967f7004c1dc852eb9698"},t("smoothly-table-header",{key:"02bebc729c6426e660572400b4d6436c06338ec6"},"display"),t("smoothly-table-header",{key:"27a1de21117300f145e41175ce4d701ca063822a"},"contents")),t("smoothly-table-expandable-row",{key:"534a56881350116471043c8ccb9cd8340e1fc15c"},t("div",{key:"c11d36b53017bf661128862940b3a0a58e2d637c",class:"content"},t("smoothly-table-cell",{key:"056f80253e082def2ab34eb215e53d21290f44f8"},"A"),t("smoothly-table-cell",{key:"8eb2f08ee361cba6bf62b2cb333dc80d4cff1301"},"B")),t("div",{key:"7070fb9a0a84733c1dde7c0fb374f1d5044a83e3",slot:"detail"},"expansion"))),t("h4",{key:"409e11f57be8dff04c81a6def69c41e14431e8f2"},"Demo table 7")," ",t("span",{key:"413dc0d273d090e371da3ba141cd047e52e73ffd"},"nested 1 then normal"),t("smoothly-table",{key:"70f42748622fb89afafd3f52639851dc607bab2f"},t("smoothly-table-row",{key:"b49132440f1968525ed8974a30e12227bd35cab2"},t("smoothly-table-header",{key:"4bafbf08f718b465fd927ee792eb9bf932b12f4c"},"A"),t("smoothly-table-header",{key:"690bdc6de3c559c0df019495613eab2f6eb92531"},"B")),t("smoothly-table-expandable-row",{key:"e1453fbd7779a6210d0bda1d44afb5726bfe8a35"},t("smoothly-table-cell",{key:"ee9584fb3bb7329ae55e46d990adb84094d4f503"},"a"),t("smoothly-table-cell",{key:"6b6db5fe5a55109d57e7258d02b2286d61004c13"},"b"),t("div",{key:"666ee5d380f97b96407fd1010f1779387f194b15",slot:"detail"},t("smoothly-table",{key:"027253726a7cc34b6614e13810e3acc281330a2f"},t("smoothly-table-row",{key:"022ce4a559a57e14b2bbbb2b362910db5fcb91f9"},t("smoothly-table-header",{key:"eb39d2d4129da7bb6ea7923618934c5856509d9d"},"C"),t("smoothly-table-header",{key:"a235c77ec620d0816bcb797b852972c4efb1a2db"},"D")),t("smoothly-table-row",{key:"efdfb82045793834c0bdf10aa3bbc1fda24169ff"},t("smoothly-table-cell",{key:"1000d6a504bbf333866f0e72ca42bd21b2a31988"},"c"),t("smoothly-table-cell",{key:"d6206f9c807427293c2f428a397e1932ef83dd0e"},"d")),t("smoothly-table-row",{key:"86ef181fe45b5a9004e24ad9d0199b552a05dde8"},t("smoothly-table-cell",{key:"dff15632a5aa45d6f3ab66dbfaf1075f6e8ff6c8"},"ccc"),t("smoothly-table-cell",{key:"e6f6200c8dc8cd34abf86c29d3428c69c1c7a7ab"},"ddd")),t("smoothly-table-expandable-row",{key:"166623244473323447c3367ab4bf60a00a35c5ea"},t("smoothly-table-cell",{key:"416248c5ff465ef191fdc371ac41cfd906b5503a"},"cccc"),t("smoothly-table-cell",{key:"73efbcf99b4427b370987db3f77b4d3dce3acef9"},"dddd"),t("div",{key:"e604e47e403a586653e921889d82b29803ff14a4",slot:"detail"},"CONTENT")),t("smoothly-table-row",{key:"0b0d4a2f5f71f718a5c5c29ce16b7fcda49fc7dd"},t("smoothly-table-cell",{key:"9b4b1666cf69b47114933f6d436ec2d0554113e5"},"ccccc"),t("smoothly-table-cell",{key:"2e5f106bbe63cc8c067d8250b50bac70ea13a827"},"ddd")),t("smoothly-table-expandable-row",{key:"f62eebcde6bf7388cf7a7b7f50995e1e83866751"},t("smoothly-table-cell",{key:"d9db2d5853f3ec4edbc1f46c62127ff19825ff29"},"cccc"),t("smoothly-table-cell",{key:"652bfb786cff87056073c3a8b7d78ae1d24505dc"},"dddd"),t("div",{key:"6d580ab9af724f81cadbe5a6c3785e89e062a659",slot:"detail"},"CONTENT")))))),t("h4",{key:"08964ad35e3536f194fdb8a50dc2a008960cb67a"},"Demo table 8")," ",t("span",{key:"0d9404a5a77fd01a7ba3ec055442bd8dfdfa1759"},"not nested"),t("smoothly-table",{key:"ec02f6c8e3d8a66c280756fba6bcb6f8abbbcc09"},t("smoothly-table-row",{key:"efec1f343e10544161bc2f2bbb1901281197df1b"},t("smoothly-table-header",{key:"c87e0ab241d4444a19d08813b6ef2270ad5633c6"},"C"),t("smoothly-table-header",{key:"3ca3ef2cf382f6afa847e63e55f533267de341a3"},"D")),t("smoothly-table-row",{key:"280ab2709de8d13af8f5fc564b9fe1a2973954ec"},t("smoothly-table-cell",{key:"9a88f9219e918706451110fdafc77a073acc5c71"},"c"),t("smoothly-table-cell",{key:"0de3bade0103647559f9a830031c9b6f8d9aa213"},"d")),t("smoothly-table-row",{key:"ce3c90f39e7c44a075e088d439c0b0bf5e652435"},t("smoothly-table-cell",{key:"ae102d1ac758b518e7c9d988a4e9ce22085b8a1d"},"cc"),t("smoothly-table-cell",{key:"b16e0b173513e9ff4b554bf63891ea1b959bef1b"},"dd")),t("smoothly-table-row",{key:"fef910bcedd049ca9b2e3b66000c74a6a4882663"},t("smoothly-table-cell",{key:"d9cf8cb64929ce59807a345a33923e60f378783e"},"ccc"),t("smoothly-table-cell",{key:"53289b33524f2dd70cd6afdf251029db1c980edc"},"ddd"))),t("h4",{key:"3ab5f27e667a7e1db08939ce4cb45d850282f3d1"},"Demo table 9"),t("smoothly-table",{key:"769659230f644a4cbe3ba00f19b9c8f96a4a9995"},t("smoothly-table-row",{key:"1ef94e3f79375e13a0b4727b8c32b00c5fc34c34"},t("smoothly-table-header",{key:"cf2eb49c5295960d8fd8723a15f74a28f582b503"},"First name"),t("smoothly-table-header",{key:"8232e93d75afdd9aafcf5594699a2b08a94c28a9"},"Last name"),t("smoothly-table-header",{key:"5c00290a6757fca88652d3f9146a9e8e01f27ba8",style:{width:"1px"}},t("smoothly-icon",{key:"cd5b916c10ba2d0e059671001d61a0bbd935c440",name:"alert-outline"}))),t("smoothly-table-expandable-row",{key:"f360a1d643ea84d9fcf02738967de054acc550f5"},t("smoothly-table-cell",{key:"813f11898cf7a8dfcdb33328d498304de5c52024"},"Jessie"),t("smoothly-table-cell",{key:"54c495008c83afffd046f235936529a1493dbab0"},"Doe"),t("smoothly-table-cell",{key:"022aa0f258ef23b7504d0e3da0bb497a32320974"}),t("div",{key:"705ba7948d0121447bdf695bd3e3deb405d63ff9",slot:"detail"},t("p",{key:"631e75bb9959739b7821a37ac9e196ab64750f3d"},"This is Jessie")))),t("h4",{key:"b4141ea49ab03a3dc88aec5f02a4d0d805350161"},"Demo table 9 - Lazy expansion rows"),t("smoothly-table",{key:"db5bdfa5e8a6baa79ae3417bd08b9ebbfc0a7fa7"},t("smoothly-table-row",{key:"ee0408be64f96ac57225d2cbef86a9820b534381"},t("smoothly-table-header",{key:"5dfc818b5d779bcd2cf1e67f198a31bae4a2c5aa"},"Company")),t("smoothly-table-expandable-row",{key:"6d9feaa17730b5c0b8fa7cfc6085ebd1dcdd1616"},t("smoothly-table-cell",{key:"4f28c378a6a91a5815b977310eaf4c8de79af66d"},"Proquse"),t("smoothly-lazy",{key:"d8ecb0c81de97f208548310876de7d0750ef21c1",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})})),t("smoothly-table-expandable-row",{key:"458d4ada5f5e2de44ba6856ac7e4d6d1a6ea8bb2"},t("smoothly-table-cell",{key:"1a338d386a6e188ff66da784662dbd27f883dd89"},"Pax2Pay"),t("smoothly-lazy",{key:"b6961e605b15559cdbacee14ae552715bd81d9b6",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})}))),t("h4",{key:"cac2ac38f860f754918166db1c5a20ba9a6912b3"},"Demo table 10 - Lazy expansion cells"),t("smoothly-table",{key:"33fae514da1aab485319cee69175a9c71a72e661"},t("smoothly-table-row",{key:"8532fec1a50b22b71eae0e6cc94a31a31d5ae322"},t("smoothly-table-header",{key:"9d0ad3a9558dbc35eac3b38c1982de1bc3ab4882"},"Company")),t("smoothly-table-row",{key:"27c5f2c8d2e87e9bc3c2fae6cf7cc087a405fe95"},t("smoothly-table-expandable-cell",{key:"c03c670e02970d90ca0de80e88eb59c1802af89e"},"Proquse",t("smoothly-lazy",{key:"250c83c0d72dc058527a979943ee9668452737e1",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})}))),t("smoothly-table-row",{key:"27b76698c2250cc5c9d8438d667e55bf3fdc9b69"},t("smoothly-table-expandable-cell",{key:"469f7f8aa065965e4a9ac5ea28c7241558e5c80a"},"Pax2Pay",t("smoothly-lazy",{key:"f8d254f8cbab4efabb8a4e10878fb4724a729b29",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})})))),t("h4",{key:"07088fa05fd0878171e4d716f805f4e7f57fca1f"},"Demo table 11 - expandable cells"),t("smoothly-table",{key:"af54145e3a5c5d44ac7b2289bce55ad1c23e9aec"},t("smoothly-table-row",{key:"4fffe06dbd5c0e2409bdafd3570832d6ec918420"},t("smoothly-table-header",{key:"1b9693358de32dbca4f1ddf73800f4fe0c0326e0"},"Name"),t("smoothly-table-header",{key:"25ae31d3f68526b5cbef0f8501f05f3ef6b10190"},"Age"),t("smoothly-table-header",{key:"33291b26edd44ba700c7ef7a13412bbc348724ee"},"Location")),t("smoothly-table-row",{key:"daf1ae6535c89ffaa835e968c07e9bd916a3f54f"},t("smoothly-table-expandable-cell",{key:"aa71d03ebc9f8c2ea44e71ac5777d338bf9028fe"},"Jessie",t("div",{key:"d579c923bf557954bca81feeeefb48898a16d4b9",slot:"detail"},"Doe")),t("smoothly-table-expandable-cell",{key:"83cb3dec578fa4f9155936f3ab3c9108ce4c854d"},(new Date).getFullYear()-2e3,t("div",{key:"223275ff11fd52ccafa4f957d24813360abe2b77",slot:"detail"},"2000-01-01")),t("smoothly-table-expandable-cell",{key:"095901ac56e321da5184b3208110d2e58ac7d23d"},"UK",t("div",{key:"4855e7ef080480fb01b9ec97383cf7b1328648b7",slot:"detail"},"London")))))}};yh.style=fh;const mh=".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";const uh=mh;const ph=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Vc.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await Pl("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=gh[e.country])!==null&&t!==void 0?t:[]}),names:(o=gh[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&Mn(this.criteria,this.cats);return t(s,{key:"99fd63c92a8cf04c61771f6cf773d60f4c69feca"},t("smoothly-filter",{key:"14cfedd31402b77a63b0dfc1bcbcc7265f330e72"},t("smoothly-filter-toggle",{key:"d0b7480c9a81501a35f021543198b1e46c052f57",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"1ef08c20bee8e0af679c25ca1123ea44b9f3f63a",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"8efd23860f339c91471e4d21ed1875bff211dcdb",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"c53d921ace5aa7630432ea886f97c406dab544e9",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"f3ab8cb64309df5e993d98394d1842ddccfbb52f",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"52a6311a793cced1b44004d8d664cd3b6831717c",slot:"detail"},t("smoothly-form",{key:"eaf140f4202e4bcf9b810c53181fc7b8fa56829b",looks:"border"},t("smoothly-filter-select",{key:"035bb80d104b2367552ea9177f70da02b47f072f",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"a0b3512ab6c8bd691515e68a02a3c47ff6c8cd26",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"e7b1c97f61c52f9a731bea0e9515db53cd35e409",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(gh).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"4d481a5d8b67fb2fb95f07e061c0a7a8d3f29878",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"5f6f0140ad8ec86f7db7f7fed52859589506ee82",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-table",null,t("smoothly-table-row",null,t("smoothly-table-header",null,this.selector.render(e)),t("smoothly-table-header",null,"Breed"),t("smoothly-table-header",null,"Coat"),t("smoothly-table-header",null,"Price")),e.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,this.selector.render(e)),t("smoothly-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-table-footer",null,t("td",{colSpan:5},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`})))))}};const gh={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};ph.style=uh;const kh='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0.5rem 0.3rem 0.2rem;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding-right:0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg) translateX(3px)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.sc-smoothly-table-expandable-cell-h:not([open])>tr.sc-smoothly-table-expandable-cell>td.sc-smoothly-table-expandable-cell{display:none}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}smoothly-table-row>tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const vh=kh;const xh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=o(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}openChanged(e){if(this.expansionElement)if(e)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"de2de60ed4de4805d0e8460425dff69a27f1cf58"},t("div",{key:"631f4ff23313af670fd048342444b629c4f69486"},t("smoothly-icon",{key:"cf41b030bfb527d5ff91d78f0e83f165f7f94dcc",name:"caret-forward-outline"}),t("slot",{key:"05ea51edb7a481e9e3336013abe72377a5fa24fb"})),t("tr",{key:"9b63ac58aa5798b4904b7585ca4a1da6a7d84788",class:{spotlight:this.spotlight},ref:e=>this.expansionElement=e},t("td",{key:"d14773965f0527714bea6539ba56cee53e9a3fa7",colSpan:999},t("slot",{key:"8b951371bf7abf38a4712e51d818d0846eaaf267",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};xh.style=vh;const wh='.sc-smoothly-table-expandable-row-h{display:contents}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h:not([open])>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}.sc-smoothly-table-expandable-row-h>tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const Sh=wh;const Ch=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"31acafbc329314f362d78436e2f2532747406763"},t("div",{key:"230c9cca3c799029da2ebd523e404a08c957be5f",onClick:()=>this.open=!this.open},t("slot",{key:"929dc26ca30e4873508eb34a64735052eaa5ac8f"})),t("tr",{key:"77323f4591ec02239e5bc4f3cd904207d676235b",class:{spotlight:this.spotlight}},t("td",{key:"4d4433ad29c98e48032b5d0f656ae2c41d9396db",colSpan:999},t("slot",{key:"adda0d7e3c76aaec5fe85ea76cacd93c619a8273",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Ch.style=Sh;const zh=".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";const Th=zh;const jh=class{constructor(t){e(this,t)}render(){return t("slot",{key:"8994ec30ca4782c186a0d6b0f93e31a1f944582c"})}};jh.style=Th;const _h=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding:0 .5rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const Lh=_h;const Ah=class{constructor(t){e(this,t);this.name=undefined}render(){return t(s,{key:"fb48fbe64f9a6c7547a723b5e6878178fcc2d119"},t("slot",{key:"d6a3b03d4f9277925f89414ba51ccd6a0b726f30"}))}};Ah.style=Lh;const Ih=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}.sc-smoothly-table-row-h>div.sc-smoothly-table-row{display:contents}";const Eh=Ih;const Oh=class{constructor(t){e(this,t);this.expansions=[];this.open=false}onExpansionLoad(e){this.expansions.push(e.target)}onExpansionChange(){this.open=this.expansions.some((e=>e.open))}onExpansionOpen(e){var t;this.expansions.forEach((t=>{if(t!=e.target)t.open=false}));if(e.detail)(t=this.element)===null||t===void 0?void 0:t.after(e.detail)}render(){return t("div",{key:"3bd2f27ff91e3f194c1d42ec7b0e13d452ed8797",ref:e=>this.element=e},t("slot",{key:"f73f0a5d186c58393bf706d32251906ffcc267fc"}))}};Oh.style=Eh;const Dh=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const Mh=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";const Rh=Mh;const $h=class{constructor(t){e(this,t);this.counter=0}render(){return t(s,{key:"1e8b9a237c0338de95c8bc47d6300fb5bea00daa"},t("smoothly-table",{key:"1ce95762e531791df383f13155b63af3ed0f7183",color:"dark"},t("smoothly-table-row",{key:"11572b7bd2e027cb9263fe0bb038d5c5d404c886"},t("smoothly-table-header",{key:"b7f9b6770075f4f7bc650e41e7b5bc88a9a63246"},"Type"),t("smoothly-table-header",{key:"ada0d06f350f5ce78d75be58fdcaf24b044acd5b"},"Name"),t("smoothly-table-header",{key:"74a3c58483b7ed6a56b09381166c99be36a5cc7a"},"Age")),Dh.map((e=>t("smoothly-table-expandable-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-cell",null,e.name),t("smoothly-table-cell",null,e.age),t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!"))))),Dh.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-expandable-cell",null,e.name,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.name},"Name"),t("smoothly-submit",{slot:"submit"},"Submit!"))),t("smoothly-table-expandable-cell",null,e.age,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!")))))),t("smoothly-table-footer",{key:"d059092b5882919a4524ca5643c70dca7e52495e"},t("td",{key:"64275eb499624f7f9a803dbd5efa58496b57509e",colSpan:2},t("div",{key:"fd34e16a45bbe5d814cd70f2c9b5e3b23f03dcf2",class:"footer"},"Currently viewing content from:",t("smoothly-display",{key:"f9ef16c5c595f41afbc705599c78ae84af9978e8",type:"date",value:"2023-10-12"}))),t("smoothly-table-header",{key:"6f2a13077065f9072ce3a9f7658557a03b291c9a"},"Total age: "+Dh.reduce(((e,t)=>e+t.age),0)))))}};$h.style=Rh;const Ph=".sc-smoothly-tabs-h{display:flex;flex-direction:row;justify-content:space-around;border-bottom:3px solid rgb(var(--smoothly-default-shade))}";const Hh=Ph;const Nh=class{constructor(t){e(this,t);this.selectedTab=o(this,"selectedTab",7);this.selectedElement=undefined}openChanged(e){e.stopPropagation();this.selectedElement=e.target;this.element.after(e.detail);this.selectedTab.emit(this.selectedElement.label)}onSelectedChange(e,t){if(t)t.open=false}render(){return t(s,{key:"0c7c83580c88a3a30e54220386a43de10b5bd9d7"},t("slot",{key:"a9819da2915d67534da61ea741e1e734b1ccca9d"}))}get element(){return a(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};Nh.style=Hh;const Fh=".sc-smoothly-tabs-demo-h{display:block}[hidden].sc-smoothly-tabs-demo-h{display:none}button.sc-smoothly-tabs-demo:focus{outline:none}smoothly-selector.sc-smoothly-tabs-demo{outline:none}button.sc-smoothly-tabs-demo{display:block}";const Uh=Fh;const Wh=class{constructor(t){e(this,t)}render(){return[t("smoothly-tabs",{key:"7db28b4033941e93030f2970c75c87a5212caf82"},t("smoothly-tab",{key:"8cc47af41a9571543c2ed5a0f4851bb9644cf14d",label:"test1",open:true},"Hello world!"),t("smoothly-tab",{key:"1ba02150f0d9c01fd3d8aa4c7083f7b259faca6f",label:"test2"},"this is a test message!"),t("smoothly-tab",{key:"8049e1b074c3951ca220ea86e729a2e7ff0e0b17",label:"test3"},"this is a test message again!"))]}};Wh.style=Uh;const Yh=".sc-smoothly-theme-color-h{display:flex;flex-direction:column;align-items:center}.sc-smoothly-theme-color-h>.sc-smoothly-theme-color:first-child{margin-top:0.2rem}";const Bh=Yh;const qh=class{constructor(t){e(this,t);this.color=undefined}render(){return t(s,{key:"c9a32779efe8d77ad24d45aade1e3431ed4fbb76"},this.color,["tint","color","shade"].map((e=>t("smoothly-theme-color-variant",{title:`${this.color} ${e}`,color:this.color,variant:e}))))}};qh.style=Bh;const Gh=".sc-smoothly-theme-color-variant-h{display:flex;justify-content:center;align-items:center;width:3em;height:3em;font-weight:900}[color][variant=color].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color))}[color][variant=tint].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-tint))}[color][variant=shade].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-shade))}";const Kh=Gh;const Vh=class{constructor(t){e(this,t);this.color=undefined;this.variant="color"}render(){return"Aa"}};Vh.style=Kh;const Jh=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Xh=Jh;const Zh=class{constructor(t){e(this,t)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((e=>t("smoothly-theme-color",{color:e})))}};Zh.style=Xh;const Qh=".sc-smoothly-theme-demo-h{display:flex;width:80%;margin:auto;flex-direction:column;gap:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>span.sc-smoothly-theme-demo{display:flex;flex-direction:row;gap:10em}";const eb=Qh;const tb=class{constructor(t){e(this,t)}render(){return t(s,{key:"fc145a9b40cf579de85d03dd48a2eb2553208e13"},t("h2",{key:"1b6d1753e1178fdfc23462e4c338e38ac149bf6d"},"Theme"),t("smoothly-theme-picker",{key:"fcd75c4386d9cbb46de367e8e61b351ed9133a4a"},t("smoothly-item",{key:"568114bc096c8ba1d856f2ee0a0e6b65c6a187d1",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),t("smoothly-item",{key:"7c3f8f65c09335f44ae4f3cfc2e3b454f72cf495",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),t("smoothly-item",{key:"b74d30ad5724caa483e1ad7cee107756d9502d2a",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),t("smoothly-item",{key:"0dfa6e499f2a0eaa03d62f4496bf134b7df89761",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),t("smoothly-item",{key:"a2c6c31df297133ed1c199308dabddecfef0d69f",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),t("smoothly-item",{key:"31fb9cfdf74cbf4cc27d625bdc4da3fcd2abc02f",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),t("smoothly-item",{key:"11b1142d654a4b00df3164781931e5d577c37b48",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),t("smoothly-item",{key:"2902a5204e015cad119867e630b5fb92dbd381b4",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),t("smoothly-item",{key:"cf880cb92056686f91ae951a0239107d549e8b59",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),t("span",{key:"eb1cafe6ee4af987ac39a8fa7dbd3ad6835d7ab1"},t("smoothly-theme-colors",{key:"493a7a4fb46dbd32fa231ea74a93cb5952f91b50"}),t("smoothly-theme-guide",{key:"ca19bdaad1f3ce0cc4ecf0a04330007f295f475c"})),t("smoothly-button",{key:"bddc8c80e45c1f9bfa4ac2a935d17d80f767ffe9",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"6ac639ff1e60ff2a24a0625e8da2badf16246b42",type:"link",link:"/redirect"},"To /redirect"),t("smoothly-button",{key:"ec08f0908beeeb5cb13822449d9540527807ef17",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),t("smoothly-button",{key:"0bf87289a2e37f47ba002b4a632c2ccd19ab586b",type:"link",link:"redirect/nested"},"To redirect nested"))}};tb.style=eb;const ob="";const sb=ob;const ab=class{constructor(t){e(this,t)}render(){return[t("smoothly-display",{key:"4b118fef6f6b92878c8630155c8b97e87add187f"},"Tint is used as background to highlight, for example hovering an item in the select menu."),t("br",{key:"d1b3495756c00a6a6de8842269e5d7d9e2fd428b"}),t("smoothly-display",{key:"b1882639d508ac74b33ad8b8c403194ab9072dd7"},"Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),t("br",{key:"8361a76e3b134bf2c28acf5d82784dc5ba041179"}),t("smoothly-display",{key:"9d98152d5be05babea31cc9c7d0d37904e15ab0e"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),t("br",{key:"1b37b7525531fc6b0b0ee9f04430c7cddc83671e"}),t("smoothly-display",{key:"19f77a0b4329b1d0edcc93fac4c355ad0cb6221e"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),t("br",{key:"c7e941eaf73e6770ac2024d51a854ba441b64854"})]}};ab.style=sb;const ib="";const nb=ib;const lb=class{constructor(t){e(this,t);this.element="smoothly-css"}render(){return t(s,{key:"36416385ae64f1a9d18a4ee70cc7f7ae71a47b22"},t("smoothly-input-select",{key:"9fb3ec7632408f163914ddc670b77973080081b6",name:"theme",looks:"border",onSmoothlyInput:e=>{const t=document.querySelector(`#${this.element}`);if(t instanceof HTMLLinkElement&&typeof e.detail.theme=="string")t.href=e.detail.theme}},t("label",{key:"b49dc09788e385c8516ff721314a73bb866e710c",slot:"label"},"Select theme"),t("slot",{key:"9d16b92efdd1b7c0188dd8cbf1864249bb176145"})))}};lb.style=nb;const rb=".sc-smoothly-toggle-h{display:inline-block;border:none}.sc-smoothly-toggle-h>button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const cb=rb;const db=class{constructor(t){e(this,t);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(e){this.selected=!this.selected}render(){return t("button",{key:"2ad1bf576d0d4287e37baf58136becdbbff06458"},t("slot",{key:"4d93098f4e800e41a44fde1c6649afa94c99fa3c",name:"icon-slot"}),t("slot",{key:"c97c89c9bebe9f758b4c3df7739849469882d79f"},this.name))}};db.style=cb;const hb=":host{display:block;margin:1em 0;width:3.6em;height:1.8em}:host>button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-light-tint))}:host>button:hover{background-color:rgb(var(--smoothly-light-color))}:host>button>smoothly-icon{display:flex;justify-content:flex-start;align-items:center;position:absolute;left:0;fill:rgb(var(--smoothly-color));stroke:rgb(var(--smoothly-color));font-size:1.2em;transition:100ms ease-in-out}:host[checkmark]>button>smoothly-icon{fill:rgb(var(--smoothly-success-color));stroke:rgb(var(--smoothly-success-color))}:host([selected][checkmark])>button{background-color:rgb(var(--smoothly-success-color))}:host([selected])>button>smoothly-icon{transform:translateX(100%)}:host([size=small]){width:3.05em;height:1.5em}:host([size=large]){width:5.2em;height:2.5em}:host([size=small])>button>smoothly-icon{font-size:1em}:host([size=large])>button>smoothly-icon{font-size:1.75em}";const bb=hb;const fb=class{constructor(t){e(this,t);this.smoothlyToggleSwitchChange=o(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color=undefined;this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return t(s,{key:"f02accac49e74f1ec2b0cb30bfedb8486f7359cf"},t("button",{key:"049a63088b11531ed45c1f971ad8a056c332a152",disabled:this.disabled,onClick:()=>this.handleClick()},t("smoothly-icon",{key:"46b9c4b9e82ce10dcf7f7fd2ccd3f3b1ae813674",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};fb.style=bb;const yb=".sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}.sc-smoothly-trigger-h>button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([disabled]):hover,.sc-smoothly-trigger-h:not([disabled]):focus,.sc-smoothly-trigger-h:not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=full].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=full].sc-smoothly-trigger-h{border-left:none;border-right:none}";const mb=yb;const ub=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.color=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.name=undefined;this.value=undefined}onClick(e){this.trigger.emit({name:this.name,value:this.value});e.stopPropagation();e.preventDefault()}render(){let e;switch(this.type){case"link":e=this.disabled?t("slot",null):t("a",{onClick:e=>this.onClick(e)},t("slot",null));break;case"button":e=t("button",{key:"65fdb4a7ecdd908ee84e40559fd19b358396f8ef",disabled:this.disabled,name:this.name},t("slot",{key:"7d22b938d7e62bcb98f59dbeab0d5b402222b1d4"}));break}return e}};ub.style=mb;export{I as smoothly_app,E as smoothly_app_demo,Ie as smoothly_app_room,De as smoothly_back_to_top,$e as smoothly_burger,We as smoothly_button,qe as smoothly_button_confirm,Ve as smoothly_button_demo,ot as smoothly_calendar,it as smoothly_dialog,nt as smoothly_dialog_demo,Zt as smoothly_display,oo as smoothly_display_amount,so as smoothly_display_demo,Nn as smoothly_filter,Wn as smoothly_filter_field,qn as smoothly_filter_input,Vn as smoothly_filter_select,Zn as smoothly_filter_toggle,Vl as smoothly_form,Zl as smoothly_frame,tr as smoothly_icon,ar as smoothly_icon_demo,lr as smoothly_input,hr as smoothly_input_checkbox,yr as smoothly_input_clear,pr as smoothly_input_color,vr as smoothly_input_date,Sr as smoothly_input_date_range,Tr as smoothly_input_demo,Lr as smoothly_input_demo_controlled_form,Er as smoothly_input_edit,Mr as smoothly_input_file,Pr as smoothly_input_month,Fr as smoothly_input_radio,Yr as smoothly_input_radio_item,Gr as smoothly_input_range,Jr as smoothly_input_reset,ec as smoothly_input_select,ac as smoothly_input_submit,lc as smoothly_item,dc as smoothly_label,fc as smoothly_lazy,uc as smoothly_load_more,kc as smoothly_next_demo,wc as smoothly_next_demo_colspan,zc as smoothly_next_demo_group,Lc as smoothly_next_demo_nested,Ec as smoothly_next_demo_nested_inner,Mc as smoothly_next_demo_simple,Hc as smoothly_next_table,Uc as smoothly_next_table_body,Bc as smoothly_next_table_cell,Zc as smoothly_next_table_demo_filtered,od as smoothly_next_table_expandable_cell,id as smoothly_next_table_expandable_row,rd as smoothly_next_table_foot,hd as smoothly_next_table_head,yd as smoothly_next_table_row,pd as smoothly_next_table_row_group,vd as smoothly_notification,Sd as smoothly_notifier,Td as smoothly_picker,Ad as smoothly_picker_demo,$d as smoothly_picker_menu,Fd as smoothly_picker_option,Yd as smoothly_slot_elements,Gd as smoothly_slotted_elements,Jd as smoothly_spinner,Qd as smoothly_submit,oh as smoothly_summary,ih as smoothly_tab,rh as smoothly_table,hh as smoothly_table_cell,yh as smoothly_table_demo,ph as smoothly_table_demo_filtered,xh as smoothly_table_expandable_cell,Ch as smoothly_table_expandable_row,jh as smoothly_table_footer,Ah as smoothly_table_header,Oh as smoothly_table_row,$h as smoothly_table_testing,Nh as smoothly_tabs,Wh as smoothly_tabs_demo,qh as smoothly_theme_color,Vh as smoothly_theme_color_variant,Zh as smoothly_theme_colors,tb as smoothly_theme_demo,ab as smoothly_theme_guide,lb as smoothly_theme_picker,db as smoothly_toggle,fb as smoothly_toggle_switch,ub as smoothly_trigger};
|
|
2
|
+
//# sourceMappingURL=p-ee564977.entry.js.map
|