@mozaic-ds/web-components 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Condition20.js +1 -1
- package/dist/accordion-list.state.svelte.js +1 -1
- package/dist/attributes.js +1 -1
- package/dist/attributes.js.map +1 -1
- package/dist/branches.js +2 -0
- package/dist/branches.js.map +1 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.d.ts.map +1 -1
- package/dist/bundle.js +1 -0
- package/dist/components/accordionlist/AccordionList.js +2 -2
- package/dist/components/accordionlist/AccordionList.js.map +1 -1
- package/dist/components/accordionlist/AccordionList.stories.js +1 -1
- package/dist/components/accordionlistItem/AccordionListItem.js +2 -2
- package/dist/components/actionbottombar/ActionBottomBar.js +2 -2
- package/dist/components/actionbottombar/ActionBottomBar.js.map +1 -1
- package/dist/components/actionbottombar/ActionBottomBar.svelte +3 -21
- package/dist/components/actionbottombar/ActionBottomBar.svelte.d.ts +0 -9
- package/dist/components/actionbottombar/ActionBottomBar.svelte.d.ts.map +1 -1
- package/dist/components/actionbottombar/README.md +0 -2
- package/dist/components/actionlistbox/ActionListbox.js +1 -1
- package/dist/components/actionlistbox/ActionListbox.stories.js +1 -1
- package/dist/components/actionlistboxitem/ActionListboxItem.js +2 -2
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/Avatar.svelte +3 -12
- package/dist/components/avatar/Avatar.svelte.d.ts +1 -6
- package/dist/components/avatar/Avatar.svelte.d.ts.map +1 -1
- package/dist/components/avatar/README.md +1 -2
- package/dist/components/breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/builtinmenu/BuiltInMenu.js +2 -2
- package/dist/components/builtinmenu/BuiltInMenu.js.map +1 -1
- package/dist/components/builtinmenu/BuiltInMenu.stories.js +1 -1
- package/dist/components/builtinmenu/BuiltInMenu.svelte +2 -11
- package/dist/components/builtinmenu/BuiltInMenu.svelte.d.ts +0 -5
- package/dist/components/builtinmenu/BuiltInMenu.svelte.d.ts.map +1 -1
- package/dist/components/builtinmenu/README.md +0 -1
- package/dist/components/builtinmenuitem/BuiltInMenuItem.js +2 -2
- package/dist/components/builtinmenuitem/BuiltInMenuItem.js.map +1 -1
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte +2 -11
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte.d.ts +0 -5
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte.d.ts.map +1 -1
- package/dist/components/builtinmenuitem/README.md +0 -1
- package/dist/components/button/Button.js +3 -3
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.svelte +13 -30
- package/dist/components/button/Button.svelte.d.ts +0 -9
- package/dist/components/button/Button.svelte.d.ts.map +1 -1
- package/dist/components/button/README.md +2 -2
- package/dist/components/callout/Callout.js +2 -2
- package/dist/components/callout/Callout.js.map +1 -1
- package/dist/components/callout/Callout.spec.js +1 -4
- package/dist/components/callout/Callout.svelte +4 -38
- package/dist/components/callout/Callout.svelte.d.ts +0 -13
- package/dist/components/callout/Callout.svelte.d.ts.map +1 -1
- package/dist/components/callout/README.md +0 -3
- package/dist/components/carousel/Carousel.js +2 -2
- package/dist/components/carousel/Carousel.js.map +1 -1
- package/dist/components/carousel/Carousel.svelte +4 -27
- package/dist/components/carousel/Carousel.svelte.d.ts +0 -9
- package/dist/components/carousel/Carousel.svelte.d.ts.map +1 -1
- package/dist/components/carousel/README.md +1 -3
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkboxgroup/CheckboxGroup.js +1 -1
- package/dist/components/checklistmenu/CheckListMenu.js +2 -2
- package/dist/components/checklistmenu/CheckListMenu.js.map +1 -1
- package/dist/components/checklistmenu/CheckListMenu.spec.js +3 -3
- package/dist/components/checklistmenu/CheckListMenu.svelte +18 -18
- package/dist/components/checklistmenu/CheckListMenu.svelte.d.ts +2 -0
- package/dist/components/checklistmenu/CheckListMenu.svelte.d.ts.map +1 -1
- package/dist/components/circularprogressbar/CircularProgressbar.js +2 -2
- package/dist/components/container/Container.js +2 -2
- package/dist/components/container/Container.js.map +1 -1
- package/dist/components/container/Container.svelte +2 -11
- package/dist/components/container/Container.svelte.d.ts +0 -5
- package/dist/components/container/Container.svelte.d.ts.map +1 -1
- package/dist/components/container/README.md +0 -1
- package/dist/components/datepicker/Datepicker.js +1 -1
- package/dist/components/datepicker/Datepicker.stories.d.ts.map +1 -1
- package/dist/components/datepicker/Datepicker.stories.js +1 -0
- package/dist/components/divider/Divider.js +2 -2
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/divider/Divider.svelte +2 -17
- package/dist/components/divider/Divider.svelte.d.ts +0 -5
- package/dist/components/divider/Divider.svelte.d.ts.map +1 -1
- package/dist/components/divider/README.md +0 -1
- package/dist/components/drawer/Drawer.js +2 -2
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/Drawer.svelte +17 -23
- package/dist/components/drawer/Drawer.svelte.d.ts +0 -9
- package/dist/components/drawer/Drawer.svelte.d.ts.map +1 -1
- package/dist/components/drawer/README.md +0 -2
- package/dist/components/field/Field.js +2 -2
- package/dist/components/field/Field.js.map +1 -1
- package/dist/components/field/Field.stories.d.ts.map +1 -1
- package/dist/components/field/Field.stories.js +3 -0
- package/dist/components/field/Field.svelte +1 -11
- package/dist/components/field/Field.svelte.d.ts +0 -5
- package/dist/components/field/Field.svelte.d.ts.map +1 -1
- package/dist/components/field/README.md +0 -1
- package/dist/components/fileuploader/FileUploader.js +2 -2
- package/dist/components/fileuploader/FileUploader.stories.d.ts.map +1 -1
- package/dist/components/fileuploader/FileUploader.stories.js +4 -1
- package/dist/components/fileuploader/FileUploader.svelte +3 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.js +2 -2
- package/dist/components/iconbutton/IconButton.js +2 -2
- package/dist/components/iconbutton/IconButton.js.map +1 -1
- package/dist/components/iconbutton/IconButton.svelte +8 -11
- package/dist/components/iconbutton/IconButton.svelte.d.ts +0 -5
- package/dist/components/iconbutton/IconButton.svelte.d.ts.map +1 -1
- package/dist/components/iconbutton/README.md +0 -1
- package/dist/components/kpiitem/KpiItem.js +2 -2
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js +2 -2
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js +1 -1
- package/dist/components/link/Link.js +2 -2
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/link/Link.stories.js +2 -2
- package/dist/components/link/Link.svelte +7 -29
- package/dist/components/link/Link.svelte.d.ts +0 -9
- package/dist/components/link/Link.svelte.d.ts.map +1 -1
- package/dist/components/link/README.md +1 -2
- package/dist/components/loader/Loader.js +1 -1
- package/dist/components/loadingoverlay/LoadingOverlay.js +2 -2
- package/dist/components/modal/Modal.js +2 -2
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/modal/Modal.svelte +8 -50
- package/dist/components/modal/Modal.svelte.d.ts +0 -17
- package/dist/components/modal/Modal.svelte.d.ts.map +1 -1
- package/dist/components/modal/README.md +0 -4
- package/dist/components/overlay/Overlay.js +2 -2
- package/dist/components/overlay/Overlay.js.map +1 -1
- package/dist/components/overlay/Overlay.svelte +2 -11
- package/dist/components/overlay/Overlay.svelte.d.ts +0 -5
- package/dist/components/overlay/Overlay.svelte.d.ts.map +1 -1
- package/dist/components/overlay/README.md +0 -1
- package/dist/components/pagination/Pagination.js +5 -5
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/Pagination.svelte +4 -12
- package/dist/components/pagination/Pagination.svelte.d.ts.map +1 -1
- package/dist/components/passwordinput/PasswordInput.js +2 -2
- package/dist/components/passwordinput/PasswordInput.js.map +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.d.ts.map +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.js +1 -0
- package/dist/components/passwordinput/PasswordInput.svelte +3 -0
- package/dist/components/phonenumber/PhoneNumber.js +2 -2
- package/dist/components/phonenumber/PhoneNumber.js.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.d.ts.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.js +1 -0
- package/dist/components/phonenumber/PhoneNumber.svelte +3 -0
- package/dist/components/pincode/Pincode.js +1 -1
- package/dist/components/pincode/Pincode.stories.d.ts.map +1 -1
- package/dist/components/pincode/Pincode.stories.js +1 -0
- package/dist/components/quantityselector/QuantitySelector.js +1 -1
- package/dist/components/quantityselector/QuantitySelector.stories.d.ts.map +1 -1
- package/dist/components/quantityselector/QuantitySelector.stories.js +1 -0
- package/dist/components/radiogroup/RadioGroup.js +2 -2
- package/dist/components/segmentedcontrol/SegmentedControl.js +2 -2
- package/dist/components/segmentedcontrol/SegmentedControl.js.map +1 -1
- package/dist/components/segmentedcontrol/SegmentedControl.svelte +1 -0
- package/dist/components/select/Select.js +2 -2
- package/dist/components/select/Select.stories.d.ts.map +1 -1
- package/dist/components/select/Select.stories.js +1 -0
- package/dist/components/starrating/StarRating.js +2 -2
- package/dist/components/statusmessage/StatusMessage.js +2 -2
- package/dist/components/statusnotification/README.md +0 -1
- package/dist/components/statusnotification/StatusNotification.js +2 -2
- package/dist/components/statusnotification/StatusNotification.js.map +1 -1
- package/dist/components/statusnotification/StatusNotification.svelte +5 -11
- package/dist/components/statusnotification/StatusNotification.svelte.d.ts +0 -5
- package/dist/components/statusnotification/StatusNotification.svelte.d.ts.map +1 -1
- package/dist/components/stepperbottombar/StepperBottomBar.js +1 -1
- package/dist/components/stepperbottombar/StepperBottomBar.svelte +3 -0
- package/dist/components/steppercompact/StepperCompact.js +2 -2
- package/dist/components/stepperinline/StepperInline.js +2 -2
- package/dist/components/tab/README.md +1 -3
- package/dist/components/tab/Tab.js +2 -2
- package/dist/components/tab/Tab.js.map +1 -1
- package/dist/components/tab/Tab.svelte +14 -38
- package/dist/components/tab/Tab.svelte.d.ts +0 -9
- package/dist/components/tab/Tab.svelte.d.ts.map +1 -1
- package/dist/components/tabs/README.md +0 -1
- package/dist/components/tabs/Tabs.js +2 -2
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/Tabs.stories.js +1 -1
- package/dist/components/tabs/Tabs.svelte +2 -11
- package/dist/components/tabs/Tabs.svelte.d.ts +0 -5
- package/dist/components/tabs/Tabs.svelte.d.ts.map +1 -1
- package/dist/components/tag/README.md +0 -1
- package/dist/components/tag/Tag.js +2 -2
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/tag/Tag.svelte +2 -16
- package/dist/components/tag/Tag.svelte.d.ts +0 -5
- package/dist/components/tag/Tag.svelte.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.stories.js +1 -0
- package/dist/components/textinput/README.md +0 -1
- package/dist/components/textinput/Textinput.js +2 -2
- package/dist/components/textinput/Textinput.js.map +1 -1
- package/dist/components/textinput/Textinput.spec.js +1 -4
- package/dist/components/textinput/Textinput.stories.d.ts +4 -0
- package/dist/components/textinput/Textinput.stories.d.ts.map +1 -1
- package/dist/components/textinput/Textinput.stories.js +157 -28
- package/dist/components/textinput/Textinput.svelte +1 -11
- package/dist/components/textinput/Textinput.svelte.d.ts +0 -5
- package/dist/components/textinput/Textinput.svelte.d.ts.map +1 -1
- package/dist/components/toaster/README.md +0 -1
- package/dist/components/toaster/Toaster.js +3 -3
- package/dist/components/toaster/Toaster.js.map +1 -1
- package/dist/components/toaster/Toaster.svelte +6 -12
- package/dist/components/toaster/Toaster.svelte.d.ts +0 -5
- package/dist/components/toaster/Toaster.svelte.d.ts.map +1 -1
- package/dist/components/toggle/Toggle.js +1 -1
- package/dist/components/togglegroup/ToggleGroup.js +2 -2
- package/dist/components/tooltip/README.md +0 -1
- package/dist/components/tooltip/Tooltip.js +2 -2
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/Tooltip.svelte +2 -11
- package/dist/components/tooltip/Tooltip.svelte.d.ts +0 -5
- package/dist/components/tooltip/Tooltip.svelte.d.ts.map +1 -1
- package/dist/custom-element.js +3 -3
- package/dist/custom-element.js.map +1 -1
- package/dist/documentation/Welcome.mdx +1 -3
- package/dist/each.js +1 -1
- package/dist/each.js.map +1 -1
- package/dist/if.js +1 -1
- package/dist/if.js.map +1 -1
- package/dist/index-client.js +1 -1
- package/dist/input.js +1 -1
- package/dist/input.js.map +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -1
- package/dist/slot.js +1 -1
- package/dist/svelte-component.js +1 -1
- package/dist/svelte-component.js.map +1 -1
- package/dist/svelte-element.js +1 -1
- package/dist/svelte-element.js.map +1 -1
- package/dist/this.js +1 -1
- package/package.json +1 -1
- package/dist/snippet.js +0 -2
- package/dist/snippet.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as z,p as L,a as M,b as a,t as u,f as p,g as P,h as b,d as v,j as l,s as B,r as f,
|
|
1
|
+
import{c as z,p as L,a as M,b as a,t as u,f as p,g as P,h as b,d as v,j as l,s as B,r as f,l as y,m as H,i as j,e as D}from"../../custom-element.js";import{i as F}from"../../if.js";import{a as S,s as T}from"../../attributes.js";import{a as Y}from"../../input.js";import{c as q}from"../../custom-element-forward-events.js";import"../../branches.js";var A=b('<span class="mc-toggle__label svelte-26wadt"> </span>'),G=b('<div><label class="mc-toggle__container svelte-26wadt"><input/> <!></label></div>');const I={hash:"svelte-26wadt",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/.mc-toggle.svelte-26wadt {width:fit-content;}.mc-toggle__container.svelte-26wadt {display:flex;align-items:center;cursor:pointer;gap:0.5rem;position:relative;padding:0.25rem;}.mc-toggle__container.svelte-26wadt::before, .mc-toggle__container.svelte-26wadt::after {content:"";}.mc-toggle__container.svelte-26wadt::before {transition:box-shadow 200ms ease;height:1.5rem;width:2.5rem;background-color:var(--forms-color-background-unchecked, #666666);border-radius:var(--border-radius-l, 1rem);flex-shrink:0;}.mc-toggle__container.svelte-26wadt::after {height:1.25rem;width:1.25rem;background-color:var(--forms-color-icon-inverse, #ffffff);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-unchecked, %23666666)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.364a.75.75 0 1 0-1.06-1.061L10 8.939 6.364 5.303a.75.75 0 0 0-1.06 1.06L8.94 10l-3.637 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.061-1.06L11.061 10z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");border-radius:var(--border-radius-full, 100%);background-position:center;left:0.375rem;position:absolute;top:50%;transform:translateY(-50%);}.mc-toggle__input.svelte-26wadt {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}.mc-toggle__label.svelte-26wadt {color:var(--forms-color-text-default, #000000);font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-m, 1.5);}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):checked) .mc-toggle__container:where(.svelte-26wadt)::before {background-color:var(--forms-color-background-checked, #117f03);}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):checked) .mc-toggle__container:where(.svelte-26wadt)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-checked, %23117f03)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.553a.75.75 0 0 1 0 1.06l-5.833 5.834a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.97 1.97 5.303-5.304a.75.75 0 0 1 1.06 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");transform:translate(1rem, -50%);}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):disabled) .mc-toggle__container:where(.svelte-26wadt) {cursor:not-allowed;}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):disabled) .mc-toggle__container:where(.svelte-26wadt)::before {background-color:var(--forms-color-background-disabled, #d9d9d9);}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):disabled) .mc-toggle__container:where(.svelte-26wadt)::after {background-color:var(--forms-color-icon-disabled, #737373);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.364a.75.75 0 1 0-1.06-1.061L10 8.939 6.364 5.303a.75.75 0 0 0-1.06 1.06L8.94 10l-3.637 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.061-1.06L11.061 10z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):disabled) .mc-toggle__label:where(.svelte-26wadt) {color:var(--forms-color-text-disabled, #737373);}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):disabled:checked) .mc-toggle__container:where(.svelte-26wadt)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.553a.75.75 0 0 1 0 1.06l-5.833 5.834a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.97 1.97 5.303-5.304a.75.75 0 0 1 1.06 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle.svelte-26wadt:has(:where(.svelte-26wadt):focus-visible) .mc-toggle__container:where(.svelte-26wadt)::before {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-toggle--m.svelte-26wadt .mc-toggle__container:where(.svelte-26wadt)::before {height:2rem;width:3.5rem;}.mc-toggle--m.svelte-26wadt .mc-toggle__container:where(.svelte-26wadt)::after {height:1.5rem;width:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-unchecked, %23666666)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");left:0.5rem;}.mc-toggle--m.svelte-26wadt:has(:where(.svelte-26wadt):checked) .mc-toggle__container:where(.svelte-26wadt)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-checked, %23117f03)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L10 14.086l6.293-6.293a1 1 0 0 1 1.414 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");transform:translate(1.5rem, -50%);}.mc-toggle--m.svelte-26wadt:has(:where(.svelte-26wadt):disabled) .mc-toggle__container:where(.svelte-26wadt)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle--m.svelte-26wadt:has(:where(.svelte-26wadt):disabled:checked) .mc-toggle__container:where(.svelte-26wadt)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L10 14.086l6.293-6.293a1 1 0 0 1 1.414 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle--hide-label.svelte-26wadt .mc-toggle__label:where(.svelte-26wadt) {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}`};function J(w,t){L(t,!0),M(w,I);let r=a(t,"id",7),s=a(t,"name",7),d=a(t,"label",7),i=a(t,"checked",15,!1),c=a(t,"disabled",7),g=a(t,"size",7,"s"),E=j(t,["$$slots","$$events","$$legacy","$$host","id","name","label","checked","disabled","size"]);var C={get id(){return r()},set id(e){r(e),l()},get name(){return s()},set name(e){s(e),l()},get label(){return d()},set label(e){d(e),l()},get checked(){return i()},set checked(e=!1){i(e),l()},get disabled(){return c()},set disabled(e){c(e),l()},get size(){return g()},set size(e="s"){g(e),l()}},o=G(),h=v(o),n=v(h);S(n,()=>({id:r(),type:"checkbox",class:"mc-toggle__input",name:s(),disabled:c(),...E}),void 0,void 0,void 0,"svelte-26wadt",!0);var _=B(n,2);{var k=e=>{var m=A(),x=v(m,!0);f(m),u(()=>D(x,d())),p(e,m)};F(_,e=>{d()&&e(k)})}return f(h),f(o),u(()=>{y(o,1,H(["mc-toggle",`mc-toggle--${g()}`]),"svelte-26wadt"),T(h,"for",r())}),Y(n,i),p(w,o),P(C)}customElements.define("m-toggle",z(J,{checked:{attribute:"checked",reflect:!0,type:"Boolean"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},id:{},name:{},label:{},size:{}},[],[],!0,q));
|
|
4
4
|
//# sourceMappingURL=Toggle.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{c as B,a as H,b as h,t as v,f as u,g as j,h as E,p as
|
|
1
|
+
import{c as B,a as H,b as h,t as v,f as u,g as j,h as E,p as A,k as D,r as d,l as z,m as F,j as g,d as w,s as G,n as t,e as S}from"../../custom-element.js";import{i as T}from"../../if.js";import{e as Y}from"../../each.js";import{r as q,s as x}from"../../attributes.js";import{b as I}from"../../input.js";import{c as J}from"../../custom-element-forward-events.js";import"../../branches.js";var K=E('<span class="mc-toggle__label svelte-1p7hz9f"> </span>'),N=E('<div><label class="mc-toggle__container svelte-1p7hz9f"><input class="mc-toggle__input svelte-1p7hz9f" type="checkbox"/> <!></label></div>'),O=E("<div></div>");const Q={hash:"svelte-1p7hz9f",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
/* stylelint-disable string-no-newline */.mc-field__content.svelte-1p7hz9f {margin-top:0.5rem;}
|
|
5
5
|
|
|
6
|
-
/* stylelint-enable string-no-newline */.mc-toggle.svelte-1p7hz9f {width:fit-content;}.mc-toggle__container.svelte-1p7hz9f {display:flex;align-items:center;cursor:pointer;gap:0.5rem;position:relative;padding:0.25rem;}.mc-toggle__container.svelte-1p7hz9f::before, .mc-toggle__container.svelte-1p7hz9f::after {content:"";}.mc-toggle__container.svelte-1p7hz9f::before {transition:box-shadow 200ms ease;height:1.5rem;width:2.5rem;background-color:var(--forms-color-background-unchecked, #666666);border-radius:var(--border-radius-l, 1rem);flex-shrink:0;}.mc-toggle__container.svelte-1p7hz9f::after {height:1.25rem;width:1.25rem;background-color:var(--forms-color-icon-inverse, #ffffff);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-unchecked, %23666666)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.364a.75.75 0 1 0-1.06-1.061L10 8.939 6.364 5.303a.75.75 0 0 0-1.06 1.06L8.94 10l-3.637 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.061-1.06L11.061 10z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");border-radius:var(--border-radius-full, 100%);background-position:center;left:0.375rem;position:absolute;top:50%;transform:translateY(-50%);}.mc-toggle__input.svelte-1p7hz9f {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}.mc-toggle__label.svelte-1p7hz9f {color:var(--forms-color-text-default, #000000);font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-m, 1.5);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):checked) .mc-toggle__container:where(.svelte-1p7hz9f)::before {background-color:var(--forms-color-background-checked, #117f03);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-checked, %23117f03)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.553a.75.75 0 0 1 0 1.06l-5.833 5.834a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.97 1.97 5.303-5.304a.75.75 0 0 1 1.06 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");transform:translate(1rem, -50%);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f) {cursor:not-allowed;}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f)::before {background-color:var(--forms-color-background-disabled, #d9d9d9);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-color:var(--forms-color-icon-disabled, #737373);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.364a.75.75 0 1 0-1.06-1.061L10 8.939 6.364 5.303a.75.75 0 0 0-1.06 1.06L8.94 10l-3.637 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.061-1.06L11.061 10z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__label:where(.svelte-1p7hz9f) {color:var(--forms-color-text-disabled, #737373);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled:checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.553a.75.75 0 0 1 0 1.06l-5.833 5.834a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.97 1.97 5.303-5.304a.75.75 0 0 1 1.06 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):focus-visible) .mc-toggle__container:where(.svelte-1p7hz9f)::before {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-toggle--m.svelte-1p7hz9f .mc-toggle__container:where(.svelte-1p7hz9f)::before {height:2rem;width:3.5rem;}.mc-toggle--m.svelte-1p7hz9f .mc-toggle__container:where(.svelte-1p7hz9f)::after {height:1.5rem;width:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-unchecked, %23666666)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");left:0.5rem;}.mc-toggle--m.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-checked, %23117f03)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L10 14.086l6.293-6.293a1 1 0 0 1 1.414 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");transform:translate(1.5rem, -50%);}.mc-toggle--m.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle--m.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled:checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L10 14.086l6.293-6.293a1 1 0 0 1 1.414 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle--hide-label.svelte-1p7hz9f .mc-toggle__label:where(.svelte-1p7hz9f) {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}.mc-field__content.svelte-1p7hz9f:where(.mc-field__content--inline:where(.svelte-1p7hz9f)) {display:flex;flex-flow:row wrap;gap:0.25rem 1rem;}`};function R(b,r){
|
|
6
|
+
/* stylelint-enable string-no-newline */.mc-toggle.svelte-1p7hz9f {width:fit-content;}.mc-toggle__container.svelte-1p7hz9f {display:flex;align-items:center;cursor:pointer;gap:0.5rem;position:relative;padding:0.25rem;}.mc-toggle__container.svelte-1p7hz9f::before, .mc-toggle__container.svelte-1p7hz9f::after {content:"";}.mc-toggle__container.svelte-1p7hz9f::before {transition:box-shadow 200ms ease;height:1.5rem;width:2.5rem;background-color:var(--forms-color-background-unchecked, #666666);border-radius:var(--border-radius-l, 1rem);flex-shrink:0;}.mc-toggle__container.svelte-1p7hz9f::after {height:1.25rem;width:1.25rem;background-color:var(--forms-color-icon-inverse, #ffffff);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-unchecked, %23666666)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.364a.75.75 0 1 0-1.06-1.061L10 8.939 6.364 5.303a.75.75 0 0 0-1.06 1.06L8.94 10l-3.637 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.061-1.06L11.061 10z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");border-radius:var(--border-radius-full, 100%);background-position:center;left:0.375rem;position:absolute;top:50%;transform:translateY(-50%);}.mc-toggle__input.svelte-1p7hz9f {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}.mc-toggle__label.svelte-1p7hz9f {color:var(--forms-color-text-default, #000000);font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-m, 1.5);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):checked) .mc-toggle__container:where(.svelte-1p7hz9f)::before {background-color:var(--forms-color-background-checked, #117f03);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-checked, %23117f03)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.553a.75.75 0 0 1 0 1.06l-5.833 5.834a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.97 1.97 5.303-5.304a.75.75 0 0 1 1.06 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");transform:translate(1rem, -50%);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f) {cursor:not-allowed;}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f)::before {background-color:var(--forms-color-background-disabled, #d9d9d9);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-color:var(--forms-color-icon-disabled, #737373);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.364a.75.75 0 1 0-1.06-1.061L10 8.939 6.364 5.303a.75.75 0 0 0-1.06 1.06L8.94 10l-3.637 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.061-1.06L11.061 10z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__label:where(.svelte-1p7hz9f) {color:var(--forms-color-text-disabled, #737373);}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled:checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 20 20'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M14.697 6.553a.75.75 0 0 1 0 1.06l-5.833 5.834a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.97 1.97 5.303-5.304a.75.75 0 0 1 1.06 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):focus-visible) .mc-toggle__container:where(.svelte-1p7hz9f)::before {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-toggle--m.svelte-1p7hz9f .mc-toggle__container:where(.svelte-1p7hz9f)::before {height:2rem;width:3.5rem;}.mc-toggle--m.svelte-1p7hz9f .mc-toggle__container:where(.svelte-1p7hz9f)::after {height:1.5rem;width:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-unchecked, %23666666)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");left:0.5rem;}.mc-toggle--m.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-checked, %23117f03)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L10 14.086l6.293-6.293a1 1 0 0 1 1.414 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");transform:translate(1.5rem, -50%);}.mc-toggle--m.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle--m.svelte-1p7hz9f:has(:where(.svelte-1p7hz9f):disabled:checked) .mc-toggle__container:where(.svelte-1p7hz9f)::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.5rem' width='1.5rem' fill='var(--forms-color-background-disabled, %23d9d9d9)' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill-rule='evenodd' d='M17.707 7.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L10 14.086l6.293-6.293a1 1 0 0 1 1.414 0'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");}.mc-toggle--hide-label.svelte-1p7hz9f .mc-toggle__label:where(.svelte-1p7hz9f) {clip-path:inset(100%);clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;padding:0;width:1px;}.mc-field__content.svelte-1p7hz9f:where(.mc-field__content--inline:where(.svelte-1p7hz9f)) {display:flex;flex-flow:row wrap;gap:0.25rem 1rem;}`};function R(b,r){A(r,!0),H(b,Q);const k=[];let f=h(r,"name",7),i=h(r,"value",31,()=>D([])),n=h(r,"options",7),c=h(r,"inline",7);var L={get name(){return f()},set name(e){f(e),g()},get value(){return i()},set value(e=[]){i(e),g()},get options(){return n()},set options(e){n(e),g()},get inline(){return c()},set inline(e){c(e),g()}},o=O();return Y(o,21,n,e=>e.id,(e,l)=>{var s=N(),C=w(s),a=w(C);q(a);var _,M=G(a,2);{var P=m=>{var p=K(),y=w(p,!0);d(p),v(()=>S(y,t(l).label)),u(m,p)};T(M,m=>{t(l).label&&m(P)})}d(C),d(s),v(()=>{z(s,1,`mc-toggle mc-field__item ${t(l).label?"":" mc-toggle--hide-label"} ${t(l).size==="m"?" mc-toggle--m":""}`,"svelte-1p7hz9f"),x(a,"id",t(l).id),x(a,"name",f()),a.disabled=t(l).disabled,_!==(_=t(l).value)&&(a.value=(a.__value=t(l).value)??"")}),I(k,[],a,()=>(t(l).value,i()),i),u(e,s)}),d(o),v(()=>z(o,1,F(["mc-field__content",c()&&"mc-field__content--inline"]),"svelte-1p7hz9f")),u(b,o),j(L)}customElements.define("m-toggle-group",B(R,{options:{attribute:"options",reflect:!0,type:"Array"},inline:{attribute:"inline",reflect:!0,type:"Boolean"},name:{},value:{}},[],[],!0,J));
|
|
7
7
|
//# sourceMappingURL=ToggleGroup.js.map
|
|
@@ -10,7 +10,6 @@ A tooltip is a small, contextual message that appears when users hover over, foc
|
|
|
10
10
|
| `text*` | Content of the tooltip. | `string` | |
|
|
11
11
|
| `position` | Determines the position of the tooltip. | `'top'` `'bottom'` `'left'` `'right'` | `top` |
|
|
12
12
|
| `pointer` | If `true`, the tooltip display a pointer. | `boolean` | `true` |
|
|
13
|
-
| `children` | The tooltip content. | `Snippet` | |
|
|
14
13
|
|
|
15
14
|
## Slots
|
|
16
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as z,p as _,a as b,b as s,d as m,s as g,r as d,t as u,e as w,f as x,g as k,h as E,i as C,j as l}from"../../custom-element.js";import{s as B}from"../../slot.js";import{a as M,s as j}from"../../attributes.js";var D=E('<div><!> <span class="mc-tooltip__content svelte-11vyzsr" role="tooltip"> </span></div>');const S={hash:"svelte-11vyzsr",code:`/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/.mc-tooltip.svelte-11vyzsr {display:inline-flex;position:relative;}.mc-tooltip.svelte-11vyzsr:focus, .mc-tooltip.svelte-11vyzsr:hover {cursor:help;}.mc-tooltip.svelte-11vyzsr:focus .mc-tooltip__content:where(.svelte-11vyzsr), .mc-tooltip.svelte-11vyzsr:hover .mc-tooltip__content:where(.svelte-11vyzsr) {visibility:visible;}.mc-tooltip__content.svelte-11vyzsr {font-size:var(--font-size-100, 0.875rem);border-radius:var(--border-radius-s, 0.25rem);line-height:var(--line-height-s, 1.3);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;align-items:center;max-width:16rem;min-width:4rem;background-color:var(--tooltip-color-background, #242938);box-sizing:border-box;color:var(--tooltip-color-text, #ffffff);position:absolute;text-align:center;visibility:hidden;z-index:var(--tooltip-z-index, 1);border:var(--border-width-s, 0.0625rem) solid var(--tooltip-color-border, #636d88);word-break:break-all;padding:0.375rem 0.5rem;}
|
|
4
4
|
@supports (width: max-content) {.mc-tooltip__content.svelte-11vyzsr {width:max-content;}
|
|
5
|
-
}.mc-tooltip__content.svelte-11vyzsr::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='0.5rem' width='0.5rem' viewBox='0 0 8 8'%3E%3Cpath fill='var(--tooltip-color-border, %23636d88)' d='M1.79 3.11l6.21-3.11v8l-6.21-3.11a1 1 0 0 1-.45-1.34 1 1 0 0 1 .45-.44z'/%3E%3C/svg%3E");background-color:transparent;background-repeat:no-repeat;background-size:0.625rem;content:"";height:0.625rem;position:absolute;width:0.625rem;}.mc-tooltip__content.svelte-11vyzsr::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='0.5rem' width='0.5rem' viewBox='0 0 8 8'%3E%3Cpath fill='var(--tooltip-color-background, %23242938)' d='M1.79 3.11l6.21-3.11v8l-6.21-3.11a1 1 0 0 1-.45-1.34 1 1 0 0 1 .45-.44z'/%3E%3C/svg%3E");background-color:transparent;background-repeat:no-repeat;background-size:0.5rem;content:"";height:0.5rem;position:absolute;width:0.5rem;}.mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {top:0;left:50%;transform:translate(-50%, calc(-100% - 1rem));}.mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {bottom:0;left:50%;transform:translate(-50%, 100%) rotate(-90deg);}.mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {bottom:-1px;}.mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {top:50%;right:0;transform:translate(calc(100% + 1rem), -50%);}.mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:50%;left:0;transform:translate(-99%, -50%);}.mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {left:-1px;}.mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {left:0;top:50%;transform:translate(calc(-100% - 1rem), -50%);}.mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:50%;right:0;transform:translate(99%, -50%) rotate(180deg);}.mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {right:-1px;}.mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {bottom:0;left:50%;transform:translate(-50%, calc(100% + 1rem));}.mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:0;left:50%;transform:translate(-50%, -100%) rotate(90deg);}.mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:-1px;}.mc-tooltip--no-pointer.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--no-pointer.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {background:none;}.mc-tooltip--standalone.svelte-11vyzsr {cursor:help;}.mc-tooltip--standalone.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {visibility:visible;position:relative;transform:none;top:0;left:0;}`};function
|
|
5
|
+
}.mc-tooltip__content.svelte-11vyzsr::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='0.5rem' width='0.5rem' viewBox='0 0 8 8'%3E%3Cpath fill='var(--tooltip-color-border, %23636d88)' d='M1.79 3.11l6.21-3.11v8l-6.21-3.11a1 1 0 0 1-.45-1.34 1 1 0 0 1 .45-.44z'/%3E%3C/svg%3E");background-color:transparent;background-repeat:no-repeat;background-size:0.625rem;content:"";height:0.625rem;position:absolute;width:0.625rem;}.mc-tooltip__content.svelte-11vyzsr::after {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='0.5rem' width='0.5rem' viewBox='0 0 8 8'%3E%3Cpath fill='var(--tooltip-color-background, %23242938)' d='M1.79 3.11l6.21-3.11v8l-6.21-3.11a1 1 0 0 1-.45-1.34 1 1 0 0 1 .45-.44z'/%3E%3C/svg%3E");background-color:transparent;background-repeat:no-repeat;background-size:0.5rem;content:"";height:0.5rem;position:absolute;width:0.5rem;}.mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {top:0;left:50%;transform:translate(-50%, calc(-100% - 1rem));}.mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {bottom:0;left:50%;transform:translate(-50%, 100%) rotate(-90deg);}.mc-tooltip--top.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {bottom:-1px;}.mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {top:50%;right:0;transform:translate(calc(100% + 1rem), -50%);}.mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:50%;left:0;transform:translate(-99%, -50%);}.mc-tooltip--right.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {left:-1px;}.mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {left:0;top:50%;transform:translate(calc(-100% - 1rem), -50%);}.mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:50%;right:0;transform:translate(99%, -50%) rotate(180deg);}.mc-tooltip--left.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {right:-1px;}.mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {bottom:0;left:50%;transform:translate(-50%, calc(100% + 1rem));}.mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:0;left:50%;transform:translate(-50%, -100%) rotate(90deg);}.mc-tooltip--bottom.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {top:-1px;}.mc-tooltip--no-pointer.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::after, .mc-tooltip--no-pointer.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr)::before {background:none;}.mc-tooltip--standalone.svelte-11vyzsr {cursor:help;}.mc-tooltip--standalone.svelte-11vyzsr .mc-tooltip__content:where(.svelte-11vyzsr) {visibility:visible;position:relative;transform:none;top:0;left:0;}`};function T(c,t){_(t,!0),b(c,S);let o=s(t,"id",7),i=s(t,"text",7),n=s(t,"position",7,"top"),a=s(t,"pointer",7,!0),h=C(t,["$$slots","$$events","$$legacy","$$host","id","text","position","pointer"]);var f={get id(){return o()},set id(e){o(e),l()},get text(){return i()},set text(e){i(e),l()},get position(){return n()},set position(e="top"){n(e),l()},get pointer(){return a()},set pointer(e=!0){a(e),l()}},r=D();M(r,()=>({class:["mc-tooltip",!a()&&"mc-tooltip--no-pointer",`mc-tooltip--${n()}`],"aria-describedby":o(),...h}),void 0,void 0,void 0,"svelte-11vyzsr");var p=m(r);B(p,t,"default",{},null);var v=g(p,2),y=m(v,!0);return d(v),d(r),u(()=>{j(v,"id",o()),w(y,i())}),x(c,r),k(f)}customElements.define("m-tooltip",z(T,{pointer:{attribute:"pointer",reflect:!0,type:"Boolean"},id:{},text:{},position:{}},["default"],[],!0));
|
|
6
6
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sources":["../../../src/components/tooltip/Tooltip.svelte"],"sourcesContent":["<svelte:options\n customElement={{\n tag: 'm-tooltip',\n props: {\n pointer: { reflect: true, type: 'Boolean', attribute: 'pointer' },\n },\n }}\n/>\n\n<script lang=\"ts\">\n
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../../src/components/tooltip/Tooltip.svelte"],"sourcesContent":["<svelte:options\n customElement={{\n tag: 'm-tooltip',\n props: {\n pointer: { reflect: true, type: 'Boolean', attribute: 'pointer' },\n },\n }}\n/>\n\n<script lang=\"ts\">\n /**\n * A tooltip is a small, contextual message that appears when users hover over, focus on, or tap an element, providing additional information or guidance without cluttering the interface. Tooltips are commonly used to explain icons, abbreviations, or complex actions. They typically disappear automatically when the user moves away from the trigger element.\n *\n * @slot default - The tooltip will point to the content of the slot.\n */\n interface Props {\n [key: string]: any;\n /**\n * A unique identifier for the tooltip, used to describe the tooltip.\n */\n id: string;\n /**\n * Content of the tooltip.\n */\n text: string;\n /**\n * Determines the position of the tooltip.\n */\n position?: 'top' | 'bottom' | 'left' | 'right';\n /**\n * If `true`, the tooltip display a pointer.\n */\n pointer?: boolean;\n }\n\n let { id, text, position = 'top', pointer = true, ...attrs }: Props = $props();\n</script>\n\n<div\n class={['mc-tooltip', !pointer && 'mc-tooltip--no-pointer', `mc-tooltip--${position}`]}\n aria-describedby={id}\n {...attrs}\n>\n <slot />\n <span {id} class=\"mc-tooltip__content\" role=\"tooltip\">\n {text}\n </span>\n</div>\n\n<style lang=\"scss\">\n @use '@mozaic-ds/styles/components/tooltip';\n</style>\n"],"names":["id","$.prop","$$props","text","position","pointer","attrs","$.rest_props","div","root","node","$.child","span","$.sibling","$.reset","$.set_attribute","$.append","$$anchor"],"mappings":";;;;6sGASA,oBA0BQA,EAAEC,EAAAC,EAAA,KAAA,CAAA,EAAEC,EAAIF,EAAAC,EAAA,OAAA,CAAA,EAAEE,mBAAW,KAAK,EAAEC,kBAAU,EAAI,EAAKC,EAAKC,EAAAL,EAAA,oNAA/B,MAAK,mDAAY,GAAI,YAGjDM,EAAAC,EAAA,IAAAD,eACS,aAAe,CAAAH,EAAO,GAAI,wCAAyCD,GAAQ,uBACjEJ,EAAE,KAChBM,2CAHL,IAAAI,EAAAC,EAAAH,CAAA,+BAMEI,EAAIC,EAAAH,EAAA,CAAA,MAAJE,EAAI,EAAA,WAAJA,CAAI,EANNE,EAAAN,CAAA,SAMEO,EAAAH,OAAMZ,GAAE,MACNG,GAAI,IAPRa,EAAAC,EAAAT,CAAA,MAFO"}
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
/>
|
|
9
9
|
|
|
10
10
|
<script lang="ts">
|
|
11
|
-
import type { Snippet } from 'svelte';
|
|
12
11
|
/**
|
|
13
12
|
* A tooltip is a small, contextual message that appears when users hover over, focus on, or tap an element, providing additional information or guidance without cluttering the interface. Tooltips are commonly used to explain icons, abbreviations, or complex actions. They typically disappear automatically when the user moves away from the trigger element.
|
|
14
13
|
*
|
|
@@ -32,13 +31,9 @@
|
|
|
32
31
|
* If `true`, the tooltip display a pointer.
|
|
33
32
|
*/
|
|
34
33
|
pointer?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The tooltip content.
|
|
37
|
-
*/
|
|
38
|
-
children?: Snippet;
|
|
39
34
|
}
|
|
40
35
|
|
|
41
|
-
let { id, text, position = 'top', pointer = true,
|
|
36
|
+
let { id, text, position = 'top', pointer = true, ...attrs }: Props = $props();
|
|
42
37
|
</script>
|
|
43
38
|
|
|
44
39
|
<div
|
|
@@ -46,11 +41,7 @@
|
|
|
46
41
|
aria-describedby={id}
|
|
47
42
|
{...attrs}
|
|
48
43
|
>
|
|
49
|
-
|
|
50
|
-
{@render children()}
|
|
51
|
-
{:else}
|
|
52
|
-
<slot />
|
|
53
|
-
{/if}
|
|
44
|
+
<slot />
|
|
54
45
|
<span {id} class="mc-tooltip__content" role="tooltip">
|
|
55
46
|
{text}
|
|
56
47
|
</span>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
1
|
/**
|
|
3
2
|
* A tooltip is a small, contextual message that appears when users hover over, focus on, or tap an element, providing additional information or guidance without cluttering the interface. Tooltips are commonly used to explain icons, abbreviations, or complex actions. They typically disappear automatically when the user moves away from the trigger element.
|
|
4
3
|
*
|
|
@@ -22,10 +21,6 @@ interface Props {
|
|
|
22
21
|
* If `true`, the tooltip display a pointer.
|
|
23
22
|
*/
|
|
24
23
|
pointer?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* The tooltip content.
|
|
27
|
-
*/
|
|
28
|
-
children?: Snippet;
|
|
29
24
|
}
|
|
30
25
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
31
26
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/Tooltip.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/Tooltip.svelte.ts"],"names":[],"mappings":"AAGE;;;;GAIG;AACH,UAAU,KAAK;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAyBH,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AACD,KAAK,gCAAgC,CAAC,KAAK,EAAE,KAAK,IAAI,KAAK,GACvD,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,GAClB,EAAE,CAAC,CAAC;AAId,QAAA,MAAM,OAAO;;;;;;UAAqF,CAAC;AACjF,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC"}
|
package/dist/custom-element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hr=1,Vr=2,Yr=4,Ur=8,Gr=16,yn=1,En=4,bn=8,mn=16,Tn=1,An=2,At="[",St="[!",Nt="]",we={},b=Symbol(),Kr="http://www.w3.org/1999/xhtml",Wr="http://www.w3.org/2000/svg",zr="@attach",et=!1;var Sn=Array.isArray,Nn=Array.prototype.indexOf,On=Array.from,Fe=Object.keys,je=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Rn=Object.prototype,Cn=Array.prototype,xn=Object.getPrototypeOf,_t=Object.isExtensible;function Pn(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const m=2,Be=4,Ue=8,ut=1<<24,Z=16,Q=32,fe=64,at=128,I=512,T=1024,N=2048,ee=4096,V=8192,K=16384,Ge=32768,Ae=65536,vt=1<<17,Rt=1<<18,_e=1<<19,Ln=1<<20,Xr=1<<25,de=32768,tt=1<<21,lt=1<<22,re=1<<23,$e=Symbol("$state"),Ct=Symbol("legacy props"),Zr=Symbol(""),pe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},es=1,Ke=3,Ne=8;function In(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Dn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Bn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function qn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function We(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ts(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Un(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function Le(e){$=e}let g;function B(e){if(e===null)throw We(),we;return g=e}function xt(){return B(te(g))}function ns(e){if($){if(te(g)!==null)throw We(),we;g=e}}function Gn(e=1){if($){for(var t=e,n=g;t--;)n=te(n);g=n}}function Kn(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ne){var r=n.data;if(r===Nt){if(t===0)return n;t-=1}else(r===At||r===St)&&(t+=1)}var s=te(n);e&&n.remove(),n=s}}function rs(e){if(!e||e.nodeType!==Ne)throw We(),we;return e.data}function Pt(e){return e===this.v}function Wn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Lt(e){return!Wn(e,this.v)}let zn=!1,D=null;function ye(e){D=e}function Jn(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function Xn(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)Zt(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function It(){return!0}let ae=[];function Dt(){var e=ae;ae=[],Pn(e)}function Oe(e){if(ae.length===0&&!me){var t=ae;queueMicrotask(()=>{t===ae&&Dt()})}ae.push(e)}function Zn(){for(;ae.length>0;)Dt()}function kt(e){var t=v;if(t===null)return _.f|=re,e;if((t.f&Ge)===0){if((t.f&at)===0)throw e;t.b.error(e)}else Ee(e,t)}function Ee(e,t){for(;t!==null;){if((t.f&at)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Qn=-7169;function y(e,t){e.f=e.f&Qn|t}function ot(e){(e.f&I)!==0||e.deps===null?y(e,T):y(e,ee)}function Mt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&de)===0||(t.f^=de,Mt(t.deps))}function Ft(e,t,n){(e.f&N)!==0?t.add(e):(e.f&ee)!==0&&n.add(e),Mt(e.deps),y(e,T)}const Ie=new Set;let w=null,Ze=null,k=null,L=[],ze=null,nt=!1,me=!1;class M{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#s=0;#u=0;#i=null;#r=new Set;#n=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#u>0}process(t){L=[],Ze=null,this.apply();var n=[],r=[];for(const s of t)this.#f(s,n,r);this.is_fork||this.#l(),this.is_deferred()?(this.#a(r),this.#a(n)):(Ze=this,w=null,pt(r),pt(n),Ze=null,this.#i?.resolve()),k=null}#f(t,n,r){t.f^=T;for(var s=t.first,i=null;s!==null;){var f=s.f,u=(f&(Q|fe))!==0,a=u&&(f&T)!==0,l=a||(f&V)!==0||this.skipped_effects.has(s);if(!l&&s.fn!==null){u?s.f^=T:i!==null&&(f&(Be|Ue|ut))!==0?i.b.defer_effect(s):(f&Be)!==0?n.push(s):Ce(s)&&((f&Z)!==0&&this.#r.add(s),Se(s));var h=s.first;if(h!==null){s=h;continue}}var c=s.parent;for(s=s.next;s===null&&c!==null;)c===i&&(i=null),s=c.next,c=c.parent}}#a(t){for(var n=0;n<t.length;n+=1)Ft(t[n],this.#r,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&re)===0&&(this.current.set(t,t.v),k?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,k=null)}flush(){if(this.activate(),L.length>0){if(Bt(),w!==null&&w!==this)return}else this.#s===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#l(){if(this.#u===0){for(const t of this.#e)t();this.#e.clear()}this.#s===0&&this.#o()}#o(){if(Ie.size>1){this.previous.clear();var t=k,n=!0;for(const s of Ie){if(s===this){n=!1;continue}const i=[];for(const[u,a]of this.current){if(s.current.has(u))if(n&&a!==s.current.get(u))s.current.set(u,a);else continue;i.push(u)}if(i.length===0)continue;const f=[...s.current.keys()].filter(u=>!this.current.has(u));if(f.length>0){var r=L;L=[];const u=new Set,a=new Map;for(const l of i)qt(l,f,u,a);if(L.length>0){w=s,s.apply();for(const l of L)s.#f(l,[],[]);s.deactivate()}L=r}}w=null,k=t}this.committed=!0,Ie.delete(this)}increment(t){this.#s+=1,t&&(this.#u+=1)}decrement(t){this.#s-=1,t&&(this.#u-=1),this.revive()}revive(){for(const t of this.#r)this.#n.delete(t),y(t,N),z(t);for(const t of this.#n)y(t,ee),z(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#i??=Ot()).promise}static ensure(){if(w===null){const t=w=new M;Ie.add(w),me||M.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Oe(t)}apply(){}}function jt(e){var t=me;me=!0;try{for(var n;;){if(Zn(),L.length===0&&(w?.flush(),L.length===0))return ze=null,n;Bt()}}finally{me=t}}function Bt(){var e=ce;nt=!0;var t=null;try{var n=0;for(Ve(!0);L.length>0;){var r=M.ensure();if(n++>1e3){var s,i;er()}r.process(L),se.clear()}}finally{nt=!1,Ve(e),ze=null}}function er(){try{Fn()}catch(e){Ee(e,ze)}}let G=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|V))===0&&Ce(r)&&(G=new Set,Se(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?nn(r):r.fn=null),G?.size>0)){se.clear();for(const s of G){if((s.f&(K|V))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)G.has(f)&&(G.delete(f),i.push(f)),f=f.parent;for(let u=i.length-1;u>=0;u--){const a=i[u];(a.f&(K|V))===0&&Se(a)}}G.clear()}}G=null}}function qt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&m)!==0?qt(s,t,n,r):(i&(lt|Z))!==0&&(i&N)===0&&Ht(s,t,r)&&(y(s,N),z(s))}}function Ht(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&m)!==0&&Ht(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function z(e){for(var t=ze=e;t.parent!==null;){t=t.parent;var n=t.f;if(nt&&t===v&&(n&Z)!==0&&(n&Rt)===0)return;if((n&(fe|Q))!==0){if((n&T)===0)return;t.f^=T}}L.push(t)}function tr(e){let t=0,n=Re(0),r;return()=>{ht()&&(x(n),Qt(()=>(t===0&&(r=dn(()=>e(()=>Te(n)))),t+=1,()=>{Oe(()=>{t-=1,t===0&&(r?.(),r=void 0,Te(n))})})))}}var nr=Ae|_e|at;function rr(e,t,n){new sr(e,t,n)}class sr{parent;is_pending=!1;#e;#t=$?g:null;#s;#u;#i;#r=null;#n=null;#f=null;#a=null;#l=null;#o=0;#c=0;#d=!1;#_=new Set;#v=new Set;#h=null;#y=tr(()=>(this.#h=Re(this.#o),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#u=r,this.parent=v.b,this.is_pending=!!this.#s.pending,this.#i=wr(()=>{if(v.b=this,$){const i=this.#t;xt(),i.nodeType===Ne&&i.data===St?this.#b():(this.#E(),this.#c===0&&(this.is_pending=!1))}else{var s=this.#$();try{this.#r=ue(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#g():this.is_pending=!1}return()=>{this.#l?.remove()}},nr),$&&(this.#e=g)}#E(){try{this.#r=ue(()=>this.#u(this.#e))}catch(t){this.error(t)}}#b(){const t=this.#s.pending;t&&(this.#n=ue(()=>t(this.#e)),M.enqueue(()=>{var n=this.#$();this.#r=this.#p(()=>(M.ensure(),ue(()=>this.#u(n)))),this.#c>0?this.#g():(ke(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#$(){var t=this.#e;return this.is_pending&&(this.#l=J(),this.#e.before(this.#l),t=this.#l),t}defer_effect(t){Ft(t,this.#_,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(t){var n=v,r=_,s=D;U(this.#i),R(this.#i),ye(this.#i.ctx);try{return t()}catch(i){return kt(i),null}finally{U(n),R(r),ye(s)}}#g(){const t=this.#s.pending;this.#r!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#l),br(this.#r,this.#a)),this.#n===null&&(this.#n=ue(()=>t(this.#e)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}if(this.#c+=t,this.#c===0){this.is_pending=!1;for(const n of this.#_)y(n,N),z(n);for(const n of this.#v)y(n,ee),z(n);this.#_.clear(),this.#v.clear(),this.#n&&ke(this.#n,()=>{this.#n=null}),this.#a&&(this.#e.before(this.#a),this.#a=null)}}update_pending_count(t){this.#w(t),this.#o+=t,this.#h&&He(this.#h,this.#o)}get_effect_pending(){return this.#y(),x(this.#h)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#d||!n&&!r)throw t;this.#r&&(j(this.#r),this.#r=null),this.#n&&(j(this.#n),this.#n=null),this.#f&&(j(this.#f),this.#f=null),$&&(B(this.#t),Gn(),B(Kn()));var s=!1,i=!1;const f=()=>{if(s){Un();return}s=!0,i&&Yn(),M.ensure(),this.#o=0,this.#f!==null&&ke(this.#f,()=>{this.#f=null}),this.is_pending=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#d=!1,ue(()=>this.#u(this.#e)))),this.#c>0?this.#g():this.is_pending=!1};var u=_;try{R(null),i=!0,n?.(t,f),i=!1}catch(a){Ee(a,this.#i&&this.#i.parent)}finally{R(u)}r&&Oe(()=>{this.#f=this.#p(()=>{M.ensure(),this.#d=!0;try{return ue(()=>{r(this.#e,()=>t,()=>f)})}catch(a){return Ee(a,this.#i.parent),null}finally{this.#d=!1}})})}}function ir(e,t,n,r){const s=Je;if(n.length===0&&e.length===0){r(t.map(s));return}var i=w,f=v,u=fr();function a(){Promise.all(n.map(l=>ur(l))).then(l=>{u();try{r([...t.map(s),...l])}catch(h){(f.f&K)===0&&Ee(h,f)}i?.deactivate(),qe()}).catch(l=>{Ee(l,f)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{i?.deactivate(),qe()}}):a()}function fr(){var e=v,t=_,n=D,r=w;return function(i=!0){U(e),R(t),ye(n),i&&r?.activate()}}function qe(){U(null),R(null),ye(null)}function Je(e){var t=m|N,n=_!==null&&(_.f&m)!==0?_:null;return v!==null&&(v.f|=_e),{ctx:D,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??v,ac:null}}function ur(e,t,n){let r=v;r===null&&In();var s=r.b,i=void 0,f=Re(b),u=!_,a=new Map;return $r(()=>{var l=Ot();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{h===w&&h.committed&&h.deactivate(),qe()})}catch(d){l.reject(d),qe()}var h=w;if(u){var c=s.is_rendered();s.update_pending_count(1),h.increment(c),a.get(h)?.reject(pe),a.delete(h),a.set(h,l)}const o=(d,p=void 0)=>{if(h.activate(),p)p!==pe&&(f.f|=re,He(f,p));else{(f.f&re)!==0&&(f.f^=re),He(f,d);for(const[E,A]of a){if(a.delete(E),E===h)break;A.reject(pe)}}u&&(s.update_pending_count(-1),h.decrement(c))};l.promise.then(o,d=>o(null,d||"unknown"))}),Xt(()=>{for(const l of a.values())l.reject(pe)}),new Promise(l=>{function h(c){function o(){c===i?l(f):h(i)}c.then(o,o)}h(i)})}function ss(e){const t=Je(e);return fn(t),t}function ar(e){const t=Je(e);return t.equals=Lt,t}function Vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function lr(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function ct(e){var t,n=v;U(lr(e));try{e.f&=~de,Vt(e),t=on(e)}finally{U(n)}return t}function Yt(e){var t=ct(e);if(!e.equals(t)&&(e.wv=an(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,T);return}ie||(k!==null?(ht()||w?.is_fork)&&k.set(e,t):ot(e))}let rt=new Set;const se=new Map;let Ut=!1;function Re(e,t){var n={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return n}function ne(e,t){const n=Re(e);return fn(n),n}function or(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=Lt),r}function H(e,t,n=!1){_!==null&&(!F||(_.f&vt)!==0)&&It()&&(_.f&(m|Z|lt|vt))!==0&&!W?.includes(e)&&Vn();let r=n?ge(t):t;return He(e,r)}function He(e,t){if(!e.equals(t)){var n=e.v;ie?se.set(e,t):se.set(e,n),e.v=t;var r=M.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&N)!==0&&ct(s),ot(s)}e.wv=an(),Gt(e,N),v!==null&&(v.f&T)!==0&&(v.f&(Q|fe))===0&&(P===null?mr([e]):P.push(e)),!r.is_fork&&rt.size>0&&!Ut&&cr()}return t}function cr(){Ut=!1;var e=ce;Ve(!0);const t=Array.from(rt);try{for(const n of t)(n.f&T)!==0&&y(n,ee),Ce(n)&&Se(n)}finally{Ve(e)}rt.clear()}function is(e,t=1){var n=x(e),r=t===1?n++:n--;return H(e,n),r}function Te(e){H(e,e.v+1)}function Gt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,u=(f&N)===0;if(u&&y(i,t),(f&m)!==0){var a=i;k?.delete(a),(f&de)===0&&(f&I&&(i.f|=de),Gt(a,ee))}else u&&((f&Z)!==0&&G!==null&&G.add(i),z(i))}}function ge(e){if(typeof e!="object"||e===null||$e in e)return e;const t=xn(e);if(t!==Rn&&t!==Cn)return e;var n=new Map,r=Sn(e),s=ne(0),i=he,f=u=>{if(he===i)return u();var a=_,l=he;R(null),Et(i);var h=u();return R(a),Et(l),h};return r&&n.set("length",ne(e.length)),new Proxy(e,{defineProperty(u,a,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&qn();var h=n.get(a);return h===void 0?h=f(()=>{var c=ne(l.value);return n.set(a,c),c}):H(h,l.value,!0),!0},deleteProperty(u,a){var l=n.get(a);if(l===void 0){if(a in u){const h=f(()=>ne(b));n.set(a,h),Te(s)}}else H(l,b),Te(s);return!0},get(u,a,l){if(a===$e)return e;var h=n.get(a),c=a in u;if(h===void 0&&(!c||oe(u,a)?.writable)&&(h=f(()=>{var d=ge(c?u[a]:b),p=ne(d);return p}),n.set(a,h)),h!==void 0){var o=x(h);return o===b?void 0:o}return Reflect.get(u,a,l)},getOwnPropertyDescriptor(u,a){var l=Reflect.getOwnPropertyDescriptor(u,a);if(l&&"value"in l){var h=n.get(a);h&&(l.value=x(h))}else if(l===void 0){var c=n.get(a),o=c?.v;if(c!==void 0&&o!==b)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return l},has(u,a){if(a===$e)return!0;var l=n.get(a),h=l!==void 0&&l.v!==b||Reflect.has(u,a);if(l!==void 0||v!==null&&(!h||oe(u,a)?.writable)){l===void 0&&(l=f(()=>{var o=h?ge(u[a]):b,d=ne(o);return d}),n.set(a,l));var c=x(l);if(c===b)return!1}return h},set(u,a,l,h){var c=n.get(a),o=a in u;if(r&&a==="length")for(var d=l;d<c.v;d+=1){var p=n.get(d+"");p!==void 0?H(p,b):d in u&&(p=f(()=>ne(b)),n.set(d+"",p))}if(c===void 0)(!o||oe(u,a)?.writable)&&(c=f(()=>ne(void 0)),H(c,ge(l)),n.set(a,c));else{o=c.v!==b;var E=f(()=>ge(l));H(c,E)}var A=Reflect.getOwnPropertyDescriptor(u,a);if(A?.set&&A.set.call(h,l),!o){if(r&&typeof a=="string"){var xe=n.get("length"),S=Number(a);Number.isInteger(S)&&S>=xe.v&&H(xe,S+1)}Te(s)}return!0},ownKeys(u){x(s);var a=Reflect.ownKeys(u).filter(c=>{var o=n.get(c);return o===void 0||o.v!==b});for(var[l,h]of n)h.v!==b&&!(l in u)&&a.push(l);return a},setPrototypeOf(){Hn()}})}function gt(e){try{if(e!==null&&typeof e=="object"&&$e in e)return e[$e]}catch{}return e}function fs(e,t){return Object.is(gt(e),gt(t))}var $t,Kt,Wt,zt;function st(){if($t===void 0){$t=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=oe(t,"firstChild").get,zt=oe(t,"nextSibling").get,_t(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_t(n)&&(n.__t=void 0)}}function J(e=""){return document.createTextNode(e)}function X(e){return Wt.call(e)}function te(e){return zt.call(e)}function us(e,t){if(!$)return X(e);var n=X(g);if(n===null)n=g.appendChild(J());else if(t&&n.nodeType!==Ke){var r=J();return n?.before(r),B(r),r}return B(n),n}function as(e,t=!1){if(!$){var n=X(e);return n instanceof Comment&&n.data===""?te(n):n}if(t&&g?.nodeType!==Ke){var r=J();return g?.before(r),B(r),r}return g}function ls(e,t=1,n=!1){let r=$?g:e;for(var s;t--;)s=r,r=te(r);if(!$)return r;if(n&&r?.nodeType!==Ke){var i=J();return r===null?s?.after(i):r.before(i),B(i),i}return B(r),r}function Jt(e){e.textContent=""}function os(){return!1}function cs(e,t){if(t){const n=document.body;e.autofocus=!0,Oe(()=>{document.activeElement===n&&e.focus()})}}function hs(e){$&&X(e)!==null&&Jt(e)}let wt=!1;function hr(){wt||(wt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Xe(e){var t=_,n=v;R(null),U(null);try{return e()}finally{R(t),U(n)}}function ds(e,t,n,r=n){e.addEventListener(t,()=>Xe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),hr()}function dr(e){v===null&&(_===null&&Mn(),kn()),ie&&Dn()}function _r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t,n){var r=v;r!==null&&(r.f&V)!==0&&(e|=V);var s={ctx:D,deps:null,nodes:null,f:e|N|I,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Se(s),s.f|=Ge}catch(u){throw j(s),u}else t!==null&&z(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&_e)===0&&(i=i.first,(e&Z)!==0&&(e&Ae)!==0&&i!==null&&(i.f|=Ae)),i!==null&&(i.parent=r,r!==null&&_r(i,r),_!==null&&(_.f&m)!==0&&(e&fe)===0)){var f=_;(f.effects??=[]).push(i)}return s}function ht(){return _!==null&&!F}function Xt(e){const t=q(Ue,null,!1);return y(t,T),t.teardown=e,t}function _s(e){dr();var t=v.f,n=!_&&(t&Q)!==0&&(t&Ge)===0;if(n){var r=D;(r.e??=[]).push(e)}else return Zt(e)}function Zt(e){return q(Be|Ln,e,!1)}function vr(e){M.ensure();const t=q(fe|_e,e,!0);return()=>{j(t)}}function pr(e){M.ensure();const t=q(fe|_e,e,!0);return(n={})=>new Promise(r=>{n.outro?ke(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function gr(e){return q(Be,e,!1)}function $r(e){return q(lt|_e,e,!0)}function Qt(e,t=0){return q(Ue|t,e,!0)}function vs(e,t=[],n=[],r=[]){ir(r,t,n,s=>{q(Ue,()=>e(...s.map(x)),!0)})}function wr(e,t=0){var n=q(Z|t,e,!0);return n}function ps(e,t=0){var n=q(ut|t,e,!0);return n}function ue(e){return q(Q|_e,e,!0)}function en(e){var t=e.teardown;if(t!==null){const n=ie,r=_;yt(!0),R(null);try{t.call(null)}finally{yt(n),R(r)}}}function tn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Xe(()=>{s.abort(pe)});var r=n.next;(n.f&fe)!==0?n.parent=null:j(n,t),n=r}}function yr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Q)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Er(e.nodes.start,e.nodes.end),n=!0),tn(e,t&&!n),Ye(e,0),y(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();en(e);var s=e.parent;s!==null&&s.first!==null&&nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Er(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function nn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ke(e,t,n=!0){var r=[];rn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var u of r)u.out(f)}else s()}function rn(e,t,n){if((e.f&V)===0){e.f^=V;var r=e.nodes&&e.nodes.t;if(r!==null)for(const u of r)(u.is_global||n)&&t.push(u);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Ae)!==0||(s.f&Q)!==0&&(e.f&Z)!==0;rn(s,t,f?n:!1),s=i}}}function gs(e){sn(e,!0)}function sn(e,t){if((e.f&V)!==0){e.f^=V,(e.f&T)===0&&(y(e,N),z(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&Q)!==0;sn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const f of i)(f.is_global||t)&&f.in()}}function br(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:te(n);t.append(n),n=s}}let ce=!1;function Ve(e){ce=e}let ie=!1;function yt(e){ie=e}let _=null,F=!1;function R(e){_=e}let v=null;function U(e){v=e}let W=null;function fn(e){_!==null&&(W===null?W=[e]:W.push(e))}let O=null,C=0,P=null;function mr(e){P=e}let un=1,le=0,he=le;function Et(e){he=e}function an(){return++un}function Ce(e){var t=e.f;if((t&N)!==0)return!0;if(t&m&&(e.f&=~de),(t&ee)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Ce(i)&&Yt(i),i.wv>e.wv)return!0}(t&I)!==0&&k===null&&y(e,T)}return!1}function ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!W?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&m)!==0?ln(i,t,!1):t===i&&(n?y(i,N):(i.f&T)!==0&&y(i,ee),z(i))}}function on(e){var t=O,n=C,r=P,s=_,i=W,f=D,u=F,a=he,l=e.f;O=null,C=0,P=null,_=(l&(Q|fe))===0?e:null,W=null,ye(e.ctx),F=!1,he=++le,e.ac!==null&&(Xe(()=>{e.ac.abort(pe)}),e.ac=null);try{e.f|=tt;var h=e.fn,c=h(),o=e.deps;if(O!==null){var d;if(Ye(e,C),o!==null&&C>0)for(o.length=C+O.length,d=0;d<O.length;d++)o[C+d]=O[d];else e.deps=o=O;if(ht()&&(e.f&I)!==0)for(d=C;d<o.length;d++)(o[d].reactions??=[]).push(e)}else o!==null&&C<o.length&&(Ye(e,C),o.length=C);if(It()&&P!==null&&!F&&o!==null&&(e.f&(m|ee|N))===0)for(d=0;d<P.length;d++)ln(P[d],e);if(s!==null&&s!==e){if(le++,s.deps!==null)for(let p=0;p<n;p+=1)s.deps[p].rv=le;if(t!==null)for(const p of t)p.rv=le;P!==null&&(r===null?r=P:r.push(...P))}return(e.f&re)!==0&&(e.f^=re),c}catch(p){return kt(p)}finally{e.f^=tt,O=t,C=n,P=r,_=s,W=i,ye(f),F=u,he=a}}function Tr(e,t){let n=t.reactions;if(n!==null){var r=Nn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(O===null||!O.includes(t))){var i=t;(i.f&I)!==0&&(i.f^=I,i.f&=~de),ot(i),Vt(i),Ye(i,0)}}function Ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Tr(e,n[r])}function Se(e){var t=e.f;if((t&K)===0){y(e,T);var n=v,r=ce;v=e,ce=!0;try{(t&(Z|ut))!==0?yr(e):tn(e),en(e);var s=on(e);e.teardown=typeof s=="function"?s:null,e.wv=un;var i;et&&zn&&(e.f&N)!==0&&e.deps}finally{ce=r,v=n}}}async function $s(){await Promise.resolve(),jt()}function x(e){var t=e.f,n=(t&m)!==0;if(_!==null&&!F){var r=v!==null&&(v.f&K)!==0;if(!r&&!W?.includes(e)){var s=_.deps;if((_.f&tt)!==0)e.rv<le&&(e.rv=le,O===null&&s!==null&&s[C]===e?C++:O===null?O=[e]:O.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(ie&&se.has(e))return se.get(e);if(n){var f=e;if(ie){var u=f.v;return((f.f&T)===0&&f.reactions!==null||hn(f))&&(u=ct(f)),se.set(f,u),u}var a=(f.f&I)===0&&!F&&_!==null&&(ce||(_.f&I)!==0),l=f.deps===null;Ce(f)&&(a&&(f.f|=I),Yt(f)),a&&!l&&cn(f)}if(k?.has(e))return k.get(e);if((e.f&re)!==0)throw e.v;return e.v}function cn(e){if(e.deps!==null){e.f|=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&I)===0&&cn(t)}}function hn(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(se.has(t)||(t.f&m)!==0&&hn(t))return!0;return!1}function dn(e){var t=F;try{return F=!0,e()}finally{F=t}}const _n=new Set,it=new Set;function Ar(e,t,n,r={}){function s(i){if(r.capture||be.call(t,i),!i.cancelBubble)return Xe(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Oe(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function ws(e,t,n,r,s){var i={capture:r,passive:s},f=Ar(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xt(()=>{t.removeEventListener(e,f,i)})}function ys(e){for(var t=0;t<e.length;t++)_n.add(e[t]);for(var n of it)n(e)}let bt=null;function be(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;bt=e;var f=0,u=bt===e&&e.__root;if(u){var a=s.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var l=s.indexOf(t);if(l===-1)return;a<=l&&(f=a)}if(i=s[f]||e.target,i!==t){je(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=_,c=v;R(null),U(null);try{for(var o,d=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var E=i["__"+r];E!=null&&(!i.disabled||e.target===i)&&E.call(i,e)}catch(A){o?d.push(A):o=A}if(e.cancelBubble||p===t||p===null)break;i=p}if(o){for(let A of d)queueMicrotask(()=>{throw A});throw o}}finally{e.__root=t,delete e.currentTarget,R(h),U(c)}}}function vn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Y(e,t){var n=v;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Es(e,t){var n=(t&Tn)!==0,r=(t&An)!==0,s,i=!e.startsWith("<!>");return()=>{if($)return Y(g,null),g;s===void 0&&(s=vn(i?e:"<!>"+e),n||(s=X(s)));var f=r||Kt?document.importNode(s,!0):s.cloneNode(!0);if(n){var u=X(f),a=f.lastChild;Y(u,a)}else Y(f,f);return f}}function Sr(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if($)return Y(g,null),g;if(!i){var f=vn(s),u=X(f);i=X(u)}var a=i.cloneNode(!0);return Y(a,a),a}}function bs(e,t){return Sr(e,t,"svg")}function ms(e=""){if(!$){var t=J(e+"");return Y(t,t),t}var n=g;return n.nodeType!==Ke&&(n.before(n=J()),B(n)),Y(n,n),n}function Ts(){if($)return Y(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=J();return e.append(t,n),Y(t,n),e}function Nr(e,t){if($){var n=v;((n.f&Ge)===0||n.nodes.end===null)&&(n.nodes.end=g),xt();return}e!==null&&e.before(t)}function As(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Or=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ss(e){return Or.includes(e)}const Rr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ns(e){return e=e.toLowerCase(),Rr[e]??e}const Cr=["touchstart","touchmove"];function xr(e){return Cr.includes(e)}const Pr=["textarea","script","style","title"];function Os(e){return Pr.includes(e)}function Rs(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function pn(e,t){return gn(e,t)}function Lr(e,t){st(),t.intro=t.intro??!1;const n=t.target,r=$,s=g;try{for(var i=X(n);i&&(i.nodeType!==Ne||i.data!==At);)i=te(i);if(!i)throw we;Le(!0),B(i);const f=gn(e,{...t,anchor:i});return Le(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
-
`).some(
|
|
3
|
-
\r\f \v\uFEFF`];function
|
|
1
|
+
typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Vr=1,qr=2,Yr=4,Ur=8,Gr=16,En=1,bn=4,yn=8,mn=16,Tn=1,An=2,At="[",St="[!",Nt="]",we={},y=Symbol(),Kr="http://www.w3.org/1999/xhtml",Wr="http://www.w3.org/2000/svg",zr="@attach",Ze=!1;var Sn=Array.isArray,Nn=Array.prototype.indexOf,Ee=Array.prototype.includes,On=Array.from,je=Object.keys,Be=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Rn=Object.prototype,Cn=Array.prototype,xn=Object.getPrototypeOf,dt=Object.isExtensible;function Pn(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const m=2,He=4,Ye=8,ft=1<<24,Z=16,Q=32,le=64,lt=128,L=512,T=1024,N=2048,ee=4096,q=8192,K=16384,Ue=32768,Se=65536,_t=1<<17,Rt=1<<18,_e=1<<19,Ln=1<<20,Xr=1<<25,de=32768,Qe=1<<21,at=1<<22,re=1<<23,$e=Symbol("$state"),Ct=Symbol("legacy props"),Zr=Symbol(""),pe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},es=1,Ge=3,Oe=8;function In(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Bn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ts(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Un(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function Le(e){$=e}let g;function B(e){if(e===null)throw Ke(),we;return g=e}function xt(){return B(te(g))}function ns(e){if($){if(te(g)!==null)throw Ke(),we;g=e}}function Gn(e=1){if($){for(var t=e,n=g;t--;)n=te(n);g=n}}function Kn(e=!0){for(var t=0,n=g;;){if(n.nodeType===Oe){var r=n.data;if(r===Nt){if(t===0)return n;t-=1}else(r===At||r===St)&&(t+=1)}var s=te(n);e&&n.remove(),n=s}}function rs(e){if(!e||e.nodeType!==Oe)throw Ke(),we;return e.data}function Pt(e){return e===this.v}function Wn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Lt(e){return!Wn(e,this.v)}let zn=!1,k=null;function be(e){k=e}function Jn(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,l:null}}function Xn(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)Zt(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function It(){return!0}let ue=[];function kt(){var e=ue;ue=[],Pn(e)}function se(e){if(ue.length===0&&!Te){var t=ue;queueMicrotask(()=>{t===ue&&kt()})}ue.push(e)}function Zn(){for(;ue.length>0;)kt()}function Dt(e){var t=v;if(t===null)return _.f|=re,e;if((t.f&Ue)===0){if((t.f<)===0)throw e;t.b.error(e)}else ye(e,t)}function ye(e,t){for(;t!==null;){if((t.f<)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Qn=-7169;function E(e,t){e.f=e.f&Qn|t}function ut(e){(e.f&L)!==0||e.deps===null?E(e,T):E(e,ee)}function Mt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&de)===0||(t.f^=de,Mt(t.deps))}function Ft(e,t,n){(e.f&N)!==0?t.add(e):(e.f&ee)!==0&&n.add(e),Mt(e.deps),E(e,T)}const Ie=new Set;let w=null,vt=null,M=null,C=[],We=null,et=!1,Te=!1;class W{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#a=0;#f=null;#s=new Set;#n=new Set;skipped_effects=new Set;is_fork=!1;#i=!1;is_deferred(){return this.is_fork||this.#a>0}process(t){C=[],this.apply();var n=[],r=[];for(const s of t)this.#l(s,n,r);if(this.is_deferred())this.#u(r),this.#u(n);else{for(const s of this.#e)s();this.#e.clear(),this.#r===0&&this.#o(),vt=this,w=null,pt(r),pt(n),vt=null,this.#f?.resolve()}M=null}#l(t,n,r){t.f^=T;for(var s=t.first,i=null;s!==null;){var f=s.f,l=(f&(Q|le))!==0,a=l&&(f&T)!==0,u=a||(f&q)!==0||this.skipped_effects.has(s);if(!u&&s.fn!==null){l?s.f^=T:i!==null&&(f&(He|Ye|ft))!==0?i.b.defer_effect(s):(f&He)!==0?n.push(s):Ce(s)&&((f&Z)!==0&&this.#n.add(s),Ne(s));var h=s.first;if(h!==null){s=h;continue}}var c=s.parent;for(s=s.next;s===null&&c!==null;)c===i&&(i=null),s=c.next,c=c.parent}}#u(t){for(var n=0;n<t.length;n+=1)Ft(t[n],this.#s,this.#n)}capture(t,n){n!==y&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&re)===0&&(this.current.set(t,t.v),M?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,M=null)}flush(){if(this.activate(),C.length>0){if(Bt(),w!==null&&w!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#o(){if(Ie.size>1){this.previous.clear();var t=M,n=!0;for(const s of Ie){if(s===this){n=!1;continue}const i=[];for(const[l,a]of this.current){if(s.current.has(l))if(n&&a!==s.current.get(l))s.current.set(l,a);else continue;i.push(l)}if(i.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){var r=C;C=[];const l=new Set,a=new Map;for(const u of i)Ht(u,f,l,a);if(C.length>0){w=s,s.apply();for(const u of C)s.#l(u,[],[]);s.deactivate()}C=r}}w=null,M=t}this.committed=!0,Ie.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#i&&(this.#i=!0,se(()=>{this.#i=!1,this.is_deferred()?C.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#s)this.#n.delete(t),E(t,N),z(t);for(const t of this.#n)E(t,ee),z(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#f??=Ot()).promise}static ensure(){if(w===null){const t=w=new W;Ie.add(w),Te||se(()=>{w===t&&t.flush()})}return w}apply(){}}function jt(e){var t=Te;Te=!0;try{for(var n;;){if(Zn(),C.length===0&&(w?.flush(),C.length===0))return We=null,n;Bt()}}finally{Te=t}}function Bt(){et=!0;var e=null;try{for(var t=0;C.length>0;){var n=W.ensure();if(t++>1e3){var r,s;er()}n.process(C),ie.clear()}}finally{et=!1,We=null}}function er(){try{Fn()}catch(e){ye(e,We)}}let G=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|q))===0&&Ce(r)&&(G=new Set,Ne(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?nn(r):r.fn=null),G?.size>0)){ie.clear();for(const s of G){if((s.f&(K|q))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)G.has(f)&&(G.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const a=i[l];(a.f&(K|q))===0&&Ne(a)}}G.clear()}}G=null}}function Ht(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&m)!==0?Ht(s,t,n,r):(i&(at|Z))!==0&&(i&N)===0&&Vt(s,t,r)&&(E(s,N),z(s))}}function Vt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Ee.call(t,s))return!0;if((s.f&m)!==0&&Vt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function z(e){for(var t=We=e;t.parent!==null;){t=t.parent;var n=t.f;if(et&&t===v&&(n&Z)!==0&&(n&Rt)===0)return;if((n&(le|Q))!==0){if((n&T)===0)return;t.f^=T}}C.push(t)}function tr(e){let t=0,n=Re(0),r;return()=>{ct()&&(x(n),Qt(()=>(t===0&&(r=dn(()=>e(()=>Ae(n)))),t+=1,()=>{se(()=>{t-=1,t===0&&(r?.(),r=void 0,Ae(n))})})))}}var nr=Se|_e|lt;function rr(e,t,n){new sr(e,t,n)}class sr{parent;is_pending=!1;#e;#t=$?g:null;#r;#a;#f;#s=null;#n=null;#i=null;#l=null;#u=null;#o=0;#c=0;#_=!1;#d=!1;#v=new Set;#p=new Set;#h=null;#b=tr(()=>(this.#h=Re(this.#o),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=v.b,this.is_pending=!!this.#r.pending,this.#f=wr(()=>{if(v.b=this,$){const i=this.#t;xt(),i.nodeType===Oe&&i.data===St?this.#m():(this.#y(),this.#c===0&&(this.is_pending=!1))}else{var s=this.#w();try{this.#s=ae(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#$():this.is_pending=!1}return()=>{this.#u?.remove()}},nr),$&&(this.#e=g)}#y(){try{this.#s=ae(()=>this.#a(this.#e))}catch(t){this.error(t)}}#m(){const t=this.#r.pending;t&&(this.#n=ae(()=>t(this.#e)),se(()=>{var n=this.#w();this.#s=this.#g(()=>(W.ensure(),ae(()=>this.#a(n)))),this.#c>0?this.#$():(De(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#w(){var t=this.#e;return this.is_pending&&(this.#u=J(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){Ft(t,this.#v,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#g(t){var n=v,r=_,s=k;U(this.#f),D(this.#f),be(this.#f.ctx);try{return t()}catch(i){return Dt(i),null}finally{U(n),D(r),be(s)}}#$(){const t=this.#r.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),yr(this.#s,this.#l)),this.#n===null&&(this.#n=ae(()=>t(this.#e)))}#E(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#E(t);return}if(this.#c+=t,this.#c===0){this.is_pending=!1;for(const n of this.#v)E(n,N),z(n);for(const n of this.#p)E(n,ee),z(n);this.#v.clear(),this.#p.clear(),this.#n&&De(this.#n,()=>{this.#n=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#E(t),this.#o+=t,!(!this.#h||this.#_)&&(this.#_=!0,se(()=>{this.#_=!1,this.#h&&Ve(this.#h,this.#o)}))}get_effect_pending(){return this.#b(),x(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#d||!n&&!r)throw t;this.#s&&(j(this.#s),this.#s=null),this.#n&&(j(this.#n),this.#n=null),this.#i&&(j(this.#i),this.#i=null),$&&(B(this.#t),Gn(),B(Kn()));var s=!1,i=!1;const f=()=>{if(s){Un();return}s=!0,i&&Yn(),W.ensure(),this.#o=0,this.#i!==null&&De(this.#i,()=>{this.#i=null}),this.is_pending=this.has_pending_snippet(),this.#s=this.#g(()=>(this.#d=!1,ae(()=>this.#a(this.#e)))),this.#c>0?this.#$():this.is_pending=!1};se(()=>{try{i=!0,n?.(t,f),i=!1}catch(l){ye(l,this.#f&&this.#f.parent)}r&&(this.#i=this.#g(()=>{W.ensure(),this.#d=!0;try{return ae(()=>{r(this.#e,()=>t,()=>f)})}catch(l){return ye(l,this.#f.parent),null}finally{this.#d=!1}}))})}}function ir(e,t,n,r){const s=ze;var i=e.filter(o=>!o.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=w,l=v,a=fr(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(o=>o.promise)):null;function h(o){a();try{r(o)}catch(d){(l.f&K)===0&&ye(d,l)}f?.deactivate(),tt()}if(n.length===0){u.then(()=>h(t.map(s)));return}function c(){a(),Promise.all(n.map(o=>lr(o))).then(o=>h([...t.map(s),...o])).catch(o=>ye(o,l))}u?u.then(c):c()}function fr(){var e=v,t=_,n=k,r=w;return function(i=!0){U(e),D(t),be(n),i&&r?.activate()}}function tt(){U(null),D(null),be(null)}function ze(e){var t=m|N,n=_!==null&&(_.f&m)!==0?_:null;return v!==null&&(v.f|=_e),{ctx:k,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:y,wv:0,parent:n??v,ac:null}}function lr(e,t,n){let r=v;r===null&&In();var s=r.b,i=void 0,f=Re(y),l=!_,a=new Map;return $r(()=>{var u=Ot();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{h===w&&h.committed&&h.deactivate(),tt()})}catch(d){u.reject(d),tt()}var h=w;if(l){var c=s.is_rendered();s.update_pending_count(1),h.increment(c),a.get(h)?.reject(pe),a.delete(h),a.set(h,u)}const o=(d,p=void 0)=>{if(h.activate(),p)p!==pe&&(f.f|=re,Ve(f,p));else{(f.f&re)!==0&&(f.f^=re),Ve(f,d);for(const[b,A]of a){if(a.delete(b),b===h)break;A.reject(pe)}}l&&(s.update_pending_count(-1),h.decrement(c))};u.promise.then(o,d=>o(null,d||"unknown"))}),Xt(()=>{for(const u of a.values())u.reject(pe)}),new Promise(u=>{function h(c){function o(){c===i?u(f):h(i)}c.then(o,o)}h(i)})}function ss(e){const t=ze(e);return fn(t),t}function ar(e){const t=ze(e);return t.equals=Lt,t}function qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function ur(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function ot(e){var t,n=v;U(ur(e));try{e.f&=~de,qt(e),t=on(e)}finally{U(n)}return t}function Yt(e){var t=ot(e);if(!e.equals(t)&&(e.wv=an(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){E(e,T);return}fe||(M!==null?(ct()||w?.is_fork)&&M.set(e,t):ut(e))}let nt=new Set;const ie=new Map;let Ut=!1;function Re(e,t){var n={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return n}function ne(e,t){const n=Re(e);return fn(n),n}function or(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=Lt),r}function V(e,t,n=!1){_!==null&&(!F||(_.f&_t)!==0)&&It()&&(_.f&(m|Z|at|_t))!==0&&(I===null||!Ee.call(I,e))&&qn();let r=n?ge(t):t;return Ve(e,r)}function Ve(e,t){if(!e.equals(t)){var n=e.v;fe?ie.set(e,t):ie.set(e,n),e.v=t;var r=W.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&N)!==0&&ot(s),ut(s)}e.wv=an(),Gt(e,N),v!==null&&(v.f&T)!==0&&(v.f&(Q|le))===0&&(P===null?mr([e]):P.push(e)),!r.is_fork&&nt.size>0&&!Ut&&cr()}return t}function cr(){Ut=!1;for(const e of nt)(e.f&T)!==0&&E(e,ee),Ce(e)&&Ne(e);nt.clear()}function is(e,t=1){var n=x(e),r=t===1?n++:n--;return V(e,n),r}function Ae(e){V(e,e.v+1)}function Gt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&N)===0;if(l&&E(i,t),(f&m)!==0){var a=i;M?.delete(a),(f&de)===0&&(f&L&&(i.f|=de),Gt(a,ee))}else l&&((f&Z)!==0&&G!==null&&G.add(i),z(i))}}function ge(e){if(typeof e!="object"||e===null||$e in e)return e;const t=xn(e);if(t!==Rn&&t!==Cn)return e;var n=new Map,r=Sn(e),s=ne(0),i=he,f=l=>{if(he===i)return l();var a=_,u=he;D(null),bt(i);var h=l();return D(a),bt(u),h};return r&&n.set("length",ne(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Hn();var h=n.get(a);return h===void 0?h=f(()=>{var c=ne(u.value);return n.set(a,c),c}):V(h,u.value,!0),!0},deleteProperty(l,a){var u=n.get(a);if(u===void 0){if(a in l){const h=f(()=>ne(y));n.set(a,h),Ae(s)}}else V(u,y),Ae(s);return!0},get(l,a,u){if(a===$e)return e;var h=n.get(a),c=a in l;if(h===void 0&&(!c||ce(l,a)?.writable)&&(h=f(()=>{var d=ge(c?l[a]:y),p=ne(d);return p}),n.set(a,h)),h!==void 0){var o=x(h);return o===y?void 0:o}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var h=n.get(a);h&&(u.value=x(h))}else if(u===void 0){var c=n.get(a),o=c?.v;if(c!==void 0&&o!==y)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return u},has(l,a){if(a===$e)return!0;var u=n.get(a),h=u!==void 0&&u.v!==y||Reflect.has(l,a);if(u!==void 0||v!==null&&(!h||ce(l,a)?.writable)){u===void 0&&(u=f(()=>{var o=h?ge(l[a]):y,d=ne(o);return d}),n.set(a,u));var c=x(u);if(c===y)return!1}return h},set(l,a,u,h){var c=n.get(a),o=a in l;if(r&&a==="length")for(var d=u;d<c.v;d+=1){var p=n.get(d+"");p!==void 0?V(p,y):d in l&&(p=f(()=>ne(y)),n.set(d+"",p))}if(c===void 0)(!o||ce(l,a)?.writable)&&(c=f(()=>ne(void 0)),V(c,ge(u)),n.set(a,c));else{o=c.v!==y;var b=f(()=>ge(u));V(c,b)}var A=Reflect.getOwnPropertyDescriptor(l,a);if(A?.set&&A.set.call(h,u),!o){if(r&&typeof a=="string"){var xe=n.get("length"),S=Number(a);Number.isInteger(S)&&S>=xe.v&&V(xe,S+1)}Ae(s)}return!0},ownKeys(l){x(s);var a=Reflect.ownKeys(l).filter(c=>{var o=n.get(c);return o===void 0||o.v!==y});for(var[u,h]of n)h.v!==y&&!(u in l)&&a.push(u);return a},setPrototypeOf(){Vn()}})}function gt(e){try{if(e!==null&&typeof e=="object"&&$e in e)return e[$e]}catch{}return e}function fs(e,t){return Object.is(gt(e),gt(t))}var $t,Kt,Wt,zt;function rt(){if($t===void 0){$t=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=ce(t,"firstChild").get,zt=ce(t,"nextSibling").get,dt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),dt(n)&&(n.__t=void 0)}}function J(e=""){return document.createTextNode(e)}function X(e){return Wt.call(e)}function te(e){return zt.call(e)}function ls(e,t){if(!$)return X(e);var n=X(g);if(n===null)n=g.appendChild(J());else if(t&&n.nodeType!==Ge){var r=J();return n?.before(r),B(r),r}return B(n),n}function as(e,t=!1){if(!$){var n=X(e);return n instanceof Comment&&n.data===""?te(n):n}if(t&&g?.nodeType!==Ge){var r=J();return g?.before(r),B(r),r}return g}function us(e,t=1,n=!1){let r=$?g:e;for(var s;t--;)s=r,r=te(r);if(!$)return r;if(n&&r?.nodeType!==Ge){var i=J();return r===null?s?.after(i):r.before(i),B(i),i}return B(r),r}function Jt(e){e.textContent=""}function os(){return!1}function cs(e,t){if(t){const n=document.body;e.autofocus=!0,se(()=>{document.activeElement===n&&e.focus()})}}function hs(e){$&&X(e)!==null&&Jt(e)}let wt=!1;function hr(){wt||(wt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Je(e){var t=_,n=v;D(null),U(null);try{return e()}finally{D(t),U(n)}}function ds(e,t,n,r=n){e.addEventListener(t,()=>Je(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),hr()}function dr(e){v===null&&(_===null&&Mn(),Dn()),fe&&kn()}function _r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function H(e,t,n){var r=v;r!==null&&(r.f&q)!==0&&(e|=q);var s={ctx:k,deps:null,nodes:null,f:e|N|L,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Ne(s),s.f|=Ue}catch(l){throw j(s),l}else t!==null&&z(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&_e)===0&&(i=i.first,(e&Z)!==0&&(e&Se)!==0&&i!==null&&(i.f|=Se)),i!==null&&(i.parent=r,r!==null&&_r(i,r),_!==null&&(_.f&m)!==0&&(e&le)===0)){var f=_;(f.effects??=[]).push(i)}return s}function ct(){return _!==null&&!F}function Xt(e){const t=H(Ye,null,!1);return E(t,T),t.teardown=e,t}function _s(e){dr();var t=v.f,n=!_&&(t&Q)!==0&&(t&Ue)===0;if(n){var r=k;(r.e??=[]).push(e)}else return Zt(e)}function Zt(e){return H(He|Ln,e,!1)}function vr(e){W.ensure();const t=H(le|_e,e,!0);return()=>{j(t)}}function pr(e){W.ensure();const t=H(le|_e,e,!0);return(n={})=>new Promise(r=>{n.outro?De(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function gr(e){return H(He,e,!1)}function $r(e){return H(at|_e,e,!0)}function Qt(e,t=0){return H(Ye|t,e,!0)}function vs(e,t=[],n=[],r=[]){ir(r,t,n,s=>{H(Ye,()=>e(...s.map(x)),!0)})}function wr(e,t=0){var n=H(Z|t,e,!0);return n}function ps(e,t=0){var n=H(ft|t,e,!0);return n}function ae(e){return H(Q|_e,e,!0)}function en(e){var t=e.teardown;if(t!==null){const n=fe,r=_;Et(!0),D(null);try{t.call(null)}finally{Et(n),D(r)}}}function tn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Je(()=>{s.abort(pe)});var r=n.next;(n.f&le)!==0?n.parent=null:j(n,t),n=r}}function Er(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Q)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(br(e.nodes.start,e.nodes.end),n=!0),tn(e,t&&!n),qe(e,0),E(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();en(e);var s=e.parent;s!==null&&s.first!==null&&nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function br(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function nn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function De(e,t,n=!0){var r=[];rn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function rn(e,t,n){if((e.f&q)===0){e.f^=q;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Se)!==0||(s.f&Q)!==0&&(e.f&Z)!==0;rn(s,t,f?n:!1),s=i}}}function gs(e){sn(e,!0)}function sn(e,t){if((e.f&q)!==0){e.f^=q,(e.f&T)===0&&(E(e,N),z(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Se)!==0||(n.f&Q)!==0;sn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const f of i)(f.is_global||t)&&f.in()}}function yr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:te(n);t.append(n),n=s}}let Me=!1,fe=!1;function Et(e){fe=e}let _=null,F=!1;function D(e){_=e}let v=null;function U(e){v=e}let I=null;function fn(e){_!==null&&(I===null?I=[e]:I.push(e))}let O=null,R=0,P=null;function mr(e){P=e}let ln=1,oe=0,he=oe;function bt(e){he=e}function an(){return++ln}function Ce(e){var t=e.f;if((t&N)!==0)return!0;if(t&m&&(e.f&=~de),(t&ee)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Ce(i)&&Yt(i),i.wv>e.wv)return!0}(t&L)!==0&&M===null&&E(e,T)}return!1}function un(e,t,n=!0){var r=e.reactions;if(r!==null&&!(I!==null&&Ee.call(I,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&m)!==0?un(i,t,!1):t===i&&(n?E(i,N):(i.f&T)!==0&&E(i,ee),z(i))}}function on(e){var t=O,n=R,r=P,s=_,i=I,f=k,l=F,a=he,u=e.f;O=null,R=0,P=null,_=(u&(Q|le))===0?e:null,I=null,be(e.ctx),F=!1,he=++oe,e.ac!==null&&(Je(()=>{e.ac.abort(pe)}),e.ac=null);try{e.f|=Qe;var h=e.fn,c=h(),o=e.deps;if(O!==null){var d;if(qe(e,R),o!==null&&R>0)for(o.length=R+O.length,d=0;d<O.length;d++)o[R+d]=O[d];else e.deps=o=O;if(ct()&&(e.f&L)!==0)for(d=R;d<o.length;d++)(o[d].reactions??=[]).push(e)}else o!==null&&R<o.length&&(qe(e,R),o.length=R);if(It()&&P!==null&&!F&&o!==null&&(e.f&(m|ee|N))===0)for(d=0;d<P.length;d++)un(P[d],e);if(s!==null&&s!==e){if(oe++,s.deps!==null)for(let p=0;p<n;p+=1)s.deps[p].rv=oe;if(t!==null)for(const p of t)p.rv=oe;P!==null&&(r===null?r=P:r.push(...P))}return(e.f&re)!==0&&(e.f^=re),c}catch(p){return Dt(p)}finally{e.f^=Qe,O=t,R=n,P=r,_=s,I=i,be(f),F=l,he=a}}function Tr(e,t){let n=t.reactions;if(n!==null){var r=Nn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(O===null||!Ee.call(O,t))){var i=t;(i.f&L)!==0&&(i.f^=L,i.f&=~de),ut(i),qt(i),qe(i,0)}}function qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Tr(e,n[r])}function Ne(e){var t=e.f;if((t&K)===0){E(e,T);var n=v,r=Me;v=e,Me=!0;try{(t&(Z|ft))!==0?Er(e):tn(e),en(e);var s=on(e);e.teardown=typeof s=="function"?s:null,e.wv=ln;var i;Ze&&zn&&(e.f&N)!==0&&e.deps}finally{Me=r,v=n}}}async function $s(){await Promise.resolve(),jt()}function x(e){var t=e.f,n=(t&m)!==0;if(_!==null&&!F){var r=v!==null&&(v.f&K)!==0;if(!r&&(I===null||!Ee.call(I,e))){var s=_.deps;if((_.f&Qe)!==0)e.rv<oe&&(e.rv=oe,O===null&&s!==null&&s[R]===e?R++:O===null?O=[e]:O.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:Ee.call(i,_)||i.push(_)}}}if(fe&&ie.has(e))return ie.get(e);if(n){var f=e;if(fe){var l=f.v;return((f.f&T)===0&&f.reactions!==null||hn(f))&&(l=ot(f)),ie.set(f,l),l}var a=(f.f&L)===0&&!F&&_!==null&&(Me||(_.f&L)!==0),u=f.deps===null;Ce(f)&&(a&&(f.f|=L),Yt(f)),a&&!u&&cn(f)}if(M?.has(e))return M.get(e);if((e.f&re)!==0)throw e.v;return e.v}function cn(e){if(e.deps!==null){e.f|=L;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&L)===0&&cn(t)}}function hn(e){if(e.v===y)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ie.has(t)||(t.f&m)!==0&&hn(t))return!0;return!1}function dn(e){var t=F;try{return F=!0,e()}finally{F=t}}const _n=new Set,st=new Set;function Ar(e,t,n,r={}){function s(i){if(r.capture||me.call(t,i),!i.cancelBubble)return Je(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?se(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function ws(e,t,n,r,s){var i={capture:r,passive:s},f=Ar(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xt(()=>{t.removeEventListener(e,f,i)})}function Es(e){for(var t=0;t<e.length;t++)_n.add(e[t]);for(var n of st)n(e)}let yt=null;function me(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;yt=e;var f=0,l=yt===e&&e.__root;if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(f=a)}if(i=s[f]||e.target,i!==t){Be(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=_,c=v;D(null),U(null);try{for(var o,d=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var b=i["__"+r];b!=null&&(!i.disabled||e.target===i)&&b.call(i,e)}catch(A){o?d.push(A):o=A}if(e.cancelBubble||p===t||p===null)break;i=p}if(o){for(let A of d)queueMicrotask(()=>{throw A});throw o}}finally{e.__root=t,delete e.currentTarget,D(h),U(c)}}}function vn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Y(e,t){var n=v;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function bs(e,t){var n=(t&Tn)!==0,r=(t&An)!==0,s,i=!e.startsWith("<!>");return()=>{if($)return Y(g,null),g;s===void 0&&(s=vn(i?e:"<!>"+e),n||(s=X(s)));var f=r||Kt?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=X(f),a=f.lastChild;Y(l,a)}else Y(f,f);return f}}function Sr(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if($)return Y(g,null),g;if(!i){var f=vn(s),l=X(f);i=X(l)}var a=i.cloneNode(!0);return Y(a,a),a}}function ys(e,t){return Sr(e,t,"svg")}function ms(e=""){if(!$){var t=J(e+"");return Y(t,t),t}var n=g;return n.nodeType!==Ge&&(n.before(n=J()),B(n)),Y(n,n),n}function Ts(){if($)return Y(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=J();return e.append(t,n),Y(t,n),e}function Nr(e,t){if($){var n=v;((n.f&Ue)===0||n.nodes.end===null)&&(n.nodes.end=g),xt();return}e!==null&&e.before(t)}function As(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Or=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ss(e){return Or.includes(e)}const Rr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ns(e){return e=e.toLowerCase(),Rr[e]??e}const Cr=["touchstart","touchmove"];function xr(e){return Cr.includes(e)}const Pr=["textarea","script","style","title"];function Os(e){return Pr.includes(e)}function Rs(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function pn(e,t){return gn(e,t)}function Lr(e,t){rt(),t.intro=t.intro??!1;const n=t.target,r=$,s=g;try{for(var i=X(n);i&&(i.nodeType!==Oe||i.data!==At);)i=te(i);if(!i)throw we;Le(!0),B(i);const f=gn(e,{...t,anchor:i});return Le(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==we&&console.warn("Failed to hydrate: ",f),t.recover===!1&&jn(),rt(),Jt(n),Le(!1),pn(e,t)}finally{Le(r),B(s)}}const ve=new Map;function gn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){rt();var l=new Set,a=c=>{for(var o=0;o<c.length;o++){var d=c[o];if(!l.has(d)){l.add(d);var p=xr(d);t.addEventListener(d,me,{passive:p});var b=ve.get(d);b===void 0?(document.addEventListener(d,me,{passive:p}),ve.set(d,1)):ve.set(d,b+1)}}};a(On(_n)),st.add(a);var u=void 0,h=pr(()=>{var c=n??t.appendChild(J());return rr(c,{pending:()=>{}},o=>{if(i){Jn({});var d=k;d.c=i}if(s&&(r.$$events=s),$&&Y(o,null),u=e(o,r)||{},$&&(v.nodes.end=g,g===null||g.nodeType!==Oe||g.data!==Nt))throw Ke(),we;i&&Xn()}),()=>{for(var o of l){t.removeEventListener(o,me);var d=ve.get(o);--d===0?(document.removeEventListener(o,me),ve.delete(o)):ve.set(o,d)}st.delete(a),c!==n&&c.parentNode?.removeChild(c)}});return it.set(u,h),u}let it=new WeakMap;function Ir(e,t){const n=it.get(e);return n?(it.delete(e),n(t)):Promise.resolve()}function Cs(e,t){gr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function $n(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=$n(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kr(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=$n(e))&&(r&&(r+=" "),r+=t);return r}function xs(e){return typeof e=="object"?kr(e):e??""}const mt=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Dr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var s in n)if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,f=0;(f=r.indexOf(s,f))>=0;){var l=f+i;(f===0||mt.includes(r[f-1]))&&(l===r.length||mt.includes(r[l]))?r=(f===0?"":r.substring(0,f))+r.substring(l+1):f=l}}return r===""?null:r}function Tt(e,t=!1){var n=t?" !important;":";",r="";for(var s in e){var i=e[s];i!=null&&i!==""&&(r+=" "+s+": "+i+n)}return r}function Xe(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ps(e,t){if(t){var n="",r,s;if(Array.isArray(t)?(r=t[0],s=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,f=0,l=!1,a=[];r&&a.push(...Object.keys(r).map(Xe)),s&&a.push(...Object.keys(s).map(Xe));var u=0,h=-1;const b=e.length;for(var c=0;c<b;c++){var o=e[c];if(l?o==="/"&&e[c-1]==="*"&&(l=!1):i?i===o&&(i=!1):o==="/"&&e[c+1]==="*"?l=!0:o==='"'||o==="'"?i=o:o==="("?f++:o===")"&&f--,!l&&i===!1&&f===0){if(o===":"&&h===-1)h=c;else if(o===";"||c===b-1){if(h!==-1){var d=Xe(e.substring(u,h).trim());if(!a.includes(d)){o!==";"&&c++;var p=e.substring(u,c).trim();n+=" "+p+";"}}u=c+1,h=-1}}}}return r&&(n+=Tt(r)),s&&(n+=Tt(s,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function Ls(e,t,n,r,s,i){var f=e.__className;if($||f!==n||f===void 0){var l=Dr(n,r,i);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=n}else if(i&&s!==i)for(var a in i){var u=!!i[a];(s==null||u!==!!s[a])&&e.classList.toggle(a,u)}return i}let ke=!1;function Mr(e){var t=ke;try{return ke=!1,[e(),ke]}finally{ke=t}}function Is(e,t=1){const n=e();return e(n+t),n}const Fr={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ks(e,t,n){return new Proxy({props:e,exclude:t},Fr)}function Ds(e,t,n,r){var s=(n&yn)!==0,i=(n&mn)!==0,f=r,l=!0,a=()=>(l&&(l=!1,f=i?dn(r):r),f),u;if(s){var h=$e in e||Ct in e;u=ce(e,t)?.set??(h&&t in e?S=>e[t]=S:void 0)}var c,o=!1;s?[c,o]=Mr(()=>e[t]):c=e[t],c===void 0&&r!==void 0&&(c=a(),u&&(Bn(),u(c)));var d;if(d=()=>{var S=e[t];return S===void 0?a():(l=!0,S)},(n&bn)===0)return d;if(u){var p=e.$$legacy;return(function(S,Pe){return arguments.length>0?((!Pe||p||o)&&u(Pe?d():S),S):d()})}var b=!1,A=((n&En)!==0?ze:ar)(()=>(b=!1,d()));s&&x(A);var xe=v;return(function(S,Pe){if(arguments.length>0){const ht=Pe?x(A):s?ge(S):S;return V(A,ht),b=!0,f!==void 0&&(f=ht),S}return fe&&b||(xe.f&K)!==0?A.v:x(A)})}function jr(e){return new Br(e)}class Br{#e;#t;constructor(t){var n=new Map,r=(i,f)=>{var l=or(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return x(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Ct?!0:(x(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return V(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#t=(t.hydrate?Lr:pn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&jt(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Be(this,i,{get(){return this.#t[i]},set(f){this.#t[i]=f},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Ir(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let wn;typeof HTMLElement=="function"&&(wn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Nr(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Hr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Fe(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=jr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vr(()=>{Qt(()=>{this.$$r=!0;for(const r of je(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Fe(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Fe(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Fe(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Hr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ms(e,t,n,r,s,i){let f=class extends wn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return je(t).map(l=>(t[l].attribute||l).toLowerCase())}};return je(t).forEach(l=>{Be(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Fe(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var h=ce(u,l)?.get;h?u[l]=a:u.$set({[l]:a})}}})}),r.forEach(l=>{Be(f.prototype,l,{get(){return this.$$c?.[l]}})}),i&&(f=i(f)),e.element=f,f}export{Jr as $,_s as A,ws as B,$ as C,xt as D,ps as E,j as F,ae as G,gr as H,Ps as I,Sn as J,ts as K,fs as L,Xt as M,ds as N,w as O,vt as P,ir as Q,zr as R,As as S,Ar as T,cs as U,Ns as V,y as W,Kr as X,xn as Y,Zr as Z,Ss as _,Cs as a,se as a0,hr as a1,Le as a2,D as a3,U as a4,_ as a5,v as a6,wr as a7,Se as a8,rs as a9,dn as aA,Qt as aB,$s as aC,yr as aD,k as aE,$e as aF,ys as aG,Gn as aH,Wr as aI,Y as aJ,es as aK,Os as aL,ms as aM,is as aN,he as aO,Ae as aP,St as aa,Kn as ab,B as ac,J as ad,Ve as ae,Xr as af,os as ag,Yr as ah,ar as ai,On as aj,Vr as ak,Gr as al,or as am,Re as an,qr as ao,gs as ap,De as aq,q as ar,Q as as,Ur as at,Jt as au,X as av,g as aw,Oe as ax,Nt as ay,te as az,Ds as b,Ms as c,ls as d,Rs as e,Nr as f,Xn as g,bs as h,ks as i,jt as j,ge as k,Ls as l,xs as m,x as n,Es as o,Jn as p,V as q,ns as r,us as s,vs as t,ne as u,ss as v,hs as w,Ts as x,as as y,Is as z};
|
|
4
4
|
//# sourceMappingURL=custom-element.js.map
|