smoothly 1.2.1-alpha.61 → 1.2.1-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-app_99.cjs.entry.js → smoothly-app_98.cjs.entry.js} +302 -324
- package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -0
- 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/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/burger/style.css +5 -5
- package/dist/collection/components/button/demo/index.js +2 -2
- package/dist/collection/components/button/demo/index.js.map +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/demo/index.js.map +1 -1
- package/dist/collection/components/icon/index.js +6 -7
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon/style.css +10 -11
- 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/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/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/toggle-switch/style.css +12 -20
- 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-e02f5eef.js → p-0156d1ac.js} +14 -14
- package/dist/components/{p-e02f5eef.js.map → p-0156d1ac.js.map} +1 -1
- package/dist/components/{p-42f2126d.js → p-08ff9613.js} +4 -4
- package/dist/components/{p-42f2126d.js.map → p-08ff9613.js.map} +1 -1
- package/dist/components/{p-e966bb8a.js → p-09f490eb.js} +4 -4
- package/dist/components/{p-e966bb8a.js.map → p-09f490eb.js.map} +1 -1
- package/dist/components/{p-8f0f82cd.js → p-0a200b85.js} +4 -4
- package/dist/components/{p-8f0f82cd.js.map → p-0a200b85.js.map} +1 -1
- package/dist/components/{p-23d9ecf6.js → p-0d09457c.js} +25 -25
- package/dist/components/{p-23d9ecf6.js.map → p-0d09457c.js.map} +1 -1
- package/dist/components/{p-7448315b.js → p-0d597c0f.js} +15 -15
- package/dist/components/p-0d597c0f.js.map +1 -0
- package/dist/components/{p-bfad759f.js → p-0ddbb10b.js} +11 -11
- package/dist/components/{p-bfad759f.js.map → p-0ddbb10b.js.map} +1 -1
- package/dist/components/{p-41400859.js → p-11e5cabe.js} +37 -37
- package/dist/components/{p-41400859.js.map → p-11e5cabe.js.map} +1 -1
- package/dist/components/{p-705b4afe.js → p-1512ddfa.js} +30 -30
- package/dist/components/{p-705b4afe.js.map → p-1512ddfa.js.map} +1 -1
- package/dist/components/{p-637d2964.js → p-188fb617.js} +4 -4
- package/dist/components/{p-637d2964.js.map → p-188fb617.js.map} +1 -1
- package/dist/components/{p-95abdb03.js → p-189a3517.js} +8 -8
- package/dist/components/{p-95abdb03.js.map → p-189a3517.js.map} +1 -1
- package/dist/components/{p-49f90785.js → p-1cc8de56.js} +8 -8
- package/dist/components/{p-49f90785.js.map → p-1cc8de56.js.map} +1 -1
- package/dist/components/{p-32acfe2f.js → p-1de0fb0e.js} +2 -2
- package/dist/components/{p-32acfe2f.js.map → p-1de0fb0e.js.map} +1 -1
- package/dist/components/{p-90cfcbfc.js → p-1fe82c92.js} +14 -14
- package/dist/components/{p-90cfcbfc.js.map → p-1fe82c92.js.map} +1 -1
- package/dist/components/{p-2020cb82.js → p-21601376.js} +2 -2
- package/dist/components/{p-2020cb82.js.map → p-21601376.js.map} +1 -1
- package/dist/components/{p-461ffea2.js → p-22a5c35b.js} +7 -7
- package/dist/components/{p-461ffea2.js.map → p-22a5c35b.js.map} +1 -1
- package/dist/components/{p-eafc7555.js → p-24934ba0.js} +4 -4
- package/dist/components/p-24934ba0.js.map +1 -0
- package/dist/components/{p-7add6ea0.js → p-27fead40.js} +14 -14
- package/dist/components/{p-7add6ea0.js.map → p-27fead40.js.map} +1 -1
- package/dist/components/{p-e15e5a5d.js → p-2b457d53.js} +2 -2
- package/dist/components/{p-e15e5a5d.js.map → p-2b457d53.js.map} +1 -1
- package/dist/components/{p-fe36713e.js → p-3091ab20.js} +2 -2
- package/dist/components/{p-fe36713e.js.map → p-3091ab20.js.map} +1 -1
- package/dist/components/{p-bc324b5e.js → p-3493b852.js} +2 -2
- package/dist/components/{p-bc324b5e.js.map → p-3493b852.js.map} +1 -1
- package/dist/components/{p-a820e0e8.js → p-37e8e0b4.js} +6 -6
- package/dist/components/{p-a820e0e8.js.map → p-37e8e0b4.js.map} +1 -1
- package/dist/components/{p-ba58a227.js → p-38ff4ddd.js} +5 -5
- package/dist/components/{p-ba58a227.js.map → p-38ff4ddd.js.map} +1 -1
- package/dist/components/p-3c1569b7.js +176 -0
- package/dist/components/{p-94cb3bb9.js.map → p-3c1569b7.js.map} +1 -1
- package/dist/components/{p-305c8221.js → p-3cdc6c8b.js} +13 -13
- package/dist/components/{p-305c8221.js.map → p-3cdc6c8b.js.map} +1 -1
- package/dist/components/{p-90f56544.js → p-3ef90e87.js} +15 -15
- package/dist/components/{p-90f56544.js.map → p-3ef90e87.js.map} +1 -1
- package/dist/components/{p-2137d036.js → p-41441353.js} +4 -4
- package/dist/components/{p-2137d036.js.map → p-41441353.js.map} +1 -1
- package/dist/components/p-43bad1c0.js +175 -0
- package/dist/components/{p-59f81a89.js.map → p-43bad1c0.js.map} +1 -1
- package/dist/components/{p-96841986.js → p-479909bd.js} +7 -7
- package/dist/components/{p-96841986.js.map → p-479909bd.js.map} +1 -1
- package/dist/components/{p-f0281d58.js → p-47e5df73.js} +3 -3
- package/dist/components/{p-f0281d58.js.map → p-47e5df73.js.map} +1 -1
- package/dist/components/{p-ab4db085.js → p-49d437f4.js} +4 -4
- package/dist/components/{p-ab4db085.js.map → p-49d437f4.js.map} +1 -1
- package/dist/components/{p-bc671400.js → p-52d1d5a1.js} +6 -6
- package/dist/components/{p-bc671400.js.map → p-52d1d5a1.js.map} +1 -1
- package/dist/components/{p-24488303.js → p-5c67d11d.js} +4 -4
- package/dist/components/{p-24488303.js.map → p-5c67d11d.js.map} +1 -1
- package/dist/components/p-5e2b1c67.js +57 -0
- package/dist/components/p-5e2b1c67.js.map +1 -0
- package/dist/components/{p-be11a354.js → p-619819ae.js} +4 -4
- package/dist/components/{p-be11a354.js.map → p-619819ae.js.map} +1 -1
- package/dist/components/{p-a7980d2c.js → p-62f513b3.js} +3 -3
- package/dist/components/{p-a7980d2c.js.map → p-62f513b3.js.map} +1 -1
- package/dist/components/{p-68b77df6.js → p-65801f7e.js} +5 -5
- package/dist/components/{p-68b77df6.js.map → p-65801f7e.js.map} +1 -1
- package/dist/components/{p-bae20465.js → p-67be9571.js} +3 -3
- package/dist/components/{p-bae20465.js.map → p-67be9571.js.map} +1 -1
- package/dist/components/{p-291b57ee.js → p-68f97107.js} +13 -13
- package/dist/components/{p-291b57ee.js.map → p-68f97107.js.map} +1 -1
- package/dist/components/{p-21ba8cd0.js → p-6abf2d7c.js} +13 -13
- package/dist/components/{p-21ba8cd0.js.map → p-6abf2d7c.js.map} +1 -1
- package/dist/components/{p-a698a6b7.js → p-6e6d0815.js} +5 -5
- package/dist/components/{p-a698a6b7.js.map → p-6e6d0815.js.map} +1 -1
- package/dist/components/p-75cf720d.js +123 -0
- package/dist/components/{p-58be554d.js.map → p-75cf720d.js.map} +1 -1
- package/dist/components/{p-2193cd07.js → p-76047d98.js} +2 -2
- package/dist/components/{p-2193cd07.js.map → p-76047d98.js.map} +1 -1
- package/dist/components/{p-433d4084.js → p-7c5d155e.js} +3 -3
- package/dist/components/{p-433d4084.js.map → p-7c5d155e.js.map} +1 -1
- package/dist/components/{p-04d6a4e3.js → p-7ea55b4d.js} +3 -3
- package/dist/components/{p-04d6a4e3.js.map → p-7ea55b4d.js.map} +1 -1
- package/dist/components/{p-3fbd90ff.js → p-81e4b071.js} +15 -15
- package/dist/components/{p-3fbd90ff.js.map → p-81e4b071.js.map} +1 -1
- package/dist/components/{p-cf4e20eb.js → p-85c2a76c.js} +3 -3
- package/dist/components/{p-cf4e20eb.js.map → p-85c2a76c.js.map} +1 -1
- package/dist/components/{p-259613c8.js → p-8789a504.js} +2 -2
- package/dist/components/{p-259613c8.js.map → p-8789a504.js.map} +1 -1
- package/dist/components/{p-7d3a1edc.js → p-8abb7216.js} +5 -5
- package/dist/components/{p-7d3a1edc.js.map → p-8abb7216.js.map} +1 -1
- package/dist/components/{p-bc67259a.js → p-8cd54408.js} +7 -7
- package/dist/components/{p-bc67259a.js.map → p-8cd54408.js.map} +1 -1
- package/dist/components/{p-6963d21b.js → p-8d3eea77.js} +2 -2
- package/dist/components/{p-6963d21b.js.map → p-8d3eea77.js.map} +1 -1
- package/dist/components/{p-271384e5.js → p-91ab8d87.js} +2 -2
- package/dist/components/{p-271384e5.js.map → p-91ab8d87.js.map} +1 -1
- package/dist/components/{p-db95d66d.js → p-92144b1e.js} +5 -5
- package/dist/components/{p-db95d66d.js.map → p-92144b1e.js.map} +1 -1
- package/dist/components/{p-d305739c.js → p-9832d3b5.js} +3 -3
- package/dist/components/{p-d305739c.js.map → p-9832d3b5.js.map} +1 -1
- package/dist/components/{p-04a36eba.js → p-994fd1b4.js} +4 -4
- package/dist/components/{p-04a36eba.js.map → p-994fd1b4.js.map} +1 -1
- package/dist/components/{p-48c1e6f9.js → p-9d7780cb.js} +3 -3
- package/dist/components/{p-48c1e6f9.js.map → p-9d7780cb.js.map} +1 -1
- package/dist/components/{p-256804de.js → p-9e2029f7.js} +13 -13
- package/dist/components/{p-256804de.js.map → p-9e2029f7.js.map} +1 -1
- package/dist/components/{p-2b3160e5.js → p-a10dfe73.js} +2 -2
- package/dist/components/{p-2b3160e5.js.map → p-a10dfe73.js.map} +1 -1
- package/dist/components/{p-dd071666.js → p-a12494c3.js} +2 -2
- package/dist/components/{p-dd071666.js.map → p-a12494c3.js.map} +1 -1
- package/dist/components/p-a129dc60.js +73 -0
- package/dist/components/p-a129dc60.js.map +1 -0
- package/dist/components/p-a141fe7c.js +238 -0
- package/dist/components/{p-c57b7011.js.map → p-a141fe7c.js.map} +1 -1
- package/dist/components/{p-0f1adb3d.js → p-a4d10377.js} +2 -2
- package/dist/components/{p-0f1adb3d.js.map → p-a4d10377.js.map} +1 -1
- package/dist/components/{p-bf12e671.js → p-a669dad9.js} +11 -11
- package/dist/components/{p-bf12e671.js.map → p-a669dad9.js.map} +1 -1
- package/dist/components/{p-2faaedc8.js → p-ab1e1709.js} +7 -7
- package/dist/components/{p-2faaedc8.js.map → p-ab1e1709.js.map} +1 -1
- package/dist/components/{p-2bc57b0f.js → p-ab2e4633.js} +8 -8
- package/dist/components/{p-2bc57b0f.js.map → p-ab2e4633.js.map} +1 -1
- package/dist/components/{p-e12d35bb.js → p-abdbd635.js} +4 -4
- package/dist/components/{p-e12d35bb.js.map → p-abdbd635.js.map} +1 -1
- package/dist/components/p-abf172db.js +45 -0
- package/dist/components/{p-73e309ae.js.map → p-abf172db.js.map} +1 -1
- package/dist/components/{p-438a59fc.js → p-b4db4967.js} +14 -14
- package/dist/components/{p-438a59fc.js.map → p-b4db4967.js.map} +1 -1
- package/dist/components/{p-b92f7f7f.js → p-b84d424b.js} +12 -12
- package/dist/components/{p-b92f7f7f.js.map → p-b84d424b.js.map} +1 -1
- package/dist/components/{p-121a3877.js → p-b89242b5.js} +3 -3
- package/dist/components/p-b89242b5.js.map +1 -0
- package/dist/components/{p-b22a5b41.js → p-b9872a14.js} +2 -2
- package/dist/components/{p-b22a5b41.js.map → p-b9872a14.js.map} +1 -1
- package/dist/components/{p-0a6f27a2.js → p-b99e9582.js} +2 -2
- package/dist/components/{p-0a6f27a2.js.map → p-b99e9582.js.map} +1 -1
- package/dist/components/{p-cdeece09.js → p-bd00e096.js} +2 -2
- package/dist/components/{p-cdeece09.js.map → p-bd00e096.js.map} +1 -1
- package/dist/components/{p-5cea42bb.js → p-bd902bf1.js} +2 -2
- package/dist/components/{p-5cea42bb.js.map → p-bd902bf1.js.map} +1 -1
- package/dist/components/{p-fba7e056.js → p-c9904619.js} +4 -4
- package/dist/components/{p-fba7e056.js.map → p-c9904619.js.map} +1 -1
- package/dist/components/{p-941cca12.js → p-cbffcc9d.js} +9 -9
- package/dist/components/{p-941cca12.js.map → p-cbffcc9d.js.map} +1 -1
- package/dist/components/{p-570e8262.js → p-cce0e89e.js} +3 -3
- package/dist/components/{p-570e8262.js.map → p-cce0e89e.js.map} +1 -1
- package/dist/components/{p-7df6aaed.js → p-d3888e8f.js} +3 -3
- package/dist/components/{p-7df6aaed.js.map → p-d3888e8f.js.map} +1 -1
- package/dist/components/{p-6aa25ab9.js → p-d3bc4725.js} +15 -15
- package/dist/components/{p-6aa25ab9.js.map → p-d3bc4725.js.map} +1 -1
- package/dist/components/{p-ebe0f3b2.js → p-d4f2eec1.js} +4 -4
- package/dist/components/{p-ebe0f3b2.js.map → p-d4f2eec1.js.map} +1 -1
- package/dist/components/{p-853367ff.js → p-d77cf57f.js} +7 -7
- package/dist/components/{p-853367ff.js.map → p-d77cf57f.js.map} +1 -1
- package/dist/components/{p-b4bb3e74.js → p-d9989605.js} +2 -2
- package/dist/components/{p-b4bb3e74.js.map → p-d9989605.js.map} +1 -1
- package/dist/components/{p-5867f2a1.js → p-d9d1453e.js} +2 -2
- package/dist/components/{p-5867f2a1.js.map → p-d9d1453e.js.map} +1 -1
- package/dist/components/{p-d69de688.js → p-e28192a5.js} +3 -3
- package/dist/components/{p-d69de688.js.map → p-e28192a5.js.map} +1 -1
- package/dist/components/{p-65b429d4.js → p-e55b30b0.js} +15 -15
- package/dist/components/{p-65b429d4.js.map → p-e55b30b0.js.map} +1 -1
- package/dist/components/{p-90642fb7.js → p-ea7e5a85.js} +6 -6
- package/dist/components/{p-90642fb7.js.map → p-ea7e5a85.js.map} +1 -1
- package/dist/components/{p-6ea4a4b6.js → p-ecb1c83a.js} +43 -43
- package/dist/components/{p-6ea4a4b6.js.map → p-ecb1c83a.js.map} +1 -1
- package/dist/components/{p-8918ad9d.js → p-ecbbfbcd.js} +4 -4
- package/dist/components/{p-8918ad9d.js.map → p-ecbbfbcd.js.map} +1 -1
- package/dist/components/{p-bb9a9d24.js → p-f7f92307.js} +7 -7
- package/dist/components/{p-bb9a9d24.js.map → p-f7f92307.js.map} +1 -1
- package/dist/components/{p-e1a977af.js → p-f89d6ab1.js} +14 -14
- package/dist/components/{p-e1a977af.js.map → p-f89d6ab1.js.map} +1 -1
- package/dist/components/{p-a398630f.js → p-fa1bb361.js} +10 -10
- package/dist/components/{p-a398630f.js.map → p-fa1bb361.js.map} +1 -1
- package/dist/components/{p-6e648f09.js → p-fa2bcda4.js} +9 -9
- package/dist/components/{p-6e648f09.js.map → p-fa2bcda4.js.map} +1 -1
- package/dist/components/{p-617e63f4.js → p-fc9f4cae.js} +28 -28
- package/dist/components/{p-617e63f4.js.map → p-fc9f4cae.js.map} +1 -1
- package/dist/components/{p-04f778b7.js → p-fe705776.js} +13 -13
- package/dist/components/{p-04f778b7.js.map → p-fe705776.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +191 -197
- 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-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 +28 -28
- 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.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/loader.js +1 -1
- package/dist/esm/{smoothly-app_99.entry.js → smoothly-app_98.entry.js} +303 -324
- package/dist/esm/smoothly-app_98.entry.js.map +1 -0
- 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/esm/smoothly.js +1 -1
- package/dist/smoothly/{p-37d77190.entry.js → p-018e3f3c.entry.js} +2 -2
- package/dist/smoothly/{p-aef275e0.entry.js → p-0c10da7c.entry.js} +2 -2
- package/dist/smoothly/{p-534c56da.entry.js → p-2f60a07e.entry.js} +2 -2
- package/dist/smoothly/{p-8a7f2913.entry.js → p-69c6102d.entry.js} +2 -2
- package/dist/smoothly/{p-faea4d1c.entry.js → p-8a1d7506.entry.js} +2 -2
- package/dist/smoothly/p-b803a3c2.entry.js +2 -0
- package/dist/smoothly/p-b803a3c2.entry.js.map +1 -0
- package/dist/smoothly/{p-963b72df.entry.js → p-cdb8913e.entry.js} +2 -2
- package/dist/smoothly/p-d3024318.entry.js +2 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/icon/demo/index.d.ts +1 -1
- package/dist/types/components/icon/index.d.ts +1 -1
- package/dist/types/components.d.ts +2 -25
- package/package.json +1 -1
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +0 -1
- package/dist/collection/components/toggle/index.js +0 -129
- package/dist/collection/components/toggle/index.js.map +0 -1
- package/dist/collection/components/toggle/style.css +0 -36
- package/dist/components/p-121a3877.js.map +0 -1
- package/dist/components/p-310690f3.js +0 -47
- package/dist/components/p-310690f3.js.map +0 -1
- package/dist/components/p-58be554d.js +0 -123
- package/dist/components/p-59f81a89.js +0 -175
- package/dist/components/p-73e309ae.js +0 -45
- package/dist/components/p-7448315b.js.map +0 -1
- package/dist/components/p-94cb3bb9.js +0 -176
- package/dist/components/p-9e758101.js +0 -57
- package/dist/components/p-9e758101.js.map +0 -1
- package/dist/components/p-bad4348e.js +0 -79
- package/dist/components/p-bad4348e.js.map +0 -1
- package/dist/components/p-c57b7011.js +0 -238
- package/dist/components/p-eafc7555.js.map +0 -1
- package/dist/components/smoothly-toggle.d.ts +0 -11
- package/dist/components/smoothly-toggle.js +0 -8
- package/dist/components/smoothly-toggle.js.map +0 -1
- package/dist/esm/smoothly-app_99.entry.js.map +0 -1
- package/dist/smoothly/p-0d394534.entry.js +0 -2
- package/dist/smoothly/p-0d394534.entry.js.map +0 -1
- package/dist/smoothly/p-cbcf6951.entry.js +0 -2
- package/dist/types/components/toggle/index.d.ts +0 -9
- /package/dist/smoothly/{p-37d77190.entry.js.map → p-018e3f3c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-aef275e0.entry.js.map → p-0c10da7c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-534c56da.entry.js.map → p-2f60a07e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-8a7f2913.entry.js.map → p-69c6102d.entry.js.map} +0 -0
- /package/dist/smoothly/{p-faea4d1c.entry.js.map → p-8a1d7506.entry.js.map} +0 -0
- /package/dist/smoothly/{p-963b72df.entry.js.map → p-cdb8913e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-cbcf6951.entry.js.map → p-d3024318.entry.js.map} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
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}from"./p-5870d1ad.js";import{B as f,S as p}from"./p-cc5143d2.js";import{T as g,L as k,a as v,D as w,c as x,d as S,C,o as z,s as j,b as _,e as I,n as T,A as O}from"./p-34d144e8.js";import{N as L}from"./p-ef01331e.js";import{f as A}from"./p-2257be8c.js";import"./p-ef377b79.js";function M(t){return new E(t??"any")}class E extends g{class="any";is=t=>t!=undefined}function D(){const t=navigator.language;return k.is(t)?t:v.is(t)?k.toLocale(t):undefined}const $='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 R=$;const P=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"]}}};P.style=R;const F=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-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},e("smoothly-icon",{key:"1a9947b787c40e5d5b12c8477f1c4ffe393e0474",toolTip:"Log out",name:"log-out",size:"medium"})),e("smoothly-app-room",{key:"9653a86cd2f346ffc301960432f8eeaf690e0e70",path:"/root",label:"root"},e("smoothly-theme-demo",{key:"fd749cb147c01fb958ed096d077a029de1f26697"})),e("smoothly-app-room",{key:"727ba15cef2a69ab89c28f552d44990a6768dae6",path:"/links",label:"Links"},e("smoothly-input",{key:"44b3a95f3ef5c88763f4615198361660756066c6",type:"text"},"Default"),e("div",{key:"ec9caa80e9960bcaa73944459f6f04bd5293c67d",style:{padding:"1em",maxWidth:"12em"}},e("smoothly-button",{key:"1763ca643449adf56a5709b716adb8f2a9af898c",fill:"solid",color:"danger",link:"https://google.com"},"open"),e("smoothly-button",{key:"090a3ef85119ac1fd24e96971077d386e4b431eb",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:"075b6d63e37e741003b83a4ed5a0852f5bdb32ea",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"67a4e3426af4c0195af3958534ebe696e79d7f64",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"469b300005825ea47e9ff2b6dd1546c1f240d320",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),e("smoothly-app-room",{key:"fa597eed63894a2b79230662218b4b4bb0a4123e",path:"/form",label:"Form"},e("smoothly-form-demo",{key:"c3c3fc18571c6c7749ebe336c101b3c6958c6ce5"})),e("smoothly-app-room",{key:"e74f975d2821661b1252a8d39abce539474b91d6",path:"/input",label:"Input"},e("smoothly-input-demo",{key:"2622b3979883e8b22ee24549e088235c4def37f7"})),e("smoothly-app-room",{key:"281e375aa7899aca4a72b1f28e5c35dba5afe47b",path:"/button",label:"Button"},e("smoothly-button-demo",{key:"1aa500d67a2db7debedcd51a1dab5540b7e76839"})),e("smoothly-app-room",{key:"52cca01be8d244ba27a9a0de84a7e9f6b38de862",path:"/dialog",label:"Dialog"},e("smoothly-dialog-demo",{key:"2ead6d7fdbccfac18eaca281324a022bb2476683"})),e("smoothly-app-room",{key:"1293f71f581304e67b7b23fd3ef7ea5b5358672a",path:"/display",label:"Display",icon:"eye-outline"},e("smoothly-display-demo",{key:"081a6770103ae7e31f862d2431932a23e3c44883"})),e("smoothly-app-room",{key:"edf9fc7b7c778e319f7072a06604962e9a887d45",path:"/table",label:"Table"},e("smoothly-table-demo",{key:"d4fd3e790dbff9761b7900611870c4de8ba3463b"})),e("smoothly-app-room",{key:"def6a10fe0cb4a2bb2c660a7a08d92f66bdefaf7",path:"/tabs",label:"Tabs",slot:"nav-end"},e("smoothly-tabs-demo",{key:"a612be377600630739c788f3e76978653b5750fd"})),e("smoothly-app-room",{key:"4b37f6e8cc32b66eed31354be28c8979e5a44872",path:"/icon",label:"Icon",content:e("smoothly-icon-demo",null),slot:"nav-end"}),e("smoothly-app-room",{key:"fc40658c71e321e7cd65fc4c0583a2799809cca3",path:"/redirect",label:"Redirect",slot:"nav-end"},e("smoothly-button",{key:"b4475ca298c2fb6598dd75c4a16a0bd47c234fa9",type:"link",link:"/input"},"To input"),e("smoothly-button",{key:"402887f2f0c5477ce46105be52197f5073a2d5c6",type:"link",link:"../button"},"To button"),e("smoothly-button",{key:"cf2d2d8c4936eecc243cf121f5d40bd94d1006f6",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),e("smoothly-button",{key:"e8354e2f81be7ec324ae734784022acdb02162cc",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"62411c9f8b6d9bb88ebef3fe531e912d2b27f97e",type:"link",link:"nested"},"To redirect nested, relative path")),e("smoothly-app-room",{key:"6b7fe4565b60a0f76c36ade149536daca1eff5b0",path:"/hidden"},e("p",{key:"c87cebb277d5463d07165e3fb7b8068dc317735e"},"hello world!")),e("smoothly-app-room",{key:"9a06e5a59ff5ff8db9b465826653f26f477ebdb2",path:"/redirect/nested"},"this is a nested room"))}};var H=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 N=/[$_\p{ID_Start}]/u;var Y=/[$_\u200C\u200D\p{ID_Continue}]/u;var U=".*";function W(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function B(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&&N.test(o)||i!==s+1&&Y.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(!W(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 V(t,e={}){const o=B(t);e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");const s=`[^${G(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 H(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 H(3,"","",u(t),"",c));return}let h;if(!o){h=s}else if(o==="*"){h=U}else{h=o}let d=2;if(h===s){d=1;h=""}else if(h===U){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 H(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 G(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function K(t){return t&&t.ignoreCase?"ui":"u"}function Z(t,e,o){return X(V(t,o),e,o)}function q(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function X(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+=G(i.value)}else{s+=`(?:${G(i.value)})${q(i.modifier)}`}continue}if(e)e.push(i.name);const t=`[^${G(o.delimiter)}]+?`;let a=i.value;if(i.type===1)a=t;else if(i.type===0)a=U;if(!i.prefix.length&&!i.suffix.length){if(i.modifier===3||i.modifier===1){s+=`(${a})${q(i.modifier)}`}else{s+=`((?:${a})${q(i.modifier)})`}continue}if(i.modifier===3||i.modifier===1){s+=`(?:${G(i.prefix)}(${a})${G(i.suffix)})`;s+=q(i.modifier);continue}s+=`(?:${G(i.prefix)}`;s+=`((?:${a})(?:`;s+=G(i.suffix);s+=G(i.prefix);s+=`(?:${a}))*)${G(i.suffix)})`;if(i.modifier===0){s+="?"}}const i=`[${G(o.endsWith)}]|$`;const a=`[${G(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${a}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${i})`}return new RegExp(s,K(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,K(o))}var J={delimiter:"",prefixes:"",sensitive:true,strict:true};var Q={delimiter:".",prefixes:"",sensitive:true,strict:true};var tt={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function et(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 ot(t,e){if(t.startsWith(e)){return t.substring(e.length,t.length)}return t}function st(t,e){if(t.endsWith(e)){return t.substr(0,t.length-e.length)}return t}function it(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 at=["ftp","file","http","https","ws","wss"];function nt(t){if(!t){return true}for(const e of at){if(t.test(e)){return true}}return false}function lt(t,e){t=ot(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 rt(t,e){t=ot(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 ct(t,e){if(e||t===""){return t}if(it(t)){return vt(t)}else{return kt(t)}}function ht(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.password=t;return o.password}function dt(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.username=t;return o.username}function mt(t,e,o){if(o||t===""){return t}if(e&&!at.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 ut(t,e,o){if(bt(e)===t){t=""}if(o||t===""){return t}return wt(t)}function yt(t,e){t=st(t,":");if(e||t===""){return t}return ft(t)}function bt(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ft(t){if(t===""){return t}if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function pt(t){if(t===""){return t}const e=new URL("https://example.com");e.username=t;return e.username}function gt(t){if(t===""){return t}const e=new URL("https://example.com");e.password=t;return e.password}function kt(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 vt(t){if(t===""){return t}if(/[^0-9a-fA-F[\]:]/g.test(t)){throw new TypeError(`Invalid IPv6 hostname '${t}'`)}return t.toLowerCase()}function wt(t){if(t===""){return t}if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535){return t}throw new TypeError(`Invalid port '${t}'.`)}function xt(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 St(t){if(t===""){return t}const e=new URL(`data:${t}`);return e.pathname}function Ct(t){if(t===""){return t}const e=new URL("https://example.com");e.search=t;return e.search.substring(1,e.search.length)}function zt(t){if(t===""){return t}const e=new URL("https://example.com");e.hash=t;return e.hash.substring(1,e.hash.length)}var jt=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=B(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,J);t.encodePart=ft;const e=Z(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=nt(e)}};var _t=["protocol","username","password","hostname","port","pathname","search","hash"];var It="*";function Tt(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 At(t)}function Lt(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=yt(e.protocol,o)}if(typeof e.username==="string"){t.username=dt(e.username,o)}if(typeof e.password==="string"){t.password=ht(e.password,o)}if(typeof e.hostname==="string"){t.hostname=ct(e.hostname,o)}if(typeof e.port==="string"){t.port=ut(e.port,t.protocol,o)}if(typeof e.pathname==="string"){t.pathname=e.pathname;if(s&&!et(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=mt(t.pathname,t.protocol,o)}if(typeof e.search==="string"){t.search=rt(e.search,o)}if(typeof e.hash==="string"){t.hash=lt(e.hash,o)}return t}function At(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function Mt(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Et(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=`[^${Mt(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+=At(l.value);continue}a+=`{${At(l.value)}}${q(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+=At(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+=At(l.suffix);if(c){a+="}"}if(l.modifier!==3){a+=q(l.modifier)}}return a}var Dt=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 jt(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:It,protocol:It,username:It,password:It,hostname:It,port:It,search:It,hash:It};this.pattern=Lt(a,t,true);if(bt(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,J);t.encodePart=ft;break;case"username":Object.assign(t,J);t.encodePart=pt;break;case"password":Object.assign(t,J);t.encodePart=gt;break;case"hostname":Object.assign(t,Q);if(it(e)){t.encodePart=vt}else{t.encodePart=kt}break;case"port":Object.assign(t,J);t.encodePart=wt;break;case"pathname":if(nt(this.regexp.protocol)){Object.assign(t,tt,i);t.encodePart=xt}else{Object.assign(t,J,i);t.encodePart=St}break;case"search":Object.assign(t,J,i);t.encodePart=Ct;break;case"hash":Object.assign(t,J,i);t.encodePart=zt;break}try{this.parts[n]=V(e,t);this.regexp[n]=X(this.parts[n],this.names[n],t);this.component_pattern[n]=Et(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=Lt(o,t,false)}else{o=Lt(o,Tt(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=Lt(o,t,false)}else{o=Lt(o,Tt(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 H(3,"","","","",3);const a=new H(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=Dt}const $t='.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 Rt=$t;const Pt=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:"145d89e87e5bc7988a2c37b30321e8e969724508"},e("li",{key:"bf5a642b87750bf78273b9eb856187ec5d0dfade"},e("a",{key:"b22e1fcf21a1d4cb60d73b967cca67e639ec539b",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:t=>this.clickHandler(t)},this.icon&&e("smoothly-icon",{key:"7a40b124bcda86b48dcd10a32a240c413c2851b6",name:this.icon}),this.label&&e("span",{key:"01cb8b9aa06d17a13c3eed564e870fe4fba2e438",class:"label"},this.label))),e("div",{key:"a75f04cbb0aca3574f8b309cf88fa96c82a461aa",ref:t=>this.contentElement=t},this.content&&e("smoothly-lazy",{key:"37efba7cfc89753339c41038f6f69e6c380ee187",content:this.content}),e("slot",{key:"0b5a9394b9b83f153b73c6de35365a3cfc58a7da"})))}};Pt.style=Rt;const Ft=".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 Ht=Ft;const Nt=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:"b2fe364dcdf392c75b51a6c0bc90802ac2c9b44a",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:"d0d21c03ed49fcc248ab89c8a5f54de6d3c995ac",name:"caret-up-outline"}))}get element(){return i(this)}};Nt.style=Ht;const Yt="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Ut=Yt;const Wt=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:"6cf2501d1c4ad5a0a2865dd41667e40abffe756a"},e("span",{key:"c7bb85eb13d1acb54554a6456aa279f1e8593da8",class:"burger"},e("smoothly-icon",{key:"b7b51da7eb3de4c290ba0f4f0c9f9a44fe494c00",name:"menu"})))}get element(){return i(this)}static get watchers(){return{open:["openChanged"]}}};Wt.style=Ut;const Bt='[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 Vt=Bt;const Gt=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(f,{key:"1350144b97a2a5fdc24d5b53678ea9d7f97b5b71",disabled:this.disabled,type:this.type,link:this.link},e("slot",{key:"315355a1987956c9741a03819de181d2f626a205"}))}};Gt.style=Vt;const Kt=".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 Zt=Kt;const qt=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:"92ecc0cbcbe8a3c567a5b6f5839f4f5e422866e9",warning:this.clickTimeStamp},e("smoothly-button",{key:"bf8ce05dfa68aa34801975f5c590b98837f918f0",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:"9ba0e4fcbb52a958443e4e2d9aca9e0f1c9b31e3",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),e("smoothly-button",{key:"c2e053984ab532494fa5d5c9cff0dfd4f236fa57",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:"c485c3a61102c224621ba0ef0390a24932be5956"})))}};qt.style=Zt;const Xt="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 Jt=Xt;const Qt=class{constructor(e){t(this,e)}render(){return[e("h2",{key:"bddbcdcb9ce5d83b6bfa7b6ecfdc6aa39a2eb566"},"Buttons"),e("section",{key:"1a68d5f5e150439e623fa625432c0b76d84cb4da"},e("h4",{key:"ce297567bb70f6f61cb5c9adfce457b96a727dee"},"Confirm button (two clicks)"),e("div",{key:"6b8561f4fe3001800c5a058e01a023361e8ff5fc"},e("smoothly-button-confirm",{key:"c26ec515d6e59142694394336d6c408f9d77d5c2",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),e("smoothly-button-confirm",{key:"bc1fe30703e9469b80851611286309c2465b6708",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},e("smoothly-icon",{key:"2c5ad6e48b66c4aac2b85dc8ea27b292b9229054",name:"checkmark-outline",size:"tiny"})),e("smoothly-button-confirm",{key:"b00eff042a7e4ad8d84dbd5928499dfe93e0aade",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},e("smoothly-icon",{key:"180734788ed2a6bf6dd7b833ec6e2bb8c8aa4d65",name:"trash-outline",size:"tiny",fill:"outline"}))),e("h4",{key:"e25fbefe45792c9e30a2c57a0c653b7a9ee5d459"},"Toggle button"),e("smoothly-toggle",{key:"382d2e1645b0414d8b913ba02b564f265d0fe208"},e("smoothly-icon",{key:"446740388ba67c61a8378d4386735a1812ff083c",name:"card",fill:"solid",slot:"icon-slot"})),e("smoothly-toggle",{key:"8c950bbecec8807ac73da93e6bae99cd096d2cba"},e("smoothly-icon",{key:"dfdc829247bda20f9d9da36c10ed659ae6f897df",name:"briefcase",slot:"icon-slot"})),e("smoothly-toggle",{key:"a79c5236bb4ebe6a136b81350cffcd5803d090dd"},e("smoothly-icon",{key:"4a25c345c49c70ddefcd938c2efec421c6ba5818",name:"airplane",slot:"icon-slot"})),e("smoothly-toggle-switch-demo",{key:"d44f03242ec60165ee941700e1f774a9deca8ed1"}),e("h4",{key:"83079e47b2bfc64da81d2332a581619cbddf4500"},"Links with icons"),e("smoothly-button",{key:"7a62c92041257209c1615bbd673c1c50ee6d9739",type:"link"},e("smoothly-icon",{key:"5059b784526f638a691ee8241dd3732585a0a6f6",name:"checkmark-circle",slot:"start"}),"type link"),e("smoothly-button",{key:"450c4299a9ceaa31f1a2143ddbe848b559a3fadf",type:"button",color:"warning",fill:"default"},e("smoothly-icon",{key:"3e5702b60edb4bf36bb5b13013b5ed49b22038ff",name:"call",slot:"start"}),e("a",{key:"916ff6ccb76afbece7f15bd26ffa061d1f4c7357",href:"https://google.com"},"link")),e("smoothly-button",{key:"1f3ac00e99ee9175ade176b729968ab280e374f5",link:"https://google.com",type:"link"},e("smoothly-icon",{key:"182ee7d973137fc0fe569506cc26b907d56044d2",name:"arrow-forward",slot:"end"}),"link + type link"),e("h4",{key:"9c98f39214d58734e0a2cd2564ec94887c3789b2"},"Size and Color test"),e("smoothly-button",{key:"4a381c7b2abb9bc25aa2071d515d00e554373729",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),e("smoothly-button",{key:"2bdc73f7f47144d1eb767d93ff24501f03ee0154",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),e("smoothly-button",{key:"2ac63d611e15bfeaf6accf58fb19e8f1fe7f10f3",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),e("smoothly-button",{key:"435d959f703ae620a35414fa8ac41091f039470f",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),e("smoothly-button",{key:"a683db9beb1103e8f7d751a8886f929a28fd7f9f",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),e("smoothly-button",{key:"a06b826626ac02d53287fce5933309dbad62775e",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),e("smoothly-button",{key:"d92c3f767c215b97f981090e6713db3c9cdd5fc3",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),e("smoothly-button",{key:"60b5814702944be4d69c8660f9b00b3d546db670",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),e("smoothly-button",{key:"285602770a1a6b7b88d5362b537a135474cd36d6",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),e("h4",{key:"93cd7e3412684091fd54e33327ef6ffca2ccfdde"},"Expand examples"),e("smoothly-button",{key:"71115ebbaef4062bb92631e2dc9314e487d70a63",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),e("smoothly-button",{key:"ab9bab41d8f104bfcf8fb512de68cfc8abb80248",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),e("h4",{key:"7fe80cd1213ac4288e742f8e53db704a80160619"},"Fill examples"),e("div",{key:"78f772042275f540ac76027f27405703b5612342"},e("smoothly-button",{key:"354c986b170c0650afefe849c38b68869e3a89de",shape:"rounded",color:"primary",fill:"solid"},e("smoothly-icon",{key:"11078a864ac2f2aff15c9c0ecbf1b72604a528fb",name:"checkmark-circle",slot:"start"}),"Fill Solid"),e("smoothly-button",{key:"e873de608e6734d48797e70a52b59c96539f9963",shape:"rounded",color:"secondary",fill:"outline"},e("smoothly-icon",{key:"e280e4627d6178ed829504e3fd819b237b368310",name:"checkmark-circle",slot:"start"}),"Fill Outline"),e("smoothly-button",{key:"4bc537c2cf113821d4fb48dba73058c5b5b06103",shape:"rounded",color:"tertiary",fill:"clear"},e("smoothly-icon",{key:"0328a79c6c5070cdbdab3dfc7b59685848ae8a25",name:"checkmark-circle",slot:"start"}),"Fill Clear"),e("smoothly-button",{key:"f770f700014802c3384ee791776a17cfd2baee5d",size:"icon",shape:"rounded",color:"success",fill:"solid"},e("smoothly-icon",{key:"4d83d78c29a011365538a376716e62f55469aa7f",name:"basketball"}))),e("h4",{key:"dd52fc042e985c7e5dd4f70ad659aa5a67f113fd"},'Buttons with Icon in "start"'),e("div",{key:"354ff7082e404bae0580939d262cdadd82c741c1"},e("smoothly-button",{key:"748b62961a706bf020067a86d38133aaed392295",shape:"rounded",fill:"solid",color:"warning"},e("smoothly-icon",{key:"c71be2a99d2fad8f4714f0b1951dabd7ae300ca6",name:"checkmark-circle",slot:"start"}),"Check"),e("smoothly-button",{key:"edbc409832eb913072e35015c91b34ac8a1c1c0b",shape:"rounded",fill:"solid",color:"secondary"},e("smoothly-icon",{key:"7778e217541f3bd0c57458714b7a2a74e926790f",name:"basketball",slot:"start"}),"Check"),e("smoothly-button",{key:"56b928c4e487cfad1d87ce4c394eb32bf922bee8",shape:"rounded",fill:"solid",color:"success"},e("smoothly-icon",{key:"8b0ca775e79d0d67c3df54a5ee018979062d8005",name:"call",slot:"start"}),"Check"),e("smoothly-button",{key:"b201e3fd2b2fa39a67ff755bc6bf507b713d22b2",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"2422da1f02def727ae2d849b4fca259625d28186",name:"call"})),e("smoothly-button",{key:"559bc69c4a2648ddb795eadd71d11881ede60e07",size:"flexible",fill:"solid",color:"success"},e("smoothly-icon",{key:"8d7ca205ca86f1869524db0b989175fb61577b3a",name:"airplane"}))),e("h4",{key:"0d20d1ef4c4f5a92d3ba9c52e3c9bbc102082669"},'Buttons with Icon in "end"'),e("smoothly-button",{key:"9d5303af3e3e9ff1213274745210e683c6386ffd",fill:"solid",color:"light"},"Go Forward",e("smoothly-icon",{key:"f1b0fce6a32ab6718a49692fc678e2c8b8fa2c06",name:"arrow-forward",slot:"end"})),e("h4",{key:"71c1e32c6c99fa92676c4ae29ababc379b2eff31"},"Test for icon button"),e("div",{key:"2a792664efad4614124252fde55024c579d4c0cb"},e("smoothly-button",{key:"d3b0ab0e85860c2c94213977159b6e26f438c98b",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"10feac29e11998eeaccb5759bc0f4cf841ac69da",name:"call"})),e("smoothly-button",{key:"fc2f6b2ca9b8b02eaaea5da9ddc4b4d42eb8619b",size:"icon",shape:"rounded",color:"warning",fill:"solid"},e("smoothly-icon",{key:"ea95489a7735a94b6028ef37a9f36a97d7c26f6e",name:"search-outline"})),e("smoothly-button",{key:"2629f414b94958e22f4dbae0f9ff0eb143dd5f36",size:"icon",shape:"rounded",color:"secondary"},e("smoothly-icon",{key:"e5b1d7012a76cc0fa159cb2ac226ebcd584bf43d",name:"checkmark-circle"}))),e("h4",{key:"071beba6f628300fbe06e3159e5024948761e099"},"Link examples"),e("div",{key:"86ba2c9206940302eb5ca3794f74939c7942263a"},e("smoothly-button",{key:"1e5f643cbbf49929e918da57f6151ddd0725f8c7",type:"link"},"type link"),e("smoothly-button",{key:"5e25581e6ea3cf136b0996c9f0c6675477e76768",type:"button",fill:"clear"},e("a",{key:"51123cd62d7c2e0c403593ed3653bcf1dcf6529a",href:"https://google.com"},"link")),e("smoothly-button",{key:"84687567a4672a87845b3315164aec9aa49d8b06",link:"https://google.com",type:"link"},"link + type link")),e("h4",{key:"afd95ebfba2102c4b3a15befc25018bd45df58da"},"Disabled buttons"),e("div",{key:"af549870028d91bd5a492b830f568cb64d89484f"},e("smoothly-button",{key:"03a442de0f43105cc129e9d395669b9a9d854df9",disabled:true,fill:"solid",color:"secondary"},"Disabled"),e("smoothly-button",{key:"b9019e75b010aa0d338f56280017bf1ad9c8b04b",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),e("smoothly-back-to-top",{key:"555b6062cb2308beb7ee4b2cee9bc55758888707"})]}};Qt.style=Jt;function te(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(w.create(e))}if(e<5||w.firstOfMonth(i[0])==w.firstOfMonth(t))s.push(i)}return s}function ee(){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 oe(t){const e=new globalThis.Date(t);const o=[];for(let s=0;s<12;s++){e.setMonth(s,28);const i=w.create(e);o.push({date:i,name:e.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function se(t,e,o){const s=new globalThis.Date(t);const i=e?w.getYear(e):(new Date).getFullYear()-50;const a=o?w.getYear(o):(new Date).getFullYear()+50;const n=[];for(let e=i;e<=a;e++){s.setFullYear(e);const o=w.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return n}const ie='.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 ae=ie;const ne=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:"7b1fb3ef1cbdc1d5e6613384e64da895fcaa5cf3"},e("smoothly-input-month",{key:"ad67fc659c6a18d45132f422733ea24d7d56dd2b",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:"b5da7a44e2576313b98caa246146c74eea0cdae3",slot:"year-label"},e("slot",{key:"3862506ef62aaa5226d366b65351549a74c9ec6e",name:"year-label"})),e("div",{key:"c1e36c66c30e6540039271fd1719c9d4438c8afa",slot:"month-label"},e("slot",{key:"e88f780f22b3e310b87df52e430de3d40de4d552",name:"month-label"}))),e("table",{key:"a7ef6dc817715ed613e895b668c4ef1bf4cd1386"},e("thead",{key:"6ddbd34b74a61affd2afee8ff27c44461a542224"},e("tr",{key:"79141f617b4eacbd6dbc8f17045281a5a0a49ace"},ee().map((t=>e("th",null,t))))),te((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:w.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==w.now(),currentMonth:w.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:w.now())==w.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"]}}};ne.style=ae;const le=".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 re=le;const ce=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:"ca3b4f95802da90bb96a3b40b780205f8e1d2bb4"},e("div",{key:"23b2def77984b4f28b0f7f2719f30aa909556ae7",class:"header"},this.closable&&e("smoothly-trigger",{key:"260384e3d9d2c34a770ac59a82912e0932d4da94",fill:"clear",name:"close"},e("smoothly-icon",{key:"3293bf5b361612548e6e631bcb080f2ffaf58626",name:"close-circle",fill:"solid",color:this.color})),this.header?e("h1",null,this.header):e("slot",{name:"header"})),e("div",{key:"cc6034964e9c26f536359962d95bfa3b6ce51417",class:"content"},e("slot",{key:"77b99186cf1535cc8faa03edd6dda4b7e561fd69"})))}render(){return e(s,this.hostData(),this.__stencil_render())}};ce.style=re;const he=".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";const de=he;const me=class{constructor(e){t(this,e);this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return e(s,{key:"bb869a1a3c54958bdf29a0094d3649afa81770e5"},e("smoothly-button",{key:"1ef55f5b1f3b350bd7d33348d8370f6cd95a289d",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),e("smoothly-button",{key:"1867bfeda91bc8f39c4b2e2cf00ec971845b97cb",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),e("smoothly-button",{key:"a24d0a80108afdad983900b1abf9b6093a29673e",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),e("smoothly-modal",{key:"e30f0149b3d8dc8037da0470815c9aa704d2d7c4",closable:true,open:this.openModal,onSmoothlyModalChange:t=>this.openModal=t.detail},e("h2",{key:"76e559f061029a850bbdfcb2c7b9eae66bec49a9",slot:"header"},"Modal"),e("span",{key:"f2429c7978f5a14db471fd643a608581232e6b99"},"Are you sure you want to confirm this action?"),e("smoothly-button",{key:"7cbb9b7df38d30076d8fb1074640a5447e8c9def",slot:"actions",color:"success"},"Confirm"),e("smoothly-button",{key:"274d9655b7f23b7ce891e736b31924dc00fe8c0c",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),e("smoothly-modal",{key:"284f4e666fafa5e9de84f0fd19014657e9c4ea28",closable:true,open:this.openTallModal,onSmoothlyModalChange:t=>this.openTallModal=t.detail,align:"top"},e("h2",{key:"78f7eda89834a0228792e95bf9d78f1cef6dab93",slot:"header"},"Modal"),e("smoothly-summary",{key:"41ec8ae55ee1241e1935db9e5035450d4f50832d"},e("div",{key:"4a807f599a75573c249539f7e8a456b44f4280cd",slot:"summary"},"Lorem ipsum"),e("div",{key:"eca8bdcd9bd740a4597b28f7fc7361ec9ecb3753",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:"a1da70bd2670e5ebe2f209286c6c626b0c3a233a",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&e("smoothly-dialog",{key:"41e8a92ef77e563f4cf59eeb17d6c0c90a21f20f",closable:true},e("smoothly-frame",{key:"7296968b616654ad2ca0a757fbe7b0b8a8d06c31",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}};me.style=de;function ue(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 ye(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 be(t,e,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?ye(t,e,s):ue(t,e,s)}var fe;(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})(fe||(fe={}));var pe;(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})(pe||(pe={}));class ge{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 ge(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 ge({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 ge({...t})}static create(){return new ge({value:"",selection:{start:0,end:0}})}static modify(t){return new ge(typeof t=="string"?{value:t,selection:{start:t.length,end:t.length}}:t)}}var ke;(function(t){function e(t,e,o){let c=pe.copy(t.unformat(ge.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(ge.copy(c))}t.apply=e;function o(t,e,o){const s=pe.copy(t.unformat(ge.copy(e)));r(s,o);return t.format(ge.copy(s))}t.paste=o;function s(t,e,o){let s=fe.getCursor(e.selection);let i=fe.getStalker(e.selection);s=be(e.value,s,o.key=="ArrowLeft"?"backward":"forward");i=o.shiftKey?i:s;return pe.copy(t.unformat(ge.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=fe.getCursor(e.selection);const i=be(e.value,s,o.key=="Backspace"?"backward":"forward");const a=pe.copy(t.unformat(ge.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=fe.getCursor(t.selection);let s=fe.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}})(ke||(ke={}));const ve={};function we(t,e){ve[t]=e}function xe(t,...e){const o=ve[t];return o&&o(e)}function Se(t,e,...o){const s=xe(e,...o);return s?s.format(ge.modify(s.toString(typeof t=="string"?Ce(t,e,o):t))).value:""}function Ce(t,e,...o){const s=xe(e,o);return s?s.fromString(s.unformat(ge.modify(t)).value):undefined}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:"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"}}we("card-csc",(()=>new ze));class je{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"}}we("card-expires",(()=>new je));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=Ie(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=Ie(e.value);return t>="0"&&t<="9"&&e.value.length<o.length[0]}}we("card-number",(()=>new _e));function Ie(t){let e={...Te,spaceIndexes:t.length==14?[4,10]:Te.spaceIndexes};for(const o in Oe)if(Object.prototype.hasOwnProperty.call(Oe,o)&&Oe[o].identification.test(t)){e={...Te,name:o,...Oe[o]};break}return e}const Te={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 Le;(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})(Le||(Le={}));class Ae{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 Me={};function Ee(t,e){Me[t]=e}we("date",(t=>{const e=t&&t.length>0?t[0]:undefined;const o=Le.is(e)?e:Le.fromLocale(e);const s=Me[o]??Me["YYYY-mm-dd"];return s()}));class De extends Ae{constructor(t){super(t)}toString(t){return w.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 w.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"}}Ee("dd.mm.YYYY",(()=>new De(".")));Ee("dd/mm/YYYY",(()=>new De("/")));Ee("dd-mm-YYYY",(()=>new De("-")));class $e extends Ae{constructor(t){super(t)}toString(t){return w.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 w.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}}Ee("mm/dd/YYYY",(()=>new $e("/")));class Re extends Ae{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 w.is(e)?e:undefined}daysInMonth(t){const e=`${t.substring(0,4)}-${t.substring(4,6)}-01`;return w.is(e)?+w.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"}}Ee("YYYY-mm-dd",(()=>new Re("-")));class Pe{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 x.is(e)?e:undefined}partialFormat=this.format;format(t){let e=Fe(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==" ")}}we("date-time",(()=>new Pe));function Fe(t,e){let o=t;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!He(o.value,e))o=o.replace(0,10,He("31"+o.value.substring(2,10),e)?"31"+o.value.substring(2,10):He("30"+o.value.substring(2,10),e)?"30"+o.value.substring(2,10):He("29"+o.value.substring(2,10),e)?"29"+o.value.substring(2,10):He("28"+o.value.substring(2,10),e)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!He(o.value,e))o=o.replace(0,10,He(o.value.substring(0,3)+"31"+o.value.substring(5,10),e)?o.value.substring(0,3)+"31"+o.value.substring(5,10):He(o.value.substring(0,3)+"30"+o.value.substring(5,10),e)?o.value.substring(0,3)+"30"+o.value.substring(5,10):He(o.value.substring(0,3)+"29"+o.value.substring(5,10),e)?o.value.substring(0,3)+"29"+o.value.substring(5,10):He(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(!He(o.value)){o=o.replace(0,10,He(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":He(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":He(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":He(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return t}}return o}function He(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&&Ne(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&&Ne(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&&Ne(o,s)>=i:false}}function Ne(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 Ye{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==" ")}}we("divisor",(()=>new Ye));class Ue{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(!S.is(t))e="";else{const o=S.normalize(t);if(!o.minutes&&!o.hours)e="";else if(this.separator!=":")e=(+S.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=S.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=S.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)}}we("duration",(()=>new Ue));class We{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]}}we("email",(t=>new We(t||{})));class Be{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}}we("identifier-code",(t=>new Be(t||{},"code")));we("identifier-pascal",(t=>new Be(t||{},"pascal")));we("identifier-snake",(t=>new Be(t||{},"snake")));we("identifier-camel",(t=>new Be(t||{},"camel")));we("identifier-attribute",(t=>new Be(t||{},"attribute")));class Ve{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"}}we("identity-number",(t=>new Ve(t&&t.length>0?t[0]:undefined)));class Ge{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"}}we("integer",(t=>new Ge(t?.[0]??{})));class Ke{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}}we("password",(()=>new Ke));class Ze{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(".")}}we("percent",(()=>new Ze));const qe=[{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 Xe{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 qe)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=qe[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("+")}}we("phone",(()=>new Xe));class Je{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"}}we("postal-code",(t=>new Je(t&&t.length>0?t[0]:undefined)));class Qe{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,""):ge.copy(t);const o=this.currency&&C.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,""):ge.copy(t);const o=this.currency&&C.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||C.decimalDigits(this.currency)!=0)}}we("price",(t=>new Qe(t&&t.length>0?t[0]:undefined)));class to{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]}}we("text",(t=>new to(t||{})));class eo{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}}we("hex-color",(()=>new eo));const oo=".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 so=oo;const io=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:"2ff64bd2ea031cbb472c41bcb52fcf696f524a73",value:this.value,collapseDepth:this.collapseDepth});break;default:s=Se(this.value,i);break;case"email":s=e("a",{key:"b9bc9827de58ab167a50e439ed60d0a5f9f3f2e3",href:"mailto:"+this.value},Se(this.value,i));break;case"phone":s=e("a",{key:"184af93546b3f1c7f074593ac1d0ea4dc2713341",href:"tel:"+this.value},Se(this.value,i,this.country));break;case"postal-code":s=Se(this.value,i,this.country);break;case"price":s=Se(this.value,i,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(t=xe(this.type,D()))===null||t===void 0?void 0:t.toString(this.value);break;case"duration":s=Se(this.value,i)||"0";break;case"date-time":s=this.format?x.localize(this.value,this.format,D()):(o=xe(this.type,D()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[e("div",null,this.label),s]:s}};io.style=so;const ao=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:"fd051f67ea55f254181be2b43716e84e00cabb05"},e("fieldset",{key:"bea8026fe521ec050e1780416fa9e32989b2afa4"},e("h2",{key:"ef4c1a656d67796afc8f9c5c9db63c04f96aab4c"},"Smoothly display"),e("dl",{key:"8deda943fa8ead28b6df1b007907f6d9dbf66d85"},e("dt",{key:"caf0ad2fe220cdb62d47140efd9684998246e2c3"},"Duration"),e("dd",{key:"f1c4659bf36f0a327fabba9314042dace342c13b"},e("div",{key:"30872a9bd82d2814a82cf53ec42f3a7b3fe13b3a"},e("div",{key:"5f733cc2b6a745712e246479c59b8aa3daf11312"},e("smoothly-display",{key:"1998b9c2061fa468aa9fffe4d733a8a683baae05",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),e("div",{key:"159344fc77844facc8960a4f71a99813623a7763"},e("smoothly-display",{key:"d0f14a4f05e1b9353b9a0b389c17e3fbd7537b1b",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),e("div",{key:"cc65ac80578b939be2d3802fd3a5ded8fbf5b384"},e("smoothly-display",{key:"489a7d80e18f1bb9d26eb8e807467f0cd8e0e1dc",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),e("div",{key:"a7d5607906b992f698a00d293872dd5cfc65ad42"},e("smoothly-display",{key:"b868bb9a2ce5b8b0bab62e4ab90f5ed8172b2dc1",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),e("div",{key:"bf53f2aae5ab5cdb6f7d98aba73a9e382fb98bd6"},e("smoothly-display",{key:"d27e664c4d0007dccfae976a13b3c3e202d7052b",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),e("div",{key:"7e7ab059fe4ce79836b9b3c63a212e5ab9e4b36c"},e("smoothly-display",{key:"388670fcb5c8371244c4112d0cf5f0050b59b134",style:{display:"inline"},type:"duration",value:{}})," h"),e("div",{key:"e34c143b748072810cec75427ee497bfa25f92d7"},e("smoothly-display",{key:"bc74a20668e2b2b8e5561ebcd79fcff63c7886d7",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),e("dt",{key:"04d7d7e6d8695b50afd0c80d7b8123d22a96a0a0"},"text"),e("dd",{key:"0a51fa2990fa85c8154e2a14ad374252104d8658"},e("smoothly-display",{key:"75b7cf9296c52cda27db01cc201b4417e2f19288",type:"text",value:"text"})),e("dt",{key:"3c9fa1e7b2eda3a838d779885ad48073a1e7ca78"},"postal code"),e("dd",{key:"adcfacf0c296667c4a98919fc64ff1b6823f253c"},e("smoothly-display",{key:"f35d166fc0ae74f26d9dab3ce217edf1e8df348e",type:"postal-code",value:"752 31"})),e("dt",{key:"5dd7df04105283e70182a8c24d69c7abc1632a0e"},"password"),e("dd",{key:"d785701c8d5e6ce9dddfe618b91f113b1cc47694"},e("smoothly-display",{key:"d9a04bc3d9c62eebf4b8fa192ee43544e25f48ec",type:"password",value:"password"})),e("dt",{key:"72a245580c0d67958d821918a64634089badf6e0"},"email"),e("dd",{key:"4e2129c4690821e35017a025378a52a82d9c6e12"},e("smoothly-display",{key:"6f60bb0a22b496b52f76d72c25f9c4959c275174",type:"email",value:"test@example.com"})),e("dt",{key:"b47e6d91ac2ad5839eff3f2ed72793406c447381"},"price"),e("dd",{key:"5ed6dc4d1894989f8c59e85a9d6b3474b1838d46"},e("smoothly-display",{key:"88d50f738cc333ee0284011ded0e5bc2eb90eb01",type:"price",value:"13.37",currency:"SEK"})),e("dt",{key:"52b377e012d006448361e4190e85238eab82f425"},"price without decimals"),e("dd",{key:"2d070cde97c125943423c28dd37a1bec7f1bf521"},e("smoothly-display",{key:"a63703e7aa73188db4b78d2378f2e30d491b35d7",type:"price",value:200,currency:"SEK",toInteger:true})),e("dt",{key:"10348b35a582998ee6107a2b5c55a589e0d8c66d"},"price with decimals if they are set, otherwise no decimal"),e("dd",{key:"da178ce35a352086c815f4cfac4096e34abbaef7"},e("smoothly-display",{key:"08b7c0ba00f0b9b57d1ea8cc4b537bf6b632c2b0",type:"price",value:200.2,currency:"SEK",toInteger:true})),e("dt",{key:"d7db59b325e85da3458ac99916b9bcf67ea567ff"},"price with decimals"),e("dd",{key:"526c59b42c339389a0839a0ee96299d184850d2c"},e("smoothly-display",{key:"2d7ebb7450b5eb08ee6ff7ada84034db4cfb06ab",type:"price",value:200.2,currency:"SEK"})),e("dt",{key:"0417d708b6db96a1a3d08ccb552dc3704383f498"},"percent"),e("dd",{key:"8c35ad31827aeddb6b205a7009e9987d317a813c"},e("smoothly-display",{key:"ebd4dd2565a20e48d31724b44d11b5cb44ae5277",type:"percent",value:"42"})),e("dt",{key:"65a23b48dbed3e8e7b50725148acd17891e19ddd"},"phone"),e("dd",{key:"515ed149215811c8434f340256f8b4d331763db9"},e("smoothly-display",{key:"6b7422b4b8387e74ef38aba7e8567f11b263cf9a",type:"phone",value:"0101881108"})),e("dt",{key:"c1fe3e553de1313a579833275f43246d0673f812"},"card number"),e("dd",{key:"6078440f5880b8442e388517f42660362841db2a"},e("smoothly-display",{key:"6eb5a018d0d6f7f8458955369481294408d4fdf4",type:"card-number",value:"4111111111111111"})),e("dt",{key:"4ac0a352835d49083a89465d7fea27f951d2c4ac"},"card expires"),e("dd",{key:"db0cbb3b0795b19ffbf184da0dd2625eb8fb8918"},e("smoothly-display",{key:"d9ee4dc173460f0952d77053d12c68fce7feddc6",type:"card-expires",value:"7/22"})),e("dt",{key:"515cacce3dca652dfba9bf5528211576231495e5"},"card csc"),e("dd",{key:"9f6c2d8490963f09828993d42ee16b9ffc5e0d0f"},e("smoothly-display",{key:"1afda51b0213c77cf3b353bade47671790475112",type:"card-csc",value:"987"})),e("dt",{key:"e7204fbb88672bf46f9551d7cf50e750cc8bbb38"},"date"),e("dd",{key:"34fcebf482a696d179efbccc0708b8e71e8726d1"},e("smoothly-display",{key:"a55391a66ccc1cf033a2519fdf3b75c2510cb11f",type:"date",value:"2022-07-07"})),e("dt",{key:"4a818e58e65af6b0b27d090fb53909f4030a0442"},"date time"),e("dd",{key:"18874fbe62d3f0d4758fbcb3ea56c28698285c23"},e("smoothly-display",{key:"137a6be8368b02ec204b5baa82bf455f69a2fded",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:"81829d196bd5886e41d896369a9c20a0e9ac6475"},e("smoothly-display",{key:"69d3bce166d11def43480659575c51c171c22a45",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:"9f8913ccf6eb9aa0320ccc96c5f63d1368e03cb5"},e("smoothly-display",{key:"440dec80b84e484440f55e568d018a46ebdcc199",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:"ca5f7e206cf42b4bee3e885c8dd6fb5ce1fb414e"},e("smoothly-display",{key:"c2258980a847c8d2ac8c77a47e7a5772bce08ec8",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:"8b99f1ea1299e7001053e7b9deece7e6a15e2542"},e("smoothly-display",{key:"89c93cace88996c65faa0791cc0ffd7a4e9e083a",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"570142486b7ab93ddd59d9f418a60d700c7817d5"},e("smoothly-display",{key:"63dfcf83183fba060fceed447d4bcdd0c30eb5a9",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"4cc6f5ba3ddd1b339d5fb015de456abae54aab43"},e("smoothly-display",{key:"6c2f659af73220903642fd0807d1151f204ba837",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:"cb48cb11e0a8400291f08caa821b53cb443f8f12"},"Display JSON"),e("dd",{key:"5f88f3eedffc8993d747898f9bf5dc9da06dbfb1"},e("smoothly-display-demo-json",{key:"695a426dd6523dbac16fe830167f21e095499760"})))),e("h2",{key:"e847b40c54e9c2343c3c572802732594110a3520"},"With labels"),e("dd",{key:"fa442318099a443bbc08f8b989993184afe12f57"},e("smoothly-display",{key:"e0b37f5c62a577c16805b7b3793a397ade55944e",label:"Today",type:"date",value:w.now()}),e("smoothly-display",{key:"e17917bd5c0ba53f198a218ac5377feb64a3219c",label:"Total amount",type:"price",currency:"SEK",value:6789}),e("smoothly-display",{key:"d8c0252e5b772d1328adcaff951d2394b4da4fdf",label:"Total amount",type:"price",currency:"GBP",value:678.9}),e("smoothly-display",{key:"3a020e58a1fbac08de20efa83040a6d2fff73d40",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),e("fieldset",{key:"08d6ad86a6d79ff873156f7cb4d84360d8e92f38"},e("h2",{key:"91450decd67bdc21c204adaa7f95d9d0d2f64107"},"Test of different kinds of notifier"),e("button",{key:"ded2972233a8361b91b75c8386ca3f3299735959",onClick:()=>this.noticeWarning(L.warn("This is a test warning notice."))},"warning"),e("button",{key:"833fe76b9edaa48c4db0aed015bfd310936bd01a",onClick:()=>this.noticeWarning(L.succeeded("This is a test success notice."))},"success"),e("button",{key:"5f74587f60215db920ea6a0b9a01702642e61745",onClick:()=>this.noticeWarning(L.failed("This is a test danger notice."))},"danger"),e("button",{key:"ed76217b6f2a5f84ecc04a04ebc13c1441958b39",onClick:()=>this.noticeWarning(L.execute("This is a test execute notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"execute"),e("button",{key:"7f7b974a4ed5528d8d226d380233e219203553bc",onClick:()=>this.noticeWarning(L.delay("This is a test delay notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"delay")),e("fieldset",{key:"287c9ce5ae199417e9883b2d10c7f74e755ec0f1"},e("h2",{key:"14379ccb8cc02c5041a11ba85b15785a4fd87711"},"Smoothly spinner"),e("div",{key:"71d53a5d93355f097f377cf0665c299fe85746e8",style:{width:"fit-content"}},"Large",e("smoothly-spinner",{key:"90c1716af136d85de144eba53912ca479b66fc5b",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),e("div",{key:"00116592b1fedd953169ba090ae1eabe66d0004c",style:{width:"fit-content"}},"Medium",e("smoothly-spinner",{key:"f44f16aad9e875a4f6c6cb52e19d63c3e18bc54e",size:"medium"})),e("div",{key:"276cc0c4292e553e316bbb2c6571322254d02fec",style:{width:"fit-content"}},"Small",e("smoothly-spinner",{key:"29ad8c5f2e641f534e47926d9a349b95a6ed57fa",size:"small"})),e("div",{key:"3b7ae3e4d2825d284f1035ad48cbe40ddf6e0a58"},"Icon sized spinner on button",r.types.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:"843b2f5e627f47b215f5eee7d3d05243a1c97d60"},"Spinner with overlay"),e("div",{key:"4cafd9c2da4f233b64ba69a6af18327f4964803d",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",e("smoothly-spinner",{key:"a6900ad94f8782fe773be6f3855a064c5380f655",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),e("div",{key:"d233b7953c8566ab93037535154b411e6bfb1ad7",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",e("smoothly-spinner",{key:"402db5d2b36be4c7093b63103301a1b46e40724e",overlay:true,color:"secondary",size:"medium"})),e("div",{key:"8a51fcf96de1038ff02ca71935b3078a72e9079f",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",e("smoothly-spinner",{key:"11aaae43faab5dae96f5918793d6d916e00d702c",overlay:true,size:"small"}))),e("fieldset",{key:"2ff86804c0ada8b13a4170c50f373797318be0ba"},e("h2",{key:"d39356dc6bb76b9657be182941851cc34ffb2917"},"Smoothly summary"),e("smoothly-summary",{key:"145d770dbf9fc62a7131ecce8a840394f2c6c928"},e("p",{key:"b744a54d201d6d8187c5581bc5ce771210960d23",slot:"summary"},"Some title"),e("p",{key:"c3e00a06d0f17788dc2aaf381ee0f01e3bc765c4",slot:"content"},"Some content")),e("smoothly-summary",{key:"d1e49a025fb7bfc33c6aa9c086cfc21dba5997d8",size:"large"},e("p",{key:"81e1f3ea4d8ea14e8f98aacc7afd7503f54dd88d",slot:"summary"},"Some title"),e("p",{key:"0d6a0d2031fc8c22844237d0a45f25b77388d9a6",slot:"content"},"Some content")),e("smoothly-summary",{key:"0a931fcf97d133c2611c2260fd677598c30b5c21",color:"danger",fill:"clear"},e("div",{key:"1bfaeb10d07c0bd6b5891d4487b3c9c052d6fc27",slot:"summary",style:{display:"flex",gap:"0.3rem"}},e("span",{key:"0496d3e725519d1f5579164b904c8cafce3d4188"},"Person"),e("smoothly-icon",{key:"d5764dbbd79f22646223e988895996b53693ae3a",name:"person",color:"light",fill:"clear",size:"tiny"})),e("p",{key:"6041f619692580c37081547d082a99d611738ee2",slot:"content"},"Some person information.")),e("smoothly-summary",{key:"0b5d1771123017cfe0aef1c03116e42eeb677f6f",color:"danger",fill:"clear",open:true},e("p",{key:"41b5c81feda26d37aab0d42093de072484c53045",slot:"summary"},"Some other title"),e("p",{key:"cfeffe7c6a6fcc9d321af580eb7a550f23ab1e52",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:"d8997ff0e0fa943190e3e2df2af01ea62e9f3a04"},"Label"),no.map((t=>e("smoothly-label",{hue:t.hue,description:t.description,shape:"rectangle"},t.name))),e("smoothly-label",{key:"5535ae27abc079bb5e5d95945daa228bf38a9ac0",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const no=[{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 lo=class{constructor(e){t(this,e)}render(){return e(s,{key:"67b8c263dfe7d72e1072ba3d630ea74f0a05788a"},[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:ro,collapseDepth:t}))])))}};const ro={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const co=({value:t,collapseDepth:o})=>z().is(t)||Array.isArray(t)?e("smoothly-display-json-object",{value:t,collapseDepth:o}):e("smoothly-display-json-primitive",{value:t});const ho=".sc-smoothly-display-json-h{font-family:monospace}";const mo=ho;const uo=class{constructor(e){t(this,e);this.value=undefined;this.collapseDepth=undefined}render(){return e(co,{key:"84df0d521b30c3c44e38baee43e6c76334875ae8",value:this.value,collapseDepth:this.collapseDepth})}};uo.style=mo;const yo='.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 rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{display: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}.open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.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:" ▼ "}';const bo=yo;const fo=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:"096aba61e52c82b8fbddfa73b76ad5378898997b",class:{empty:this.empty,open:this.open}},e("span",{key:"23b082be0c70e647b622f876ce92a91aebcdfcd5",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),e("span",{key:"851efa46e336cdcd39eb20b08106b37cf3189c53",class:"content"},Array.isArray(this.value)?this.value.map((o=>e("div",{class:"indent"},e(co,{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(co,{value:s,collapseDepth:t}),e("span",{class:"comma"},","))))),e("span",{key:"51e3c086f6abc497cb759819eeee405d696769c0"},this.closeBracket))}};fo.style=bo;const po=".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 go=po;const ko=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"7fb3f1eae3a5a4e958aff79b218347ad089810cd",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};ko.style=go;const vo=".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 wo=vo;const xo=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"e7e589428127bdfdc3a226523417e256788003f9"},'"',this.value,'"')}};xo.style=wo;class So{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 Co=[t=>t instanceof So?t:undefined];function zo(t){Co.push(t)}let jo;function _o(t){jo=t}function Io(t){let e;for(const o of Co){e=o(t);if(e)break}return e||jo}class To extends So{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(t){return true}toString(){return""}}_o(new To);class Oo extends So{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 Lo extends So{constructor(t){super();this.precedence=40;this.class="And";this.rules=t.reduce(((t,e)=>e instanceof Lo?[...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 Lo(this.rules.map((t=>t.class=="Property"?t:new Oo(t))))}}function Ao(...t){return new Lo(t.map(Io))}var Mo;(function(t){t.is=Eo})(Mo||(Mo={}));function Eo(t,e=false){return typeof t=="number"||typeof t=="string"||t instanceof So||e&&typeof t=="object"&&t&&Object.values(t).every((t=>Array.isArray(t)?t.every((t=>Eo(t,true))):Eo(t,true)))}var Do=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var $o={};var Ro={};var Po={};var Fo={};var Ho={};(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={}))})(Ho);Object.defineProperty(Fo,"__esModule",{value:true});const No=Ho;class Yo{constructor(t,e=No.Level.Recoverable,o="unknown",s){this.description=t;this.level=e;this.type=o;this.region=s}toString(){return No.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}Fo.Message=Yo;Object.defineProperty(Po,"__esModule",{value:true});const Uo=Fo;class Wo{raise(t,e,o,s){if(!(t instanceof Uo.Message))t=new Uo.Message(t,e,o,s);console.error(t.toString())}}Po.ConsoleHandler=Wo;var Bo={};var Vo={};Object.defineProperty(Vo,"__esModule",{value:true});class Go{constructor(t,e){this.line=t;this.column=e}toString(){return"Ln "+this.line+", Col "+this.column}}Vo.Position=Go;Object.defineProperty(Bo,"__esModule",{value:true});const Ko=Vo;class Zo extends Ko.Position{constructor(t,e,o){super(e,o);this.resource=t}toString(){return this.resource.toString()+" @ "+super.toString()}}Bo.Location=Zo;var qo={};Object.defineProperty(qo,"__esModule",{value:true});class Xo{constructor(t,e,o,s){this.resource=t;this.start=e;this.end=o;this.content=s}merge(t){return t?new Xo(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}}qo.Region=Xo;Object.defineProperty(Ro,"__esModule",{value:true});var Jo=Po;Ro.ConsoleHandler=Jo.ConsoleHandler;var Qo=Ho;Ro.Level=Qo.Level;var ts=Bo;Ro.Location=ts.Location;var es=Fo;Ro.Message=es.Message;var os=Vo;Ro.Position=os.Position;var ss=qo;Ro.Region=ss.Region;var is={};var as={};var ns={};var ls={};var rs={};Object.defineProperty(rs,"__esModule",{value:true});class cs{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 cs(o[0],o[1])}else e=new cs;return e}}rs.User=cs;var hs={};Object.defineProperty(hs,"__esModule",{value:true});class ds{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 ds(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else e=new ds;return e}}hs.Endpoint=ds;Object.defineProperty(ls,"__esModule",{value:true});const ms=rs;const us=hs;class ys{constructor(t=new ms.User,e=new us.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 ys(ms.User.parse(o.length==2?o.pop():undefined),us.Endpoint.parse(o.pop()))}return e}}ls.Authority=ys;var bs={};Object.defineProperty(bs,"__esModule",{value:true});const fs=ls;class ps{constructor(t=[],e=new fs.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 ps(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 ps(this.scheme,this.authority,e,this.query,this.fragment)}resolve(t){return!t?this:new ps(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 ps(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=fs.Authority.parse(i.shift());else i.unshift(".");break}c=i}}e=new ps(s,r,c,l,n);break}return e}}bs.Locator=ps;ps.empty=new ps(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(ns,"__esModule",{value:true});var gs=ls;ns.Authority=gs.Authority;var ks=hs;ns.Endpoint=ks.Endpoint;var vs=bs;ns.Locator=vs.Locator;var ws=rs;ns.User=ws.User;var xs={};var Ss={};var Cs={};Object.defineProperty(Cs,"__esModule",{value:true});class zs{}Cs.Device=zs;Object.defineProperty(Ss,"__esModule",{value:true});const js=Cs;class _s extends js.Device{}Ss.InDevice=_s;Object.defineProperty(xs,"__esModule",{value:true});const Is=Ss;class Ts extends Is.InDevice{static addOpener(t,e){if(!e)e=0;Ts.openers.push({open:t,priority:e});Ts.openers=Ts.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){let e;let o=0;do{e=Ts.openers[o++].open(t)}while(!e&&o<Ts.openers.length);return e}}xs.Reader=Ts;Ts.openers=[];Object.defineProperty(as,"__esModule",{value:true});const Os=ns;const Ls=Ro;const As=xs;var Ms=xs;as.Reader=Ms.Reader;class Es extends As.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 Ls.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 Es(t):undefined}}as.BufferedReader=Es;var Ds={};var $s={};var Rs=Do&&Do.__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($s,"__esModule",{value:true});function Ps(t){return Rs(this,void 0,void 0,(function*(){}))}$s.close=Ps;function Fs(t){return Rs(this,void 0,void 0,(function*(){}))}$s.fsync=Fs;function Hs(t,e,o){return Rs(this,void 0,void 0,(function*(){return 0}))}$s.open=Hs;function Ns(t,e,o,s){return Rs(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}$s.write=Ns;function Ys(t,e){return{isDirectory:()=>false}}$s.lstatSync=Ys;function Us(t){return[]}$s.readdirSync=Us;function Ws(t,e){return""}$s.readFileSync=Ws;var Bs={};Object.defineProperty(Bs,"__esModule",{value:true});const Vs="/";Bs.sep=Vs;var Gs={};var Ks=Do&&Do.__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(Gs,"__esModule",{value:true});const Zs=Ro;const qs=ns;const Xs=xs;class Js extends Xs.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 Zs.Location(this.resource,this.line,this.column)}get region(){return new Zs.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Ks(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 Js(t,e||qs.Locator.empty):undefined}}Gs.StringReader=Js;Object.defineProperty(Ds,"__esModule",{value:true});const Qs=$s;const ti=Bs;const ei=ns;const oi=xs;const si=Gs;class ii extends oi.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:ei.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=si.StringReader.create(Qs.readFileSync((t.isRelative?"":ti.sep)+t.path.join(ti.sep),"utf-8"),t)}catch(e){console.log(`Failed to open file: ${t.toString()}`)}return e?new ii(e):undefined}}Ds.FileReader=ii;oi.Reader.addOpener((t=>ii.open(t)),10);var ai={};var ni=Do&&Do.__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(ai,"__esModule",{value:true});const li=$s;const ri=Bs;const ci=ns;const hi=Ro;const di=xs;const mi=Ds;class ui extends di.Reader{constructor(t){super();this.files=t;this.tabSizeValue=2;this.lastLocation=new hi.Location(ci.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 hi.Region(this.resource)}close(){return ni(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=mi.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 hi.Region(this.resource)}static getFiles(t,e,o=[]){let s=[];const i=li.readdirSync(t);i.forEach((i=>{const a=t+ri.sep+i;if(o.indexOf(a)==-1){if(li.lstatSync(a).isDirectory())s=s.concat(ui.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=ui.getFiles((t.isRelative?"":ri.sep)+t.folder.path.join(ri.sep),t.extension)}catch(t){}return e?new ui(e.map((t=>new ci.Locator(["file"],undefined,t.split(ri.sep))))):undefined}}ai.FolderReader=ui;di.Reader.addOpener((t=>ui.open(t)),0);var yi={};var bi={};var fi={};var pi={};Object.defineProperty(pi,"__esModule",{value:true});function*gi(t){let e;while((e=t())!=undefined)yield e}function ki(t){return t.next instanceof Function}function*vi(t,e){let o;while(!(o=t.next()).done)yield o.value;if(ki(e))while(!(o=e.next()).done)yield o.value;else yield e}class wi{constructor(t){this.iterator=t instanceof Function?gi(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 wi(vi(this,t))}map(t){return new wi((()=>{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 wi((()=>{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 wi(t)}}pi.Enumerator=wi;wi.empty=wi.from((()=>undefined));var xi={};Object.defineProperty(xi,"__esModule",{value:true});const Si=pi;function Ci(t){return t==null?false:typeof t[Symbol.iterator]==="function"}class zi{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 Si.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(t){return new zi((()=>this.get().append(t)))}map(t){return new zi((()=>this.get().map(t)))}reduce(t,e){return this.get().reduce(t,e)}apply(t){this.get().apply(t)}filter(t){return new zi((()=>this.get().filter(t)))}toArray(){return this.getEnumerator().toArray()}static from(t){return Ci(t)?new zi((()=>new Si.Enumerator(t[Symbol.iterator]()))):new zi((()=>{const e=t();return e instanceof Si.Enumerator?e:new Si.Enumerator(e)}))}}xi.Enumerable=zi;zi.empty=zi.from([]);var ji={};Object.defineProperty(ji,"__esModule",{value:true});const _i=pi;class Ii extends _i.Enumerator{constructor(t){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=t;this.position=0}}ji.ArrayEnumerator=Ii;var Ti={};Object.defineProperty(Ti,"__esModule",{value:true});const Oi=pi;class Li 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]}}Ti.BufferedEnumerator=Li;var Ai={};Object.defineProperty(Ai,"__esModule",{value:true});class Mi{static padLeft(t,e,o){return Mi.pad(t,e,o,true)}static padRight(t,e,o){return Mi.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}}Ai.String=Mi;Object.defineProperty(fi,"__esModule",{value:true});var Ei=pi;fi.Enumerator=Ei.Enumerator;var Di=xi;fi.Enumerable=Di.Enumerable;var $i=ji;fi.ArrayEnumerator=$i.ArrayEnumerator;var Ri=Ti;fi.BufferedEnumerator=Ri.BufferedEnumerator;var Pi=Ai;fi.String=Pi.String;var Fi={};Object.defineProperty(Fi,"__esModule",{value:true});const Hi=Cs;class Ni extends Hi.Device{}Fi.OutDevice=Ni;var Yi=Do&&Do.__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(bi,"__esModule",{value:true});const Ui=ns;const Wi=fi;const Bi=Fi;class Vi extends Bi.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(t){return Yi(this,void 0,void 0,(function*(){return t instanceof Wi.Enumerator?this.writeImplementation(t):t instanceof Array?this.writeImplementation(new Wi.ArrayEnumerator(t)):this.writeImplementation(new Wi.ArrayEnumerator([t]))}))}writeLine(t){return Yi(this,void 0,void 0,(function*(){return t instanceof Wi.Enumerator?this.writeImplementation(t.append(this.newLineSymbol)):t instanceof Array?this.writeImplementation(new Wi.ArrayEnumerator([...t,this.newLineSymbol])):t?this.writeImplementation(new Wi.ArrayEnumerator([t,this.newLineSymbol])):this.writeImplementation(new Wi.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(t,e){if(!e)e=0;Vi.openers.push({open:t,priority:e});Vi.openers=Vi.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){return Yi(this,void 0,void 0,(function*(){let e;if(typeof t=="string"){const o=Ui.Locator.parse(t);e=o?yield Vi.open(o):undefined}else{let o=0;do{e=yield Vi.openers[o++].open(t)}while(!e&&o<Vi.openers.length)}return e}))}}bi.Writer=Vi;Vi.openers=[];Object.defineProperty(yi,"__esModule",{value:true});const Gi=bi;class Ki extends Gi.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)))}}yi.Indenter=Ki;var Zi={};Object.defineProperty(Zi,"__esModule",{value:true});const qi=xs;const Xi=as;class Ji extends qi.Reader{constructor(t,e){super();this.prefix=e;this.done=false;this.backend=t instanceof Xi.BufferedReader?t:Xi.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 Ji(t,e):t}}Zi.PrefixReader=Ji;var Qi={};var ta=Do&&Do.__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(Qi,"__esModule",{value:true});const ea=$s;const oa=Bs;const sa=bi;class ia extends sa.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 ta(this,void 0,void 0,(function*(){let t=true;try{yield ea.fsync(this.descriptor)}catch(e){t=false}return t}))}close(){return ta(this,void 0,void 0,(function*(){let t=this.opened;if(t){try{yield ea.close(this.descriptor)}catch(e){t=false}this.descriptor=0}return t}))}writeImplementation(t){return ta(this,void 0,void 0,(function*(){let e=true;const o=Buffer.from(t.reduce(((t,e)=>t+e),""));try{const t=yield ea.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 ta(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 ea.open((t.isRelative?"":oa.sep)+t.path.join(oa.sep),"w")}catch(t){e=undefined}return e?new ia(t,e):undefined}))}}Qi.FileWriter=ia;sa.Writer.addOpener(ia.open);var aa={};Object.defineProperty(aa,"__esModule",{value:true});const na=xs;const la=as;class ra extends na.Reader{constructor(t,e){super();this.endMark=e;this.done=false;this.backend=t instanceof la.BufferedReader?t:la.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 ra(t,e):t}}aa.TillReader=ra;var ca={};Object.defineProperty(ca,"__esModule",{value:true});const ha=xs;const da=as;class ma extends ha.Reader{constructor(t,e){super();this.endMark=e;this.done=-1;this.backend=t instanceof da.BufferedReader?t:da.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 ma(t,e):t}}ca.UntilReader=ma;Object.defineProperty(is,"__esModule",{value:true});var ua=as;is.BufferedReader=ua.BufferedReader;var ya=Cs;is.Device=ya.Device;var ba=Ds;is.FileReader=ba.FileReader;var fa=ai;is.FolderReader=fa.FolderReader;var pa=yi;is.Indenter=pa.Indenter;var ga=Ss;is.InDevice=ga.InDevice;var ka=Fi;is.OutDevice=ka.OutDevice;var va=Zi;is.PrefixReader=va.PrefixReader;var wa=xs;is.Reader=wa.Reader;var xa=Gs;is.StringReader=xa.StringReader;var Sa=Qi;is.FileWriter=Sa.FileWriter;var Ca=aa;is.TillReader=Ca.TillReader;var za=ca;is.UntilReader=za.UntilReader;var ja=bi;is.Writer=ja.Writer;Object.defineProperty($o,"__esModule",{value:true});const _a=Ro;var Ia=$o.Error=_a;const Ta=is;var Oa=$o.IO=Ta;const La=ns;$o.Uri=La;const Aa=fi;var Ma=$o.Utilities=Aa;class Ea 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 Ia.Message)){if(!e)e=Ia.Level.Critical;if(!s)s=this.region;t=new Ia.Message(t,e,o,s)}if(this.errorHandler)this.errorHandler.raise(t)}requirePrefix(t){return new Ea(new Oa.PrefixReader(this,t),this.errorHandler)}till(t){return new Ea(Oa.TillReader.create(this,t),this.errorHandler)}until(t){return new Ea(Oa.UntilReader.create(this,t),this.errorHandler)}peekIsSymbol(t){return this.peekIs(t??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Da(t,e,o){const s=new Ea(t,e);return new Ma.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 $a{tokenize(t){return Da(t,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((t=>({value:t.value}))).toArray()}}class Ra extends $a{constructor(t){super();this.class="array";this.array=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return Ra.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 Ra}}Ra.completor=[];var Pa;(function(t){function e(t){return typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number"}t.is=e})(Pa||(Pa={}));var Fa;(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:Pa.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})(Fa||(Fa={}));class Ha extends $a{constructor(){super();this.class="boolean"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;const i=o?Ha.literals.filter((t=>t.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Fa.prepend(":",Ha.literals.filter((t=>t.value.startsWith(s[1]?.value??"")))):[];return[...i??[],...(o?[]:Ha.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)}}Ha.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Ha.completor=[];var Na;(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??"(")=="("?Fa.prepend(":",[o]):t.length<=4&&t.slice(0,4).reduce(((t,e)=>t+e.value),"")==":"+o.value?Fa.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?Fa.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?Fa.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?Fa.prepend(":",[o]):Fa.prepend(":",e(t.slice(1)))}t.expressions=o;function s(t,e,o){return t.length>=1&&t[0].value==o.value?Fa.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})(Na||(Na={}));class Ya extends $a{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?Fa.prepend(":",e.complete(s.slice(1),undefined,this)):e&&s.length>=0&&o?Fa.prepend(" ",e?.complete(s,undefined,undefined)):[],...(o?Ya.completorArgument:Ya.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 Ya||!global.Number.isNaN(t)}}Ya.completor=[];Ya.completorArgument=[];class Ua extends $a{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?Fa.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=Fa.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=Fa.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"?[]:Ua.wildcard]:s.length==1&&(t=Ua.wildcard.find((t=>t.value==s[0].value)))?Fa.prepend(t.value,this.completions,o?".":""):s.length>=1&&(t=Ua.wildcard.find((t=>t.value==s[0].value)))?Fa.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?Fa.prepend(".",this.addDot(a,o)):this.properties[s[1].value]?Fa.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),e,o)):Fa.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]),[]),...Ua.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)}}Ua.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Ua.completor=[];class Wa extends $a{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??"")?[Fa.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...i??[],...(o?[]:Wa.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 Wa}}Wa.completor=[];class Ba extends $a{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 Ba}static is(t){return t instanceof Ba}}var Va;(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 Ra(t.map((t=>o(t)))):new Ua(global.Object.entries(t).reduce(((t,e)=>({...t,[e[0]]:o(e[1])})),{}));break;case"string":e=new Wa(t);break;default:e=new Ya(t);break}return e}t.convert=o;t.Array=Ra;t.Boolean=Ha;t.Completion=Fa;t.Object=Ua;t.String=Wa;t.Number=Ya;t.Union=Ba;t.Completor=Na})(Va||(Va={}));class Ga extends So{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 Ka(t,e){return Na.expressions(t,(t=>!t||t[0].value=="*"&&e.value&&e.value.endsWith(t[1]?.value??"")?[Va.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Va.String.add(Ka);class Za extends So{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 qa(t,e){const o=t=>e.array.some(Va.String.is)&&t?e.array.filter(Va.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(Va.String.is)?e.array.filter(Va.String.is).map((t=>({value:t?.value??""}))):e.array.some(Va.Number.is)&&t?e.array.filter(Va.Number.is).map((e=>e.complete(t))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Va.Number.is)?e.array.filter(Va.Number.is).map((t=>({value:(t?.value??"").toString()}))):[];return Na.functions(t,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Va.Array.add(qa);class Xa extends So{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 Ja{stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}class Qa extends Ja{constructor(t,e){super();this.name=e;this.precedence=Qa.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 Qa(t,e)}}Qa.precedence=19;class tn extends So{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 Qa&&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 en(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">",suggestion:{value:">"}})}Va.Number.add(en);Va.String.add(en);class on extends So{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 Qa&&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 sn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">=",suggestion:{value:">="}})}Va.Number.add(sn);Va.String.add(sn);class an extends So{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 nn(t,e,o){return o&&e?.class=="object"?Na.functions(t,(t=>e.completions.filter((e=>e.value.startsWith(t?t[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Va.Object.add(nn);class ln extends So{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 rn(t,e){const o=new ln(t);return e?o.is(e):o}function cn(t,e){return Na.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=="**"?[Va.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"}})}Va.String.add(cn);class hn extends So{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 dn(t,e){const o=new hn(Io(t));return e?o.is(e):o}function mn(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1&&t[0].value==":"?Va.Completion.prepend(":",e.array.filter(Va.String.is).filter((t=>t.value&&t.value!="string")).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):t.length==2&&t[0].value==":"?Va.Completion.prepend(":",e.array.filter(Va.String.is).filter((e=>e.value&&e.value!="string"&&e.value.startsWith(t[1].value))).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):[]}Va.Array.add(mn);class un extends So{constructor(t){super();this.value=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(t,e){return Array.isArray(t)&&Eo(this.value)?dn(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()}}zo((t=>typeof t=="bigint"||typeof t=="boolean"||typeof t=="number"||typeof t=="string"?new un(t):undefined));class yn extends So{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 Qa&&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 bn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<",suggestion:{value:"<"}})}Va.Number.add(bn);Va.String.add(bn);class fn extends So{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 Qa&&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 pn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<=",suggestion:{value:"<="}})}Va.Number.add(pn);Va.String.add(pn);function gn(t,e){return Na.expressions(t,(t=>t&&t?.length==1&&t[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Va.String.add(gn);class kn extends So{constructor(t){super();this.criteria=t;this.precedence=kn.precedence;this.class="Not"}is(t){return!this.criteria.is(t)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}kn.precedence=90;function vn(t,e){const o=new kn(Io(t));return e?o.is(e):o}function wn(t,e,o){return e&&e.class!="object"&&o?Na.expressions(t,(t=>t[0].value!="!"?[]:Va.Completion.prepend("!",e.complete(t.slice(1),o,e))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Va.String.add(wn);Va.Number.add(wn);Va.Boolean.add(wn);Va.Object.add(wn);class xn extends So{constructor(t){super();this.precedence=xn.precedence;this.class="Or";this.criteria=t.reduce(((t,e)=>e instanceof xn?[...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(" | ")}}xn.precedence=30;function Sn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Va.Number.addArgument(Sn);class Cn extends Ma.BufferedEnumerator{constructor(t,e){super(Array.isArray(t)?new Ma.ArrayEnumerator(t):t);this.errorHandler=e}clone(t="(",e=")"){let o=0;return new Cn(new Ma.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&&Cn.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 Ma.Enumerable.from(Ma.Enumerable.empty)}raise(t,e=Ia.Level.Critical,o="grammatical",s){if(typeof t=="string"){if(!s&&this.last)s=this.last.region;t=new Ia.Message(t,e,o,s)}this.errorHandler.raise(t)}static is(t,e){return Array.isArray(t)?t.some((t=>Cn.is(t,e))):typeof t!="string"?t.test(e):t.startsWith("!")&&t!="!"?!Cn.is(t.substring(1),e):t=="any"?Cn.symbol.every((t=>t!=e)):t=="symbol"?Cn.symbol.some((t=>t==e)):t=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(e):t==e}}Cn.wildcard=["*","?"];Cn.separator=["(",")","."];Cn.operator=["!","|"];Cn.comparator=["<","<=",">",">=",":"];Cn.binaryOperator=[" * "," + "," - "];Cn.symbol=[...Cn.wildcard,...Cn.separator,...Cn.operator,...Cn.comparator];function zn(t,e){if(typeof t=="string"){e=e||new Ia.ConsoleHandler;const o=Da(t,e).toArray();t=new Cn(o,e)}e=e instanceof So?e:undefined;const o=[];while(t.peek()){if(t.fetchIf("|"))o[o.length-1]=new xn([o[o.length-1],jn(0,t)]);else o.push(jn(0,t))}return o.length==1?o[0]:new Lo(o)}function jn(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=jn(s,e);break}}return o||i||new Lo([])}const _n=[];function In(t,e){_n.push([t,e])}function Tn(t,e){if(typeof t=="string"){e=e||new Ia.ConsoleHandler;const o=Da(t,e).toArray();t=new Cn(o,e)}e=e instanceof Ja?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=Cn.binaryOperator.some((o=>t.peek(e)?.value==o));i=Cn.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 Qa(NaN)}function On(t,e){let o;const s=typeof t=="number"?undefined:t;for(const s of Ln){const i=s[0](e,t);if(i){o=i;break}}return o||s}const Ln=[];function An(t,e){Ln.push([t,e])}In((t=>{const e=t.fetchIf(":","every","(")&&new Za(zn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));In((t=>{const e=t.fetchIf(":","some","(")&&new hn(zn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));In(Mn(zn));An(Mn(Tn));function Mn(t){return e=>{const o=e.fetchIf("(")&&t(e.clone());if(o&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return o}}In((t=>t.fetchIf(">")&&new tn(Tn(t))));In((t=>t.fetchIf(">=")&&new on(Tn(t))));In((t=>t.fetchIf("<")&&new yn(Tn(t))));In((t=>t.fetchIf("<=")&&new fn(Tn(t))));In((t=>t.fetchIf("!")&&new kn(jn(kn.precedence,t))));In((t=>{const e=t.fetchIf("has","(","any",")")||t.fetchIf(":","has","(","any",")");return e&&new an(e.length==4?e[2].value:e[3].value)}));class En extends So{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 Dn(t,e){const o=new En(t);return e?o.is(e):o}function $n(t,e,o){return o&&e?.class?Na.functions(t,(t=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Va.String.add($n);Va.Number.add($n);In((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 En(o):undefined}));class Rn extends So{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 Pn(t,e){const o=new Rn(t);return e?o.is(e):o}function Fn(t,e,o){return Na.functions(t,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Va.Array.add(Fn);In((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 Rn(o):undefined}));In((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 Xa(o[0].value,s):undefined}));class Hn extends So{constructor(t,e){super();this.name=t;this.criteria=e;this.precedence=Hn.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)??""}`}}Hn.precedence=80;function Nn(t,e,o){const s=(Array.isArray(t)?t:[t]).reduceRight(((t,e)=>new Hn(e,t)),Io(e));return o?s.is(o):s}zo((t=>typeof t=="object"&&!(t instanceof So)&&!Array.isArray(t)?Ao(...Object.getOwnPropertyNames(t).map((e=>Nn(e,t[e])))):undefined));In((t=>{const e=[];let o;while(o=t.fetchIf("identifier","."))e.push(o[0].value);if(t.peekIs("identifier",Cn.comparator)&&(o=t.fetchIf("identifier")))e.push(o.value);return e.length>0?e.reduceRight(((t,e)=>new Hn(e,t)),t.peekIs("identifier")&&(o=t.fetchIf("identifier"))?new Hn(o.value):jn(Hn.precedence,t)):undefined}));In((t=>{const e=t.fetchIf(":","*","any","*")||t.fetchIf("*","any","*");return e&&new ln(e.length==4?e[2].value:e[1].value)}));class Yn extends So{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 Un(t,e){return Na.expressions(t,(t=>!t||t.length==1&&t[0].value=="*"||t.length==2&&t[1].value=="*"&&e.value&&e.value.startsWith(t[0]?.value??"")?[Va.Completion.prepend("",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Va.String.add(Un);In((t=>{const e=t.fetchIf(":","any","*")||t.fetchIf("any","*");return e&&new Yn(e?.length==3?e[1].value:e[0].value)}));In((t=>{const e=t.fetchIf(":","*","any")||t.fetchIf("*","any");return e&&new Ga(e?.length==3?e[2].value:e[1].value)}));class Wn extends Ja{toString(){const t=this.symbol;return this.left.stringify(Wn.getPrecedence(t))+` ${t} `+this.right.stringify(Wn.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 Wn("+",14,e,o);const a=Wn.getPrecedence(t);if(a)s=new Wn(t,a,e,o);return s||i}}function Bn(t,e,o){return[" + "," - "," * "].map((t=>({value:t,suggestion:{value:t}}))).map((s=>Va.Completor.operators(t,(t=>t?o.complete(t,undefined,e):[]),s))).reduce(((t,e)=>t.concat(e)),[])}Va.Number.addArgument(Bn);An(((t,e)=>{let o;const s=t.peekIs(Cn.binaryOperator)&&t.fetch().value;let i;if(s&&typeof e=="object"){let a;let n;let l=0;i=Wn.getPrecedence(s);while(!n&&t.peek(l)){n=t.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Wn.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 Wn(s,i,e,a),t)}else o=new Wn(s,i,e,a)}return o}));An(((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 Qa(+s.map((t=>t.value.replace(",","."))).join("")):new Qa(s.value))}else{s=t.fetchIf("identifier");const e=new Qa(s?s.value:0);i=o.length>0?o.reduceRight(((t,e)=>new Qa(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}));In((t=>{let e;if(t.fetchIf(":")){let o=false;let s=false;let i=1;while(!o&&!s&&t.peek(i)){o=Cn.binaryOperator.some((e=>t.peek(i)?.value==e));s=Cn.comparator.some((e=>t.peek(i)?.value==e));i++}if(o)e=Tn(t)}const o=t.fetchIf("any");return e?new un(e):o&&new un(o.value)}));In((t=>{t.raise(`Ignoring unknown token "${t.fetch()}"`);return undefined}));function Vn(t,e,o={input:[],identifier:[]}){return Gn[e?.class]?.(t,e,o)??e}const Gn={};function Kn(t,e){Gn[t]=e}Kn("And",((t,e,o)=>new Lo(e.rules.map((e=>Vn(t,e,o))))));var Zn;(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})(Zn||(Zn={}));Kn("EndsWith",((t,e,o)=>{const s=Zn.argument(e.needle,o);return s?new Ga(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("Every",((t,e,o)=>new Za(Vn(t,e.criteria,o))));Kn("FunctionCall",((t,e,o)=>{const s=t[e.identifier];const i=s?zn(s.definition):undefined;const a=i?Vn(t,i,{input:o?.input?.concat(e.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Xa(e.identifier,e.argument,a)}));Kn("GreaterThan",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new tn(s):e}));Kn("GreaterThanOrEqual",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new on(s):e}));Kn("Has",((t,e,o)=>{const s=Zn.argument(e.property,o);return s?new an(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("Includes",((t,e,o)=>{const s=Zn.argument(e.needle,o);return s?new ln(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("LesserThan",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new yn(s):e}));Kn("LesserThanOrEqual",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new fn(s):e}));Kn("Not",((t,e,o)=>new kn(Vn(t,e.criteria,o))));Kn("Or",((t,e,o)=>new xn(e.criteria.map((e=>Vn(t,e,o))))));Kn("Property",((t,e,o)=>new Hn(e.name,e.criteria&&Vn(t,e.criteria,o))));Kn("Some",((t,e,o)=>new hn(Vn(t,e.criteria,o))));Kn("StartsWith",((t,e,o)=>{const s=Zn.argument(e.needle,o);return s?new Yn(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("Is",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new un(s):e}));class qn extends So{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(", ")}]`}}zo((t=>Array.isArray(t)?new qn(t.map(Io)):undefined));function Xn(t,e){const o=Io(t);return e?o.is(e):o}function Jn(t,e){const o=Io(t);return o.filter(e)}const Qn=z({emit:c()});var tl;(function(t){let e;(function(t){t.type=z({property:j().optional(),properties:h(j(),j()).optional()})})(e=t.Element||(t.Element={}));t.type=e.type.extend({smoothlyFilterUpdate:Qn,smoothlyFilterManipulate:Qn})})(tl||(tl={}));const el='.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 ol=el;const sl=class{constructor(e){t(this,e);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Ao();this.expanded=false}updateHandler(t){t.stopPropagation();if(tl.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=Ao(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=Ao());this.filters.forEach((t=>t(this.criteria)))}render(){return e(s,{key:"458866acba458b727749aab418c5d07b009f0886"},e("slot",{key:"6deb9fb89f67c8adc89c88b67762b3200953ed29",name:"bar"}),e("smoothly-filter-field",{key:"f3c3c18a6385b7abfeb82ec2320312f0a13f439e",criteria:this.criteria,ref:t=>this.field=t}),this.criteria.toString()!=""&&e("smoothly-icon",{key:"5e7586e48cd66190af3d48ab013c1af4ff006acf",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),e("div",{key:"742d3c1ab86806412d5ab95bf19249feffb2cd35",class:this.expanded?"container arrow-top":"hidden"},e("slot",{key:"e8837329167c794efbcbb255ca9c50def503ef3f",name:"detail"})),e("smoothly-icon",{key:"0ebf30bb6797347fa77dec156f48c4b0a9d22e89",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),e("div",{key:"31f476a863f44affca3c643529331e769f9658a0",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};sl.style=ol;const il=".sc-smoothly-filter-field-h{flex-grow:5}";const al=il;const nl=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(zn((t=this.value)!==null&&t!==void 0?t:""))}updateValue(t){this.value=t.detail.filter}render(){return e(s,{key:"101fba7d3f376e7b556425daf64c5ac8932fefbc"},e("smoothly-input",{key:"b0652849fec0e9748b289cc5b6a1dd556906fbba",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"))}};nl.style=al;const ll=".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 rl=ll;const cl=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 Lo&&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 Hn&&t.name==o&&(t.criteria instanceof ln&&t.criteria||t.criteria instanceof Hn&&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 Lo){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=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(t){return this.property.split(".").reduceRight(((t,e)=>Nn(e,t)),rn(t))}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Hn&&t.name==o&&(s.length==0||!!t.criteria&&this.findInstanceOf(t.criteria,s.join(".")))}render(){return e("smoothly-input",{key:"90646ba0c33a81236352bc130c9139d652473b64",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:"f6ba39d46857fb3ac409c9ae4cc404b0dca9a7bd"}))}};cl.style=rl;const hl=".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 dl=hl;const ml=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 Lo&&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 Hn&&t.name==s?this.isCriteria(t.criteria,i.join("."),o[s]):this.multiple?t instanceof En&&t.value.some((t=>t==o))||this.type=="array"&&t instanceof Rn&&t.criteria.some((t=>t==o)):t instanceof un&&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 So))o=s?Ao(o,s):o;else if(o instanceof Lo){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=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Hn&&t.name==o&&(t.criteria instanceof En||t.criteria instanceof un||t.criteria instanceof Rn||t.criteria instanceof Hn&&this.findInstanceOf(t.criteria,s.join(".")))}getCriteria(t){let e;if(this.multiple&&j().array({criteria:"minLength",value:1}).is(t))e=this.type=="array"?Pn(t):Dn(t);else if(typeof t=="string")e=Xn(t);else e=undefined;return e&&this.property.split(".").reduceRight(((t,e)=>Nn(e,t)),e)}render(){return e("smoothly-input-select",{key:"7880e87f45d9227a6663854c8eb427ac39f0bce8",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:"b1ec133090f874ce79645ba2e82718d78590282c",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),e("slot",{key:"3b2dd729d7e0a9fc272d7bdaeb5ae35916afdac6",name:"items"}))}get element(){return i(this)}};ml.style=dl;const ul=".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 yl=ul;const bl=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 Lo&&t.rules.length>0){this.active=Object.entries(this.properties).every((([e,o])=>t.rules.some((t=>{const s=!this.not?t:t instanceof kn?t.criteria:undefined;return o==""?!(s instanceof Hn&&s.name==e):this.isCriteria(s,e,o)}))))}else this.active=false}isCriteria(t,e,o){const[s,...i]=e.split(".");return t instanceof Hn&&t.name==s&&(t.criteria instanceof un&&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 Lo){for(const[t,e]of Object.entries(this.properties)){const s=!this.active||this.active&&e==""?undefined:this.not?vn(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=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(e.bind(this))}createCriteria(t,e){const[o,...s]=t.split(".");return Nn(o,s.length==0?Xn(e):this.createCriteria(s.join("."),e))}findInstanceOf(t,e){const o=!this.not?t:t instanceof kn?t.criteria:false;const[s,...i]=e.split(".");return o instanceof Hn&&o.name==s&&(i.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,i.join(".")))}render(){return e("smoothly-icon",{key:"2fc0a0d6ad73406cacdb79964618ec4a97f7cfdf",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};bl.style=yl;var fl;(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})(fl||(fl={}));const pl={};function gl(t,...e){e.forEach((e=>pl[e]=t))}function kl(t){const e=t.headers.get("Content-Type");const o=e&&e.split(";");const s=pl[o?.[0]??"plain/text"];return s?s(t):t.text()}const vl={};function wl(t,...e){e.forEach((e=>vl[e]=t))}function xl(t,e){const o=vl[e?.split(";")[0]??""];return o?o(t,e):t}function Sl(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function Cl(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const zl=[["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 jl;(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"&&zl.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=zl.find((([e,o,s])=>e==t));return[o?o[1]:Cl(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=zl.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()))]:[Sl(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"}})(jl||(jl={}));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))))&&fl.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||jl.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:jl.to(s),body:["GET","HEAD"].some((t=>t==o.method))?undefined:await xl(await o.body,o.header.contentType)}}t.to=o;function s(t){const e=new URL(t.url);return{method:fl.parse(t.method)??"GET",url:e,header:jl.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:kl(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:fl.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=jl.is;t.from=jl.from;t.to=jl.to})(t.Header||(t.Header={}))})(_l||(_l={}));const Il=typeof Response!="undefined"?Response:globalThis.Response;var Tl=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 Ll,Al,Ml,El,Dl,$l,Rl,Pl,Fl;class Hl{get state(){return Tl(this,El,"f")?"closed":"opened"}set onMessage(t){if(Tl(this,Al,"f").length&&t){Tl(this,Al,"f").forEach(t);Ol(this,Al,[],"f")}Ol(this,$l,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();Ol(this,Rl,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();Ol(this,Fl,t,"f")}constructor(t,e){Ll.add(this);Al.set(this,[]);Ml.set(this,[]);El.set(this,false);Dl.set(this,void 0);$l.set(this,void 0);Rl.set(this,void 0);Fl.set(this,void 0);Ol(this,Dl,t,"f");if(e)Ol(this,Ml,undefined,"f");Tl(this,Dl,"f").addEventListener("open",(()=>{if(Tl(this,Fl,"f"))Tl(this,Fl,"f").call(this);Tl(this,Ll,"m",Pl).bind(this)}));Tl(this,Dl,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);Tl(this,Ll,"m",Pl).call(this);if(Tl(this,$l,"f"))Tl(this,$l,"f").call(this,e);else Tl(this,Al,"f")?.push(e)}));Tl(this,Dl,"f").addEventListener("close",(()=>{if(Tl(this,Rl,"f"))Tl(this,Rl,"f").call(this);Ol(this,El,true,"f")}))}send(t){if(Tl(this,Ml,"f"))Tl(this,Ml,"f").push(this.processSend(t));else Tl(this,Dl,"f").send(this.processSend(t))}}Al=new WeakMap,Ml=new WeakMap,El=new WeakMap,Dl=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Fl=new WeakMap,Ll=new WeakSet,Pl=function t(){Tl(this,Ml,"f")?.forEach((t=>Tl(this,Dl,"f").send(t)));Ol(this,Ml,undefined,"f")};class Nl extends Hl{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}}class Yl extends Hl{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 Ul extends Hl{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var Wl=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 Bl=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 Vl,Gl,Kl;class Zl{get json(){if(!Wl(this,Vl,"f"))Bl(this,Vl,new Yl(this.backend,this.isOpen),"f");return Wl(this,Vl,"f")}get string(){if(!Wl(this,Gl,"f"))Bl(this,Gl,new Ul(this.backend,this.isOpen),"f");return Wl(this,Gl,"f")}get arrayBuffer(){if(!Wl(this,Kl,"f"))Bl(this,Kl,new Nl(this.backend,this.isOpen),"f");return Wl(this,Kl,"f")}constructor(t,e){this.backend=t;this.isOpen=e;Vl.set(this,void 0);Gl.set(this,void 0);Kl.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}Vl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap;var ql;(function(t){t.Factory=Zl})(ql||(ql={}));const Xl=[["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 Jl;(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"&&Xl.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=Xl.find((([e,...o])=>e==t));return[o?o[1]:Cl(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=Xl.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()))]:[Sl(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}})(Jl||(Jl={}));var Ql;(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||Jl.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})(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||Jl.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function o(t){return new Il(await xl(await t.body,t.header.contentType),{status:t.status,headers:new Headers(Jl.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:Jl.from(t.headers),body:t.status==101?undefined:kl(t),...t.webSocket&&{socket:new ql.Factory(t.webSocket)}}}t.from=s;function i(t,e){const o=Ql.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||Jl.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 ql.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=Jl;t.Like=Ql})(tr||(tr={}));const er=or(globalThis.fetch);er.create=or;function or(t){return async e=>{const o=_l.create(e);return tr.from(await t(o.url.toString(),await _l.to(o)))}}var sr;(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})(sr||(sr={}));function ir(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 ar(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))),{})}gl((async t=>await t.text()),"text/plain","text/html");gl((async t=>await t.json()),"application/json");gl((async t=>await t.arrayBuffer()),"application/pdf");gl((async t=>sr.from(await t.formData())),"multipart/form-data");gl((async t=>ar(await t.text())),"application/x-www-form-urlencoded");wl((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");wl((async t=>JSON.stringify(t)),"application/json");wl((async t=>t),"application/pdf");wl((async t=>ir(t)),"application/x-www-form-urlencoded");wl((async t=>t instanceof globalThis.FormData?t:sr.to(t)),"multipart/form-data");var nr;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(nr||(nr={}));var lr;(function(t){let e;(function(t){t.type=z({edit:c(),readonly:_(),listen:c(),reset:c(),setInitialValue:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=z({emit:c()});t.type=e.type.extend({changed:_(),value:M().optional(),smoothlyFormDisable:o});t.is=t.type.is})(lr||(lr={}));var rr;(function(t){t.types=["plain","grid","border","line","transparent"];t.type=j(t.types);t.is=t.type.is})(rr||(rr={}));var cr;(function(t){let e;(function(t){t.type=z({register:c(),unregister:c(),getValue:c(),color:r.type.optional(),name:j(),invalid:_().optional(),looks:rr.type.optional(),defined:_().optional(),binary:c().optional()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=z({emit:c()});t.type=e.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyKeydown:o.optional(),smoothlyInputForm:o.optional(),parent:lr.type.optional()});t.is=t.type.is;function s(t){if(t.parent instanceof mr){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})(cr||(cr={}));const hr='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 dr=hr;const mr=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=>lr.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(cr.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(L.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 er(_l.create(s=="GET"?{method:s,url:`${o}?${ir(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=>nr.is(t)&&t.clear())));this.smoothlyFormClear.emit()}async edit(t){await Promise.all([...this.inputs.values()].map((async e=>lr.Element.type.is(e)&&e.edit(t))));this.readonly=!t;this.smoothlyFormEdit.emit(t)}async reset(){await Promise.all([...this.inputs.values()].map((t=>lr.Element.type.is(t)&&t.reset())));this.changed=[...this.inputs.values()].some((t=>lr.type.is(t)?t.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((t=>lr.Element.type.is(t)&&t.setInitialValue())))}render(){return e(s,{key:"2a470af3268fe4b09126d86c2f1c01e1b6ac2ab2"},e("smoothly-spinner",{key:"e296f07867de64502324dc2ec4e50d8161ba8128",overlay:true,hidden:!this.processing}),e("form",{key:"4714f583928de712a0825df741f8cc5e308ad61c",onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},e("fieldset",{key:"540893b763c751596966cd0004c6f835fb0bf707"},e("slot",{key:"09e81fe12b2e9058a3a14321f4e25ac79dab35ae"})),e("div",{key:"1915f8ffba845ed1d6b66404c78c5e1e6f3d87fd"},e("slot",{key:"a0143470fa52ed16cafe413fc951c2c26c9419ec",name:"clear"}),e("slot",{key:"d941855ec112d4854c1be75545101a6a8e00447e",name:"edit"}),e("slot",{key:"e53b2069d3f5b6a2a3c395727f057fccf510ff3e",name:"reset"}),e("slot",{key:"b0bdd67438097409ce9c9ec927cbadbd86959bef",name:"delete"}),e("slot",{key:"5897b076b5b2ad467397ee8a820397f8ebaacbd7",name:"submit"}))))}get element(){return i(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};mr.style=dr;const ur=".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 yr=ur;const br=class{constructor(e){t(this,e)}render(){return e(s,{key:"8e9b91eba4771356a02e26aa874149e9aec1e49e"},e("div",{key:"322a7b8c4053c5307e09aedc034aec3bd58cfa40"},e("smoothly-form-demo-all",{key:"36cff0fce86410559185639407888e064aa7f6f5"}),e("smoothly-form-demo-pet",{key:"8ac19a250eae3f03b36b7eefa4bb0b8fcef9bc67"}),e("smoothly-form-demo-card",{key:"e92a4974e434fc122a4d6a9036031c19eb8fbdce"}),e("smoothly-form-demo-login",{key:"0551748193b700acbc0ef91afe2e330ac67c1ec6"}),e("smoothly-form-demo-prices",{key:"98e1cd3159817b7943b0fcab4b8e455527679aef"}),e("smoothly-form-demo-typed",{key:"ee3a5a705e8295e6f030201876e8e9e6e0b17ce5"}),e("smoothly-form-demo-transparent",{key:"f245050d3f3838922c51ab02a6fc7c51d030be49"}),e("smoothly-form-demo-date",{key:"b9dab7e216a735a7d4a71e63e9dcdcbb261d35b9"}),e("smoothly-form-demo-schedule",{key:"5f7073b2b7d9ec29a787d1c47a54261d7a312735"}),e("smoothly-form-demo-date-range",{key:"6d0c60c7aac3037d3d697e1440ce3643fd107298"}),e("smoothly-form-demo-controlled",{key:"e307e69e96b98c85cd15f6e1e68facd7a86ebcb0"})))}};br.style=yr;const fr=class{constructor(e){t(this,e)}render(){return e(s,{key:"0385c6c02d1a129cae00d079094839f60b9e4d59"},e("h2",{key:"9ab19de22f878f88a3f0f7dec246645f22621374"},"All inputs"),e("smoothly-form",{key:"0afb15a06693181711b9002415e0729db1042c3a",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:"ee53cbde0c7bfe23cd594857fc835cdbc8997be8",readonly:true,name:"First Name",value:"John"},"First name"),e("smoothly-input",{key:"e8dabfb02d84e6fef81d6a411f354cded4a13125",showLabel:false,name:"Last name",value:"Doe"},"Last name",e("smoothly-input-clear",{key:"554eceb647a10c6449a6146a8d43e7642c7da09f",size:"icon",slot:"end"})),e("smoothly-input",{key:"c225f9078d26f1814063e40fd0de1e3df43275cf",type:"phone",name:"Phone",value:"777888999"},"Phone",e("smoothly-input-reset",{key:"6eba87e2b65d2b8153415bd9bdca31dd0a230acc",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"661e2df9a57c25869211d817490083593bf4a7a6",clearable:true,name:"radioFirstInput"},e("label",{key:"4745c265ffa3c99361d95ea171d8775aa70aa906",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"aa8efcfd71159c207606f1b7f4006124647f4da4",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"b9003abf9da82573c37f4c863035518fe1bde187",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"756a1f483a05e675abd69b4f59a3596b873b373d",value:"third"},"Label 3")),e("smoothly-input-color",{key:"9696ab6161de5d76d8c7c1a880cbaf170a1fe981",name:"color"},"Color"),e("smoothly-input-select",{key:"0aef27d0a847e0871b35d31567f3ebc4f1cc39b1",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"6845e4016112205e5eca824be16ff117989e1c63",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"b4d7da0babc1128898c40f40d403b8319a916b0e",value:"1"},"January"),e("smoothly-item",{key:"4d29813b606c9830ca2985ff183188dfde019552",value:"2"},"February"),e("smoothly-item",{key:"891c359e70a28f486d13cc70d7e8302d974ffd44",value:"3"},"March"),e("smoothly-item",{key:"9fc4b6a56010f4e56ea3bad24653fa3c1164db37",value:"4"},"April"),e("smoothly-item",{key:"c1fc515cb9bdbbe2b4fbb574b53a546d7eaa4de3",value:"5"},"May"),e("smoothly-item",{key:"c7a3cf81a4f8878a823a1b0ef80e0bc205a0382c",value:"6"},"June"),e("smoothly-item",{key:"b59a01fcca7308602d6b064741d53e234692a66d",value:"7"},"July"),e("smoothly-item",{key:"480b0c43f48a9afd806736ef9db90c1335401138",value:"8"},"August"),e("smoothly-item",{key:"622289d68d83608692fa991eda21e10cf377c425",value:"9"},"September"),e("smoothly-item",{key:"3720fbaf17cc74d5f1f503167e4d7d954ab4719d",value:"10"},"October"),e("smoothly-item",{key:"4805352a3e5800b1385ccfbe3d18bd11cf7f35b1",value:"11"},"November"),e("smoothly-item",{key:"78b77bd55d5fdd9e386feb2775ab783db46d4dfc",value:"12"},"December")),e("smoothly-input-select",{key:"f49f1ed662791f05f0916a390025a73be1fb2538",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"734cd3e250cc78ba9e6f2e18e626574fbcf453b0",value:"folder",selected:true},e("smoothly-icon",{key:"f7feaa7a33f71d80e723afc4a779742247fd8b66",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"c712dbf6b6ff8f067c19f8f23cf47ee3544f1348",value:"camera"},e("smoothly-icon",{key:"a8a9d32cc749a88c8e4455e3f3c81a492a7d7278",size:"small",name:"camera-outline"}))),e("smoothly-input-checkbox",{key:"a60e0866e5e7cb6ff1c218fb56dd2c4b1df1935a",name:"checkbox"},"Check the box"),e("smoothly-input-checkbox",{key:"5655599fb6b1426a1c6e18843cda6dac48613c47",name:"checkbox2",checked:true},"Check the box 2"),e("smoothly-input-range",{key:"8ad6d3fc94a13809380c2085ac7b594d627987f6",step:1,name:"range3",value:20,label:"Range"}),e("smoothly-input",{key:"3eadfff18e15a71158da0e172d6615117e2f7508",name:"pets.0.name"},"First Pet's Name"),e("smoothly-input-range",{key:"38fa8ab54b31e88279525a45e639fa83ba7623d2",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),e("smoothly-input",{key:"13e749bd9bb697cd65e2d308c3a1f430621bcf25",name:"pets.1.name"},"Second Pet's Name"),e("smoothly-input-range",{key:"d7ce9434254e3c8fe95d316ff8ea0d733a21ed1a",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),e("smoothly-input",{key:"cad73bed3fefb8ecfccf69a60af7d6eaecade27e",name:"pets.2.name"},"Third Pet's Name"),e("smoothly-input-range",{key:"2b522b38ef71ba8bd5cc3677a88ee7ce14ed8a79",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),e("smoothly-input-file",{key:"f6855448a3e5acca833a25e857a9081fe3b44a94",name:"profile",placeholder:"Click or drag your profile picture here..."},e("span",{key:"2ec12ef414b0faaf4ebd318108c18cc06d85b9a9",slot:"label"},"Profile"),e("smoothly-icon",{key:"6e498f13b43e45472ab3ae1284061506bb6a3852",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),e("smoothly-input",{key:"66c13d36dd68e936cec4964a6497d23cc4e34f12",type:"duration",name:"duration",value:{}},"Duration"),e("smoothly-input-clear",{key:"ae92ab8da0139b9b2cd99c4713dbcb33c0990225",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),e("smoothly-input-edit",{key:"1af80f87c16cc87698fe93eaf6666eb830f60dce",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),e("smoothly-input-reset",{key:"e254e07931e20103f7517766a91762465c6e6b50",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"4e847f15c8f56d8d81fb8f55fda2dc78f075755b",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"14c7ea0a41f3a6f6da212886e390af8d49d47108",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const pr=class{constructor(e){t(this,e)}render(){return e(s,{key:"de64604dbfaa81289d06fb7f035e266385a24c53"},e("h2",{key:"de36abc60544d5f6023d06933c2234cf04887253"},"Card"),e("smoothly-form",{key:"51aefd9496fd4cb72a61a6e922db326633bd1928",looks:"grid",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail))},e("smoothly-input",{key:"c9cd0695bd416621f1758ece4b54e68e32c5d24a",type:"card-number",name:"card"},"Card #"),e("smoothly-input-submit",{key:"b63581365b31bc1e0dfd1c5650a59a4dc32bcfe7",size:"icon",slot:"submit",color:"success",fill:"solid"}),e("smoothly-input",{key:"494e6dd5232f5b3d2906cdfe1c4953518b5a7abe",type:"card-expires",name:"expires"},"Expires"),e("smoothly-input",{key:"f4244649c75f5f6b9495aa5ee32a21ac23931d9a",type:"card-csc",name:"csc"},"CVV/CVC"),e("smoothly-input",{key:"f71a28674d61243e44710511f648e77cd3186d89",type:"text",name:"name.first"},"First Name"),e("smoothly-input",{key:"a5b116a0c499895eeb8a0819d7db8573aa7e4b26",type:"text",name:"name.last"},"Last Name")))}};const gr=class{constructor(e){t(this,e);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=w.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(!C.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:"e312871aa3d76c94091e33d4ca6594a12de64673"},e("h2",{key:"01f69f3ac2f7aa936b97604c9ed9f2006b72d845"},"Controlled"),e("smoothly-form",{key:"999072a4a6bab7ee0d00810e4677fe96948a5591",readonly:true,looks:"grid",onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input",{key:"132707e9e475d5b2621528410998ef2b3a9ff589",type:"text",name:"name",value:this.name},"Name"),e("smoothly-input-select",{key:"f99fdb9c0389f9aa0d41ca19345a59f81626a789",name:"currency"},e("span",{key:"07e163ae48a752ea46818ced40c54f6c02b20291",slot:"label"},"Currency"),this.currencies.map((t=>e("smoothly-item",{selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"a4541576d6174d00edc35dc30d16e7107f8e787e"},"Dummy"),e("smoothly-input-month",{key:"52795ebfac126f55b07a670ed1c5d74e408e317c",name:"date",value:this.date,next:true,previous:true},e("span",{key:"6c2020021f005783a25136f68c873d5536b87d71",slot:"year-label"},"Year"),e("span",{key:"ff7c8e28d5c0dd2cb503613a0ecdd3f0f1b14e97",slot:"month-label"},"Month")),e("smoothly-input-edit",{key:"3762d99e64f8fd135050b3e174db72fa3dfa776c",slot:"edit",size:"icon",color:"primary",fill:"default"}),e("smoothly-input-reset",{key:"3c65df079fb6cf79a9c9f9dcf8d078e53a9b211f",slot:"reset",size:"icon",color:"warning",fill:"default"}),e("smoothly-input-submit",{key:"89ebbedc35474bdcd13d210dd64f2fbeda3efc76",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const kr=".sc-smoothly-form-demo-date-h{display:block}";const vr=kr;const wr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=z({date:m("isoly.Date",w.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"c855ac16e0490761f1c8613aea19ad2408170f61"},e("h2",{key:"3668f293c8ab4980e4e25782d6ca17afdf0eacbc"},"Date input"),e("smoothly-form",{key:"cc403e758e981e551901533b40623aed9fb89437",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date",{key:"4b3aa55a1ad49138fa2894c4f953cd5c3ea18551",name:"date"},"Date"),e("smoothly-input-submit",{key:"da1083abf5b98c967835443321cb4e3dfef52003",slot:"submit"},e("smoothly-icon",{key:"892de2aea93d01e62effcb14d25e78ea00778b14",name:"checkmark-outline"}))))}};wr.style=vr;const xr=".sc-smoothly-form-demo-date-range-h{display:block}";const Sr=xr;const Cr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=z({range:m("isoly.DateRange",I.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"8268dbce8002112c47995db37c6c4db5dfbd5b53"},e("h2",{key:"aa3db2510b5e19dde1f362870a29ee9c8d2199e6"},"Date-range input"),e("smoothly-form",{key:"1f79aa6badf665f27a4e16cf8694f07e6159a7ce",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date-range",{key:"0844d7c580ebaebf4b0241446d1a8c73621a3441",name:"range"},"Range"),e("smoothly-input-submit",{key:"530f99ec11e4ae634852572a1e39e4aa3a221f43",slot:"submit"},e("smoothly-icon",{key:"eec2006e62c67157029dd9bf1c79be6f4fb8bee7",name:"checkmark-outline"}))))}};Cr.style=Sr;const zr=class{constructor(e){t(this,e)}render(){return e(s,{key:"805689f0a9b1f399f36da3a4375f79a65d350f61"},e("h2",{key:"6afdfc52c85ba2c2a43b90aafc5509f66976ebea"},"Login"),e("smoothly-form",{key:"e671b3b795cffd38b35254cb29700ce1bdcd14ea",looks:"border"},e("smoothly-input",{key:"e89a85e6321bafaa4dd4d13ba69b6ad0201a3eea",type:"text",name:"username"},"Username"),e("smoothly-input",{key:"68c7a62b137d8e7c05da4d55a72482be1afc2b0c",type:"password",name:"password"},"Password"),e("smoothly-input-reset",{key:"90bc800f57c53038c16f6337c19adf38c97d00b4",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"2f7f66e7fb38ea1ba846745bbc352b9fa15e4ec9",slot:"submit"})))}};const jr='.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=jr;const Ir=class{constructor(e){t(this,e);this.hasOwner=false;this.owner={};this.value=undefined}render(){var t,o;return e(s,{key:"50d7eaf7522daa10b3f5832a87fff8674b162dea"},e("h2",{key:"1262eb5e63ca5d7874f776837470a88bf5b8769e"},"Pet"),e("h3",{key:"48e2bedbc5a62495d3b6f75dcc94b1b81b746e33"},"Value"),e("smoothly-form",{key:"2d2f7c7ce198228e17c7e7ae1e507d7a97d73ff0",looks:"border",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail)),onSmoothlyFormInput:t=>this.value=Object.assign({},t.detail)},e("smoothly-input",{key:"d5b952488d27c212a51bb0f19c07f32a4b02bdc2",type:"text",name:"name.first"},"Name"),e("smoothly-input",{key:"160482d107ee5fbb66e6e9be4dd17549085ec66b",type:"integer",name:"age"},"Age (Years)"),e("smoothly-input-checkbox",{key:"1a3a7229c18eb1adff2ab0f80fc79b3c02e5c6fe",name:"hasOwner",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{this.hasOwner=t.detail.hasOwner;t.stopPropagation()}},"Has Owner"),this.hasOwner&&e(a,{key:"c358b2d9b6b7160187ffc2005c31acb2e245e195"},e("smoothly-input",{key:"181824a1a8c9336a6281a2c75c0dca8dd1efec5d",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:"48c584e660552cbcb6b8591cb76db4ad82a1574a",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:"0337e5784fda5203110240ce57a59999b95eb0b6",name:"owner.picture"},e("span",{key:"376e9b3c74bd3c91b7c4830088214d6f25d97b2f",slot:"label"},"Owner picture")),e("smoothly-input-date",{key:"a46ac3dcf0f642c3e73a05e372b89c3d2bc05af4",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:"091a40ffac1d94fb84ab34fafe53e6f3fdc4eb2e",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:"481c3e71f7fa1c4a6212c2a7793b29520a0a4a7a",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:"2a1d02d5822bba65319793184fca0bb0c228b09f",name:"owner.favoriteHat"},e("span",{key:"3b0d1c7ab9d640a6beb7386d3fcf32d01c4862bd",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:"0213d002d04794540650094b87c2f51dc4c79dcc",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:"779bc55c0302cfbdd760fcca76d4218d248f04bc",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:"95dc274f29b977810e20393866165337f5e8b375",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:"6c54742a964b261f6149eff7a3f8f8f99def63eb",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:"d0e0717f5ab5654263f61b19b9aaaeb744884f2b"},e("span",{key:"de40ea4e5537031fa91affb4282ee438282f3051",slot:"summary"},"Summary"),e("div",{key:"b416d9370549c02235eee7757fd9fc1d42004394",slot:"content"},e("smoothly-input",{key:"7351bc85a7388f5f8b77f6b1d528c566c3fa97a5",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),e("smoothly-input-file",{key:"9f296928fd94ac6f35a1614595da37b3995b107f",name:"summary.picture"},e("span",{key:"d7fe9c0f53565bef390c8503a58f6f50868610a7",slot:"label"},"Summary picture")),e("smoothly-input-date",{key:"44c483cf3c8f71be268d90d5f468a49c22cd2f8b",name:"summary.birthday"},"Summary birthday"),e("smoothly-input-date-range",{key:"b5124dfc4e7816e7ba4f820a5aca3d14af0fb837",name:"summary.ownedRange"},"Summary ownedRange"),e("smoothly-input-range",{key:"ea62f55332b6b3e125903d3c6baa380689ed864e",name:"summary.height",label:"Height"}),e("smoothly-input-select",{key:"99ffc93ca528a13281fe6dd188139b638f5c8ba5",name:"summary.favoriteHat"},e("span",{key:"0da54511b795b429e768a119074d5392abaf2b9c",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:"3419ad81154cb4af9bb372c3045925456d4fe7fd",name:"summary.month"},e("span",{key:"6794ccd25d220bdb0612adcfeb9389885c53ebb6",slot:"month-label"},"Summary month")),e("smoothly-input-color",{key:"bd5a2efeee77428de15a54f85f3f23f44e8ca024",name:"summary.color"},"Summary Color"),e("smoothly-input-radio",{key:"21ede19a4f9112977e253fb51cea2aa39ad819f6",name:"summary.favoritePizza"},e("span",{key:"889b43b3ee59c109fab04a38dde1ea7a804c84f9",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:"47a39cc2ddd1d4745b25125b59d3a85f7f68b6c1",name:"summary.hasPet"},"Has Pet"))),e("smoothly-tabs",{key:"bff4910b703b19ac81799c63704a47c79690dec1"},e("smoothly-tab",{key:"03a01fc8534e7228be5a042fc2f1a605700c6019",label:"Dog"},e("smoothly-input",{key:"b70ec959c8415429276bac30aac2f799eaad9e48",type:"text",name:"dog.breed"},"Breed"),e("smoothly-input-file",{key:"098a0dec9bd010569eca48f0736ed354d478e4c2",name:"dog.picture"},e("span",{key:"089b32a2ff3926d59b9ce01e8a0f73f0eddde01b",slot:"label"},"Dog picture")),e("smoothly-input-date",{key:"d365a6a7c8cbc7df81f12cc2be3d1b5958d694bd",name:"dog.birthday"},"Dog birthday"),e("smoothly-input-date-range",{key:"b063302e3f366a53071cf0fb2e5d87e39c5d9a44",name:"dog.dateRange"},"Dog date range"),e("smoothly-input-select",{key:"d2c7c1c0ef6ef428bf667a3d61f752761c0936dc",name:"dog.favoriteHat"},e("span",{key:"82759482ed126788312fd90fb7500bd4622eab32",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:"bc0ee988a7e70ce19d1735811283c268ae9eed04",name:"dog.favoriteColor"},"Dog's Favorite Color"),e("smoothly-input-radio",{key:"e84dd8ad3145a438fb640bfcd168991450021c64",name:"dog.favoritePizza"},e("span",{key:"18907f9eac1bafbabcde910add33cf33d5b23a2c",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:"53ae41ef70927bb4ec0f9ee52f6d702606d9f367",name:"dog.hasPet"},"Has Pet")),e("smoothly-tab",{key:"ecda137898640fb248b79cceff42f25c5f854160",label:"Cat",open:true},e("smoothly-input",{key:"897f0578ab304103685a1adabc231cd14d15312a",name:"cat.favoriteFood"},"Favorite Food"))),e("smoothly-input-submit",{key:"4e99398ce10eb1629fb24d5552e050a543614e45",size:"icon",slot:"submit",color:"success",fill:"solid"})),e("smoothly-display",{key:"a9f5819004771a10f89f1d1cdc63fe2be8ab3777",type:"json",value:this.value}))}};Ir.style=_r;const Tr=class{constructor(e){t(this,e)}render(){return e(s,{key:"fefcedbfe8f22921bea912762f1f6d8caf6ea3e4"},e("h2",{key:"c18e909d513549a9a8cc28b2b1d8982b96703343"},"Prices"),e("smoothly-form",{key:"1eb8cab4a08f19f246c5cd46362452b416db1573",looks:"line"},e("smoothly-input",{key:"75439c727baa6c39b500deec470d0a32953fddc7",type:"price",name:"no"},"No currency"),e("smoothly-input",{key:"11b3a7ab0e4dd1626e7efea03c56ba4c1c5e9c27",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),e("smoothly-input",{key:"837b810384d7818df18c2ed9d6d08eb965124627",type:"price",name:"usDollar",currency:"USD"},"USD"),e("smoothly-input",{key:"6ffb11da5cecbbeeef8b6482cbe3cee39e16b6ef",type:"price",name:"pounds",currency:"GBP"},"GBP"),e("smoothly-input",{key:"4409191ea5b5b0ded31bffc9408927c36bb1bd3b",type:"price",name:"peso",currency:"UYW"},"UYW"),e("smoothly-input",{key:"8dc492d719d9e2eabba22c402e0349fc5aa7dc9f",type:"price",name:"iceland",currency:"ISK"},"ISK"),e("smoothly-input",{key:"2def9348a43704dafc21e3738de05d074f189285",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),e("smoothly-input-reset",{key:"da33915fca3ae802948b1911462f68a10a82bf4c",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"17cee57859fab71ce0e86141330c361fa06630d0",slot:"submit"})))}};var Or;(function(t){t.type=z({date:m("isoly.Date",w.is),amount:T()})})(Or||(Or={}));var Lr;(function(t){t.type=z({schedule:Or.type.array()})})(Lr||(Lr={}));const Ar=class{constructor(e){t(this,e)}render(){return e(s,{key:"8676cb9b188b2378d815226827e2f7426f514deb"},e("h2",{key:"e11dc90193d5f06378378c07412f7e8a842c6ec1"},"Schedule"),e("smoothly-form",{key:"5875dcd80af050a71d7434fb2f84f18446436dbf",looks:"line",validator:Lr.type},e("smoothly-input-date",{key:"0551573f423a5022499d7d3a25fe6815e75e8554",name:"schedule.0.date"},"Date"),e("smoothly-input",{key:"4889b711330406e9902beff8b8cc5a22d018978a",name:"schedule.0.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"9c2e767a364b4d29ec745fff9cf6a185403208b3",name:"schedule.1.date"},"Date"),e("smoothly-input",{key:"279a1c6e7a5aad5525347c609ae74f7295182102",name:"schedule.1.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"8a8c4e848347f3eb01c7f987926b1a4439665bff",name:"schedule.2.date"},"Date"),e("smoothly-input",{key:"cea7149a54447cc79ea1bfacdebc539323eb4377",name:"schedule.2.amount",type:"price"},"Amount"),e("smoothly-input-reset",{key:"fe5f1fddbaa59572935420bb42aaab83106278ad",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"f435d61a9cbe0aaf693763d86a3babb93ec9acde",slot:"submit"})))}};const Mr=class{constructor(e){t(this,e)}render(){return e(s,{key:"56bb25aa930390f6f18deef5a7f11cd60743c8c1"},e("h2",{key:"6b02cc5c2ab9dd9ce512ea709a6e8c318803f806"},"Transparent"),e("smoothly-form",{key:"eb5a7a12b66c950c6cfb6b63279d6d3d0fb3c9e9",looks:"transparent",onSmoothlyFormSubmit:t=>console.log(t.detail.value)},e("smoothly-input-file",{key:"7af20181794d27a18c0657525c6feeac396bb830",name:"file"},e("span",{key:"2ee590e2395504e7ba95985b3c3cbce3f7704df1",slot:"label"},"File"),e("smoothly-icon",{key:"c6fb9a872fb7c4486c31b11ce40fd147304fd7e6",slot:"button",name:"folder-open-outline",size:"small"})),e("smoothly-input",{key:"221c41fee6498fd25c075c1025b4c09ca63a88f3",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),e("smoothly-input-date",{key:"b14c619d972e6233ad58a200fb6bb9d5554cf17f"},"Date"),e("smoothly-input-date-range",{key:"2a4f0cb951dc7f72e48fa102a5cfc598c6a9a229"},"Date Range"),e("smoothly-input-select",{key:"411bc52358b29c5216d52950902a5204f420ebd6",name:"transport"},e("smoothly-item",{key:"cc29561b22ff405cb5fa0f8d3341d0967ef657f7",value:"plane"},e("smoothly-icon",{key:"040582665fba3aae4cede769c68963223ee83091",name:"airplane-outline"})),e("smoothly-item",{key:"22657c50d58b142833a6a429273ce3d774e0b5e0",value:"car"},e("smoothly-icon",{key:"ccce5f3ffdf89c5a2845857c2c0f0f770f464e96",name:"car-outline"})),e("smoothly-item",{key:"1b10530f7bc4499c821ed533ab6a36cb85f3d7e4",value:"bus",selected:true},e("smoothly-icon",{key:"23b2876323a8f5d806e5fb668b2639c11b4c2705",name:"bus-outline"}))),e("smoothly-input-submit",{key:"15f781edd28f7dfe12c8557866afd2475ee9e4ba",icon:"checkbox-outline"})))}};var Er;(function(t){t.type=z({name:z({first:j(),middle:j().optional(),last:j()}),age:T((t=>18<=t&&t<=120)),country:m("CountryCode",O.is),birthday:m("Date",w.is)})})(Er||(Er={}));const Dr="";const $r=Dr;const Rr=class{constructor(e){t(this,e)}render(){return e(s,{key:"589d8de4c0b6b7e857a7a4ddbbbbc9a2e860d502"},e("h2",{key:"d402f921eaccf3321e04df59c96e9d32aec67582"},"Typed Contact"),e("smoothly-form",{key:"fd0c811ba55c3aab606a8ac8575e5d36968b556a",validator:Er.type},e("smoothly-input",{key:"86f4b7aec26301e5b74e65c36d7a10d29e32f441",name:"name.first"},"First Name"),e("smoothly-input",{key:"61ffe1927a42f0f7a7ae49e158485c99dc8581bc",name:"name.middle"},"Middle Name (optional)"),e("smoothly-input",{key:"dc5620803aeecca0a640ff675b970f6faa98b8ab",name:"name.last"},"Last Name"),e("smoothly-input",{key:"1dea7fc4ba31c47ad39bcb57238b360a7df0f74d",name:"age",type:"integer"},"Age (18-120)"),e("smoothly-input-select",{key:"83f5df5e7d8d96600a9eb6b38762d25c5c5098ae",name:"country"},e("span",{key:"00666ef0610990ac0cf1e11635db1b7beffaeb59",slot:"label"},"Country"),O.values.map((t=>e("smoothly-item",{value:t},A(t))))),e("smoothly-input-date",{key:"3e95f926e1a84109cae654429f747a979972c372",name:"birthday"},"Date of birth"),e("smoothly-input-reset",{key:"b4c35bb7106d310df2ad78e6eee3c89e393730d1",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"c9fdb24ebc4f4ec46bae6b097259dad7b1487ff7",slot:"submit",size:"icon",color:"success"})))}};Rr.style=$r;const Pr=".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 Fr=Pr;const Hr=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)}};Hr.style=Fr;const Nr="[size].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{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Yr=Nr;const Ur=class{constructor(e){t(this,e);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";this.rotate=undefined;this.flip=undefined;this.toolTip=undefined;this.latestPromise=undefined;this.document=undefined}async componentWillLoad(){await this.nameChanged()}async nameChanged(){if(this.name!="empty"){const 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:"90d808b89e55e020357e31996664df7ae6e492e7",innerHTML:this.document,style:{["--rotation"]:`${(t=this.rotate)!==null&&t!==void 0?t:0}deg`}})}static get watchers(){return{toolTip:["nameChanged"],name:["nameChanged"]}}};Ur.style=Yr;const Wr=".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 Br=Wr;const Vr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return e(s,{key:"40c73c1b86c82de25ef710d90250ee26f5a97d18"},e("h2",{key:"9da59d3a9759d294b018b1cccd6b1ab22a80a14d"},"Filter and Variants"),e("smoothly-form",{key:"f00d40984821c21dbe6da17699bed1af9833ba98",onSmoothlyFormInput:t=>this.display=t.detail},e("smoothly-input",{key:"1e3aea269957e45707b59cac29c7acda1b88b44a",name:"filter"},"Filter"),e("smoothly-input-select",{key:"920017ab5a12f3ac301e1d497ab5f646b2f5b250",name:"variant"},e("span",{key:"6f72768a6901c6848b9a8eb15890726b8d9aad65",slot:"label"},"Variant"),e("smoothly-item",{key:"e19740138b3d3fb726891c8c83ca48cb63a6d32b",value:"outline"},"outline"),e("smoothly-item",{key:"9e1101547a526f2e6d5626ea1cb6f9d509e3d77c",value:"sharp"},"sharp"),e("smoothly-input-clear",{key:"90bf7ea10c6e28f2fe0946246e932c188d2e36d6",slot:"end"}))),e("h2",{key:"03af9cd3b892c8ce5c85ec5f24308ec568d3d7a4"},"Props"),e("smoothly-form",{key:"5523dd394791968c76bcaa4611ad7f061ef3d4df",onSmoothlyFormInput:t=>this.props=t.detail},e("smoothly-input-select",{key:"afaef5167021cf3f92c0ec46db5a13dc86a793be",name:"color"},e("span",{key:"a70c95e49fa7e5863e2ee085cea1a779bae32672",slot:"label"},"Color"),r.types.map((t=>e("smoothly-item",{value:t,color:t},t))),e("smoothly-input-clear",{key:"2e0a61224d72bb2177ccdca8464a062b55c2cdf6",slot:"end"})),e("smoothly-input-select",{key:"33dd05fc21187e59d50294ac6e516859b682cc85",name:"flip"},e("span",{key:"1c6cfbc839f886094d1c5159ffe15cd53aa7408c",slot:"label"},"Flip"),e("smoothly-item",{key:"5106005eb437b4928c85f0c199e8a63d2ccb15cf",value:"x"},"x"),e("smoothly-item",{key:"74127b329d004f066a26cd5ebf1d371b4aa3b0b0",value:"y"},"y"),e("smoothly-input-clear",{key:"136a83fec40ffe558a645692ee166bf41895a127",slot:"end"})),e("smoothly-input-select",{key:"18f3fefd865f1e464fe028a28cb3c08ed1f521b1",name:"size"},e("span",{key:"e12ba7003ac5bd1150df707fe72d4638eb873e6d",slot:"label"},"Size"),e("smoothly-item",{key:"1aaed4a2d9de5cbb2d11b7e57d4e10fb62023a8b",value:"tiny"},"tiny"),e("smoothly-item",{key:"506c7ac8f330114d6cfeeacd2ccf28617f48d18f",value:"small"},"small"),e("smoothly-item",{key:"fa323988312e0bd28fdb047a29b2bf9b6393316c",value:"medium"},"medium"),e("smoothly-item",{key:"4a70d203ff25c15d7de12884df57c5908bfddf3f",value:"large"},"large"),e("smoothly-input-clear",{key:"1484395ca63048f2da3086608c69fd16adc4c767",slot:"end"})),e("smoothly-input-range",{key:"9ec2aa43cbcba1b05b4d0f15630fb3652ba1c68b",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",e("smoothly-input-clear",{key:"9edc8e3b7bd75b9709da67bb106713265d9bae99",slot:"end"}))),e("h1",{key:"e163cd387bad76c2d031e30ebd3ef3c99ed5c3f4"},"Icons"),e("div",{key:"991f7e26e28d46d076f9977a2e08ec8e3902a518",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,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(t);this.notice.emit(L.succeeded(`Copied "${t}"`))}})))))}};Vr.style=Br;var Gr;(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})(Gr||(Gr={}));var Kr;(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}})(Kr||(Kr={}));class Zr{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=xe("price",e);break;case"integer":o=xe("integer",e);break;default:o=xe(t,e);break}return new Zr(o||xe("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=fe.getCursor(e.selection);let s=fe.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=fe.getCursor(t.selection);const s=Kr.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 pe.copy(this.formatter.unformat(ge.copy(t)))}partialFormatState(t){return this.formatter.partialFormat(ge.copy(t))}createFormattedState(t){return this.formatter.format(ge.copy(this.formatter.unformat(ge.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 qr;(function(t){t.type=z({name:j(),key:j(),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})(qr||(qr={}));const Xr='.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 Jr=Xr;const Qr=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(){cr.formAdd(this)}async unregister(){cr.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){cr.registerSubAction(this,t)}typeChange(){var t,e;switch(this.type){case"price":this.stateHandler=Zr.create("price",{currency:this.currency,toInteger:this.toInteger});break;case"integer":this.stateHandler=Zr.create("integer",{min:this.min,max:this.max});break;default:this.stateHandler=Zr.create(this.type,D());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(Gr.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:"7471c3e1b2da8ae859931ea784d02651d7708c25",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:"b028ff4cc80a672f9660c678d2bd918f9debd4c3",name:"start"}),e("div",{key:"d8c40843dc84012f3aab57de6f18249eaf1d0b75",class:"smoothly-input-container"},e("div",{key:"5a69a2a64b38fcbbf767a635be60a4ff7b640079",class:"ghost"},e("div",{key:"814aa8e223becb771e2b066063023d9f5a73e3af",class:"value"},(i=this.state)===null||i===void 0?void 0:i.value),e("div",{key:"f0135aba59beb4ac8940b8c305674efdc7934b87",class:"remainder"},(a=this.state)===null||a===void 0?void 0:a.remainder)),e("input",{key:"1fa48b8f469be26f5199ab2d55fa5865ae985237",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(qr.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(Gr.notEqual(e,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),e("label",{key:"b4dba4b8b51595a94e8b26bac894aa2d5f309c90",class:"label float-on-focus",htmlFor:this.name},e("slot",{key:"5d7383e1c6c75406bf0dc1b8fa92f049520e85cb"}))),e("smoothly-icon",{key:"eec82ffebeb4b1f64a7c204d553b5af65ea93c21",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"706cb81ba9345f7dec7c8ac55ac7054e1a49b494",name:"end"}))}get element(){return i(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};Qr.style=Jr;const tc='.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 ec=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.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(){cr.formAdd(this)}async unregister(){cr.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:"7e9d8f10f1bb4607a3d6d01667ce46b8ab4863d6",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:"fdc900044c63fe533744d5176893e9a8bcd6591d",type:"checkbox",checked:this.checked}),this.checked&&e("smoothly-icon",{key:"7a2c0e280b1e8455c87f717ac87b044bc5746b2b",name:"checkmark-outline",size:"tiny"}),e("label",{key:"9772a8094fa5f788859098f5eb4aca41149d9727"},e("slot",{key:"050412eef281c0e64980baf7c1b4bae7b835d9b0"})))}get element(){return i(this)}static get watchers(){return{checked:["elementCheck"]}}};oc.style=ec;const sc='[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 ic=sc;const ac=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(nr.is(t)){this.parent=t;if(lr.Element.is(t)){t.listen("changed",(async t=>{if(cr.is(t)){this.display=!t.readonly&&(typeof t.defined=="boolean"?t.defined:Boolean(await t.getValue()))}if(t instanceof mr){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:"17668319b54cc454ef29fda2fdef56f9718d1ce8",title:this.tooltip},e("smoothly-button",{key:"f1334ad4a05dba52ce919945a9648882eb7d94f2",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:"8699712b8661a46231822acfa57fdd15a811b9af"}),e("smoothly-icon",{key:"050e6cc18db2f64bff841a4465b420de3df156c9",name:"close",size:"tiny"})))}};ac.style=ic;const nc='.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 lc=nc;const rc=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){cr.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(){cr.formAdd(this)}async unregister(){cr.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:"06ccbfbb8103fb4157b7aab79cdd4b275b477bc0",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:"c010412a9135a0a2ea6b4c766260fc0f720eaf5b",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:"c28a3ec9985cefd718787b74c30f8434ac07ad5c"})),e("div",{key:"6ef1c860d2d6431fccea0aebaad5d930753cd9af",class:"color-sample"}),e("smoothly-icon",{key:"9184753b181267e611d19c51709aa1c233fc89dc",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),e("div",{key:"85be89a51fb536882133d724d81d8d29d794e1aa"},e("slot",{key:"d44ffd1cabe83efb3f1a727710737ff1c75bcb28",name:"end"})),this.open&&!this.readonly&&e("div",{key:"e4fd1fd66897f84c7b82b594cdc4afa794c245c1",class:"rgb-sliders"},e("smoothly-toggle-switch",{key:"2b8ab54580f8a96a72ee6b762616b061d2782d73",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"]}}};rc.style=lc;const cc=class{constructor(e){t(this,e)}render(){return e(s,{key:"233cd244e8fbd24d8d36b67afc5e32c74f9c84e9"},e("h2",{key:"d3245bbee2dd2b9af5218bb81433138ca9cef085"},"Color"),e("smoothly-input-color",{key:"de7d138d123d61aaf0404b64404f335d399423ec",name:"color"},"Choose color"))}};cc.style="style.css";const hc='.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 dc=hc;const mc=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.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(){cr.formAdd(this)}async unregister(){cr.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){cr.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:"537241a6d277b3d97892e6d2a6e7785d1445dd21"},e("smoothly-input",{key:"d6b4712b11564007b357279d0ef6353353f2ead2",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,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:"9b353cf3658a2017a6fdf44ea00853c8cf22958e"})),e("span",{key:"b2d0c1951f0a6c92f8ec7b48a1b049eddc16208d",class:"icons"},e("slot",{key:"4d1f3d6771d6ee0ea13a7d709740b76350a9ac00",name:"end"})),this.open&&!this.readonly&&e("nav",{key:"33fe4e270a7dd48a48a66205342e79c9cf505e22"},e("smoothly-calendar",{key:"2084bd5d0ef9575c45f2e52504c5bef6a076dba2",doubleInput:false,value:this.value,onSmoothlyValueChange:t=>{this.value=t.detail;t.stopPropagation()},max:this.max,min:this.min},e("div",{key:"c6c5f4e7f6c4d840251e360667154deb2ea4d1f8",slot:"year-label"},e("slot",{key:"e1ed184a3b88e62306ff446d4484ff1b44dde2d3",name:"year-label"})),e("div",{key:"89136139b0624ea7f160615ad12e7f66ae83d0bb",slot:"month-label"},e("slot",{key:"6a4ba7bacf62d96fc09ed3fb8aa28dcc071504f5",name:"month-label"})))))}get element(){return i(this)}static get watchers(){return{value:["onStart"]}}};mc.style=dc;const uc='.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 yc=uc;const bc=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&&w.is(e[0])&&w.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){cr.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(){cr.formAdd(this)}async unregister(){cr.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:"2e8c505b46587906c275c87e0af9632050377e6f",tabindex:0},e("section",{key:"56f3f315fa60e4b6d7230697901f3d34a60fe6b1",onClick:()=>!this.readonly&&(this.open=!this.open)},e("smoothly-input",{key:"09e0e316a5f498ea0fe99cb0ca12a5033dccba3c",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${Se(this.start,"date",t)} — ${Se(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:"e5d92bba332e29de53485e20959337fbb1abdc8b"}))),e("span",{key:"2d9f1b56e86db064fcc04bffc1176e768218fda7",class:"icons"},e("slot",{key:"935f6453d1e7c21a436f0bd0ddec0514ae220888",name:"end"})),this.open&&e("nav",{key:"88e6a8897b3f3de8f438449c4086a867d04af7df"},e("smoothly-calendar",{key:"fb70147730585f846df931e06fa658934b926c66",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"]}}};bc.style=yc;const fc=".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 pc=fc;const gc=class{constructor(e){t(this,e);this.duration={hours:8};this.alphanumeric="!@##"}render(){return e(s,{key:"2246e64ca0039a593a5e79c1b3cbec9f6cb61cd2"},e("smoothly-input-demo-standard",{key:"2b37d1d772346558fc9877495c98ec484e443d24"}),e("div",{key:"989abdad396917b2bdfe9bc11140a1293546ac5c",class:"inputs"},e("h2",{key:"dcf89a34ee6e6397e5f714121724ef563dd3fd28"},"Calendar"),e("smoothly-input-date",{key:"8e65b556c3fcf1a39323dd3a33d12a30b81e1dcd",name:"some-date"},"Calendar"),e("h2",{key:"3cb4035f84892162377f96c19ee73680e03125d0"},"Date Range"),e("smoothly-input-date-range",{key:"c896e3bd9e37dbfb151be77e2c27703e0e6a2230",name:"testing",start:w.now(),end:w.nextMonth(w.now()),min:"2021-10-01",max:"2025-01-31"}),e("smoothly-input-date-range",{key:"40038ceb1fa825b4b690f68541a0f51f594899fc",name:"testing",start:w.now(),end:w.nextMonth(w.now()),min:"2021-10-10",max:"2024-12-30"},e("smoothly-input-reset",{key:"8c390691d230f83b3198d6b55320777570f5f583",slot:"end",size:"icon"})),e("smoothly-input-date-range",{key:"ff17e15193315eb5f8114f30a926a9ecd04e989c",looks:"grid",start:w.now(),end:w.nextMonth(w.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},e("smoothly-input-clear",{key:"011f43052221a7c6f3ef33f500bcfba46608c841",slot:"end",size:"icon"})),e("h2",{key:"d791ba4122393a98eb6d81306e291412054e3b23"},"Date"),e("smoothly-input-date",{key:"ee353162eccaa90c518ef9190a5457228b50a6da"},"Date"),e("smoothly-input-date",{key:"ab3c9d81356be6e50d1c3d55ebfc0d9590884e0d",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-input-date",{key:"660520a7d8dc088129ee8675b418f80580369c84",value:"2021-10-28"},"Date",e("smoothly-input-reset",{key:"b41ed6b1f2d86a014bbc8814ae3af5f2bf73a179",slot:"end",size:"icon"})),e("smoothly-input-date",{key:"689789eb3bdd96e5d8bb592ecc54a46809dc571d",value:"2021-10-28"},"Date",e("smoothly-input-clear",{key:"c84ce2579bd57ec36bab8936b9260516dfbff578",slot:"end",size:"icon"})),e("h2",{key:"e9d4a3630cd7dfbc15496d326842036b89b779ed"},"Select"),e("div",{key:"73b5029be3bcb583ae7acd529c3360ae490f6ab8",class:"select-div"},e("smoothly-input-select",{key:"b2bd70fa2d9db0949de37384281cefa5f733e607",name:"select-dessert",looks:"border"},e("label",{key:"9e876f17a3d8fd4c9dd8df5f36537cbd5ed26cab",slot:"label"},"Select with clear button"),e("smoothly-item",{key:"99bb1a1be67495f593aab6217417989ae138338f",value:"1"},"Ice cream"),e("smoothly-item",{key:"4ddecda514f630ede33ff1fedcdca479ab1f365a",value:"2"},"Sponge cake"),e("smoothly-item",{key:"edcd18711aa60bd585bb35684bf4335be079534e",value:"3",disabled:true},"Disabled Item"),e("smoothly-item",{key:"193c1b1a166cab555df2e0738a6dbf7d002a68c6",value:"4"},"Cookie"),e("smoothly-item",{key:"148b0f60bec0b9afd7611301d47ff3cbda1bd60e",value:"5"},"Croissant"),e("smoothly-item",{key:"4c19e2ddcf1a804aaf2fc5f0c836c87f1c63536f",value:"6"},"Chocolate fondue"),e("smoothly-input-clear",{key:"7fdc91054fc6694b3d9ed28fe58bbeb4ac7f3166",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"1dc6118a2716448a03a71c9004e37bd281a04fd8",multiple:true,name:"select-dessert-multiple",looks:"border"},e("label",{key:"1c9aad56585335964fb6fbdbb322155aed1d8293",slot:"label"},"Select multiple with reset button"),e("smoothly-item",{key:"1dcc6d0ae6890c8faf6fbd383d7cb49cffb4195d",value:"ice cream"},"Ice cream"),e("smoothly-item",{key:"4928df31718469ae0a122b196d2da6049e08e27d",value:"sponge cake"},"Sponge cake"),e("smoothly-item",{key:"804e3d867fdee5b41a691fefb18e1e0c1efa675d",selected:true,value:"cookie"},"Cookie"),e("smoothly-item",{key:"47e18869a33e35c711b0af238c711c49a74a2f00",value:"croissant"},"Croissant"),e("smoothly-item",{key:"2141bd943ddc5f23bd2e5d5340fe1c056b733767",selected:true,value:"chocolate fondue"},"Chocolate fondue"),e("smoothly-input-reset",{key:"383060f11d35eaff155b922d0b4b2d7461d3ccf1",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"997c4890240d191098f752d9a608f292f5e4285e",name:"spirit-animals",looks:"border",mutable:true},e("label",{key:"4e4941d8eb6bbf6290283a71d88ef63cdabed4b4",slot:"label"},"Select or add new options"),e("smoothly-item",{key:"c5b5bdcdd54a7b3f53807b2c91deb0eacc4df76c",value:"manatee"},"Manatee"),e("smoothly-item",{key:"7b984ebe49e44df568bf8afa71ac316f55c930aa",selected:true,value:"cthulu"},"Cthulu")),e("smoothly-input-select",{key:"ceb8e73087957269cb47bb09552a5972dcc83da7",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"dc9c4ba90d0ee6c4158abf3cddede72bd04e71d1",value:"folder",selected:true},e("smoothly-icon",{key:"edfbf4fa6aafe1588e5f3d805949f837f1e9cfbc",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"f46beb751b4e5394ca24fed76addc9a7931fa382",value:"camera"},e("smoothly-icon",{key:"8b976d68da995707e36ff599f81343b9028bce45",size:"small",name:"camera-outline"}))),e("smoothly-input-select",{key:"a92187babd4d365532b86fbbd7fb0f81dc277821",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"c03b7c86c8762080854546f7f0257ea7b5e8d488",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:"50afad9842162fcd31c852082016e02197670682",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"8979507659fe2ea3bde09d62fcda6b0e0958f8d1",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"b5943c4ffa028794ae353751d9f6f54cb9de8729",value:"1"},"January"),e("smoothly-item",{key:"715dad0e6198ae650b92216671adcb4f55e38595",value:"2"},"February"),e("smoothly-item",{key:"5e1c9571dd3e85bfbb662d37e332686f2e995c88",value:"3"},"March"),e("smoothly-item",{key:"035d61411f7338aa13be7cd5a6e3033416c4d7d5",value:"4"},"April"),e("smoothly-item",{key:"f01102310093062173127c830235f72c854f3a72",value:"5"},"May"),e("smoothly-item",{key:"10e7fb2d176bb14e93c5b3c208b559eec05b63b2",value:"6"},"June"),e("smoothly-item",{key:"b7e84c66de94608b6435c69a25d7558e93c9f92f",value:"7"},"July"),e("smoothly-item",{key:"92a1692fb3399e45f6c1daabab735a5151f7cedd",value:"8"},"August"),e("smoothly-item",{key:"c69002d6ef0ffec601898f2da9bfb2093f87b131",value:"9"},"September"),e("smoothly-item",{key:"1ddfa11c9807052c4dfc35b21edc197dbe292534",value:"10"},"October"),e("smoothly-item",{key:"bc5927fa54de0dacd80ae937892d5ce0c9a2d435",value:"11"},"November"),e("smoothly-item",{key:"a3d0cd6e6c3f348c294d91cb54484f84f9d51ef5",value:"12"},"December"))),e("h2",{key:"ad2d4f82623153c04d76dc435ee9b62d02ae2400"},"Duration"),e("smoothly-input",{key:"4f4cad2567f82920fcb7dd3c66a82b720e0dfbd4",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:t=>this.duration=t.detail.duration},"Duration"),e("smoothly-input",{key:"a00c994eb83ce0d9123d1c07d7a4baf19e8a0a29",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:t=>{const e=t.detail.duration;this.duration=e}},"Duration"),e("h2",{key:"91506193cc92d0c1f497d74031b2be1192b2beca"},"Integer with Min/Max"),e("smoothly-input",{key:"481aa0956f649040e9f43d2a7c62804bb92efef9",name:"days",type:"integer",min:0,max:365},"Days per year (0-365)"),e("smoothly-input",{key:"38a054ca282fafdd961218f7e6da5760307fddf1",name:"hour",type:"integer",min:0,max:23},"Hours per day (0-23)"),e("smoothly-input",{key:"5332e8aa8b06b66427337f2d1ff8f51a8511e382",name:"minute",type:"integer",min:0,max:59},"Minutes per hour (0-59)"),e("smoothly-input",{key:"eb44b024a1302cbb48d8bb6e34ba3f8cda2cd919",name:"minute",type:"integer",min:18,max:120},"Age (18-120)"),e("h2",{key:"4b990e9c2dde97a9f15f9b7c4b87156abab06cbf"},"Invalid text with warning icon and tooltip"),e("smoothly-input",{key:"71bdb7feb20f18c2a37dc4860ff3a9202eacf8ac",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:"2deb15192feae3b18f0c8d0a0398a12a5bd81d21"},"Identifiers"),e("smoothly-input",{key:"2e0243a190b1c2280bac015a66516a5fe372258d",type:"identifier-code"},"Code"),e("smoothly-input",{key:"ff873320ab3c15d5cfbb9869b6c62aaf74900cea",type:"identifier-attribute"},"Attribute"),e("smoothly-input",{key:"68246a134a3fc98450ff3fdcb6129ae416e24541",type:"identifier-snake"},"Snake"),e("smoothly-input",{key:"e5b5a8a769712436c498a6728cd8c678709256ce",type:"identifier-pascal"},"Pascal"),e("smoothly-input",{key:"d8187ead8f3f1a2ccb9ad5255b74b00ea6dcdb81",type:"identifier-camel"},"Camel"),e("h2",{key:"84ddb5eea8bbc25670b623966ee44acb66985435"},"Input Alternatives"),e("smoothly-input",{key:"a4cc2d53f80a569c0fc5aff4002c0d3122d0ef90",type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},e("smoothly-icon",{key:"96c373625202143aeaba7c9c521fc0def6e319be",name:"checkmark-circle",slot:"start"}),"First Name"),e("smoothly-input",{key:"6a681ff90c7c95a22d7e6a7567ee5efd8bdec07f",type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"1b11a1e1a295a123126640c4a481af89df6bcec9",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"7ca34d9ae381a0b12c265866ac3f771726eba93d",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"2ff4650c1f7b3f48c6f9828523c7f07de7b4fa85",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"061310e54b36c9c75a87e3e18fbba4112b91cb1c",placeholder:"test"}),e("smoothly-input-submit",{key:"99698172c9514334dedac33b8c2fc6548b88fbaa",slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"}),e("h4",{key:"ad71dff1660186bba82f34191b0ca60efae720d7"},"Smoothly checkboxes"),e("div",{key:"5718011f939a0878ab8ea3afaecbda302e31c73b",class:"checkbox-group"},e("smoothly-input-checkbox",{key:"5b5ba10540de4438e2c10b6c02d0fad978d515a4",disabled:true,name:"first-checkbox"},e("smoothly-icon",{key:"0e718adc3894003b058826ea301d2c754ae8c1f3",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),e("smoothly-input-checkbox",{key:"15135f72968c4d699acc9e68bb5e5cd816665087",name:"second-checkbox",checked:true},e("smoothly-icon",{key:"ae3d257b11cecf9ef2eb97493acf4fb3cbaf3b40",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",e("smoothly-input-clear",{key:"c27de2287e7659e8e48380f67d02d0408cdb51a2",size:"icon",slot:"end"})),e("smoothly-input-checkbox",{key:"8eb99fac6b762993b72d224e1323579b6148d5f6",name:"third-checkbox"},"3rd")),e("h4",{key:"e5dd8c9ca4c8be3222ea3f9aa55f669d4028e5d6"},"Smoothly Radio Buttons"),e("smoothly-input-radio",{key:"77070459eecd7514acb8601ec93a37b9450168e3",clearable:true,name:"radioFirstInput"},e("smoothly-icon",{key:"9e3d161e5c499fc80a5945adeacf1144e92df785",name:"checkmark-circle",slot:"start"}),e("label",{key:"aa6324183b7a0826e7c3a25494ae074b436c174d",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"02694e25f144985698a0ef92ea53c3659ab84290",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"09d2c82fd813ed5181073ab3dc7725b42bd47f4e",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"2772c21b13d27b3d9a1a800e4f008a838bfe65df",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"60e95d7e3fbcf1d36b1c36ddbc6994e92a3750c5",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"bbd63cb0a3ebda2cfef6221e61ea0b5cb31380d4",name:"radioSecondInput"},e("label",{key:"4f482e6d096f536aef54c7326bd78d3bf156b8ab",slot:"label"},"Not clearable"),e("smoothly-input-radio-item",{key:"761efe9c3501c0d2965ad4105733df91934841f9",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"d9d6ca775c01be53e0bec4d213c62d6d37958a35",value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"fda64767508f76c7343baa564d5fabde05f125b8",value:"third"},"Label 3"),e("smoothly-input-radio-item",{key:"6e7ba43e516578bf7977b4a3b71cb4c3488d9d1f",value:"fourth"},"Label 4"),e("smoothly-input-radio-item",{key:"6de5860b06e1dd083818bc46c2c43cdd672e3bfa",value:"fifth"},"Label 5"),e("smoothly-input-radio-item",{key:"2e3e2e0cf07b6a69aa8b38bad85c7dc4082ca70c",value:"sixth"},"Label 6")),e("smoothly-input-range-demo",{key:"4d19c2422d932957c98829a27692dd13a0125b34"}),e("smoothly-input-color-demo",{key:"8a811c4a90aa12b89a98513e9a91bc176d346296"}),e("smoothly-input-price-demo",{key:"93e80a88afa678602c2ba2e84cfc7e49ab15d993"}),e("smoothly-back-to-top",{key:"8f02b74e7694f5ebfc62639540c4a3994c6a1ff8"})))}};gc.style=pc;const kc='.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 vc=kc;const wc=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:"51d77335aa759b44bd7ccba2bb6e3078898c4242",class:{vertical:!!this.options.vertical}},e("div",{key:"d95115d3997c9c545df4bf1f63a5036aaefaba93",class:"description"},e("h2",{key:"7a8ec01d924468b072950c545f3e5c8c27c9bd80"},"Input Standard"),e("p",{key:"52e241e1121fab79f28de270ecc5acf40510b402"},"Height of input should be ",e("code",{key:"16704073dc0dbd604996dfb54ce2d943d97cab8d"},"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:"7028a903bea80c1ab23f8384daebc93dfee8b699",looks:"grid",onSmoothlyFormInput:t=>this.options=t.detail},e("smoothly-input-select",{key:"75daf9e2b01bf3a3332ba7e01756e610acc55965",name:"looks"},e("span",{key:"e8cc473335d3cdebea58e5590699a77880de24ae",slot:"label"},"Looks"),rr.types.map((t=>e("smoothly-item",{value:t},t)))),e("smoothly-input-checkbox",{key:"dcccdc46fedc9dad02ef1c62108851abb59fa8f9",name:"readonly"},"Readonly"),e("smoothly-input-select",{key:"75498be9e59857da131f741ade51e58a576b6d0d",name:"color"},e("span",{key:"2bc085313684d4bbf833dab63cfae7d189007408",slot:"label"},"Color"),r.types.map((t=>e("smoothly-item",{value:t},e("span",{color:t},t)))),e("smoothly-input-clear",{key:"07e7e9bc348a7497a4162d6ae0edba6a6268d1c7",slot:"end"})),e("smoothly-input-checkbox",{key:"4a391a51a4433a69ad33533e24999b8032788e42",name:"vertical"},"Vertical Layout"),e("smoothly-input-checkbox",{key:"294f11e49b9d1649d6a01d7540401e34b55cb434",name:"showLabel",checked:true},"Show Label"),e("smoothly-input-checkbox",{key:"8696e0c1c6b5baa70a9541b516e883eddc476331",name:"placeholder"},"Placeholder"),e("smoothly-input-checkbox",{key:"234523c9cda3ebc12d45e8e9875c4a8cdee280a4",name:"invalid"},"Invalid"),e("smoothly-input",{key:"cea03f719af69005952237149f31ce9805b4ced3",name:"errorMessage",value:"This is not a valid value"},"Error Message"),e("smoothly-input-range",{key:"4cdd6b47c8e6129ff18a2751fef6d0cbce5bc39e",label:"Border Radius (rem)",name:"borderRadius",min:0,max:2,step:.25}))),e("div",{key:"fe02455d3c1352619432a8e0cdbe35268894b747",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},e("div",{key:"95d24203af3409983b41748485fbd3bea660e727",class:"width"},"100%"),e("div",{key:"3f1ec5bba79988ef868aac7f44bfeaecb6251dda",class:"left-padding"},"0.5rem - left padding"),e("smoothly-input",{key:"d358a782913cbabff5d4203a771bd0d90dcf0549",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:"2e6d53986d00071a5b3f04c27d4e677347c20c8f"},"Text"),e("smoothly-input-clear",{key:"ec6b56f05838eb88927a259c7d4d5ab24d391250",slot:"end"})),e("div",{key:"fd5f0710017cb22c742012d26668920678a6e714",class:"height"}),e("smoothly-input-select",{key:"a3751f0f8014e765130c1604f8eb075d67073cd1",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:"687213bc8b3b92c5ea7f7d267a52c7b540c1be56",slot:"label"},"Select"),e("smoothly-item",{key:"25f3e7b6ec843c7d6c5e2303448fcedeebefa894",value:"1"},"January"),e("smoothly-item",{key:"0c4bcbec574fba829a4c55ff69d1a0a83e6eb2b7",value:"2"},"February"),e("smoothly-item",{key:"5b5ebd31a59d355e45f03349382a6d26b10d5748",value:"3"},"March"),e("smoothly-item",{key:"356fb573c06b2c52a31a21c8347a64bca92064e4",value:"4"},"April"),e("smoothly-item",{key:"426fe3c47ef1f66238c59cc83fdb1112ce49c509",value:"5"},"May"),e("smoothly-item",{key:"89cef888cd6e5976ebd31925ff8249539ce124f6",value:"6"},"June"),e("smoothly-item",{key:"9cf73864df20b1ae2b3cf2ab97723b9e60547132",value:"7"},"July"),e("smoothly-item",{key:"0a795461bb9076e3165cff3b26506ba29d9f9044",value:"8"},"August"),e("smoothly-item",{key:"e7c514f7335b7814836268ea845f7f6f1d673d0f",value:"9"},"September"),e("smoothly-item",{key:"d130ce9f3c4b680639ac0be2e9dbf08013cc919a",value:"10"},"October"),e("smoothly-item",{key:"8897bd4fb1aabe6fc75f6f74e85b7ef66a000c5b",value:"11"},"November"),e("smoothly-item",{key:"91b501ad9b3332d89593e4e38ba8f85defc90761",value:"12"},"December"),e("smoothly-input-clear",{key:"7ad82b23742ded62fb3dcfb116f7664a5b180145",slot:"end"})),e("div",{key:"1c4e7e135a81d8b2e2fe7107f2999b5485a72de1",class:"height"}),e("smoothly-input-checkbox",{key:"5fe26f93c0fa10a51ef7e05f28cd54b29c4a11c1",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),e("div",{key:"81680b9e029f56a1a5b682eb40f1d6eaf3a24f69",class:"height"}),e("smoothly-input-radio",{key:"7e03ecec04c22e77b824bb4890d8e6a96dc59f7a",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:"ff6c03ba5aa902d352f6d64eab01f18264ad5d1d",slot:"label"},"Radio"),e("smoothly-input-radio-item",{key:"7485d954a29a75d43b79aa3e02a5b936b255c855",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"6ddfbf0852ee6047257aee395fe176263ba417a9",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"33a1c8e763115e1ead15d1be7dfbf72eb97b2903",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"48365152688a60d1bff7f77596f4b2ecd8009741",slot:"end"})),e("div",{key:"73960a1d0313ea6a7572b696d095315162819738",class:"height"}),e("smoothly-input-file",{key:"4650361bb12bdd1f7d862adead506e2229859200",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"f61cf9a54c26176cbb2e4e5653b786f0992425c4",slot:"label"},"File"),e("smoothly-input-clear",{key:"c1b2956204c419d41279356303ced0ac2baa6df8",slot:"end"})),e("div",{key:"334de9a57ba8f0f86f318ca639336bffe7aa1b28",class:"height"}),e("smoothly-input-range",{key:"ff1a5a207b7a3ae0c8eb19edeb9c8ddb4cfce2bf",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:"1e16c10d2c5c9d6e55dcb96451413944b2e2cfc5",slot:"end"})),e("div",{key:"e4e508d12a749659164628aaa378ae827e167d5e",class:"height"}),e("smoothly-input-color",{key:"8853163ee4f5a9a55fcb5c95452b014a98e8a663",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"a418bff13c7640784a3b63bf181f07644f24c259"},"Color"),e("smoothly-input-clear",{key:"ae106935cece376c36ce5e5adc24fce6b7978415",slot:"end"})),e("div",{key:"4bde174e16932e5fcbff4c0ba416a83b0b4c8ddc",class:"height"}),e("smoothly-input-date",{key:"53b575a2c07450900644e52d4aa208b7b4e862fc",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:"a3b2900b15653c61cf6fc806267476c5e69f9529"},"Date"),e("smoothly-input-clear",{key:"1ab17f116e24273c6d86d3ddd839a2ea25e30b7d",slot:"end"})),e("div",{key:"522a5fdea537b227e24d7841223d48540394d362",class:"height"}),e("smoothly-input-date-range",{key:"9850bef1ee238ff2d5bb6d79a394788643da63c1",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:"26b71f937197762e5b3bf523ed0d3436872d0efd"},"Date Range"),e("smoothly-input-clear",{key:"d3e283f1a6aabb2b5d4fabf6ff37e5046ee3598d",slot:"end"})),e("div",{key:"34625f7dec1ddda4d3b2cd3f19075897a37d3f23",class:"height"}),e("div",{key:"22e18c044fb0cb4b58601fcf5c13b2fc6f42ade2",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return i(this)}};wc.style=vc;const xc='[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 Sc=xc;const Cc=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(lr.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:"40cf13a8c918c5bfce683ada0757c851cbe3a2f8",title:this.toolTip},e("smoothly-button",{key:"fccee205cf5c287d317afd1110e8a21312405c26",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:"d1ce1696be9b41b890f5f7a5b3652a63083e4a6f"}),e("smoothly-icon",{key:"56a803c1cbfe6547cfae7c1c3a94d930617e6816",class:"default",name:"create-outline",size:"tiny"})))}};Cc.style=Sc;const zc='.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 jc=zc;const _c=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(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(t){cr.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:"617289904025b51591bdd9fa9187f747750b97f2",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:"3f5ddc4021cec796bd4d62c031451c646b5e980b"},e("slot",{key:"de44a926247592c2f6e41eed32d646399e6a6c91",name:"label"})),e("div",{key:"a5b335436fe241a3e544ea62c88f0ea6702a07f5",class:"input"},e("smoothly-button",{key:"72b6602900c45dfc64d97a3b9762ba36b8b8494f",type:"button",color:this.color,fill:"clear",size:"flexible"},e("slot",{key:"c5f78b8189f841518b529f7132836ab4adf9910e",name:"button"})),e("span",{key:"bd37165108089c02b21cdc0d1e49b72c1bad300b"},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),e("div",{key:"927d9ee7cd2d4345ab5196a2546dfef8aaf5a827",class:"drag-overlay",onDrop:t=>this.dropHandler(t),onDragLeave:t=>this.dragLeaveHandler(t)},e("smoothly-icon",{key:"ebd746e29caa3673eac6502f792b7570fadaf4b9",name:"document-attach-outline"})),e("input",{key:"cc096e9106e01e0f66ce1bb076f5a54267e488b3",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:"09c3feb2ee17503791b4fb07314a43721c93d5db",class:"end",onClick:t=>t.stopPropagation()},e("slot",{key:"7c5c0c2a19f8d9abcdc86e631dd29020813fe75b",name:"end"})))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};_c.style=jc;const Ic=".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 Tc=Ic;const Oc=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=w.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=w.parse((e=this.value)!==null&&e!==void 0?e:w.now());o.setMonth(o.getMonth()+t);this.value=w.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var t,e;const o=w.previousMonth((t=this.value)!==null&&t!==void 0?t:w.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=w.nextMonth((t=this.value)!==null&&t!==void 0?t:w.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(){cr.formAdd(this)}async unregister(){cr.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&&w.is(o))this.value=w.firstOfMonth(o);else if(e&&w.is(e))this.value=w.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:"a5c2d389e6f6459735db538f5009e2c164b95fb3"},e("smoothly-icon",{key:"be09a62abd6e174ed1206ed3a1cb3faa034e842f",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:"0fb82cdc57b300c50f1039ae60e4492664997278",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:"93d073b5e1525185e2594212564a8d3b32f5db4e",slot:"label"},e("slot",{key:"c3896f5a650dd662ac2559eea6155410f68cf42e",name:"year-label"})),se((t=this.value)!==null&&t!==void 0?t:w.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:"71be5ad03d21841eb59516f8f8e2b3f5953a14ae",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:"3e039e68f2442726208422aa665ec394fe610d77",slot:"label"},e("slot",{key:"23b59c54bcc24ab6c9663aa0287857a962865c2d",name:"month-label"})),oe((o=this.value)!==null&&o!==void 0?o:w.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:"fb57b80ab4a1e1068bd8c4752f0758e358d0af03",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"]}}};Oc.style=Tc;const Lc=".sc-smoothly-input-price-demo-h{display:block}";const Ac=Lc;const Mc=class{constructor(e){t(this,e);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return e(s,{key:"bf84cea0865e0a30f6967b9d3648779fdf29d106"},e("h2",{key:"405b6eb3f61ac9f42ef4625da0e6aa7010e7b7d2"},"State demo on smoothly-input"),e("p",{key:"edbdba22faca0d9cfac2d4518628d9d57e9e0603"},"This demo/test the internal state of the smoothly-input component."),e("p",{key:"d4f7f149a4b985accb2c53c79be73287a640e821"},"The currency of the price should update when switching between the currencies."),e("smoothly-input-radio",{key:"a2c020fe7c1aa3bd263e1145acf92c50df47795d",name:"currency",onSmoothlyInput:t=>this.currency=C.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:"ea586b3e9bb14d372cd0817a968bff912cb5cc26",type:"price",currency:this.currency},"price"))}};Mc.style=Ac;const Ec='.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 Dc=Ec;const $c=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){cr.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(){cr.formAdd(this)}async unregister(){cr.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:"33e83daffc9d7c7e89378e204b704ca1df2a80d5",class:"floating-label"},e("slot",{key:"b89e248290616592a883bc91ed195e375d7193e1",name:"start"}),e("div",{key:"1371da1571d8205214e7a9f32febcb1a332ee9c7"},e("slot",{key:"5f450610241677051c003bcda6abc1256fb6afdc",name:"label"}),e("div",{key:"ff5034df9c86072a5774e670849209628f8a5c35",class:"options"},e("slot",{key:"49e1bbc206bb3eab59f6764fa16ab25721ca3d9b"}))),e("slot",{key:"cf46f8fcf62680eac716991c4d292da190a51227",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};$c.style=Dc;const Rc=".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 Pc=Rc;const Fc=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:"bc02b0502580340ecb5fa192b39f82b71fc3cec8",onClick:()=>this.inputHandler()},e("input",{key:"6e536dcc14a512ee978bec110f8eed7a907de912",name:this.name,type:"radio",checked:this.selected}),e("smoothly-icon",{key:"b9b63e3b3e658fad2767d61ef5805a257c836024",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),e("label",{key:"24e327f0d4f3cca0973f22bc61fa47753b3f4a32"},e("slot",{key:"ce13a2ce4789a04261dd291176c1e2a0d522afd2"})))}get element(){return i(this)}};Fc.style=Pc;const Hc='.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 Nc=Hc;const Yc=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(){cr.formAdd(this)}async unregister(){cr.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:"70128d9ac099c1cd852bb1b5dc8717646984eb7b",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},e("slot",{key:"301b644eb7c8df20012a829c1bf5e1238d1e0c4f",name:"start"}),e("div",{key:"1e26e6b11f814def73fde42ee2c24294edeb1031"},e("label",{key:"901dbda93df7632cdaeefcc06f18e72fbbedde51",htmlFor:this.name},this.label),e("smoothly-input",{key:"d18cb15cbef044d11950983f2f403e15e7891078",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(cr.Element.is(t.target)?Number(await t.target.getValue()):undefined)),onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyInput:async t=>{t.stopPropagation();this.setValue(cr.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:"216a04152ee52272379d594ae42a3e76ad1e8bab",label:(this.type=="percent"?this.min*100:this.min).toString()}),e("input",{key:"776ab022a0defa8c954e21e844d9b2daa9ad2d64",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:"3795b214890bedc6f982879aee6ae5f679cf1eca",label:(this.type=="percent"?this.max*100:this.max).toString()})),e("slot",{key:"df70f63235a6f9f11771aa32c763585985daff17",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};Yc.style=Nc;const Uc=class{constructor(e){t(this,e)}render(){return e(s,{key:"f581dc7ef29259c080cbf53b8e4302aa0ad008b7"},e("h2",{key:"f2da5ea21d7a042a15a1b2e1e3920543c122ca77"},"Range"),e("h3",{key:"6591967e0f3bbbdcb6366b5dc78ebab0e05330b0"},"Phone Number"),e("smoothly-input-range",{key:"12ba506f6c44e9e97ba24d214c290fa276447ea4",min:7e8,max:799999999,step:1,label:"Phone Number"}),e("h3",{key:"30cb7652889fc9238db6c572a0821154d00855b4"},"Stars out of ten"),e("smoothly-input-range",{key:"0c380ba9fc9c750368c98a782b3a2c42901e4228",max:10,step:1,label:"Stars"}),e("h3",{key:"e1a51c77997b4efa230ec565521e6a3b38ccdbc6"},"Percent"),e("smoothly-input-range",{key:"d00d603bce0471b856abd334ab66d158708e4259",type:"percent",max:1,step:.01,label:"Percent"}),e("h3",{key:"c9ab03c022ea27ca34f4901a971bad709194fdab"},"With icon at start and clear button"),e("smoothly-input-range",{key:"5a250a0f429cd4441f59a62eb84a34b50b1a1121",step:1,name:"range2",label:"Select"},e("smoothly-icon",{key:"4caf5457ad2a853b549e9ea127a2c3c6393993d1",name:"checkmark-circle",slot:"start"}),e("smoothly-input-clear",{key:"f910ee270005fc5cdf7d64812ec2979f9a4b21d5",size:"icon",slot:"end"})))}};const Wc='[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 Bc=Wc;const Vc=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(lr.Element.type.is(t)){this.parent=t;this.readonlyAtLoad=t.readonly;t.listen("changed",(async t=>{if(cr.is(t)){this.display=t.readonly?false:t.changed}if(t instanceof mr){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 mr&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var t;return e(s,{key:"1f2b1af44599e1f880fa59c186a66fe46cd85b9a",title:this.tooltip},e("smoothly-button",{key:"84e22d1382ae7836442859fe4bee9d61737cb75f",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:"7ce4e59101629024cef25297a24b601d633cf108"}),e("smoothly-icon",{key:"04e73ec95bcbcc095dd2a1bd0c423b7c0e4afd38",flip:"x",name:"refresh-outline",size:"tiny"})))}};Vc.style=Bc;var Gc;(function(t){let e;(function(t){t.type=z({value:M(),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})(Gc||(Gc={}));const Kc='.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 Zc=Kc;const qc=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(){cr.formAdd(this)}async unregister(){cr.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(Gc.Element.is(t.target)){t.stopPropagation();t.target.deselectable=!this.required;this.items.push(t.target)}cr.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:"c62fd66c9ba4eec894a4ffff22f143709d33eec5",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open},onClick:t=>this.handleShowOptions(t)},e("div",{key:"88b7f3c532fcbdedaf9132fc106f20e16f787126",class:"select-display",ref:t=>this.displaySelectedElement=t},this.placeholder),e("div",{key:"3df61df5c679cb1ac2d173dd2c8ea0d044ea8b13",class:"icons",ref:t=>this.iconsDiv=t},e("smoothly-icon",{key:"2fb8f963e220f10ea6a42255da8742b3ec6baa17",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"553e3bb02bd43b3ceeb3091cd714d5c078c39c8d",name:"end"}),this.looks=="border"&&!this.readonly&&e("smoothly-icon",{key:"2b49a0d08bf3df0951bf5dc5663033cb59115cb7",ref:t=>this.toggle=t,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),e("slot",{key:"095a8a4a711dd13caa6e88e23f50bb4caf95b1d3",name:"label"}),e("div",{key:"92e14329f382db29e7344d9d27d22b0110b4428d",class:{hidden:!this.open,options:true},ref:t=>this.optionsDiv=t},this.filter.length>0&&e("div",{key:"e45e1b04755aa14a81b7731b4115f6624dce5118",class:"search-preview"},e("smoothly-icon",{key:"fb9b94127aaca8a22f165684e88c938979f26fa3",name:"search-outline",size:"small"}),this.filter,e("smoothly-icon",{key:"220439a98a62c91a48855a3ab1784349ebbcb422",name:"backspace-outline",size:"small",onClick:t=>{t.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&e("smoothly-icon",{key:"0627576082b52563ae949e7dbcf3166f6f7e9b68",name:"add",size:"small",onClick:t=>{t.stopPropagation();this.addItem()}})),e("slot",{key:"80415b018a5d81f702e60842acd38d29c8b7e96f"}),this.addedItems))}get element(){return i(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};qc.style=Zc;const Xc='[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 Jc=Xc;const Qc=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(p.is(t)&&lr.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 g&&!((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:"15da6fa1f5f4f2ed946f68bfc392e01cff368223",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"})))}};Qc.style=Jc;const th="[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 eh=th;const oh=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:"4f8182b389900e4dc7dfb59372ddaa594e9f161b",tabIndex:-1},e("slot",{key:"1c9da4ff4b5edbbf9c074e642dec0be598403cc7"}))}get element(){return i(this)}static get watchers(){return{selected:["selectedWatcher"]}}};oh.style=eh;const sh=".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 ih=sh;const ah=class{constructor(e){t(this,e);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var t;return e(s,{key:"8129f1db21623337d8102f9b0ab6d31f6b8828fc",title:this.description,style:{"--hue":(t=this.hue)===null||t===void 0?void 0:t.toString()}},e("slot",{key:"6407607825c94484040ea8c3abdaf63cde04e9e0"}))}};ah.style=ih;const nh=".sc-smoothly-lazy-h{display:block}";const lh=nh;const rh=class{constructor(e){t(this,e);this.show=false;this.content=undefined}loadMoreHandler(t){t.stopPropagation();this.show=true}render(){return e(s,{key:"3bcb203cf4c62810edbc8d8e73e435334320757c"},e("slot",{key:"134e64e49e4a4c7b1ea95cf150c7da57b25a9a25",name:"before"}),e("smoothly-load-more",{key:"ae62bc4186ba3e2931f36642c8f074aaabc11402",onSmoothlyLoadMore:t=>this.loadMoreHandler(t)}),this.show&&(typeof this.content=="function"?e(this.content,null):this.content),e("slot",{key:"5dd61a3aea61c4ffadf2ed8b5f1adffde1428b6a"}))}};rh.style=lh;const ch=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:"1e5aa151e1acd2f091b925f9a4ceb45a609ea198"})}get element(){return i(this)}};const hh='.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 dh=hh;const mh=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:"a3fcbf6570682dc94970853a2c1a57f926156647",role:"alertdialog"},e("div",{key:"e678d085096aa5968d0addecb9c5f672f67cc0e0",class:"modal"},e("div",{key:"ac5ef3de38862a2027e0a031fe4c7eaf0da20c14",class:"header"},e("slot",{key:"eedabda53e46f3aeee6e86d26f3eb28cacbb48ef",name:"header"}),this.closable&&e("smoothly-icon",{key:"848c1824a1422274429e03d2df6e8876fca7d9f4",name:"close-outline",fill:"solid",onClick:()=>this.open=false})),e("slot",{key:"f675af8f89db2b520bdf7601d1a1384a9837032d"}),e("div",{key:"d6b5a0a91b701e4c0a2116f67f67065afc8b5963",class:"actions"},e("slot",{key:"364d754a0884af6a6d357c560f0c7dd587a8eb93",name:"actions"}))))}static get watchers(){return{open:["openChanged"]}}};mh.style=dh;const uh=".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 yh=uh;const bh=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:"4f9ff6f7eb15a0292e408eded5af0cfe7a233716",color:this.properties[0],fill:"solid"},this.closable&&e("smoothly-trigger",{key:"444c117196067bf1bbad4bc3d16823d2a25a539d",fill:"clear",name:"close"},e("smoothly-icon",{key:"2c1b2e9be8fca6a72daf006a27790559896e16c9",name:"close-circle-outline"})),e("span",{key:"7fada3523bca91e346709fdb8578145ea534fe6f",class:this.icon?"icon":"clean"},this.icon&&e("smoothly-icon",{key:"912da44e0c378f678f3b041be1fc0d43ce9137df",name:this.properties[1]}),e("p",{key:"4f6c8006c2de6edd85b4d2d31b30159209a69428"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};bh.style=yh;const fh=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const ph=fh;const gh=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:"5fd9551ae9c12de16236d82497aa4e918d17623d"},e("slot",{key:"788431d7ce3a7e2ee8ebf1b0694089805ece19e6"}),e("aside",{key:"e25e808d6fb17f246437aa36d9667c9b92e49e98"},this.notices.map((t=>e("smoothly-notification",{notice:t,icon:this.icon})))))}};gh.style=ph;const kh="[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 vh=kh;const wh=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:"1c790579c31061c33fa3091dfb2c449598efaf9d",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},e("svg",{key:"d50777b7f9afc60017fa24d3bbb7935e041fa36b",class:"spinner",viewBox:`0 0 ${60+t} ${60+t}`,xmlns:"http://www.w3.org/2000/svg"},e("circle",{key:"c7e01af7d14a3b1e7665982568f9224799f5f707",class:"path",fill:"none","stroke-width":t,"stroke-linecap":"round",cx:`${30+t/2}`,cy:`${30+t/2}`,r:"30"})))}};wh.style=vh;const xh=".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 Sh=xh;const Ch=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(cr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e("details",{key:"0992340a956b04223ea7959da62ce5a6c39137e2",onToggle:t=>this.toggleHandler(t),open:this.open},e("summary",{key:"7549a887c08d7a4f9a8dcf32a9a5235cec95d3d4"},e("smoothly-icon",{key:"5218d138d2ce4c1abeaf9a84c701fa04b5041709",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),e("slot",{key:"5be813bee929e19c932e8bbdc1f60c341655c2ee",name:"summary"})),e("slot",{key:"9d521db99027941e0dc4b22f1194557cc6f79f25",name:"content"}))}};Ch.style=Sh;const zh=".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 jh=zh;const _h=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(cr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e(s,{key:"177a26489e58248688e4f615de43b1e06d0efcdd"},e("div",{key:"beb3f0c27000c4283695beddcaf7c30a5bcd74c0"},e("label",{key:"2dbe51fdfee9ca51de3ec008e14811464cbd330c"},this.label)),e("div",{key:"9714a66b42ac315da8ef9623b44691a23553b955",hidden:!this.open},e("slot",{key:"787f590aa4701413d4ab8e5141fc1ad10ea2eeff"})))}static get watchers(){return{open:["openHandler"]}}};_h.style=jh;const Ih=".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 Th=Ih;const Oh=class{constructor(e){t(this,e);this.columns=1}smoothlyTableExpandableRowChange(t){t.stopPropagation()}smoothlyTableExpandableCellChange(t){t.stopPropagation()}render(){return e(s,{key:"6abc41beffc6b45c81580243f0d32236042728b3",style:{"--columns":this.columns.toString()}},e("slot",{key:"ffb8dcff192d54ff1a72c72547912f97e71ef122"}))}};Oh.style=Th;const Lh=".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 Ah=Lh;const Mh=class{constructor(e){t(this,e)}render(){return e(s,{key:"419b6269854847340440c32fe1439913b44fc87a"},e("slot",{key:"f5369f0d2004f35397bfc1a04ba0e72f72e30444"}))}};Mh.style=Ah;const Eh=".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 Dh=Eh;const $h=class{constructor(e){t(this,e);this.span=1}render(){var t;return e(s,{key:"839b168d063d5e1069c1e560b29189d1d035bf35",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("slot",{key:"96f38dcbf676e717e42f0319784605e4cb7f04a9"}))}};$h.style=Dh;const Rh=".sc-smoothly-table-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const Ph=Rh;const Fh=class{constructor(e){t(this,e)}render(){return e(s,{key:"52073c33fc6aa4db38cc4f12dd2f46d54e9836a5"},e("smoothly-table-demo-filler-row",{key:"4f35a1cf85a6f7c88ded0ee190b6b21b14995e59"}),e("smoothly-table-demo-group",{key:"1c33720119dad21403df3a243a91a791b32f8bcb"}),e("smoothly-table-demo-colspan",{key:"8b64521946930deda49a51dcdb76c8790d9e2bc9"}),e("smoothly-table-demo-simple",{key:"ddfd2d9c341a927852bb1899e677a737eb38ad79"}),e("smoothly-table-demo-nested",{key:"d9e0eeddf5863739b2ae6a047309f4183ccd4e56"}),e("smoothly-table-demo-filtered",{key:"b48c95f784cb49e66370ef5ce130aaeff9015ebf"}))}};Fh.style=Ph;const Hh=".sc-smoothly-table-demo-colspan-h{display:block}.sc-smoothly-table-demo-colspan-h smoothly-display.sc-smoothly-table-demo-colspan{display:inline}";const Nh=Hh;const Yh=class{constructor(e){t(this,e)}render(){return e(s,{key:"3e34193f308159bb9bdc0f09b977700650de4693"},e("smoothly-table",{key:"b43a4d0acd678728c583d83346da6f7a7dc67c41",columns:3},e("smoothly-table-head",{key:"56664269fc7083d97664607c234cc4fbb1f6f4bf"},e("smoothly-table-row",{key:"974080501902f03522b722a5ed62965ac535b2e0"},e("smoothly-table-cell",{key:"7b804228226786642237dca441a21c4a2bf3d86a"},"Date"),e("smoothly-table-cell",{key:"7e6f1f57ebbc2cd5034bf2c1768d4cbe34f6d083"},"Skip"),e("smoothly-table-cell",{key:"8e5bdba4f1ab4370fdefdea76e5877881d1b8d1c"},"Total"))),e("smoothly-table-body",{key:"5a3d668c0ae144cb569a01ed01569ffa3f0b4322"},e("smoothly-table-row",{key:"02370401ad4db907a854714b682c4a0753f7e969"},e("smoothly-table-cell",{key:"33e0acfc2f4c23e7ba1d6c49987210f3f3a090ab",span:2},e("smoothly-display",{key:"87f76a1898d3b438c4f7abebec4b0217cd2f071c",type:"date",value:"2024-01-01"})),e("smoothly-table-cell",{key:"cde95f8d767fe1749c8b1fd625a9ce56166ca8fb"},e("smoothly-display",{key:"39c94b8daa6c5c0d3855a884433bd0690d903d1d",type:"price",value:120,currency:"EUR"}))),e("smoothly-table-row",{key:"dae86a5b39cefd863cd378407af6df79b9cc4234"},e("smoothly-table-expandable-cell",{key:"38f21be1a5d61fd8af6b3b8cdb492ffc9bef0b5e",span:2},e("smoothly-display",{key:"3c60783835b8e38a85f50fe5b9d6b636e4f23232",type:"date",value:"2024-01-02"}),e("smoothly-lazy",{key:"90032d321295b755b72133e4802b4ec82c6bd61b",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),e("smoothly-table-expandable-cell",{key:"b7962eee7b81e2ece5d17e114f67a424f22e08b0"},e("smoothly-display",{key:"cfba3c5ce58f5591a510e826765ab5fea2366f58",type:"price",value:220,currency:"EUR"}),e("smoothly-lazy",{key:"5e3e291772ae876d8a2cd48fe25d80bb94e0d8f7",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:"a8b2e296f55a212eb47037af89458c2030b2eda1"},e("smoothly-table-cell",{key:"ed221ee93d5babc1f73bd6f4da928e9bb0f665ec"},e("smoothly-display",{key:"23c4efeaff167ffef3993e4916dedbe14aaeae4a",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"35bec64456de5038f9775edb19d1469ade53cf5d"},"Not Skipped"),e("smoothly-table-cell",{key:"507ddc3265af461673fa2a81baf20573b998a5ef"},e("smoothly-display",{key:"f266d235837d23ba666d060e48cba5e7d6b7d470",type:"price",value:320,currency:"EUR"}))))))}};Yh.style=Nh;const Uh=".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 Wh=Uh;const Bh=class{constructor(e){t(this,e);this.cats=[]}async componentDidLoad(){window.setTimeout((()=>{this.cats=undefined}),3e3)}render(){return e(s,{key:"19bc7d4ed0eb23c000767c730aa4e228fdb50069"},e("smoothly-display",{key:"bb31fb70ffe9240b5af1fe847b6f25880ed2b0e7",type:"text",value:"Filler row"}),e("smoothly-table",{key:"feb1a1ed858879fc7dc5a8a012d3e167c08cb7a8",color:"primary",columns:4},e("smoothly-table-head",{key:"49c5ce0d2cad194cc4ae9ccb67553f55000298a5"},e("smoothly-table-row",{key:"3759ed5a89913c27a0bd9564f7926417fa4c6bc8"},e("smoothly-table-cell",{key:"e0fa6b5c4e4483082f07abb262ff0ac765170f4f"},"Breed"),e("smoothly-table-cell",{key:"e9adc4def9a510c64a7a726bd15f52a7884b8577"},"Country"),e("smoothly-table-cell",{key:"a2aa66dc2a576fd8f80603696b3e2ea4e6435c04"},"Coat"),e("smoothly-table-cell",{key:"f8a537417a8e153686f525a83852b7ef348df382"},"Origin"))),e("smoothly-table-body",{key:"8a4b21db78bd229f4b6912d988df97b1a2326eff"},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)))))))}};Bh.style=Wh;var Vh=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 Gh=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 Kh;class Zh{get selected(){var t;return Gh(this,Kh,(t=Vh(this,Kh,"f"))!==null&&t!==void 0?t:Object.values(this.data),"f")}constructor(t,e={}){this.key=t;this.data=e;Kh.set(this,void 0)}handle(t){var e;return new Zh(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 Zh(t)}}Kh=new WeakMap;const qh='.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 Xh=qh;const Jh=class{constructor(e){t(this,e);this.criteria={};this.cats=undefined;this.selector=Zh.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 er("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=Qh[t.country])!==null&&e!==void 0?e:[]}),names:(o=Qh[t.country])!==null&&o!==void 0?o:[]})}))}render(){const t=this.cats&&Jn(this.criteria,this.cats);return e(s,{key:"f8244e86f9d20163a296eff32c0126192c2f0168"},e("smoothly-display",{key:"b8c6ff3c636231f5e0d14b260f99b4767f49f889",type:"text",value:"Filtered"}),e("smoothly-filter",{key:"2c52b1628d21083565da0dc1d4dfe5f1aa5fa11c"},e("smoothly-filter-toggle",{key:"30feb3b72f53bb17e4cae9b7de3c32e9f9082fc4",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),e("smoothly-filter-toggle",{key:"3a203996f9cb545d0797f93c34034bd4fca27ea4",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"a6a6d3b7b359de6a8143fd23575809b41235b4ba",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"878dac5daece272d96e40bb1cc5e996a3e9b235e",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),e("smoothly-filter-select",{key:"e3ad45d9e9932f1ea6d183278efe2a9413905c70",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:"a2843093bf727be5191134fc35ca7a3dbfbb5010",slot:"detail"},e("smoothly-form",{key:"eef5df439484fc442843b45d9aec2b48af3bda66",looks:"border"},e("smoothly-filter-select",{key:"c88d9d5f254b31728950a4ba703c823515601998",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:"d76e123d6f63ad3dadc8d46b4ec3c1ff26414461",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:"217a1ec1a690e657fa064591616d0e9e24cce84e",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Qh).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:"ede93e0f3c380f7057f0fecf6d6e063881f132eb",label:"Coat",property:"coat"}),e("smoothly-filter-input",{key:"56ab36148e22836aea817bc970865da8799965d6",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 Qh={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Jh.style=Xh;const td=".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 ed=td;const od=class{constructor(e){t(this,e)}render(){return e(s,{key:"1034540a98faf600a953aec9b0d9b5d26031f166"},e("smoothly-display",{key:"88f047faaced01d446f0a205a560ea84047744a1",type:"text",value:"Group"}),e("smoothly-table",{key:"af471bfcedad100ae30150628d4cc3800ca8b6ca",color:"primary",columns:2},e("smoothly-table-head",{key:"14642db2794498956bb5d1fe6acb5fdc84b6e2b2"},e("smoothly-table-row",{key:"2a0ba815cad8dda6501a0d3bb49a8dbb62261f30"},e("smoothly-table-cell",{key:"b377d5e5cafebd0280aeb0f99fd1bfa7080ed033"},"Date"),e("smoothly-table-cell",{key:"4ea57090e582d506d569b618e03115d7cf175630"},"Total"))),e("smoothly-table-body",{key:"07ab19f5e57c95e1449428638cabe53be0ab1982"},e("smoothly-table-row-group",{key:"4f11896e5ca0ddc9ad4a43a99d618ca687fd0665",align:true},e("smoothly-display",{key:"b193951320dc1044ce6e8abaf58337b940a09894",slot:"start",type:"date",value:"2024-01-01"}),e("smoothly-display",{key:"32218a0b2afa1d24817cc963922eeafa2e1e5db5",slot:"end",type:"price",currency:"EUR",value:510}),e("smoothly-table-expandable-row",{key:"81e7daf6a6e9c53db9e3bf54c19ecf2b50fe1a14"},e("smoothly-table-cell",{key:"a92e44fc7721a2b8f9a69008d3879963c105ab1f"},e("smoothly-display",{key:"4836adb43eecad122272039cee91db984dd743f2",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),e("smoothly-table-cell",{key:"120d701d11a219a6541831baaf87ff4d723cdcc4"},e("smoothly-display",{key:"43cc5384340f4548687dc83dac8eab6d5c7a8ec9",type:"price",currency:"EUR",value:250})),e("smoothly-lazy",{key:"3dcac4e4d28bac23a172da204439b2631ef96798",slot:"detail",content:e(a,null,"Details of 2024-01-01T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"c682c8da163d199ec418b9c8a8a757c79f4bc2dc"},e("smoothly-table-cell",{key:"996085ca2beaf50fbb6b801005b9027841f7dbbe"},e("smoothly-display",{key:"c16a1b376275e61a9710de2ce9f315d670618310",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),e("smoothly-table-cell",{key:"366ae68c39dca6f2325d9041a46384cef5739024"},e("smoothly-display",{key:"bef71253203a53db1b9eb0569004726f1a8fb254",type:"price",currency:"EUR",value:260})),e("smoothly-lazy",{key:"da35ffcb42c4e729f2a0527b38d0c216b71da52a",slot:"detail",content:e(a,null,"Details of 2024-01-01T13:37:00.000Z")}))),e("smoothly-table-row",{key:"e92df1aa55107de9287b4e6d0da32de331d8820f"},e("smoothly-table-cell",{key:"499be1873791c2fd7f727d7ed0d1629e29688e28"},e("smoothly-display",{key:"6c6ac22ebd8a5b56cb52c5a8542673eee54fdc6f",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"77158bc253e893d9471afe55dd6ce37e1e22bf16"},e("smoothly-display",{key:"28832eae08eec6de59407c9de07fdef3e616170e",type:"price",currency:"EUR",value:130}))),e("smoothly-table-row-group",{key:"e9e4e349e364d8d26fd1b90b18e24e75f3af710c"},e("smoothly-display",{key:"43164349ce717696792a21421f9b52bfe62044d0",slot:"start",type:"date",value:"2024-01-03"}),e("smoothly-display",{key:"bd8eb344377824670e1219c802e99727e2f8a89d",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"31bcc27b52845699f0ee7e9efb27cccbe4d43223"},e("smoothly-table-cell",{key:"f0c1462b237797440696298f6086c7dc3fd1cd98"},e("smoothly-display",{key:"cfdc9876392add8fcd24ea4745770036af566da4",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),e("smoothly-table-cell",{key:"5605695d73d540b01984598c1f5964860d8438f6"},e("smoothly-display",{key:"7f355901e0101c45bfa2a5653026e78320acb139",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"e1667a9048344e93aafb944e48123afcb9896ef2",slot:"detail",content:e(a,null,"Details of 2024-01-03T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"0472b3979d1ac6f92e20fe5f709c67af7ee63bfd"},e("smoothly-table-cell",{key:"06359d29cc7a216a23dfb2174a98797cbdb73da4"},e("smoothly-display",{key:"264f1532cb20ccd6ec12deef3ee86f17863293d2",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),e("smoothly-table-cell",{key:"72a12b91b051b2896a74a5add41e7a18c712dfe9"},e("smoothly-display",{key:"13b46fad06f4c50051a1d759e14964539e5080fe",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"57f10d0b320a04996492e96c41616f467dc8a970",slot:"detail",content:e(a,null,"Details of 2024-01-03T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"99f021f3d3c93e1ad10c824c02938990bd097a38"},e("smoothly-display",{key:"cdd2ea85952eb82236b830d28a7b0e04f56a3a88",slot:"start",type:"date",value:"2024-01-04"}),e("smoothly-table-expandable-row",{key:"c81417b3c22bdbdf39b3b2954abbe27ba36200e9"},e("smoothly-table-cell",{key:"9f72351bc3ca870887829689ead20a662f1939d3"},e("smoothly-display",{key:"4aeb1c5d1860d272daf29c42f51b4262e3ae130b",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),e("smoothly-table-cell",{key:"de6dcfc8fb2616402ee0b13efd1ebdabe515a127"},e("smoothly-display",{key:"e91648acc4a155293dba130e178ffbee56e9dbbf",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"324773d0738ce82283e6e8951265bd6a6b85ecda",slot:"detail",content:e(a,null,"Details of 2024-01-04T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"1bcfdc3cdc43857b29dd359facaf75e4b7e199e9"},e("smoothly-table-cell",{key:"b318048f5cda12927f4fad00ddaa6ae57700fd4f"},e("smoothly-display",{key:"8936240e59e693824c668fba172ef7abf5bfe154",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),e("smoothly-table-cell",{key:"c24285792e6394dac7871d02d79cb486ba9c7269"},e("smoothly-display",{key:"509b4ebffda8e12de3eb4352c10e342025ac0f4e",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"e96ef00ea6d1866b0c8ab24a996aa9945a2cc81e",slot:"detail",content:e(a,null,"Details of 2024-01-04T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"ea8ee80354c68b0f0aef455de4a93c53d6f79064"},e("smoothly-display",{key:"ff1f9450bc55b46c5a37af12ac990fd3c478aeac",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"29973938b1cebd9eb81e39f58d5973c291421b2b"},e("smoothly-table-cell",{key:"7bf794e7b3b0bf8cf4d1530dbf1ed35b241d9fcc"},e("smoothly-display",{key:"9eecb9255f5a75c93de280aad89f0f113388dd74",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),e("smoothly-table-cell",{key:"29e8bb6a32c4809cdf5454db6901b5ee5d9fc818"},e("smoothly-display",{key:"1b0f13543db874ccc0a58aad14dfdbbcc1d8568b",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"87219c0372a63cfb2ee9b2c649a995b0b5f6870e",slot:"detail",content:e(a,null,"Details of 2024-01-05T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"110c5c56ef60a472c20db6630be831e4ec2f96c9"},e("smoothly-table-cell",{key:"10bf1dc3e9603fe4ecd0f0a1235b98942b28d121"},e("smoothly-display",{key:"c9da9d00ff04e7f550099ace2219940a50b28c48",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),e("smoothly-table-cell",{key:"2e581d12913416d23f17c9b5b8b52b871f45b736"},e("smoothly-display",{key:"6d2d1449bceb8b9f72bfbf5ee5c285f8a0e42936",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"7b5e7cd8a145fb79cc3115e9910d9401788d043c",slot:"detail",content:e(a,null,"Details of 2024-01-05T13:37:00.000Z")}))),e("fake-group-wrapper",{key:"d643f958e09e8a4ce097ae22e9c75487fda068e6"},e("smoothly-table-row-group",{key:"e2c08488abe0ec8e17eadb8e6bb097ca705e5270"},e("smoothly-display",{key:"c86ce34607e245f4fd31b67f4bded15086538a3e",slot:"start",type:"date",value:"2024-01-06"}),e("smoothly-display",{key:"a36ef3d966f2862f1f65a9c8b8a8f9536069311e",slot:"end",type:"price",currency:"EUR",value:720}),e("fake-row-wrapper",{key:"adcad0e70a4db0594014f808caf00c98ca2b7ac7"},e("smoothly-table-row",{key:"a950bbbb0792b9a28324105b447e5347ceb561e8"},e("fake-cell-wrapper",{key:"3220faff99707a6f8c54ab624f1e21d1b33dbd6c"},e("smoothly-table-cell",{key:"27c97c03c54e5f5564b3125e02e672a50fb6d0c1"},e("smoothly-display",{key:"299d746ccab64a1db90ca1aef21d3e8df61aaa22",type:"date",value:"2024-01-02"}))),e("fake-expandable-cell-wrapper",{key:"fd2791819ea29c8f2bac0c400fe38f6c7a24fe04"},e("smoothly-table-expandable-cell",{key:"19e32e94b1066485d1fb4d27f5ef3071d210c492"},e("smoothly-display",{key:"d28c9c3e98422760a2a9bf970d5c5434dd9c0805",type:"price",currency:"EUR",value:130}),e("smoothly-lazy",{key:"4c7f4047f79dc6125eb9c7b99325dae50c1244ad",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:"172a08d7e467a00ec054c668b3e4f7b7276fffe7"},e("smoothly-table-expandable-row",{key:"f7519806559ed0358bd48dfa2d793a8d562a4687"},e("fake-cell-wrapper",{key:"de3abe6b9cde5ee429071430a1372bd363ca062e",class:"span-2"},e("smoothly-table-cell",{key:"9b22dbc7264514633f198767171c52c59ba9b60f",span:2},e("smoothly-display",{key:"cd8f6855d38a8c1e74d23c32b3792dcbcf88ca71",type:"date",value:"2024-01-07"}))),e("smoothly-lazy",{key:"65f410793a67e31ada397a000d6119a0b9238fff",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),e("smoothly-table-row-group",{key:"e9b3b35a246b1f210d87fe9c128f47aeaee91445"},e("smoothly-display",{key:"a827670eb50efe1287215c1171c8058af0d8333c",slot:"start",type:"date",value:"2024-01-08"}),e("smoothly-display",{key:"772c96f8a63b795575f2c4be5f9fd250862e011d",slot:"end",type:"price",currency:"EUR",value:720})))))}};od.style=ed;const sd=[{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 id=".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 ad=id;const nd=class{constructor(e){t(this,e)}render(){return e(s,{key:"69539e731b90d5b511d364a0cbc504f4f3b7b998"},e("smoothly-display",{key:"2adf938a2648edc88a391b7135aef7d9fd4da26b",type:"text",value:"Nested"}),e("smoothly-table",{key:"b1281e55321dacce35828ba7afd040da105f8625",color:"primary",columns:8},e("smoothly-table-head",{key:"bba8cb215ebc040cacac13c7d1a3c580e401769e"},e("smoothly-table-row",{key:"6145e98d26c3612170bbbe4e8fdb327d70687491"},e("smoothly-table-cell",{key:"e440820fa3cb61fa114a11bad1d5cc515b71f02f"},"Id"),e("smoothly-table-cell",{key:"b83c06761eff7b69d744218657989d69366dcbe3"},"Registered"),e("smoothly-table-cell",{key:"6a17ffbec65a8008ddaaeaccd6f0e0814e9646ae"},"Name"),e("smoothly-table-cell",{key:"7e16bc49d25f91da77a7bd9f6c4e32486a9829e7"},"Age"),e("smoothly-table-cell",{key:"4ed8677d72e0a71e4dff482c35305882e8d6e4ef"},"Balance"),e("smoothly-table-cell",{key:"e8b12d3c076ce442c6424745ab5803444855efc4"},"EyeColor"),e("smoothly-table-cell",{key:"4222c1a4830c631b590056ac3309f0672b09df81"},"Gender"),e("smoothly-table-cell",{key:"4fc564f09cb4d994753d83095dd7381b9c29cf53"},"Company"))),e("smoothly-table-body",{key:"1dfe30e5488defdfebf8ec5c09347b31837b9f1a"},sd.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:"fccda52a42a3549a7c87127a037257f05a65000f"},e("smoothly-table-row",{key:"aea36ed1341c1889f4675c97c44c94662d020ae5"},e("smoothly-table-cell",{key:"c2724c419810089e8f9e776244401a09dc1765ed"},"Footer Cell"),e("smoothly-table-cell",{key:"3fe2b6e9a49c025cb677e458ae1a010130c6f45b"},"Footer Cell")))))}};nd.style=ad;const ld=".sc-smoothly-table-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const rd=ld;const cd=class{constructor(e){t(this,e);this.data=undefined}render(){var t;return e(s,{key:"7c40ccfd1a54f9463c9ae1ec97c6536bb38746c4"},e("smoothly-table",{key:"6571617ffc5049746e279895de3e626682b81608",columns:4},e("smoothly-table-head",{key:"9554b931df59678906b7eaef48b5373950c8cd26"},e("smoothly-table-row",{key:"39acfc3805f1799c190d511c1b73fa9448d206fc"},e("smoothly-table-cell",{key:"a7d5232032ddb6a93a5fe7d3e47808c7e6af5e4b"},"Id"),e("smoothly-table-cell",{key:"42694d147f8daa24c3ddab07f1eb3cdb8881bbaf"},"Name"),e("smoothly-table-cell",{key:"9ce43b9965536d4d6163feb44439828e27b92e7a"},"Age"),e("smoothly-table-cell",{key:"46df5081158ff565ce3d98c50076bd9593edaadf"},"Balance"))),e("smoothly-table-body",{key:"15f5f434ff013679b752aa9b365eb362d5178397"},(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)))))))}};cd.style=rd;const hd=".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 dd=hd;const md=class{constructor(e){t(this,e)}render(){return e(s,{key:"780ac65de4ffcb956dbad69d202adc24ac71f5cf"},e("smoothly-display",{key:"769ae723fe3ed9ceac79f85aaf80145cf1a9e227",type:"text",value:"Simple"}),e("smoothly-table",{key:"f751cd5b359e9191d32f32db11b285359dd71a04",color:"primary",columns:2},e("smoothly-table-head",{key:"bd89fcb03ca046ad5e732d489e00c88ddd24a34e"},e("smoothly-table-row",{key:"64aea3a162f0a3cc7ce910f29026c316bed319a6"},e("smoothly-table-cell",{key:"b00a8bc995f1c759a94fc5669e96a4c3d3cbacc9"},"Breed"),e("smoothly-table-cell",{key:"9ba3b1942b96f41bddad179d557f1d7724caeb1d"},"Coat"))),e("smoothly-table-body",{key:"9b27306a73b99b92735fd1234e8e9a7df724d1b1"},ud.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:"ce2fb49396773d07fce9cf19438b92466f5a6589"},e("div",{key:"b88ab73776042dc73de6844a3ae3789af13e2fa9",slot:"detail"},"Content",e("br",{key:"760a0069b9d767d88e0ac10744d37ae3af7a70e2"}),"of",e("br",{key:"60b435dcf383249c163fe3a44d356b46a4da92da"}),"the",e("br",{key:"84ad54def16c023acd4b676dd00b0253f6054cc6"}),"expandable",e("br",{key:"3465b4c9931c76532b2b42b86ecdd45f495942e0"}),"row"),e("smoothly-table-cell",{key:"8274a7413f2632306f99d5b9c0505572ff56d402"},"Cell1 in expandable row"),e("smoothly-table-cell",{key:"6d944f54dc5d1671847821bc3b7d9e178a23fd67"},"Cell2 in expandable row")),e("smoothly-table-row",{key:"eb2dd91dc0408665e8f21f0f6111dc79a5f282c4"},e("smoothly-table-cell",{key:"eff62097e34f55554390e69ca801a0377344ce80"},"Cell5"),e("smoothly-table-expandable-cell",{key:"2817aed70b5792d59680412e8c497b1656696c3b"},"Expandable Cell",e("div",{key:"dea33dcc6f841d0c1b7fd85727558ede5b2ce444",slot:"detail"},"Content of the expandable cell"))),e("smoothly-table-row",{key:"560975f92466b626d2dd30cb5e2591bece061405"},e("smoothly-table-expandable-cell",{key:"816ae1d28cfb3aad7f9e2af77e57b1b79d502d34"},"Expandable Cell 1",e("div",{key:"74b07ca9b1d36dae21fff5dde7e7e520f851c331",slot:"detail"},"Content of the expandable cell 1")),e("smoothly-table-expandable-cell",{key:"8e0d753e4879231b98225951961e3ec552af648a"},"Expandable Cell 2",e("div",{key:"2e79fd00c9430021ff5e48cb948e9128f8565888",slot:"detail"},"Content of the expandable cell 2")))),e("smoothly-table-foot",{key:"9f6c473c6be9450ac13b6b683ead10022d2b5e60"},e("smoothly-table-row",{key:"364561f4dc75d33b9d5b562b76819cee8c7c21ce"},e("smoothly-table-cell",{key:"06449b9d6faed54aff67df842a95e1e14a4aac11"},"Footer Cell"),e("smoothly-table-cell",{key:"9d4653c5ff5da95ee3861402b8055c166025ee59"},"Footer Cell")))))}};const ud=[{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"}];md.style=dd;const yd='.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 bd=yd;const fd=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:"b5692fb60dac7d8cae94633fb2812eb7b4c64cb5",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("div",{key:"b0fe3a82b236953dd02cf2279705688f9234fec4",onClick:()=>this.clickHandler(),class:"content"},e("slot",{key:"4f60051bf63745e52708e35f2bd21b97949cc466"})),e("div",{key:"7879d0dc2ea73ad77b2f8f78a2bd61e095e9223f",class:"detail"},e("slot",{key:"fec5e0a9c607e6037364afe4626b069854397a37",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};fd.style=bd;const pd='.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>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 gd=pd;const kd=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:"67081c5e554a8516d3a9e9a680390fe0c51dbc1f",onClick:t=>this.clickHandler(t)},e("slot",{key:"fd3c1e99c525caa76e2d29be36777eccd8ae965a"}),e("div",{key:"e5fa14d3c2bfa119a3fa67c79399787c277effb3",ref:t=>this.div=t},e("slot",{key:"dd9ec4832a35287ffbbfa5b82071535acf607e98",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};kd.style=gd;const vd=".sc-smoothly-table-filler-row-h{grid-column:1 / -1}";const wd=vd;const xd=class{constructor(e){t(this,e)}render(){return e("smoothly-table-row",{key:"e26b7e2c9919bbf73eeacc011495aafe6bc92f7a"},e("smoothly-table-cell",{key:"a08e1a043dd889387501763e9252b2c64ba69189"},e("slot",{key:"bdf8d877395cf921935e824cb1fc8a5ee8ac34e3"})))}};xd.style=wd;const Sd=".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 Cd=Sd;const zd=class{constructor(e){t(this,e)}render(){return e(s,{key:"2fffb0be2489bb9b9d6b9388584c7cea49a732e3"},e("slot",{key:"d5c38b6d5848a67bc9d5bfaf2369f478a59543cd"}))}};zd.style=Cd;const jd=".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 _d=jd;const Id=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:"41c6d5bdd8154fe41e23e02dfb148ce12d7851aa",class:{scrolled:!!this.scrolled}},e("slot",{key:"5ffb97a60df91262717fbe003f2b15c55f30b15f"}))}get element(){return i(this)}};Id.style=_d;const Td=".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 Od=Td;const Ld=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:"bb7d869d99acaf7b2fd0bd79173334a606061022"},e("slot",{key:"c6c020ec62114685afb24671d1ae111cf5a0ff1b"}))}};Ld.style=Od;const Ad=".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 Md=Ad;const Ed=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:"5428f7c0927f6a52ed0904f23bd0a17645bc42ab"},e("div",{key:"c4d28ad7f36759e8d32a3931e30dc0964c1269c4",onClick:()=>this.clickHandler()},e("div",{key:"40e94b62b6795627065908f7fb1dae76a028f542"},e("slot",{key:"d239da0b83ffb4bb7ad0b056676e6f6cd68a4644",name:"start"})),e("div",{key:"4876ed2db6ba12345b09344d9d83adc3431a8a77"},e("slot",{key:"02c7d7e55df7098bbf70192a452f90d657e2bbee",name:"end"}))),e("div",{key:"7723003485dded34f175d84b3479f20df7352e4f"},e("slot",{key:"c952dfd567c78aff93a771d131bf4e7e15a08d24"})))}};Ed.style=Md;const Dd=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";const $d=Dd;const Rd=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs=[];this.selectedElement=undefined}onInputLoad(t){if(t.target instanceof HTMLElement&&!this.tabs.includes(t.target)){this.tabs=[...this.tabs,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:"ea00c7f57eab3dda4df7967760defddde82e2ed0",style:{"--tabs":`${this.tabs.length}`}},e("slot",{key:"8792ebb5ca91ad7423de98c5f9cb0f99e2d87325"}))}get element(){return i(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};Rd.style=$d;const Pd=".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%}";const Fd=Pd;const Hd=class{constructor(e){t(this,e)}render(){return e("smoothly-tabs",{key:"69a84a806d5519b41761596d3450e6f3d8022a4a"},e("smoothly-tab",{key:"7ea729f8704ea18140450d0b622bf890d06eef0b",label:"test1",open:true},"Hello world!"),e("smoothly-tab",{key:"8ba37d82f2bc9fdca7e37d2ac94ad28216619bde",label:"test2"},"this is a test message!"),e("smoothly-tab",{key:"142a60c893adc79c1e89d5cccb4f142940948c90",label:"test3"},"this is a test message again!"))}};Hd.style=Fd;const Nd=".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 Yd=Nd;const Ud=class{constructor(e){t(this,e);this.color=undefined}render(){return e(s,{key:"73d669c49fccff8dafed12e8f857c6556d2b73b7"},this.color,["tint","color","shade"].map((t=>e("smoothly-theme-color-variant",{title:`${this.color} ${t}`,color:this.color,variant:t}))))}};Ud.style=Yd;const Wd=".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 Bd=Wd;const Vd=class{constructor(e){t(this,e);this.color=undefined;this.variant="color"}render(){return"Aa"}};Vd.style=Bd;const Gd=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Kd=Gd;const Zd=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})))}};Zd.style=Kd;const qd=".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 Xd=qd;const Jd=class{constructor(e){t(this,e)}render(){return e(s,{key:"3355b78af80fa211bf0f73a0f108b8b71b553ad1"},e("h2",{key:"7e8cc8d2ba8b157f3a31cf3abb9e53c76257fb08"},"Theme"),e("smoothly-theme-picker",{key:"f7c44b1511d4259059bfd9fb19f47d1ce26e19ae"},e("smoothly-item",{key:"13e431c3dd07f385b841a0172cae10826d97f268",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),e("smoothly-item",{key:"4e318c9a7c9ae7b59557ff07dc1e36fd9b110e78",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),e("smoothly-item",{key:"60cb9a6db0695b08ab313553113beaf0cad24e7d",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),e("smoothly-item",{key:"489a1e89509050ebcb8455cc9e3bfbd22e29e245",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),e("smoothly-item",{key:"5ac8c7204a076adcdcddd1881bb63cb61949709a",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),e("smoothly-item",{key:"7798c582895794c11d88f5947890f68b07e98b4d",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),e("smoothly-item",{key:"a789c18c71cdeeb6904077d54c8098d1a80aafcf",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),e("smoothly-item",{key:"0a986aa17adada44feb7951a1526401625856ca2",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),e("smoothly-item",{key:"84015d4aa4d1328cec770b42c5ea0480685a863a",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),e("span",{key:"cd2450a4de4f3280deec36ab7c1edc09c92b394d"},e("smoothly-theme-colors",{key:"65f5a8d82f38d4414ad6cc20a19df461137cd611"}),e("smoothly-theme-guide",{key:"95ccec8e0eff12608a2e1f656122ffc83a8bb487"})),e("smoothly-button",{key:"a274d5f37ae276ef51ac471c2492647a95bd4747",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"53ef2e1f9fa3ca98dd3b45b64755f3d70e8a4e91",type:"link",link:"/redirect"},"To /redirect"),e("smoothly-button",{key:"32614a4431806e998a5c96b74d1444cb06aec539",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),e("smoothly-button",{key:"33292c78195c3be5ac3ac4f4e2a1bb261fbb35a7",type:"link",link:"redirect/nested"},"To redirect nested"))}};Jd.style=Xd;const Qd="";const tm=Qd;const em=class{constructor(e){t(this,e)}render(){return[e("smoothly-display",{key:"abe16e5da831c37fe67d692e269f9a8e36fd6d76"},"Tint is used as background to highlight, for example hovering an item in the select menu."),e("br",{key:"767fb4f3d7caf3db61652ddf130836fb612956f0"}),e("smoothly-display",{key:"ea00d4efab52f3fd20bced1d2dacd60fca11df29"},"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:"76ebb191d5cf25196171da5625da1c0d8343a903"}),e("smoothly-display",{key:"4546f155145ac4620b4801c4bf011d50a6d1561e"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),e("br",{key:"5510232d9153a5a8c5bcfea2b9eebb222385d7c0"}),e("smoothly-display",{key:"064049e7637a179654d50690057d024a61d8c3ac"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),e("br",{key:"9138ef0c371b29f199e9c35a841a5c2ba7c8f374"})]}};em.style=tm;const om="";const sm=om;const im=class{constructor(e){t(this,e);this.element="smoothly-css"}render(){return e(s,{key:"1f304bc0806c407954e1326ec8e0bea77634dd30"},e("smoothly-input-select",{key:"6887bc24589b7583d62c89414b35b7013d1bcc16",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:"968fbc24fef73477248ab5d6769273bb9aa214bf",slot:"label"},"Select theme"),e("slot",{key:"ea4c60a9e51f8182afabd7cd36f1ebe96a4ffd4c"})))}};im.style=sm;const am=".sc-smoothly-toggle-h{display:inline-block;border:none}.sc-smoothly-toggle-h>button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const nm=am;const lm=class{constructor(e){t(this,e);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(t){this.selected=!this.selected}render(){return e("button",{key:"6c8f541b5347d578771d776c36cce94f31c5e538",type:"button"},e("slot",{key:"3f57af21ba84cf9abccf87193da302d79df62561",name:"icon-slot"}),e("slot",{key:"46aafd8b7d1a5e4d0888180c26185260acc2426a"},this.name))}};lm.style=nm;const rm=".sc-smoothly-toggle-switch-h{display:block;width:3.6em;height:1.8em}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-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;position:absolute;left:0;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));font-size:1.2em;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{width:2.4em;height:1.2em}[size=small].sc-smoothly-toggle-switch-h{width:3.05em;height:1.5em}[size=large].sc-smoothly-toggle-switch-h{width:5.2em;height:2.5em}[size=tiny].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:.8em}[size=small].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1em}[size=large].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1.75em}";const cm=rm;const hm=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:"398be7261835e65200aa85d11e3b1397f437d0da"},e("button",{key:"88d40c975f2cde83e8531f14253c65c3452a724c",type:"button",disabled:this.disabled,onClick:()=>this.handleClick()},e("smoothly-icon",{key:"effb2050447b0cd6e70d402d06ba3f27e0462d5c",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};hm.style=cm;const dm=".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 mm=dm;const um=class{constructor(e){t(this,e)}render(){return e(s,{key:"034df80277fff91ed0585359d0f3b64f1f5c9c8e"},e("h4",{key:"16f9ecad7723baea045eb24319b4b3cdcf966fef"},"Toggle switches"),e("div",{key:"cc8130abb7122fc8615e6a48b09c7f67d049c3f3"},e("p",{key:"0178c74f8e5449dc20b4d1aa374b663e042af53b"},"Checkmark"),e("span",{key:"3b726271f6c8c844a2f7d9a324831c6943e90956"},e("p",{key:"2a7a689c3f391b79adb249ed2853359946325d72"},"Tiny"),e("smoothly-toggle-switch",{key:"a9cf4be78c2ca5e9ce5c39a460f4121bcec0a79a",disabled:false,size:"tiny"})),e("span",{key:"df61c6928bc53490c27a657544cb2f7ca71a0d23"},e("p",{key:"349855d3b168786f2bd6c66e24641454d740b4d5"},"Small"),e("smoothly-toggle-switch",{key:"ad339c40028b8d048e25a4ab091d043a2cf6d71f",disabled:false,size:"small"})),e("span",{key:"6470f379e0acb7e9540ff3d087ae2983f0663c7b"},e("p",{key:"4e306c9124460d5eb53f9ab7f8e437d8f4340f04"},"Standard"),e("smoothly-toggle-switch",{key:"11b62ea374d656318a287acc5cebc73dbbf2afce",disabled:false})),e("span",{key:"53f0080164ef7be32973e53c21925c93dc991796"},e("p",{key:"8f8ba1f7ab8ab16f2af0fa9a108c8e31b68c928c"},"Large"),e("smoothly-toggle-switch",{key:"83b19601e1d27d35c1e9ac274788ca10662a9d0f",disabled:false,size:"large"})),e("p",{key:"f51a2baf2857d05999dac55264de877c90e1a128"},"Colors checkmark"),e("span",{key:"a1341c2cd8d7d02d16f3c9448b39d85d48005c5d"},e("p",{key:"d3f1a11fbca6c9a1e004e75b5410aabaac8cc1e0"},"Danger"),e("smoothly-toggle-switch",{key:"f02376cda82d5525e7b01ba02365378c559dea90",color:"danger",disabled:false,size:"small"})),e("span",{key:"0829cb311306cefecebe45c1b6775c9747b1827c"},e("p",{key:"fda09a19dd1fd5b46888e98056ffbdc6ff2688ed"},"Primary color"),e("smoothly-toggle-switch",{key:"f34131d23e8f6a94279e2082f1eb1bb73fa67c6c",color:"primary",disabled:false,size:"small"})),e("span",{key:"ddf09d917b4507029a899f002187160caf30a60e"},e("p",{key:"568eb5c4b551d5246b004dad6ee8b6d061aaa5ed"},"Secondary color"),e("smoothly-toggle-switch",{key:"2c16e6df2ff55a66ee1cc50569a6adee5e308363",color:"secondary",disabled:false,size:"small"})),e("p",{key:"6b19804cc0bac96ee73309c06dab17a65a9d03f9"}),e("p",{key:"eec933175db979be637e49048aa1cb35de8cd07c"},"Colors no checkmark"),e("span",{key:"c14007f332ef1cc4227446815f2fa0a576be6b34"},e("p",{key:"4ff13a71c30d846deca9faa95c61e98d8fc52336"},"Danger"),e("smoothly-toggle-switch",{key:"3d2d4c7a9f5523974eb8d1ab5dc46ee9789e212f",checkmark:false,color:"danger",disabled:false,size:"small"})),e("span",{key:"56aca91c3cd95a47849964c31a016aff430e54da"},e("p",{key:"9139f972a24c3e35f23545d366b5be60a14e5d7c"},"Primary color"),e("smoothly-toggle-switch",{key:"80be9774b24dd43b3011988403d6beacf56d874c",checkmark:false,color:"primary",disabled:false,size:"small"})),e("span",{key:"3fb5d92da50b6f7e339428fc46acc34ff221603d"},e("p",{key:"346022141746c076d723705433b6032fdff04648"},"Secondary color"),e("smoothly-toggle-switch",{key:"d477c6ca4234534120bf9422f1c1ad17baa9c2d1",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};um.style=mm;const ym=".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 bm=ym;const fm=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:"7da8c40d448d1b53c81d638f0b1684e4577aa49a",disabled:this.disabled,name:this.name},e("slot",{key:"587236afa7d7602b912b374ec5651e3efb528364"}));break}return t}};fm.style=bm;export{P as smoothly_app,F as smoothly_app_demo,Pt as smoothly_app_room,Nt as smoothly_back_to_top,Wt as smoothly_burger,Gt as smoothly_button,qt as smoothly_button_confirm,Qt as smoothly_button_demo,ne as smoothly_calendar,ce as smoothly_dialog,me as smoothly_dialog_demo,io as smoothly_display,ao as smoothly_display_demo,lo as smoothly_display_demo_json,uo as smoothly_display_json,fo as smoothly_display_json_object,ko as smoothly_display_json_primitive,xo as smoothly_display_json_record_key,sl as smoothly_filter,nl as smoothly_filter_field,cl as smoothly_filter_input,ml as smoothly_filter_select,bl as smoothly_filter_toggle,mr as smoothly_form,br as smoothly_form_demo,fr as smoothly_form_demo_all,pr as smoothly_form_demo_card,gr as smoothly_form_demo_controlled,wr as smoothly_form_demo_date,Cr as smoothly_form_demo_date_range,zr as smoothly_form_demo_login,Ir as smoothly_form_demo_pet,Tr as smoothly_form_demo_prices,Ar as smoothly_form_demo_schedule,Mr as smoothly_form_demo_transparent,Rr as smoothly_form_demo_typed,Hr as smoothly_frame,Ur as smoothly_icon,Vr as smoothly_icon_demo,Qr as smoothly_input,oc as smoothly_input_checkbox,ac as smoothly_input_clear,rc as smoothly_input_color,cc as smoothly_input_color_demo,mc as smoothly_input_date,bc as smoothly_input_date_range,gc as smoothly_input_demo,wc as smoothly_input_demo_standard,Cc as smoothly_input_edit,_c as smoothly_input_file,Oc as smoothly_input_month,Mc as smoothly_input_price_demo,$c as smoothly_input_radio,Fc as smoothly_input_radio_item,Yc as smoothly_input_range,Uc as smoothly_input_range_demo,Vc as smoothly_input_reset,qc as smoothly_input_select,Qc as smoothly_input_submit,oh as smoothly_item,ah as smoothly_label,rh as smoothly_lazy,ch as smoothly_load_more,mh as smoothly_modal,bh as smoothly_notification,gh as smoothly_notifier,wh as smoothly_spinner,Ch as smoothly_summary,_h as smoothly_tab,Oh as smoothly_table,Mh as smoothly_table_body,$h as smoothly_table_cell,Fh as smoothly_table_demo,Yh as smoothly_table_demo_colspan,Bh as smoothly_table_demo_filler_row,Jh as smoothly_table_demo_filtered,od as smoothly_table_demo_group,nd as smoothly_table_demo_nested,cd as smoothly_table_demo_nested_inner,md as smoothly_table_demo_simple,fd as smoothly_table_expandable_cell,kd as smoothly_table_expandable_row,xd as smoothly_table_filler_row,zd as smoothly_table_foot,Id as smoothly_table_head,Ld as smoothly_table_row,Ed as smoothly_table_row_group,Rd as smoothly_tabs,Hd as smoothly_tabs_demo,Ud as smoothly_theme_color,Vd as smoothly_theme_color_variant,Zd as smoothly_theme_colors,Jd as smoothly_theme_demo,em as smoothly_theme_guide,im as smoothly_theme_picker,lm as smoothly_toggle,hm as smoothly_toggle_switch,um as smoothly_toggle_switch_demo,fm as smoothly_trigger};
|
|
2
|
-
//# sourceMappingURL=p-0d394534.entry.js.map
|