smoothly 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/smoothly-app_99.cjs.entry.js +148 -148
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-submit.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/collection/components/app/demo/index.js +1 -1
- package/dist/collection/components/app/demo/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +1 -1
- package/dist/collection/components/back-to-top/index.js +2 -2
- package/dist/collection/components/burger/index.js +1 -1
- package/dist/collection/components/button/demo/index.js +3 -3
- package/dist/collection/components/button/index.js +1 -1
- package/dist/collection/components/calendar/index.js +2 -2
- package/dist/collection/components/checkbox/index.js +2 -2
- package/dist/collection/components/color/index.js +1 -1
- package/dist/collection/components/confirm/index.js +1 -1
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/dialog/demo/index.js +1 -1
- package/dist/collection/components/dialog/index.js +1 -1
- package/dist/collection/components/display/demo/index.js +10 -10
- package/dist/collection/components/display/demo/json/index.js +1 -1
- package/dist/collection/components/display/index.js +3 -3
- package/dist/collection/components/display/json/index.js +1 -1
- package/dist/collection/components/display/json/object/index.js +2 -2
- package/dist/collection/components/display/json/object/key/index.js +1 -1
- package/dist/collection/components/display/json/primitive/index.js +1 -1
- package/dist/collection/components/filter/field/index.js +1 -1
- package/dist/collection/components/filter/index.js +3 -3
- package/dist/collection/components/filter/input/index.js +1 -1
- package/dist/collection/components/filter/select/index.js +1 -1
- package/dist/collection/components/filter/toggle/index.js +1 -1
- package/dist/collection/components/form/demo/all/index.js +2 -2
- package/dist/collection/components/form/demo/card/index.js +1 -1
- package/dist/collection/components/form/demo/controlled/index.js +1 -1
- package/dist/collection/components/form/demo/date/index.js +1 -1
- package/dist/collection/components/form/demo/date-range/index.js +1 -1
- package/dist/collection/components/form/demo/index.js +1 -1
- package/dist/collection/components/form/demo/login/index.js +1 -1
- package/dist/collection/components/form/demo/pet/index.js +2 -2
- package/dist/collection/components/form/demo/prices/index.js +1 -1
- package/dist/collection/components/form/demo/schedule/index.js +1 -1
- package/dist/collection/components/form/demo/transparent/index.js +1 -1
- package/dist/collection/components/form/demo/typed/index.js +1 -1
- package/dist/collection/components/form/index.js +1 -1
- package/dist/collection/components/icon/demo/index.js +1 -1
- package/dist/collection/components/icon/index.js +1 -1
- package/dist/collection/components/input/checkbox/demo/index.js +1 -1
- package/dist/collection/components/input/checkbox/index.js +1 -1
- package/dist/collection/components/input/clear/index.js +1 -1
- package/dist/collection/components/input/color/demo/index.js +1 -1
- package/dist/collection/components/input/color/index.js +2 -2
- package/dist/collection/components/input/date/index.js +3 -3
- package/dist/collection/components/input/date/range/index.js +2 -2
- package/dist/collection/components/input/date/time/index.js +5 -5
- package/dist/collection/components/input/demo/index.js +4 -4
- package/dist/collection/components/input/demo/price/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/edit/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/index.js +2 -2
- package/dist/collection/components/input/month/index.js +2 -2
- package/dist/collection/components/input/radio/index.js +1 -1
- package/dist/collection/components/input/radio/item/index.js +1 -1
- package/dist/collection/components/input/range/demo/index.js +1 -1
- package/dist/collection/components/input/range/index.js +4 -4
- package/dist/collection/components/input/reset/index.js +1 -1
- package/dist/collection/components/input/select/index.js +3 -3
- package/dist/collection/components/input/submit/index.js +1 -1
- package/dist/collection/components/item/index.js +1 -1
- package/dist/collection/components/label/index.js +2 -2
- package/dist/collection/components/lazy/index.js +1 -1
- package/dist/collection/components/load-more/index.js +1 -1
- package/dist/collection/components/modal/index.js +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/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/body/index.js +1 -1
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/demo/colspan/index.js +1 -1
- package/dist/collection/components/table/demo/filler-row/index.js +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/group/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/nested/index.js +1 -1
- package/dist/collection/components/table/demo/nested/inner/index.js +1 -1
- package/dist/collection/components/table/demo/simple/simple.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/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +4 -0
- package/dist/collection/components/table/filler-row/index.js +1 -1
- package/dist/collection/components/table/foot/index.js +1 -1
- package/dist/collection/components/table/group/index.js +1 -1
- package/dist/collection/components/table/head/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-switch/demo/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-cd4ae22e.js → p-00e29131.js} +4 -4
- package/dist/components/{p-cd4ae22e.js.map → p-00e29131.js.map} +1 -1
- package/dist/components/{p-3a1f5e8b.js → p-03be2708.js} +10 -10
- package/dist/components/{p-3a1f5e8b.js.map → p-03be2708.js.map} +1 -1
- package/dist/components/{p-5dd30cc0.js → p-03c91070.js} +2 -2
- package/dist/components/{p-5dd30cc0.js.map → p-03c91070.js.map} +1 -1
- package/dist/components/{p-11cc925c.js → p-065cbcf5.js} +8 -8
- package/dist/components/{p-11cc925c.js.map → p-065cbcf5.js.map} +1 -1
- package/dist/components/{p-e2ff40ce.js → p-07d9e68a.js} +2 -2
- package/dist/components/{p-e2ff40ce.js.map → p-07d9e68a.js.map} +1 -1
- package/dist/components/{p-e569751f.js → p-0b8373df.js} +2 -2
- package/dist/components/{p-e569751f.js.map → p-0b8373df.js.map} +1 -1
- package/dist/components/{p-49deb5fc.js → p-115371b7.js} +3 -3
- package/dist/components/{p-49deb5fc.js.map → p-115371b7.js.map} +1 -1
- package/dist/components/p-14ea6e65.js +244 -0
- package/dist/components/{p-a0df7a64.js.map → p-14ea6e65.js.map} +1 -1
- package/dist/components/{p-f21f43d1.js → p-18451fa9.js} +3 -3
- package/dist/components/{p-f21f43d1.js.map → p-18451fa9.js.map} +1 -1
- package/dist/components/{p-a74a5a51.js → p-18e35dd4.js} +3 -3
- package/dist/components/{p-a74a5a51.js.map → p-18e35dd4.js.map} +1 -1
- package/dist/components/{p-95439799.js → p-1e8fa07d.js} +5 -5
- package/dist/components/{p-95439799.js.map → p-1e8fa07d.js.map} +1 -1
- package/dist/components/{p-940e5b8e.js → p-1eab7079.js} +4 -4
- package/dist/components/{p-940e5b8e.js.map → p-1eab7079.js.map} +1 -1
- package/dist/components/{p-d0935bef.js → p-28dac8ac.js} +3 -3
- package/dist/components/{p-d0935bef.js.map → p-28dac8ac.js.map} +1 -1
- package/dist/components/{p-04799383.js → p-2bbb8f53.js} +2 -2
- package/dist/components/{p-04799383.js.map → p-2bbb8f53.js.map} +1 -1
- package/dist/components/{p-97254dfe.js → p-2c9a8b37.js} +11 -11
- package/dist/components/{p-97254dfe.js.map → p-2c9a8b37.js.map} +1 -1
- package/dist/components/{p-8f6b490b.js → p-2f17a8e0.js} +14 -14
- package/dist/components/{p-8f6b490b.js.map → p-2f17a8e0.js.map} +1 -1
- package/dist/components/{p-a91db04a.js → p-3024abfc.js} +4 -4
- package/dist/components/{p-a91db04a.js.map → p-3024abfc.js.map} +1 -1
- package/dist/components/p-332ff0a5.js +123 -0
- package/dist/components/{p-a95bab7d.js.map → p-332ff0a5.js.map} +1 -1
- package/dist/components/{p-d209231e.js → p-347162c4.js} +10 -10
- package/dist/components/{p-d209231e.js.map → p-347162c4.js.map} +1 -1
- package/dist/components/{p-4d18f37f.js → p-35d30b5f.js} +14 -14
- package/dist/components/{p-4d18f37f.js.map → p-35d30b5f.js.map} +1 -1
- package/dist/components/{p-0f3b692b.js → p-3609c2f0.js} +13 -13
- package/dist/components/{p-0f3b692b.js.map → p-3609c2f0.js.map} +1 -1
- package/dist/components/{p-9bb1e20b.js → p-382b5857.js} +6 -6
- package/dist/components/{p-9bb1e20b.js.map → p-382b5857.js.map} +1 -1
- package/dist/components/{p-67370f30.js → p-38ec49fa.js} +3 -3
- package/dist/components/{p-67370f30.js.map → p-38ec49fa.js.map} +1 -1
- package/dist/components/{p-dfb0153c.js → p-3989ef69.js} +3 -3
- package/dist/components/{p-dfb0153c.js.map → p-3989ef69.js.map} +1 -1
- package/dist/components/{p-948e9305.js → p-3b06b8a0.js} +27 -27
- package/dist/components/{p-948e9305.js.map → p-3b06b8a0.js.map} +1 -1
- package/dist/components/{p-33cdc807.js → p-3b26fe6c.js} +5 -5
- package/dist/components/{p-33cdc807.js.map → p-3b26fe6c.js.map} +1 -1
- package/dist/components/{p-33f636a1.js → p-3f7a437a.js} +15 -15
- package/dist/components/{p-33f636a1.js.map → p-3f7a437a.js.map} +1 -1
- package/dist/components/{p-50f2b79d.js → p-4139620f.js} +14 -14
- package/dist/components/{p-50f2b79d.js.map → p-4139620f.js.map} +1 -1
- package/dist/components/{p-2de92429.js → p-49837ba2.js} +2 -2
- package/dist/components/{p-2de92429.js.map → p-49837ba2.js.map} +1 -1
- package/dist/components/{p-f0e08ba3.js → p-4fbdcaa4.js} +4 -4
- package/dist/components/{p-f0e08ba3.js.map → p-4fbdcaa4.js.map} +1 -1
- package/dist/components/{p-eba2af2b.js → p-50847f24.js} +13 -13
- package/dist/components/{p-eba2af2b.js.map → p-50847f24.js.map} +1 -1
- package/dist/components/{p-e91292f2.js → p-52ba5546.js} +5 -5
- package/dist/components/{p-e91292f2.js.map → p-52ba5546.js.map} +1 -1
- package/dist/components/{p-b8107946.js → p-565f1d48.js} +7 -7
- package/dist/components/{p-b8107946.js.map → p-565f1d48.js.map} +1 -1
- package/dist/components/{p-8ac400d5.js → p-56fc01bf.js} +5 -5
- package/dist/components/{p-8ac400d5.js.map → p-56fc01bf.js.map} +1 -1
- package/dist/components/{p-21601376.js → p-5bf78c75.js} +2 -2
- package/dist/components/{p-21601376.js.map → p-5bf78c75.js.map} +1 -1
- package/dist/components/{p-cf692cc2.js → p-5e242cbd.js} +3 -3
- package/dist/components/{p-cf692cc2.js.map → p-5e242cbd.js.map} +1 -1
- package/dist/components/{p-f4c50262.js → p-627c3fc7.js} +8 -8
- package/dist/components/{p-f4c50262.js.map → p-627c3fc7.js.map} +1 -1
- package/dist/components/{p-2683f275.js → p-6396cebd.js} +12 -12
- package/dist/components/{p-2683f275.js.map → p-6396cebd.js.map} +1 -1
- package/dist/components/{p-f0f3ed83.js → p-64883514.js} +37 -37
- package/dist/components/{p-f0f3ed83.js.map → p-64883514.js.map} +1 -1
- package/dist/components/{p-8ce2b17b.js → p-67a0640f.js} +15 -15
- package/dist/components/{p-8ce2b17b.js.map → p-67a0640f.js.map} +1 -1
- package/dist/components/{p-065742a9.js → p-68c91da3.js} +4 -4
- package/dist/components/{p-065742a9.js.map → p-68c91da3.js.map} +1 -1
- package/dist/components/{p-9f71d26f.js → p-72b6a817.js} +5 -5
- package/dist/components/{p-9f71d26f.js.map → p-72b6a817.js.map} +1 -1
- package/dist/components/{p-5e4e6b48.js → p-7b0de261.js} +6 -6
- package/dist/components/{p-5e4e6b48.js.map → p-7b0de261.js.map} +1 -1
- package/dist/components/{p-10e9b56f.js → p-7b9c60c5.js} +16 -16
- package/dist/components/{p-10e9b56f.js.map → p-7b9c60c5.js.map} +1 -1
- package/dist/components/{p-d20010f3.js → p-840a2e6c.js} +32 -32
- package/dist/components/{p-d20010f3.js.map → p-840a2e6c.js.map} +1 -1
- package/dist/components/{p-1d50e1c3.js → p-8a0d18a0.js} +15 -15
- package/dist/components/{p-1d50e1c3.js.map → p-8a0d18a0.js.map} +1 -1
- package/dist/components/{p-37363a06.js → p-8b9ba740.js} +8 -8
- package/dist/components/{p-37363a06.js.map → p-8b9ba740.js.map} +1 -1
- package/dist/components/{p-7995e164.js → p-8c0ab6b7.js} +15 -15
- package/dist/components/{p-7995e164.js.map → p-8c0ab6b7.js.map} +1 -1
- package/dist/components/{p-8309d8d7.js → p-8dedb4ea.js} +7 -7
- package/dist/components/{p-8309d8d7.js.map → p-8dedb4ea.js.map} +1 -1
- package/dist/components/{p-a0930b47.js → p-94091007.js} +6 -6
- package/dist/components/{p-a0930b47.js.map → p-94091007.js.map} +1 -1
- package/dist/components/p-97b63ea3.js +176 -0
- package/dist/components/{p-42fba537.js.map → p-97b63ea3.js.map} +1 -1
- package/dist/components/{p-28a3024e.js → p-98440131.js} +2 -2
- package/dist/components/{p-28a3024e.js.map → p-98440131.js.map} +1 -1
- package/dist/components/{p-8b2f08c5.js → p-9e3806ff.js} +7 -7
- package/dist/components/{p-8b2f08c5.js.map → p-9e3806ff.js.map} +1 -1
- package/dist/components/{p-e6eca6ea.js → p-a09be6d8.js} +2 -2
- package/dist/components/{p-e6eca6ea.js.map → p-a09be6d8.js.map} +1 -1
- package/dist/components/{p-76b9e403.js → p-a15015cc.js} +15 -15
- package/dist/components/{p-76b9e403.js.map → p-a15015cc.js.map} +1 -1
- package/dist/components/{p-6ce1475e.js → p-a50f622f.js} +5 -5
- package/dist/components/{p-6ce1475e.js.map → p-a50f622f.js.map} +1 -1
- package/dist/components/{p-182310f5.js → p-a57e7345.js} +7 -7
- package/dist/components/{p-182310f5.js.map → p-a57e7345.js.map} +1 -1
- package/dist/components/{p-125e9845.js → p-a765eaaa.js} +5 -5
- package/dist/components/{p-125e9845.js.map → p-a765eaaa.js.map} +1 -1
- package/dist/components/{p-a9bd3ecf.js → p-a966d505.js} +16 -16
- package/dist/components/{p-a9bd3ecf.js.map → p-a966d505.js.map} +1 -1
- package/dist/components/p-abd56282.js +48 -0
- package/dist/components/p-abd56282.js.map +1 -0
- package/dist/components/{p-9f7e55ba.js → p-b121c0da.js} +2 -2
- package/dist/components/{p-9f7e55ba.js.map → p-b121c0da.js.map} +1 -1
- package/dist/components/{p-ff99dcde.js → p-b235b5aa.js} +5 -5
- package/dist/components/{p-ff99dcde.js.map → p-b235b5aa.js.map} +1 -1
- package/dist/components/{p-3062590d.js → p-b3cfa9a5.js} +13 -13
- package/dist/components/{p-3062590d.js.map → p-b3cfa9a5.js.map} +1 -1
- package/dist/components/{p-b0806e7f.js → p-b5f48ead.js} +28 -28
- package/dist/components/{p-b0806e7f.js.map → p-b5f48ead.js.map} +1 -1
- package/dist/components/{p-a6abef9e.js → p-b74838fd.js} +2 -2
- package/dist/components/{p-a6abef9e.js.map → p-b74838fd.js.map} +1 -1
- package/dist/components/p-ba16f7d3.js +45 -0
- package/dist/components/{p-026d5067.js.map → p-ba16f7d3.js.map} +1 -1
- package/dist/components/{p-3217c7b5.js → p-ba76192d.js} +3 -3
- package/dist/components/{p-3217c7b5.js.map → p-ba76192d.js.map} +1 -1
- package/dist/components/p-bbc6eae6.js +175 -0
- package/dist/components/{p-f5758759.js.map → p-bbc6eae6.js.map} +1 -1
- package/dist/components/{p-77aa479d.js → p-c131480d.js} +4 -4
- package/dist/components/{p-77aa479d.js.map → p-c131480d.js.map} +1 -1
- package/dist/components/{p-559c35a3.js → p-c31cce0c.js} +14 -14
- package/dist/components/{p-559c35a3.js.map → p-c31cce0c.js.map} +1 -1
- package/dist/components/{p-b1d28f3f.js → p-c3d52c12.js} +7 -7
- package/dist/components/{p-b1d28f3f.js.map → p-c3d52c12.js.map} +1 -1
- package/dist/components/{p-8677ee6e.js → p-c5f249a3.js} +14 -14
- package/dist/components/{p-8677ee6e.js.map → p-c5f249a3.js.map} +1 -1
- package/dist/components/{p-675c3d3e.js → p-c9619231.js} +12 -12
- package/dist/components/{p-675c3d3e.js.map → p-c9619231.js.map} +1 -1
- package/dist/components/{p-0eacf5f4.js → p-c98922f4.js} +2 -2
- package/dist/components/{p-0eacf5f4.js.map → p-c98922f4.js.map} +1 -1
- package/dist/components/{p-1f5357e1.js → p-ca85bc1d.js} +2 -2
- package/dist/components/{p-1f5357e1.js.map → p-ca85bc1d.js.map} +1 -1
- package/dist/components/{p-2498d762.js → p-cbf3c133.js} +45 -45
- package/dist/components/{p-2498d762.js.map → p-cbf3c133.js.map} +1 -1
- package/dist/components/{p-0fb1eac0.js → p-cef759f2.js} +5 -5
- package/dist/components/{p-0fb1eac0.js.map → p-cef759f2.js.map} +1 -1
- package/dist/components/{p-ec207ccc.js → p-d0953a9e.js} +4 -4
- package/dist/components/{p-ec207ccc.js.map → p-d0953a9e.js.map} +1 -1
- package/dist/components/{p-44f424f6.js → p-d1462fc3.js} +3 -3
- package/dist/components/{p-44f424f6.js.map → p-d1462fc3.js.map} +1 -1
- package/dist/components/{p-fd158b77.js → p-d1dcafa9.js} +4 -4
- package/dist/components/{p-fd158b77.js.map → p-d1dcafa9.js.map} +1 -1
- package/dist/components/{p-51cb1946.js → p-d3c8be66.js} +5 -5
- package/dist/components/{p-51cb1946.js.map → p-d3c8be66.js.map} +1 -1
- package/dist/components/{p-fd1daa5a.js → p-d5fe813a.js} +2 -2
- package/dist/components/{p-fd1daa5a.js.map → p-d5fe813a.js.map} +1 -1
- package/dist/components/{p-f3e69915.js → p-d693d5de.js} +9 -9
- package/dist/components/{p-f3e69915.js.map → p-d693d5de.js.map} +1 -1
- package/dist/components/{p-5a0e167d.js → p-d81a3a84.js} +3 -3
- package/dist/components/{p-5a0e167d.js.map → p-d81a3a84.js.map} +1 -1
- package/dist/components/{p-d9989605.js → p-d8bd7cc0.js} +2 -2
- package/dist/components/{p-d9989605.js.map → p-d8bd7cc0.js.map} +1 -1
- package/dist/components/{p-c8f13bb3.js → p-d969fa64.js} +2 -2
- package/dist/components/{p-c8f13bb3.js.map → p-d969fa64.js.map} +1 -1
- package/dist/components/{p-90d81e79.js → p-da4c10d0.js} +2 -2
- package/dist/components/{p-90d81e79.js.map → p-da4c10d0.js.map} +1 -1
- package/dist/components/{p-aac94573.js → p-dd3b21a0.js} +10 -10
- package/dist/components/{p-aac94573.js.map → p-dd3b21a0.js.map} +1 -1
- package/dist/components/p-e4b92c84.js +73 -0
- package/dist/components/{p-6140aafa.js.map → p-e4b92c84.js.map} +1 -1
- package/dist/components/{p-a4614623.js → p-e5627b06.js} +4 -4
- package/dist/components/{p-a4614623.js.map → p-e5627b06.js.map} +1 -1
- package/dist/components/{p-5bee4bdc.js → p-e9e71692.js} +5 -5
- package/dist/components/{p-5bee4bdc.js.map → p-e9e71692.js.map} +1 -1
- package/dist/components/{p-e87aacc3.js → p-ea4cee14.js} +15 -15
- package/dist/components/{p-e87aacc3.js.map → p-ea4cee14.js.map} +1 -1
- package/dist/components/{p-758edf83.js → p-ec3b9004.js} +4 -4
- package/dist/components/{p-758edf83.js.map → p-ec3b9004.js.map} +1 -1
- package/dist/components/{p-16c06f14.js → p-ed1e7da4.js} +3 -3
- package/dist/components/{p-16c06f14.js.map → p-ed1e7da4.js.map} +1 -1
- package/dist/components/{p-270e635e.js → p-f2969db7.js} +2 -2
- package/dist/components/{p-270e635e.js.map → p-f2969db7.js.map} +1 -1
- package/dist/components/{p-33087585.js → p-fec4d798.js} +2 -2
- package/dist/components/{p-33087585.js.map → p-fec4d798.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +97 -97
- package/dist/components/smoothly-app-demo.js.map +1 -1
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-back-to-top.js +1 -1
- package/dist/components/smoothly-burger.js +1 -1
- package/dist/components/smoothly-button-confirm.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-button.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-checkbox.js +3 -3
- package/dist/components/smoothly-color.js +1 -1
- package/dist/components/smoothly-country.js +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-json.js +1 -1
- package/dist/components/smoothly-display-demo.js +1 -1
- package/dist/components/smoothly-display-json-object.js +1 -1
- package/dist/components/smoothly-display-json-primitive.js +1 -1
- package/dist/components/smoothly-display-json-record-key.js +1 -1
- package/dist/components/smoothly-display-json.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-select.js +1 -1
- package/dist/components/smoothly-filter-toggle.js +1 -1
- package/dist/components/smoothly-filter.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-card.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.js +1 -1
- package/dist/components/smoothly-form-demo-login.js +1 -1
- package/dist/components/smoothly-form-demo-pet.js +1 -1
- package/dist/components/smoothly-form-demo-prices.js +1 -1
- package/dist/components/smoothly-form-demo-schedule.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-form.js +1 -1
- package/dist/components/smoothly-icon-demo.js +1 -1
- package/dist/components/smoothly-icon.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +29 -29
- package/dist/components/smoothly-input-checkbox.js +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-color-demo.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-time.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-edit.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.js +1 -1
- package/dist/components/smoothly-label.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-modal.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.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-body.js +1 -1
- package/dist/components/smoothly-table-cell.js +1 -1
- package/dist/components/smoothly-table-demo-colspan.js +1 -1
- package/dist/components/smoothly-table-demo-filler-row.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo-group.js +1 -1
- package/dist/components/smoothly-table-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-table-demo-nested.js +1 -1
- package/dist/components/smoothly-table-demo-simple.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-filler-row.js +1 -1
- package/dist/components/smoothly-table-foot.js +1 -1
- package/dist/components/smoothly-table-head.js +1 -1
- package/dist/components/smoothly-table-row-group.js +1 -1
- package/dist/components/smoothly-table-row.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-demo.js +1 -1
- package/dist/components/smoothly-toggle-switch.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/smoothly-app_99.entry.js +148 -148
- package/dist/esm/smoothly-app_99.entry.js.map +1 -1
- package/dist/esm/smoothly-checkbox.entry.js +2 -2
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +1 -1
- package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
- package/dist/esm/smoothly-submit.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/smoothly/{p-ad856966.entry.js → p-0e2084ab.entry.js} +2 -2
- package/dist/smoothly/{p-2f60a07e.entry.js → p-451b0f1f.entry.js} +2 -2
- package/dist/smoothly/p-542e6f79.entry.js +2 -0
- package/dist/smoothly/{p-cdb8913e.entry.js → p-87b8d337.entry.js} +2 -2
- package/dist/smoothly/{p-018e3f3c.entry.js → p-884217fa.entry.js} +2 -2
- package/dist/smoothly/p-bf1fb323.entry.js +2 -0
- package/dist/smoothly/p-bf1fb323.entry.js.map +1 -0
- package/dist/smoothly/{p-e513fb66.entry.js → p-d4de2329.entry.js} +2 -2
- package/dist/smoothly/{p-519dd2b0.entry.js → p-d52851a6.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-026d5067.js +0 -45
- package/dist/components/p-18ba7524.js +0 -48
- package/dist/components/p-18ba7524.js.map +0 -1
- package/dist/components/p-42fba537.js +0 -176
- package/dist/components/p-6140aafa.js +0 -73
- package/dist/components/p-a0df7a64.js +0 -244
- package/dist/components/p-a95bab7d.js +0 -123
- package/dist/components/p-f5758759.js +0 -175
- package/dist/smoothly/p-8deb6fb9.entry.js +0 -2
- package/dist/smoothly/p-8deb6fb9.entry.js.map +0 -1
- package/dist/smoothly/p-ec1809c5.entry.js +0 -2
- /package/dist/smoothly/{p-ad856966.entry.js.map → p-0e2084ab.entry.js.map} +0 -0
- /package/dist/smoothly/{p-2f60a07e.entry.js.map → p-451b0f1f.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ec1809c5.entry.js.map → p-542e6f79.entry.js.map} +0 -0
- /package/dist/smoothly/{p-cdb8913e.entry.js.map → p-87b8d337.entry.js.map} +0 -0
- /package/dist/smoothly/{p-018e3f3c.entry.js.map → p-884217fa.entry.js.map} +0 -0
- /package/dist/smoothly/{p-e513fb66.entry.js.map → p-d4de2329.entry.js.map} +0 -0
- /package/dist/smoothly/{p-519dd2b0.entry.js.map → p-d52851a6.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e,c as o,H as s,g as i,F as a}from"./p-ad674a4e.js";import{a as n,T as l,C as r,i as c,r as h,D as d,f as m,R as u,M as y,I as b,F as f}from"./p-cdac3cf4.js";import{B as p,S as g}from"./p-b5e2b527.js";import{T as k,L as v,a as w,D as x,c as S,d as C,C as z,o as j,s as I,b as _,e as T,n as L,A as O}from"./p-34d144e8.js";import{N as A}from"./p-ef01331e.js";import{f as M}from"./p-2257be8c.js";import"./p-ef377b79.js";function E(t){return new D(t??"any")}class D extends k{class="any";is=t=>t!=undefined}function $(){const t=navigator.language;return v.is(t)?t:w.is(t)?v.toLocale(t):undefined}const R='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}header:has(smoothly-burger[visible])>nav>ul smoothly-app-room{width:100%;height:4em}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:not([label])>smoothly-notifier>header>h1{display:none}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{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;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;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:fit-content;max-width:100%;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;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}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const P=R;const F=class{constructor(e){t(this,e);this.rooms={};this.label=undefined;this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var t;if(!this.selected&&!window.location.search)(t=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((t=>!(t===null||t===void 0?void 0:t.element.disabled))))===null||t===void 0?void 0:t.element.setSelected(true)}async selectRoom(t){var e;(e=this.rooms[t])===null||e===void 0?void 0:e.element.setSelected(true)}async selectedChanged(){var t;Object.values(this.rooms).forEach((t=>{var e;return(t===null||t===void 0?void 0:t.element.path)!=((e=this.selected)===null||e===void 0?void 0:e.element.path)&&(t===null||t===void 0?void 0:t.element.setSelected(false))}));const e=await((t=this.selected)===null||t===void 0?void 0:t.element.getContent());requestAnimationFrame((()=>{if(this.mainElement&&e)this.mainElement.replaceChildren(e)}))}burgerVisibilityHandler(t){this.burgerVisibility=t.detail}burgerStatusHandler(t){t.stopPropagation();this.menuOpen=t.detail}async locationChangeHandler(t){var e;(e=this.rooms[t.state.smoothlyPath])===null||e===void 0?void 0:e.element.setSelected(true,{history:true})}roomSelectedHandler(t){this.selected={element:t.target};if(this.burgerVisibility)this.menuOpen=false;if(!t.detail.history){const t=this.selected.element.path.toString();const e=new URL(window.location.pathname==t?window.location.href:window.location.origin);e.pathname=t;window.history.pushState({smoothlyPath:t},"",e.href)}}roomLoadedHandler(t){const e=this.rooms[t.target.path.toString()]={element:t.target};if(e.element.selected){this.selected=e;window.history.replaceState({smoothlyPath:e.element.path},"",window.location.href)}}clickHandler(t){if(this.burgerVisibility&&!t.composedPath().some((t=>t==this.burgerElement||t==this.navElement)))this.menuOpen=false}render(){return e("smoothly-notifier",{key:"ca8596edab7ca03d2790ac426dae3ed2b0a016e5"},e("header",{key:"d1d3c3b9aadde6e8ac48f6e2a0ed1dbda13efaca",color:this.color},e("h1",{key:"299cec593915416e4cbb909a9184863a5d873203"},e("a",{key:"97c7829f4faf239c853eaf96355ebc40871e9827",href:""},this.label)),e("slot",{key:"199d31b149daaeb1cd9b5323dba192dda646ecb8",name:"header"}),e("nav",{key:"a4b4229f4a441c44c11fc191f3148c28bb0bfb77",ref:t=>this.navElement=t},e("ul",{key:"83d549969e763e30e1b9b7f93319588637dea8a8"},e("div",{key:"2e668a0eca12985f4c134ba47b04eae2888dd487",class:"nav-start-container"},e("slot",{key:"2b38080d9a134492fa81c2d902331fb9c7bb6fbb",name:"nav-start"})),e("slot",{key:"7a4264888094eeafebff0f1b608a440f721c7d80"}),e("div",{key:"7db0a3a05fdb6e8c8c22cafb01aeb1d7099a6f8b",class:"nav-end-container"},e("slot",{key:"7edaccd0522fdece150fd91d5dd8bfa8f7399b71",name:"nav-end"})))),e("smoothly-burger",{key:"5228e136cd1af7109fcc6556a9745c3db170a4c6",ref:t=>this.burgerElement=t,open:this.menuOpen,onSmoothlyNavStatus:t=>this.burgerStatusHandler(t),onSmoothlyVisibleStatus:t=>this.burgerVisibilityHandler(t)})),e("main",{key:"13e58905f69f051662d77529c7f5bedc7fb82572",ref:t=>this.mainElement=t}))}static get watchers(){return{selected:["selectedChanged"]}}};F.style=P;const H=class{constructor(e){t(this,e);this.baseUrl=undefined}render(){return e("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:t=>this.app=t},e("smoothly-app-room",{key:"85bdb920a4cec5690305c57ef11b4b73f447c0bf",path:"/"},e("section",{key:"d47727e787b05a0d0967b8163c9c58d06fe51aae",style:{padding:"1em",maxWidth:"32em",margin:"0 auto"}},e("header",{key:"03c54ddb20c1dcf03a60064cfedffa85ca0ced63"},e("h1",{key:"99d367240e9e297cc1add3ef17025174f3c5c755"},"Welcome")),e("p",{key:"9a40f185f369a48250800c705eb696a3bd26c8cc"},"Smoothly is a component library written in ",e("a",{key:"89580a4c8ecc4c51db342447b1a38f99ad171234",href:"http://stenciljs.com"},"Stencil"),". It can therefore be used across web based frontend toolchains such as React, Vue, Angular, Svelte, and even plain HTML."),e("p",{key:"b6fff912b28bb704fabd933b4f8bb20e732e05c7"},"This is particularly useful when trying to unifying the user experience across projects written in different technology stacks. It is also written to minimize the amount of code you need to write to achieve a nice user experience."))),e("smoothly-app-room",{key:"deac2fa2f54e269eee396c3d22edd4356ba46b27",path:"/form",label:"Forms",content:e("smoothly-form-demo",null)}),e("smoothly-app-room",{key:"d126eddf7b846dc7867f76a1e79e8c0aea3dc104",path:"/input",label:"Inputs",content:e("smoothly-input-demo",null)}),e("smoothly-app-room",{key:"631bc052402b12971f763c9f67b5e765576af335",path:"/table",label:"Tables",content:e("smoothly-table-demo",null)}),e("smoothly-app-room",{key:"404c6baa19f137d8cf7e4ef1ea8b4d6b7acec7a5",path:"/button",label:"Buttons",content:e("smoothly-button-demo",null)}),e("smoothly-app-room",{key:"ca2c1e442eb84bdd05144b47ebeaeec665921763",path:"/icon",label:"Icons",content:e("smoothly-icon-demo",null)}),e("smoothly-app-room",{key:"3ef2dfe590dcf35c374f66b01d7461c4bc5d3315",path:"/theme",label:"Theming",content:e("smoothly-theme-demo",null)}),e("smoothly-app-room",{key:"996329ff5578821430839a8329602557d8b35d07",path:"/dialog",label:"Dialogs",content:e("smoothly-dialog-demo",null),slot:"nav-end"}),e("smoothly-app-room",{key:"10c2ce61fade60508756db67a65cf875a67b8d31",path:"/display",label:"Display",content:e("smoothly-display-demo",null),slot:"nav-end"}),e("smoothly-app-room",{key:"dae62864d7bf7d39bba3406696ac6cf3b557037a",path:"/tabs",label:"Tabs",slot:"nav-end"},e("smoothly-tabs-demo",{key:"e27a260608972b5433792874a20319707f63d892"})),e("smoothly-app-room",{key:"504d400a32ed9c9788e524d0fd45540f1cce847a",path:"/links",label:"Links",slot:"nav-end"},e("smoothly-input",{key:"e7ceaa22d7d81f3de43811b3fb5b3dc134f3e5bb",type:"text"},"Default"),e("div",{key:"bbdfd8ad120568fe607633fb588ecc67d591bf2d",style:{padding:"1em",maxWidth:"12em"}},e("smoothly-button",{key:"1b5522a4fa3186436eb48f5a49142abdc69859fe",fill:"solid",color:"danger",link:"https://google.com"},"open"),e("smoothly-button",{key:"17ae745a6e90dd94dc51d5959e10b25d5273bee7",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),e("smoothly-button",{key:"b127a29fd4e4ea738f436c64b52e682ddf8a84cc",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"ed71219b2fb38b3016ff09dee36b0031c270e5a6",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"8fdff6cb0ed7981ff19a1fbd9ad81da0eda547d8",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),e("smoothly-app-room",{key:"8bb16ffa57c618efaaae0a2d21c32d09dbd65347",path:"/redirect",label:"Redirect",slot:"nav-end"},e("smoothly-button",{key:"c6815e44d4787c9ad54c30115f68f63d209454cd",type:"link",link:"/input"},"To input"),e("smoothly-button",{key:"a0faa90c3f06b94020e4c2c4ad74fe8b9523654c",type:"link",link:"../button"},"To button"),e("smoothly-button",{key:"f2f54a2efa26bfe2c586cc1770b2c4892d00224e",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),e("smoothly-button",{key:"780dccc231035cdf42b814ff25ab54f14d155e49",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"53b5ea0d44d241691022ac0cb20bb2dacb9b4b11",type:"link",link:"nested"},"To redirect nested, relative path")),e("smoothly-app-room",{key:"0ea49f1e50e0bbd1391e159cda3a0220cba3c4e3",path:"/hidden"},e("p",{key:"da7730eebeb034ef0e49bb72e257d55aa8c3d0d2"},"hello world!")),e("smoothly-app-room",{key:"007d7288fdd999a8212da09f70ff8edfeb4e5ae8",path:"/redirect/nested"},"this is a nested room"))}};var N=class{constructor(t,e,o,s,i,a){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=t;this.name=e;this.prefix=o;this.value=s;this.suffix=i;this.modifier=a}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var Y=/[$_\p{ID_Start}]/u;var U=/[$_\u200C\u200D\p{ID_Continue}]/u;var W=".*";function B(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function V(t,e=false){const o=[];let s=0;while(s<t.length){const i=t[s];const a=function(i){if(!e)throw new TypeError(i);o.push({type:"INVALID_CHAR",index:s,value:t[s++]})};if(i==="*"){o.push({type:"ASTERISK",index:s,value:t[s++]});continue}if(i==="+"||i==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:t[s++]});continue}if(i==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});continue}if(i==="{"){o.push({type:"OPEN",index:s,value:t[s++]});continue}if(i==="}"){o.push({type:"CLOSE",index:s,value:t[s++]});continue}if(i===":"){let e="";let i=s+1;while(i<t.length){const o=t.substr(i,1);if(i===s+1&&Y.test(o)||i!==s+1&&U.test(o)){e+=t[i++];continue}break}if(!e){a(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:e});s=i;continue}if(i==="("){let e=1;let i="";let n=s+1;let l=false;if(t[n]==="?"){a(`Pattern cannot start with "?" at ${n}`);continue}while(n<t.length){if(!B(t[n],false)){a(`Invalid character '${t[n]}' at ${n}.`);l=true;break}if(t[n]==="\\"){i+=t[n++]+t[n++];continue}if(t[n]===")"){e--;if(e===0){n++;break}}else if(t[n]==="("){e++;if(t[n+1]!=="?"){a(`Capturing groups are not allowed at ${n}`);l=true;break}}i+=t[n++]}if(l){continue}if(e){a(`Unbalanced pattern at ${s}`);continue}if(!i){a(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:i});s=n;continue}o.push({type:"CHAR",index:s,value:t[s++]})}o.push({type:"END",index:s,value:""});return o}function G(t,e={}){const o=V(t);e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");const s=`[^${K(e.delimiter)}]+?`;const i=[];let a=0;let n=0;let l=new Set;const r=t=>{if(n<o.length&&o[n].type===t)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const h=t=>{const e=r(t);if(e!==void 0)return e;const{type:s,index:i}=o[n];throw new TypeError(`Unexpected ${s} at ${i}, expected ${t}`)};const d=()=>{let t="";let e;while(e=r("CHAR")??r("ESCAPED_CHAR")){t+=e}return t};const m=t=>t;const u=e.encodePart||m;let y="";const b=t=>{y+=t};const f=()=>{if(!y.length){return}i.push(new N(3,"","",u(y),"",3));y=""};const p=(t,e,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!e&&!o&&c===3){b(t);return}f();if(!e&&!o){if(!t){return}i.push(new N(3,"","",u(t),"",c));return}let h;if(!o){h=s}else if(o==="*"){h=W}else{h=o}let d=2;if(h===s){d=1;h=""}else if(h===W){d=0;h=""}let m;if(e){m=e}else if(o){m=a++}if(l.has(m)){throw new TypeError(`Duplicate name '${m}'.`)}l.add(m);i.push(new N(d,m,u(t),h,u(n),c))};while(n<o.length){const t=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let i=t??"";if(e.prefixes.indexOf(i)===-1){b(i);i=""}f();let a=c();p(i,o,s,"",a);continue}const i=t??r("ESCAPED_CHAR");if(i){b(i);continue}const a=r("OPEN");if(a){const t=d();const e=r("NAME");let o=r("REGEX");if(!e&&!o){o=r("ASTERISK")}const s=d();h("CLOSE");const i=c();p(t,e,o,s,i);continue}f();h("END")}return i}function K(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Z(t){return t&&t.ignoreCase?"ui":"u"}function q(t,e,o){return J(G(t,o),e,o)}function X(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function J(t,e,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 i of t){if(i.type===3){if(i.modifier===3){s+=K(i.value)}else{s+=`(?:${K(i.value)})${X(i.modifier)}`}continue}if(e)e.push(i.name);const t=`[^${K(o.delimiter)}]+?`;let a=i.value;if(i.type===1)a=t;else if(i.type===0)a=W;if(!i.prefix.length&&!i.suffix.length){if(i.modifier===3||i.modifier===1){s+=`(${a})${X(i.modifier)}`}else{s+=`((?:${a})${X(i.modifier)})`}continue}if(i.modifier===3||i.modifier===1){s+=`(?:${K(i.prefix)}(${a})${K(i.suffix)})`;s+=X(i.modifier);continue}s+=`(?:${K(i.prefix)}`;s+=`((?:${a})(?:`;s+=K(i.suffix);s+=K(i.prefix);s+=`(?:${a}))*)${K(i.suffix)})`;if(i.modifier===0){s+="?"}}const i=`[${K(o.endsWith)}]|$`;const a=`[${K(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${a}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${i})`}return new RegExp(s,Z(o))}if(!o.strict){s+=`(?:${a}(?=${i}))?`}let n=false;if(t.length){const e=t[t.length-1];if(e.type===3&&e.modifier===3){n=o.delimiter.indexOf(e)>-1}}if(!n){s+=`(?=${a}|${i})`}return new RegExp(s,Z(o))}var Q={delimiter:"",prefixes:"",sensitive:true,strict:true};var tt={delimiter:".",prefixes:"",sensitive:true,strict:true};var et={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function ot(t,e){if(!t.length){return false}if(t[0]==="/"){return true}if(!e){return false}if(t.length<2){return false}if((t[0]=="\\"||t[0]=="{")&&t[1]=="/"){return true}return false}function st(t,e){if(t.startsWith(e)){return t.substring(e.length,t.length)}return t}function it(t,e){if(t.endsWith(e)){return t.substr(0,t.length-e.length)}return t}function at(t){if(!t||t.length<2){return false}if(t[0]==="["){return true}if((t[0]==="\\"||t[0]==="{")&&t[1]==="["){return true}return false}var nt=["ftp","file","http","https","ws","wss"];function lt(t){if(!t){return true}for(const e of nt){if(t.test(e)){return true}}return false}function rt(t,e){t=st(t,"#");if(e||t===""){return t}const o=new URL("https://example.com");o.hash=t;return o.hash?o.hash.substring(1,o.hash.length):""}function ct(t,e){t=st(t,"?");if(e||t===""){return t}const o=new URL("https://example.com");o.search=t;return o.search?o.search.substring(1,o.search.length):""}function ht(t,e){if(e||t===""){return t}if(at(t)){return wt(t)}else{return vt(t)}}function dt(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.password=t;return o.password}function mt(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.username=t;return o.username}function ut(t,e,o){if(o||t===""){return t}if(e&&!nt.includes(e)){const o=new URL(`${e}:${t}`);return o.pathname}const s=t[0]=="/";t=new URL(!s?"/-"+t:t,"https://example.com").pathname;if(!s){t=t.substring(2,t.length)}return t}function yt(t,e,o){if(ft(e)===t){t=""}if(o||t===""){return t}return xt(t)}function bt(t,e){t=it(t,":");if(e||t===""){return t}return pt(t)}function ft(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function pt(t){if(t===""){return t}if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function gt(t){if(t===""){return t}const e=new URL("https://example.com");e.username=t;return e.username}function kt(t){if(t===""){return t}const e=new URL("https://example.com");e.password=t;return e.password}function vt(t){if(t===""){return t}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t)){throw new TypeError(`Invalid hostname '${t}'`)}const e=new URL("https://example.com");e.hostname=t;return e.hostname}function wt(t){if(t===""){return t}if(/[^0-9a-fA-F[\]:]/g.test(t)){throw new TypeError(`Invalid IPv6 hostname '${t}'`)}return t.toLowerCase()}function xt(t){if(t===""){return t}if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535){return t}throw new TypeError(`Invalid port '${t}'.`)}function St(t){if(t===""){return t}const e=new URL("https://example.com");e.pathname=t[0]!=="/"?"/-"+t:t;if(t[0]!=="/"){return e.pathname.substring(2,e.pathname.length)}return e.pathname}function Ct(t){if(t===""){return t}const e=new URL(`data:${t}`);return e.pathname}function zt(t){if(t===""){return t}const e=new URL("https://example.com");e.search=t;return e.search.substring(1,e.search.length)}function jt(t){if(t===""){return t}const e=new URL("https://example.com");e.hash=t;return e.hash.substring(1,e.hash.length)}var It=class{constructor(t){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=t}get result(){return this.internalResult}parse(){this.tokenList=V(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 t=7;let e=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){t=2;e=3}else if(this.shouldTreatAsStandardURL){t=2}this.changeState(t,e)}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(t,e){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(t,e)}changeStateWithoutSettingComponent(t,e){this.state=t;this.componentStart=this.tokenIndex+e;this.tokenIndex+=e;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(t){this.rewind();this.state=t}safeToken(t){if(t<0){t=this.tokenList.length-t}if(t<this.tokenList.length){return this.tokenList[t]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(t,e){const o=this.safeToken(t);return o.value===e&&(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 t=this.safeToken(this.tokenIndex-1);return t.type!=="NAME"&&t.type!=="REGEX"&&t.type!=="CLOSE"&&t.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 t=this.tokenList[this.tokenIndex];const e=this.safeToken(this.componentStart).index;return this.input.substring(e,t.index)}computeShouldTreatAsStandardURL(){const t={};Object.assign(t,Q);t.encodePart=pt;const e=q(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=lt(e)}};var _t=["protocol","username","password","hostname","port","pathname","search","hash"];var Tt="*";function Lt(t,e){if(typeof t!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(t,e);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 Ot(t,e){if(!e){return t}return Mt(t)}function At(t,e,o){let s;if(typeof e.baseURL==="string"){try{s=new URL(e.baseURL);t.protocol=Ot(s.protocol.substring(0,s.protocol.length-1),o);t.username=Ot(s.username,o);t.password=Ot(s.password,o);t.hostname=Ot(s.hostname,o);t.port=Ot(s.port,o);t.pathname=Ot(s.pathname,o);t.search=Ot(s.search.substring(1,s.search.length),o);t.hash=Ot(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}}if(typeof e.protocol==="string"){t.protocol=bt(e.protocol,o)}if(typeof e.username==="string"){t.username=mt(e.username,o)}if(typeof e.password==="string"){t.password=dt(e.password,o)}if(typeof e.hostname==="string"){t.hostname=ht(e.hostname,o)}if(typeof e.port==="string"){t.port=yt(e.port,t.protocol,o)}if(typeof e.pathname==="string"){t.pathname=e.pathname;if(s&&!ot(t.pathname,o)){const e=s.pathname.lastIndexOf("/");if(e>=0){t.pathname=Ot(s.pathname.substring(0,e+1),o)+t.pathname}}t.pathname=ut(t.pathname,t.protocol,o)}if(typeof e.search==="string"){t.search=ct(e.search,o)}if(typeof e.hash==="string"){t.hash=rt(e.hash,o)}return t}function Mt(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function Et(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Dt(t,e){e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");e.sensitive??(e.sensitive=false);e.strict??(e.strict=false);e.end??(e.end=true);e.start??(e.start=true);e.endsWith="";const o=".*";const s=`[^${Et(e.delimiter)}]+?`;const i=/[$_\u200C\u200D\p{ID_Continue}]/u;let a="";for(let n=0;n<t.length;++n){const l=t[n];if(l.type===3){if(l.modifier===3){a+=Mt(l.value);continue}a+=`{${Mt(l.value)}}${X(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!e.prefixes.includes(l.prefix));const h=n>0?t[n-1]:null;const d=n<t.length-1?t[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&d&&!d.prefix.length&&!d.suffix.length){if(d.type===3){const t=d.value.length>0?d.value[0]:"";c=i.test(t)}else{c=!d.hasCustomName()}}if(!c&&!l.prefix.length&&h&&h.type===3){const t=h.value[h.value.length-1];c=e.prefixes.includes(t)}if(c){a+="{"}a+=Mt(l.prefix);if(r){a+=`:${l.name}`}if(l.type===2){a+=`(${l.value})`}else if(l.type===1){if(!r){a+=`(${s})`}}else if(l.type===0){if(!r&&(!h||h.type===3||h.modifier!==3||c||l.prefix!=="")){a+="*"}else{a+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(i.test(l.suffix[0])){a+="\\"}}a+=Mt(l.suffix);if(c){a+="}"}if(l.modifier!==3){a+=X(l.modifier)}}return a}var $t=class{constructor(t={},e,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof e==="string"){s=e}else{o=e}if(typeof t==="string"){const e=new It(t);e.parse();t=e.result;if(s===void 0&&typeof t.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}t.baseURL=s}else{if(!t||typeof t!=="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 i={ignoreCase:o.ignoreCase===true};const a={pathname:Tt,protocol:Tt,username:Tt,password:Tt,hostname:Tt,port:Tt,search:Tt,hash:Tt};this.pattern=At(a,t,true);if(ft(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of _t){if(!(n in this.pattern))continue;const t={};const e=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(t,Q);t.encodePart=pt;break;case"username":Object.assign(t,Q);t.encodePart=gt;break;case"password":Object.assign(t,Q);t.encodePart=kt;break;case"hostname":Object.assign(t,tt);if(at(e)){t.encodePart=wt}else{t.encodePart=vt}break;case"port":Object.assign(t,Q);t.encodePart=xt;break;case"pathname":if(lt(this.regexp.protocol)){Object.assign(t,et,i);t.encodePart=St}else{Object.assign(t,Q,i);t.encodePart=Ct}break;case"search":Object.assign(t,Q,i);t.encodePart=zt;break;case"hash":Object.assign(t,Q,i);t.encodePart=jt;break}try{this.parts[n]=G(e,t);this.regexp[n]=J(this.parts[n],this.names[n],t);this.component_pattern[n]=Dt(this.parts[n],t)}catch(t){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},e){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&e){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return false}try{if(typeof t==="object"){o=At(o,t,false)}else{o=At(o,Lt(t,e),false)}}catch(t){return false}let s;for(s of _t){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(t={},e){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&e){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return}try{if(typeof t==="object"){o=At(o,t,false)}else{o=At(o,Lt(t,e),false)}}catch(t){return null}let s={};if(e){s.inputs=[t,e]}else{s.inputs=[t]}let i;for(i of _t){let t=this.regexp[i].exec(o[i]);if(!t){return null}let e={};for(let[o,s]of this.names[i].entries()){if(typeof s==="string"||typeof s==="number"){let i=t[o+1];e[s]=i}}s[i]={input:o[i]??"",groups:e}}return s}static compareComponent(t,e,o){const s=(t,e)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(t[o]<e[o])return-1;else if(t[o]===e[o])continue;else return 1}return 0};const i=new N(3,"","","","",3);const a=new N(0,"","","","",3);const n=(t,e)=>{let o=0;for(;o<Math.min(t.length,e.length);++o){let i=s(t[o],e[o]);if(i)return i}if(t.length===e.length){return 0}return s(t[o]??i,e[o]??i)};if(!e.component_pattern[t]&&!o.component_pattern[t]){return 0}if(e.component_pattern[t]&&!o.component_pattern[t]){return n(e.parts[t],[a])}if(!e.component_pattern[t]&&o.component_pattern[t]){return n([a],o.parts[t])}return n(e.parts[t],o.parts[t])}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=$t}const Rt='.sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer;height:100%;position:relative}.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}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:none}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{position:absolute;color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));border-radius:0.25rem;pointer-events:none}[icon][label].sc-smoothly-app-room-h:hover::before{content:"";bottom:-1.75rem;transform:rotate(45deg);width:1.25em;height:1.25em}[icon][label].sc-smoothly-app-room-h:hover::after{content:attr(label);white-space:nowrap;bottom:-3.25rem;padding:.5rem 1rem;border-radius:.25rem}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:unset;padding:0 1rem}.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}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{content:unset}}';const Pt=Rt;const Ft=class{constructor(e){t(this,e);this.smoothlyRoomSelect=o(this,"smoothlyRoomSelect",7);this.smoothlyRoomLoad=o(this,"smoothlyRoomLoad",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.smoothlyRoomLoad.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(t,e){this.selected=t;if(t)this.smoothlyRoomSelect.emit({history:!!(e===null||e===void 0?void 0:e.history)})}clickHandler(t){if(!t.metaKey&&!t.ctrlKey&&t.which!=2&&t.button!=1){t.preventDefault();this.setSelected(true)}}render(){return e(s,{key:"6eab15e4c0747f152c898fcb1969460af052d108"},e("li",{key:"2db436defe1028a66ef19a2bbd5348bda5ddcf28"},e("a",{key:"120eb06853ed283b30aea0151eddf1e09b591c74",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:t=>this.clickHandler(t)},this.icon&&e("smoothly-icon",{key:"6c3d5c9aa929c3054f69589e791af769ddc388f0",name:this.icon}),this.label&&e("span",{key:"de38c06e82e85b9a4d6d94ab5e56211d8f121142",class:"label"},this.label))),e("div",{key:"f73931b20dd9a48bfa911129591e31749875917b",ref:t=>this.contentElement=t},this.content&&e("smoothly-lazy",{key:"36ffa7a77bd7317a04b84f82a1846d4ca8f41a8d",content:this.content}),e("slot",{key:"6ccdfed94a22ad7ece2388fba3d4734aa6a2b509"})))}};Ft.style=Pt;const Ht=".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 Nt=Ht;const Yt=class{constructor(e){t(this,e);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var t;this.scrollableParent=n.findParent(this.element);(t=this.scrollableParent)===null||t===void 0?void 0:t.addEventListener("scroll",(()=>{var t,e;this.visible=((e=(t=this.scrollableParent)===null||t===void 0?void 0:t.scrollTop)!==null&&e!==void 0?e:0)>20}))}render(){const t={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return e(s,{key:"baf97943484b567fb756707ac58a22f1445fa91a",style:t,onClick:()=>{var t;return(t=this.scrollableParent)===null||t===void 0?void 0:t.scrollTo({top:0,left:0,behavior:"smooth"})}},e("smoothly-icon",{key:"d560b65f6c2133406a5dedafb59c5e3c513587b4",name:"caret-up-outline"}))}get element(){return i(this)}};Yt.style=Nt;const Ut="[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{--smoothly-icon-size:3rem;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 Wt=Ut;const Bt=class{constructor(e){t(this,e);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(t){if(this.visible)this.open=!this.open}resizeHandler(){const t=window.matchMedia(this.mediaQuery).matches;if(t!=this.history){if(t){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=t}render(){return e(s,{key:"7361aec3225da683952809dbd6dce297e09b84da"},e("span",{key:"f17f0f059c3263f334df3733b7d1b6e977fd6d0c",class:"burger"},e("smoothly-icon",{key:"d5e02f20a96f19685e5f5d8234d50f8c58911da2",name:"menu"})))}get element(){return i(this)}static get watchers(){return{open:["openChanged"]}}};Bt.style=Wt;const Vt='[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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-button-h{display:inline}[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>a.sc-smoothly-button:empty,.sc-smoothly-button-h>button.sc-smoothly-button:empty{border-width:0}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[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;--smoothly-button-border-radius:0}[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-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear])>button.sc-smoothly-button:hover,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:hover::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:focus-within::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.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{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))}[hidden].sc-smoothly-button-h{display:none}';const Gt=Vt;const Kt=class{constructor(e){t(this,e);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type=undefined;this.size=undefined;this.shape=undefined;this.link=undefined}render(){return e(p,{key:"9e1e36b3efacdf206d7366bae028b7831056c611",disabled:this.disabled,type:this.type,link:this.link},e("slot",{key:"632f7e7c2d75774dd32754b59d8299274fe5dc88"}))}};Kt.style=Gt;const Zt=".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 qt=Zt;const Xt=class{constructor(e){t(this,e);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.size=undefined;this.clickTimeStamp=undefined}clickHandler(t){if(this.clickTimeStamp&&t.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=t.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return e(s,{key:"81ee6d6cd788b6c2c191a173211228f2282d9a48",warning:this.clickTimeStamp},e("smoothly-button",{key:"21053d68c60f203e70b0381d774550ab74d58dc6",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:t=>this.clickHandler(t)},e("smoothly-icon",{key:"9fe4fe83f179209be811c930c6b5546b344ececb",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),e("smoothly-button",{key:"81191f3fd3c2d1aaa897ea8e4c608c79477ece27",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:t=>this.clickHandler(t)},e("slot",{key:"be8412810360c30abde1d4bcfd81f10f2e9cfd06"})))}};Xt.style=qt;const Jt="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}";const Qt=Jt;const te=class{constructor(e){t(this,e)}render(){return[e("h2",{key:"6b4e2e7fd6f5ac09bf5f659910bd3ab9649c8c74"},"Buttons"),e("section",{key:"a8c21a672eb93d92facc1a04cf5a1c16cf253c54"},e("h4",{key:"95f09c04d6895f06194954208cc61da1b416a878"},"Confirm button (two clicks)"),e("div",{key:"ece6df70c9c0c924b9965b4cc20ca9ca411eef19"},e("smoothly-button-confirm",{key:"b356531d3d7858014146ccae0006bffc78e4c5b2",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),e("smoothly-button-confirm",{key:"4a0228367ca0e7939537c6ac0b91137b84d53545",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},e("smoothly-icon",{key:"c13e9507e37915a2e7050dc70f9a1a31768430c9",name:"checkmark-outline",size:"tiny"})),e("smoothly-button-confirm",{key:"97fc730307b1148d23cf1aa7a09f2c93f3b7989c",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},e("smoothly-icon",{key:"f62955f5e18b64bb3e43eeb7dc1bd3ab3fe7030a",name:"trash-outline",size:"tiny",fill:"outline"}))),e("smoothly-toggle-switch-demo",{key:"3b8cb29571361ca1788d77a85ae53cbbe4475fe6"}),e("h4",{key:"5e3b0eef700dc84413d57bf4d825a5145cdabaac"},"Links with icons"),e("smoothly-button",{key:"caead3e80f98af9ae50658b45670f1dc5f56131a",type:"link"},e("smoothly-icon",{key:"3bb40c487d33085525f382d7361609249b0225aa",name:"checkmark-circle",slot:"start"}),"type link"),e("smoothly-button",{key:"2e7e16027df719fb69990bdfd3936fb9f1869004",type:"button",color:"warning",fill:"default"},e("smoothly-icon",{key:"1600004998730dc8abde02c692a3b01a89fec5a2",name:"call",slot:"start"}),e("a",{key:"2771f2031a33e31d3eb9b5f1c0f38127ec0f8015",href:"https://google.com"},"link")),e("smoothly-button",{key:"e3b44f6c7b09e0f915bc630c2f7f340ff9f5f9b3",link:"https://google.com",type:"link"},e("smoothly-icon",{key:"5f8ad3b08806ddc5cd7e3368e8a6248ca7b86d4f",name:"arrow-forward",slot:"end"}),"link + type link"),e("h4",{key:"38623ab73ffd29c4b8896a88f6266e9bd6760f44"},"Size and Color test"),e("smoothly-button",{key:"871fed09c8276e9f3eed438ceffaa25c7ab4132d",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),e("smoothly-button",{key:"3c41d7224734ce85fec74214642e4804b7dcd1f3",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),e("smoothly-button",{key:"2e515425a5af576e1eee7ba100b6407a74479faf",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),e("smoothly-button",{key:"e1ea7debe613f227b18fba7795d4358739d4b498",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),e("smoothly-button",{key:"88ce6a163227ece5cfa30b78dc04c8dd33572fbc",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),e("smoothly-button",{key:"d215c603d81bf548e741f167980142b91d606ad7",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),e("smoothly-button",{key:"442b7e5070fde2adaf9581b082bcb366bc99d440",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),e("smoothly-button",{key:"97f4719f87607a0f0652c4c63c7a343e7e193e61",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),e("smoothly-button",{key:"fdab4a41358222e77b53fb9e2b792debba0009af",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),e("h4",{key:"1a494d56ffb18e63e882a9a15a9708680305645a"},"Expand examples"),e("smoothly-button",{key:"236c7b8f85e0fa08b09ab12ea66f0222541ca276",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),e("smoothly-button",{key:"d37bdedd651be01d3bd5571179301e1e5cd48473",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),e("h4",{key:"7d253a8d81a443a68601b833fa939bbea608f9b6"},"Fill examples"),e("div",{key:"b27b8b79542e09c9dfca65a1f4b880ff12c2f752"},e("smoothly-button",{key:"103064fe4143fdaf8053c343e4a8f8786d65fe4c",shape:"rounded",color:"primary",fill:"solid"},e("smoothly-icon",{key:"a9e90f809579431741dfdd357bf50dc7c7bfc123",name:"checkmark-circle",slot:"start"}),"Fill Solid"),e("smoothly-button",{key:"1f5e1196f7b1b41e1d7db735dae6baba5aa661bf",shape:"rounded",color:"secondary",fill:"outline"},e("smoothly-icon",{key:"5302e9c8dc0fef41953d4cbd30d1105825d0c2c9",name:"checkmark-circle",slot:"start"}),"Fill Outline"),e("smoothly-button",{key:"5f898650f52cec4e6e5255cebe3e62f4ef7cd3f2",shape:"rounded",color:"tertiary",fill:"clear"},e("smoothly-icon",{key:"73b680ad46cc7b54e3605857522eb6a7a5779f72",name:"checkmark-circle",slot:"start"}),"Fill Clear"),e("smoothly-button",{key:"049c9368a151fd6818e32a9cc2c3c839a2dfe1ce",size:"icon",shape:"rounded",color:"success",fill:"solid"},e("smoothly-icon",{key:"d089a85ca9f3abb8559c0f0d4777a642954334f8",name:"basketball"}))),e("h4",{key:"0801a466f4362bee9a68fbea8df5f68f23563ac0"},'Buttons with Icon in "start"'),e("div",{key:"53f0992772870859e577d2d33db8b0a26c60694b"},e("smoothly-button",{key:"8cc2bfa082a2563e6360524b58e1ff57b6378a33",shape:"rounded",fill:"solid",color:"warning"},e("smoothly-icon",{key:"5bfd5295b8bee2a4a3472501d485284214dd3aa2",name:"checkmark-circle",slot:"start"}),"Check"),e("smoothly-button",{key:"68aec74f5a8a131ff4a13403fb02c089ac740090",shape:"rounded",fill:"solid",color:"secondary"},e("smoothly-icon",{key:"5d9c4f3ccade43c8082c932ff5ce0cb607b3f75e",name:"basketball",slot:"start"}),"Check"),e("smoothly-button",{key:"4dce21084d04b79bd4a99c223d6a7782a7dd05fb",shape:"rounded",fill:"solid",color:"success"},e("smoothly-icon",{key:"207d7e15ba1ca9095a8372efc9fb64fa5010549e",name:"call",slot:"start"}),"Check"),e("smoothly-button",{key:"d348f3dbb66b1a0a1643455642fea121aeb402c7",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"36eda8b6c89687d69851bfc4dcc8bda3091395f4",name:"call"})),e("smoothly-button",{key:"42069af5842c8daf5373875caf73825ce791c2df",size:"flexible",fill:"solid",color:"success"},e("smoothly-icon",{key:"16983ae9151c3919ba993551b545210065a319f4",name:"airplane"}))),e("h4",{key:"6811065a92ab3388cc44e23b0262da45de83f553"},'Buttons with Icon in "end"'),e("smoothly-button",{key:"5ad9f07473c06714f5a55fcf6c4aa30c29571814",fill:"solid",color:"light"},"Go Forward",e("smoothly-icon",{key:"0e50649ffa9b6b9c29b314d836024df21f40daaf",name:"arrow-forward",slot:"end"})),e("h4",{key:"9d15cf0f0b56f2ee347ef098ca081edc23b28d94"},"Test for icon button"),e("div",{key:"b68bda362262be40014b44f1177d457feac98887"},e("smoothly-button",{key:"14795f5d84fb482925e9176bcedceaa541f04a5b",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"e4babc292f88030ef23bcf9035eb2ab67ffa63a7",name:"call"})),e("smoothly-button",{key:"e4ebda1f7fa126830b3635190bd8d1088f9c697e",size:"icon",shape:"rounded",color:"warning",fill:"solid"},e("smoothly-icon",{key:"c6f841256c358e74c7ca8377e1a09ff9d7a5fcb0",name:"search-outline"})),e("smoothly-button",{key:"4832663b7f348e853e28ce8ee562781c6843c3ab",size:"icon",shape:"rounded",color:"secondary"},e("smoothly-icon",{key:"d70b361928afa7a6430ffea309aa94fca9f652e3",name:"checkmark-circle"}))),e("h4",{key:"28853956975db199dfb10524a9b865abe9406e5b"},"Link examples"),e("div",{key:"31d234a7798018a01991555e05859615b9cb4697"},e("smoothly-button",{key:"5674f0f72eb5ad235848a5ea85ec2be102748260",type:"link"},"type link"),e("smoothly-button",{key:"c39ce5f8638024fd5a011c509184bf3199006bbb",type:"button",fill:"clear"},e("a",{key:"2004dc3d932120e24dfd8a828d31d52564c6cf01",href:"https://google.com"},"link")),e("smoothly-button",{key:"a643dca03c3e7777ecf2b73f084962831de9f4f5",link:"https://google.com",type:"link"},"link + type link")),e("h4",{key:"a84c1c3fb3ff714eb47a4d678ab39a74c2f42924"},"Disabled buttons"),e("div",{key:"3a856f60153bc8cf90889aaaade7292480b29dc2"},e("smoothly-button",{key:"64484bb626d5abfacfb09da406f2281b5da10757",disabled:true,fill:"solid",color:"secondary"},"Disabled"),e("smoothly-button",{key:"e8059bff4c591dd79a57b70624db79c7b5ac3bdf",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),e("smoothly-back-to-top",{key:"5b644a9126f87a1036b9d8038f94c227d305dee8"})]}};te.style=Qt;function ee(t){const e=new Date(t);e.setDate(1);let o=-((e.getDay()+6)%7)+1;const s=[];for(let e=0;e<6;e++){const i=[];for(let e=0;e<7;e++){const e=new Date(t);e.setUTCDate(o++);i.push(x.create(e))}if(e<5||x.firstOfMonth(i[0])==x.firstOfMonth(t))s.push(i)}return s}function oe(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const e=[];for(let o=0;o<7;o++){e.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return e}function se(t){const e=new globalThis.Date(t);const o=[];for(let s=0;s<12;s++){e.setMonth(s,28);const i=x.create(e);o.push({date:i,name:e.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function ie(t,e,o){const s=new globalThis.Date(t);const i=e?x.getYear(e):(new Date).getFullYear()-50;const a=o?x.getYear(o):(new Date).getFullYear()+50;const n=[];for(let e=i;e<=a;e++){s.setFullYear(e);const o=x.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return n}const ae='.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;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.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-calendar-weekend-foreground, 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-calendar-weekend-foreground, 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.today.sc-smoothly-calendar::before{content:"";inset:2px;position:absolute;border:1px solid currentColor}.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 ne=ae;const le=class{constructor(e){t(this,e);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=undefined;this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.doubleInput=undefined;this.firstSelected=undefined}onStart(t){this.smoothlyStartChange.emit(t)}onEnd(t){this.smoothlyEndChange.emit(t)}onClick(t){this.smoothlyValueChange.emit(this.value=t);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=t;else{if(this.start&&t>this.start)this.end=t;else this.start=t}}!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(t){if(this.doubleInput&&this.clickCounter%2==1){if(t<this.frozenDate){this.start=t;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=t}}}withinLimit(t){return(!this.min||t>=this.min)&&(!this.max||t<=this.max)}render(){var t,o,s;return e(a,{key:"873c2df4266e043f62561e1ab89129d6eef61150"},e("smoothly-input-month",{key:"b05971ae714b2e26f249a84ba91c1558c93f099c",name:"month",value:(t=this.month)!==null&&t!==void 0?t:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:t=>{t.stopPropagation();"month"in t.detail&&typeof t.detail.month=="string"&&(this.month=t.detail.month)}},e("div",{key:"faa7c396d6a42cf8376ac5f89c34e0cf70a05448",slot:"year-label"},e("slot",{key:"7a09d4149ecf3a28f27dfff24be59858e9bf1771",name:"year-label"})),e("div",{key:"53173b614c5e305ca91081f63fa1c1c641bf288b",slot:"month-label"},e("slot",{key:"4e952349c3ca7ac0b0abfc31725ca3d6879a5a93",name:"month-label"}))),e("table",{key:"6675b5c1daf856940e4fcc860d8d1f98179173d6"},e("thead",{key:"9d8c168520e5570ccbe7cef6b17692ae3c782806"},e("tr",{key:"234e57b12f82d0addb1af8b0a69ab352e11d65f1"},oe().map((t=>e("th",null,t))))),ee((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:x.now()).map((t=>e("tr",null,t.map((t=>{var o,s,i,a;return e("td",{tabindex:1,onMouseOver:()=>this.withinLimit(t)?this.onHover(t):undefined,onClick:this.withinLimit(t)?()=>this.onClick(t):undefined,class:{selected:t==this.value||this.doubleInput&&(t==this.start||t==this.end),today:t==x.now(),currentMonth:x.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:x.now())==x.firstOfMonth(t),dateRange:this.doubleInput&&t>((i=this.start)!==null&&i!==void 0?i:"")&&t<((a=this.end)!==null&&a!==void 0?a:""),disable:!this.withinLimit(t)}},t.substring(8,10))})))))))}get element(){return i(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};le.style=ne;const re=".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 ce=re;const he=class{constructor(e){t(this,e);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(t){if(l.is(t.detail)&&t.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return e("section",{key:"e070e16a1f9d55f623156ab9e41ea1cda5a71196"},e("div",{key:"35ebd08f6ca4f572c4e4af460391f608dbefa754",class:"header"},this.closable&&e("smoothly-trigger",{key:"f8c78829a42b1a49baf89fa7d94aff179a2d5e9c",fill:"clear",name:"close"},e("smoothly-icon",{key:"f1e3be3910170ca8a15867a5bd3e9c64dfcdc9b4",name:"close-circle",fill:"solid",color:this.color})),this.header?e("h1",null,this.header):e("slot",{name:"header"})),e("div",{key:"7f0f5212049be0603eaa52cd26731ec08cd4a703",class:"content"},e("slot",{key:"b6dfaf8a392606b3f7eb644809b360acafa12c2f"})))}render(){return e(s,this.hostData(),this.__stencil_render())}};he.style=ce;const de=".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";const me=de;const ue=class{constructor(e){t(this,e);this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return e(s,{key:"171296f92ec571930bcc4bca7a2bbd433943d302"},e("smoothly-button",{key:"31d7764ddb4163c83d1d5cd53bc664bde022521d",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),e("smoothly-button",{key:"58ead69323e970d926b3b3f0e57b2f5340d7c956",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),e("smoothly-button",{key:"57939b58cfbb5e2d2081b2436094041eb1074e87",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),e("smoothly-modal",{key:"eba2703ab68ac9a767640493bd91aaeaa84c2256",closable:true,open:this.openModal,onSmoothlyModalChange:t=>this.openModal=t.detail},e("h2",{key:"66557105cc449a37951e52271a184324333c310f",slot:"header"},"Modal"),e("span",{key:"273f211df20373f6622994141102e780a7b3ee53"},"Are you sure you want to confirm this action?"),e("smoothly-button",{key:"7710589cbd7be4649c8ea355cba53bed95ecb414",slot:"actions",color:"success"},"Confirm"),e("smoothly-button",{key:"580de2b26b8b169209b7f2afa3446749a42d55ff",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),e("smoothly-modal",{key:"4293aa516d024c7deb849686b1c9b1d2cbde50c4",closable:true,open:this.openTallModal,onSmoothlyModalChange:t=>this.openTallModal=t.detail,align:"top"},e("h2",{key:"d5172b9f596b4dc05a1c66014c3dac4feda1fbcd",slot:"header"},"Modal"),e("smoothly-summary",{key:"92b695be01a78bf00e70a60ef132092979617f79"},e("div",{key:"2b1b7d17992a2d635a1a261c3768ce8f64b4f10a",slot:"summary"},"Lorem ipsum"),e("div",{key:"ca2a2ec987eb6049eb3a7fa609a7d3b77aacca48",slot:"content"},Array.from({length:10}).map((()=>e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."))))),e("smoothly-button",{key:"c1e0641f4631dd6cc21a695f0ffee7e2851e50bb",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&e("smoothly-dialog",{key:"28d4f53e28c7e32bef9746362fce97cfb21cb442",closable:true},e("smoothly-frame",{key:"61011e045d9a740f3937a1cdc83e0fb97c1d552b",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}};ue.style=me;function ye(t,e,o){let s=0;while(o.exec(t)!=null){s=o.lastIndex;if(o.lastIndex>e)break}o.lastIndex<=e&&(s=t.length);return s}function be(t,e,o){let s=0;let i;while((i=o.exec(t))!=null){if(o.lastIndex-i[0].length<e)s=o.lastIndex-i[0].length;else break}return s}function fe(t,e,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?be(t,e,s):ye(t,e,s)}var pe;(function(t){function e(t){return t.direction=="backward"?t.start:t.end}t.getCursor=e;function o(t){return t.direction!="backward"?t.start:t.end}t.getStalker=o})(pe||(pe={}));var ge;(function(t){function e(t){return{value:t.value,selection:{start:t.selection.start,end:t.selection.end,direction:t.selection.direction},remainder:t.remainder}}t.copy=e})(ge||(ge={}));class ke{value;selection;constructor(t){this.value=t.value;this.selection={start:t.selection?.start,end:t.selection?.end,direction:t.selection?.direction}}get(t,e=1){return this.value.substring(t,t+e)}is(t,...e){const o=this.get(t);return e.some((t=>o==t))}isDigit(t){const e=this.get(t);return e>="0"&&e<="9"}match(t){return this.value.match(t)}replace(t,e,o){let s;if(typeof t=="string"&&typeof e=="string"){let o;s=this;while((o=s.value.indexOf(t))>-1)s=s.replace(o,o+t.length,e)}else if(typeof t=="number"&&typeof e=="number"){const i={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";i.value=this.value.slice(0,t)+o+this.value.slice(e,this.value.length);if(this.selection.start>=e)i.selection.start=this.selection.start+o.length-e+t;else if(this.selection.start>t&&this.selection.start<e)i.selection.start=Math.min(this.selection.start,t+o.length);if(this.selection.end>=e)i.selection.end=this.selection.end+o.length-e+t;else if(this.selection.end>t&&this.selection.end<e)i.selection.end=Math.min(this.selection.end,t+o.length);s=new ke(i)}return s||this}insert(t,e){return this.replace(t,t,e)}append(t){return this.insert(this.value.length,t)}prepend(t){return this.insert(0,t)}suffix(t){return new ke({value:this.value+t,selection:this.selection})}delete(t,e){let o;if(!this.value)o=this;else if(typeof t=="string"){let e;o=this;while(t&&(e=o.value.indexOf(t))>-1)o=o.delete(e,e+t.length)}else o=this.replace(t,e||t+1,"");return o}truncate(t){return this.value.length>=t?this.delete(t,this.value.length):this}pad(t,e,o){let s=this;while(t>s.value.length+e.length)s=s.insert(o,e);if(t>s.value.length)s=s.insert(o,e.substring(0,t-s.value.length));return s}padEnd(t,e){return this.pad(t,e,this.value.length)}padStart(t,e){return this.pad(t,e,0)}toLower(){return this.map((t=>t.toLowerCase()))}toUpper(){return this.map((t=>t.toUpperCase()))}map(t){let e=this;let o=0;for(let s=0;s<this.value.length;s++){const i=t(this.get(s),s);e=e.replace(o,o+1,i);o+=i.length}return e}static copy(t){return new ke({...t})}static create(){return new ke({value:"",selection:{start:0,end:0}})}static modify(t){return new ke(typeof t=="string"?{value:t,selection:{start:t.length,end:t.length}}:t)}}var ve;(function(t){function e(t,e,o){let c=ge.copy(t.unformat(ke.copy(e)));if(e.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(e.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)&&e?.type!="password")c=s(t,e,o);else if(["Delete","Backspace"].includes(o.key)&&e?.type!="password")c=i(t,e,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))a(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);t.allowed(o.key,c)&&r(c,o.key)}}return t.format(ke.copy(c))}t.apply=e;function o(t,e,o){const s=ge.copy(t.unformat(ke.copy(e)));r(s,o);return t.format(ke.copy(s))}t.paste=o;function s(t,e,o){let s=pe.getCursor(e.selection);let i=pe.getStalker(e.selection);s=fe(e.value,s,o.key=="ArrowLeft"?"backward":"forward");i=o.shiftKey?i:s;return ge.copy(t.unformat(ke.copy({...e,selection:{start:Math.min(i,s),end:Math.max(i,s),direction:i<s?"forward":i>s?"backward":"none"}})))}function i(t,e,o){const s=pe.getCursor(e.selection);const i=fe(e.value,s,o.key=="Backspace"?"backward":"forward");const a=ge.copy(t.unformat(ke.copy({...e,selection:{start:Math.min(s,i),end:Math.max(s,i),direction:"none"}})));a.value=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.selection.end=a.selection.start;return a}function a(t,e){let o=pe.getCursor(t.selection);let s=pe.getStalker(t.selection);o=e.key=="Home"?0:e.key=="End"?t.value.length:t.selection.start==t.selection.end||e.shiftKey?Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length):e.key=="ArrowLeft"?t.selection.start:t.selection.end;s=e.shiftKey?s:o;t.selection.direction=s<o?"forward":s>o?"backward":"none";t.selection.start=Math.min(s,o);t.selection.end=Math.max(s,o)}function n(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}function l(t){r(t,"")}function r(t,e){t.value=t.value.substring(0,t.selection.start)+e+t.value.substring(t.selection.end);t.selection.start=t.selection.start+e.length;t.selection.end=t.selection.start}})(ve||(ve={}));const we={};function xe(t,e){we[t]=e}function Se(t,...e){const o=we[t];return o&&o(e)}function Ce(t,e,...o){const s=Se(e,...o);return s?s.format(ke.modify(s.toString(typeof t=="string"?ze(t,e,o):t))).value:""}function ze(t,e,...o){const s=Se(e,o);return s?s.fromString(s.unformat(ke.modify(t)).value):undefined}class je{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(t){return t}allowed(t,e){return e.value.length<3&&t>="0"&&t<="9"}}xe("card-csc",(()=>new je));class Ie{toString(t){return Array.isArray(t)&&t.length==2&&typeof t[0]=="number"&&typeof t[1]=="number"?t[0].toString().padStart(2,"0")+t[1].toString().padStart(2,"0"):""}fromString(t){return typeof t=="string"&&t.length==4?[Number.parseInt(t.slice(0,2)),Number.parseInt(t.slice(2))]:undefined}partialFormat=this.format;format(t){let e=t;if(t.value.length>0&&!t.is(0,"0","1"))e=e.prepend("0");if(e.value.length>1)e=e.insert(2," / ");return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(t){return t.delete(" / ")}allowed(t,e){return e.value.length<4&&t>="0"&&t<="9"}}xe("card-expires",(()=>new Ie));class _e{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){const e=Te(t.value);const o=t.map(((t,o)=>(o+1<e.length[0]&&e.spaceIndexes.includes(o)?" ":"")+t));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:e.length.slice(1),pattern:e.verification,classes:["issuer-"+e.icon]}}unformat(t){return t.delete(" ")}allowed(t,e){const o=Te(e.value);return t>="0"&&t<="9"&&e.value.length<o.length[0]}}xe("card-number",(()=>new _e));function Te(t){let e={...Le,spaceIndexes:t.length==14?[4,10]:Le.spaceIndexes};for(const o in Oe)if(Object.prototype.hasOwnProperty.call(Oe,o)&&Oe[o].identification.test(t)){e={...Le,name:o,...Oe[o]};break}return e}const Le={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const Oe={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}$/,spaceIndexes:[4,8,12],identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{6}\s[0-9]{4}$/,identification:/^3(?:0[0-5]|[68][0-9])/,spaceIndexes:[4,10],length:[14,16,16],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],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)/,spaceIndexes:[4,8,12],length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],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})/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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})?$/,spaceIndexes:[4,8,12],identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var Ae;(function(t){function e(t){let e;switch(t){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":e="dd/mm/YYYY";break;case"en-US":e="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":e="dd.mm.YYYY";break;case"hi-IN":case"en-IN":e="dd-mm-YYYY";break;default:e="YYYY-mm-dd";break}return e}t.fromLocale=e;function o(t){let e;switch(t){case"dd/mm/YYYY":e="en-GB";break;case"mm/dd/YYYY":e="en-US";break;case"dd.mm.YYYY":e="de-DE";break;default:e="sv-SE";break}return e}t.toLocale=o;function s(t){return typeof t=="string"&&(t=="YYYY-mm-dd"||t=="dd/mm/YYYY"||t=="dd.mm.YYYY"||t=="mm/dd/YYYY")}t.is=s})(Ae||(Ae={}));class Me{separator;constructor(t){this.separator=t}partialFormat(t){const e=this.format(t);return{...e,remainder:this.formatString.slice(e.value.length)}}unformat(t){return t.delete(this.separator)}validMonth(t,e,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(e),0).getDate()>=Number.parseInt(t)}}const Ee={};function De(t,e){Ee[t]=e}xe("date",(t=>{const e=t&&t.length>0?t[0]:undefined;const o=Ae.is(e)?e:Ae.fromLocale(e);const s=Ee[o]??Ee["YYYY-mm-dd"];return s()}));class $e extends Me{constructor(t){super(t)}toString(t){return x.is(t)&&t.length==10?[t.substring(8,10),t.substring(5,7),t.substring(0,4)].join(this.separator):""}fromString(t){const e=t?.length==8?`${t.substring(4,8)}-${t.substring(2,4)}-${t.substring(0,2)}`:undefined;return x.is(e)?e:undefined}formatString=`DD${this.separator}MM${this.separator}YYYY`;format(t){let e=t.delete(this.separator);if(e.get(0,1)>"3")e=e.insert(0,"0");if(e.value.length>1)e=e.insert(2,this.separator);if(e.get(3,1)>"1")e=e.insert(3,"0");if(e.value.length>4)e=e.insert(5,this.separator);return{...e,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(t,e){return e.selection.start==1&&e.value[0]=="3"?t>="0"&&t<="1":e.selection.start==1&&e.value[0]=="0"?t>="1"&&t<="9":e.selection.start==2?t>="0"&&t<="9"&&(t=="0"||t=="1"||this.validMonth(e.value.substring(0,2),t)):e.selection.start==3?t>="0"&&t<="9"&&this.validMonth(e.value.substring(0,2),e.value[2]+t):e.selection.start==7?t>="0"&&t<="9"&&this.validMonth(e.value.substring(0,2),e.value.substring(2,4),e.value.substring(4,7)+t):e.selection.start<8&&t>="0"&&t<="9"}}De("dd.mm.YYYY",(()=>new $e(".")));De("dd/mm/YYYY",(()=>new $e("/")));De("dd-mm-YYYY",(()=>new $e("-")));class Re extends Me{constructor(t){super(t)}toString(t){return x.is(t)&&t.length==10?[t.substring(5,7),t.substring(8,10),t.substring(0,4)].join(this.separator):""}fromString(t){const e=t.length==8?`${t.substring(4,8)}-${t.substring(0,2)}-${t.substring(2,4)}`:undefined;return x.is(e)?e:undefined}formatString=`MM${this.separator}DD${this.separator}YYYY`;format(t){let e=t.delete(this.separator);if(e.get(0,1)>"1")e=e.insert(0,"0");if(e.value.length>1)e=e.insert(2,this.separator);if(e.get(3,1)>(e.get(0,2)=="02"?"2":"3"))e=e.insert(3,"0");if(e.value.length>4)e=e.insert(5,this.separator);return{...e,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(t,e){const o=e.selection.start==1&&e.value[0]=="1"?t>="0"&&t<="2":e.selection.start==1&&e.value[0]=="0"?t>="1"&&t<="9":e.selection.start==3?t>="0"&&t<="9"&&this.validMonth(e.value[2]+t,e.value.substring(0,2)):e.selection.start==7?t>="0"&&t<="9"&&this.validMonth(e.value.substring(2,4),e.value.substring(0,2),e.value.substring(4,7)+t):e.selection.start<8&&t>="0"&&t<="9";return o}}De("mm/dd/YYYY",(()=>new Re("/")));class Pe extends Me{constructor(t){super(t)}toString(t){return typeof t!="string"?"":t}fromString(t){const e=t?.length==8?`${t.substring(0,4)}-${t.substring(4,6)}-${t.substring(6,8)}`:undefined;return x.is(e)?e:undefined}daysInMonth(t){const e=`${t.substring(0,4)}-${t.substring(4,6)}-01`;return x.is(e)?+x.lastOfMonth(`${t.substring(0,4)}-${t.substring(4,6)}-01`).substring(8,10):31}formatString=`YYYY${this.separator}MM${this.separator}DD`;format(t){let e=t.delete(this.separator);if(e.value.length>3){e=e.insert(4,this.separator);if(e.get(5,1)>"1")e=e.insert(5,"0");if(e.value.length>6){e=e.insert(7,this.separator);if(e.get(8,1)>this.daysInMonth(t.value).toString().substring(0,1))e=e.insert(8,"0")}}return{...e,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(t,e){const o=this.daysInMonth(e.value);return e.selection.start==5&&e.value[4]=="0"?t>="1"&&t<="9":e.selection.start==5&&e.value[4]=="1"?t>="0"&&t<="2":e.selection.start==7&&e.value[6]=="0"?t>="1"&&t<="9":e.selection.start==7&&(e.value[6]=="2"&&o<30||e.value[6]=="3")?t>="0"&&t<=o.toString().substring(1):e.selection.start<8&&t>="0"&&t<="9"}}De("YYYY-mm-dd",(()=>new Pe("-")));class Fe{toString(t){return typeof t=="string"?t:""}fromString(t){let e=t.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(e?.match(/-\d$/))e=e.substring(0,e.length-1)+"0"+e.substring(e.length-1,e.length);e=!e.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:e+o.substring(e.length,o.length);return S.is(e)?e:undefined}partialFormat=this.format;format(t){let e=He(t);if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))e=e.insert(10," ");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))e=e.replace(11,12,"23:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))e=e.insert(11,"23:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))e=e.insert(11,"23:5");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))e=e.replace(10,13,"00:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))e=e.insert(12,"3:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))e=e.insert(12,"3:5").append(":");if(e.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]$/))e=e.insert(13,":");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))e=e.insert(14,"5");if(e.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$/))e=e.insert(16,":");if(e.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]$/))e=e.insert(17,"5");return{...e,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(t){return t}allowed(t,e){return e.value.length<19&&(t>="0"&&t<="9"||t=="-"||t==":"||t=="."||t==" ")}}xe("date-time",(()=>new Fe));function He(t,e){let o=t;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Ne(o.value,e))o=o.replace(0,10,Ne("31"+o.value.substring(2,10),e)?"31"+o.value.substring(2,10):Ne("30"+o.value.substring(2,10),e)?"30"+o.value.substring(2,10):Ne("29"+o.value.substring(2,10),e)?"29"+o.value.substring(2,10):Ne("28"+o.value.substring(2,10),e)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Ne(o.value,e))o=o.replace(0,10,Ne(o.value.substring(0,3)+"31"+o.value.substring(5,10),e)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Ne(o.value.substring(0,3)+"30"+o.value.substring(5,10),e)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Ne(o.value.substring(0,3)+"29"+o.value.substring(5,10),e)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Ne(o.value.substring(0,3)+"28"+o.value.substring(5,10),e)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(t.value.length==10){if(!Ne(o.value)){o=o.replace(0,10,Ne(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Ne(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Ne(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Ne(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return t}}return o}function Ne(t,e){let o;let s;let i;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(3,5));i=parseInt(t.substring(0,2));return o&&s&&i?i>0&&Ye(o,s)>=i:false;case"mm/dd/YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(0,2));i=parseInt(t.substring(3,5));return o&&s&&i?i>0&&Ye(o,s)>=i:false;default:o=parseInt(t.substring(0,4));s=parseInt(t.substring(5,7));i=parseInt(t.substring(8,10));return o&&s&&i?i>0&&Ye(o,s)>=i:false}}function Ye(t,e){let o;switch(e){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 Ue{toString(t){return Array.isArray(t)&&t.length==2&&typeof t[0]=="number"&&typeof t[1]=="number"?t[0].toString()+" / "+t[1].toString():typeof t=="number"?t.toString():""}fromString(t){return typeof t=="string"&&t.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(t.slice(0,2)),Number.parseInt(t.slice(t.length-2))]:typeof t=="string"&&t.match(/\d{1,2}/)?Number.parseInt(t):undefined}partialFormat=this.format;format(t){let e=t;if(t.match(/^\d\/$/))e=t.replace(1,2," / ");else if(t.match(/^\d{1,2}\s$/))e=t.replace(t.value.length-1,t.value.length," / ");else if(t.match(/^[\D.]+\/[\D.]+$/))e=t.delete(0,t.value.length);else if(t.match(/^[\D.]+\/[\D.]+\d$/))e=t.delete(0,t.value.length-1);else if(t.match(/^[\D.]+\/[\D.]+\d\d$/))e=t.delete(0,t.value.length-2);else if(t.match(/^[\D.]+\//))e=t.delete(0,t.value.search("/")+1);else if(t.match(/^\d\d\/$/))e=t.replace(2,3," / ");else if(t.match(/^\d\d\s+\/$/))e=t.delete(2,t.value.length);else if(t.match(/^\d\s+\/$/))e=t.delete(1,t.value.length);else if(t.match(/^\d\d\s\s+\/\s*$/))e=t.replace(2,t.value.length," / ");else if(t.match(/^\d\s\s+(\/\s*)?$/))e=t.replace(1,t.value.length," / ");else if(t.match(/^\d\s\/\s\d\d.+$/))e=t.delete(6,t.value.length);else if(t.value.length>1&&t.value.indexOf("/")<1)e=t.insert(2," / ");else if(t.value.length>1&&t.value.split("/").length>2)e=t.delete(t.value.lastIndexOf("/"));else if(t.value.length==1&&!t.isDigit(0))e=t.delete(0);return{...e,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(t){return t}allowed(t,e){return e.value.length<7&&(t>="0"&&t<="9"||t=="/"||t==" ")}}xe("divisor",(()=>new Ue));class We{separator=":";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(t){let e;if(!C.is(t))e="";else{const o=C.normalize(t);if(!o.minutes&&!o.hours)e="";else if(this.separator!=":")e=(+C.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)e=o.hours.toString(10);else if(!o.hours&&o.minutes)e=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else e=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return e}fromString(t){let e;const o=t.match(this.patterns.extract);if(!o)e=undefined;else{const[t,s,i,a,n]=o;this.separator=a;if(a==":"){const t={hours:parseInt(i),minutes:parseInt(n)};const o=s?-1:1;e=C.normalize({hours:!Number.isFinite(t.hours)?0:t.hours*o,minutes:!Number.isFinite(t.minutes)?0:t.minutes*o})}else{const o=parseFloat(t.replace(",","."));e=C.normalize({hours:!Number.isFinite(o)?0:o})}}return e}partialFormat=this.format;format(t){let e=t;const[,o,s,i]=t.match(this.patterns.extract)??[];if(!s&&i)e=e.insert(o?1:0,"0");const a=e.match(this.patterns.zeros);if(a){const[,t,o]=a;if(o){const s=t?1:0;e=e.delete(s,o.length+s)}}return{...e,type:"tel",pattern:this.patterns.allowed}}unformat(t){const[,,,e]=t.match(this.patterns.extract)??[];if(e)this.separator=e;return t}allowed(t,e){const o=e.value.slice(0,e.selection.start)+t+e.value.slice(e.selection.end);return!!o.match(this.patterns.allowed)}}xe("duration",(()=>new We));class Be{settings;constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(t){return t}allowed(t,e){return this.settings.length==undefined||this.settings.length[1]==undefined||e.value.length<this.settings.length[1]}}xe("email",(t=>new Be(t||{})));class Ve{settings;mode;constructor(t,e){this.settings=t;this.mode=e}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}split(t){let e;let o="";return t.map(((t,s)=>{const i=s!==0&&t===t.toUpperCase()&&isNaN(+t)&&o!==" "&&this.isSymbolAllowed(t)&&e?" "+t:(t==="_"||t==="-")&&o!==" "?" ":t===" "&&o===" "||!this.isSymbolAllowed(t)||!e&&!this.isSymbolLetter(t)&&this.mode!=="code"?"":t;!e&&(e=this.isSymbolLetter(t));this.isSymbolAllowed(t)&&(o=t);return i})).toLower().delete("-").delete("_")}isSymbolLetter(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}isSymbolAllowed(t){return this.isSymbolLetter(t)||t>="0"&&t<="9"||t===" "}partialFormat=this.format;format(t){const e=this.split(t);let o;switch(this.mode){case"code":o=e.delete(" ");break;case"pascal":case"camel":let s;o=e.map(((t,e)=>{const o=e===0&&this.mode==="pascal"||s?t.toUpperCase():t.toLowerCase();s=t==" ";return o})).delete(" ");break;case"snake":case"attribute":o=e.replace(" ",this.mode==="snake"?"_":"-");break;default:o=t}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(t){return t}allowed(t,e){return this.isSymbolLetter(t)||t>="0"&&t<="9"&&(this.mode=="code"||e.value.length>0)||t=="_"&&this.mode=="snake"&&e.value.length>0||t=="-"&&this.mode=="attribute"&&e.value.length>0}}xe("identifier-code",(t=>new Ve(t||{},"code")));xe("identifier-pascal",(t=>new Ve(t||{},"pascal")));xe("identifier-snake",(t=>new Ve(t||{},"snake")));xe("identifier-camel",(t=>new Ve(t||{},"camel")));xe("identifier-attribute",(t=>new Ve(t||{},"attribute")));class Ge{country;constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){let e=t;const o=(new Date).getFullYear().toString();if(t.value.length>1&&t.get(0,2)!="19"&&t.get(0,2)!="20")e=e.prepend(t.get(0,2)>o.substring(2,4)?"19":"20");if(e.value.length>=8)e=e.insert(8,"-");return{...e.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(t){return t.delete("-")}allowed(t,e){return e.value.length<13&&t>="0"&&t<="9"}}xe("identity-number",(t=>new Ge(t&&t.length>0?t[0]:undefined)));class Ke{min;max;constructor(t){this.min=t.min;this.max=t.max}toString(t){return typeof t=="number"?t.toString():""}fromString(t){const e=typeof t=="string"?Number.parseInt(t):undefined;return typeof e=="number"&&!Number.isNaN(e)?e:undefined}partialFormat(t){return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}format(t){const e=this.partialFormat(t);const o=this.fromString(e.value);return{...e,value:o==undefined?e.value:this.min!=undefined&&o<this.min?this.toString(this.min):this.max!=undefined&&o>this.max?this.toString(this.max):e.value}}unformat(t){return t}allowed(t,e){return t>="0"&&t<="9"}}xe("integer",(t=>new Ke(t?.[0]??{})));class Ze{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"password",autocomplete:"current-password"}}unformat(t){return t}allowed(t,e){return true}}xe("password",(()=>new Ze));class qe{toString(t){let e="";if(typeof t=="number"){const o=t.toString().split(".")[1]?.length??2;e=(t*100).toFixed(!o||o<=1?0:o-2)}return e}fromString(t){const e=typeof t=="string"?Number.parseFloat(t):undefined;return typeof e=="number"&&!Number.isNaN(e)?e/100:undefined}partialFormat=this.format;format(t){return{...t.value?t.suffix(" %"):t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(t){return t.delete(" %")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")}}xe("percent",(()=>new qe));const Xe=[{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 Je{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){let e=t;if(e.value.startsWith("+")){for(const t of Xe)if(e.value.startsWith(t.countryCode))for(let o of t.areaCodes){o=o.substring(1);if(e.value.startsWith(t.countryCode+o)&&!e.value.includes("-"))e=e.insert(t.countryCode.length,"-").insert(t.countryCode.length+1+o.length,"-")}}else{const t=Xe[0];for(const o of t.areaCodes)if(e.value.startsWith(o)&&!e.value.includes("-")){e=e.insert(o.length,"-");e=e.delete(0);e=e.insert(0,"-").insert(0,t.countryCode)}}if(e.value.includes("-")){const t=e.value.indexOf("-",e.value.indexOf("-")+1)+1;const o=e.value.substring(t,e.value.length+1).length;switch(o){case 4:e=e.insert(t+2," ");break;case 5:e=e.insert(t+3," ");break;case 6:e=e.insert(t+2," ");e=e.insert(t+5," ");break;case 7:e=e.insert(t+3," ");e=e.insert(t+6," ");break;case 8:case 9:e=e.insert(t+3," ");e=e.insert(t+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;e=e.insert(s+t," ")}}}}return{...e,type:"tel",autocomplete:"tel"}}unformat(t){return t.delete(" ").delete("-")}allowed(t,e){return t>="0"&&t<="9"||e.selection.start==0&&t=="+"&&!e.value.includes("+")}}xe("phone",(()=>new Je));class Qe{country;constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){const e=!t.value.includes(" ")&&t.value.length>=4?t.insert(3," "):t;return{...e.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(t){return t.delete(" ")}allowed(t,e){return e.value.length<=5&&t>="0"&&t<="9"}}xe("postal-code",(t=>new Qe(t&&t.length>0?t[0]:undefined)));class to{currency;toInteger;constructor(t){this.currency=t&&typeof t=="object"?t.currency:t;this.toInteger=t&&typeof t=="object"?t.toInteger:undefined}toString(t){return typeof t=="number"?isNaN(t)?"":t.toString():""}fromString(t){const e=typeof t=="string"?Number.parseFloat(t):undefined;return e!=undefined&&!isNaN(e)?e:undefined}partialFormat(t){let e=t.value=="NaN"?t.replace(0,t.value.length,""):ke.copy(t);const o=this.currency&&z.decimalDigits(this.currency);e=this.addLeadingIntegerZero(e);e=this.fillDecimalsIfPresent(e,o,"onlyLimit");e=this.truncateIntegerZeros(e);e=this.addThousandSeparators(e);return{...e,remainder:this.format(t).value.slice(e.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(t){let e=t.value=="NaN"?t.replace(0,t.value.length,""):ke.copy(t);const o=this.currency&&z.decimalDigits(this.currency);if(!this.toInteger)e=this.forceDecimalZero(e,o);e=this.addLeadingIntegerZero(e);e=this.fillDecimalsIfPresent(e,o,"fillAndLimit");e=this.truncateIntegerZeros(e);e=this.addThousandSeparators(e);e=this.appendCurrency(e);return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(t,e){if(!t.value.includes(".")&&e&&(Math.abs(Number.parseFloat(t.value))>=0||t.value=="0"))t=t.suffix(".0");return t}addLeadingIntegerZero(t){const e=t.value&&t.value.includes(".")?t.value.indexOf("."):undefined;if(e==0)t=t.prepend("0");return t}fillDecimalsIfPresent(t,e,o){const s=t.value.indexOf(".");if(s!=-1){const i=s+1+(e??2)-t.value.length;t=i<0?t.truncate(t.value.length+i):o=="fillAndLimit"?t.suffix("0".repeat(i)):t}return t}truncateIntegerZeros(t){const e=t.match(/^[0\s]{2,}/);if(e)t=t.replace(0,e[0].length,"0");return t}addThousandSeparators(t){let e=t.value.includes(".")?t.value.indexOf("."):t.value.length;const o=e<=0?0:Math.ceil(e/3)-1;for(let s=0;s<o;s++){const i=e-(o-s)*3;t=t.insert(i," ");e++}return t}appendCurrency(t){return this.currency&&(t.value.length>1||t.value.length==1&&t.value.charAt(0)!=".")?t.suffix(" "+this.currency):t}unformat(t){return this.currency?t.delete(" ").delete(""+this.currency):t.delete(" ")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")&&(!this.currency||z.decimalDigits(this.currency)!=0)}}xe("price",(t=>new to(t&&t.length>0?t[0]:undefined)));class eo{settings;constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"text",...this.settings}}unformat(t){return t}allowed(t,e){return this.settings.length==undefined||this.settings.length[1]==undefined||e.value.length<this.settings.length[1]}}xe("text",(t=>new eo(t||{})));class oo{toString(t){return typeof t=="string"?"#"+t:""}fromString(t){return t?"#"+t:undefined}partialFormat=this.format;format(t){const e=t.delete("#");return{...e.value?e.prepend("#"):e,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(t){return t.delete("#")}allowed(t,e){return(t>="0"&&t<="9"||t>="a"&&t<="f"||t>="A"&&t<="F")&&e.value.length<6}}xe("hex-color",(()=>new oo));const so=".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 io=so;const ao=class{constructor(e){t(this,e);this.type=undefined;this.label=undefined;this.value=undefined;this.collapseDepth=undefined;this.toInteger=undefined;this.currency=undefined;this.country=undefined;this.format=undefined}render(){var t,o;let s;const i=this.type;switch(i){case"json":s=e("smoothly-display-json",{key:"c171d3a83efbefce258b6929eb0a3bafb246d8d5",value:this.value,collapseDepth:this.collapseDepth});break;default:s=Ce(this.value,i);break;case"email":s=e("a",{key:"d61f90a089a457d0e388ec5739974dc081868e8f",href:"mailto:"+this.value},Ce(this.value,i));break;case"phone":s=e("a",{key:"f622c3de530f8251623ec003acf3fe077506ca6b",href:"tel:"+this.value},Ce(this.value,i,this.country));break;case"postal-code":s=Ce(this.value,i,this.country);break;case"price":s=Ce(this.value,i,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(t=Se(this.type,$()))===null||t===void 0?void 0:t.toString(this.value);break;case"duration":s=Ce(this.value,i)||"0";break;case"date-time":s=this.format?S.localize(this.value,this.format,$()):(o=Se(this.type,$()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[e("div",null,this.label),s]:s}};ao.style=io;const no=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(t){console.log("emit",t);this.notice.emit(t)}render(){return[e("main",{key:"2a76daef84887ea3bde88d366b2e21e14d57b44b"},e("fieldset",{key:"1ca672f0189ec954870ec1a1334d710eb12de27b"},e("h2",{key:"8adad2327cab875a2cb4b5bc0eec229d1e0056e9"},"Smoothly display"),e("dl",{key:"34e4c3ffb01fbdf98ab7f37e421ee3d7cca379a3"},e("dt",{key:"1e6fc46091902b66b8a40760191f53cdd30bc14a"},"Duration"),e("dd",{key:"4966107aafd2506a4406e5dd282a81a7c6a9b66b"},e("div",{key:"96dda5951ab4df35c0953b2aef462447770de4e7"},e("div",{key:"5b315e7bf03247f15909ae0f3188666c4e542520"},e("smoothly-display",{key:"8b4e73dadc46fbd99c17490d6847105690aa5f35",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),e("div",{key:"fef2f6a200446d477b60eb70f0ca70f1238129a0"},e("smoothly-display",{key:"0c488fdcaefa7864d050d98472dca2ecddd898b0",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),e("div",{key:"0afc6954ed6dd90cc8dad83d57cb2f94a8681492"},e("smoothly-display",{key:"f0340041c6996a6e482ea3199ec5416788c546a8",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),e("div",{key:"3a1670abc42b8e2fbfdbc0949c2eeb2c79a5c15c"},e("smoothly-display",{key:"09392b66cee4872abf14c9ece430a63d100c2ee1",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),e("div",{key:"e863e33d414dc0da17818ce632e892ce25eb4a46"},e("smoothly-display",{key:"bf6e57117a4720686c34846466bee6f2a13ba831",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),e("div",{key:"939798209aa002fb5a5bca479b099d101330fcfb"},e("smoothly-display",{key:"aa67a6663dee8531df73a141d304844eb96bc2c4",style:{display:"inline"},type:"duration",value:{}})," h"),e("div",{key:"69c7aa45e433a17583c13eb45ec68b32afbedf09"},e("smoothly-display",{key:"da59eece362ffe4847bf6e96a7c0cab6eb7aa9ee",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),e("dt",{key:"8c438d67510bdd91eb89f2160a3ef1bf45e62999"},"text"),e("dd",{key:"ee6084f1769f173a3c2bb7068857306f4590311e"},e("smoothly-display",{key:"8b74f5d51fc7b2994390ae6ade97127edd92cd83",type:"text",value:"text"})),e("dt",{key:"c8a6db267c2985d64ca553919ff4ea21c4a77a9c"},"postal code"),e("dd",{key:"bcc16ccfda356d180e45e4eec39b7fd563f244f2"},e("smoothly-display",{key:"d296d047c7bc9adb14beaf528defd2956b268127",type:"postal-code",value:"752 31"})),e("dt",{key:"df3cd2a6890585cc9ccedd2ef45892e3a081c08e"},"password"),e("dd",{key:"d73cf9f0f3d6a4430d6b7e9a9280fd2659f4afec"},e("smoothly-display",{key:"e66094f4ba694eff429ee99627f5e91eea77565d",type:"password",value:"password"})),e("dt",{key:"b6b684dd9dba0035c67c67d9f71cb8f2c5d8196d"},"email"),e("dd",{key:"9a743be9a2fd0d9dc8f4d7998123d88bd41a5768"},e("smoothly-display",{key:"62617815b23ab6b9dce1cccfe4171ed640d1f68f",type:"email",value:"test@example.com"})),e("dt",{key:"c0e3675247d4d7cae59e11c9ac0d5084efec7da9"},"price"),e("dd",{key:"5ba67df88825d3aea8eba493beb1ec6ed8deb6a7"},e("smoothly-display",{key:"074c2cc0269b950e742414d527f3e020afd5c9a0",type:"price",value:"13.37",currency:"SEK"})),e("dt",{key:"1e8526fd51f22962fd429276d935701a1d331ff0"},"price without decimals"),e("dd",{key:"857b7141e8abeeeeb09f4f5c8a8df5b6a55aca2e"},e("smoothly-display",{key:"0b39e2af7552ba9506574cbc3a10566980476329",type:"price",value:200,currency:"SEK",toInteger:true})),e("dt",{key:"2155f8ed8ad6b8ec67973563bbca51486047f053"},"price with decimals if they are set, otherwise no decimal"),e("dd",{key:"76505996a0acd9606fd8cf420ba007501c1add91"},e("smoothly-display",{key:"ab04814225516711be97ffb281ed640d4149e71d",type:"price",value:200.2,currency:"SEK",toInteger:true})),e("dt",{key:"8f8e578f2faa73548b948c8a345c93f2b283779a"},"price with decimals"),e("dd",{key:"e6fe391647cbf0cb563c0badc16394b830fe1fe2"},e("smoothly-display",{key:"d14257a209f93b62d916df7e8254f6a0baacaa3b",type:"price",value:200.2,currency:"SEK"})),e("dt",{key:"3c5de766f714ec32c8e4258227a8583ae8e13c56"},"percent"),e("dd",{key:"3035ba6e28b9ce76724d8ca7df1a2094cd1810e6"},e("smoothly-display",{key:"55d8be440426d5b6489ecba69525546deb82a69d",type:"percent",value:"42"})),e("dt",{key:"7f2768abb769cec9b3d1bf1c4046405fa3f282c3"},"phone"),e("dd",{key:"9121bd24b678134d94f1051bad4456d94b461540"},e("smoothly-display",{key:"d61b1a545fdba6c7a1b9c2ce9122183818e47542",type:"phone",value:"0101881108"})),e("dt",{key:"d3d3f73f7ab5de5e2975c5bc1763c7d72c69acb8"},"card number"),e("dd",{key:"849098be9e684ea9bc68bac8fd05e2a586893bf3"},e("smoothly-display",{key:"e751cc9912f1fdd338b63a9db5ef2cc8ed4b40bc",type:"card-number",value:"4111111111111111"})),e("dt",{key:"4acb2eeceb1334b6460a11f7f9933b61bd48ed20"},"card expires"),e("dd",{key:"f6ae3b93f77440abc5438f6af6e40d9964530811"},e("smoothly-display",{key:"5bfa4a17d4e8e6ebc5b94faeee43ce963bd31bb2",type:"card-expires",value:"7/22"})),e("dt",{key:"e30810b6adf6a71a7a5c6c6abc9e0cf28fad1c7e"},"card csc"),e("dd",{key:"bd67e6a4a616d7cf95ee90e02084970be15ad475"},e("smoothly-display",{key:"7568ce3b669095fb4edcd1dd2974d959afdd485b",type:"card-csc",value:"987"})),e("dt",{key:"4f3e8f8a8367015afef690e33e30ff73255d3359"},"date"),e("dd",{key:"85acb48a1f9295bc8f75c226a6edc55492926280"},e("smoothly-display",{key:"f4939232a91bf1f4d98b6ce6883d9e793fd95207",type:"date",value:"2022-07-07"})),e("dt",{key:"a10293b50e7e9618941ce1f2337f6386175ff891"},"date time"),e("dd",{key:"b431af2a61d56675c4161e1c25861f4cb06780b4"},e("smoothly-display",{key:"1ae46193f8205120d5970f5a9d213809e6768c12",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),e("dd",{key:"6eee37e5837c3c31d0dd218b8d28ba72d14a7274"},e("smoothly-display",{key:"cadd5b0016b475b6f06845e4a5f096fa495fc38f",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"})),e("dd",{key:"9e0b7ca976e9c2e76744e6b7f2b13169f8176db8"},e("smoothly-display",{key:"9690855e4593579da6d6ef9848fabe421c53a188",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",{key:"ae6a22a4058b7c703664032f4db6d34deab8f117"},e("smoothly-display",{key:"08061cd335bcfcecc25fd21bea18dadf91b8a5b3",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",{key:"96055e5c2dabd5405c9abddce2e08968e9eaadc9"},e("smoothly-display",{key:"e0d438cea5912edfcadd435ebe18bb31820127a7",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"98fb2ccd362a915d28f69dde02cf97934ecdbda3"},e("smoothly-display",{key:"64741e7b923a1e9da0583839d8672a9f77a82ad3",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"ab24692222866cba986372402b73712f2fc86539"},e("smoothly-display",{key:"3814df12b639cf811602d8d68e093c1cdf778310",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"})),e("dt",{key:"c96a8dfd8a6bc8ecd8dccbd95e5afdbd25016df0"},"Display JSON"),e("dd",{key:"70bd3c92f4519590fe7938e5d0e7d8c4adee11a3"},e("smoothly-display-demo-json",{key:"f0167e90e50c3e552bf30b74524080c7c252bfdc"})))),e("h2",{key:"9098912a1e0d971fb840aebb409d4192def5b629"},"With labels"),e("dd",{key:"96302e348da1518bf09cdedefefe0cd5a183b2ec"},e("smoothly-display",{key:"ea9cfb671bae4e4245bf0186698632879c44535a",label:"Today",type:"date",value:x.now()}),e("smoothly-display",{key:"09c37d099f968d1dd482ca0e6ee20744f551630f",label:"Total amount",type:"price",currency:"SEK",value:6789}),e("smoothly-display",{key:"3e2dbe30539fad2757c6bc5027344a5dbf7bd454",label:"Total amount",type:"price",currency:"GBP",value:678.9}),e("smoothly-display",{key:"3415b6494541d0be2a5c88eb75e61f650d42de8e",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),e("fieldset",{key:"468b3e8e6e7fe91c93493cd804bd59383f4b7e54"},e("h2",{key:"f4d81c45839324b8628ed92dc2db96d9f603fe09"},"Test of different kinds of notifier"),e("button",{key:"32f3d4e71745238bf0efaf3ed27481e43aaa5e17",onClick:()=>this.noticeWarning(A.warn("This is a test warning notice."))},"warning"),e("button",{key:"906b0f542433e9f13140e91db71d17b59f39d01d",onClick:()=>this.noticeWarning(A.succeeded("This is a test success notice."))},"success"),e("button",{key:"56cc3dde29cc2550660b05d69f7ea372de2091c6",onClick:()=>this.noticeWarning(A.failed("This is a test danger notice."))},"danger"),e("button",{key:"7282bec22e381a57864663f55e0535b05e139e35",onClick:()=>this.noticeWarning(A.execute("This is a test execute notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"execute"),e("button",{key:"e0fd211f1bfb1210b218af387690cfde404ef6db",onClick:()=>this.noticeWarning(A.delay("This is a test delay notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"delay")),e("fieldset",{key:"56d71cbb8821a9d6a52ad403daf4e92c2327b61a"},e("h2",{key:"70066d046ad7eff8e72d7c6508f2dddd33111364"},"Smoothly spinner"),e("div",{key:"f675d44f66e1ae6ba2432be0c1dc403505a0c503",style:{width:"fit-content"}},"Large",e("smoothly-spinner",{key:"4f80b9b69703dc1c08603e110dd89ad07c5aa57d",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),e("div",{key:"dda7689714bfa3354dd8d38ad528d347d252b5e9",style:{width:"fit-content"}},"Medium",e("smoothly-spinner",{key:"2f685897c749961ccc804633a0fa6df417afa10f",size:"medium"})),e("div",{key:"04191765756b7bf0fe51c7aeb1c54fe03c3d72d7",style:{width:"fit-content"}},"Small",e("smoothly-spinner",{key:"e0deaf9e74c7dfb9bee2ef85f4309acc111e329a",size:"small"})),e("div",{key:"32cd2b79676ea2dbc4664b542e7ddfcd796fbfcb"},"Icon sized spinner on button",r.values.map((t=>e("smoothly-button",{size:"icon",color:t,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&e("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&e("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),e("h3",{key:"0e9e91fb145b5207f3e6ce1c6d0c872664afb37f"},"Spinner with overlay"),e("div",{key:"ace6e8a453aece5ee5e77f5be3fadeb394a12a0c",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",e("smoothly-spinner",{key:"0afa991d53f83679014fb0d71a169053968f5a04",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),e("div",{key:"ae897d73839a31a663e5ca8516e466b5db9e6324",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",e("smoothly-spinner",{key:"d5cf98b6843d934d9410f0f266fff8babcee33a8",overlay:true,color:"secondary",size:"medium"})),e("div",{key:"4730ec21fd935a3af1d6deccd649e5bbb8fd7bba",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",e("smoothly-spinner",{key:"d2eccfe07320c09f6347ebdc5265985854355b12",overlay:true,size:"small"}))),e("fieldset",{key:"5bf91622534bf402abb0ec4fcbba5b5dc198f39a"},e("h2",{key:"0e4a7ad1a10bb7b9a75940d4f657b6a8f74d509d"},"Smoothly summary"),e("smoothly-summary",{key:"f5c30b4fd816c6d83515148dc5375e48f45be60e"},e("p",{key:"a7bd57662d9cea09ee979721ed5848039dfa99ad",slot:"summary"},"Some title"),e("p",{key:"a90e969ca2dee0ae16b6ef1916be0b3580065136",slot:"content"},"Some content")),e("smoothly-summary",{key:"f0b863a9c41159ac007b4ce657e97d723c0b16a9",size:"large"},e("p",{key:"59bb37db444e1663a91495bd12048469c5abb1d7",slot:"summary"},"Some title"),e("p",{key:"0d922af3955750668610d1746f794112fa62b98c",slot:"content"},"Some content")),e("smoothly-summary",{key:"b5ee4149cc0a3d37b59a8992bcdb9b384971ae38",color:"danger",fill:"clear"},e("div",{key:"4bbca655364e7c861f718dbbe6a4efb1b9d87378",slot:"summary",style:{display:"flex",gap:"0.3rem"}},e("span",{key:"92e3922fb302d942820b9f5d89ae827b4bea4e4c"},"Person"),e("smoothly-icon",{key:"f603d09a398a10a1f924350da5180480de40be43",name:"person",color:"light",fill:"clear",size:"tiny"})),e("p",{key:"bbb6e876604ab87e76631f962f0d700986cb1637",slot:"content"},"Some person information.")),e("smoothly-summary",{key:"d3161f33879337b3b4662ad148e8ba594610989d",color:"danger",fill:"clear",open:true},e("p",{key:"5cd164f5553ea40f9923f32280f4dbd8ff7646b4",slot:"summary"},"Some other title"),e("p",{key:"753e20779f49d355ffd398d72e04d840b9821342",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.")),e("h2",{key:"cb73e95dfb043cf16acb09f5a0a2e95e7c543eb3"},"Label"),lo.map((t=>e("smoothly-label",{hue:t.hue,description:t.description,shape:"rectangle"},t.name))),e("smoothly-label",{key:"84a1b5f36a88be4b01dfc2bd09711e8124d473d6",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const lo=[{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."}];const ro=class{constructor(e){t(this,e)}render(){return e(s,{key:"19502d54bd7e93581bee4cdaa1f2503d7557fe34"},[0,1,3,undefined].map((t=>[e("div",null,"collapseDepth=",t!==null&&t!==void 0?t:"undefined"),e("div",null,e("smoothly-display",{type:"json",value:co,collapseDepth:t}))])))}};const co={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const ho=({value:t,collapseDepth:o})=>j().is(t)||Array.isArray(t)?e("smoothly-display-json-object",{value:t,collapseDepth:o}):e("smoothly-display-json-primitive",{value:t});const mo=".sc-smoothly-display-json-h{font-family:monospace}";const uo=mo;const yo=class{constructor(e){t(this,e);this.value=undefined;this.collapseDepth=undefined}render(){return e(ho,{key:"9021d65675eab4bd489a5590e33551be8b8a2062",value:this.value,collapseDepth:this.collapseDepth})}};yo.style=uo;const bo='.sc-smoothly-display-json-object-h{font-family:monospace;position:relative}[hidden].sc-smoothly-display-json-object-h{display:none}.indent.sc-smoothly-display-json-object{padding-left:1rem;border-left:1px solid rgba(var(--smoothly-default-contrast), 0.3)}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{opacity:0;position:absolute;pointer-events:none}.sc-smoothly-display-json-object-h>.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object:last-child>.comma.sc-smoothly-display-json-object{display:none}.sc-smoothly-display-json-object-h .open-bracket.sc-smoothly-display-json-object{cursor:pointer}.sc-smoothly-display-json-object-h .open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));border:1px solid rgb(var(--smoothly-light-color));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover::after{color:rgb(var(--smoothly-default-contrast));border-color:rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open):not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▶ " attr(data-length) " ◀ "}.open.sc-smoothly-display-json-object-h:not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▼ "}.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover,.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover~.close-bracket.sc-smoothly-display-json-object{font-weight:bold}.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover+.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object{border-left-color:rgb(var(--smoothly-default-contrast))}';const fo=bo;const po=class{constructor(e){t(this,e);this.openBracket="";this.closeBracket="";this.value=undefined;this.collapseDepth=undefined;this.open=undefined;this.empty=undefined}componentWillLoad(){this.open=typeof this.collapseDepth=="number"?this.collapseDepth>0:true;if(Array.isArray(this.value)){this.openBracket="[";this.closeBracket="]";this.length=this.value.length}else{this.openBracket="{";this.closeBracket="}";this.length=Object.keys(this.value).length}this.empty=this.length==0}render(){const t=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return e(s,{key:"0c00f594a1d3593d3ff476db6e8ec8a2594b84f0",class:{empty:this.empty,open:this.open}},e("span",{key:"8a842f369633c0d7877dfbba492555473a0cccf3",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),e("span",{key:"5b222e67cb13cf4053180b934ee72b8f7a447b0e",class:"content"},Array.isArray(this.value)?this.value.map((o=>e("div",{class:"indent"},e(ho,{value:o,collapseDepth:t}),e("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>e("div",{class:"indent"},e("smoothly-display-json-record-key",{value:o}),":"," ",e(ho,{value:s,collapseDepth:t}),e("span",{class:"comma"},","))))),e("span",{key:"ccd423bb725216b06e0918e71a3dc7ffd37ea83d",class:"close-bracket"},this.closeBracket))}};po.style=fo;const go=".sc-smoothly-display-json-primitive-h{font-family:monospace;display:inline;word-wrap:anywhere}[hidden].sc-smoothly-display-json-primitive-h{display:none}.string.sc-smoothly-display-json-primitive-h,.number.sc-smoothly-display-json-primitive-h,.boolean.sc-smoothly-display-json-primitive-h{font-weight:bold}.string.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-primary-color))}.number.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-secondary-color))}.boolean.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-tertiary-color))}.null.sc-smoothly-display-json-primitive-h,.undefined.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-medium-color))}";const ko=go;const vo=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"67c7a46a3bbb4802275181d311a46e49637d4569",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};vo.style=ko;const wo=".sc-smoothly-display-json-record-key-h{font-family:monospace;display:inline;color:rgb(var(--smoothly-default-contrast))}[hidden].sc-smoothly-display-json-record-key-h{display:none}";const xo=wo;const So=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"b95b23adc8efb2d27813cd613129c0aa3a25f130"},'"',this.value,'"')}};So.style=xo;class Co{filter(t){return t.filter((t=>this.is(t)))}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}const zo=[t=>t instanceof Co?t:undefined];function jo(t){zo.push(t)}let Io;function _o(t){Io=t}function To(t){let e;for(const o of zo){e=o(t);if(e)break}return e||Io}class Lo extends Co{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(t){return true}toString(){return""}}_o(new Lo);class Oo extends Co{constructor(t){super();this.criteria=t;this.precedence=50;this.class="Any"}is(t){return t&&typeof t=="object"&&Object.getOwnPropertyNames(t).some((e=>this.criteria.is(t[e])||this.is(t[e])))}toString(){return this.criteria.stringify(this.precedence)}}class Ao extends Co{constructor(t){super();this.precedence=40;this.class="And";this.rules=t.reduce(((t,e)=>e instanceof Ao?[...t,...e.rules]:[...t,e]),[])}is(t){return this.rules.every((e=>e.is(t)))}toString(){return this.rules.map((t=>t.stringify(this.precedence))).join(" ")}generalize(){return new Ao(this.rules.map((t=>t.class=="Property"?t:new Oo(t))))}}function Mo(...t){return new Ao(t.map(To))}var Eo;(function(t){t.is=Do})(Eo||(Eo={}));function Do(t,e=false){return typeof t=="number"||typeof t=="string"||t instanceof Co||e&&typeof t=="object"&&t&&Object.values(t).every((t=>Array.isArray(t)?t.every((t=>Do(t,true))):Do(t,true)))}var $o=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var Ro={};var Po={};var Fo={};var Ho={};var No={};(function(t){Object.defineProperty(t,"__esModule",{value:true});(function(t){t[t["Logging"]=0]="Logging";t[t["Debug"]=1]="Debug";t[t["Warning"]=2]="Warning";t[t["Recoverable"]=3]="Recoverable";t[t["Critical"]=4]="Critical"})(t.Level||(t.Level={}))})(No);Object.defineProperty(Ho,"__esModule",{value:true});const Yo=No;class Uo{constructor(t,e=Yo.Level.Recoverable,o="unknown",s){this.description=t;this.level=e;this.type=o;this.region=s}toString(){return Yo.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}Ho.Message=Uo;Object.defineProperty(Fo,"__esModule",{value:true});const Wo=Ho;class Bo{raise(t,e,o,s){if(!(t instanceof Wo.Message))t=new Wo.Message(t,e,o,s);console.error(t.toString())}}Fo.ConsoleHandler=Bo;var Vo={};var Go={};Object.defineProperty(Go,"__esModule",{value:true});class Ko{constructor(t,e){this.line=t;this.column=e}toString(){return"Ln "+this.line+", Col "+this.column}}Go.Position=Ko;Object.defineProperty(Vo,"__esModule",{value:true});const Zo=Go;class qo extends Zo.Position{constructor(t,e,o){super(e,o);this.resource=t}toString(){return this.resource.toString()+" @ "+super.toString()}}Vo.Location=qo;var Xo={};Object.defineProperty(Xo,"__esModule",{value:true});class Jo{constructor(t,e,o,s){this.resource=t;this.start=e;this.end=o;this.content=s}merge(t){return t?new Jo(this.resource,this.start,t.end,this.content?this.content:""+t.content?t.content:""):this}toString(){let t=this.resource.toString();if(this.start&&this.end)t+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)t+=this.content;return t}}Xo.Region=Jo;Object.defineProperty(Po,"__esModule",{value:true});var Qo=Fo;Po.ConsoleHandler=Qo.ConsoleHandler;var ts=No;Po.Level=ts.Level;var es=Vo;Po.Location=es.Location;var os=Ho;Po.Message=os.Message;var ss=Go;Po.Position=ss.Position;var is=Xo;Po.Region=is.Region;var as={};var ns={};var ls={};var rs={};var cs={};Object.defineProperty(cs,"__esModule",{value:true});class hs{constructor(t,e){this.name=t;this.password=e}get isEmpty(){return!this.name&&!this.password}toString(){let t="";if(this.name)t=this.name;if(this.password)t+=":"+this.password;return t}static parse(t){let e;if(t){const o=t.split(":",2);e=new hs(o[0],o[1])}else e=new hs;return e}}cs.User=hs;var ds={};Object.defineProperty(ds,"__esModule",{value:true});class ms{constructor(t=[],e){this.host=t;this.port=e}get isEmpty(){return this.host.length==0&&!this.port}toString(){let t=this.host.join(".");if(this.port)t+=":"+this.port.toString();return t}static parse(t){let e;if(t){const o=t.split(":",2);e=new ms(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else e=new ms;return e}}ds.Endpoint=ms;Object.defineProperty(rs,"__esModule",{value:true});const us=cs;const ys=ds;class bs{constructor(t=new us.User,e=new ys.Endpoint){this.user=t;this.endpoint=e}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let t="";if(!this.user.isEmpty)t=this.user.toString()+"@";if(!this.endpoint.isEmpty)t=t+this.endpoint.toString();return t}static parse(t){let e;if(t){const o=t.split("@",2);e=new bs(us.User.parse(o.length==2?o.pop():undefined),ys.Endpoint.parse(o.pop()))}return e}}rs.Authority=bs;var fs={};Object.defineProperty(fs,"__esModule",{value:true});const ps=rs;class gs{constructor(t=[],e=new ps.Authority,o=[],s={},i){this.scheme=t;this.authority=e;this.path=o;this.query=s;this.fragment=i}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 gs(this.scheme,this.authority,this.path.filter(((t,e)=>e<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const t=this.name.split(".");return t.length>1?t[t.length-1]:""}createArray(t,e){const o=[];while(e-- >0)o.push(t);return o}normalize(){let t=0;const e=this.path.reverse().filter(((e,o)=>{let s=false;if((e==""||e==".")&&o<this.path.length-1)s=false;else if(e=="..")t++;else if(t>0)t--;else s=true;return s})).concat(this.createArray("..",t)).reverse();return new gs(this.scheme,this.authority,e,this.query,this.fragment)}resolve(t){return!t?this:new gs(this.scheme.length>0?this.scheme:t.scheme,!this.authority.isEmpty?this.authority:t.authority,this.isRelative?t.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(t){return new gs(this.scheme,this.authority,t instanceof Array?[...this.path,...t]:[...this.path,t],this.query,this.fragment)}toString(){let t="";if(this.scheme.length>0)t+=this.scheme.join("+")+":";if(!this.authority.isEmpty)t+="//"+this.authority.toString();else if(this.scheme.length>0)t+="//";if(this.path){let e=this.path.join("/");if(e[0]!="."||t.length>0)e="/"+e;t+=e}if(Object.keys(this.query).length>0)t+="?"+this.query.toString();if(this.fragment)t+="#"+this.fragment;return t}static parse(t){let e;switch(t){case"":case null:case undefined:break;default:let o=true;let s=[];let i=t.split("://",2);if(i.length>1){s=(i.shift()||"").split("+");t=i.shift()}else if(t.slice(0,2)=="//")t=t.slice(2);else o=false;let a;let n;if(t&&(a=t.lastIndexOf("#"))>-1){n=t.slice(a+1);t=t.slice(0,a)}let l={};if(t&&(a=t.lastIndexOf("?"))>-1){l=new Object;t.slice(a+1).split(";").forEach((t=>{i=t.split("=");const e=i.shift();const o=i.shift();if(e&&o)l[e]=o}));t=t.slice(0,a)}let r;let c=[];if(t){i=t.split("/");if(i.length>0){switch(i[0]){case".":case"..":break;case"":i.shift();break;default:if(o)r=ps.Authority.parse(i.shift());else i.unshift(".");break}c=i}}e=new gs(s,r,c,l,n);break}return e}}fs.Locator=gs;gs.empty=new gs(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(ls,"__esModule",{value:true});var ks=rs;ls.Authority=ks.Authority;var vs=ds;ls.Endpoint=vs.Endpoint;var ws=fs;ls.Locator=ws.Locator;var xs=cs;ls.User=xs.User;var Ss={};var Cs={};var zs={};Object.defineProperty(zs,"__esModule",{value:true});class js{}zs.Device=js;Object.defineProperty(Cs,"__esModule",{value:true});const Is=zs;class _s extends Is.Device{}Cs.InDevice=_s;Object.defineProperty(Ss,"__esModule",{value:true});const Ts=Cs;class Ls extends Ts.InDevice{static addOpener(t,e){if(!e)e=0;Ls.openers.push({open:t,priority:e});Ls.openers=Ls.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){let e;let o=0;do{e=Ls.openers[o++].open(t)}while(!e&&o<Ls.openers.length);return e}}Ss.Reader=Ls;Ls.openers=[];Object.defineProperty(ns,"__esModule",{value:true});const Os=ls;const As=Po;const Ms=Ss;var Es=Ss;ns.Reader=Es.Reader;class Ds extends Ms.Reader{constructor(t){super();this.backend=t;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}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 t=this.location;return t?t.resource:Os.Locator.empty}get location(){return this.locationValue}get region(){return new As.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(t){if(!t)t=1;let e;while(t>this.buffer.length&&(e=this.backend.read()))this.buffer.push({data:e,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,t>this.buffer.length?this.buffer.length:t).map((t=>t.data)).join("")}read(t){if(!t)t=1;const e=this.peek(t);if(e&&e.length>0){this.locationValue=this.buffer[e.length-1].location;this.buffer.splice(0,e.length);this.lastContent+=e}return e}peekIs(t,e){let o;if(t)if(typeof t=="string"){const s=t;while(e&&e-- >0)t+=s;o=this.peek(t.length)==t?t:undefined}else if(t.length>0&&!(o=this.peekIs(t[0]))&&t.length)o=this.peekIs(t.slice(1));return o}readIf(t){let e;if(t)if(typeof t=="string")e=this.peek(t.length)==t&&this.read(t.length)||undefined;else if(t.length>0&&!(e=this.readIf(t[0]))&&t.length)e=this.readIf(t.slice(1));return e}readAll(){let t="";while(this.peek())t+=this.read();return t!=""?t:undefined}mark(){const t=this.region;this.lastMark=this.location;this.lastContent="";return t}static create(t){return t?new Ds(t):undefined}}ns.BufferedReader=Ds;var $s={};var Rs={};var Ps=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(Rs,"__esModule",{value:true});function Fs(t){return Ps(this,void 0,void 0,(function*(){}))}Rs.close=Fs;function Hs(t){return Ps(this,void 0,void 0,(function*(){}))}Rs.fsync=Hs;function Ns(t,e,o){return Ps(this,void 0,void 0,(function*(){return 0}))}Rs.open=Ns;function Ys(t,e,o,s){return Ps(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}Rs.write=Ys;function Us(t,e){return{isDirectory:()=>false}}Rs.lstatSync=Us;function Ws(t){return[]}Rs.readdirSync=Ws;function Bs(t,e){return""}Rs.readFileSync=Bs;var Vs={};Object.defineProperty(Vs,"__esModule",{value:true});const Gs="/";Vs.sep=Gs;var Ks={};var Zs=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(Ks,"__esModule",{value:true});const qs=Po;const Xs=ls;const Js=Ss;class Qs extends Js.Reader{constructor(t,e){super();this.content=t;this.resource=e;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 qs.Location(this.resource,this.line,this.column)}get region(){return new qs.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Zs(this,void 0,void 0,(function*(){const t=!(yield this.isEmpty);if(t)this.count=this.content.length;return t}))}read(){let t;if(this.count<this.content.length)t=this.content.charAt(this.count);else if(this.count==this.content.length)t=undefined;this.count++;if(t){switch(t){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=t}return t}mark(){const t=this.region;this.lastPosition=this.location;this.lastContent="";return t}static create(t,e){return t!=undefined?new Qs(t,e||Xs.Locator.empty):undefined}}Ks.StringReader=Qs;Object.defineProperty($s,"__esModule",{value:true});const ti=Rs;const ei=Vs;const oi=ls;const si=Ss;const ii=Ks;class ai extends si.Reader{constructor(t){super();this.backend=t}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}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:oi.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(t){let e;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{e=ii.StringReader.create(ti.readFileSync((t.isRelative?"":ei.sep)+t.path.join(ei.sep),"utf-8"),t)}catch(e){console.log(`Failed to open file: ${t.toString()}`)}return e?new ai(e):undefined}}$s.FileReader=ai;si.Reader.addOpener((t=>ai.open(t)),10);var ni={};var li=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(ni,"__esModule",{value:true});const ri=Rs;const ci=Vs;const hi=ls;const di=Po;const mi=Ss;const ui=$s;class yi extends mi.Reader{constructor(t){super();this.files=t;this.tabSizeValue=2;this.lastLocation=new di.Location(hi.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(t){this.tabSizeValue=t;if(this.current)this.current.tabSize=t}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 di.Region(this.resource)}close(){return li(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let t;if(!this.current&&this.files.length>0){this.current=ui.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){t=this.current.read();if(t==undefined||t=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return t}mark(){return this.current?this.current.mark():new di.Region(this.resource)}static getFiles(t,e,o=[]){let s=[];const i=ri.readdirSync(t);i.forEach((i=>{const a=t+ci.sep+i;if(o.indexOf(a)==-1){if(ri.lstatSync(a).isDirectory())s=s.concat(yi.getFiles(a,e,o));else if(i.length>e.length&&i.lastIndexOf(e,i.length-e.length)===i.length-e.length)s.push(a)}}));return s}static open(t){let e;try{if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file")&&t.isFolder||t.name.match("*"))e=yi.getFiles((t.isRelative?"":ci.sep)+t.folder.path.join(ci.sep),t.extension)}catch(t){}return e?new yi(e.map((t=>new hi.Locator(["file"],undefined,t.split(ci.sep))))):undefined}}ni.FolderReader=yi;mi.Reader.addOpener((t=>yi.open(t)),0);var bi={};var fi={};var pi={};var gi={};Object.defineProperty(gi,"__esModule",{value:true});function*ki(t){let e;while((e=t())!=undefined)yield e}function vi(t){return t.next instanceof Function}function*wi(t,e){let o;while(!(o=t.next()).done)yield o.value;if(vi(e))while(!(o=e.next()).done)yield o.value;else yield e}class xi{constructor(t){this.iterator=t instanceof Function?ki(t):t}get length(){let t=0;while(!this.next().done)t++;return t}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const t=this.next();return t.done?undefined:t.value}next(t){return this.nextValue=this.iterator.next(t)}append(t){return new xi(wi(this,t))}map(t){return new xi((()=>{const e=this.fetch();return e!=undefined?t(e):undefined}))}reduce(t,e){const o=this.fetch();return o?this.reduce(t,t(e,o)):e}apply(t){const e=this.fetch();if(e){t(e);this.apply(t)}}filter(t){return new xi((()=>{let e;do{e=this.fetch()}while(e!=undefined&&!t(e));return e}))}toArray(){const t=this.fetch();let e;if(!t)e=[];else{e=this.toArray();e.unshift(t)}return e}static from(t){return new xi(t)}}gi.Enumerator=xi;xi.empty=xi.from((()=>undefined));var Si={};Object.defineProperty(Si,"__esModule",{value:true});const Ci=gi;function zi(t){return t==null?false:typeof t[Symbol.iterator]==="function"}class ji{constructor(t){this.get=t}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new Ci.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(t){return new ji((()=>this.get().append(t)))}map(t){return new ji((()=>this.get().map(t)))}reduce(t,e){return this.get().reduce(t,e)}apply(t){this.get().apply(t)}filter(t){return new ji((()=>this.get().filter(t)))}toArray(){return this.getEnumerator().toArray()}static from(t){return zi(t)?new ji((()=>new Ci.Enumerator(t[Symbol.iterator]()))):new ji((()=>{const e=t();return e instanceof Ci.Enumerator?e:new Ci.Enumerator(e)}))}}Si.Enumerable=ji;ji.empty=ji.from([]);var Ii={};Object.defineProperty(Ii,"__esModule",{value:true});const _i=gi;class Ti extends _i.Enumerator{constructor(t){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=t;this.position=0}}Ii.ArrayEnumerator=Ti;var Li={};Object.defineProperty(Li,"__esModule",{value:true});const Oi=gi;class Ai extends Oi.Enumerator{constructor(t){super((()=>{const t=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return t}));this.backend=t;this.buffer=[]}peek(t){if(!t)t=0;let e;while(t>this.buffer.length-1&&(e=this.backend.fetch()))this.buffer.push(e);return t>this.buffer.length-1?undefined:this.buffer[t]}}Li.BufferedEnumerator=Ai;var Mi={};Object.defineProperty(Mi,"__esModule",{value:true});class Ei{static padLeft(t,e,o){return Ei.pad(t,e,o,true)}static padRight(t,e,o){return Ei.pad(t,e,o,false)}static pad(t,e,o,s){let i="";const a=o-t.length;for(let t=0;t<a;t++)i+=e;return s?i+t:t+i}}Mi.String=Ei;Object.defineProperty(pi,"__esModule",{value:true});var Di=gi;pi.Enumerator=Di.Enumerator;var $i=Si;pi.Enumerable=$i.Enumerable;var Ri=Ii;pi.ArrayEnumerator=Ri.ArrayEnumerator;var Pi=Li;pi.BufferedEnumerator=Pi.BufferedEnumerator;var Fi=Mi;pi.String=Fi.String;var Hi={};Object.defineProperty(Hi,"__esModule",{value:true});const Ni=zs;class Yi extends Ni.Device{}Hi.OutDevice=Yi;var Ui=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(fi,"__esModule",{value:true});const Wi=ls;const Bi=pi;const Vi=Hi;class Gi extends Vi.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(t){return Ui(this,void 0,void 0,(function*(){return t instanceof Bi.Enumerator?this.writeImplementation(t):t instanceof Array?this.writeImplementation(new Bi.ArrayEnumerator(t)):this.writeImplementation(new Bi.ArrayEnumerator([t]))}))}writeLine(t){return Ui(this,void 0,void 0,(function*(){return t instanceof Bi.Enumerator?this.writeImplementation(t.append(this.newLineSymbol)):t instanceof Array?this.writeImplementation(new Bi.ArrayEnumerator([...t,this.newLineSymbol])):t?this.writeImplementation(new Bi.ArrayEnumerator([t,this.newLineSymbol])):this.writeImplementation(new Bi.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(t,e){if(!e)e=0;Gi.openers.push({open:t,priority:e});Gi.openers=Gi.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){return Ui(this,void 0,void 0,(function*(){let e;if(typeof t=="string"){const o=Wi.Locator.parse(t);e=o?yield Gi.open(o):undefined}else{let o=0;do{e=yield Gi.openers[o++].open(t)}while(!e&&o<Gi.openers.length)}return e}))}}fi.Writer=Gi;Gi.openers=[];Object.defineProperty(bi,"__esModule",{value:true});const Ki=fi;class Zi extends Ki.Writer{constructor(t){super();this.backend=t;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(t){const e=[];let o;let s=t.fetch();if(s)do{o=s;s=t.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);e.push(this.backend.write(o))}while(s);return Promise.all(e).then((t=>t.reduce(((t,e)=>t&&e),true)))}}bi.Indenter=Zi;var qi={};Object.defineProperty(qi,"__esModule",{value:true});const Xi=Ss;const Ji=ns;class Qi extends Xi.Reader{constructor(t,e){super();this.prefix=e;this.done=false;this.backend=t instanceof Ji.BufferedReader?t:Ji.BufferedReader.create(t)}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}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 t;if(!this.done){t=this.backend.read();this.done=t=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new Qi(t,e):t}}qi.PrefixReader=Qi;var ta={};var ea=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(ta,"__esModule",{value:true});const oa=Rs;const sa=Vs;const ia=fi;class aa extends ia.Writer{constructor(t,e){super();this.resource=t;this.descriptor=e;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return ea(this,void 0,void 0,(function*(){let t=true;try{yield oa.fsync(this.descriptor)}catch(e){t=false}return t}))}close(){return ea(this,void 0,void 0,(function*(){let t=this.opened;if(t){try{yield oa.close(this.descriptor)}catch(e){t=false}this.descriptor=0}return t}))}writeImplementation(t){return ea(this,void 0,void 0,(function*(){let e=true;const o=Buffer.from(t.reduce(((t,e)=>t+e),""));try{const t=yield oa.write(this.descriptor,o,0,"utf8");e=t.bytesWritten==o.length}catch(t){e=false}return e&&(!this.autoFlush||(yield this.flush()))}))}static open(t){return ea(this,void 0,void 0,(function*(){let e;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{e=yield oa.open((t.isRelative?"":sa.sep)+t.path.join(sa.sep),"w")}catch(t){e=undefined}return e?new aa(t,e):undefined}))}}ta.FileWriter=aa;ia.Writer.addOpener(aa.open);var na={};Object.defineProperty(na,"__esModule",{value:true});const la=Ss;const ra=ns;class ca extends la.Reader{constructor(t,e){super();this.endMark=e;this.done=false;this.backend=t instanceof ra.BufferedReader?t:ra.BufferedReader.create(t);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}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 t=!this.done;if(t)this.done=true;return Promise.resolve(t)}read(){let t;if(!this.done){t=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new ca(t,e):t}}na.TillReader=ca;var ha={};Object.defineProperty(ha,"__esModule",{value:true});const da=Ss;const ma=ns;class ua extends da.Reader{constructor(t,e){super();this.endMark=e;this.done=-1;this.backend=t instanceof ma.BufferedReader?t:ma.BufferedReader.create(t);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}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 t=this.done>0;if(t)this.done=0;return Promise.resolve(t)}read(){let t;if(this.done!=0){t=this.backend.read();let e;if(this.done>0)this.done--;else if(e=this.backend.peekIs(this.endMark))this.done=e.length}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new ua(t,e):t}}ha.UntilReader=ua;Object.defineProperty(as,"__esModule",{value:true});var ya=ns;as.BufferedReader=ya.BufferedReader;var ba=zs;as.Device=ba.Device;var fa=$s;as.FileReader=fa.FileReader;var pa=ni;as.FolderReader=pa.FolderReader;var ga=bi;as.Indenter=ga.Indenter;var ka=Cs;as.InDevice=ka.InDevice;var va=Hi;as.OutDevice=va.OutDevice;var wa=qi;as.PrefixReader=wa.PrefixReader;var xa=Ss;as.Reader=xa.Reader;var Sa=Ks;as.StringReader=Sa.StringReader;var Ca=ta;as.FileWriter=Ca.FileWriter;var za=na;as.TillReader=za.TillReader;var ja=ha;as.UntilReader=ja.UntilReader;var Ia=fi;as.Writer=Ia.Writer;Object.defineProperty(Ro,"__esModule",{value:true});const _a=Po;var Ta=Ro.Error=_a;const La=as;var Oa=Ro.IO=La;const Aa=ls;Ro.Uri=Aa;const Ma=pi;var Ea=Ro.Utilities=Ma;class Da extends Oa.BufferedReader{constructor(t,e){super(typeof t=="string"?Oa.StringReader.create(t):t);this.errorHandler=e}raise(t,e,o="lexical",s){if(!(t instanceof Ta.Message)){if(!e)e=Ta.Level.Critical;if(!s)s=this.region;t=new Ta.Message(t,e,o,s)}if(this.errorHandler)this.errorHandler.raise(t)}requirePrefix(t){return new Da(new Oa.PrefixReader(this,t),this.errorHandler)}till(t){return new Da(Oa.TillReader.create(this,t),this.errorHandler)}until(t){return new Da(Oa.UntilReader.create(this,t),this.errorHandler)}peekIsSymbol(t){return this.peekIs(t??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function $a(t,e,o){const s=new Da(t,e);return new Ea.Enumerator((()=>{let t;let e=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(e=s.peekIsSymbol(o))t={value:s.read(e)||"",region:s.mark()};else{let e="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))e+=s.read();if(e)t={value:e,region:s.mark()}}}return t}))}class Ra{tokenize(t){return $a(t,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((t=>({value:t.value}))).toArray()}}class Pa extends Ra{constructor(t){super();this.class="array";this.array=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return Pa.completor.flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])}isType(t){return global.Array.isArray(t)}static add(...t){this.completor.push(...t)}static is(t){return t instanceof Pa}}Pa.completor=[];var Fa;(function(t){function e(t){return typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number"}t.is=e})(Fa||(Fa={}));var Ha;(function(t){function e(t){return t.map((t=>typeof t.cursor=="number"?t.value.slice(0,t.cursor)+"_"+t.value.slice(t.cursor,t.value.length):t.value+"_"))}t.stringify=e;function o(t,e,s){return Array.isArray(e)?e.map((e=>o(t,e,s))):{value:t+e.value+(s??""),cursor:typeof e?.cursor=="number"?e?.cursor+t.length:Fa.is(e.cursor)?{start:e.cursor.start+t.length,end:e.cursor.end+t.length}:e.value.length+t.length,suggestion:e.suggestion}}t.prepend=o})(Ha||(Ha={}));class Na extends Ra{constructor(){super();this.class="boolean"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;const i=o?Na.literals.filter((t=>t.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Ha.prepend(":",Na.literals.filter((t=>t.value.startsWith(s[1]?.value??"")))):[];return[...i??[],...(o?[]:Na.completor).flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return typeof t=="boolean"}static add(...t){this.completor.push(...t)}}Na.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Na.completor=[];var Ya;(function(t){function e(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t.length<=3&&t[0].value==":"&&o.value.startsWith(t[1]?.value??"")&&(t[2]?.value??"(")=="("?Ha.prepend(":",[o]):t.length<=4&&t.slice(0,4).reduce(((t,e)=>t+e.value),"")==":"+o.value?Ha.prepend(":"+o.value.substring(0,o.value.length-1),e(),")"):t.length==5&&t.slice(0,3).reduce(((t,e)=>t+e.value),"")+t[4].value==":"+o.value?Ha.prepend(":"+o.value.substring(0,o.value.length-1),e(t.slice(3,t.length-1)),")"):t.length>5&&t.slice(0,3).reduce(((t,e)=>t+e.value),"")+t[t.length-1].value==":"+o.value?Ha.prepend(":"+o.value.substring(0,o.value.length-1),e(t.slice(3,t.length-1)),")"):[]}t.functions=e;function o(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1?Ha.prepend(":",[o]):Ha.prepend(":",e(t.slice(1)))}t.expressions=o;function s(t,e,o){return t.length>=1&&t[0].value==o.value?Ha.prepend(o.value,e(t.slice(1))):t.length==0||t.length==1&&o.value.startsWith(t[0].value)||t[0].value==o.value.replace(/ /g,"")?[o]:[]}t.operators=s})(Ya||(Ya={}));class Ua extends Ra{constructor(t){super();this.input=t;this.class="number";if(t)this.value=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return[...s.length>0&&s[0].value==":"&&e?Ha.prepend(":",e.complete(s.slice(1),undefined,this)):e&&s.length>=0&&o?Ha.prepend(" ",e?.complete(s,undefined,undefined)):[],...(o?Ua.completorArgument:Ua.completor).flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return isNaN(+t)?false:true}static add(...t){this.completor.push(...t)}static addArgument(...t){this.completorArgument.push(...t)}static is(t){return t instanceof Ua||!global.Number.isNaN(t)}}Ua.completor=[];Ua.completorArgument=[];class Wa extends Ra{constructor(t){super();this.properties=t;this.class="object";this.completions=Object.keys(this.properties).map((t=>({value:t,suggestion:{value:t}})))}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;let i;const a=this.filterByType(o);if(!e){const t=s.length>0?this.match(s[0],a):undefined;if(t)i=s.length>=1?Ha.prepend(t.value,this.properties[t.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))i=Ha.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))i=Ha.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let t;i=s.length==0?[...this.addDot(a,o),...o?.class=="number"?[]:Wa.wildcard]:s.length==1&&(t=Wa.wildcard.find((t=>t.value==s[0].value)))?Ha.prepend(t.value,this.completions,o?".":""):s.length>=1&&(t=Wa.wildcard.find((t=>t.value==s[0].value)))?Ha.prepend(t.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],a),o)}}else i=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Ha.prepend(".",this.addDot(a,o)):this.properties[s[1].value]?Ha.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),e,o)):Ha.prepend(".",this.addDot(this.partial(s[1],a),o));return[...i.reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[]),...Wa.completor.flatMap((t=>t(s,this,e)))]}filterByType(t){return t?this.completions.filter((e=>this.properties[e.value].class==t.class||(this.properties[e.value].class=="object"?this.properties[e.value].filterByType(t).length>0:false))):this.completions}addDot(t,e){return!t?[]:e?t.map((t=>this.properties[t.value].class=="object"?{value:t.value+".",suggestion:{value:t.suggestion?.value+"."}}:t)):t}partial(t,e){const o=e.filter((e=>e.value.startsWith(t.value)));return o&&o.length>0?o:undefined}match(t,e){const o=e.filter((e=>e.value==t.value));return o&&o.length>0?o[0]:undefined}isType(t){return false}static add(...t){this.completor.push(...t)}}Wa.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Wa.completor=[];class Ba extends Ra{constructor(t){super();this.class="string";if(t)this.value=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;let i;if(o)i=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else i=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Ha.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...i??[],...(o?[]:Ba.completor).flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return typeof t.value=="string"}static add(...t){this.completor.push(...t)}static is(t){return t instanceof Ba}}Ba.completor=[];class Va extends Ra{constructor(t){super();this.type=t;this.class="union"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return this.type?this.type?.flatMap((t=>t?.complete(s,e,o)??[])):[]}isType(t){return t instanceof Va}static is(t){return t instanceof Va}}var Ga;(function(t){function e(t,e){const o=t.complete(e);return o.filter((t=>!e.includes(t.value)&&t.suggestion?.value)).map((t=>({full:t.value,cursor:t?.cursor??t.value.length,addon:t?.suggestion?.value,description:t?.suggestion?.description})))}t.complete=e;function o(t){let e;switch(typeof t){case"object":e=global.Array.isArray(t)?new Pa(t.map((t=>o(t)))):new Wa(global.Object.entries(t).reduce(((t,e)=>({...t,[e[0]]:o(e[1])})),{}));break;case"string":e=new Ba(t);break;default:e=new Ua(t);break}return e}t.convert=o;t.Array=Pa;t.Boolean=Na;t.Completion=Ha;t.Object=Wa;t.String=Ba;t.Number=Ua;t.Union=Va;t.Completor=Ya})(Ga||(Ga={}));class Ka extends Co{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(t){return typeof t=="string"&&t.endsWith(this.needle)}toString(){return`*${this.needle}`}}function Za(t,e){return Ya.expressions(t,(t=>!t||t[0].value=="*"&&e.value&&e.value.endsWith(t[1]?.value??"")?[Ga.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Ga.String.add(Za);class qa extends Co{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Every"}is(t){return Array.isArray(t)&&t.every((t=>this.criteria.is(t)))}toString(){return`every(${this.criteria.toString()})`}}function Xa(t,e){const o=t=>e.array.some(Ga.String.is)&&t?e.array.filter(Ga.String.is).map((e=>e.complete([{value:":"},...t]))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Ga.String.is)?e.array.filter(Ga.String.is).map((t=>({value:t?.value??""}))):e.array.some(Ga.Number.is)&&t?e.array.filter(Ga.Number.is).map((e=>e.complete(t))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Ga.Number.is)?e.array.filter(Ga.Number.is).map((t=>({value:(t?.value??"").toString()}))):[];return Ya.functions(t,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Ga.Array.add(Xa);class Ja extends Co{constructor(t,e,o){super();this.identifier=t;this.argument=e;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(t){return this.definition?.is(t)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class Qa{stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}class tn extends Qa{constructor(t,e){super();this.name=e;this.precedence=tn.precedence;this.class="Value";if(typeof t=="string")this.value=isNaN(+t.replace(",","."))?t:+t.replace(",",".");else this.value=t}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(t){return t?this.get(t):+this.value}get(t){return typeof this.value=="string"?+t[this.value]:this.name&&typeof this.value=="object"?this.value.get(t[this.name]):+this.value}static create(t,e){return new tn(t,e)}}tn.precedence=19;class en extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(t,e){return(isNaN(+t)?t:+t)>(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function on(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">",suggestion:{value:">"}})}Ga.Number.add(on);Ga.String.add(on);class sn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(t,e){return(isNaN(+t)?t:+t)>=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function an(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">=",suggestion:{value:">="}})}Ga.Number.add(an);Ga.String.add(an);class nn extends Co{constructor(t){super();this.property=t;this.precedence=85;this.class="Has"}is(t,e){return typeof t=="object"&&t?Object.entries(t).some((t=>{e=typeof e=="string"?e:this.property;return t[0]==e?true:typeof t[1]=="object"&&t[1]?this.is(t[1],e.includes(".")&&e.split(".")[0]==t[0]?e.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function ln(t,e,o){return o&&e?.class=="object"?Ya.functions(t,(t=>e.completions.filter((e=>e.value.startsWith(t?t[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Ga.Object.add(ln);class rn extends Co{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(t){return typeof t=="string"&&t.includes(this.needle)}toString(){return`*${this.needle}*`}}function cn(t,e){const o=new rn(t);return e?o.is(e):o}function hn(t,e){return Ya.expressions(t,(t=>!t||t.length==3&&e.value?.includes(t[1].value)&&e.value!=t[1].value||t.length==2&&t[0].value+t[1].value=="**"?[Ga.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:t.length==1&&t[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Ga.String.add(hn);class dn extends Co{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Some"}is(t,e){return Array.isArray(t)&&t.some((t=>this.criteria.is(t,e)))}toString(){return`some(${this.criteria.toString()})`}}function mn(t,e){const o=new dn(To(t));return e?o.is(e):o}function un(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1&&t[0].value==":"?Ga.Completion.prepend(":",e.array.filter(Ga.String.is).filter((t=>t.value&&t.value!="string")).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):t.length==2&&t[0].value==":"?Ga.Completion.prepend(":",e.array.filter(Ga.String.is).filter((e=>e.value&&e.value!="string"&&e.value.startsWith(t[1].value))).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):[]}Ga.Array.add(un);class yn extends Co{constructor(t){super();this.value=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(t,e){return Array.isArray(t)&&Do(this.value)?mn(this.value,t):(typeof t=="boolean"?t.toString():isNaN(+t)?t:+t)==(typeof this.value=="object"?this.value.evaluate(e):this.value)}toString(){return this.value.toString()}}jo((t=>typeof t=="bigint"||typeof t=="boolean"||typeof t=="number"||typeof t=="string"?new yn(t):undefined));class bn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(t,e){return(isNaN(+t)?t:+t)<(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function fn(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<",suggestion:{value:"<"}})}Ga.Number.add(fn);Ga.String.add(fn);class pn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(t,e){return(isNaN(+t)?t:+t)<=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function gn(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<=",suggestion:{value:"<="}})}Ga.Number.add(gn);Ga.String.add(gn);function kn(t,e){return Ya.expressions(t,(t=>t&&t?.length==1&&t[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Ga.String.add(kn);class vn extends Co{constructor(t){super();this.criteria=t;this.precedence=vn.precedence;this.class="Not"}is(t){return!this.criteria.is(t)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}vn.precedence=90;function wn(t,e){const o=new vn(To(t));return e?o.is(e):o}function xn(t,e,o){return e&&e.class!="object"&&o?Ya.expressions(t,(t=>t[0].value!="!"?[]:Ga.Completion.prepend("!",e.complete(t.slice(1),o,e))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Ga.String.add(xn);Ga.Number.add(xn);Ga.Boolean.add(xn);Ga.Object.add(xn);class Sn extends Co{constructor(t){super();this.precedence=Sn.precedence;this.class="Or";this.criteria=t.reduce(((t,e)=>e instanceof Sn?[...t,...e.criteria]:[...t,e]),[])}is(t){return this.criteria.some((e=>e.is(t)))}toString(){return this.criteria.map((t=>t.stringify(this.precedence))).join(" | ")}}Sn.precedence=30;function Cn(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Ga.Number.addArgument(Cn);class zn extends Ea.BufferedEnumerator{constructor(t,e){super(Array.isArray(t)?new Ea.ArrayEnumerator(t):t);this.errorHandler=e}clone(t="(",e=")"){let o=0;return new zn(new Ea.Enumerator((()=>{let s;if(this.peekIs(t))o++;else if(this.peekIs(e))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...t){return t.every(((t,e)=>{const o=this.peek(e);return o&&o.value&&zn.is(t,o.value)}))}fetchIf(...t){const e=[];if(this.peekIs(...t))t.forEach((t=>e.push(this.fetch())));return t.length==1?e.length==1?e[0]:undefined:t.length==e.length?e:undefined}mark(){return Ea.Enumerable.from(Ea.Enumerable.empty)}raise(t,e=Ta.Level.Critical,o="grammatical",s){if(typeof t=="string"){if(!s&&this.last)s=this.last.region;t=new Ta.Message(t,e,o,s)}this.errorHandler.raise(t)}static is(t,e){return Array.isArray(t)?t.some((t=>zn.is(t,e))):typeof t!="string"?t.test(e):t.startsWith("!")&&t!="!"?!zn.is(t.substring(1),e):t=="any"?zn.symbol.every((t=>t!=e)):t=="symbol"?zn.symbol.some((t=>t==e)):t=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(e):t==e}}zn.wildcard=["*","?"];zn.separator=["(",")","."];zn.operator=["!","|"];zn.comparator=["<","<=",">",">=",":"];zn.binaryOperator=[" * "," + "," - "];zn.symbol=[...zn.wildcard,...zn.separator,...zn.operator,...zn.comparator];function jn(t,e){if(typeof t=="string"){e=e||new Ta.ConsoleHandler;const o=$a(t,e).toArray();t=new zn(o,e)}e=e instanceof Co?e:undefined;const o=[];while(t.peek()){if(t.fetchIf("|"))o[o.length-1]=new Sn([o[o.length-1],In(0,t)]);else o.push(In(0,t))}return o.length==1?o[0]:new Ao(o)}function In(t,e){let o;const s=typeof t=="number"?e=>t<e:e=>t.precedence>e;const i=typeof t=="number"?undefined:t;for(const t of _n)if(s(t[1]||Number.MAX_SAFE_INTEGER)){const s=t[0](e,i);if(s){o=In(s,e);break}}return o||i||new Ao([])}const _n=[];function Tn(t,e){_n.push([t,e])}function Ln(t,e){if(typeof t=="string"){e=e||new Ta.ConsoleHandler;const o=$a(t,e).toArray();t=new zn(o,e)}e=e instanceof Qa?e:undefined;let o;let s=false;let i=false;while(!o!=s&&!i&&t.peek()){let e=1;s=false;i=false;while(!s&&!i&&t.peek(e)){s=zn.binaryOperator.some((o=>t.peek(e)?.value==o));i=zn.comparator.some((o=>t.peek(e)?.value==o));e++}o=On(o??Number.MAX_SAFE_INTEGER,t)}if(!o)t.raise("Missing Expression");return o??new tn(NaN)}function On(t,e){let o;const s=typeof t=="number"?undefined:t;for(const s of An){const i=s[0](e,t);if(i){o=i;break}}return o||s}const An=[];function Mn(t,e){An.push([t,e])}Tn((t=>{const e=t.fetchIf(":","every","(")&&new qa(jn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));Tn((t=>{const e=t.fetchIf(":","some","(")&&new dn(jn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));Tn(En(jn));Mn(En(Ln));function En(t){return e=>{const o=e.fetchIf("(")&&t(e.clone());if(o&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return o}}Tn((t=>t.fetchIf(">")&&new en(Ln(t))));Tn((t=>t.fetchIf(">=")&&new sn(Ln(t))));Tn((t=>t.fetchIf("<")&&new bn(Ln(t))));Tn((t=>t.fetchIf("<=")&&new pn(Ln(t))));Tn((t=>t.fetchIf("!")&&new vn(In(vn.precedence,t))));Tn((t=>{const e=t.fetchIf("has","(","any",")")||t.fetchIf(":","has","(","any",")");return e&&new nn(e.length==4?e[2].value:e[3].value)}));class Dn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="Within"}is(t){return this.value.includes(t)}toString(){return`within(${this.value.join(", ")})`}}function $n(t,e){const o=new Dn(t);return e?o.is(e):o}function Rn(t,e,o){return o&&e?.class?Ya.functions(t,(t=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Ga.String.add(Rn);Ga.Number.add(Rn);Tn((t=>{const e=t.fetchIf(":","within","(");let o;if(e&&t.peek()){o=[t.fetch()?.value??""];while(t.fetchIf(","))o.push(t.fetchIf("any")?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&o?new Dn(o):undefined}));class Pn extends Co{constructor(t){super();this.criteria=t;this.precedence=85;this.class="Contains"}is(t,e){return Array.isArray(t)&&this.criteria.every((e=>t.some((t=>e==t))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Fn(t,e){const o=new Pn(t);return e?o.is(e):o}function Hn(t,e,o){return Ya.functions(t,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Ga.Array.add(Hn);Tn((t=>{const e=t.fetchIf(":","contains","(");const o=[];if(e&&t.peek()){do{o.push(t.fetchIf("any")?.value??"")}while(t.fetchIf(","));if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&o.length>0?new Pn(o):undefined}));Tn((t=>{const e=t.peek(3)?.value;const o=[")",",","("].find((t=>t==e))||t.peek(2)?.value==")"?t.fetchIf("identifier","("):undefined;let s;if(o&&t.peek()){s=[t.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(t.fetchIf(","))s.push(t.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return o&&s?new Ja(o[0].value,s):undefined}));class Nn extends Co{constructor(t,e){super();this.name=t;this.criteria=e;this.precedence=Nn.precedence;this.class="Property";this.symbol="."}is(t,e){return!this.criteria?t==e?.[this.name]:typeof t=="object"?this.criteria.is(t[this.name],e??t):this.criteria.is(t,e?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Nn.precedence=80;function Yn(t,e,o){const s=(Array.isArray(t)?t:[t]).reduceRight(((t,e)=>new Nn(e,t)),To(e));return o?s.is(o):s}jo((t=>typeof t=="object"&&!(t instanceof Co)&&!Array.isArray(t)?Mo(...Object.getOwnPropertyNames(t).map((e=>Yn(e,t[e])))):undefined));Tn((t=>{const e=[];let o;while(o=t.fetchIf("identifier","."))e.push(o[0].value);if(t.peekIs("identifier",zn.comparator)&&(o=t.fetchIf("identifier")))e.push(o.value);return e.length>0?e.reduceRight(((t,e)=>new Nn(e,t)),t.peekIs("identifier")&&(o=t.fetchIf("identifier"))?new Nn(o.value):In(Nn.precedence,t)):undefined}));Tn((t=>{const e=t.fetchIf(":","*","any","*")||t.fetchIf("*","any","*");return e&&new rn(e.length==4?e[2].value:e[1].value)}));class Un extends Co{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(t){return typeof t=="string"&&t.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Wn(t,e){return Ya.expressions(t,(t=>!t||t.length==1&&t[0].value=="*"||t.length==2&&t[1].value=="*"&&e.value&&e.value.startsWith(t[0]?.value??"")?[Ga.Completion.prepend("",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Ga.String.add(Wn);Tn((t=>{const e=t.fetchIf(":","any","*")||t.fetchIf("any","*");return e&&new Un(e?.length==3?e[1].value:e[0].value)}));Tn((t=>{const e=t.fetchIf(":","*","any")||t.fetchIf("*","any");return e&&new Ka(e?.length==3?e[2].value:e[1].value)}));class Bn extends Qa{toString(){const t=this.symbol;return this.left.stringify(Bn.getPrecedence(t))+` ${t} `+this.right.stringify(Bn.getPrecedence(t))}constructor(t,e,o,s){super();this.precedence=e;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=t.replace(/ /g,"")}evaluate(t){let e;switch(this.getSymbol()){case"+":e=this.left.evaluate(t)+this.right.evaluate(t);break;case"-":e=this.left.evaluate(t)-this.right.evaluate(t);break;case"*":e=this.left.evaluate(t)*this.right.evaluate(t);break;default:e=NaN;break}return e}getSymbol(){return this.symbol}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}static getPrecedence(t){let e;t=t?.replace(/ /g,"");switch(t){case"+":e=14;break;case"-":e=15;break;case"*":e=16;break;default:e=undefined;break}return e}static create(t,e,o){let s;const i=new Bn("+",14,e,o);const a=Bn.getPrecedence(t);if(a)s=new Bn(t,a,e,o);return s||i}}function Vn(t,e,o){return[" + "," - "," * "].map((t=>({value:t,suggestion:{value:t}}))).map((s=>Ga.Completor.operators(t,(t=>t?o.complete(t,undefined,e):[]),s))).reduce(((t,e)=>t.concat(e)),[])}Ga.Number.addArgument(Vn);Mn(((t,e)=>{let o;const s=t.peekIs(zn.binaryOperator)&&t.fetch().value;let i;if(s&&typeof e=="object"){let a;let n;let l=0;i=Bn.getPrecedence(s);while(!n&&t.peek(l)){n=t.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Bn.getPrecedence(t.peek(l)?.value);l++}if(n&&i<n){a=On(i,t);if(!a){t.raise("Missing right hand side of "+s)}}else a=On(NaN,t);if(n&&i==n||n==Number.MAX_SAFE_INTEGER){o=On(new Bn(s,i,e,a),t)}else o=new Bn(s,i,e,a)}return o}));Mn(((t,e)=>{const o=[];let s;while(s=t.fetchIf("identifier","."))o.push(s[0].value);let i;if(o.length==0){s=t.fetchIf("any",".","any")||t.fetchIf("any",",","any")||t.fetchIf("any");i=s&&(Array.isArray(s)?new tn(+s.map((t=>t.value.replace(",","."))).join("")):new tn(s.value))}else{s=t.fetchIf("identifier");const e=new tn(s?s.value:0);i=o.length>0?o.reduceRight(((t,e)=>new tn(isNaN(+t)?t:+t,e)),e):undefined}if(i&&typeof e=="number"&&!isNaN(e)&&e!=Number.MAX_SAFE_INTEGER)i=On(i,t);return i}));Tn((t=>{let e;if(t.fetchIf(":")){let o=false;let s=false;let i=1;while(!o&&!s&&t.peek(i)){o=zn.binaryOperator.some((e=>t.peek(i)?.value==e));s=zn.comparator.some((e=>t.peek(i)?.value==e));i++}if(o)e=Ln(t)}const o=t.fetchIf("any");return e?new yn(e):o&&new yn(o.value)}));Tn((t=>{t.raise(`Ignoring unknown token "${t.fetch()}"`);return undefined}));function Gn(t,e,o={input:[],identifier:[]}){return Kn[e?.class]?.(t,e,o)??e}const Kn={};function Zn(t,e){Kn[t]=e}Zn("And",((t,e,o)=>new Ao(e.rules.map((e=>Gn(t,e,o))))));var qn;(function(t){function e(t,e){let o=undefined;let s;const i=typeof t=="string"?t:t.toString();if(e&&e.input&&e.identifier&&e?.input?.length>0&&e?.identifier?.length>0&&e.identifier.includes(i)){s=e.identifier.indexOf(i);o=isNaN(+e.input[s])?e.input[s]:+e.input[s]}return o}t.argument=e})(qn||(qn={}));Zn("EndsWith",((t,e,o)=>{const s=qn.argument(e.needle,o);return s?new Ka(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("Every",((t,e,o)=>new qa(Gn(t,e.criteria,o))));Zn("FunctionCall",((t,e,o)=>{const s=t[e.identifier];const i=s?jn(s.definition):undefined;const a=i?Gn(t,i,{input:o?.input?.concat(e.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Ja(e.identifier,e.argument,a)}));Zn("GreaterThan",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new en(s):e}));Zn("GreaterThanOrEqual",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new sn(s):e}));Zn("Has",((t,e,o)=>{const s=qn.argument(e.property,o);return s?new nn(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("Includes",((t,e,o)=>{const s=qn.argument(e.needle,o);return s?new rn(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("LesserThan",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new bn(s):e}));Zn("LesserThanOrEqual",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new pn(s):e}));Zn("Not",((t,e,o)=>new vn(Gn(t,e.criteria,o))));Zn("Or",((t,e,o)=>new Sn(e.criteria.map((e=>Gn(t,e,o))))));Zn("Property",((t,e,o)=>new Nn(e.name,e.criteria&&Gn(t,e.criteria,o))));Zn("Some",((t,e,o)=>new dn(Gn(t,e.criteria,o))));Zn("StartsWith",((t,e,o)=>{const s=qn.argument(e.needle,o);return s?new Un(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("Is",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new yn(s):e}));class Xn extends Co{constructor(t){super();this.criteria=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(t){return this.criteria.length==t.length&&this.criteria.every(((e,o)=>e.is(t[o])))}toString(){return`[${this.criteria.map((t=>t.toString())).join(", ")}]`}}jo((t=>Array.isArray(t)?new Xn(t.map(To)):undefined));function Jn(t,e){const o=To(t);return e?o.is(e):o}function Qn(t,e){const o=To(t);return o.filter(e)}const tl=j({emit:c()});var el;(function(t){let e;(function(t){t.type=j({property:I().optional(),properties:h(I(),I()).optional()})})(e=t.Element||(t.Element={}));t.type=e.type.extend({smoothlyFilterUpdate:tl,smoothlyFilterManipulate:tl})})(el||(el={}));const ol='.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 sl=ol;const il=class{constructor(e){t(this,e);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Mo();this.expanded=false}updateHandler(t){t.stopPropagation();if(el.Element.type.is(t.target))this.filters.add(t.detail)}manipulateHandler(t){t.stopPropagation();this.updating=true;this.criteria=t.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((t=>t(this.criteria)));this.updating=false}filterFieldHandler(t){t.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=Mo(t.detail));this.filters.forEach((t=>t(this.criteria)))}}clear(){var t;(t=this.field)===null||t===void 0?void 0:t.clear();this.smoothlyFilter.emit(this.criteria=Mo());this.filters.forEach((t=>t(this.criteria)))}render(){return e(s,{key:"c9beccb773a6101f5a26d96c1eddb16494d7158f"},e("slot",{key:"da7565883d337518c62ab0c188a2b651ca2ff70e",name:"bar"}),e("smoothly-filter-field",{key:"1565e127cd27b2a2c84bd9775053d2c681963152",criteria:this.criteria,ref:t=>this.field=t}),this.criteria.toString()!=""&&e("smoothly-icon",{key:"cc3baa28d08bd7bdca19d8a2265a45c1dfbcfcbb",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),e("div",{key:"9850fa072e6696f1f34e96358a03824e1e5ae878",class:this.expanded?"container arrow-top":"hidden"},e("slot",{key:"ed4ed18ebbe18ff0028909b4f94a8e4d5b3d1d9b",name:"detail"})),e("smoothly-icon",{key:"fba156474c6d7c93b62ebe4d9690c5d60f44e299",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),e("div",{key:"f1011e232ba37fd419f7f90d65227a7b7cfb4882",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};il.style=sl;const al=".sc-smoothly-filter-field-h{flex-grow:5}";const nl=al;const ll=class{constructor(e){t(this,e);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.value="";this.criteria=undefined}async clear(){var t;await((t=this.input)===null||t===void 0?void 0:t.clear())}filterFieldEmit(){var t;this.smoothlyFilterField.emit(jn((t=this.value)!==null&&t!==void 0?t:""))}updateValue(t){this.value=t.detail.filter}render(){return e(s,{key:"00a08a31c67448ba06e7b57cce3b88b240c715ba"},e("smoothly-input",{key:"a5ee71ef5672d4add5e99ccb2ffd3d4293cb778e",name:"filter",ref:t=>this.input=t,value:this.criteria.toString(),onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyKeydown:t=>{t.stopPropagation();t.detail.key=="Enter"&&this.filterFieldEmit()},onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.updateValue(t)}},"Filter"))}};ll.style=nl;const rl=".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 cl=rl;const hl=class{constructor(e){t(this,e);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(t){var e;if(t instanceof Ao&&t.rules.length>0)for(const o of t.rules){const t=this.isCriteria(o,this.property);if(t){this.needle=(e=t.needle)!==null&&e!==void 0?e:"";break}}else this.needle=""}isCriteria(t,e){const[o,...s]=e.split(".");return t instanceof Nn&&t.name==o&&(t.criteria instanceof rn&&t.criteria||t.criteria instanceof Nn&&this.isCriteria(t.criteria,s.join(".")))||undefined}inputHandler(t){t.stopPropagation();const e=t.detail[this.property];const o=t=>{let o=t;const s=e?this.getCriteria(e):undefined;if(o instanceof Ao){const t=o.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s?t!=-1&&o.rules.splice(t,1):t==-1?o.rules.push(s):o.rules[t]=s;o=Mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(t){return this.property.split(".").reduceRight(((t,e)=>Yn(e,t)),cn(t))}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Nn&&t.name==o&&(s.length==0||!!t.criteria&&this.findInstanceOf(t.criteria,s.join(".")))}render(){return e("smoothly-input",{key:"397b2b9127c595d02cab01ee179da26eeb1d4c80",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>this.inputHandler(t)},this.label,e("slot",{key:"6cc2c8a4815cdbcfa837c6b0f6eb66a16979bd0d"}))}};hl.style=cl;const dl=".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}.options.sc-smoothly-filter-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}";const ml=dl;const ul=class{constructor(e){t(this,e);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.menuHeight=undefined;this.multiple=false;this.type="string";this.looks=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(t){var e,o;(o=await((e=this.selectElement)===null||e===void 0?void 0:e.getItems()))===null||o===void 0?void 0:o.forEach((t=>this.items.set(t.value,{state:this.property.split(".").reduceRight(((t,e)=>({[e]:t})),t.value),item:t})))}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks)}}update(t){this.updating=true;if(t instanceof Ao&&t.rules.length>0)for(const e of this.items.values()){const o=t.rules.some((t=>this.isCriteria(t,this.property,e.state)&&(this.type=="array"?this.findInstanceOf(t,this.property):t.is(e.state))));e.item.selected=o}else this.items.forEach((t=>t.item.selected=false));this.updating=false}isCriteria(t,e,o){const[s,...i]=e.split(".");const a=t instanceof Nn&&t.name==s?this.isCriteria(t.criteria,i.join("."),o[s]):this.multiple?t instanceof Dn&&t.value.some((t=>t==o))||this.type=="array"&&t instanceof Pn&&t.criteria.some((t=>t==o)):t instanceof yn&&t.value==o;return a}selectHandler(t){t.stopPropagation();if(!this.updating){const e=t.detail[this.property];const o=t=>{let o=t;const s=this.getCriteria(e);if(!(o instanceof Co))o=s?Mo(o,s):o;else if(o instanceof Ao){const t=o.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s&&t>=0?o.rules.splice(t,1):!s?undefined:t==-1?o.rules.push(s):o.rules[t]=s;o=Mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Nn&&t.name==o&&(t.criteria instanceof Dn||t.criteria instanceof yn||t.criteria instanceof Pn||t.criteria instanceof Nn&&this.findInstanceOf(t.criteria,s.join(".")))}getCriteria(t){let e;if(this.multiple&&I().array({criteria:"minLength",value:1}).is(t))e=this.type=="array"?Fn(t):$n(t);else if(typeof t=="string")e=Jn(t);else e=undefined;return e&&this.property.split(".").reduceRight(((t,e)=>Yn(e,t)),e)}render(){return e("smoothly-input-select",{key:"008714e67ebc64def90a0646f9780fa11c905197",ref:t=>this.selectElement=t,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyItemSelect:t=>t.stopPropagation(),onSmoothlyInput:t=>this.selectHandler(t)},this.label&&e("span",{key:"558888a8817046ff2b4a9707b0af26c9cfaa11ad",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),e("slot",{key:"b59919853a6c8d6f25d707885983103854eef211",name:"items"}))}get element(){return i(this)}};ul.style=ml;const yl=".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 bl=yl;const fl=class{constructor(e){t(this,e);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(t){if(t instanceof Ao&&t.rules.length>0){this.active=Object.entries(this.properties).every((([e,o])=>t.rules.some((t=>{const s=!this.not?t:t instanceof vn?t.criteria:undefined;return o==""?!(s instanceof Nn&&s.name==e):this.isCriteria(s,e,o)}))))}else this.active=false}isCriteria(t,e,o){const[s,...i]=e.split(".");return t instanceof Nn&&t.name==s&&(t.criteria instanceof yn&&t.criteria.value==o||this.isCriteria(t.criteria,i.join("."),o))}activeHandler(t){const e=e=>{let o=e;t&&(this.active=!this.active);if(o instanceof Ao){for(const[t,e]of Object.entries(this.properties)){const s=!this.active||this.active&&e==""?undefined:this.not?wn(this.createCriteria(t,e)):this.createCriteria(t,e);const i=o.rules.findIndex((e=>this.findInstanceOf(e,t)));!s&&i>=0?o.rules.splice(i,1):!s?undefined:i==-1?o.rules.push(s):o.rules[i]=s}o=Mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(e.bind(this))}createCriteria(t,e){const[o,...s]=t.split(".");return Yn(o,s.length==0?Jn(e):this.createCriteria(s.join("."),e))}findInstanceOf(t,e){const o=!this.not?t:t instanceof vn?t.criteria:false;const[s,...i]=e.split(".");return o instanceof Nn&&o.name==s&&(i.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,i.join(".")))}render(){return e("smoothly-icon",{key:"638c257f2401426e232d2016bb979b98c5f56829",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};fl.style=bl;var pl;(function(t){function e(t){return typeof t=="string"&&(t=="GET"||t=="POST"||t=="DELETE"||t=="HEAD"||t=="PATCH"||t=="PUT"||t=="OPTIONS"||t=="TRACE"||t=="CONNECT")}t.is=e;function o(t){t=t?.toUpperCase();return e(t)?t:undefined}t.parse=o})(pl||(pl={}));const gl={};function kl(t,...e){e.forEach((e=>gl[e]=t))}function vl(t){const e=t.headers.get("Content-Type");const o=e&&e.split(";");const s=gl[o?.[0]??"plain/text"];return s?s(t):t.text()}const wl={};function xl(t,...e){e.forEach((e=>wl[e]=t))}function Sl(t,e){const o=wl[e?.split(";")[0]??""];return o?o(t,e):t}function Cl(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function zl(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const jl=[["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 Il;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function o(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&jl.every((s=>(s[2]==1?e:o)(t[s[0]])))}t.is=e;function o(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const o=jl.find((([e,o,s])=>e==t));return[o?o[1]:zl(t),Array.isArray(e)?e.join(", "):e]})))}t.to=o;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):a(t)?[...t]:Object.entries(t)).map((([t,e])=>{const o=jl.find((([e,o,s])=>t.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[Cl(t),e]})))}t.from=s;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function a(t){return typeof t.entries=="function"}})(Il||(Il={}));var _l;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["method","url","parameter","search","remote","header","body"].some((e=>e==t))))&&pl.is(t.method)&&t.url instanceof URL&&typeof t.parameter=="object"&&Object.entries(t.parameter).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&typeof t.search=="object"&&Object.entries(t.search).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&(t.remote==undefined||typeof t.remote=="string")&&(t.header==undefined||Il.is(t.header))}t.is=e;async function o(t){const o=e(t)?t:i(t);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:t,...e})=>e)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:Il.to(s),body:["GET","HEAD"].some((t=>t==o.method))?undefined:await Sl(await o.body,o.header.contentType)}}t.to=o;function s(t){const e=new URL(t.url);return{method:pl.parse(t.method)??"GET",url:e,header:Il.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:vl(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=s;function i(t){let e;if(typeof t=="string")e=i({url:t});else{const o=typeof t.url=="string"?new URL(t.url):t.url;e={method:pl.parse(t.method)??"GET",url:o,parameter:t.parameter??{},search:{...t.search,...Object.fromEntries(o.searchParams.entries())},remote:t.remote,header:t.header??{},body:t.body}}return e}t.create=i;(function(t){t.is=Il.is;t.from=Il.from;t.to=Il.to})(t.Header||(t.Header={}))})(_l||(_l={}));const Tl=typeof Response!="undefined"?Response:globalThis.Response;var Ll=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Ol=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Al,Ml,El,Dl,$l,Rl,Pl,Fl,Hl;class Nl{get state(){return Ll(this,Dl,"f")?"closed":"opened"}set onMessage(t){if(Ll(this,Ml,"f").length&&t){Ll(this,Ml,"f").forEach(t);Ol(this,Ml,[],"f")}Ol(this,Rl,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();Ol(this,Pl,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();Ol(this,Hl,t,"f")}constructor(t,e){Al.add(this);Ml.set(this,[]);El.set(this,[]);Dl.set(this,false);$l.set(this,void 0);Rl.set(this,void 0);Pl.set(this,void 0);Hl.set(this,void 0);Ol(this,$l,t,"f");if(e)Ol(this,El,undefined,"f");Ll(this,$l,"f").addEventListener("open",(()=>{if(Ll(this,Hl,"f"))Ll(this,Hl,"f").call(this);Ll(this,Al,"m",Fl).bind(this)}));Ll(this,$l,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);Ll(this,Al,"m",Fl).call(this);if(Ll(this,Rl,"f"))Ll(this,Rl,"f").call(this,e);else Ll(this,Ml,"f")?.push(e)}));Ll(this,$l,"f").addEventListener("close",(()=>{if(Ll(this,Pl,"f"))Ll(this,Pl,"f").call(this);Ol(this,Dl,true,"f")}))}send(t){if(Ll(this,El,"f"))Ll(this,El,"f").push(this.processSend(t));else Ll(this,$l,"f").send(this.processSend(t))}}Ml=new WeakMap,El=new WeakMap,Dl=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Hl=new WeakMap,Al=new WeakSet,Fl=function t(){Ll(this,El,"f")?.forEach((t=>Ll(this,$l,"f").send(t)));Ol(this,El,undefined,"f")};class Yl extends Nl{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}}class Ul extends Nl{processReceived(t){return JSON.parse(t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t)}processSend(t){return JSON.stringify(t)}}class Wl extends Nl{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var Bl=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Vl=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Gl,Kl,Zl;class ql{get json(){if(!Bl(this,Gl,"f"))Vl(this,Gl,new Ul(this.backend,this.isOpen),"f");return Bl(this,Gl,"f")}get string(){if(!Bl(this,Kl,"f"))Vl(this,Kl,new Wl(this.backend,this.isOpen),"f");return Bl(this,Kl,"f")}get arrayBuffer(){if(!Bl(this,Zl,"f"))Vl(this,Zl,new Yl(this.backend,this.isOpen),"f");return Bl(this,Zl,"f")}constructor(t,e){this.backend=t;this.isOpen=e;Gl.set(this,void 0);Kl.set(this,void 0);Zl.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}Gl=new WeakMap,Kl=new WeakMap,Zl=new WeakMap;var Xl;(function(t){t.Factory=ql})(Xl||(Xl={}));const Jl=[["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 Ql;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function o(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&Jl.every((s=>(s[2]==1?e:o)(t[s[0]])))}t.is=e;function o(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const o=Jl.find((([e,...o])=>e==t));return[o?o[1]:zl(t),Array.isArray(e)?e.join(", "):e]})))}t.to=o;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):a(t)?n(t):Object.entries(t)).map((([t,e])=>{const o=Jl.find((([e,o,s])=>t.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[Cl(t),e]})))}t.from=s;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function a(t){return typeof t.forEach=="function"}function n(t){const e=[];t.forEach(((t,o)=>e.push([o,t])));return e}})(Ql||(Ql={}));var tr;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||Ql.is(t.header))&&(t.socket==undefined||typeof t.socket.close=="function"&&typeof t.socket.json?.send=="function"&&typeof t.socket.string?.send=="function"&&typeof t.socket.arrayBuffer?.send=="function")&&(t.status!=undefined||t.header!=undefined||t.body!=undefined)}t.is=e})(tr||(tr={}));var er;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||Ql.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function o(t){return new Tl(await Sl(await t.body,t.header.contentType),{status:t.status,headers:new Headers(Ql.to(!t.header.contentType?.startsWith("multipart/formdata")?t.header:(({contentType:t,...e})=>e)(t.header))),...t.socket&&{webSocket:{...t.socket.createResponse().socket}?.backend}})}t.to=o;function s(t){return{status:t.status,header:Ql.from(t.headers),body:t.status==101?undefined:vl(t),...t.webSocket&&{socket:new Xl.Factory(t.webSocket)}}}t.from=s;function i(t,e){const o=tr.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||Ql.is(e))?t.createResponse(e):{status:typeof t=="object"&&typeof t.status=="number"&&t.status||200,header:typeof t=="object"?{...t.header,...(t.status==301||t.status==302)&&t.location?{location:t.location}:{}}:{},body:!(typeof t=="object"&&!Array.isArray(t))||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof FormData?t:(({header:t,...e})=>e)(t),...t.webSocket&&{socket:new Xl.Factory(t.webSocket)}||t.socket&&{socket:t.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof e=="string"?e:e?.contentType?e.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?a(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}t.create=i;function a(t){const e=new Uint8Array(ArrayBuffer.isView(t)?t.buffer:t).slice(0,4);return[37,80,68,70].every(((t,o)=>t==e[o]))}t.Header=Ql;t.Like=tr})(er||(er={}));const or=sr(globalThis.fetch);or.create=sr;function sr(t){return async e=>{const o=_l.create(e);return er.from(await t(o.url.toString(),await _l.to(o)))}}var ir;(function(t){function e(t){const e=new globalThis.FormData;e.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(t,"",e)))],{type:"application/json; charset=utf-8"}));return e}t.to=e;function o(t,e,i){return Object.entries(t).reduce(((t,[a,n])=>{n instanceof Blob?i.append(e?`${e}.${a}`:a,n):typeof n=="object"&&n?Array.isArray(n)?t[a]=s(n,e?`${e}.${a}`:a,i):t[a]=o(n,e?`${e}.${a}`:a,i):t[a]=n;return t}),{})}function s(t,e,i){return t.reduce(((t,a)=>{typeof a=="object"&&a?Array.isArray(a)?t.push(s(a,e,i)):t.push(o(a,e,i)):t.push(a);return t}),[])}async function i(t){const e={};for(const[o,s]of t.entries())await a(e,o.split("."),s);return e}t.from=i;async function a(t,[e,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?e=="*"?n(t,JSON.parse(await s.text())):typeof t[e]=="object"&&t[e]?n(t[e],JSON.parse(await s.text())):t[e]=JSON.parse(await s.text()):t[e]=s;else a(typeof t[e]=="object"&&t[e]?t[e]:t[e]={},o,s)}function n(t,...e){if(e.length){const[o,...s]=e;Object.entries(o).forEach((([e,s])=>l(s)?n(l(t[e])?t[e]:t[e]={},s):t[e]=o[e]));n(t,...s)}}function l(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=l})(ir||(ir={}));function ar(t){const e=[];const o=(t,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":e.push(`${t}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e))o(t?t+`[${e}]`:e,s[e]);break}};o("",t);return e.join("&")}function nr(t){const e=t=>typeof t=="object"&&Object.keys(t).sort().every(((t,e)=>`${t}`==`${e}`))?Object.entries(t).sort().map((t=>typeof t[1]=="object"?e(t[1]):t[1])):typeof t=="object"?Object.fromEntries(Object.entries(t).map((t=>[t[0],e(t[1])]))):t;const o=(t,e,s)=>{t[e[0]]=e.length>1?o(t[e[0]]??{},e.slice(1),s):s;return t};const s=t.split("&").map((t=>t.split("=",2))).map((([t,e])=>[decodeURIComponent(t).split("[").map((t=>t.replace("]",""))),decodeURIComponent(e.replace(/\+/g," "))]));return s.reduce(((t,[s,i])=>e(o(t,s,i))),{})}kl((async t=>await t.text()),"text/plain","text/html");kl((async t=>await t.json()),"application/json");kl((async t=>await t.arrayBuffer()),"application/pdf");kl((async t=>ir.from(await t.formData())),"multipart/form-data");kl((async t=>nr(await t.text())),"application/x-www-form-urlencoded");xl((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");xl((async t=>JSON.stringify(t)),"application/json");xl((async t=>t),"application/pdf");xl((async t=>ar(t)),"application/x-www-form-urlencoded");xl((async t=>t instanceof globalThis.FormData?t:ir.to(t)),"multipart/form-data");var lr;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(lr||(lr={}));var rr;(function(t){let e;(function(t){t.type=j({edit:c(),readonly:_(),listen:c(),reset:c(),setInitialValue:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=j({emit:c()});t.type=e.type.extend({changed:_(),value:E().optional(),smoothlyFormDisable:o});t.is=t.type.is})(rr||(rr={}));var cr;(function(t){t.values=["plain","grid","border","line","transparent"];t.type=I(t.values);t.is=t.type.is})(cr||(cr={}));var hr;(function(t){let e;(function(t){t.type=j({register:c(),unregister:c(),getValue:c(),color:r.type.optional(),name:I(),invalid:_().optional(),looks:cr.type.optional(),defined:_().optional(),binary:c().optional()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=j({emit:c()});t.type=e.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyKeydown:o.optional(),smoothlyInputForm:o.optional(),parent:rr.type.optional()});t.is=t.type.is;function s(t){if(t.parent instanceof ur){t.parent.removeInput(t.name)}}t.formRemove=s;function i(t){t.smoothlyInputLoad.emit((e=>t.parent=e))}t.formAdd=i;function a(t,e){if(!(e.target&&"name"in e.target&&e.target.name===t.name)){e.stopPropagation();e.detail(t)}}t.registerSubAction=a})(hr||(hr={}));const dr='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="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{gap:2em}smoothly-form[looks="grid"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:0.5rem}';const mr=dr;const ur=class{constructor(e){t(this,e);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.validator=undefined;this.type=this.action?"create":undefined;this.readonly=false;this.looks=undefined;this.name=undefined;this.prevent=true;this.changed=false;this.processing=undefined}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async removeInput(t){if(this.element.isConnected){this.value=d.remove(this.value,t);this.inputs.delete(t);this.smoothlyFormInput.emit(d.convertArrays(this.value))}}async listen(t,e){var o;var s;((o=(s=this.listeners)[t])!==null&&o!==void 0?o:s[t]=[]).push(e);e(this)}async watchValue(){var t,e,o;this.changed=[...this.inputs.values()].some((t=>rr.type.is(t)?t.changed:true));if(this.validator){const o=(e=(t=this.validator)===null||t===void 0?void 0:t.flaw(d.convertArrays(this.value)).flaws)===null||e===void 0?void 0:e.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{});for(const[t,e]of this.inputs.entries()){this.validate(o,t,e)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((t=>t(this)))}validate(t,e,o){var s,i;if(e.includes(".")){const[a,...n]=e.split(".");const l=(i=(s=t===null||t===void 0?void 0:t[a])===null||s===void 0?void 0:s.flaws)!==null&&i!==void 0?i:[];this.validate(l.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{}),n.join("."),o)}else{const s=t===null||t===void 0?void 0:t[e];o&&(o.invalid=!!s)}}watchReadonly(){var t;(t=this.listeners.changed)===null||t===void 0?void 0:t.forEach((t=>t(this)))}smoothlyInputLooksHandler(t){t.stopPropagation();t.detail(this.looks,this.color)}async smoothlyInputHandler(t){this.value=d.merge(this.value,t.detail);this.smoothlyFormInput.emit(d.convertArrays(this.value))}async smoothlyKeydownHandler(t){if(t.detail.key=="Enter"&&this.inputs.has(t.detail.name)){t.stopPropagation();await this.submit()}}windowSubmitHandler(t){t.target==this.element&&t.detail.result(false)}submitHandler(t){this.action&&t.stopPropagation()}async smoothlyInputLoadHandler(t){var e;t.stopPropagation();t.detail(this);const o=t.target;if(hr.Element.is(o)){if(await((e=o.binary)===null||e===void 0?void 0:e.call(o)))this.contentType="form-data";const t=await o.getValue();this.value=d.merge(this.value,{[o.name]:t});this.smoothlyFormInput.emit(d.convertArrays(this.value));this.inputs.set(o.name,o)}}async smoothlyFormDisableHandler(t){t.stopPropagation();t.detail(this.readonly)}async submit(t){this.processing=new Promise((e=>{this.smoothlyFormSubmit.emit({value:d.convertArrays(this.value),result:e,type:t==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(A.execute("Submitting form",(async()=>{const s=t?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const i=await or(_l.create(s=="GET"?{method:s,url:`${o}?${ar(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 a=!i||(i===null||i===void 0?void 0:i.status)<200||i.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];e(a[0]);return[...a]})))}}));if(await this.processing){this.type=="create"&&await this.clear();await this.setInitialValue();this.readonlyAtLoad&&await this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){await Promise.all([...this.inputs.values()].map((async t=>lr.is(t)&&t.clear())));this.smoothlyFormClear.emit()}async edit(t){await Promise.all([...this.inputs.values()].map((async e=>rr.Element.type.is(e)&&e.edit(t))));this.readonly=!t;this.smoothlyFormEdit.emit(t)}async reset(){await Promise.all([...this.inputs.values()].map((t=>rr.Element.type.is(t)&&t.reset())));this.changed=[...this.inputs.values()].some((t=>rr.type.is(t)?t.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((t=>rr.Element.type.is(t)&&t.setInitialValue())))}render(){return e(s,{key:"e2c17b7337acbcfe72ffb863c85e60faede5235e"},e("smoothly-spinner",{key:"d7662186f79ee0f5d4405016a35047f11ffcdc34",overlay:true,hidden:!this.processing}),e("form",{key:"632d61643ff5ebb0a76385ef491dc53fc1dd14d5",onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},e("fieldset",{key:"75dda536071a876101b3f74810d234db35552ef4"},e("slot",{key:"167a59eb0712168bc65779d6218b0c0cddb1233f"})),e("div",{key:"be5617bf40a0f232bce860be106557b28d8356aa"},e("slot",{key:"2fa4643245d138a6f2c249b38249451c9f3d077d",name:"clear"}),e("slot",{key:"93a446c4e11d622a7c02c27681cdcb579e1ce5db",name:"edit"}),e("slot",{key:"18a353c56f4dd2919f7ebd4aae3c10d8c505ceb0",name:"reset"}),e("slot",{key:"5a5712ab3ae35fecbad7e62750d8461cebbaaf71",name:"delete"}),e("slot",{key:"6f0467383249a488f44b5a276b2d6686afe18d97",name:"submit"}))))}get element(){return i(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};ur.style=mr;const yr=".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:100%}";const br=yr;const fr=class{constructor(e){t(this,e)}render(){return e(s,{key:"e560582ddeaa5e0ff02ebcee939fde0aef479b6b"},e("div",{key:"497467fdc7ceed5f8639dcd59b1cd4c16cae3db4"},e("smoothly-form-demo-all",{key:"901bf716bdd321ec487718ce3222920bc8fc03fc"}),e("smoothly-form-demo-pet",{key:"fb763f09b51b3dd8cfd563cdbed68823754dcbb6"}),e("smoothly-form-demo-card",{key:"7ad6bcae7773737c7230284c1a9b63ef660f2d2f"}),e("smoothly-form-demo-login",{key:"5ab06018d16cc734fa4747463fb66a7423814404"}),e("smoothly-form-demo-prices",{key:"90138c1bea5ae9dfa51c477e27da5ab4f921e7f5"}),e("smoothly-form-demo-typed",{key:"87828d40f3cd03c13521e376d7f20e1a1ea69ea2"}),e("smoothly-form-demo-transparent",{key:"c12850e8cde3da0aab86374ab341b69877a45584"}),e("smoothly-form-demo-date",{key:"30688a397df7d91632385b53a425bd70278a2e43"}),e("smoothly-form-demo-schedule",{key:"ba375963be37b11115c43e8c67cb21702b6056d0"}),e("smoothly-form-demo-date-range",{key:"0c2db2682e603490ca75127534782dc944db1ed3"}),e("smoothly-form-demo-controlled",{key:"4673859d87e9527db0c762884712555fa0bc577f"})))}};fr.style=br;const pr=class{constructor(e){t(this,e)}render(){return e(s,{key:"9298c0027a86d364c9e0adb853ed89060cc7a644"},e("h2",{key:"b86f7e41dcddd8c9337ea48deb27446b6794ea8c"},"All inputs"),e("smoothly-form",{key:"860e8fbce325048a8e6bfaafc46f83136b016e6b",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:t=>{Object.entries(t.detail.value).forEach((([t,e])=>console.log(t,e)))}},e("smoothly-input",{key:"484dbd9795185b6639794d9327c89a143780e805",readonly:true,name:"First Name",value:"John"},"First name"),e("smoothly-input",{key:"534fd25c0afa52da913af3b8db7e5466af0238e8",showLabel:false,name:"Last name",value:"Doe"},"Last name",e("smoothly-input-clear",{key:"421f97e49656803aeece0b15c9b5836df4ba53e7",size:"icon",slot:"end"})),e("smoothly-input",{key:"86935d28602aa195dd06314d1cdc6de612086de8",type:"phone",name:"Phone",value:"777888999"},"Phone",e("smoothly-input-reset",{key:"fd8f16a7c8370a74eb5bb006862ff0711dfc7b6d",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"d5bcd5035a4a7b89c0508c59bc60872089b0d32d",clearable:true,name:"radioFirstInput"},e("label",{key:"6863ab9bca796cf7251b070429a3c5e0f0550407",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"35af39c7a0fd98cc4dbb472c2ceb3dc63d5a934a",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"55c8c25754506cd692b1be9f90fc654094f6f1ea",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"c36de8288754936a549410de0cd2e85454428972",value:"third"},"Label 3")),e("smoothly-input-color",{key:"0a090d87ced55edf0c1139714ac5545a605d531f",name:"color"},"Color"),e("smoothly-input-select",{key:"446645ff8a548339fca2277cffb4c2ee3b9dd41c",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"bda1f349aad889ec40c44dae6474d0909b322968",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"09fe26ce4b5a9920eec454b00cfc8a52f7c81c6b",value:"1"},"January"),e("smoothly-item",{key:"563059787300a3eafab433e89ac4e0490ce0b715",value:"2"},"February"),e("smoothly-item",{key:"f24d391ba6068274e5121f72f47a7ed146197458",value:"3"},"March"),e("smoothly-item",{key:"e533bf1e61275b73e545cefdd3318e0e95cd04d5",value:"4"},"April"),e("smoothly-item",{key:"3d729d92a59da224464fda63a15cf868a8f318d6",value:"5"},"May"),e("smoothly-item",{key:"38bbd631f5aaa722091f15b8d6fcc7016a24ba2f",value:"6"},"June"),e("smoothly-item",{key:"58558fb82d6bf7795c5333cb78e6f57cdb408285",value:"7"},"July"),e("smoothly-item",{key:"b9ac6170978756e9c0c132d094d3e6c589b2dbd6",value:"8"},"August"),e("smoothly-item",{key:"8c1dfb21e9acf0bd6c1e3cb6f137b7e774ea97b3",value:"9"},"September"),e("smoothly-item",{key:"ada2161238c0abf800739e9e53a8eff4cd94eb7c",value:"10"},"October"),e("smoothly-item",{key:"c5abbaf2ad1afe813f0bd987db7ea0315d54cf9c",value:"11"},"November"),e("smoothly-item",{key:"f1f97f553cefa013b4a3764c53b1ab536255a880",value:"12"},"December")),e("smoothly-input-select",{key:"1671889e3da056149cb5657d935d44afe600e0b2",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"68d6ecab8efd17dde74150a1843c20a419453265",value:"folder",selected:true},e("smoothly-icon",{key:"2cc01f6ac8ccb79b04e4aa6d809ed49a7044b2ee",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"1079bb57d321fc79dd8555e487e376166064e62c",value:"camera"},e("smoothly-icon",{key:"580075f31efb81b91c9d8301a9a4febf9e82c339",size:"small",name:"camera-outline"}))),e("smoothly-input-checkbox",{key:"71285cad4b29ad237c9005932d55380ef6f04b0b",name:"checkbox"},"Check the box"),e("smoothly-input-checkbox",{key:"4196ec46bd8a9cb588c4109ab80ef34dd2531f63",name:"checkbox2",checked:true},"Check the box 2"),e("smoothly-input-range",{key:"bf51eaf55920c8dd72a73872a2ca2d9f14281e52",step:1,name:"range3",value:20,label:"Range"}),e("smoothly-input",{key:"d3171b955095dcc17ee5497c3a264756e74b4096",name:"pets.0.name"},"First Pet's Name"),e("smoothly-input-range",{key:"b11740151f1ab60c21c02a9f4244607e3001e52f",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),e("smoothly-input",{key:"4a4409aabcfec783101425298bfdb1f70b1edffe",name:"pets.1.name"},"Second Pet's Name"),e("smoothly-input-range",{key:"2c4d2d83bc1ddcdee8eb04fc199d849e9d973dcb",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),e("smoothly-input",{key:"c721ccdf6b792df664d9e23e44e3d827d209aa76",name:"pets.2.name"},"Third Pet's Name"),e("smoothly-input-range",{key:"767764bab214e208ef13572ca78f5353313aec4e",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),e("smoothly-input-file",{key:"720645538a3cdf72551570d1a8ab4f25203469f1",name:"profile",placeholder:"Click or drag your profile picture here..."},e("span",{key:"1567a324ff92608c75e32be13aa1cf3d26bb80e9",slot:"label"},"Profile"),e("smoothly-icon",{key:"3226559747e988f1ddebfab8f2da3f87c47135c1",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),e("smoothly-input",{key:"4549acca34866a6e7c3d460612222be24d3b7c7f",type:"duration",name:"duration",value:{}},"Duration"),e("smoothly-input-clear",{key:"76eebe5998fd3d83a50467b40ed9f7ef1566641a",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),e("smoothly-input-edit",{key:"76d8f79bacd7ef403beabd0609f6c9db74384d5c",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),e("smoothly-input-reset",{key:"a735f832cfde957585d383badd1b64ac0b380513",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"375de0564e4df2b96158ce1ea3bfbc53ec3d55c4",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"148ba1273c6d7fb3b3068c47c1d1d78c7f2c260d",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const gr=class{constructor(e){t(this,e)}render(){return e(s,{key:"b38d193bc132649482539a562910c98936bfd71b"},e("h2",{key:"90d93819c346fe276d0baad64a7ac3694ecf98ad"},"Card"),e("smoothly-form",{key:"81e5440d63ff8059824a942cef88ceabfe192f2a",looks:"grid",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail))},e("smoothly-input",{key:"9dd0df6526a036371062547bede12e96aa9514ba",type:"card-number",name:"card"},"Card #"),e("smoothly-input-submit",{key:"06f270d4474cd54e955fe514ece6cb182561255a",size:"icon",slot:"submit",color:"success",fill:"solid"}),e("smoothly-input",{key:"97cf4ea96a751003a3522200a46bb754ca299bb9",type:"card-expires",name:"expires"},"Expires"),e("smoothly-input",{key:"6262ef8e2d8b5acb83bd2d5bc781ade78ef8d3d9",type:"card-csc",name:"csc"},"CVV/CVC"),e("smoothly-input",{key:"733d7f1542eebb66489f89e5c7b0db184e78d892",type:"text",name:"name.first"},"First Name"),e("smoothly-input",{key:"be78062f6dcddcaaf717a546b0ce12e8ef069a7a",type:"text",name:"name.last"},"Last Name")))}};const kr=class{constructor(e){t(this,e);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=x.now()}nameChanged(t,e){console.log(`updated name from '${e}' to '${t}'`)}async submitHandler(t){t.stopPropagation();console.log("Received event. Processing...",t.detail);if(!(typeof t.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof t.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!z.is(t.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((t=>window.setTimeout(t,1e3)));this.name=t.detail.value.name;this.date=t.detail.value.date;this.currency=t.detail.value.currency;console.log("Finished processing successfully. Resolving true.");t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"f653f0ce84b051c93e1b28442113d2cf1a8b926b"},e("h2",{key:"e5dad92a06e3bc295b7cc5dc2df4ec1e55fd7d26"},"Controlled"),e("smoothly-form",{key:"da1d60fc62d3e5163420dd2784cace05a5df2f8b",readonly:true,looks:"grid",onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input",{key:"01b6daa4079c7885a31e4127b2b03e10c4e1df4e",type:"text",name:"name",value:this.name},"Name"),e("smoothly-input-select",{key:"4dfdbd37e9916aec02850c83e0c7a830a9cc1b0e",name:"currency"},e("span",{key:"9b1526a565f370b09490374eb8b7d03770470669",slot:"label"},"Currency"),this.currencies.map((t=>e("smoothly-item",{selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"3fd295c401905c5163b202ff044e8e3bdc5cf865"},"Dummy"),e("smoothly-input-month",{key:"4a5239ad2cd9589ab827f5da772e95491cd99649",name:"date",value:this.date,next:true,previous:true},e("span",{key:"cd66aa878c1d871a11b32492b2348f8d32383281",slot:"year-label"},"Year"),e("span",{key:"33029c392582580e37776c8dd0b7d7a30644bd10",slot:"month-label"},"Month")),e("smoothly-input-edit",{key:"4a67aaf68157a04c90ca3c82de46bf5cb513ae52",slot:"edit",size:"icon",color:"primary",fill:"default"}),e("smoothly-input-reset",{key:"d19f285af0e211b4a08f3ed82b6af1ee1c692783",slot:"reset",size:"icon",color:"warning",fill:"default"}),e("smoothly-input-submit",{key:"7199d2c48ff38360791ea6423179c3ffe6dafe04",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const vr=".sc-smoothly-form-demo-date-h{display:block}";const wr=vr;const xr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=j({date:m("isoly.Date",x.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(A.failed(`Type is incomplete.`))}else{this.notice.emit(A.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"6de62591a7ff99e95c86427c6e7d01374d9d8502"},e("h2",{key:"1780c7b2b48f5472d1e3cb10f9390861172be2a1"},"Date input"),e("smoothly-form",{key:"1a639c8acf534b5735111816fb2137325ec14683",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date",{key:"0168a5e216fabf08a0d8840ef011ea041931e4e9",name:"date"},"Date"),e("smoothly-input-submit",{key:"3f2d5322924d28704e5588fb4446ad85b07c82ff",slot:"submit"},e("smoothly-icon",{key:"3bc96c9ddce72c537182a47c21c764ab17c49780",name:"checkmark-outline"}))))}};xr.style=wr;const Sr=".sc-smoothly-form-demo-date-range-h{display:block}";const Cr=Sr;const zr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=j({range:m("isoly.DateRange",T.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(A.failed(`Type is incomplete.`))}else{this.notice.emit(A.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"cf815ff0b936ae8d935ec09487dd7e1931232bbf"},e("h2",{key:"a2c97f6d833c9cad02d7f67a917ff396ef95efb4"},"Date-range input"),e("smoothly-form",{key:"549e8e92283c7193e9c712628d1c69ffc0fe6594",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date-range",{key:"8c616d33a7dc57cc9820baa0180e1c8a2856580c",name:"range"},"Range"),e("smoothly-input-submit",{key:"f835c5f6b6b8f8ce3b7ed86963c9c833ee38f614",slot:"submit"},e("smoothly-icon",{key:"e1e6fc8861978fbd78adec1762a42568c11f8670",name:"checkmark-outline"}))))}};zr.style=Cr;const jr=class{constructor(e){t(this,e)}render(){return e(s,{key:"490a2e47a4ebc25628dd5ce7f43f238789c11d37"},e("h2",{key:"ee2857de7b8844162e90a0a067ad94a3ec6452b0"},"Login"),e("smoothly-form",{key:"4f98f14f54bfa13e27b4165b68b67a1886399421",looks:"border"},e("smoothly-input",{key:"cbb7490b8a5e0e6d5f4ea836c0a067b5a8981f44",type:"text",name:"username"},"Username"),e("smoothly-input",{key:"710a9b179b674cad575c3b871acb8fe20ee7bf93",type:"password",name:"password"},"Password"),e("smoothly-input-reset",{key:"76a6869bcb095f3b96f2280271d33ed13ccc370c",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"faaffd995c8ab8430ea6e655be144a4d15442f39",slot:"submit"})))}};const Ir='.sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name="hasOwner"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-summary.sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}';const _r=Ir;const Tr=class{constructor(e){t(this,e);this.hasOwner=false;this.owner={};this.value=undefined}render(){var t,o;return e(s,{key:"a18d5c4d14929268195fcd13712e653abee7ce4c"},e("h2",{key:"0357eb46ceb9160a5e7c0301134d5ccec5dbecb1"},"Pet"),e("h3",{key:"7f0ab35101334386099c65cd327e2db657ce81ca"},"Value"),e("smoothly-form",{key:"c5d882668e047eeaade1c61ba6faab1d12db7b7f",looks:"border",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail)),onSmoothlyFormInput:t=>this.value=Object.assign({},t.detail)},e("smoothly-input",{key:"d2e45273c5ce4defe229bbd9602a6a61a807afe2",type:"text",name:"name.first"},"Name"),e("smoothly-input",{key:"4f4ca5d95583b231a08972da2e97ab4207529257",type:"integer",name:"age"},"Age (Years)"),e("smoothly-input-checkbox",{key:"471443d6c675415da6a3c623b7bc91c3b6d39742",name:"hasOwner",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{this.hasOwner=t.detail.hasOwner;t.stopPropagation()}},"Has Owner"),this.hasOwner&&e(a,{key:"f1681976cacf93aa7fa738d9f46d07a977f2598e"},e("smoothly-input",{key:"b2cd9517d1c0ff3f30255222e7cd7c81795d0963",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:t.detail["owner.firstName"]})},"Owner First Name"),e("smoothly-input",{key:"6ae4a20be64e8e361d4aff737bc97c7e5e0f5fba",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:t.detail["owner.lastName"]})},"Owner Last Name"),e("smoothly-input-file",{key:"bf2a7442b03901a499c917632f7e371f77876d14",name:"owner.picture"},e("span",{key:"316b8244fdc16e1421ff397f8bae5fca23ef298b",slot:"label"},"Owner picture")),e("smoothly-input-date",{key:"26ed4d312009d365d0f8377a02ffc264c09513e8",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:t.detail["owner.birthday"]})},"Owner birthday"),e("smoothly-input-date-range",{key:"94038dc278f1f2d845645f4d11da5cf0732a681b",name:"owner.ownedRange",start:(t=this.owner.ownedRange)===null||t===void 0?void 0:t.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:t.detail["owner.ownedRange"]})},"Owner ownedRange"),e("smoothly-input-range",{key:"954d3b9369243b66708a3621b87af070dc74c309",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{height:t.detail["owner.height"]})},"Owner's Height"),e("smoothly-input-select",{key:"5733e2d2217ccc963265a87572b40448c920dc02",name:"owner.favoriteHat"},e("span",{key:"1ea7549b5edcd448434da347d79b7f1452f285c8",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o,selected:this.owner.favoriteHat==t},t)))),e("smoothly-input-color",{key:"52c0e5c0c2591c44a98d25c856ee4ed7b30d664f",name:"owner.favoriteColor",value:this.owner.favoriteColor?u.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:t.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),e("smoothly-input-radio",{key:"5eb8772e00bf998a3afbef72a58b92b0508d1212",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:t.detail["owner.favoritePizza"]})},e("span",{key:"4976b880777c43be895af8624c68d30e74601aa0",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"ed66290cbea3e2ceb5ae2db1a35236edf095bf88",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:t.detail["owner.hasPet"]})},"Has Pet")),e("smoothly-summary",{key:"15531c02a00038be14f92110635eabe7cbd91ee8"},e("span",{key:"cc8feedb365cc7309abb5e3c6615460a9bc9d51a",slot:"summary"},"Summary"),e("div",{key:"86881f2206f8b6e668f30725abb59073cdde9bad",slot:"content"},e("smoothly-input",{key:"8ae806180e0a3d7742d89ee0ee867de0a3154309",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),e("smoothly-input-file",{key:"241fe3c82beb3c5cdd5f11ebe46e047e17c9b793",name:"summary.picture"},e("span",{key:"4c8564d04eab9f0dd365676e61a591330d6a8377",slot:"label"},"Summary picture")),e("smoothly-input-date",{key:"7314238424905e58a4b55cf71a9dcac6bcfb2037",name:"summary.birthday"},"Summary birthday"),e("smoothly-input-date-range",{key:"9c4f11e07a21b09ebf9a16522ff4b7ea1737de93",name:"summary.ownedRange"},"Summary ownedRange"),e("smoothly-input-range",{key:"f1b14b7089e1a878c3ecd59619eae564c475a88b",name:"summary.height",label:"Height"}),e("smoothly-input-select",{key:"2ff53bd36442606dfe4edbd312000cf3dc27f7d4",name:"summary.favoriteHat"},e("span",{key:"c1639a257b254fa95e150c5331f6619cece2e271",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o},t)))),e("smoothly-input-month",{key:"3e9e26fea7233fed804cbaa4e47416f10b502e6a",name:"summary.month"},e("span",{key:"55a0b4755c339c923ba1303f1633569cbfccde47",slot:"month-label"},"Summary month")),e("smoothly-input-color",{key:"0b877be6d38d3830a02573ac31ae43f0d4e9d37f",name:"summary.color"},"Summary Color"),e("smoothly-input-radio",{key:"2173726df1607df4e35595db8cc0b73da5a9be4a",name:"summary.favoritePizza"},e("span",{key:"af0ed6de4a2b0f43a0e03fa1053781e84355465d",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"3f101db40c6c9ba210413b95d77e4b2a92b59796",name:"summary.hasPet"},"Has Pet"))),e("smoothly-tabs",{key:"7b94e0f32cf078215bdf1f6f8595de03dd6a9040"},e("smoothly-tab",{key:"fe043b8af808d30bae169cefdc81ca0df9f18979",label:"Dog"},e("smoothly-input",{key:"882a63607ea9f8785c37b9474a748c34a9f5fbdb",type:"text",name:"dog.breed"},"Breed"),e("smoothly-input-file",{key:"28e53f4ed82779b99dcb9bb28c2428321a299bdb",name:"dog.picture"},e("span",{key:"b0cda5a32d911bec1fbbc5a6986f49bc5fc4b484",slot:"label"},"Dog picture")),e("smoothly-input-date-time",{key:"cd4403ef213dc3085cb7ac5c3cdf2a58b1fc0c41",name:"dog.lastWalk"},"Time of last walk"),e("smoothly-input-date",{key:"32047b040c0044fb34c0d75e30832c85b3ace4f5",name:"dog.birthday"},"Dog birthday"),e("smoothly-input-date-range",{key:"38f674332427fe13994fc9b54b99cc34f839a344",name:"dog.dateRange"},"Dog date range"),e("smoothly-input-select",{key:"8b384c2815f3fd6a6f4490b404bc05ef69386325",name:"dog.favoriteHat"},e("span",{key:"a1e78f6458fe7718f9c9ab540fbe42fe2d486f96",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o},t)))),e("smoothly-input-color",{key:"4126a474816acd625a5f3cc535f3f6088f44ad88",name:"dog.favoriteColor"},"Dog's Favorite Color"),e("smoothly-input-radio",{key:"15f4faae549f42b0fd97ae3d12ead05d18f6356c",name:"dog.favoritePizza"},e("span",{key:"8004907412ece6876d8a8b82f491a2748d909fe7",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"f2e4751841dfa757f34e0aef0cde72475fccd451",name:"dog.hasPet"},"Has Pet")),e("smoothly-tab",{key:"c80492cade2d4e60d6858dfcabcd22d8e9a7afcd",label:"Cat",open:true},e("smoothly-input",{key:"074d3b030c92792efb5dc64731acc4ee6937b013",name:"cat.favoriteFood"},"Favorite Food"))),e("smoothly-input-submit",{key:"fc2e297badc699b4dfa0acd208e79278437b149f",size:"icon",slot:"submit",color:"success",fill:"solid"})),e("smoothly-display",{key:"b50600e5c51b8ab0d34bc45b9f0b97cbda54edc3",type:"json",value:this.value}))}};Tr.style=_r;const Lr=class{constructor(e){t(this,e)}render(){return e(s,{key:"5cf161138753162cf3c11c3e9566c513ff94f8d5"},e("h2",{key:"0161fb3ff22219ba054d29272c97456d9e452a4f"},"Prices"),e("smoothly-form",{key:"d7643c355277d5125b3518e9fca40fc971e49c82",looks:"line"},e("smoothly-input",{key:"9082686e7c532f67e5cb703142fe635ea07445af",type:"price",name:"no"},"No currency"),e("smoothly-input",{key:"92de76dc50d9ef0f6a75a24d3ee57c99a6b25c02",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),e("smoothly-input",{key:"6c26c4cef820c4797f5278a4b7cd941031a7ee9e",type:"price",name:"usDollar",currency:"USD"},"USD"),e("smoothly-input",{key:"1c94af3ac625617ccc7082db9f304ff351e50325",type:"price",name:"pounds",currency:"GBP"},"GBP"),e("smoothly-input",{key:"b1d2404c79c35f8222c5de3f680873f42f57ec7f",type:"price",name:"peso",currency:"UYW"},"UYW"),e("smoothly-input",{key:"8a8553e49d1e3f2881d93fba40e9d9adc838c83b",type:"price",name:"iceland",currency:"ISK"},"ISK"),e("smoothly-input",{key:"6bd9082eebfce511f786835db565de39e82369c5",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),e("smoothly-input-reset",{key:"8473f604d9f3357711013f0d11822859a7d3dbab",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"449971455202ecff95211d20e436388edbd2b95b",slot:"submit"})))}};var Or;(function(t){t.type=j({date:m("isoly.Date",x.is),amount:L()})})(Or||(Or={}));var Ar;(function(t){t.type=j({schedule:Or.type.array()})})(Ar||(Ar={}));const Mr=class{constructor(e){t(this,e)}render(){return e(s,{key:"3299acd725ccaa0186e0113a6c679ab18d6652a9"},e("h2",{key:"e1bc9edde289a35721c23036728963e1e33eb721"},"Schedule"),e("smoothly-form",{key:"fc8f0785f9031ba7f02a66a10978255e832fa599",looks:"line",validator:Ar.type},e("smoothly-input-date",{key:"a7ce025c1056ada02dc4c21f16348a8b0169fbb2",name:"schedule.0.date"},"Date"),e("smoothly-input",{key:"f9001abd54ce0b18742bc0af2defeb38a39ed858",name:"schedule.0.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"5b4cfed469b03c901ad1487962cb67e0dc214ea7",name:"schedule.1.date"},"Date"),e("smoothly-input",{key:"0427bbd7b4c5187293284b73bafcd3c21ab07f0f",name:"schedule.1.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"e689f08a71814fd2ee110d168caae2cb7ad635c7",name:"schedule.2.date"},"Date"),e("smoothly-input",{key:"731308742dc071a745eb219952055e500bd503af",name:"schedule.2.amount",type:"price"},"Amount"),e("smoothly-input-reset",{key:"02882a6878a2600eb45e25bda01421ac2142069c",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"9a656da9019c0845d6d1e64526228fa62a978176",slot:"submit"})))}};const Er=class{constructor(e){t(this,e)}render(){return e(s,{key:"8d7be0985d3c1b2b79dd2b2b843fc77c37d17c1f"},e("h2",{key:"9dcd718676e6ba9dd71267c4bb3d11871329b622"},"Transparent"),e("smoothly-form",{key:"81b16b7b4f7a9a693b76b709256638f17c2880a5",looks:"transparent",onSmoothlyFormSubmit:t=>console.log(t.detail.value)},e("smoothly-input-file",{key:"4586888852990146274d880c983a1e3be992c436",name:"file"},e("span",{key:"d9068024fdbcc58b39311d4abaaf3341b77bfab3",slot:"label"},"File"),e("smoothly-icon",{key:"f42649cbeda953b487d951326ed39043dab4122d",slot:"button",name:"folder-open-outline",size:"small"})),e("smoothly-input",{key:"630bd231d11937a6ac4378736d39e87d94323932",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),e("smoothly-input-date",{key:"1b9f2ae8887909c9e2fea98728d3f556d46964a4"},"Date"),e("smoothly-input-date-range",{key:"655a5a882586b21193abd30335b3381ef7feb539"},"Date Range"),e("smoothly-input-select",{key:"7368c71dce051429d9bac906a19ee130781c2c67",name:"transport"},e("smoothly-item",{key:"05984fc6b2c165ff275e2fabe92594cfa87782a7",value:"plane"},e("smoothly-icon",{key:"4bbfa0b7de34a53d7e890432fde7db1b11ef129b",name:"airplane-outline"})),e("smoothly-item",{key:"2038866ae87e6e2e06a66c98ffa41826dad3c7cd",value:"car"},e("smoothly-icon",{key:"9b52c37976ed2839314ddea50d9d50617bf5aa34",name:"car-outline"})),e("smoothly-item",{key:"03f5679c1145b764ef65b3557a021e7dcc689b04",value:"bus",selected:true},e("smoothly-icon",{key:"88ca130b69c2aa5e6f452c6c341a09cb72b948c8",name:"bus-outline"}))),e("smoothly-input-submit",{key:"01c6a19725e6a2d774796423ed04bfe153650b33",icon:"checkbox-outline"})))}};var Dr;(function(t){t.type=j({name:j({first:I(),middle:I().optional(),last:I()}),age:L((t=>18<=t&&t<=120)),country:m("CountryCode",O.is),birthday:m("Date",x.is)})})(Dr||(Dr={}));const $r="";const Rr=$r;const Pr=class{constructor(e){t(this,e)}render(){return e(s,{key:"c73c988ce6681e27320a66655a0528079958cab4"},e("h2",{key:"6298cb241f37a9c13f05331454e73c5a8207bddf"},"Typed Contact"),e("smoothly-form",{key:"04bec3db0d73a661140f5b5cd791f785903f998e",validator:Dr.type},e("smoothly-input",{key:"f35f3b74089291760ac7f3609f3c2b974859ed1f",name:"name.first"},"First Name"),e("smoothly-input",{key:"eefa07426757567f90ef92040fbad59fb07d6d67",name:"name.middle"},"Middle Name (optional)"),e("smoothly-input",{key:"1761cde3715783a29414ed07b73e59d797c5f39d",name:"name.last"},"Last Name"),e("smoothly-input",{key:"5c63c10a9913c425db7e670500e11f1c2aa80e38",name:"age",type:"integer"},"Age (18-120)"),e("smoothly-input-select",{key:"c057deac00aabc0218425940fc92911df63190bc",name:"country"},e("span",{key:"1c34bc0d49d075140a376e2c80ef3585f2551c67",slot:"label"},"Country"),O.values.map((t=>e("smoothly-item",{value:t},M(t))))),e("smoothly-input-date",{key:"8a9be3f1d54d46184509a712d85be19049e8bb28",name:"birthday"},"Date of birth"),e("smoothly-input-reset",{key:"4013323961a0eee9353c2384ad6881a562ce7753",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"c637c7234c29c115889c68c3ccb78d141c68e454",slot:"submit",size:"icon",color:"success"})))}};Pr.style=Rr;const Fr=".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 Hr=Fr;const Nr=class{constructor(e){t(this,e);this.trigger=o(this,"trigger",7);this.message2=o(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const t=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return t&&t.contentWindow||undefined}get defaultOrigin(){const t=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return t?t[0]:"*"}componentDidLoad(){var t;if(this.contentWindow)y.listen((t=this.origin)!==null&&t!==void 0?t:this.defaultOrigin,((t,e)=>{if(t==this.name)if(l.is(e))this.trigger.emit(e);else this.message2.emit({destination:t,content:e})}),window)}async send(t,e){var o,s;if(typeof t=="string")y.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+t,e,this.contentWindow);else if(y.is(t)&&this.contentWindow)y.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+t.destination,content:t.destination},this.contentWindow)}render(){return[]}get element(){return i(this)}};Nr.style=Hr;const Yr="[fill].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center;box-sizing:content-box}[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{--smoothly-icon-size:1.2em}[size=small].sc-smoothly-icon-h{--smoothly-icon-size:1.4em}[size=medium].sc-smoothly-icon-h{--smoothly-icon-size:1.8em}[size=large].sc-smoothly-icon-h{--smoothly-icon-size:2.8em}[size=xlarge].sc-smoothly-icon-h{--smoothly-icon-size:4em}.sc-smoothly-icon-h{width:var(--smoothly-icon-size, 1.8em);height:var(--smoothly-icon-size, 1.8em)}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Ur=Yr;const Wr=class{constructor(e){t(this,e);this.color=undefined;this.fill="solid";this.name="empty";this.size=undefined;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 t=this.latestPromise=b.load(this.name);let e=await t;if(t==this.latestPromise){e=e===null||e===void 0?void 0:e.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)e=e===null||e===void 0?void 0:e.replace(/<title>.*<\/title>/,"");else if(e===null||e===void 0?void 0:e.includes("<title>"))e=e.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else e=e===null||e===void 0?void 0:e.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(e)}}else this.updateDocument()}updateDocument(t){this.document=t!==null&&t!==void 0?t:`<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 t;return e(s,{key:"6131214e72ce045ae0f9402ce58de3f26aeac91d",innerHTML:this.document,style:{["--rotation"]:`${(t=this.rotate)!==null&&t!==void 0?t:0}deg`}})}static get watchers(){return{toolTip:["nameChanged"],name:["nameChanged"]}}};Wr.style=Ur;const Br=".sc-smoothly-icon-demo-h{display:block;width:clamp(200px, 100%, 1200px);margin:auto}[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>smoothly-icon.sc-smoothly-icon-demo{padding:1rem;position:relative}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover{scale:1.5}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover::after{content:attr(data-name);position:absolute;white-space:nowrap;bottom:100%;background:rgb(var(--smoothly-default-contrast));color:rgb(var(--smoothly-default-color));padding:0.25rem 1rem;z-index:1;pointer-events:none}";const Vr=Br;const Gr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return e(s,{key:"a0706709d49ae4e3beea0bb5a592cce83dbdfc50"},e("h2",{key:"c4058a68fd71e6c1a659f997815902225772e0ce"},"Filter and Variants"),e("smoothly-form",{key:"2a7206c94f5bd868954ef2bbab2c16ba5ec701be",onSmoothlyFormInput:t=>this.display=t.detail},e("smoothly-input",{key:"c81c786a01c0c9101c4c2669dde4891fcc8d79bd",name:"filter"},"Filter"),e("smoothly-input-select",{key:"21d064354e488eedaf0f4d837324d6473edffd99",name:"variant"},e("span",{key:"8e770299b884f6920949df5386e8eb2a1b68c057",slot:"label"},"Variant"),e("smoothly-item",{key:"b29db45415e020b3170d75a5b114c826e9d88454",value:"outline"},"outline"),e("smoothly-item",{key:"9d032a3f19743194c46b68b5e9ee58e4d13d15dc",value:"sharp"},"sharp"),e("smoothly-input-clear",{key:"32adc83b75e1cba0af54469866681129265c108d",slot:"end"}))),e("h2",{key:"b7261752dc07d9859f217cdd79769e490b950ee0"},"Props"),e("smoothly-form",{key:"3e34648bfa6bf8628974bbda25db0132bef60982",onSmoothlyFormInput:t=>this.props=t.detail},e("smoothly-input-select",{key:"fe612d11a476b67e7ac7535df7a06eed6676545b",name:"color"},e("span",{key:"a8774f195af193c7bf455e3f1ee746c83393de2d",slot:"label"},"Color"),r.values.map((t=>e("smoothly-item",{value:t,color:t},t))),e("smoothly-input-clear",{key:"cb96ef4ea25111b19a8a32f61ebda4d48aed061f",slot:"end"})),e("smoothly-input-select",{key:"8be80163691b4843d40152e228ccf837b28d902c",name:"fill"},e("span",{key:"7a4ad5ab5d75fdb994d7dd51e27fe0f3048024cf",slot:"label"},"Fill"),f.values.map((t=>e("smoothly-item",{value:t},t))),e("smoothly-input-clear",{key:"6e945d2ce1769e1b97b4f28cfb52aa4f5c288e01",slot:"end"})),e("smoothly-input-select",{key:"3cb368e15af0312dfa6cb64ddea95b06d1f8aa7f",name:"flip"},e("span",{key:"8622114e3082f040179d53ea261d17f585a29c5b",slot:"label"},"Flip"),e("smoothly-item",{key:"41940930aed4abfafb6b50713dc133f2cd34c9c5",value:"x"},"x"),e("smoothly-item",{key:"9d151f226cf4aa1bcf82415b74341259f9f78b24",value:"y"},"y"),e("smoothly-input-clear",{key:"72975515ddf54f1fd7dab600ef080ee8498c07bb",slot:"end"})),e("smoothly-input-select",{key:"4ba83461e4023c99ef94fcf0c351ac98e70e0cea",name:"size"},e("span",{key:"ea31df439d850779406fa35094e68c590e3c8add",slot:"label"},"Size"),e("smoothly-item",{key:"b27300ba82640e5ee2e78b712417aa96c7bb6093",value:"tiny"},"tiny"),e("smoothly-item",{key:"0e5de1cc80c0a336c4dfc1b77e21f6593483fe44",value:"small"},"small"),e("smoothly-item",{key:"2d71100ccd666e7e53c40ad9dcb24094d6316ba6",value:"medium"},"medium"),e("smoothly-item",{key:"b5dc3ca6278d607f91df771c39c67f2b73ee0a86",value:"large"},"large"),e("smoothly-item",{key:"9dfba645effcec688557c2bed05c44698dd0159b",value:"xlarge"},"xlarge"),e("smoothly-input-clear",{key:"e23d58562e554d6096a44feabaf4365c800c82f3",slot:"end"})),e("smoothly-input-range",{key:"e6076caecd252d6185fc88c8f5dd13b544d115e9",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",e("smoothly-input-clear",{key:"47d878d21777308baffba2529d08aa1a7a85954c",slot:"end"}))),e("h1",{key:"8f9791fe61a60dcb595332f08387d297caf25d9a"},"Icons"),e("div",{key:"b85cbd6ffe7d5a3cdacba67227114ffc6ecd641b",class:"icons"},[...b.Name.values.filter((t=>!this.display.filter||t.includes(this.display.filter))).map((t=>this.display.variant?`${t}-${this.display.variant}`:t)),...b.Logo.values.filter((t=>!this.display.filter||t.includes(this.display.filter)))].map((t=>e("smoothly-icon",{name:t,toolTip:t,"data-name":t,color:this.props.color,fill:this.props.fill,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(t);this.notice.emit(A.succeeded(`Copied "${t}"`))}})))))}};Gr.style=Vr;var Kr;(function(t){function e(t,o){if(t===o)return true;if(typeof t=="object"&&typeof o=="object"){const s=Object.keys(t);if(s.length==Object.keys(o).length&&s.every((s=>e(t[s],o[s]))))return true}return false}t.equal=e;function o(t,o){return!e(t,o)}t.notEqual=o})(Kr||(Kr={}));var Zr;(function(t){function e(t,e,i){const a=/([^.-@\s]+)/gi;return i=="backward"?o(t,e,a):s(t,e,a)}t.getWordBreakIndex=e;function o(t,e,o){let s=0;let i;while((i=o.exec(t))!=null){if(o.lastIndex-i[0].length<e)s=o.lastIndex-i[0].length;else break}return s}function s(t,e,o){let s=0;while(o.exec(t)!=null){s=o.lastIndex;if(o.lastIndex>e)break}o.lastIndex<=e&&(s=t.length);return s}})(Zr||(Zr={}));class qr{constructor(t,e){this.formatter=t;this.type=e;this.keydownHandlers={ArrowLeft:(t,e)=>t.ctrlKey||t.metaKey?e:this.moveCursor(t,e),ArrowRight:(t,e)=>t.ctrlKey||t.metaKey?e:this.moveCursor(t,e)};this.eventHandlers={beforeinput:{insertText:(t,e)=>this.insert(t,e),insertFromPaste:(t,e)=>this.insert(t,e),insertFromDrop:(t,e)=>this.insert(t,e),deleteContentBackward:(t,e)=>{t.preventDefault();if(e.selection.start==e.selection.end)this.select(e,e.selection.start-1,e.selection.end);this.erase(e);return e},deleteContentForward:(t,e)=>{t.preventDefault();if(e.selection.start==e.selection.end)this.select(e,e.selection.start,e.selection.end+1);this.erase(e);return e},deleteWordBackward:(t,e,o)=>{let s=e;if(this.type!="password"){t.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(t,e,o)=>{let s=e;if(this.type!="password"){t.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(t,e)=>{this.erase(e);return e}},input:{insertReplacementText:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value}),insertCompositionText:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value}),deleteWordBackward:(t,e)=>this.type=="password"?Object.assign(Object.assign({},e),{value:t.target.value}):e,deleteWordForward:(t,e)=>this.type=="password"?Object.assign(Object.assign({},e),{value:t.target.value}):e,undefined:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value})}}}static create(t,e){let o;switch(t){case"price":o=Se("price",e);break;case"integer":o=Se("integer",e);break;default:o=Se(t,e);break}return new qr(o||Se("text"),t)}onKeyDown(t,e){var o,s,i,a;let n=e;const l=this.keydownHandlers[t.key];if(l){const r=t.target;e.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:e.selection.start;e.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:e.selection.end;e.selection.direction=(i=r.selectionDirection)!==null&&i!==void 0?i:e.selection.direction;const c=l(t,this.unformatState(e),e);const h=this.partialFormatState(c);if(t.defaultPrevented){r.selectionStart=h.selection.start;r.selectionEnd=h.selection.end;r.selectionDirection=(a=h.selection.direction)!==null&&a!==void 0?a:null}n=h}return n}moveCursor(t,e){t.preventDefault();let o=pe.getCursor(e.selection);let s=pe.getStalker(e.selection);o=Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length);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);return e}onFocus(t,e){const o=this.partialFormatState(this.unformatState(e));const s=t.target;s.value=o.value;return o}onBlur(t,e){const o=this.createFormattedState(e);const s=t.target;s.value=o.value;return o}onInputEvent(t,e){var o,s,i,a,n,l,r;const c=t.target;e.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:e.selection.start;e.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:e.selection.end;e.selection.direction=(i=c.selectionDirection)!==null&&i!==void 0?i:e.selection.direction;const h=t.type=="beforeinput"||t.type=="input"?(l=(n=(a=this.eventHandlers[t.type])[t.inputType])===null||n===void 0?void 0:n.call(a,t,this.unformatState(e),e))!==null&&l!==void 0?l:e:e;const d=this.partialFormatState(h);if(t.defaultPrevented){c.value=d.value;c.selectionStart=d.selection.start;c.selectionEnd=d.selection.end;c.selectionDirection=(r=d.selection.direction)!==null&&r!==void 0?r:null}return d}insert(t,e){t.preventDefault();if(typeof t.data=="string")for(const o of t.data)this.formatter.allowed(o,e)&&this.replace(e,o);return e}deleteWord(t,e){const o=pe.getCursor(t.selection);const s=Zr.getWordBreakIndex(t.value,o,e);const i=this.unformatState(Object.assign(Object.assign({},t),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const a=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.value=a;i.selection.end=i.selection.start;return i}select(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}erase(t){this.replace(t,"")}replace(t,e){t.value=t.value.substring(0,t.selection.start)+e+t.value.substring(t.selection.end);t.selection.start=t.selection.start+e.length;t.selection.end=t.selection.start}unformatState(t){return ge.copy(this.formatter.unformat(ke.copy(t)))}partialFormatState(t){return this.formatter.partialFormat(ke.copy(t))}createFormattedState(t){return this.formatter.format(ke.copy(this.formatter.unformat(ke.copy(t))))}toString(t){return this.formatter.toString(t)}initialState(t){const e=this.toString(t)||"";const o=e.length;const s=this.createFormattedState({value:e,selection:{start:o,end:o,direction:"none"}});return s}setValue(t,e,o){const s=Object.assign(Object.assign({},e),{value:this.createFormattedState({value:this.formatter.toString(o),selection:e.selection}).value});t.value=s.value;return s}getValue(t){return this.formatter.fromString(this.unformatState(t).value)}setSelection(t,e,o,s){t.focus();t.selectionStart=o;t.selectionEnd=s;this.select(e,o,s);return e}}var Xr;(function(t){t.type=j({name:I(),key:I(),shift:_(),ctrl:_(),alt:_(),meta:_()});t.is=t.type.is;function e(t,e){return{name:t,key:e.key,shift:e.shiftKey,ctrl:e.ctrlKey,alt:e.altKey,meta:e.metaKey}}t.create=e})(Xr||(Xr={}));const Jr='.sc-smoothly-input-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-h,[looks="transparent"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-h>input.sc-smoothly-input,[looks="transparent"].sc-smoothly-input-h:not(:focus-within)>input.sc-smoothly-input{background:transparent}[looks="transparent"].sc-smoothly-input-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-h.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .label.sc-smoothly-input{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h.floating-label.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.floating-label .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder] .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly] .sc-smoothly-input-s>[slot=label],.has-value.sc-smoothly-input-h .label.sc-smoothly-input,[placeholder].sc-smoothly-input-h .label.sc-smoothly-input,[readonly].sc-smoothly-input-h .label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-h:not([show-label]):not(.show-label) .label.sc-smoothly-input{display:none}.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>.smoothly-input-container.sc-smoothly-input{position:relative;flex-grow:1;height:100%}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>label.sc-smoothly-input{left:var(--input-padding-side)}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>input.sc-smoothly-input{padding:0 var(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input{position:absolute;box-sizing:border-box;align-content:center;height:100%;padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.remainder.sc-smoothly-input{display:inline;pointer-events:none;opacity:0.5}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>input.sc-smoothly-input{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side);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>.smoothly-invalid.sc-smoothly-input{display:none;z-index:2;cursor:pointer;padding:0.5rem}[invalid].sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:flex}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.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 Qr=Jr;const tc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyKeydown=o(this,"smoothlyKeydown",7);this.smoothlyBlur=o(this,"smoothlyBlur",7);this.smoothlyChange=o(this,"smoothlyChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.uneditable=this.readonly;this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.showLabel=true;this.autocomplete=undefined;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.toInteger=undefined;this.currency=undefined;this.min=undefined;this.max=undefined;this.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async setValue(t){if(this.inputElement)this.state=this.stateHandler.setValue(this.inputElement,this.state,t)}async setFocus(){var t;(t=this.inputElement)===null||t===void 0?void 0:t.focus()}async setSelection(t,e){if(this.inputElement)this.state=this.stateHandler.setSelection(this.inputElement,this.state,t,e<0?this.inputElement.value.length+e+1:e)}async listen(t,e){this.listener[t]=e;e(this)}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async clear(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,undefined)}}async edit(t){!this.uneditable&&(this.readonly=!t)}async reset(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,this.initialValue)}}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}async setCustomInitialValue(t){this.initialValue=t}async smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}typeChange(){var t,e;switch(this.type){case"price":this.stateHandler=qr.create("price",{currency:this.currency,toInteger:this.toInteger});break;case"integer":this.stateHandler=qr.create("integer",{min:this.min,max:this.max});break;default:this.stateHandler=qr.create(this.type,$());break}this.state=this.stateHandler.initialState((t=this.value)!==null&&t!==void 0?t:(e=this.state)===null||e===void 0?void 0:e.value)}stateChange(){var t,e;this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}valueChange(t){const e=this.stateHandler.getValue(this.state);if(Kr.notEqual(e,t)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,t);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentWillLoad(){var t,e;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(t){this.state=this.stateHandler.onInputEvent(t,this.state)}render(){var t,o,i,a,n,l,r,c,h,d;return e(s,{key:"872dc829ab3ad7ae0a89d5bb33b6873a8bcfcd63",class:{"has-value":((t=this.state)===null||t===void 0?void 0:t.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var t;return(t=this.inputElement)===null||t===void 0?void 0:t.focus()}},e("slot",{key:"30df6acf4cb3acb717a486ac0ad75da1522927a7",name:"start"}),e("div",{key:"1250557b67717ca57b08c2b6424a7896f432e11a",class:"smoothly-input-container"},e("div",{key:"fef92aa30c0c0107f45c6818267dc20221f2cc30",class:"ghost"},e("div",{key:"bad4d7ea96ba8e4da99271223e127ce5f062330f",class:"value"},(i=this.state)===null||i===void 0?void 0:i.value),e("div",{key:"b17df2280f81d15afc29f5402341e85e50beb5ba",class:"remainder"},(a=this.state)===null||a===void 0?void 0:a.remainder)),e("input",{key:"c96649c35f2c06dfdf3630b5c497523d0248d9b4",ref:t=>this.inputElement=t,color:this.color,name:this.name,type:(n=this.state)===null||n===void 0?void 0:n.type,inputmode:(l=this.state)===null||l===void 0?void 0:l.inputmode,placeholder:this.placeholder,required:this.required,autocomplete:(r=this.autocomplete)!==null&&r!==void 0?r:(c=this.state)===null||c===void 0?void 0:c.autocomplete,disabled:this.disabled,readOnly:this.readonly,pattern:((h=this.state)===null||h===void 0?void 0:h.pattern)&&((d=this.state)===null||d===void 0?void 0:d.pattern.source),onKeyDown:t=>{this.state=this.stateHandler.onKeyDown(t,this.state);if(!this.readonly&&!this.disabled)this.smoothlyKeydown.emit(Xr.create(this.name,t))},onFocus:t=>!this.readonly&&(this.state=this.stateHandler.onFocus(t,this.state)),onBlur:t=>{if(!this.readonly){const e=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(t,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(Kr.notEqual(e,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),e("label",{key:"c59ccd5a649873efc5bc0feefc722d5c85068b2d",class:"label float-on-focus",htmlFor:this.name},e("slot",{key:"73aa7a5bb5448bf7bd37f5102c8d53ebda0a2b62"}))),e("smoothly-icon",{key:"8145ef6bdfcf30cc9402916e0880a425d6dad9d4",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"5313f26d26dc2141b84194f9965ea67b324af575",name:"end"}))}get element(){return i(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};tc.style=Qr;const ec='.sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding:0 var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.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.25rem;width:1.25rem;border:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly]),.sc-smoothly-input-checkbox-h:not([readonly])>*.sc-smoothly-input-checkbox{cursor:pointer}[readonly].sc-smoothly-input-checkbox-h,[readonly].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{cursor:not-allowed;border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}';const oc=ec;const sc=class{constructor(e){t(this,e);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=undefined;this.color=undefined;this.disabled=undefined}componentWillLoad(){var t,e;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var t,e;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return e(s,{key:"45c1c7beef37896ee98099088ddd736986615840",onMouseDown:t=>this.mouseDownPosition={x:t.clientX,y:t.clientY},onMouseUp:t=>{var e;return((e=this.mouseDownPosition)===null||e===void 0?void 0:e.x)==t.clientX&&this.mouseDownPosition.y==t.clientY&&this.click()}},e("input",{key:"4283cbb2f152ef92e627b277121cda8de1b573ed",type:"checkbox",checked:this.checked}),this.checked&&e("smoothly-icon",{key:"6384fd5ad97ea238b71fed6cc1ed9f4d84f9dfaa",name:"checkmark-outline",size:"tiny"}),e("label",{key:"053cd3b9ff5f9c80cac0fb8663d08a38769f31b2"},e("slot",{key:"efad1d448b746b765ce6e8a6a17c6c2e9a9658f5"})))}get element(){return i(this)}static get watchers(){return{checked:["elementCheck"]}}};sc.style=oc;const ic='[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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-clear-h{display:inline}[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>a.sc-smoothly-input-clear:empty,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:empty{border-width:0}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[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;--smoothly-button-border-radius:0}[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-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-clear-h:not([fill=clear])>button.sc-smoothly-input-clear:hover,.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-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:hover::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-within::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.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{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))}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h{display:flex}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h[type="input"].sc-smoothly-input-clear-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-clear-h{cursor:not-allowed}.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%)}';const ac=ic;const nc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Clear"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(lr.is(t)){this.parent=t;if(rr.Element.is(t)){t.listen("changed",(async t=>{if(hr.is(t)){this.display=!t.readonly&&(typeof t.defined=="boolean"?t.defined:Boolean(await t.getValue()))}if(t instanceof ur){this.disabled=t.readonly||Object.values(t.value).filter((t=>t)).length<1;this.display=!t.readonly}}))}}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.clear()}render(){var t;return e(s,{key:"1c44261b3920fc4afef44e592c57d4edce43cfa2",title:this.tooltip},e("smoothly-button",{key:"5640b6d34c7d6910a21a8e87f60b365521eb55e1",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined},e("slot",{key:"9c3fd0bfd5edf45d75f11639f569db85a71e6070"}),e("smoothly-icon",{key:"624113149ddac310bc350ea3a6bb73e73216e10c",name:"close",size:"tiny"})))}};nc.style=ac;const lc='.sc-smoothly-input-color-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-color-h[looks="border"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}.sc-smoothly-input-color-h[looks="line"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-color-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-color-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-color-h,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background:transparent}[looks="transparent"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{filter:opacity(60%)}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:10;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:"";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));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}';const rc=lc;const cc=class{constructor(e){t(this,e);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.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.readonly=false;this.output="rgb";this.name=undefined;this.showLabel=true;this.open=false;this.sliderMode="rgb"}async componentWillLoad(){this.value&&this.setInitialValue();this.value&&(this.rgb=r.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.output==="rgb"?{r:this.rgb.r===undefined?undefined:Math.round(this.rgb.r),g:this.rgb.g===undefined?undefined:Math.round(this.rgb.g),b:this.rgb.b===undefined?undefined:Math.round(this.rgb.b)}:this.value?this.value:undefined}async clear(){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var t,e;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}handleSwitchMode(t){t.stopPropagation();this.sliderMode=t.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=r.Hex.toRGB(this.value))}else{this.value&&(this.hsl=r.RGB.toHSL(r.Hex.toRGB(this.value)))}}hexInputHandler(t){if(t!==this.value){if(t&&r.Hex.type.is(t)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=r.Hex.toRGB(t)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=r.RGB.toHSL(r.Hex.toRGB(t))}}else if(!t||!r.Hex.type.is(t)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=t}}sliderInputHandler(t){var e;t.stopPropagation();const o=Object.keys(t.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(t.detail[o]===undefined)){for(const i of Object.keys(s))if(i===o)s=Object.assign(Object.assign({},s),{[i]:i==="s"||i==="l"?+((e=t.detail[o])!==null&&e!==void 0?e:0)*100:t.detail[o]});else if(s[i]===undefined)s=Object.assign(Object.assign({},s),{[i]:0});if(this.sliderMode==="rgb"){this.rgb=Object.assign({},s);this.hsl=r.RGB.toHSL(this.rgb);this.hexInputHandler(r.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},s);this.rgb=r.HSL.toRGB(this.hsl);this.hexInputHandler(r.RGB.toHex(r.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var t,o,i,a,n,l;return e(s,{key:"da2e8d3b9d34a34700e56943bf46f97952c82c8f",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((t=this.rgb.r)!==null&&t!==void 0?t:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((i=this.rgb.b)!==null&&i!==void 0?i:0)}`,"--hsl-h":`${Math.round((a=this.hsl.h)!==null&&a!==void 0?a:0)}`,"--hsl-s":`${Math.round((n=this.hsl.s)!==null&&n!==void 0?n:0)}%`,"--hsl-l":`${Math.round((l=this.hsl.l)!==null&&l!==void 0?l:0)}%`,"--element-height":`${this.element.clientHeight}px`}},e("smoothly-input",{key:"0811b9e8b343160a8767b07ddfbc8124cfa9ee6d",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:t=>(t===null||t===void 0?void 0:t.stopPropagation(),this.hexInputHandler(t.detail[this.name]))},e("slot",{key:"c20ff101d416406ea67da7d9cb5aa0aa0b3c4f43"})),e("div",{key:"554cc3985ec8bb9737c94b65031a34a86f4de6cc",class:"color-sample"}),e("smoothly-icon",{key:"27ec92c81e1da06171dc03ee0fc1a4d801c25811",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),e("div",{key:"9c3069fbd41e47041145877424504858eec0f5c0"},e("slot",{key:"4b5a81761af0eaa45b80ff291c78a1662d62a5c4",name:"end"})),this.open&&!this.readonly&&e("div",{key:"71642c17b0531a61f0f3032ec189f337094b589b",class:"rgb-sliders"},e("smoothly-toggle-switch",{key:"a3a1500be0748165ed5ba43fd0671744b6fc801d",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:t=>this.handleSwitchMode(t),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([t,o])=>e("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:t,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:t=>this.sliderInputHandler(t),label:t.toUpperCase()}))),Object.entries(this.hsl).map((([t,o])=>e("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:t,min:0,max:t==="h"?359:1,color:undefined,type:t==="s"||t==="l"?"percent":"text",value:(t==="s"||t==="l")&&o?o/100:o,step:t==="s"||t==="l"?.01:1,outputSide:"right",onSmoothlyInput:t=>this.sliderInputHandler(t),label:t.toUpperCase()})))))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};cc.style=rc;const hc=class{constructor(e){t(this,e)}render(){return e(s,{key:"6c0f77709d1ab40676d2214ec1a0e1545baf1e5b"},e("h2",{key:"a5840477e827a305d2441f157a67936afe48397f"},"Color"),e("smoothly-input-color",{key:"b4c59fbfcaacd9c2561264ca5bad49a5c15d2c1f",name:"color"},"Choose color"))}};hc.style="style.css";const dc='.sc-smoothly-input-date-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-date-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-h,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-h>input.sc-smoothly-input-date,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within)>input.sc-smoothly-input-date{background:transparent}[looks="transparent"].sc-smoothly-input-date-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .label.sc-smoothly-input-date{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-h.floating-label.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.floating-label .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder] .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly] .sc-smoothly-input-date-s>[slot=label],.has-value.sc-smoothly-input-date-h .label.sc-smoothly-input-date,[placeholder].sc-smoothly-input-date-h .label.sc-smoothly-input-date,[readonly].sc-smoothly-input-date-h .label.sc-smoothly-input-date,.sc-smoothly-input-date-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date{display:none}.sc-smoothly-input-date-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:pointer}[readonly].sc-smoothly-input-date-h,[readonly].sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:not-allowed}[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>nav.sc-smoothly-input-date>smoothly-calendar.sc-smoothly-input-date::before{content:"";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}@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 mc=dc;const uc=class{constructor(e){t(this,e);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.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.changed=false;this.readonly=false;this.invalid=false;this.errorMessage=undefined;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true}componentWillLoad(){var t,e;this.setInitialValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async listen(t,e){this.listener[t]=e;e(this)}async clear(){this.value=undefined}onStart(t){var e,o;this.smoothlyValueChange.emit(t);this.smoothlyInput.emit({[this.name]:t});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(t){this.open=false;t.stopPropagation()}render(){return e(s,{key:"a755134a252d7a353d9a77367c6850ec0e7bb2fa"},e("smoothly-input",{key:"c84f19abf9b612265662c923924bb9e27e4470dd",color:this.color,looks:this.looks=="transparent"?this.looks:undefined,name:this.name,onFocus:()=>!this.readonly&&(this.open=!this.open),onClick:()=>!this.readonly&&(this.open=!this.open),readonly:this.readonly,errorMessage:this.errorMessage,invalid:this.invalid,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.value=t.detail[this.name]}},e("slot",{key:"76957a67776b6e114a134ad8e381fccab3b3bcdb"})),e("span",{key:"913e4d85afb432d619a8b97b9498aca63fb65524",class:"icons"},e("slot",{key:"e3241b7fcad13b265db309d1893b235a8ddef397",name:"end"})),this.open&&!this.readonly&&e("nav",{key:"7e930465a1ad3354480a4089bc9a041b3fffcc93"},e("smoothly-calendar",{key:"207d73550c0b0274990b5a6afe6bcf2b96840055",doubleInput:false,value:this.value,onSmoothlyValueChange:t=>{this.value=t.detail;t.stopPropagation()},max:this.max,min:this.min},e("div",{key:"bf152dd3b3de42c90569c7d484748181c5ca4fa3",slot:"year-label"},e("slot",{key:"6a2fc92cbd7f61f12ceb21ce9d2844d713053b0c",name:"year-label"})),e("div",{key:"87a13f22c38aa9004483f4d197b7eddafe96941a",slot:"month-label"},e("slot",{key:"11c277001bc28bcb4525d7f3fd120e8b643810b9",name:"month-label"})))))}get element(){return i(this)}static get watchers(){return{value:["onStart"]}}};uc.style=mc;const yc='.sc-smoothly-input-date-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-date-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-range-h,[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-range-h>input.sc-smoothly-input-date-range,[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:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-range-h.floating-label.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.floating-label .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder] .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly] .sc-smoothly-input-date-range-s>[slot=label],.has-value.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[placeholder].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[readonly].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,.sc-smoothly-input-date-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-range{display:none}.sc-smoothly-input-date-range-h{position:relative;display:flex;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>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:pointer}[readonly].sc-smoothly-input-date-range-h,[readonly].sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:not-allowed}.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>nav.sc-smoothly-input-date-range>smoothly-calendar.sc-smoothly-input-date-range::before{content:"";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;width:100%;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;width:100%;background-color:transparent;--input-min-height:calc(var(--input-min-height) - 2px)}.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}';const bc=yc;const fc=class{constructor(e){t(this,e);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=undefined;this.readonly=false;this.showLabel=true;this.start=undefined;this.end=undefined;this.placeholder="from — to";this.invalid=false;this.max=undefined;this.min=undefined;this.changed=false;this.value=undefined;this.open=undefined}componentWillLoad(){var t,e;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}inputHandler(t){const e="dateRangeInput"in t&&typeof t.dateRangeInput=="string"&&t.dateRangeInput.split(" - ");if(e&&e.length==2&&x.is(e[0])&&x.is(e[1])){this.start=e[0];this.end=e[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var t,e;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}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 t=navigator.language;return e(s,{key:"0a06894b9e72b93df447ff82ad27d2a6779f8031",tabindex:0},e("section",{key:"2d13b0592a766e768cf858150513475fd4522b59",onClick:()=>!this.readonly&&(this.open=!this.open)},e("smoothly-input",{key:"be576244d7b348ae617ccc719ffcd81418ff0b75",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${Ce(this.start,"date",t)} — ${Ce(this.end,"date",t)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:t=>{t.stopPropagation();this.inputHandler(t.detail)}},e("slot",{key:"80adf2bd502c516457c9870c05fc4bc2b6275c3b"}))),e("span",{key:"5c95250e283bc5bada2daa574d21112e43a37492",class:"icons"},e("slot",{key:"0389d3bd80370d6fae95fe7f32bb9f8a19a6ba06",name:"end"})),this.open&&e("nav",{key:"62bc92246212b47307de1180c9c1267825693d86"},e("smoothly-calendar",{key:"735dd9ca6c84394d666fd71d2d831007e50a0574",doubleInput:true,onSmoothlyValueChange:t=>t.stopPropagation(),onSmoothlyStartChange:t=>{t.stopPropagation();this.start=t.detail},onSmoothlyEndChange:t=>{t.stopPropagation();this.end=t.detail},onSmoothlyDateSet:t=>t.stopPropagation(),onSmoothlyDateRangeSet:t=>{t.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:t.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return i(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};fc.style=bc;const pc='.sc-smoothly-input-date-time-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-date-time-h[looks="border"].sc-smoothly-input-date-time-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-time-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-time-h{border:transparent solid 1px}.sc-smoothly-input-date-time-h[looks="line"].sc-smoothly-input-date-time-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-time-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-time-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-time-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-time-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-time-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-time-h,[looks="transparent"].sc-smoothly-input-date-time-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-time-h>input.sc-smoothly-input-date-time,[looks="transparent"].sc-smoothly-input-date-time-h:not(:focus-within)>input.sc-smoothly-input-date-time{background:transparent}[looks="transparent"].sc-smoothly-input-date-time-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-time-h.sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-time-h.floating-label.sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h.floating-label .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h.has-value.sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h.has-value .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[placeholder].sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[placeholder] .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[readonly].sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[readonly] .sc-smoothly-input-date-time-s>[slot=label],.has-value.sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time,[placeholder].sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time,[readonly].sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time,.sc-smoothly-input-date-time-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-time{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-time-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-time{display:none}.sc-smoothly-input-date-time-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-time-h>smoothly-input.sc-smoothly-input-date-time{--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-time-h>smoothly-input.sc-smoothly-input-date-time>div.sc-smoothly-input-date-time>input.sc-smoothly-input-date-time{cursor:pointer}[readonly].sc-smoothly-input-date-time-h,[readonly].sc-smoothly-input-date-time-h>smoothly-input.sc-smoothly-input-date-time>div.sc-smoothly-input-date-time>input.sc-smoothly-input-date-time{cursor:not-allowed}[looks=transparent].sc-smoothly-input-date-time-h smoothly-input.sc-smoothly-input-date-time{outline:none}.sc-smoothly-input-date-time-h>nav.sc-smoothly-input-date-time{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-time-h>nav.sc-smoothly-input-date-time>smoothly-calendar.sc-smoothly-input-date-time::before{content:"";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-time-h>span.icons.sc-smoothly-input-date-time{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-date-time-h>smoothly-input[name="date"].sc-smoothly-input-date-time{width:12rem}.sc-smoothly-input-date-time-h>smoothly-input[name="hour"].sc-smoothly-input-date-time{width:4rem}.sc-smoothly-input-date-time-h>smoothly-input[name="minute"].sc-smoothly-input-date-time{min-width:4rem;flex-grow:1}.sc-smoothly-input-date-time-h>span.colon.sc-smoothly-input-date-time{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-date-time-h>.icons.sc-smoothly-input-date-time>.smoothly-invalid.sc-smoothly-input-date-time{display:none;z-index:2;cursor:pointer;padding:0.5rem}[invalid].sc-smoothly-input-date-time-h>.icons.sc-smoothly-input-date-time>.smoothly-invalid.sc-smoothly-input-date-time{display:flex}@media screen and (min-width: 400px){.sc-smoothly-input-date-time-h>nav.sc-smoothly-input-date-time{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}';const gc=pc;const kc=class{constructor(e){t(this,e);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.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.changed=false;this.readonly=false;this.invalid=false;this.errorMessage=undefined;this.value=undefined;this.open=undefined;this.showLabel=true;this.min=undefined;this.max=undefined;this.date=undefined;this.hour=undefined;this.minute=undefined}componentWillLoad(){var t,e;this.setInitialValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){const t=this.date&&typeof this.hour=="number"&&typeof this.minute=="number"?`${this.date}T${`${this.hour}`.padStart(2,"0")}:${`${this.minute}`.padStart(2,"0")}:00.000Z`:undefined;return S.is(t)?t:undefined}async listen(t,e){this.listener[t]=e;e(this)}async clear(){this.value=undefined;this.date=undefined;this.hour=undefined;this.minute=undefined}async handleChange(){var t,e;const o=await this.getValue();this.smoothlyValueChange.emit(o);this.smoothlyInput.emit({[this.name]:o});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}valueChange(t){var e,o;if(S.is(t)){this.date=S.getDate(t);this.hour=S.getHour(t);this.minute=S.getMinute(t)}this.smoothlyValueChange.emit(t);this.smoothlyInput.emit({[this.name]:t});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(t){this.readonly=!t}async reset(){if(S.is(this.initialValue)){this.date=S.getDate(this.initialValue);this.hour=S.getHour(this.initialValue);this.minute=S.getMinute(this.initialValue)}else{this.date=undefined;this.hour=undefined;this.minute=undefined}}async setInitialValue(){this.initialValue=await this.getValue();this.changed=false}render(){return e(s,{key:"1f7d50b47ec60aeb9bf5527be3e993dd988e8873"},e("smoothly-input",{key:"a7539f5cbb2f0845e7ad900b0402572388f19e8b",color:this.color,looks:this.looks=="transparent"?this.looks:undefined,name:"date",onFocus:()=>!this.readonly&&(this.open=!this.open),onClick:()=>!this.readonly&&(this.open=!this.open),readonly:this.readonly,type:"date",value:this.date,showLabel:this.showLabel,onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.date=t.detail.date}},e("slot",{key:"be6a15ab70967423d3d307d52a02373842cdc12a"})),e("smoothly-input",{key:"1706bd3e02d205c8cfed03abeb9f5ae900f1c6ff",name:"hour",type:"integer",max:23,value:this.hour,placeholder:"hh",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.hour=t.detail.hour}}),e("span",{key:"ae7ab41ec2918f480e0b4347346f2975aa23d0d1",class:"colon"},":"),e("smoothly-input",{key:"3e5d9221987f2cdb7c47c01abe4e2453655bbd3f",name:"minute",type:"integer",max:59,value:this.minute,placeholder:"mm",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.minute=t.detail.minute}}),e("span",{key:"fe9259b03b623b96e3ba20c342b94e3f43e9f68c",class:"icons"},e("smoothly-icon",{key:"81f9e8da653d36eb8e450294dc2dc4264fb76122",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"e70b4a872aa43692c8f1a5e8f7d8a6bf7dc0aa28",name:"end"})),this.open&&!this.readonly&&e("nav",{key:"312657e918b72f06eb76187e064fdf7113960499"},e("smoothly-calendar",{key:"bc461b9606b3f0a05a788b7ae72ac5d96231ab9b",doubleInput:false,value:this.value,min:this.min?S.getDate(this.min):undefined,max:this.max?S.getDate(this.max):undefined,onSmoothlyValueChange:t=>{this.date=t.detail;t.stopPropagation()},onSmoothlyDateSet:t=>{this.open=false;t.stopPropagation()}},e("div",{key:"bd29e39875d5afe6acaaca8351156ed2c9784b50",slot:"year-label"},e("slot",{key:"47b5e7d5621164f66ee939cda905e2d8cc8595ba",name:"year-label"})),e("div",{key:"f65988215e183bfae36378932401dfb656e1acba",slot:"month-label"},e("slot",{key:"f9bfa7c085e9de6c255b5782595d41f3242e8e90",name:"month-label"})))))}get element(){return i(this)}static get watchers(){return{date:["handleChange"],hour:["handleChange"],minute:["handleChange"],value:["valueChange"]}}};kc.style=gc;const vc=".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";const wc=vc;const xc=class{constructor(e){t(this,e);this.duration={hours:8};this.alphanumeric="!@##"}render(){return e(s,{key:"f391bd78c0251dabd6f1ff36b039dbb88dd6f36b"},e("smoothly-input-demo-standard",{key:"6ec0721055230720b20f5e7d4ead62c430a57caa"}),e("div",{key:"5fc44c0c8fdadf263692766ce0ecdbe8e8facd6b",class:"inputs"},e("h2",{key:"5c0b67d96c5c5e9ec56cf4cd7135cb844c3034e0"},"Calendar"),e("smoothly-input-date",{key:"7110f32cb9d5c3451595a70b08232848c9d4b465",name:"some-date"},"Calendar"),e("smoothly-input-date-time",{key:"840b983439402d95ddc6ed9ea03d1edc82d1bbbf",name:"someDateTime"},"DateTime"),e("h2",{key:"d5db1f5c8ae18f67bc0cdb61273043f647675a89"},"Date Range"),e("smoothly-input-date-range",{key:"2b6a94b1f56c5eec888ec19ac95af52255caf1b4",name:"testing",start:x.now(),end:x.nextMonth(x.now()),min:"2021-10-01",max:"2025-01-31"}),e("smoothly-input-date-range",{key:"8e86b0a98a3abd79fdf625aed83dfb278fb3470b",name:"testing",start:x.now(),end:x.nextMonth(x.now()),min:"2021-10-10",max:"2024-12-30"},e("smoothly-input-reset",{key:"ac33be124dcf125eeae6f56c8fcf77dee2e9e09b",slot:"end",size:"icon"})),e("smoothly-input-date-range",{key:"ddff97927d04e2ccec654cbe9687889e2ac915e6",looks:"grid",start:x.now(),end:x.nextMonth(x.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},e("smoothly-input-clear",{key:"f5f998abd40b9403ccebafe27ba14493fa8f19ca",slot:"end",size:"icon"})),e("h2",{key:"7d173c425b81aa7deb4cd89edb3c89a2ff528a3b"},"Date"),e("smoothly-input-date",{key:"0b811e8dd45367c464a7f6edb1b4a33b627adeba"},"Date"),e("smoothly-input-date",{key:"bf8581823bc434be491ebc5fafdba71061a14101",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-input-date",{key:"88e7ffea5182215229db30af9afe6f4e7ce57146",value:"2021-10-28"},"Date",e("smoothly-input-reset",{key:"172b1c34e6cd4b67f78625b75ff471c303fb12d4",slot:"end",size:"icon"})),e("smoothly-input-date",{key:"30968f8dcc79a0321afca68cf79e2ea31b8735fc",value:"2021-10-28"},"Date",e("smoothly-input-clear",{key:"0bbdf2875ce1621de5ed65128569f2e20846f85a",slot:"end",size:"icon"})),e("h2",{key:"a9eb917e3d429438514b7ad091b5cd84fd872889"},"Select"),e("div",{key:"ff41a3d04e75f1d6509c6c986dc88e4becad3721",class:"select-div"},e("smoothly-input-select",{key:"e2dd73ead13a60e47494d3cd025c34a805f5e4ee",name:"select-dessert",looks:"border"},e("label",{key:"75e7c9ff86ce84ac3eda4bb40af16d6e9b16e434",slot:"label"},"Select with clear button"),e("smoothly-item",{key:"577f76315b49efcef1f260362b93ff6112004b47",value:"1"},"Ice cream"),e("smoothly-item",{key:"ed71f3d6e83f8fa10811c952bb1ab5f7b9baa97b",value:"2"},"Sponge cake"),e("smoothly-item",{key:"e4885a3b9170974878d5c9882d0239fe944c11f2",value:"3",disabled:true},"Disabled Item"),e("smoothly-item",{key:"8bcc76448c631fbf793f91947af4c0e17c60a858",value:"4"},"Cookie"),e("smoothly-item",{key:"a72d1e10c4b69da2584f2e15d4215c08c5f92fdb",value:"5"},"Croissant"),e("smoothly-item",{key:"6f5653a3a0e7caa778b40eccbc4069f324fd25cb",value:"6"},"Chocolate fondue"),e("smoothly-input-clear",{key:"ddc17cfc7f7c3146518ad4827f8d674b165db328",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"0404ede6b67ed2840409c725d0d2863f0d306c30",multiple:true,name:"select-dessert-multiple",looks:"border"},e("label",{key:"16b514b69567d48eb36e14812c700e8658e95ea0",slot:"label"},"Select multiple with reset button"),e("smoothly-item",{key:"6e2dbeee5a47c7f8c2e1a1c6c4d079ff31f200e4",value:"ice cream"},"Ice cream"),e("smoothly-item",{key:"915a599dcbe877f1513ead46fda81150c7781a03",value:"sponge cake"},"Sponge cake"),e("smoothly-item",{key:"2664f2bcd62e4f27fb49f46652fa9e69516c8e57",selected:true,value:"cookie"},"Cookie"),e("smoothly-item",{key:"d1cf93f393ecff22c4ac6fcc007ab6c09a534b8e",value:"croissant"},"Croissant"),e("smoothly-item",{key:"0b7dd82efb700709a66ced995a3dc4d18be30ff6",selected:true,value:"chocolate fondue"},"Chocolate fondue"),e("smoothly-input-reset",{key:"9866a5e80c446f5b4ca2c2ff8f711ab039912b87",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"775756976b9654150ee7670be56f7b44bacc09a2",name:"spirit-animals",looks:"border",mutable:true},e("label",{key:"2543c280d67278c8215a0f1c40060d1a650551c9",slot:"label"},"Select or add new options"),e("smoothly-item",{key:"99670894167dd333c93ddeb166ce6d6677bfa7db",value:"manatee"},"Manatee"),e("smoothly-item",{key:"8523895743bb77d41829b97a82b34b1b8c13de85",selected:true,value:"cthulu"},"Cthulu")),e("smoothly-input-select",{key:"2b77ced15c1efccc0c963ea0190a108aaf7ff254",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"ec88105457f95ec7582b95a0cd6174a96fa4691f",value:"folder",selected:true},e("smoothly-icon",{key:"a8420b94eedd11f7a27bb589ea15e0fe8ad28eed",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"a0a2524ccf06e777498a0612bfc755fbdb3c26da",value:"camera"},e("smoothly-icon",{key:"d6a08b892a58f56187b5921cff2b55646a2fd1fb",size:"small",name:"camera-outline"}))),e("smoothly-input-select",{key:"fba2c8857f72aa30927a76faa5005a8f629f7432",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"c469cb86e393ca8567e4f306074f6b1822da1f4c",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((t,e)=>String.fromCharCode(e+65))).map((t=>e("smoothly-item",{value:t,selected:t=="H"},t)))),e("smoothly-input-select",{key:"e3bf61ef393d38a27d457c34dd0c6e1725581cd7",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"6f378b22b5f5e65b7a806ae68675131d6e024d00",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"7d1f5110fe52b497edd86a5e4397914cd1636eb3",value:"1"},"January"),e("smoothly-item",{key:"a5217ec2aa7daf0992a53392724d3de162f1b7c3",value:"2"},"February"),e("smoothly-item",{key:"e97d698810ba4cc74fbf9235fb1f3c8fd2c3c3d4",value:"3"},"March"),e("smoothly-item",{key:"b379faa9da4b684ba555c949c6b6ddccc4c116b8",value:"4"},"April"),e("smoothly-item",{key:"97de95e971a0c07e462aea3e935536a59df7e89a",value:"5"},"May"),e("smoothly-item",{key:"684e39a859bfd80078bee12230cbaebdc2ed6fb9",value:"6"},"June"),e("smoothly-item",{key:"84ceedba22aaed9a7c9dc866131deb3da7cb637f",value:"7"},"July"),e("smoothly-item",{key:"1c310541498a90e74471932e7d5236466c9b61a5",value:"8"},"August"),e("smoothly-item",{key:"5779cad53606a81b4b8741748f7dff06f4c1d53b",value:"9"},"September"),e("smoothly-item",{key:"4f77e5f150de94e40fa44ad9a18c62e946583b1e",value:"10"},"October"),e("smoothly-item",{key:"0721ac6d8ad7b08bbf3f37e6000ae21d39cff10a",value:"11"},"November"),e("smoothly-item",{key:"786168eff22dd2df98369268f734f3382e5f0144",value:"12"},"December"))),e("h2",{key:"a0fb40b3246b9810fc8c628947e34e8e7861edc8"},"Duration"),e("smoothly-input",{key:"6e8dc2d9bb81905f9b361e3d86fc5bde907d9a08",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:t=>this.duration=t.detail.duration},"Duration"),e("smoothly-input",{key:"9e7b6a937a25da6e1b54e3936a349899a82f444d",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:t=>{const e=t.detail.duration;this.duration=e}},"Duration"),e("h2",{key:"31b7b747b3aaaf845ad1aed49ab45ba9523a2fc3"},"Integer with Min/Max"),e("smoothly-input",{key:"c81811ff2d335ea60df070a960524ff16ede8489",name:"days",type:"integer",min:0,max:365},"Days per year (0-365)"),e("smoothly-input",{key:"86aeb498c9731e91de63412a11a79f29292adcd0",name:"hour",type:"integer",min:0,max:23},"Hours per day (0-23)"),e("smoothly-input",{key:"4802f8b96a9aab4828c3327de3eb2b531edcddfd",name:"minute",type:"integer",min:0,max:59},"Minutes per hour (0-59)"),e("smoothly-input",{key:"3737eab0df9fd0706175be8a971593ab3bb9343d",name:"minute",type:"integer",min:18,max:120},"Age (18-120)"),e("h2",{key:"6b2f5d91faf5bf0d3bc074e859d88445a80b5667"},"Invalid text with warning icon and tooltip"),e("smoothly-input",{key:"95410c2f81a47ca003616bd40d89f7885b634f37",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:t=>this.alphanumeric=t.detail.alphanumeric},"Alphanumeric"),e("h2",{key:"ad449776079245f9531bd8ce3f51efe3411e5e7e"},"Identifiers"),e("smoothly-input",{key:"b3325535a6ac61fd0476d6a075693c7e2fca5ef6",type:"identifier-code"},"Code"),e("smoothly-input",{key:"28e66d1f923f9807252c3cc72fe4a788240aba1d",type:"identifier-attribute"},"Attribute"),e("smoothly-input",{key:"491387109239d78a481aa0a4c9058a2cdb2a4c65",type:"identifier-snake"},"Snake"),e("smoothly-input",{key:"35fce4f6c948209470cd2ad28f8d9621ee6b5321",type:"identifier-pascal"},"Pascal"),e("smoothly-input",{key:"dd534f14f8e8943f7ddef74992dd46c318347ae8",type:"identifier-camel"},"Camel"),e("h2",{key:"38685f41f8810a5795834ca27905b2f2afc27eac"},"Input Alternatives"),e("smoothly-input",{key:"59043422556d04cc56c186714e91dc64f0816ed7",type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},e("smoothly-icon",{key:"213e727678e743ec88cdd54a979ce8935c541340",name:"checkmark-circle",slot:"start"}),"First Name"),e("smoothly-input",{key:"51f32ad9c0b4c9b7a8204bc63c441f8fa167b611",type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"46aa75ade3df2db1b151e01096a197f2e2fd8af9",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"b1293dfab17cf01887cbf5841db05e04dd3a1464",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"b284306b4866a605add8c5ef598dc40f1282ec43",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"24ec4d180f050b371e9af2f002b7116a99b88cf4",placeholder:"test"}),e("smoothly-input-submit",{key:"d55d4fff97828924002492d9016bd73eef46eba7",slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"}),e("h4",{key:"f45625069ac93259c0631c1137df1f0275ac0a57"},"Smoothly checkboxes"),e("div",{key:"0b987f4c368c8d50dbb6f49055ba0cff33835427",class:"checkbox-group"},e("smoothly-input-checkbox",{key:"315c00eb4677344a3877d819a6a90882a97da7b9",disabled:true,name:"first-checkbox"},e("smoothly-icon",{key:"24b845e4451277aac8e6c945aaa7536e481b523e",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),e("smoothly-input-checkbox",{key:"c7e4398c49e7299b6b235b5ff5572d7f59998c5c",name:"second-checkbox",checked:true},e("smoothly-icon",{key:"3c59195cd3e5de2a5ca0db1ef7e67fdac4b20773",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",e("smoothly-input-clear",{key:"b353f63610a38744c63f5a98827a8be376f24689",size:"icon",slot:"end"})),e("smoothly-input-checkbox",{key:"594f7ec3d3f3be405aaf885621eb718e3fbf0a35",name:"third-checkbox"},"3rd")),e("h4",{key:"cf0b6447f28184077a82ebd6fa338531484442fb"},"Smoothly Radio Buttons"),e("smoothly-input-radio",{key:"2dd5ceb1a1ff1b080616ec88e9480c53750ded4c",clearable:true,name:"radioFirstInput"},e("smoothly-icon",{key:"79cf63ff3aac8acaa1511e77fe27d993270913c3",name:"checkmark-circle",slot:"start"}),e("label",{key:"b794b9b61a60fd655a906db0ff400785d8dfb970",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"7344467bc0580b1efd378925eb4af010967a0276",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"bd8afddd7a86f9853f3c01b1121c9164140a8418",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"eac077c9f5c7c480b00806bc59dd7bc0e5747399",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"e87f205103c7dd86c240a63d6f944c5c8775f693",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"f4fa9eda695df9d7dcc4d3f68fe060a781cc20d6",name:"radioSecondInput"},e("label",{key:"d0a413214b688e493d73951747eba6bba204d85e",slot:"label"},"Not clearable"),e("smoothly-input-radio-item",{key:"ddb690ff8501c50743bc0d0e11e1c26ce5c5bb23",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"bb5db85ec9f091bb62dd89c3ad0c8f749b85db8f",value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"0a16abf56b4f3f77407d64fe2969b512b8444582",value:"third"},"Label 3"),e("smoothly-input-radio-item",{key:"e67deaa29b84a99dff1332357144fc7e9055400f",value:"fourth"},"Label 4"),e("smoothly-input-radio-item",{key:"96e014e32102387364e1bfd5bf2288c3b1c028db",value:"fifth"},"Label 5"),e("smoothly-input-radio-item",{key:"73cc1861839ecfe97fa494dd5544780a794abb5b",value:"sixth"},"Label 6")),e("smoothly-input-range-demo",{key:"70d2d8f0df0397e64de5a5406431a26819438d21"}),e("smoothly-input-color-demo",{key:"2f34171560df93381803026b34d678474403bb7a"}),e("smoothly-input-price-demo",{key:"10fa39ce18a471a2ca132cc95a68ece4d04f78b9"}),e("smoothly-back-to-top",{key:"646557d1c7a1ab4d661562591f77c4107527af08"})))}};xc.style=wc;const Sc='.sc-smoothly-input-demo-standard-h{width:50%;margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:2fr 1fr;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:"hello"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:"";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}.vertical.sc-smoothly-input-demo-standard-h{width:100%;row-gap:0;position:relative}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;grid-template-columns:repeat(auto-fill, 14rem);gap:.5rem}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{display:none}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::before,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::after{content:"";pointer-events:none;right:0;width:100vw;position:absolute;z-index:2;border-top:1px dotted black}.sc-smoothly-input-demo-standard-h:not(.vertical) .guide-lines.sc-smoothly-input-demo-standard{display:none}.guide-lines.sc-smoothly-input-demo-standard{text-align:end;justify-self:center;align-content:center}.guide-lines.sc-smoothly-input-demo-standard::before{top:1rem}.guide-lines.sc-smoothly-input-demo-standard::after{top:2rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::before{top:1.05rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::after{top:2.3rem}';const Cc=Sc;const zc=class{constructor(e){t(this,e);this.duration={hours:8};this.options={}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const t=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((e=>{const o=e.clientHeight;e.innerHTML=`<b>${o/t}rem</b> (${o}pixels)`}))}render(){const t=this.options.placeholder?"placeholder":undefined;return e(s,{key:"951d8e936755153c60dfb5e9c4fa714f6c2cfcbb",class:{vertical:!!this.options.vertical}},e("div",{key:"af5cd56f01a657adc81a7c1952fc0fa99c983cca",class:"description"},e("h2",{key:"000ead60500d3ecb23f0925490c470bfa12b1b17"},"Input Standard"),e("p",{key:"e8e0ac8ac447a507a8ff84a82910ccfb28eb108b"},"Height of input should be ",e("code",{key:"3442836222d91b57b578154201b379c01984a44b"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),e("smoothly-form",{key:"b6c4e839e5a281c96c774a54e2b23907fedab94a",looks:"grid",onSmoothlyFormInput:t=>this.options=t.detail},e("smoothly-input-select",{key:"052325bf03d817a341eea65d6b5f8937faa9f5a9",name:"looks"},e("span",{key:"4e9ef448481c3ee611c93a27de4cb8faa6bbdb8b",slot:"label"},"Looks"),cr.values.map((t=>e("smoothly-item",{value:t},t)))),e("smoothly-input-checkbox",{key:"c7aef46d0c10a1f270d6f4989ff5f28dc54eaa46",name:"readonly"},"Readonly"),e("smoothly-input-select",{key:"8c66e722864389166198e6dc2ed088054a7b52ae",name:"color"},e("span",{key:"c099222e90e71c652685f2e6b7ec3be644fe1128",slot:"label"},"Color"),r.values.map((t=>e("smoothly-item",{value:t},e("span",{color:t},t)))),e("smoothly-input-clear",{key:"9be13aef6903d2d1278b65c7ef42d44037ba3db2",slot:"end"})),e("smoothly-input-checkbox",{key:"a6c41ffa70909296a000349ae4b69aac2b68cacb",name:"vertical"},"Vertical Layout"),e("smoothly-input-checkbox",{key:"d2220c0c8f405eb2b9f53be947ca125587b4d0eb",name:"showLabel",checked:true},"Show Label"),e("smoothly-input-checkbox",{key:"155e50f789e3d357ec1dfcecace74599a7807f64",name:"placeholder"},"Placeholder"),e("smoothly-input-checkbox",{key:"36aad13274e6ef7cdb86c87d2085932653381f37",name:"invalid"},"Invalid"),e("smoothly-input",{key:"130deb857bd5d3e73d875f34b8ee0d50e1f16039",name:"errorMessage",value:"This is not a valid value"},"Error Message"),e("smoothly-input-range",{key:"abac1a46412e0c3ee5f79a43b183ef90d3e435b0",label:"Border Radius (rem)",name:"borderRadius",min:0,max:2,step:.25}))),e("div",{key:"b286d517da6cd031b9c7590e792e75a417440d4f",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},e("div",{key:"0e7c535d8aca6532806ae5f7fea57a22b5d32f1c",class:"width"},"100%"),e("div",{key:"a2a835349a7f2dd5cf2fc407ffb6ba43e5ff9bb5",class:"left-padding"},"0.5rem - left padding"),e("smoothly-input",{key:"2f266438ea51914cfcce08f22139c752e721498e",name:"text",looks:this.options.looks,placeholder:t,invalid:this.options.invalid,errorMessage:this.options.errorMessage,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"96e2acaa65f5ac445dae13fce8b1ab6f0cb64091"},"Text"),e("smoothly-input-clear",{key:"bac98746bafdee5e2af488b9dd1c881a2fd41abb",slot:"end"})),e("div",{key:"3b7dbf2d82b62247f85cac4f9c1b1a7c4f7e3101",class:"height"}),e("smoothly-input-select",{key:"b837f6e96996b1a9f1a2d3fa4e188050abd69ba6",name:"month",looks:this.options.looks,placeholder:t,invalid:this.options.invalid,errorMessage:this.options.errorMessage,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&e("label",{key:"489c682c94902d5bf104a32462239429be1208c0",slot:"label"},"Select"),e("smoothly-item",{key:"846be873419369ca5b3a3bb7ec1763790847f548",value:"1"},"January"),e("smoothly-item",{key:"78f330e0329eb2c63171e78d35680509e8e172a5",value:"2"},"February"),e("smoothly-item",{key:"69179c3218be846bb33c018abc37a9bf2f379416",value:"3"},"March"),e("smoothly-item",{key:"a5594f65d0320457c0edb516d760dcb6bd5ee7b1",value:"4"},"April"),e("smoothly-item",{key:"4377a009490a3636f3b8fcea6fd55c5a2c1577f9",value:"5"},"May"),e("smoothly-item",{key:"74acc707028b86f5266a365614e7bdeb6da67a25",value:"6"},"June"),e("smoothly-item",{key:"5767cc4323d227293c27934cfcd7ca146a3e71df",value:"7"},"July"),e("smoothly-item",{key:"51d3e6cc6c9dc142c30e63ac1bb2df2cd3f7422c",value:"8"},"August"),e("smoothly-item",{key:"58d40956906a3a9d59fbd9b59db8f99990ec04b7",value:"9"},"September"),e("smoothly-item",{key:"d78a4d9eb90e73cdf69610dded70dcb30b76119e",value:"10"},"October"),e("smoothly-item",{key:"b8867b2bbcf65f519455c8b501120c61368cc9cd",value:"11"},"November"),e("smoothly-item",{key:"9f30a2ca954a2a47ff166c9eab312df2d03c3fca",value:"12"},"December"),e("smoothly-input-clear",{key:"d5e610c5a85b7d5e44dd0128aab00339a02a3210",slot:"end"})),e("div",{key:"cbe1ff70d9410549cae2db26afe2328f7664fa50",class:"height"}),e("smoothly-input-checkbox",{key:"74a4ca779d60ee6eeed471e50a02b5da4ab1ec18",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),e("div",{key:"00c58e9df1e81eeefd02e504b4d8b801c2023694",class:"height"}),e("smoothly-input-radio",{key:"ed80d56631c1d6e34345a2b0abb0f5708e420779",name:"radio",clearable:true,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("label",{key:"f22e8e2408d8dc2b3d835ec65d031381ee9c81b1",slot:"label"},"Radio"),e("smoothly-input-radio-item",{key:"e6b40167ec1c4bdb1ec801bd86c5a936dcfac2d1",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"975d48ee804f99f041ab0e1d9775831fac38a893",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"47cb61faeca4e7538bae225bcfecb8417c26cbca",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"60cf6f95ad009845e7f6e319d952c1f270f966aa",slot:"end"})),e("div",{key:"a9405a9b52e859ca553dd19560fa86610183024f",class:"height"}),e("smoothly-input-file",{key:"401a22707d76d8ed5d34abe448814cf4959a1fa8",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"89ab3c037ef0696c2dff55013406f6b427497cae",slot:"label"},"File"),e("smoothly-input-clear",{key:"b43d75694fb277232384c2976be6321795062b96",slot:"end"})),e("div",{key:"bd9d687f9b59e41e8dcb4302e2422a7a27e63677",class:"height"}),e("smoothly-input-range",{key:"1394a573bf3c1c0a833e4f02335a3303b9edf10a",name:"range",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},e("smoothly-input-clear",{key:"49f3b4028cd51409e1cbc5fdfeaef81ec27188f5",slot:"end"})),e("div",{key:"17f16df032bc1927129da013189f3c274d767c5d",class:"height"}),e("smoothly-input-color",{key:"5383ee49642c9b85e015535762abc344a559c6fc",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"8d749e5c39d9b1f70ed423b1258f31115912d02f"},"Color"),e("smoothly-input-clear",{key:"47cc64ea251de5c33e05482de258667c8cb825ef",slot:"end"})),e("div",{key:"1a95e6d7d34d525420537abb68455514a8acaac3",class:"height"}),e("smoothly-input-date",{key:"48dbc96f309f9bb57d39acaf040524db9b4a28ad",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"0c14d8bceffe8a9e420850302525165679c508ad"},"Date"),e("smoothly-input-clear",{key:"019d0c408379cf2b0bc265e920025d649ddd8777",slot:"end"})),e("div",{key:"3d67ba7e9f382f769f787b51e70c7f5cf7d3fe4b",class:"height"}),e("smoothly-input-date-time",{key:"96cbf433bc0b3c569d15103236e7a4fb8c63b21c",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,errorMessage:this.options.errorMessage,color:this.options.color,showLabel:this.options.showLabel},"DateTime",e("smoothly-input-clear",{key:"a631f516a994b86df2aa9ec3f4651f2314ea8dd2",slot:"end"})),e("div",{key:"97fe1c5b932289b2e42e9c634289725418b348c5",class:"height"}),e("smoothly-input-date-range",{key:"b58568c51c8b45ae135450ec3686929732255fc7",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"41efbed231e88d909bd6f28162979f7ddb758e18"},"Date Range"),e("smoothly-input-clear",{key:"9a2f23707a48fe56b6a37c7d035cc4b84ee85bd0",slot:"end"})),e("div",{key:"4c7ecea506ec437fe67337d65edd8f55d6947972",class:"height"}),e("div",{key:"3b365c0068e208b0f5c8f3f7b52853b169d92c54",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return i(this)}};zc.style=Cc;const jc='[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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-edit-h{display:inline}[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>a.sc-smoothly-input-edit:empty,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:empty{border-width:0}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[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;--smoothly-button-border-radius:0}[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-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-edit-h:not([fill=clear])>button.sc-smoothly-input-edit:hover,.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-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:hover::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-within::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.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{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))}[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[type="input"].sc-smoothly-input-edit-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.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 Ic=jc;const _c=class{constructor(e){t(this,e);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="input";this.size=undefined;this.toolTip="Edit"}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(rr.type.is(t)){this.parent=t;t.listen("changed",(async t=>{this.display=t.readonly}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.edit(true)}render(){var t;return e(s,{key:"e479bc4e0e7151a26964d30ef6cab245d4ecf48c",title:this.toolTip},e("smoothly-button",{key:"784668d63e1d5945c8fd74517950badd23a25271",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined},e("slot",{key:"ae09bd22cf4d54255c16d1fc2e99059417a10ec0"}),e("smoothly-icon",{key:"32511b0a5744aeead31e1c00e3ee756299c4ec1c",class:"default",name:"create-outline",size:"tiny"})))}};_c.style=Ic;const Tc='.sc-smoothly-input-file-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-file-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-file-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-file-h,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background:transparent}[looks="transparent"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.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{left:var(--input-padding-side)}.sc-smoothly-input-file-h,.sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:pointer}[readonly].sc-smoothly-input-file-h,[readonly].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}';const Lc=Tc;const Oc=class{constructor(e){t(this,e);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.transfer=new DataTransfer;this.changed=false;this.readonly=false;this.accept=undefined;this.color=undefined;this.looks=undefined;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}async componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}async valueChanged(){this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}inputHandler(t){var e,o,s;t.stopPropagation();if((o=(e=this.input)===null||e===void 0?void 0:e.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(t){var e;t.preventDefault();t.stopPropagation();this.dragging=false;if((e=t.dataTransfer)===null||e===void 0?void 0:e.files.length)this.value=t.dataTransfer.files[0]}clickHandler(t){var e;if(!this.readonly&&!t.composedPath().find((t=>t==this.input))){(e=this.input)===null||e===void 0?void 0:e.click()}}dragOverHandler(t){t.preventDefault();t.stopPropagation()}dragEnterHandler(t){t.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(t){t.stopPropagation();this.dragging=false}render(){var t,o,i;return e(s,{key:"4e378111db0e10663f7a66d87cae73136fef9bb2",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:t=>this.clickHandler(t),onDragOver:t=>this.dragOverHandler(t),onDragEnter:t=>this.dragEnterHandler(t)},e("label",{key:"32b422053ae2c0f784e253b201f54a9c234e23d2"},e("slot",{key:"2e8353bacb424ae6e9e80c7de566baadc0e4cd4a",name:"label"})),e("div",{key:"6802b6824a3434f972ed760e61122582eef6c2a1",class:"input"},e("smoothly-button",{key:"7b4edbef075ce51a50b3d61ebd0df858ce25afee",type:"button",color:this.color,fill:"clear",size:"flexible"},e("slot",{key:"35dc27313c8e9d7463e4cc1a924dcdc3a5414fd8",name:"button"})),e("span",{key:"113ccb707f133856df9a6f2c707db99adcf9af42"},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),e("div",{key:"a128670edafc51b44e0bfb1d092f0d6a8eb20dea",class:"drag-overlay",onDrop:t=>this.dropHandler(t),onDragLeave:t=>this.dragLeaveHandler(t)},e("smoothly-icon",{key:"24c5da9c87f099c6998c911a01a6e2c150a71795",name:"document-attach-outline"})),e("input",{key:"896fe0eba364441816f4f16b2a6585baba195ced",ref:t=>this.input=t,type:"file",capture:this.camera=="back"?"environment":"user",accept:(i=this.accept)!==null&&i!==void 0?i:!this.camera?undefined:"image/jpeg",files:this.files,onInput:t=>this.inputHandler(t)})),e("div",{key:"d8a0d4950ce1846166cf16166437c166839ef201",class:"end",onClick:t=>t.stopPropagation()},e("slot",{key:"06bb474570c901cc3fe00e2de5404c3d37cb836c",name:"end"})))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};Oc.style=Lc;const Ac=".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;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}";const Mc=Ac;const Ec=class{constructor(e){t(this,e);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=x.now();this.max=undefined;this.min=undefined;this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var e;if(!this.readonly){const o=x.parse((e=this.value)!==null&&e!==void 0?e:x.now());o.setMonth(o.getMonth()+t);this.value=x.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var t,e;const o=x.previousMonth((t=this.value)!==null&&t!==void 0?t:x.now()).substring(0,7);const s=(e=this.min)===null||e===void 0?void 0:e.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var t,e;const o=x.nextMonth((t=this.value)!==null&&t!==void 0?t:x.now()).substring(0,7);const s=(e=this.max)===null||e===void 0?void 0:e.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var t,e;(t=this.year)===null||t===void 0?void 0:t.clear();(e=this.month)===null||e===void 0?void 0:e.clear()}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){var t,e;(t=this.year)===null||t===void 0?void 0:t.reset();(e=this.month)===null||e===void 0?void 0:e.reset()}async setInitialValue(){var t,e;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(e=this.month)===null||e===void 0?void 0:e.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const e=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&x.is(o))this.value=x.firstOfMonth(o);else if(e&&x.is(e))this.value=x.firstOfMonth(e)}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element)t.stopPropagation()}render(){var t,o;return e(s,{key:"b1f87fae87e6203e9ef74b7221281e037a830b9b"},e("smoothly-icon",{key:"dd4fe8e284f87807fbb31617ae79060bf0a59ee7",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"ca65bfc738b814d4b9d7cfa1b9c10ab1ed2f478a",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),searchDisabled:true},e("div",{key:"bebf42ca61c711925077807fd39d590ad7c62b90",slot:"label"},e("slot",{key:"4b21253002def35172963163cf0070f319321c68",name:"year-label"})),ie((t=this.value)!==null&&t!==void 0?t:x.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"b26c5f5d8395b4b656a29bdf1e8a5d73e4d27877",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),searchDisabled:true},e("div",{key:"cfa634dc871e83c96cdd49c7e65aeeaa347d9181",slot:"label"},e("slot",{key:"ae56d5cb8aadc9eab5f33da0fee54af46db7f3d2",name:"month-label"})),se((o=this.value)!==null&&o!==void 0?o:x.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"a56a322fadacacd62d1cbae348c0f650432bf3c3",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};Ec.style=Mc;const Dc=".sc-smoothly-input-price-demo-h{display:block}";const $c=Dc;const Rc=class{constructor(e){t(this,e);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return e(s,{key:"edcdc1ceec7f4019e08498066b88c74d9579f4aa"},e("h2",{key:"46d387d433f70510f8520cd48d6b097c18df46a9"},"State demo on smoothly-input"),e("p",{key:"782e65c8fb7c8e5b17d1df4590241db5d346f33a"},"This demo/test the internal state of the smoothly-input component."),e("p",{key:"630705dfad5ac3e9990f78f6de3452553e501854"},"The currency of the price should update when switching between the currencies."),e("smoothly-input-radio",{key:"ad933b980ccd259935b5faf994565c6937ddb1fd",name:"currency",onSmoothlyInput:t=>this.currency=z.is(t.detail.currency)?t.detail.currency:undefined},this.currencies.map((t=>e("smoothly-input-radio-item",{key:t,selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"714f78af7e19b0651eaebb5d4669d17b5cdc8d70",type:"price",currency:this.currency},"price"))}};Rc.style=$c;const Pc='.sc-smoothly-input-radio-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-radio-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-radio-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-radio-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-radio-h,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-radio-h>input.sc-smoothly-input-radio,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-radio-h.floating-label.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.floating-label .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder] .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly] .sc-smoothly-input-radio-s>[slot=label],.has-value.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[placeholder].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[readonly].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.sc-smoothly-input-radio-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-radio{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-radio-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-radio{display:none}.sc-smoothly-input-radio-h{background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center;padding-left:var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom)}.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio,.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{display:flex;gap:1.5rem}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end]{margin-right:0;margin-left:auto}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}';const Fc=Pc;const Hc=class{constructor(e){t(this,e);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=undefined;this.color=undefined;this.clearable=undefined;this.readonly=false;this.name=undefined;this.showLabel=true}componentWillLoad(){var t,e;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((t=>this.parent=t));this.initialValue=this.active}handleRegister(t){t.stopPropagation();t.detail(this.name)}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}smoothlyRadioInputHandler(t){var e,o,s;t.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((e=this.active)===null||e===void 0?void 0:e.value)===t.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==t.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=t.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(t,e){this.listener[t]=e;e(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var t;if(this.clearable){(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=undefined;this.value=undefined}}async edit(t){this.readonly=!t}async reset(){var t,e,o;(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=this.initialValue;this.value=(e=this.initialValue)===null||e===void 0?void 0:e.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var t,e,o;this.valueReceivedOnLoad&&(this.changed=((t=this.initialValue)===null||t===void 0?void 0:t.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}watchingReadonly(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}render(){return e(s,{key:"9832f054f11d49d0c5f427bad59d7e71c3dfb2bb",class:"floating-label"},e("slot",{key:"bbb81a0d76656ee8b8b16d44d986a20a8a26229b",name:"start"}),e("div",{key:"f89673a9f124e42216d39f5d09ea7445f0eb40d8"},e("slot",{key:"1b9cb1c072213a19fa8b83d9f2dfe61792b9571f",name:"label"}),e("div",{key:"a14d4813301823d8ef7108a36dbf6d6ab15bda30",class:"options"},e("slot",{key:"3b34f630c9780413c4ee72d611c0298d04482bfe"}))),e("slot",{key:"90f11393598e9548125f758148c75a09af02a56b",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Hc.style=Fc;const Nc=".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 Yc=Nc;const Uc=class{constructor(e){t(this,e);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioItemRegister=o(this,"smoothlyRadioItemRegister",7);this.value=undefined;this.selected=false;this.looks=undefined;this.name=undefined}componentWillLoad(){this.smoothlyRadioItemRegister.emit((t=>this.name=t));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:t=>this.selected=t})}render(){return e(s,{key:"bf596b71824dfc45cf982587f22ccad43580f29e",onClick:()=>this.inputHandler()},e("input",{key:"b0d3c66f47add4e99b6b36eb5cbede2931c7b834",name:this.name,type:"radio",checked:this.selected}),e("smoothly-icon",{key:"9a9e1538061ef20eec2ff98f7684ce16d72c4efe",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),e("label",{key:"e22dfa008729bf93d2bd09517651ce605db21b09"},e("slot",{key:"9f36ea8d7085eb8d9f30dff91bbaa515113879af"})))}get element(){return i(this)}};Uc.style=Yc;const Wc='.sc-smoothly-input-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-range-h,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-range-h>input.sc-smoothly-input-range,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within)>input.sc-smoothly-input-range{background:transparent}[looks="transparent"].sc-smoothly-input-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-range-h.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .label.sc-smoothly-input-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-range-h.floating-label.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.floating-label .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder] .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly] .sc-smoothly-input-range-s>[slot=label],.has-value.sc-smoothly-input-range-h .label.sc-smoothly-input-range,[placeholder].sc-smoothly-input-range-h .label.sc-smoothly-input-range,[readonly].sc-smoothly-input-range-h .label.sc-smoothly-input-range,.sc-smoothly-input-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-range{display:none}*.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));box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range:not([slot]){position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-right:var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{width:12em;--input-min-height:calc(3rem - 2px)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range:focus{outline:none;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{white-space:nowrap}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{text-align:center;margin-left:var(--input-padding-side);border:none;box-sizing:border-box;width:5em;order:3;margin:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-display.sc-smoothly-input-range,.sc-smoothly-input-range-h:not(.output-side-right)>div.sc-smoothly-input-range>label.sc-smoothly-input-range{display:none}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range input.sc-smoothly-input-range{padding:0;text-align:center}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{width:100%}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:center;margin:0 var(--input-padding-side)}.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:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;margin-top:-.25em;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;border:none}.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))}[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track,[readonly].sc-smoothly-input-range-h,[readonly].sc-smoothly-input-range-h *.sc-smoothly-input-range{cursor:not-allowed}input.sc-smoothly-input-range::-webkit-outer-spin-button,input.sc-smoothly-input-range::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}';const Bc=Wc;const Vc=class{constructor(e){t(this,e);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=undefined;this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.defined=false;this.readonly=false;this.type="text";this.min=0;this.max=100;this.name="range";this.step=undefined;this.outputSide="left";this.label=undefined;this.showInput=false}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this)}}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var t,e,o,s;const i=!this.step?undefined:(e=(t=this.step.toString().split(".")[1])===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(i);this.changed=this.initialValue!==this.value;this.defined=typeof this.value==="number";(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this);this.smoothlyInput.emit({[this.name]:this.value})}setValue(t){var e;if(t==undefined)this.value=undefined;else if(t<this.min)this.value=this.min;else if(t>this.max)this.value=this.max;else this.value=t;this.input&&(this.input.value=this.type=="text"?(e=this.value)===null||e===void 0?void 0:e.toString():this.value)}render(){var t,o,i;return e(s,{key:"98a98128458102922f18ec177df52a2f3a1c58ad",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},e("slot",{key:"e06db3f6ee0fe1348fbc09d0012c5339512552d7",name:"start"}),e("div",{key:"81d3179f141bb88c291cfc590d897917b3a8b348"},e("label",{key:"837b8b5fff2ba7b1e37515dd65b877cd16a82921",htmlFor:this.name},this.label),e("smoothly-input",{key:"f572fea0e08f24de2f009e0e94021169a3dadee0",ref:t=>this.input=t,looks:undefined,color:this.color,name:this.name,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:async t=>(t.stopPropagation(),this.setValue(hr.Element.is(t.target)?Number(await t.target.getValue()):undefined)),onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyInput:async t=>{t.stopPropagation();this.setValue(hr.Element.is(t.target)?Number(await t.target.getValue()):undefined)},value:this.type=="percent"?this.value:(t=this.value)===null||t===void 0?void 0:t.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),e("smoothly-display",{key:"190335c665330b75959e71c798bc21c4ac773234",label:(this.type=="percent"?this.min*100:this.min).toString()}),e("input",{key:"3a2308e1b862d0a68ab6de8f3744ec0222e7992c",name:this.name,part:"range",type:"range",min:this.min,max:this.max,step:(o=this.step)!==null&&o!==void 0?o:"any",disabled:this.readonly,onInput:t=>{t.stopPropagation();this.setValue(t.target.valueAsNumber)},value:(i=this.value)!==null&&i!==void 0?i:this.min}),e("smoothly-display",{key:"2312264e39ea280bb19c1f9edf1684b6207a21bc",label:(this.type=="percent"?this.max*100:this.max).toString()})),e("slot",{key:"1b30b4f2d76728e54313f170631294334ae6e0da",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};Vc.style=Bc;const Gc=class{constructor(e){t(this,e)}render(){return e(s,{key:"a65fa28c070c9c8622dace5fa9dfe6ae672ab68c"},e("h2",{key:"36d30888a8055f706d3d43250c99d6c8882c2bd4"},"Range"),e("h3",{key:"1e2f77ebc5c3c1df3fbd5d095e7c7ab7a86b2b2c"},"Phone Number"),e("smoothly-input-range",{key:"5f50b12ee4a8579e21e67d4247e034541f0fa92e",min:7e8,max:799999999,step:1,label:"Phone Number"}),e("h3",{key:"13db0164ed6b16703c502bd04575492cbbb14e57"},"Stars out of ten"),e("smoothly-input-range",{key:"d38b9df06cfbc0616aa870f9cef411356bedc319",max:10,step:1,label:"Stars"}),e("h3",{key:"e159fcd4db7812bafacaa7c03fc4dfbc6ae5a40a"},"Percent"),e("smoothly-input-range",{key:"0422cada1f51e4f879a8f39120e0534305ecbc44",type:"percent",max:1,step:.01,label:"Percent"}),e("h3",{key:"1b316682a274d09ca05752ec36ebf62fa95c0f07"},"With icon at start and clear button"),e("smoothly-input-range",{key:"07f1e67528c810002f0d73c8d98783c0c3e0ccf6",step:1,name:"range2",label:"Select"},e("smoothly-icon",{key:"3b84524cdcc3ad429bf78f6f79ea81960e0be18d",name:"checkmark-circle",slot:"start"}),e("smoothly-input-clear",{key:"63ab031dd53c1bfc4d2eb390fe35f5af8039da95",size:"icon",slot:"end"})))}};const Kc='[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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-reset-h{display:inline}[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>a.sc-smoothly-input-reset:empty,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:empty{border-width:0}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[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;--smoothly-button-border-radius:0}[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-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear])>button.sc-smoothly-input-reset:hover,.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-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:hover::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-within::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.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{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))}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h[type="input"].sc-smoothly-input-reset-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-reset-h{cursor:not-allowed}.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%)}';const Zc=Kc;const qc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Reset"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(rr.Element.type.is(t)){this.parent=t;this.readonlyAtLoad=t.readonly;t.listen("changed",(async t=>{if(hr.is(t)){this.display=t.readonly?false:t.changed}if(t instanceof ur){this.display=!t.readonly;this.disabled=!this.readonlyAtLoad&&!t.changed}}))}}))}clickHandler(t){var e,o;t.stopPropagation();(e=this.parent)===null||e===void 0?void 0:e.reset();this.parent instanceof ur&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var t;return e(s,{key:"57e2e0372226f9bf0f4202b05c08277b0c9dc10f",title:this.tooltip},e("smoothly-button",{key:"6b8a01fa2fddd93f37b18b04f1257872275bbbd9",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined,onClick:t=>this.clickHandler(t)},e("slot",{key:"5f7448c8bd003b714e4df0e44f7572057324676d"}),e("smoothly-icon",{key:"f018073be7166306d4799775211fe93e2e1b6eb9",flip:"x",name:"refresh-outline",size:"tiny"})))}};qc.style=Zc;var Xc;(function(t){let e;(function(t){t.type=j({value:E(),deselectable:_(),selected:_().optional(),filter:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));t.type=e.type.extend({});t.is=t.type.is})(Xc||(Xc={}));const Jc='.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.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));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.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;display:flex;cursor:pointer;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6em 0;align-items:center}[readonly].sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{cursor:not-allowed}.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}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-icon:not("color"){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>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;cursor:pointer;height:100%;padding-inline:var(--input-padding-side)}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>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>.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;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;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}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>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 Qc=Jc;const th=class{constructor(e){t(this,e);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.lastOpen=false;this.invalid=false;this.errorMessage=undefined;this.name="selected";this.color=undefined;this.looks=undefined;this.showLabel=true;this.showSelected=true;this.readonly=false;this.inCalendar=false;this.ordered=undefined;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.mutable=false;this.open=false;this.selected=[];this.filter="";this.addedItems=[]}componentWillLoad(){var t,e;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var t,e,o,s,i;this.itemHeight===undefined&&(this.itemHeight=(t=this.items.find((t=>t.clientHeight>0)))===null||t===void 0?void 0:t.clientHeight);if(this.menuHeight&&this.itemHeight){(e=this.element)===null||e===void 0?void 0:e.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`)}(i=this.element)===null||i===void 0?void 0:i.style.setProperty("--element-height",`${this.element.clientHeight}px`);if(this.ordered&&!this.multiple&&this.open&&!this.lastOpen){this.scrollToSelected()}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((t=>t.value)):undefined}async getItems(){return this.items}async listen(t,e){this.listener[t]=e;e(this)}async reset(){this.selected.forEach((t=>t.selected=t.hidden=false));this.initialValue.forEach((t=>t.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var t;if(this.clearable){this.selected.forEach((t=>t.selected=t.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(t=this.placeholder)!==null&&t!==void 0?t:""}}}async edit(t){this.readonly=!t}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var t,e;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}onRequiredChange(){this.items.forEach((t=>t.deselectable=!this.required))}async onFilterChange(t){t=t.toLowerCase();await Promise.all(this.items.map((e=>e.filter(t))))}watchingReadonly(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async smoothlyInputLoadHandler(t){if(t.target&&("name"in t.target&&t.target.name!==this.name||t.composedPath().some((t=>t==this.iconsDiv))&&!t.composedPath().some((t=>t==this.toggle)))){t.stopPropagation()}else if(Xc.Element.is(t.target)){t.stopPropagation();t.target.deselectable=!this.required;this.items.push(t.target)}hr.registerSubAction(this,t);this.displaySelected()}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(t){t.stopPropagation();if(this.multiple){this.selected=t.detail.selected?[...this.selected,t.detail]:this.selected.filter((t=>t.selected))}else if(t.detail.selected||!this.items.some((t=>t.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!t.detail.selected?this.selected.filter((t=>t.selected)):[t.detail];!this.showSelected&&t.detail.selected&&(t.detail.hidden=true)}this.displaySelected()}onClosed(t,e){this.lastOpen=e;if(!t){const t=this.items.find((t=>t.marked));if(t){t.marked=false}}}handleShowOptions(t){const e=(t===null||t===void 0?void 0:t.composedPath().some((t=>t==this.iconsDiv)))&&!t.composedPath().some((t=>t==this.toggle));const o=t===null||t===void 0?void 0:t.composedPath().find((t=>"tagName"in t&&t.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!e&&(this.open=!this.open);this.filter=""}areValuesEqual(t,e){return t.length===e.length&&e.every((e=>t.includes(e)))}displaySelected(){var t;const e=this.selected.map((t=>`<div>${t.innerHTML}</div>`)).join("");this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?e:(t=this.placeholder)!==null&&t!==void 0?t:"")}onKeyDown(t){if(!this.searchDisabled){t.stopPropagation();const e=this.items.some((t=>t.getAttribute("hidden")===null));if(t.key!="Tab"&&!t.ctrlKey&&!t.metaKey)t.preventDefault();if(this.open){switch(t.key){case"ArrowUp":e&&this.move(-1);break;case"ArrowDown":e&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=t.ctrlKey?"":this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((t=>t.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(t.key.length==1)this.filter+=t.key;break}}else{switch(t.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(t.key.length==1)this.filter+=t.key;break}}}}scrollToSelected(){const t=this.items.find((t=>t.selected));if(t){this.items.map((t=>t.marked=false));t.marked=true;this.scrollTo(t,"instant")}}move(t){const e=this.items.filter((t=>!t.hidden&&!t.disabled));let o=e.findIndex((t=>t.marked));if(o==-1)o=0;else{e[o].marked=false;o=(o+t+e.length)%e.length}e[o].marked=true;this.scrollTo(e[o],"smooth")}scrollTo(t,e){var o,s,i;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:t.offsetTop+t.offsetHeight/2-((i=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&i!==void 0?i:0)/2,behavior:e})}addItem(){this.addedItems=this.addedItems.concat(e("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return e(s,{key:"cc2f32af9113cb135f67ad108e713ce816d02982",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open},onClick:t=>this.handleShowOptions(t)},e("div",{key:"7f37e622e83a0b3aa3750838737654bc6830f077",class:"select-display",ref:t=>this.displaySelectedElement=t},this.placeholder),e("div",{key:"3d4918108064cb74b446de04eb359ac956d9236c",class:"icons",ref:t=>this.iconsDiv=t},e("smoothly-icon",{key:"4b94e6917943aadebdc6df22de085e723df52d9c",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"9139b66beef3ba075edf0d3fc0008b1db1fcba15",name:"end"}),this.looks=="border"&&!this.readonly&&e("smoothly-icon",{key:"4c5346ce25a54840c1886c33d2bef94fdf5db8be",ref:t=>this.toggle=t,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),e("slot",{key:"bb1ffe6ca46c6fa722f03577f63853a85910f01f",name:"label"}),e("div",{key:"8d31463792eb47339cb5913a2b6311ccffd2bf65",class:{hidden:!this.open,options:true},ref:t=>this.optionsDiv=t},this.filter.length>0&&e("div",{key:"0f80ba71ac1884f2de0e6f4315cdaf648a455ea5",class:"search-preview"},e("smoothly-icon",{key:"e0f5bf862bdcc02a76578b6ed91f01d93616efad",name:"search-outline",size:"small"}),this.filter,e("smoothly-icon",{key:"f1d3c0b29e3977fe8220cd6e57bc03cf7e3b0e25",name:"backspace-outline",size:"small",onClick:t=>{t.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&e("smoothly-icon",{key:"ec4d9605893885482781549dc0a19eccfeed2de2",name:"add",size:"small",onClick:t=>{t.stopPropagation();this.addItem()}})),e("slot",{key:"284a9f4c2c198aa1c6924a86d5925bd2f705bfa5"}),this.addedItems))}get element(){return i(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};th.style=Qc;const eh='[color=default].sc-smoothly-input-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-input-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-input-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-input-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-input-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-input-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-input-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-input-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-input-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-input-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-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-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-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{padding:0.8em;min-width:8em}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-submit{padding:0.6em}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{padding:0.5em}[type=button].sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:100%}[size=large].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:130%}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.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}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}';const oh=eh;const sh=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.delete=false;this.color=undefined;this.icon="checkmark-outline";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=false;this.shape=undefined;this.size="icon";this.toolTip=this.delete?"Remove":"Submit"}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(g.is(t)&&rr.type.is(t)){this.parent=t;t.listen("changed",(async t=>{var e;this.display=!t.readonly;this.disabled=!this.delete&&(t.readonly||"validator"in t&&t.validator instanceof k&&!((e=t.validator)===null||e===void 0?void 0:e.is(d.convertArrays(t.value)))||!t.changed)}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.submit(this.delete)}render(){var t,o;return e(s,{key:"6275b8a59180dfe1a6c9ffe1c251a4bd2fdb1f3d",title:this.toolTip},this.delete==true?e("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(t=this.color)!==null&&t!==void 0?t:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},e("slot",null),e("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):e("smoothly-button",{disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"success",fill:this.fill,onClick:()=>this.clickHandler()},e("slot",null),this.icon&&e("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};sh.style=oh;const ih="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-item-selected-background));color:rgb(var(--smoothly-item-selected-foreground));border-left:.3em solid rgb(var(--smoothly-item-selected-border))}[disabled].sc-smoothly-item-h,.sc-smoothly-item-h[disabled].sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-disabled-background));color:rgb(var(--smoothly-item-disabled-foreground));opacity:var(--smoothly-item-disabled-opacity);cursor:not-allowed}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground))}.sc-smoothly-item-h:not([disabled])[marked],.sc-smoothly-item-h:not([disabled]):hover,.sc-smoothly-item-h:not([disabled])[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:not([disabled]):hover.sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-hover-background));color:rgb(var(--smoothly-item-hover-foreground));fill:rgb(var(--smoothly-item-hover-foreground));stroke:rgb(var(--smoothly-item-hover-foreground))}";const ah=ih;const nh=class{constructor(e){t(this,e);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.disabled=false;this.deselectable=true}clickHandler(){if(!this.disabled&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&!this.disabled)this.smoothlyItemSelect.emit(this.element)}async filter(t){var e;const o=typeof this.value==="string"?this.value:JSON.stringify((e=this.value)!==null&&e!==void 0?e:"");this.element.hidden=t?!(o.includes(t)||this.element.innerText.toLowerCase().includes(t)):false}render(){return e(s,{key:"2bcb4ce39cf6dc6c8ee10b071750cb7831f8492f",tabIndex:-1},e("slot",{key:"e16e1cfdcdc3b2adf794846c892e74756c0a6e13"}))}get element(){return i(this)}static get watchers(){return{selected:["selectedWatcher"]}}};nh.style=ah;const lh=".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 rh=lh;const ch=class{constructor(e){t(this,e);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var t;return e(s,{key:"f2d690e01f4feb5fd77267a90215c635afb0f099",title:this.description,style:{"--hue":(t=this.hue)===null||t===void 0?void 0:t.toString()}},e("slot",{key:"2e6db8a90c124d58ccaf1dba95081cd9526a4c8c"}))}};ch.style=rh;const hh=".sc-smoothly-lazy-h{display:block}";const dh=hh;const mh=class{constructor(e){t(this,e);this.show=false;this.content=undefined}loadMoreHandler(t){t.stopPropagation();this.show=true}render(){return e(s,{key:"450f3f9b10d1c1ce6b707ee7436d14b91a02f7ff"},e("slot",{key:"30b4468cc7527a4fc6adbd35a80217503be8618b",name:"before"}),e("smoothly-load-more",{key:"878a61f0086a5def6ad24eaa4fa6092e49a60415",onSmoothlyLoadMore:t=>this.loadMoreHandler(t)}),this.show&&(typeof this.content=="function"?e(this.content,null):this.content),e("slot",{key:"f5e9b745ba2369f7150a88714a5129ff4ffc7a79"}))}};mh.style=dh;const uh=class{constructor(e){t(this,e);this.smoothlyLoadMore=o(this,"smoothlyLoadMore",7);this.triggerMode="intersection";this.name="";this.multiple=false;this.inView=undefined}checkInView(){if(this.inView)this.smoothlyLoadMore.emit(this.name)}connectedCallback(){var t;this.observer=new IntersectionObserver(((t,e)=>this.observationHandler(e,t)));this.observer.observe(this.element);if(this.triggerMode=="scroll"){this.inView&&this.smoothlyLoadMore.emit(this.name);if(this.multiple||!this.multiple&&!this.inView){this.scrollableParent=n.findParent(this.element);(t=this.scrollableParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var t;(t=this.scrollableParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(t,e){var o,s;this.inView=((s=(o=e.find((t=>t.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0)>0;if(this.inView){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(t.unobserve(this.element),t.disconnect())}}render(){return e(s,{key:"4f0df4fdcba3f813c7559c7415a60b91c8d3acb0"})}get element(){return i(this)}};const yh='.sc-smoothly-modal-h{position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;background-color:rgba(var(--smoothly-modal-backdrop));color:rgb(var(--smoothly-modal-foreground));z-index:5}.sc-smoothly-modal-h:not([open]),[hidden].sc-smoothly-modal-h{display:none}[align=center].sc-smoothly-modal-h{align-items:center}[align=top].sc-smoothly-modal-h>div.modal.sc-smoothly-modal{margin-top:calc((100dvh - var(--smoothly-modal-max-height)) / 2)}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal{display:flex;flex-direction:column;padding:2rem;gap:1.5rem;width:var(--smoothly-modal-width, 40rem);max-width:calc(100dvw - 1rem);height:fit-content;max-height:min(var(--smoothly-modal-max-height), 100dvh);background:rgb(var(--smoothly-modal-background, var(--smoothly-color)));border:1px solid rgb(var(--smoothly-modal-border));border-radius:var(--smoothly-modal-border-radius);box-shadow:var(--smoothly-modal-shadow);box-sizing:border-box}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:empty,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal:empty{display:none}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal{display:flex;justify-content:space-between;align-items:center}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>*.sc-smoothly-modal{margin-block:0}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal:not(.header):not(.actions){overflow-y:auto}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:not(:has([slot="header"])){justify-content:end}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]){cursor:pointer;opacity:0.7;color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]):hover{opacity:1}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}';const bh=yh;const fh=class{constructor(e){t(this,e);this.smoothlyModalChange=o(this,"smoothlyModalChange",7);this.open=false;this.closable=false;this.align="center"}openChanged(){this.smoothlyModalChange.emit(this.open)}render(){return e(s,{key:"2c2112786afba4ee1e0078af711cc66a3b54ec0f",role:"alertdialog"},e("div",{key:"e1037c2ea38bfa435b7d641dd5e23c354c97bcf2",class:"modal"},e("div",{key:"1ece8c35264ff9229be44ab51a7501b329d9b952",class:"header"},e("slot",{key:"2fc3f0b4de6d541138144f39d1c79f53aac71edd",name:"header"}),this.closable&&e("smoothly-icon",{key:"8a53bb4df4ad0c58930e909edf2a4c1852334986",name:"close-outline",fill:"solid",onClick:()=>this.open=false})),e("slot",{key:"cb01d39b81fd0072650c8e252fe19a61fdaddecb"}),e("div",{key:"684d3c1b5abb7f0611d798df79643ba77edfcb30",class:"actions"},e("slot",{key:"640d93cb040871439633722f29c4d82bb7fb4d14",name:"actions"}))))}static get watchers(){return{open:["openChanged"]}}};fh.style=bh;const ph=".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 gh=ph;const kh=class{constructor(e){t(this,e);this.remove=o(this,"remove",7);this.listener=t=>{if(t.state=="closed")this.remove.emit(t);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=undefined;this.tick={}}get properties(){let t;switch(this.notice.state){case"delayed":case"warning":t=["warning","warning-outline"];break;case"success":t=["success","checkmark-circle"];break;case"executing":t=["light","hourglass-outline"];break;case"failed":t=["danger","alert-circle"];break;default:t=["light",undefined];break}return t}onTrigger(t){if(t.detail.name=="close"){t.stopPropagation();this.notice.close()}}onUpdatedNotice(t,e){if(e)e.unlisten(this.listener);t.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return e(s,{key:"8fb5a20434e762590043ed4faf11cec75d008fb0",color:this.properties[0],fill:"solid"},this.closable&&e("smoothly-trigger",{key:"de26276f71118d785f71c4ae363fd9ddacc71ce7",fill:"clear",name:"close"},e("smoothly-icon",{key:"2e399a9b671be2b1d74e3400d393cb779c03ddc1",name:"close-circle-outline"})),e("span",{key:"b904641dc0fe92147df5e5cb550207711321915f",class:this.icon?"icon":"clean"},this.icon&&e("smoothly-icon",{key:"7ab71b91b315668ada24d42f60af2cf0bd397a8c",name:this.properties[1]}),e("p",{key:"68e2b2c6a51829cd023bbaa3023790c36e3da46e"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};kh.style=gh;const vh=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>.smoothly-notifier-wrapper.sc-smoothly-notifier{pointer-events:none;display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}.sc-smoothly-notifier-h>.smoothly-notifier-wrapper.sc-smoothly-notifier>smoothly-notification.sc-smoothly-notifier{pointer-events:all}";const wh=vh;const xh=class{constructor(e){t(this,e);this.icon=false;this.notices=[]}onNotice(t){this.notices=[...this.notices,t.detail]}onRemove(t){this.notices=[...this.notices.filter((e=>e!=t.detail))]}render(){return e(s,{key:"01bb9499d8533fc3b57267bcd33cb15bbf2ff864"},e("slot",{key:"6be9c9ddcdca91c5d409ff6f30a45dbb138d4a24"}),e("div",{key:"657205e7d19a9fd5a8f3ed826d597358ea5eb013",class:"smoothly-notifier-wrapper"},this.notices.map((t=>e("smoothly-notification",{notice:t,icon:this.icon})))))}};xh.style=wh;const Sh="[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--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 Ch=Sh;const zh=class{constructor(e){t(this,e);this.size="large";this.overlay=undefined}render(){const t=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return e(s,{key:"e398e743d6ae2c9371afedc1af71197697f8627c",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},e("svg",{key:"f90840c895e699f9a7e0660b4c4487711992ce0c",class:"spinner",viewBox:`0 0 ${60+t} ${60+t}`,xmlns:"http://www.w3.org/2000/svg"},e("circle",{key:"f431c63f8b43f51fbc89aa7b926abd81202d4485",class:"path",fill:"none","stroke-width":t,"stroke-linecap":"round",cx:`${30+t/2}`,cy:`${30+t/2}`,r:"30"})))}};zh.style=Ch;const jh=".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;cursor:pointer}.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>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover>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 (prefers-reduced-motion){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:none}}@supports selector(details::details-content){.sc-smoothly-summary-h>details.sc-smoothly-summary::details-content{grid-column:2}}";const Ih=jh;const _h=class{constructor(e){t(this,e);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(t){if(t.target instanceof HTMLDetailsElement){this.open=t.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((t=>t.register()))):await Promise.all(Object.values(this.inputs).map((t=>t.unregister())))}}onInputLoad(t){if(hr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e("details",{key:"013ca7fe45e2706b0be77690a72ff55c37bd03cd",onToggle:t=>this.toggleHandler(t),open:this.open},e("summary",{key:"ff74d57224d99e0623f866711fca8d21d4635eb5"},e("smoothly-icon",{key:"4a8b741fe22d64f2f411e6704b9b7b4d5d14b288",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),e("slot",{key:"a8f5a0416c17b4c011b508f1b44f93a0362709b9",name:"summary"})),e("slot",{key:"9d7905d61c1cd60c1bd44c3e812ecd2c18eb63b7",name:"content"}))}};_h.style=Ih;const Th=".sc-smoothly-tab-h{display:contents;--line-width:3px}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child{grid-column:span 1;background-color:transparent;border-bottom-color:rgb(var(--smoothly-default-shade));border-bottom-width:var(--line-width);border-bottom-style:solid}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{display:block;padding:.5rem;width:fit-content;margin:auto;cursor:pointer}[open].sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{border-bottom:var(--line-width) solid rgb(var(--smoothly-primary-color));margin-bottom:calc(-1 * var(--line-width));position:relative}.sc-smoothly-tab-h>div.sc-smoothly-tab:nth-child(2){grid-row:2 / 3;grid-column:1 / -1}";const Lh=Th;const Oh=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.smoothlyTabLoad=o(this,"smoothlyTabLoad",7);this.inputs={};this.label=undefined;this.open=undefined}async openHandler(){if(this.open)this.smoothlyTabOpen.emit(this.label);this.open?await Promise.all(Object.values(this.inputs).map((t=>t.register()))):await Promise.all(Object.values(this.inputs).map((t=>t.unregister())))}onClick(){this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(t){if(hr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e(s,{key:"c899210cbea49b143b2de3b443dc4cf656014d4d"},e("div",{key:"1ffb57e2b5286e818526d81ae9516357ab3050ec"},e("label",{key:"7e5c98ae6cf9124a5165d8132f57cadf1b07b677"},this.label)),e("div",{key:"0a0b0faef055809e0da293b3efa092af2d81b9e3",hidden:!this.open},e("slot",{key:"4e16af2cc30e5e62f1af8818c4c5037f46383a70"})))}static get watchers(){return{open:["openHandler"]}}};Oh.style=Lh;const Ah=".sc-smoothly-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 Mh=Ah;const Eh=class{constructor(e){t(this,e);this.columns=1}smoothlyTableExpandableRowChange(t){t.stopPropagation()}smoothlyTableExpandableCellChange(t){t.stopPropagation()}render(){return e(s,{key:"272c1550a6839b84a3182b78744a8d744e9f201a",style:{"--columns":this.columns.toString()}},e("slot",{key:"6d0e2a8487189de01d90a785966205648160d580"}))}};Eh.style=Mh;const Dh=".sc-smoothly-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 $h=Dh;const Rh=class{constructor(e){t(this,e)}render(){return e(s,{key:"568b240511f1f928e398f24090134204e05f5725"},e("slot",{key:"686d093a90d9a2a16492108c45ff2b9d60bbef32"}))}};Rh.style=$h;const Ph=".sc-smoothly-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 Fh=Ph;const Hh=class{constructor(e){t(this,e);this.span=1}render(){var t;return e(s,{key:"8cd74b926185e5e15b8c48a0723ec6c9b03b1227",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("slot",{key:"a1eb377c3532feb0ba18cd74fb09b0a00a780033"}))}};Hh.style=Fh;const Nh=".sc-smoothly-table-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const Yh=Nh;const Uh=class{constructor(e){t(this,e)}render(){return e(s,{key:"3046978ea77a2bff648a14420f05f85e398a0927"},e("smoothly-table-demo-filler-row",{key:"6690a2d0b36d1e7f7969a61d78908de0fc568a50"}),e("smoothly-table-demo-group",{key:"37e23b74ae8923c970bbb2639e640222feedc307"}),e("smoothly-table-demo-colspan",{key:"b8539d27f7a8f36cd1b7bca1bf54eb54183db0b8"}),e("smoothly-table-demo-simple",{key:"89fd22a0e50f0c87d39437fa5fe04b66e2280584"}),e("smoothly-table-demo-nested",{key:"b4b1eae30554c4f7a56891112473c2eb84232263"}),e("smoothly-table-demo-filtered",{key:"7f9ec900541185901c822b5450edb4aca4f4ee2c"}))}};Uh.style=Yh;const Wh=".sc-smoothly-table-demo-colspan-h{display:block}.sc-smoothly-table-demo-colspan-h smoothly-display.sc-smoothly-table-demo-colspan{display:inline}";const Bh=Wh;const Vh=class{constructor(e){t(this,e)}render(){return e(s,{key:"f3c409f0b6f43da04fbe409c7ed7ebadf5c94799"},e("smoothly-table",{key:"54b821e2e4524e7eecda98229df2319fc48c7724",columns:3},e("smoothly-table-head",{key:"422385fdbb992c1d32cd6c8d0876d550f615f0c6"},e("smoothly-table-row",{key:"2ad82993c654b485c79962b606eff1953644670c"},e("smoothly-table-cell",{key:"f8f42a802e34b3695d04e2de59a99b49c6192ecf"},"Date"),e("smoothly-table-cell",{key:"79681fd1fe78adb229aaf3071ae51ba8161c7ba0"},"Skip"),e("smoothly-table-cell",{key:"311219701e89b0ea46cac7c9e7334eb3eabc5501"},"Total"))),e("smoothly-table-body",{key:"75a1ec1e2629ed1220673b48adca3189617f7443"},e("smoothly-table-row",{key:"49295b1e8cbbf145ecca779851285e14665dff56"},e("smoothly-table-cell",{key:"456af9cb2a8f86b7a63890fe8f5e8f581915be33",span:2},e("smoothly-display",{key:"e7031f02b0b241830e60bfd811757db862305df9",type:"date",value:"2024-01-01"})),e("smoothly-table-cell",{key:"fb2be68daaa5221b44c7e3db0b55ac899c40acdd"},e("smoothly-display",{key:"086f117daf113001597da48844df96f22d631b7f",type:"price",value:120,currency:"EUR"}))),e("smoothly-table-row",{key:"97a1254a17a62dd45b82290c6bf4fef2853d7907"},e("smoothly-table-expandable-cell",{key:"c44e6b35ef42095c057c84696b536e9dddad3027",span:2},e("smoothly-display",{key:"13a7b5c6d3defc5aa8d48f238f3de47e09a5ee2c",type:"date",value:"2024-01-02"}),e("smoothly-lazy",{key:"1278a07efc56a1bcd4360a2de22c0f014ed343cc",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),e("smoothly-table-expandable-cell",{key:"2f6cdd2a7cfcb741ed0d8ff8e2aa64d6221d42df"},e("smoothly-display",{key:"5d716640836a1e215802d0584a894bd1b69633d2",type:"price",value:220,currency:"EUR"}),e("smoothly-lazy",{key:"1f2d1719387d09873db7affab6b4989253e5d46b",slot:"detail",content:e("span",null,e("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",e("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),e("smoothly-table-row",{key:"b2a3418c23c1563a518b563b9308e2ab1be21bb0"},e("smoothly-table-cell",{key:"f095ecfb75a74fd65fc7d0c20104947d02dd9864"},e("smoothly-display",{key:"b6ab78cc06b647366d9da976a220d186cb10c949",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"a5b5a5c7b8b01c5ba52fbd8ecb45ba5ab109120d"},"Not Skipped"),e("smoothly-table-cell",{key:"9803423aab3535613a0b812b94b62f618a832443"},e("smoothly-display",{key:"1a2f69afa1560deb43141bf1e62b47e324e9053f",type:"price",value:320,currency:"EUR"}))))))}};Vh.style=Bh;const Gh=".sc-smoothly-table-demo-filler-row-h{display:block}.sc-smoothly-table-demo-filler-row-h>smoothly-display.sc-smoothly-table-demo-filler-row{font-size:2em}.sc-smoothly-table-demo-filler-row-h>*.sc-smoothly-table-demo-filler-row{margin-bottom:2rem}";const Kh=Gh;const Zh=class{constructor(e){t(this,e);this.cats=[]}async componentDidLoad(){window.setTimeout((()=>{this.cats=undefined}),3e3)}render(){return e(s,{key:"f7a6e988e23fbfe0d327f2c2c0ea383e91e6c00d"},e("smoothly-display",{key:"1c15584e9359a22e169f9d996b64c2e4a8642e70",type:"text",value:"Filler row"}),e("smoothly-table",{key:"ff3d8237d67bee82f468f931909d6f7aa9ea1cf2",color:"primary",columns:4},e("smoothly-table-head",{key:"aa696f144f5eb68825668f25c70a47ebe604bfe0"},e("smoothly-table-row",{key:"a08b9a87b9e3d22e5052f835839b819509669bae"},e("smoothly-table-cell",{key:"47cbc283c04f9de90787063b55567c62176b3b88"},"Breed"),e("smoothly-table-cell",{key:"36576f62ebe64e4666256f71f3bba1d6865fb810"},"Country"),e("smoothly-table-cell",{key:"86ab4675cbab63fe53fdd0c50249f6c9c954d2eb"},"Coat"),e("smoothly-table-cell",{key:"33445c896de6507a1786622e87600d6799a853d2"},"Origin"))),e("smoothly-table-body",{key:"3199cb2736ccc655d0a5e3a0b27e8957e7fade3d"},this.cats===undefined?e("smoothly-table-filler-row",null,"No data to display"):this.cats.length===0?e("smoothly-table-filler-row",null,e("smoothly-spinner",{style:{margin:"auto"},color:"default",size:"small"})):this.cats.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,t.breed),e("smoothly-table-cell",null,t.country),e("smoothly-table-cell",null,t.coat),e("smoothly-table-cell",null,t.origin)))))))}};Zh.style=Kh;var qh=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Xh=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Jh;class Qh{get selected(){var t;return Xh(this,Jh,(t=qh(this,Jh,"f"))!==null&&t!==void 0?t:Object.values(this.data),"f")}constructor(t,e={}){this.key=t;this.data=e;Jh.set(this,void 0)}handle(t){var e;return new Qh(this.key,"check-all"in t?(e=t["check-all"])!==null&&e!==void 0?e:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),t)).filter((([t,e])=>e!=undefined))))}render(t){var o,s,i;return Array.isArray(t)?e("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(t.map((t=>[t[this.key],t]))),intermediate:this.selected.length>0&&this.selected.length<t.length,checked:this.selected.length==t.length?true:this.selected.length==0&&false}):e("smoothly-checkbox",{name:(o=t[this.key])===null||o===void 0?void 0:o.toString(),value:t,checked:!!this.data[(i=(s=t[this.key])===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""]})}static create(t){return new Qh(t)}}Jh=new WeakMap;const td='.sc-smoothly-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-table-demo-filtered-h>smoothly-display.sc-smoothly-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-table-demo-filtered-h>smoothly-filter.sc-smoothly-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-table-demo-filtered-h>*.sc-smoothly-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2),.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-head.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(4){justify-content:end}';const ed=td;const od=class{constructor(e){t(this,e);this.criteria={};this.cats=undefined;this.selector=Qh.create("breed")}onFilterUpdate(t){t.stopPropagation();this.criteria=t.detail}smoothlyInputHandler(t){t.stopPropagation();this.selector=this.selector.handle(t.detail)}async componentWillLoad(){const t=await or("https://catfact.ninja/breeds?limit=15");this.cats=t.status==200&&(await t.body).data.map((t=>{var e,o;return Object.assign(Object.assign({},t),{price:[...t.breed].reduce(((t,e)=>t+e.charCodeAt(0)),0),nested:Object.assign(Object.assign({},t),{names:(e=sd[t.country])!==null&&e!==void 0?e:[]}),names:(o=sd[t.country])!==null&&o!==void 0?o:[]})}))}render(){const t=this.cats&&Qn(this.criteria,this.cats);return e(s,{key:"9ed2288b9aa0b7fec71e9034742b3ced8fb95335"},e("smoothly-display",{key:"c9e9f9f84b649977c431411a45c9a7ef4c708650",type:"text",value:"Filtered"}),e("smoothly-filter",{key:"df8733d3749d616833ad435fc2cf964a4d2889a2"},e("smoothly-filter-toggle",{key:"28c6c2405c5e0ec916bdff7b01ef5f05b433594b",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),e("smoothly-filter-toggle",{key:"28356b3ac2762fbb0b02daa481a725b7c9de4ecf",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"84f494b764c2cb58c93a9dbc3d3937bc83950267",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"3fb0d6fcaabced6b54cf388785c62dbb712d4ea2",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),e("smoothly-filter-select",{key:"455dbc1ae303429a13b0d40d56c4db3ce3ea923e",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.nested?Object.assign(Object.assign({},t),{[e.nested.coat]:e}):t),{})).map((t=>{var o;return((o=t.nested)===null||o===void 0?void 0:o.coat)&&e("smoothly-item",{slot:"items",value:t.nested.coat},t.nested.coat)}))),e("div",{key:"65b8bfa14a1fe65f71e5b3d88422526d5300f316",slot:"detail"},e("smoothly-form",{key:"606c9015213fc51bede9d2390204ab548d5741de",looks:"border"},e("smoothly-filter-select",{key:"aa61ce0e551a0737da8c6d3dd0f7fcf53cb22071",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.nested?Object.assign(Object.assign({},t),{[e.nested.coat]:e}):t),{})).map((t=>{var o;return((o=t.nested)===null||o===void 0?void 0:o.coat)&&e("smoothly-item",{slot:"items",value:t.nested.coat},t.nested.coat)}))),e("smoothly-filter-select",{key:"fafee16b81d94a8de99ecb1595311f699e77772a",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.breed?Object.assign(Object.assign({},t),{[e.breed]:e}):t),{})).map((t=>t.breed&&e("smoothly-item",{slot:"items",value:t.breed},t.breed)))),e("smoothly-filter-select",{key:"d093121dbac5c4da3d847366e14126623cc3bfcc",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(sd).flat().reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:true})),{})).flatMap((t=>e("smoothly-item",{slot:"items",value:t},t)))),e("smoothly-filter-input",{key:"f70f7009cfa2f2768c8201d1558131723aec8473",label:"Coat",property:"coat"}),e("smoothly-filter-input",{key:"4b86865751461f38e68e3ee3cd3c73e3002ea39e",label:"Nested Coat",property:"nested.coat"})))),!t?"Failed to load data.":e("smoothly-table",{columns:4},e("smoothly-table-head",null,e("smoothly-table-row",null,e("smoothly-table-cell",null,this.selector.render(t)),e("smoothly-table-cell",null,"Breed"),e("smoothly-table-cell",null,"Coat"),e("smoothly-table-cell",null,"Price"))),t.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,this.selector.render(t)),e("smoothly-table-expandable-cell",null,t.breed,e("div",{slot:"detail"},"Country: ",t.country)),e("smoothly-table-expandable-cell",null,t.coat,e("div",{slot:"detail"},"Pattern: ",t.pattern)),e("smoothly-table-cell",null,e("smoothly-display",{type:"price",value:t.price,currency:"SEK"}))))),e("smoothly-table-foot",null,e("smoothly-table-row",null,e("smoothly-table-cell",{span:3},e("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:t?t.length:"?"}`}))))))}};const sd={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};od.style=ed;const id=".sc-smoothly-table-demo-group-h{display:block}.sc-smoothly-table-demo-group-h smoothly-display.sc-smoothly-table-demo-group{display:inline}.sc-smoothly-table-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-table-demo-group{grid-column:span 2}.sc-smoothly-table-demo-group-h>smoothly-display.sc-smoothly-table-demo-group{display:inherit;font-size:2em}.sc-smoothly-table-demo-group-h>*.sc-smoothly-table-demo-group{margin-bottom:2rem}.sc-smoothly-table-demo-group-h fake-group-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-row-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-expandable-row-wrapper.sc-smoothly-table-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-table-demo-group-h fake-cell-wrapper.sc-smoothly-table-demo-group{grid-column:span 1;display:block}.sc-smoothly-table-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-table-demo-group{display:contents}";const ad=id;const nd=class{constructor(e){t(this,e)}render(){return e(s,{key:"525eeb222fc5adf7686f01218b851237c1999f41"},e("smoothly-display",{key:"16b431fd3e0c5121621001a637e35efa0471775d",type:"text",value:"Group"}),e("smoothly-table",{key:"4e71111d0ab87c2a1b7c017bac2467846a196a67",color:"primary",columns:2},e("smoothly-table-head",{key:"9bd108bb1e59a6ded5ec13ef0a87c36173be7f75"},e("smoothly-table-row",{key:"82ac75f037ae43980e3379e94d9b8d5ab0a8b0d2"},e("smoothly-table-cell",{key:"9f5e0d4b0b0089fb11325cedde0d3cb38311e74d"},"Date"),e("smoothly-table-cell",{key:"f8245b75fce32068c78393fb4739489ae8f198f4"},"Total"))),e("smoothly-table-body",{key:"d45013659fca29b22289625304ffee15ca8a5ef3"},e("smoothly-table-row-group",{key:"1deb59cea4ed8fae6b8ead06c530d1ef28026592",align:true},e("smoothly-display",{key:"9497ecdf2558f9f3a7e24495ace80c42a1667f52",slot:"start",type:"date",value:"2024-01-01"}),e("smoothly-display",{key:"c31bd0d77e8226c8548eb2088425d022554de981",slot:"end",type:"price",currency:"EUR",value:510}),e("smoothly-table-expandable-row",{key:"5e8aa13aa0364e233888b5e9243697991105babf"},e("smoothly-table-cell",{key:"653203b35b3fc24aca74f01eddf8a95e544985f4"},e("smoothly-display",{key:"11e70eee43318e5a418504717297f8a0d322949f",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),e("smoothly-table-cell",{key:"edf443bf38474b73585310979c9cae9e1a710bcd"},e("smoothly-display",{key:"d01ce8934c552744864f98653ac86c906d8c7125",type:"price",currency:"EUR",value:250})),e("smoothly-lazy",{key:"226222ba98a44d3a2177b9426ca075733dbf310f",slot:"detail",content:e(a,null,"Details of 2024-01-01T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"54eb65d5619d4bf9393b9d2b4ab93526d5713157"},e("smoothly-table-cell",{key:"c5514790ff8ab9bbc749f17b407562ecb6eb99ea"},e("smoothly-display",{key:"39597722d78f192d2e4fbd05210a3f094712d3b8",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),e("smoothly-table-cell",{key:"a41a3848f53285f5cb1c08be15580476138b1c1f"},e("smoothly-display",{key:"01979311ac640d12e119027b23403196e5db17fd",type:"price",currency:"EUR",value:260})),e("smoothly-lazy",{key:"5100c23d76896339eb498b799d40111a4e25209f",slot:"detail",content:e(a,null,"Details of 2024-01-01T13:37:00.000Z")}))),e("smoothly-table-row",{key:"597ce39b9479a1e1357f796a71e2d1c503d919a8"},e("smoothly-table-cell",{key:"40030ccef075d3db739f93313bcbf4fd3b217824"},e("smoothly-display",{key:"1b7d2f7f188904a64027183c5b92ee46696a58b3",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"a1bab5c05633dedaa4577c3467c467e8434c9dff"},e("smoothly-display",{key:"149cb3594ff7fce3804b249db2c0dc4eaab7c792",type:"price",currency:"EUR",value:130}))),e("smoothly-table-row-group",{key:"3f4cb98c9833ef2db6d620c19edb99664fceef81"},e("smoothly-display",{key:"43da59e71204d7de7bb96dd2dca0f0e2f8ccb45c",slot:"start",type:"date",value:"2024-01-03"}),e("smoothly-display",{key:"8e9e3f780a49c66022c2d1a862fd4a045dccd27a",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"1cfc918002f3265ad9f41015d48c1f6b1239064f"},e("smoothly-table-cell",{key:"42a745d0332754db7292bf73a7819477affcdc9a"},e("smoothly-display",{key:"243ecea204945b53e1214e54451f6e1466c8da16",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),e("smoothly-table-cell",{key:"4e2a0cd1afd162c601598fafffd16bd603027b21"},e("smoothly-display",{key:"8808efedafd877fbd37e86a48116e0c097c5f87b",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"15e33aa24d8a9b16cc769575f447906b6c857feb",slot:"detail",content:e(a,null,"Details of 2024-01-03T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"2f7150bbf8788efdf3f952699ee0152314e50ff2"},e("smoothly-table-cell",{key:"22a1cae330863e4d200242ca60ecc02e9d6d701b"},e("smoothly-display",{key:"46af4c591ed61833edf8270a3897ce5523d926f3",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),e("smoothly-table-cell",{key:"d10025ffebe60be43a1be27f9f45256645601169"},e("smoothly-display",{key:"6845240c041b29305eacfd40ac5a2d7c6e20111e",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"77894ef80c6e032306681e926d347c942850f73d",slot:"detail",content:e(a,null,"Details of 2024-01-03T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"05ae54333b11f8fbf78a278b2bfba561e63ae0df"},e("smoothly-display",{key:"2fc5952b6551f0fc8766e7152b9966258761bb91",slot:"start",type:"date",value:"2024-01-04"}),e("smoothly-table-expandable-row",{key:"32b4a1ff9f17e25e60c07ec20452f88af599bd1e"},e("smoothly-table-cell",{key:"828d082dd015e349dc37ff317619cd2d56f3470e"},e("smoothly-display",{key:"74267a4292dd9ead42f26028bdd76fff623a2693",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),e("smoothly-table-cell",{key:"cd67a1766268f2d56559e7a60ee01046a7fc7a18"},e("smoothly-display",{key:"05431f09e4bebf6ff856a41e0862a38cbe6137f2",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"67b58fb40bb98c3936d28afc76543df5748de6aa",slot:"detail",content:e(a,null,"Details of 2024-01-04T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"f422620e633abee78fb069729fb95537e5cb94b6"},e("smoothly-table-cell",{key:"a590a63eece73f6ba0401c273962b960a801f7c0"},e("smoothly-display",{key:"dc59556c574211873d979ce2b21eb6944bbc7ea6",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),e("smoothly-table-cell",{key:"2f9adf000972ce9ac3e5f9508d3e551e85da4f0f"},e("smoothly-display",{key:"463b5ad3a144ffdea4e5815a9fdaef810579d668",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"24f174c46ca2b1d48a63ba9bb5af8aed4f677807",slot:"detail",content:e(a,null,"Details of 2024-01-04T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"85c3a2b72afd6b4bd6ca5e049e5d998c7f452617"},e("smoothly-display",{key:"a3eab9df28f622cb7209d94998b9cd7092cf4094",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"2f519457811a80b7b046c751c7ca7ba809cc5a7e"},e("smoothly-table-cell",{key:"bce1e2896e6c67cc2f4ab6ea9a33da7f2ac6baaf"},e("smoothly-display",{key:"0b399fa785d1c1584c2b5a0e2c62089cdc70b853",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),e("smoothly-table-cell",{key:"b11c1ccd8926cea12bab9b17e0213cd92448179b"},e("smoothly-display",{key:"f6f64669ddbb7929c4bf25434e2f1f01e7d28b8d",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"491217ba81f5f259eaf8bcf06f81a38c9786da5a",slot:"detail",content:e(a,null,"Details of 2024-01-05T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"e42f9a96e747c23a31fec50e85be8cf7adb6b5f4"},e("smoothly-table-cell",{key:"fff1468ed1fa968decd385ccb4d567db558d5236"},e("smoothly-display",{key:"d69fed5921022a7f1d9ee02068e2310939d12820",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),e("smoothly-table-cell",{key:"c2f9064d078bd2acc1372b13570da65de9540a28"},e("smoothly-display",{key:"74576b278170b1fbfd42bcb460e04e3b3c0c278d",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"cb82144ebf48347f1e787948b7e2741626281cac",slot:"detail",content:e(a,null,"Details of 2024-01-05T13:37:00.000Z")}))),e("fake-group-wrapper",{key:"1d0501694958227a3fc26b5a71e47ba8c0f67fa9"},e("smoothly-table-row-group",{key:"cbcd31378bc87715a07f242e5b1e088b67c1ce36"},e("smoothly-display",{key:"7ca0a0f5b277448b1427451ffcee6df822b6c0a0",slot:"start",type:"date",value:"2024-01-06"}),e("smoothly-display",{key:"a46ecf07459ba03d79db21f31f0c7570f8247a49",slot:"end",type:"price",currency:"EUR",value:720}),e("fake-row-wrapper",{key:"a0e0f8583067c85c2cfcd753bf77048c00c23ca0"},e("smoothly-table-row",{key:"18bc28ff57dacc6ab43fac17ac2918297188363b"},e("fake-cell-wrapper",{key:"f74e9f2cf3a66f177b65005629dbb156668980c3"},e("smoothly-table-cell",{key:"d51d0c9b75b6deaba1e0fa1761e857d01bd349fa"},e("smoothly-display",{key:"cf39b5b2a9b261b586348fd9d8739533b5a0d100",type:"date",value:"2024-01-02"}))),e("fake-expandable-cell-wrapper",{key:"b3c63c3130812325d382ab8ae4eff274e1dcc2c2"},e("smoothly-table-expandable-cell",{key:"3a2d4f1c077e846f9f03605e9b8ccd24eac32914"},e("smoothly-display",{key:"37cf54b0a6eb2c3787a074d45d563ce2a379656a",type:"price",currency:"EUR",value:130}),e("smoothly-lazy",{key:"6776c4a2b15dc519c1fd4fde9b0db19d939e713f",slot:"detail",content:e("span",null,e("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",e("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),e("fake-expandable-row-wrapper",{key:"b5157bc904e78c24500337f20b163a8dfda0de3d"},e("smoothly-table-expandable-row",{key:"3f9f32a8424257aa9ab31fcf37dbd3684640a1f6"},e("fake-cell-wrapper",{key:"40d9d8aef075ddd8b00348f75c3241cd70afa753",class:"span-2"},e("smoothly-table-cell",{key:"f74561780c1399d1b4122688cbe7a746b4fc6299",span:2},e("smoothly-display",{key:"a58fd01124a4c5768872c5be3d5f6454ff6a4db9",type:"date",value:"2024-01-07"}))),e("smoothly-lazy",{key:"421930675caba973df071bd32fee2e86410eb3af",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),e("smoothly-table-row-group",{key:"5f80049f47cfbb23e355c7f71344c32ca121260d"},e("smoothly-display",{key:"9850d54767d961cc1bc2ab91fa87a438d762aa26",slot:"start",type:"date",value:"2024-01-08"}),e("smoothly-display",{key:"5f6e9c093aa50717f31abad9d69fb142ef762a26",slot:"end",type:"price",currency:"EUR",value:720})))))}};nd.style=ad;const ld=[{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 rd=".sc-smoothly-table-demo-nested-h{display:block}.sc-smoothly-table-demo-nested-h>smoothly-display.sc-smoothly-table-demo-nested{font-size:2em}.sc-smoothly-table-demo-nested-h>*.sc-smoothly-table-demo-nested{margin-bottom:2rem}";const cd=rd;const hd=class{constructor(e){t(this,e)}render(){return e(s,{key:"1743d7589bd492377468972dabf4deec6e20069a"},e("smoothly-display",{key:"779c7a09c0c0468f62b42dcb19787f19188f3481",type:"text",value:"Nested"}),e("smoothly-table",{key:"35f9b6f470fa53a1d7ad6336c6de80c0a49b5aa0",color:"primary",columns:8},e("smoothly-table-head",{key:"30f3cc7fc9e43d591701aa48673e85a50eea0039"},e("smoothly-table-row",{key:"be8c95740340f2aeedfd269b5aee1cbaca8d8fdc"},e("smoothly-table-cell",{key:"a66a2cfee429a827bf6edf8b46b132bff41219c5"},"Id"),e("smoothly-table-cell",{key:"fc52ddfecdf7f31a1fd24454ab7806fead292d97"},"Registered"),e("smoothly-table-cell",{key:"c59f5611769381273e862a38d30a6a7ae2ad75f5"},"Name"),e("smoothly-table-cell",{key:"3c0453f5da50e9601e09841afa565c36e9e60b25"},"Age"),e("smoothly-table-cell",{key:"92ec3aa300dbca0d2012bc7899fbc7e7c849bd4d"},"Balance"),e("smoothly-table-cell",{key:"025e440cfd9de4b0a785d2e7502f281af4047518"},"EyeColor"),e("smoothly-table-cell",{key:"0d138945bacee71cc2c558d2d8d5d2895283d080"},"Gender"),e("smoothly-table-cell",{key:"8f233a5c7e1ff21618ba10d5aab626f91b45168a"},"Company"))),e("smoothly-table-body",{key:"7fe751054d49b1e870665253493ef0745fd047b0"},ld.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-demo-nested-inner",{color:"secondary",data:t.friends,slot:"detail"}),e("smoothly-table-cell",null,t.id),e("smoothly-table-cell",null,t.registered),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-table-cell",null,t.balance),e("smoothly-table-cell",null,t.eyeColor),e("smoothly-table-cell",null,t.gender),e("smoothly-table-cell",null,t.company))))),e("smoothly-table-foot",{key:"e394c6fbe111c46b6f04955424a913cf54bdb28c"},e("smoothly-table-row",{key:"79bba0ffedb84848d39eea8e3e40c154a74065c9"},e("smoothly-table-cell",{key:"87248c277bb4bc20b961a575763470a8eaaee119"},"Footer Cell"),e("smoothly-table-cell",{key:"3f084a0097337a69cab73887f0130b98129ca0e4"},"Footer Cell")))))}};hd.style=cd;const dd=".sc-smoothly-table-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const md=dd;const ud=class{constructor(e){t(this,e);this.data=undefined}render(){var t;return e(s,{key:"83636579f0ac1515fa2c1a912d2625dc98dc2870"},e("smoothly-table",{key:"04bb54e0def08d95349b4924d480702632a310ad",columns:4},e("smoothly-table-head",{key:"444c47c289856b5b6cff4c44954656d0a853fe95"},e("smoothly-table-row",{key:"59044bea8b54871bded78091b98574358fc6022e"},e("smoothly-table-cell",{key:"d77d47360a9c5a317357f15a87a17e191f202e3f"},"Id"),e("smoothly-table-cell",{key:"953bf1a655f4807131ebffa8ea7cec8571177e8e"},"Name"),e("smoothly-table-cell",{key:"047211617101160584267f87d55a4c63c4a3c54d"},"Age"),e("smoothly-table-cell",{key:"0c01220d3751fd8e895180860d59f756758baed8"},"Balance"))),e("smoothly-table-body",{key:"fc0cd184a5f603bf0b827cf1b0e307320085fdff"},(t=this.data)===null||t===void 0?void 0:t.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,t.id),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-table-cell",null,t.balance)))))))}};ud.style=md;const yd=".sc-smoothly-table-demo-simple-h{display:block}.sc-smoothly-table-demo-simple-h>smoothly-display.sc-smoothly-table-demo-simple{font-size:2em}.sc-smoothly-table-demo-simple-h>*.sc-smoothly-table-demo-simple{margin-bottom:2rem}";const bd=yd;const fd=class{constructor(e){t(this,e)}render(){return e(s,{key:"1e86196497b4efcd12ce83e2029e6405bd124003"},e("smoothly-display",{key:"fdeba88a51dfa10bdece176d5376a0be91fdd049",type:"text",value:"Simple"}),e("smoothly-table",{key:"4cf8352df796c51cb0885c5d6e8fddd8a629dddf",color:"primary",columns:2},e("smoothly-table-head",{key:"351cabf09c280eb068004a2f6a4d2fa2d4b59d8b"},e("smoothly-table-row",{key:"a59bbb50fa9833bbed66780e2e100404558b0fda"},e("smoothly-table-cell",{key:"ae807fbef99679ba195277ce450465eeb3b4cda6"},"Breed"),e("smoothly-table-cell",{key:"1d4bf3137688e4ad1ea55eab3a347b0fd4dba1fc"},"Coat"))),e("smoothly-table-body",{key:"8f2d969bc13ee4f3e8fd66eda1561ef5e2acd74c"},pd.map((t=>e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,t.breed,e("div",{slot:"detail"},"Country:",e("br",null),t.country)),e("smoothly-table-expandable-cell",null,t.coat,e("div",{slot:"detail"},"Pattern: ",t.pattern))))),e("smoothly-table-expandable-row",{key:"ce71eef208830a266b947cc06406abc16bd0d707"},e("div",{key:"f73b597444e74b3f08a1ecdf0fa97a3a7652f09f",slot:"detail"},"Content",e("br",{key:"064db5c92f57b5409cd48ec77bbffc207ce9c3f4"}),"of",e("br",{key:"b84db2dddd92c7a5d4a0da02f39a14a2e77f4d27"}),"the",e("br",{key:"453ce193951a32c0913225210095c490f975eaba"}),"expandable",e("br",{key:"d3238f2c58cbae7b44a2430338437edbfdc2883c"}),"row"),e("smoothly-table-cell",{key:"be1db189448b8296e525ccde250acceb8da69ba9"},"Cell1 in expandable row"),e("smoothly-table-cell",{key:"e036a536d5e2adb960fb9a8a48a053f59384a1c9"},"Cell2 in expandable row")),e("smoothly-table-row",{key:"02d3d0a32b56cff3d08bb31bbc27e03d406023f0"},e("smoothly-table-cell",{key:"1781f0b418317895b3e016a68622d6286ef2f78c"},"Cell5"),e("smoothly-table-expandable-cell",{key:"c193285c0ae1286aa8b4a23214078fdf9240fe20"},"Expandable Cell",e("div",{key:"24b11089104ccacfddf9963e9a1a49921ea225d5",slot:"detail"},"Content of the expandable cell"))),e("smoothly-table-row",{key:"9e7a977a926a505c2eee8fb2a18edf6a522de93e"},e("smoothly-table-expandable-cell",{key:"46cb2c15163d00214ea8abba6591890735fe9607"},"Expandable Cell 1",e("div",{key:"13f57a5b68bb7f113712675789ae25904df76474",slot:"detail"},"Content of the expandable cell 1")),e("smoothly-table-expandable-cell",{key:"dca3f34766b72bc6f7524739045ab4f915be0a98"},"Expandable Cell 2",e("div",{key:"c10dd964b3286c3d19cc774393f7384b4a0c02dc",slot:"detail"},"Content of the expandable cell 2")))),e("smoothly-table-foot",{key:"919b4e73a0622d50e98a02fb7cc8ac942b306c94"},e("smoothly-table-row",{key:"35bb5238eca0e7cdbc877053a64f104815c62fb7"},e("smoothly-table-cell",{key:"bbaba511bd645d1801f6d8130ddbfaaca95128e1"},"Footer Cell"),e("smoothly-table-cell",{key:"3f4a385d7a39c5cdb02b43d397205d92d2857d24"},"Footer Cell")))))}};const pd=[{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"}];fd.style=bd;const gd='.sc-smoothly-table-expandable-cell-h{display:contents}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-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-table-expandable-cell-h>div.content.sc-smoothly-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-table-expandable-cell-h>div.content.sc-smoothly-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-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell::before{rotate:45deg}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-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-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-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-table-expandable-cell-h>div.sc-smoothly-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-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-table-expandable-cell{display:none}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-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-detail-border, 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-table-expandable-cell-h>div.detail.sc-smoothly-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 kd=gd;const vd=class{constructor(e){t(this,e);this.smoothlyTableExpandableCellChange=o(this,"smoothlyTableExpandableCellChange",7);this.smoothlyTableExpandableCellRegister=o(this,"smoothlyTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyTableExpandableCellChange.emit(this.open)}render(){var t;return e(s,{key:"d5b6720e262df19e8c0a465c046cc581e6b76d5c",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("div",{key:"a984cc509f2a176da5f00fc95410b3f9466ff962",onClick:()=>this.clickHandler(),class:"content"},e("slot",{key:"90fcd6fb228a36473d83bc1c46c4313cf983932c"})),e("div",{key:"7919ac6b9cf97e478f01029da270a510ca754d46",class:"detail"},e("slot",{key:"bbbd37aa4f47c109ff917ab32d15e22bd781b7be",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};vd.style=kd;const wd='.sc-smoothly-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-table-expandable-row-h.sc-smoothly-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-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-table-expandable-row-h:not([open])>div.detail.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-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-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-table-expandable-row-h>.sc-smoothly-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-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-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-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-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-detail-border, 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-table-expandable-row-h>div.sc-smoothly-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 xd=wd;const Sd=class{constructor(e){t(this,e);this.smoothlyTableExpandableRowChange=o(this,"smoothlyTableExpandableRowChange",7);this.open=false}clickHandler(t){this.div&&t.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyTableExpandableRowChange.emit(this.open)}render(){return e(s,{key:"5a03872a2612d5dc038fd10e1dd3992dd8449d52",onClick:t=>this.clickHandler(t)},e("slot",{key:"c3bf948bb8a2a616269d1b4f446b3ee6db0a1288"}),e("div",{key:"39e4adac2059bd257187980f3563e91aba38c8c0",class:"detail",ref:t=>this.div=t},e("slot",{key:"caf6ea84042033799aae986ff11a56d1db66d5ed",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Sd.style=xd;const Cd=".sc-smoothly-table-filler-row-h{grid-column:1 / -1}";const zd=Cd;const jd=class{constructor(e){t(this,e)}render(){return e("smoothly-table-row",{key:"92fd87de4da585ef58f350ab082895c4b958a156"},e("smoothly-table-cell",{key:"49989c2461d4c057c81c4e881ae4d10f8aed5f7c"},e("slot",{key:"c4be1ef40a3106786e2d37528584a515dfec2264"})))}};jd.style=zd;const Id=".sc-smoothly-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 _d=Id;const Td=class{constructor(e){t(this,e)}render(){return e(s,{key:"797b95aea26a73ad238c0b44b431db7c9f83127d"},e("slot",{key:"798ace60c404e7d2b7111188ea3ad7a575e86f89"}))}};Td.style=_d;const Ld=".sc-smoothly-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;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const Od=Ld;const Ad=class{constructor(e){t(this,e);this.onScroll=t=>{if(t.target instanceof HTMLElement){this.scrollParent=t.target;const e=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=e.top==o.top}};this.scrolled=undefined}connectedCallback(){var t;this.scrollParent=n.findParent(this.element);(t=this.scrollParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var t;(t=this.scrollParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.onScroll)}render(){return e(s,{key:"1d91e59f55039d50572b9b649aa6b48b2528052e",class:{scrolled:!!this.scrolled}},e("slot",{key:"c733cae9e99665e62441ae8723331849db2394ca"}))}get element(){return i(this)}};Ad.style=Od;const Md=".sc-smoothly-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-table-row-h:has(smoothly-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const Ed=Md;const Dd=class{constructor(e){t(this,e);this.expandableCells=new Set}smoothlyTableExpandableCellRegisterHandler(t){t.stopPropagation();this.expandableCells.add(t.target)}smoothlyTableExpandableCellChangeHandler(t){if(t.detail)for(const e of this.expandableCells)t.target!=e&&e.close()}render(){return e(s,{key:"710fb98629cc8100ea43178387a873aae6cd27b1"},e("slot",{key:"d9453ee6fab901e26500f3c423edbab1d0b479ed"}))}};Dd.style=Ed;const $d=".sc-smoothly-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group{display:contents}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group>*.sc-smoothly-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-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-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-table-row-group-h:not([open])>div.sc-smoothly-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-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-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover>div.sc-smoothly-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const Rd=$d;const Pd=class{constructor(e){t(this,e);this.smoothlyTableRowGroupChange=o(this,"smoothlyTableRowGroupChange",7);this.align=false;this.open=false}clickHandler(){this.open=!this.open;this.smoothlyTableRowGroupChange.emit(this.open)}render(){return e(s,{key:"234c5c04d4aa4ca110a3895227132669766abf22"},e("div",{key:"804e459a3aab21755bc7f3f6a3dfd9aafa4d13f4",onClick:()=>this.clickHandler()},e("div",{key:"29cd5e3f57b697745a9a2ac77dffd01b10e8bfaf"},e("slot",{key:"d3bd27d6147985e3f19b15e4e9a4b02b3da47399",name:"start"})),e("div",{key:"f6b0f6b8d3103bc85818380ab9c11b4f629d1c38"},e("slot",{key:"85c4fe961a4dbc4ea4db73392ba26e549c3f7f08",name:"end"}))),e("div",{key:"23547483350de1447bf35f4dc6d6c057cd153b93"},e("slot",{key:"f34b550b48eced496d6bdd92bf28f6bacda47ae7"})))}};Pd.style=Rd;const Fd=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}.sc-smoothly-tabs-h.hide-tabs.sc-smoothly-tabs-s>smoothly-tab>div:first-child{display:none}";const Hd=Fd;const Nd=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs="always";this.tabElements=[];this.selectedElement=undefined}onInputLoad(t){if(t.target instanceof HTMLElement&&!this.tabElements.includes(t.target)){this.tabElements=[...this.tabElements,t.target]}}openChanged(t){if(t.target!=this.element){t.stopPropagation();this.selectedElement=t.target;this.smoothlyTabOpen.emit(t.detail)}}onSelectedChange(t,e){if(e)e.open=false}render(){return e(s,{key:"3e2a5060c408fedf1e4a02d2ee64a12b361892ca",class:{"hide-tabs":this.tabs=="multiple"&&this.tabElements.length==1},style:{"--tabs":`${this.tabElements.length}`}},e("slot",{key:"bac26ec71ef6b24e54f527aa37ee1bf7fbf48567"}))}get element(){return i(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};Nd.style=Hd;const Yd=".sc-smoothly-tabs-demo-h{display:block}[hidden].sc-smoothly-tabs-demo-h{display:none}.sc-smoothly-tabs-demo-h>*.sc-smoothly-tabs-demo{margin:auto;max-width:1200px;width:100%;margin-block:5rem}.sc-smoothly-tabs-demo-h code.sc-smoothly-tabs-demo{color:rgb(var(--smoothly-medium-contrast));background-color:rgb(var(--smoothly-medium-color));padding-inline:0.25rem;border-radius:0.25rem}";const Ud=Yd;const Wd=class{constructor(e){t(this,e);this.extraTab=undefined}render(){return e(s,{key:"ec145eb00524cda91498766b9e9ae7ca715bc494"},e("smoothly-tabs",{key:"70c47302b686767345d82bf8f011847cf75efad4",tabs:"multiple"},e("smoothly-tab",{key:"83426f550c4539852669d3577b8573be151dad32",label:"Single Tab",open:true},e("strong",{key:"d89e2642d9087f71f46fffda20d3e8ef092c3ade"},"Single Tab content here.")," If only one tab is available setting ",e("code",{key:"8a1a80fafe9780cacfe835f6875f8a2763086d93"},"tabs")," to"," ",e("code",{key:"89aec94fd33241f34d7d34d465452c3dbfae9f0b"},'"multiple"')," will hide the tab navigation and display the single tab's content directly.",!this.extraTab&&e("div",{key:"efedaf74ed8f139dd4b00ee29d745b0ce00cc20a"},e("smoothly-button",{key:"c4a0b3d4fda1a72ad38a2f38afddfe010ddfd67a",color:"primary",onClick:()=>this.extraTab=true},"Click to add extra tab"))),this.extraTab&&e("smoothly-tab",{key:"239808e72e00bac39bd2c7684bce82dcad374765",label:"Extra tab"},"When there are more then one tab, the tab navigation will show.")),e("smoothly-tabs",{key:"f56e37f6c69e9a290cfa392626ee62a1e4a7ca68"},e("smoothly-tab",{key:"608024b94967df590fbd45fbb93b8c0bd28e1385",label:"test1",open:true},"Hello world!"),e("smoothly-tab",{key:"b7039d33a48fe68268d192d3a4486eb65e500ee2",label:"test2"},"this is a test message!"),e("smoothly-tab",{key:"412e749f9ed6625d7ba22ed9378c60ee52d7b70b",label:"test3"},"this is a test message again!")))}};Wd.style=Ud;const Bd=".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 Vd=Bd;const Gd=class{constructor(e){t(this,e);this.color=undefined}render(){return e(s,{key:"f0ac1160979284b3d8445e2d0eec65710221cf8d"},this.color,["tint","color","shade"].map((t=>e("smoothly-theme-color-variant",{title:`${this.color} ${t}`,color:this.color,variant:t}))))}};Gd.style=Vd;const Kd=".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 Zd=Kd;const qd=class{constructor(e){t(this,e);this.color=undefined;this.variant="color"}render(){return"Aa"}};qd.style=Zd;const Xd=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Jd=Xd;const Qd=class{constructor(e){t(this,e)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((t=>e("smoothly-theme-color",{color:t})))}};Qd.style=Jd;const tm=".sc-smoothly-theme-demo-h{display:flex;width:50%;margin:auto;flex-direction:column;gap:2em;margin-top: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 em=tm;const om=class{constructor(e){t(this,e)}render(){return e(s,{key:"60a6fdfc96dc0f5c716a5b879f04e8bfa7aa7955"},e("h2",{key:"800ac25c4a2aec861b21255420aa696d016f0dc4"},"Theme"),e("smoothly-theme-picker",{key:"081a0359c39e431bd92c336c5e7b4112027fe940"},e("smoothly-item",{key:"e1d332a1ace18688c085e2d3aacd6480d223300f",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),e("smoothly-item",{key:"d183e44eca2b257bcc7edf7b4491673ca871cd91",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),e("smoothly-item",{key:"f5677315f1803e5002974fb86b683cf4199abb74",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),e("smoothly-item",{key:"18ed8f9181da013d2d4de75393a86a22e567bb72",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),e("smoothly-item",{key:"480a5028c0aba00a5caa1cd9feb671857e22d5fb",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),e("smoothly-item",{key:"0686eca3757ea52987a4f8e9b70aec69e43437ea",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),e("smoothly-item",{key:"945161921608f664e3283a6bce008d59b8115282",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),e("smoothly-item",{key:"a881c566e1cb7ae4a01f0d617a13109643b05585",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),e("smoothly-item",{key:"3834fec43bc18e1368a1bc952c5ac83ffbfa4807",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),e("span",{key:"598ce87600fd7a66e1d2351311fd01773d6f8451"},e("smoothly-theme-colors",{key:"0b982bc4d771f98c37111782fa61056bb64a5bca"}),e("smoothly-theme-guide",{key:"f6ef76f863436b20b33653174ad9e98151e31a6f"})),e("smoothly-button",{key:"97743bff836025c1eef5d152b06aca450b585a5a",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"b26f5dcdd936b876cf430e2ab109458a405b1da9",type:"link",link:"/redirect"},"To /redirect"),e("smoothly-button",{key:"9850c727cd8c7d74187e3a99253e3b6637a02f62",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),e("smoothly-button",{key:"41efeb245770de7407eb14dacfd686ca2a691076",type:"link",link:"redirect/nested"},"To redirect nested"))}};om.style=em;const sm="";const im=sm;const am=class{constructor(e){t(this,e)}render(){return[e("smoothly-display",{key:"95949623ac00a28b6949a8d0cf53b3c808dca2b4"},"Tint is used as background to highlight, for example hovering an item in the select menu."),e("br",{key:"b08743d1cdc7ce73ee54cfbedb2336bd39e2291a"}),e("smoothly-display",{key:"8fa5a57c02fe12e0132c77f05a3ae9fefb569a53"},"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."),e("br",{key:"eedbe73d19d72c38175956118666d0dd4b3101d2"}),e("smoothly-display",{key:"570dec0a6a28b70f4a69e3e247607db386c57117"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),e("br",{key:"b0244a42b0230846843cabf9411c6ff1ca128440"}),e("smoothly-display",{key:"8e9705544b119e7fe073420ba31f49c5c32ab2a8"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),e("br",{key:"45ddb1ca086bae44b11c8124836afbc891c4875d"})]}};am.style=im;const nm="";const lm=nm;const rm=class{constructor(e){t(this,e);this.element="smoothly-css"}render(){return e(s,{key:"5a994ebf276306118d92bb477b5dcf04cffd0614"},e("smoothly-input-select",{key:"98ef8a2da6f5b00f60367874705a8836ba7176cf",name:"theme",looks:"border",onSmoothlyInput:t=>{const e=document.querySelector(`#${this.element}`);if(e instanceof HTMLLinkElement&&typeof t.detail.theme=="string")e.href=t.detail.theme}},e("label",{key:"de252bb3867e0f59efb66136b6fc7850805bdfea",slot:"label"},"Select theme"),e("slot",{key:"f30571604c2c60256ef3f4e4ee57fbf394d7af63"})))}};rm.style=lm;const cm=".sc-smoothly-toggle-switch-h{display:block}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;align-items:center;padding-inline:0;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-color))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-color-tint))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{display:flex;justify-content:flex-start;align-items:center;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));transition:100ms ease-in-out}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{fill:rgb(var(--smoothly-success-contrast));stroke:rgb(var(--smoothly-success-contrast))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{background-color:rgb(var(--smoothly-success-color))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-success-tint))}[selected].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{transform:translateX(100%)}[size=tiny].sc-smoothly-toggle-switch-h{--height:1.25rem}[size=small].sc-smoothly-toggle-switch-h{--height:1.5rem}[size=default].sc-smoothly-toggle-switch-h{--height:2rem}[size=large].sc-smoothly-toggle-switch-h{--height:2.5rem}.sc-smoothly-toggle-switch-h{height:var(--height);width:calc(var(--height) * 2)}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{--smoothly-icon-size:var(--height)}";const hm=cm;const dm=class{constructor(e){t(this,e);this.smoothlyToggleSwitchChange=o(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color="medium";this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return e(s,{key:"d8948989b99fab7341e46cbc4398c6889f41602d"},e("button",{key:"e9dd959f7573c9da2c0fd6279304b239ad06b9fe",type:"button",disabled:this.disabled,onClick:()=>this.handleClick()},e("smoothly-icon",{key:"6be530b9951c2ddc8806d24adcd3f76602919e46",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};dm.style=hm;const mm=".sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo{display:grid;grid-template-columns:repeat(5, max-content);gap:1em}.sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo>span.sc-smoothly-toggle-switch-demo>p.sc-smoothly-toggle-switch-demo{margin:0}";const um=mm;const ym=class{constructor(e){t(this,e)}render(){return e(s,{key:"7244c0775661c5251de41f4cb585558e982e9cdc"},e("h4",{key:"c108f6c96f41a583cecbfa4f802e09bf5b29bfa6"},"Toggle switches"),e("div",{key:"d2392feab387636df6b679d66193a1e653730b9c"},e("p",{key:"3a7183bc8158e48e87f85e4f6cdc9dc4ad73d439"},"Checkmark"),e("span",{key:"edd3411d6f0b9fb5f326d50c3ba5e65d7c9d3f46"},e("p",{key:"3fb9bb4ecb81e5d50e123f2202a391ebebd8bcea"},"Tiny"),e("smoothly-toggle-switch",{key:"40c66f8203c5d5334cb1e14f4c37df29d9cf0485",disabled:false,size:"tiny"})),e("span",{key:"4391169b01717b9afd58f80528ce6f07a2f13090"},e("p",{key:"dc9f64b2bd7275033e17d6b9fb7065c6bb9b94df"},"Small"),e("smoothly-toggle-switch",{key:"ed4899bc0923bcdbfbbdbdb9b6a2cc089bd364de",disabled:false,size:"small"})),e("span",{key:"d31a484739a59c7fcce0edd573e4291efeca44e4"},e("p",{key:"4e1497c248ab56f2c3bc3576686b2ddd7bb7a782"},"Standard"),e("smoothly-toggle-switch",{key:"d64bcfb068ad854639ecccc8a7e697650c54521f",disabled:false})),e("span",{key:"19a06462de61ee2836f1fa30114e46f576b6edf4"},e("p",{key:"ae25ea9d14593a21ae90f5badb1249725dd3ff78"},"Large"),e("smoothly-toggle-switch",{key:"09d47e0964233a311f5bf4cb8b9c0dbcd04ef958",disabled:false,size:"large"})),e("p",{key:"34095ddde101a0d5ffd98589cf526f4b57caf572"},"Colors checkmark"),e("span",{key:"76572774a4e9e14b384c4b40444ab04f46b833a9"},e("p",{key:"2e5ad34f22b142fc19586f43a778851f98dfda8c"},"Danger"),e("smoothly-toggle-switch",{key:"cf026c289dbfcf230049290516e9ab4f5274ba45",color:"danger",disabled:false,size:"small"})),e("span",{key:"cd1e858211f54ba90168398f8dc6dc9433778815"},e("p",{key:"b2b51c00108c1ae9396eb9b1e5aeee9223faecde"},"Primary color"),e("smoothly-toggle-switch",{key:"66fbbd81fe1e7ea9e4bdd52c374e1644d634d195",color:"primary",disabled:false,size:"small"})),e("span",{key:"a6de47e35e6ff653a0efa7ca7b7245abb44e32ac"},e("p",{key:"89ab7f161e45ea01edee1fa4c9eb96332fd18043"},"Secondary color"),e("smoothly-toggle-switch",{key:"82f993af3797d0754e0cad6a8374c78d98ca058c",color:"secondary",disabled:false,size:"small"})),e("p",{key:"dfce3bdd11950ef7c97eb423f9bc08346e0e1cfc"}),e("p",{key:"25ebe0b63abaeb37895a8286ec5a4203d665da99"},"Colors no checkmark"),e("span",{key:"111622bbb1ea6d5efd300b515a066d19d6dd9dbd"},e("p",{key:"d3f80fe3a765aad09ca735795ccd1f66e459bf44"},"Danger"),e("smoothly-toggle-switch",{key:"b19cb7d3f582e0423442adde9b21218e73d45837",checkmark:false,color:"danger",disabled:false,size:"small"})),e("span",{key:"dfb1fe67e596f44dde4c07494011dc6b8009a961"},e("p",{key:"a0f15473ffc3f2d33dee7726c0493ddd192fa39e"},"Primary color"),e("smoothly-toggle-switch",{key:"1e7cbda870f2816244dac14c7c65a99367feddb3",checkmark:false,color:"primary",disabled:false,size:"small"})),e("span",{key:"4fa92a8eee14883f9fedcf543ae87cbda4de8922"},e("p",{key:"b69a2307ad3c726dc6f602788c490fe81e0299e0"},"Secondary color"),e("smoothly-toggle-switch",{key:"d1dc476caab4529bb728338d7d83e8dc7f7b6bca",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};ym.style=um;const bm=".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 fm=bm;const pm=class{constructor(e){t(this,e);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(t){this.trigger.emit({name:this.name,value:this.value});t.stopPropagation();t.preventDefault()}render(){let t;switch(this.type){case"link":t=this.disabled?e("slot",null):e("a",{onClick:t=>this.onClick(t)},e("slot",null));break;case"button":t=e("button",{key:"6153b3befa2edf972b4fe3bf0844d3a6a456e9cc",disabled:this.disabled,name:this.name},e("slot",{key:"2920b8301a6e36851e52b2b7884338657a326aff"}));break}return t}};pm.style=fm;export{F as smoothly_app,H as smoothly_app_demo,Ft as smoothly_app_room,Yt as smoothly_back_to_top,Bt as smoothly_burger,Kt as smoothly_button,Xt as smoothly_button_confirm,te as smoothly_button_demo,le as smoothly_calendar,he as smoothly_dialog,ue as smoothly_dialog_demo,ao as smoothly_display,no as smoothly_display_demo,ro as smoothly_display_demo_json,yo as smoothly_display_json,po as smoothly_display_json_object,vo as smoothly_display_json_primitive,So as smoothly_display_json_record_key,il as smoothly_filter,ll as smoothly_filter_field,hl as smoothly_filter_input,ul as smoothly_filter_select,fl as smoothly_filter_toggle,ur as smoothly_form,fr as smoothly_form_demo,pr as smoothly_form_demo_all,gr as smoothly_form_demo_card,kr as smoothly_form_demo_controlled,xr as smoothly_form_demo_date,zr as smoothly_form_demo_date_range,jr as smoothly_form_demo_login,Tr as smoothly_form_demo_pet,Lr as smoothly_form_demo_prices,Mr as smoothly_form_demo_schedule,Er as smoothly_form_demo_transparent,Pr as smoothly_form_demo_typed,Nr as smoothly_frame,Wr as smoothly_icon,Gr as smoothly_icon_demo,tc as smoothly_input,sc as smoothly_input_checkbox,nc as smoothly_input_clear,cc as smoothly_input_color,hc as smoothly_input_color_demo,uc as smoothly_input_date,fc as smoothly_input_date_range,kc as smoothly_input_date_time,xc as smoothly_input_demo,zc as smoothly_input_demo_standard,_c as smoothly_input_edit,Oc as smoothly_input_file,Ec as smoothly_input_month,Rc as smoothly_input_price_demo,Hc as smoothly_input_radio,Uc as smoothly_input_radio_item,Vc as smoothly_input_range,Gc as smoothly_input_range_demo,qc as smoothly_input_reset,th as smoothly_input_select,sh as smoothly_input_submit,nh as smoothly_item,ch as smoothly_label,mh as smoothly_lazy,uh as smoothly_load_more,fh as smoothly_modal,kh as smoothly_notification,xh as smoothly_notifier,zh as smoothly_spinner,_h as smoothly_summary,Oh as smoothly_tab,Eh as smoothly_table,Rh as smoothly_table_body,Hh as smoothly_table_cell,Uh as smoothly_table_demo,Vh as smoothly_table_demo_colspan,Zh as smoothly_table_demo_filler_row,od as smoothly_table_demo_filtered,nd as smoothly_table_demo_group,hd as smoothly_table_demo_nested,ud as smoothly_table_demo_nested_inner,fd as smoothly_table_demo_simple,vd as smoothly_table_expandable_cell,Sd as smoothly_table_expandable_row,jd as smoothly_table_filler_row,Td as smoothly_table_foot,Ad as smoothly_table_head,Dd as smoothly_table_row,Pd as smoothly_table_row_group,Nd as smoothly_tabs,Wd as smoothly_tabs_demo,Gd as smoothly_theme_color,qd as smoothly_theme_color_variant,Qd as smoothly_theme_colors,om as smoothly_theme_demo,am as smoothly_theme_guide,rm as smoothly_theme_picker,dm as smoothly_toggle_switch,ym as smoothly_toggle_switch_demo,pm as smoothly_trigger};
|
|
2
|
+
//# sourceMappingURL=p-bf1fb323.entry.js.map
|