@shohojdhara/atomix 0.2.1 → 0.2.3
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/README.md +1 -28
- package/dist/atomix.css +1500 -241
- package/dist/atomix.min.css +6 -6
- package/dist/index.d.ts +1052 -194
- package/dist/index.esm.js +12201 -6066
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5481 -2827
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/themes/boomdevs.css +1500 -301
- package/dist/themes/boomdevs.min.css +60 -8
- package/dist/themes/esrar.css +1500 -241
- package/dist/themes/esrar.min.css +6 -6
- package/dist/themes/mashroom.css +1496 -237
- package/dist/themes/mashroom.min.css +8 -8
- package/dist/themes/shaj-default.css +1451 -192
- package/dist/themes/shaj-default.min.css +6 -6
- package/package.json +66 -15
- package/src/components/Accordion/Accordion.stories.tsx +137 -0
- package/src/components/Accordion/Accordion.tsx +33 -3
- package/src/components/AtomixGlass/AtomixGlass.stories.tsx +3011 -0
- package/src/components/AtomixGlass/AtomixGlass.test.tsx +199 -0
- package/src/components/AtomixGlass/AtomixGlass.tsx +1281 -0
- package/src/components/AtomixGlass/AtomixGlassComprehensivePreview.stories.tsx +1369 -0
- package/src/components/AtomixGlass/README.md +134 -0
- package/src/components/AtomixGlass/index.ts +10 -0
- package/src/components/AtomixGlass/shader-utils.ts +140 -0
- package/src/components/AtomixGlass/utils.ts +8 -0
- package/src/components/Badge/Badge.stories.tsx +169 -0
- package/src/components/Badge/Badge.tsx +27 -2
- package/src/components/Button/Button.stories.tsx +345 -0
- package/src/components/Button/Button.tsx +35 -3
- package/src/components/Button/README.md +216 -0
- package/src/components/Callout/Callout.stories.tsx +813 -78
- package/src/components/Callout/Callout.test.tsx +368 -0
- package/src/components/Callout/Callout.tsx +26 -7
- package/src/components/Callout/README.md +409 -0
- package/src/components/Card/Card.stories.tsx +140 -0
- package/src/components/Card/Card.tsx +19 -3
- package/src/components/DatePicker/DatePicker copy.tsx +551 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +188 -0
- package/src/components/DatePicker/DatePicker.tsx +379 -332
- package/src/components/DatePicker/readme.md +110 -1
- package/src/components/DatePicker/types.ts +8 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +145 -0
- package/src/components/Dropdown/Dropdown.tsx +34 -5
- package/src/components/Footer/Footer.stories.tsx +388 -0
- package/src/components/Footer/Footer.tsx +197 -0
- package/src/components/Footer/FooterLink.tsx +72 -0
- package/src/components/Footer/FooterSection.tsx +87 -0
- package/src/components/Footer/FooterSocialLink.tsx +117 -0
- package/src/components/Footer/README.md +261 -0
- package/src/components/Footer/index.ts +13 -0
- package/src/components/Form/Checkbox.stories.tsx +101 -0
- package/src/components/Form/Checkbox.tsx +26 -2
- package/src/components/Form/Input.stories.tsx +124 -0
- package/src/components/Form/Input.tsx +36 -7
- package/src/components/Form/Radio.stories.tsx +139 -0
- package/src/components/Form/Radio.tsx +26 -2
- package/src/components/Form/Select.stories.tsx +110 -0
- package/src/components/Form/Select.tsx +26 -2
- package/src/components/Form/Textarea.stories.tsx +104 -0
- package/src/components/Form/Textarea.tsx +36 -7
- package/src/components/Hero/Hero.stories.tsx +54 -1
- package/src/components/Hero/Hero.tsx +70 -11
- package/src/components/Modal/Modal.stories.tsx +235 -0
- package/src/components/Modal/Modal.tsx +64 -35
- package/src/components/Pagination/Pagination.stories.tsx +101 -0
- package/src/components/Pagination/Pagination.tsx +25 -1
- package/src/components/Popover/Popover.stories.tsx +94 -0
- package/src/components/Popover/Popover.tsx +30 -4
- package/src/components/Rating/Rating.stories.tsx +112 -0
- package/src/components/Rating/Rating.tsx +25 -1
- package/src/components/SectionIntro/SectionIntro.tsx +9 -11
- package/src/components/Slider/Slider.stories.tsx +634 -50
- package/src/components/Slider/Slider.tsx +5 -3
- package/src/components/Steps/Steps.stories.tsx +119 -0
- package/src/components/Steps/Steps.tsx +32 -1
- package/src/components/Tab/Tab.stories.tsx +88 -0
- package/src/components/Tab/Tab.tsx +32 -1
- package/src/components/Toggle/Toggle.stories.tsx +92 -0
- package/src/components/Toggle/Toggle.tsx +32 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +131 -0
- package/src/components/Tooltip/Tooltip.tsx +43 -7
- package/src/components/VideoPlayer/VideoPlayer.stories.tsx +1002 -196
- package/src/components/VideoPlayer/VideoPlayer.tsx +161 -4
- package/src/components/index.ts +14 -0
- package/src/layouts/Grid/Grid.stories.tsx +226 -159
- package/src/lib/composables/index.ts +4 -0
- package/src/lib/composables/useAtomixGlass.ts +71 -0
- package/src/lib/composables/useButton.ts +3 -1
- package/src/lib/composables/useCallout.ts +4 -1
- package/src/lib/composables/useFooter.ts +85 -0
- package/src/lib/composables/useGlassContainer.ts +168 -0
- package/src/lib/composables/useSlider.ts +191 -4
- package/src/lib/constants/components.ts +173 -0
- package/src/lib/types/components.ts +622 -0
- package/src/lib/utils/displacement-generator.ts +86 -0
- package/src/styles/01-settings/_index.scss +1 -0
- package/src/styles/01-settings/_settings.accordion.scss +20 -19
- package/src/styles/01-settings/_settings.animations.scss +5 -5
- package/src/styles/01-settings/_settings.avatar-group.scss +1 -1
- package/src/styles/01-settings/_settings.avatar.scss +17 -18
- package/src/styles/01-settings/_settings.background.scss +10 -0
- package/src/styles/01-settings/_settings.badge.scss +1 -1
- package/src/styles/01-settings/_settings.breadcrumb.scss +8 -2
- package/src/styles/01-settings/_settings.callout.scss +7 -7
- package/src/styles/01-settings/_settings.card.scss +2 -2
- package/src/styles/01-settings/_settings.chart.scss +7 -7
- package/src/styles/01-settings/_settings.checkbox-group.scss +5 -2
- package/src/styles/01-settings/_settings.checkbox.scss +10 -4
- package/src/styles/01-settings/_settings.countdown.scss +6 -4
- package/src/styles/01-settings/_settings.dropdown.scss +9 -7
- package/src/styles/01-settings/_settings.edge-panel.scss +3 -2
- package/src/styles/01-settings/_settings.footer.scss +125 -0
- package/src/styles/01-settings/_settings.form-group.scss +3 -1
- package/src/styles/01-settings/_settings.form.scss +4 -2
- package/src/styles/01-settings/_settings.hero.scss +9 -7
- package/src/styles/01-settings/_settings.input.scss +9 -7
- package/src/styles/01-settings/_settings.list-group.scss +4 -2
- package/src/styles/01-settings/_settings.list.scss +4 -2
- package/src/styles/01-settings/_settings.menu.scss +10 -8
- package/src/styles/01-settings/_settings.messages.scss +19 -17
- package/src/styles/01-settings/_settings.modal.scss +6 -4
- package/src/styles/01-settings/_settings.nav.scss +6 -4
- package/src/styles/01-settings/_settings.navbar.scss +8 -5
- package/src/styles/01-settings/_settings.pagination.scss +5 -3
- package/src/styles/01-settings/_settings.popover.scss +6 -4
- package/src/styles/01-settings/_settings.rating.scss +5 -3
- package/src/styles/01-settings/_settings.river.scss +8 -6
- package/src/styles/01-settings/_settings.sectionintro.scss +8 -6
- package/src/styles/01-settings/_settings.select.scss +7 -5
- package/src/styles/01-settings/_settings.side-menu.scss +15 -13
- package/src/styles/01-settings/_settings.spacing.scss +4 -0
- package/src/styles/01-settings/_settings.steps.scss +7 -5
- package/src/styles/01-settings/_settings.tabs.scss +7 -5
- package/src/styles/01-settings/_settings.testimonials.scss +6 -4
- package/src/styles/01-settings/_settings.toggle.scss +3 -1
- package/src/styles/01-settings/_settings.tooltip.scss +5 -3
- package/src/styles/01-settings/_settings.upload.scss +22 -20
- package/src/styles/02-tools/_tools.animations.scss +19 -0
- package/src/styles/02-tools/_tools.background.scss +87 -0
- package/src/styles/02-tools/_tools.glass.scss +1 -0
- package/src/styles/02-tools/_tools.rem.scss +18 -5
- package/src/styles/02-tools/_tools.utility-api.scss +32 -26
- package/src/styles/03-generic/_generic.root.scss +15 -2
- package/src/styles/04-elements/_elements.body.scss +6 -0
- package/src/styles/06-components/_components.accordion.scss +24 -4
- package/src/styles/06-components/_components.atomix-glass.scss +0 -0
- package/src/styles/06-components/_components.avatar-group.scss +2 -1
- package/src/styles/06-components/_components.avatar.scss +2 -1
- package/src/styles/06-components/_components.badge.scss +36 -1
- package/src/styles/06-components/_components.breadcrumb.scss +2 -1
- package/src/styles/06-components/_components.button.scss +14 -3
- package/src/styles/06-components/_components.callout.scss +44 -4
- package/src/styles/06-components/_components.card.scss +21 -2
- package/src/styles/06-components/_components.chart.scss +3 -2
- package/src/styles/06-components/_components.checkbox.scss +2 -1
- package/src/styles/06-components/_components.color-mode-toggle.scss +3 -2
- package/src/styles/06-components/_components.countdown.scss +2 -1
- package/src/styles/06-components/_components.data-table.scss +7 -6
- package/src/styles/06-components/_components.datepicker.scss +20 -1
- package/src/styles/06-components/_components.dropdown.scss +11 -4
- package/src/styles/06-components/_components.edge-panel.scss +4 -3
- package/src/styles/06-components/_components.footer.scss +825 -0
- package/src/styles/06-components/_components.form-group.scss +1 -0
- package/src/styles/06-components/_components.hero.scss +4 -4
- package/src/styles/06-components/_components.image-gallery.scss +1 -0
- package/src/styles/06-components/_components.input.scss +33 -2
- package/src/styles/06-components/_components.list-group.scss +3 -2
- package/src/styles/06-components/_components.list.scss +2 -1
- package/src/styles/06-components/_components.menu.scss +5 -4
- package/src/styles/06-components/_components.messages.scss +8 -7
- package/src/styles/06-components/_components.modal.scss +3 -2
- package/src/styles/06-components/_components.nav.scss +6 -5
- package/src/styles/06-components/_components.navbar.scss +4 -3
- package/src/styles/06-components/_components.pagination.scss +2 -1
- package/src/styles/06-components/_components.photoviewer.scss +4 -3
- package/src/styles/06-components/_components.popover.scss +3 -2
- package/src/styles/06-components/_components.product-review.scss +3 -2
- package/src/styles/06-components/_components.progress.scss +3 -2
- package/src/styles/06-components/_components.river.scss +3 -2
- package/src/styles/06-components/_components.sectionintro.scss +2 -1
- package/src/styles/06-components/_components.select.scss +5 -4
- package/src/styles/06-components/_components.side-menu.scss +8 -7
- package/src/styles/06-components/_components.skeleton.scss +3 -2
- package/src/styles/06-components/_components.slider.scss +7 -6
- package/src/styles/06-components/_components.spinner.scss +1 -0
- package/src/styles/06-components/_components.steps.scss +3 -2
- package/src/styles/06-components/_components.tabs.scss +4 -3
- package/src/styles/06-components/_components.testimonials.scss +2 -1
- package/src/styles/06-components/_components.todo.scss +3 -2
- package/src/styles/06-components/_components.toggle.scss +5 -4
- package/src/styles/06-components/_components.tooltip.scss +3 -2
- package/src/styles/06-components/_components.upload.scss +4 -3
- package/src/styles/06-components/_components.video-player.scss +50 -27
- package/src/styles/06-components/_index.scss +2 -0
- package/src/styles/99-utilities/_utilities.glass-fixes.scss +48 -0
- package/dist/themes/yabai.css +0 -13711
- package/dist/themes/yabai.min.css +0 -189
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import n,{useState as i,useRef as r,useEffect as o,useId as l,Children as s,isValidElement as c,cloneElement as d,forwardRef as u,useCallback as h,useMemo as m,memo as p,useImperativeHandle as g,createContext as v}from"react";import*as _ from"@phosphor-icons/react";import{Pause as S,Play as f,SkipBack as b,SkipForward as E,SpeakerX as N,SpeakerHigh as y,Gear as C,Download as L,Share as x,ArrowsIn as A,ArrowsOut as T}from"@phosphor-icons/react";import{createPortal as O}from"react-dom";const I={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},w={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},R={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},M={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},k={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},D={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},P={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},$={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},B={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},F={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},z={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},G={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},V={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},U={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},Y={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},X={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},H={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},W={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},j={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},Z={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},K={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},q={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},Q={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},J={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},ee={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},te={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},ae={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},ne={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},ie={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},re={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},oe={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},le={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},se={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},ce={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},de={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},ue={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},he={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},me=he,pe={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},ge={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}};function ve(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},a="boolean"==typeof t.isOpen,[n,l]=i(t.defaultOpen||!1),s=a?t.isOpen:n,[c,d]=i(s?"auto":"0px"),u=r(null),h=r(null),m=()=>{if(h.current&&u.current){const e=s?`${h.current.clientHeight}px`:"0px";u.current.style.setProperty(I.CSS_VARS.PANEL_HEIGHT,e),d(e)}};o((()=>{m()}),[s]),o((()=>{const e=()=>{s&&m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]);return{state:{isOpen:s,panelHeight:c},toggle:()=>{t.disabled||(a?t.onOpenChange&&t.onOpenChange(!s):l((e=>!e)))},updatePanelHeight:m,panelRef:u,contentRef:h,generateClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`c-accordion ${s?I.CLASSES.IS_OPEN:""} ${t.disabled?I.CLASSES.IS_DISABLED:""} ${e}`.trim()},generateHeaderClassNames:()=>`c-accordion__header ${"left"===t.iconPosition?"c-accordion__header--icon-left":""}`.trim()}}const _e=a=>{let{title:n,children:i,defaultOpen:r=!1,isOpen:o,onOpenChange:s,disabled:c=!1,iconPosition:d="right",icon:u,className:h=""}=a;const m=l(),p=`accordion-header-${m}`,g=`accordion-panel-${m}`,{state:v,toggle:_,updatePanelHeight:S,panelRef:f,contentRef:b,generateClassNames:E,generateHeaderClassNames:N}=ve({defaultOpen:r,disabled:c,iconPosition:d,isOpen:o,onOpenChange:s}),y=e("i",{className:"c-accordion__icon",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("polyline",{points:"6 9 12 15 18 9"})})});return t("div",{className:E(h),children:[t("button",{id:p,className:N(),onClick:_,"aria-expanded":v.isOpen,"aria-controls":g,disabled:c,type:"button",children:[e("span",{className:"c-accordion__title",children:n}),u||y]}),e("div",{id:g,className:I.SELECTORS.PANEL.replace(".",""),ref:f,role:"region","aria-labelledby":p,children:e("div",{className:I.SELECTORS.BODY.replace(".",""),ref:b,children:i})})]})};_e.displayName="Accordion";const Se=a=>{let{height:n=24,width:i=24,color:r="currentColor",...o}=a;return t("svg",{width:i,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:r}),e("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:r})]})},fe={xs:16,sm:20,md:24,lg:32,xl:40},be=t=>{let{name:a,size:n="md",weight:i="regular",color:r,className:o="",alt:l}=t;const s=_[a];if(!s)return null;return e("span",{className:`c-icon c-icon--${n} ${o}`,"aria-hidden":!l,title:l,children:e(s,{size:"string"==typeof n?fe[n]||24:n,weight:i,color:r,"aria-label":l})})};be.displayName="Icon";const Ee=t=>{let{src:a,alt:n="Avatar",initials:r,icon:o,size:l="md",circle:s=!1,className:c="",disabled:d=!1,onClick:u}=t;const[h,m]=i(!1),p=[re.CLASSES.BASE,"md"!==l&&`c-avatar--${l}`,s&&re.CLASSES.CIRCLE,d&&"is-disabled",c].filter(Boolean).join(" ");return e("div",{className:p,onClick:u?e=>{!d&&u&&u(e)}:void 0,role:u?"button":void 0,tabIndex:u&&!d?0:void 0,"aria-disabled":d||void 0,children:a&&!h?e("img",{src:a,alt:n,className:"c-avatar__image",onError:()=>{m(!0)}}):e("span",r?{className:"c-avatar__initials",children:r}:o?{className:"c-avatar__icon",children:o}:{className:"c-avatar__icon",children:e(be,{name:"User",size:"xs"===l?"xs":"sm"===l?"sm":"md"})})})};Ee.displayName="Avatar";const Ne=a=>{let{children:n,max:i,stacked:r=!1,className:o="",moreText:l}=a;const u=[oe.CLASSES.BASE,r&&oe.CLASSES.STACKED,o].filter(Boolean).join(" "),h=s.toArray(n).filter((e=>c(e)&&e.type===Ee)),m=void 0!==i&&h.length>i,p=m?h.slice(0,i):h,g=h.length-(i||0),v=c(h[0])?h[0].props:null,_=(null==v?void 0:v.size)||"md",S=(null==v?void 0:v.circle)||!1,f=[re.CLASSES.BASE,oe.CLASSES.MORE,"md"!==_&&`c-avatar--${_}`,S&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:u,children:[p.map(((e,t)=>c(e)?d(e,{key:t,...e.props}):null)),m&&e("div",{className:f,children:l||`+${g}`})]})};function ye(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:i=t.disabled,className:r=""}=e;return`${w.BASE_CLASS} ${a?`${w.VARIANT_PREFIX}${a}`:""} ${"md"===n?"":`${w.SIZE_PREFIX}${n}`} ${i?"c-badge--disabled":""} ${r}`.trim()}}}Ne.displayName="AvatarGroup";const Ce=a=>{let{label:n,variant:i="primary",size:r="md",disabled:o=!1,icon:l,className:s=""}=a;const{generateBadgeClass:c}=ye({variant:i,size:r,disabled:o}),d=c({variant:i,size:r,disabled:o,className:s});return t("span",{className:d,"aria-disabled":o,children:[l&&e("span",{className:w.ICON_CLASS,children:l}),e("span",{children:n})]})};Ce.displayName="Badge";const Le=u(((t,a)=>{let{children:n,className:i="",type:r,...o}=t,l="o-container";return r&&(l=`o-container-${r}`),e("div",{ref:a,className:`${l} ${i}`.trim(),...o,children:n})}));Le.displayName="Container";const xe=()=>({generateBlockClass:e=>{let{spacing:t=ge.SPACING.DEFAULT,background:a="",fullWidth:n=!1,className:i=""}=e;const r=[ge.BASE_CLASS];if(t&&"none"!==t&&r.push(`${ge.SPACING_PREFIX}${t}`),a){const e=ge.CLASSES[`BG_${a.toUpperCase()}`];e&&r.push(e)}return n&&r.push(ge.CLASSES.FULL_WIDTH),i&&r.push(i),r.filter(Boolean).join(" ")}}),Ae=u(((t,a)=>{let{children:n,as:i="section",spacing:r="md",container:o={},fullWidth:l=!1,className:s="",style:c,background:d="",...u}=t;const{generateBlockClass:h}=xe(),m=h({spacing:r,background:d,fullWidth:l,className:s});return e(i,{ref:a,className:m,style:c,...u,children:l?n:e(Le,{type:o.type,className:o.className,children:n})})}));Ae.displayName="Block";const Te=n=>{let{items:i,divider:r,className:o="",ariaLabel:l="Breadcrumb",LinkComponent:s}=n;const c=[M.CLASSES.BASE,o].filter(Boolean).join(" ");return e("nav",{"aria-label":l,children:e("ol",{className:c,children:i.map(((n,r)=>{const o=r===i.length-1,l=[M.CLASSES.ITEM,n.active||o?M.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(a,{children:[n.icon&&e("span",{className:"c-breadcrumb__icon",children:n.icon}),n.label]}),d={href:n.href,className:M.CLASSES.LINK,onClick:n.onClick};return e("li",{className:l,children:n.href&&!n.active?e(s||"a",{...d,children:c}):e("span",{className:M.CLASSES.LINK,children:c})},r)}))})})};function Oe(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:i=t.disabled,rounded:r=t.rounded,iconOnly:o=!1,className:l=""}=e;return`c-btn c-btn--${a} ${"md"===n?"":`c-btn--${n}`} ${o?"c-btn--icon":""} ${r?"c-btn--rounded":""} ${i?"c-btn--disabled":""} ${l}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}Te.displayName="Breadcrumb";const Ie=u(((a,n)=>{let{label:i,children:r,onClick:o,variant:l="primary",size:s="md",disabled:c=!1,icon:d,iconOnly:u=!1,rounded:h=!1,className:m="",as:p="button",...g}=a;const{generateButtonClass:v,handleClick:_}=Oe({variant:l,size:s,disabled:c,rounded:h}),S={ref:n,className:v({variant:l,size:s,disabled:c,rounded:h,iconOnly:u,className:m}),onClick:_(o),disabled:c,"aria-disabled":c,...g};return t(p,{...S,children:[d&&e("span",{className:"c-btn__icon",children:d}),!u&&e("span",{className:"c-btn__label",children:i||r})]})}));Ie.displayName="Button";var we="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Me=function(e){try{return!!e()}catch(e){return!0}},ke=!Me((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),De=ke,Pe=Function.prototype,$e=Pe.call,Be=De&&Pe.bind.bind($e,$e),Fe=De?Be:function(e){return function(){return $e.apply(e,arguments)}},ze=Fe({}.isPrototypeOf),Ge=function(e){return e&&e.Math===Math&&e},Ve=Ge("object"==typeof globalThis&&globalThis)||Ge("object"==typeof window&&window)||Ge("object"==typeof self&&self)||Ge("object"==typeof we&&we)||Ge("object"==typeof we&&we)||function(){return this}()||Function("return this")(),Ue=ke,Ye=Function.prototype,Xe=Ye.apply,He=Ye.call,We="object"==typeof Reflect&&Reflect.apply||(Ue?He.bind(Xe):function(){return He.apply(Xe,arguments)}),je=Fe,Ze=je({}.toString),Ke=je("".slice),qe=function(e){return Ke(Ze(e),8,-1)},Qe=qe,Je=Fe,et=function(e){if("Function"===Qe(e))return Je(e)},tt="object"==typeof document&&document.all,at=void 0===tt&&void 0!==tt?function(e){return"function"==typeof e||e===tt}:function(e){return"function"==typeof e},nt={},it=!Me((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),rt=ke,ot=Function.prototype.call,lt=rt?ot.bind(ot):function(){return ot.apply(ot,arguments)},st={},ct={}.propertyIsEnumerable,dt=Object.getOwnPropertyDescriptor,ut=dt&&!ct.call({1:2},1);st.f=ut?function(e){var t=dt(this,e);return!!t&&t.enumerable}:ct;var ht,mt,pt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},gt=Me,vt=qe,_t=Object,St=Fe("".split),ft=gt((function(){return!_t("z").propertyIsEnumerable(0)}))?function(e){return"String"===vt(e)?St(e,""):_t(e)}:_t,bt=function(e){return null==e},Et=bt,Nt=TypeError,yt=function(e){if(Et(e))throw new Nt("Can't call method on "+e);return e},Ct=ft,Lt=yt,xt=function(e){return Ct(Lt(e))},At=at,Tt=function(e){return"object"==typeof e?null!==e:At(e)},Ot={},It=Ot,wt=Ve,Rt=at,Mt=function(e){return Rt(e)?e:void 0},kt=Ve.navigator,Dt=kt&&kt.userAgent,Pt=Dt?String(Dt):"",$t=Ve,Bt=Pt,Ft=$t.process,zt=$t.Deno,Gt=Ft&&Ft.versions||zt&&zt.version,Vt=Gt&&Gt.v8;Vt&&(mt=(ht=Vt.split("."))[0]>0&&ht[0]<4?1:+(ht[0]+ht[1])),!mt&&Bt&&(!(ht=Bt.match(/Edge\/(\d+)/))||ht[1]>=74)&&(ht=Bt.match(/Chrome\/(\d+)/))&&(mt=+ht[1]);var Ut=mt,Yt=Ut,Xt=Me,Ht=Ve.String,Wt=!!Object.getOwnPropertySymbols&&!Xt((function(){var e=Symbol("symbol detection");return!Ht(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Yt&&Yt<41})),jt=Wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zt=function(e,t){return arguments.length<2?Mt(It[e])||Mt(wt[e]):It[e]&&It[e][t]||wt[e]&&wt[e][t]},Kt=at,qt=ze,Qt=Object,Jt=jt?function(e){return"symbol"==typeof e}:function(e){var t=Zt("Symbol");return Kt(t)&&qt(t.prototype,Qt(e))},ea=String,ta=at,aa=function(e){try{return ea(e)}catch(e){return"Object"}},na=TypeError,ia=function(e){if(ta(e))return e;throw new na(aa(e)+" is not a function")},ra=ia,oa=bt,la=lt,sa=at,ca=Tt,da=TypeError,ua={exports:{}},ha=Ve,ma=Object.defineProperty,pa=Ve,ga=function(e,t){try{ma(ha,e,{value:t,configurable:!0,writable:!0})}catch(a){ha[e]=t}return t},va="__core-js_shared__",_a=ua.exports=pa[va]||ga(va,{});(_a.versions||(_a.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Sa=ua.exports,fa=yt,ba=Object,Ea=function(e){return ba(fa(e))},Na=Ea,ya=Fe({}.hasOwnProperty),Ca=Object.hasOwn||function(e,t){return ya(Na(e),t)},La=Fe,xa=0,Aa=Math.random(),Ta=La(1.1.toString),Oa=function(e,t){return Sa[e]||(Sa[e]=t||{})},Ia=Ca,wa=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ta(++xa+Aa,36)},Ra=Wt,Ma=jt,ka=Ve.Symbol,Da=Oa("wks"),Pa=Ma?ka.for||ka:ka&&ka.withoutSetter||wa,$a=function(e){return Ia(Da,e)||(Da[e]=Ra&&Ia(ka,e)?ka[e]:Pa("Symbol."+e)),Da[e]},Ba=lt,Fa=Tt,za=Jt,Ga=function(e,t){var a=e[t];return oa(a)?void 0:ra(a)},Va=function(e,t){var a,n;if("string"===t&&sa(a=e.toString)&&!ca(n=la(a,e)))return n;if(sa(a=e.valueOf)&&!ca(n=la(a,e)))return n;if("string"!==t&&sa(a=e.toString)&&!ca(n=la(a,e)))return n;throw new da("Can't convert object to primitive value")},Ua=TypeError,Ya=$a("toPrimitive"),Xa=function(e,t){if(!Fa(e)||za(e))return e;var a,n=Ga(e,Ya);if(n){if(void 0===t&&(t="default"),a=Ba(n,e,t),!Fa(a)||za(a))return a;throw new Ua("Can't convert object to primitive value")}return void 0===t&&(t="number"),Va(e,t)},Ha=Jt,Wa=function(e){var t=Xa(e,"string");return Ha(t)?t:t+""},ja=Tt,Za=Ve.document,Ka=ja(Za)&&ja(Za.createElement),qa=function(e){return Ka?Za.createElement(e):{}},Qa=!it&&!Me((function(){return 7!==Object.defineProperty(qa("div"),"a",{get:function(){return 7}}).a})),Ja=it,en=lt,tn=st,an=pt,nn=xt,rn=Wa,on=Ca,ln=Qa,sn=Object.getOwnPropertyDescriptor;nt.f=Ja?sn:function(e,t){if(e=nn(e),t=rn(t),ln)try{return sn(e,t)}catch(e){}if(on(e,t))return an(!en(tn.f,e,t),e[t])};var cn=Me,dn=at,un=/#|\.prototype\./,hn=function(e,t){var a=pn[mn(e)];return a===vn||a!==gn&&(dn(t)?cn(t):!!t)},mn=hn.normalize=function(e){return String(e).replace(un,".").toLowerCase()},pn=hn.data={},gn=hn.NATIVE="N",vn=hn.POLYFILL="P",_n=hn,Sn=ia,fn=ke,bn=et(et.bind),En={},Nn=it&&Me((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),yn=Tt,Cn=String,Ln=TypeError,xn=it,An=Qa,Tn=Nn,On=function(e){if(yn(e))return e;throw new Ln(Cn(e)+" is not an object")},In=Wa,wn=TypeError,Rn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,kn="enumerable",Dn="configurable",Pn="writable";En.f=xn?Tn?function(e,t,a){if(On(e),t=In(t),On(a),"function"==typeof e&&"prototype"===t&&"value"in a&&Pn in a&&!a[Pn]){var n=Mn(e,t);n&&n[Pn]&&(e[t]=a.value,a={configurable:Dn in a?a[Dn]:n[Dn],enumerable:kn in a?a[kn]:n[kn],writable:!1})}return Rn(e,t,a)}:Rn:function(e,t,a){if(On(e),t=In(t),On(a),An)try{return Rn(e,t,a)}catch(e){}if("get"in a||"set"in a)throw new wn("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var $n=En,Bn=pt,Fn=it?function(e,t,a){return $n.f(e,t,Bn(1,a))}:function(e,t,a){return e[t]=a,e},zn=Ve,Gn=We,Vn=et,Un=at,Yn=nt.f,Xn=_n,Hn=Ot,Wn=function(e,t){return Sn(e),void 0===t?e:fn?bn(e,t):function(){return e.apply(t,arguments)}},jn=Fn,Zn=Ca,Kn=function(e){var t=function(a,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(a);case 2:return new e(a,n)}return new e(a,n,i)}return Gn(e,this,arguments)};return t.prototype=e.prototype,t},qn=function(e,t){var a,n,i,r,o,l,s,c,d,u=e.target,h=e.global,m=e.stat,p=e.proto,g=h?zn:m?zn[u]:zn[u]&&zn[u].prototype,v=h?Hn:Hn[u]||jn(Hn,u,{})[u],_=v.prototype;for(r in t)n=!(a=Xn(h?r:u+(m?".":"#")+r,e.forced))&&g&&Zn(g,r),l=v[r],n&&(s=e.dontCallGetSet?(d=Yn(g,r))&&d.value:g[r]),o=n&&s?s:t[r],(a||p||typeof l!=typeof o)&&(c=e.bind&&n?Wn(o,zn):e.wrap&&n?Kn(o):p&&Un(o)?Vn(o):o,(e.sham||o&&o.sham||l&&l.sham)&&jn(c,"sham",!0),jn(v,r,c),p&&(Zn(Hn,i=u+"Prototype")||jn(Hn,i,{}),jn(Hn[i],r,o),e.real&&_&&(a||!_[r])&&jn(_,r,o)))},Qn=Math.ceil,Jn=Math.floor,ei=Math.trunc||function(e){var t=+e;return(t>0?Jn:Qn)(t)},ti=function(e){var t=+e;return t!=t||0===t?0:ei(t)},ai=ti,ni=Math.max,ii=Math.min,ri=ti,oi=Math.min,li=function(e){var t=ri(e);return t>0?oi(t,9007199254740991):0},si=function(e){return li(e.length)},ci=xt,di=function(e,t){var a=ai(e);return a<0?ni(a+t,0):ii(a,t)},ui=si,hi=function(e){return function(t,a,n){var i=ci(t),r=ui(i);if(0===r)return!e&&-1;var o,l=di(n,r);if(e&&a!=a){for(;r>l;)if((o=i[l++])!=o)return!0}else for(;r>l;l++)if((e||l in i)&&i[l]===a)return e||l||0;return!e&&-1}},mi={includes:hi(!0),indexOf:hi(!1)}.includes;qn({target:"Array",proto:!0,forced:Me((function(){return!Array(1).includes()}))},{includes:function(e){return mi(this,e,arguments.length>1?arguments[1]:void 0)}});var pi=Ve,gi=Ot,vi=function(e,t){var a=gi[e+"Prototype"],n=a&&a[t];if(n)return n;var i=pi[e],r=i&&i.prototype;return r&&r[t]},_i=vi("Array","includes"),Si=Tt,fi=qe,bi=$a("match"),Ei=function(e){var t;return Si(e)&&(void 0!==(t=e[bi])?!!t:"RegExp"===fi(e))},Ni=TypeError,yi={};yi[$a("toStringTag")]="z";var Ci="[object z]"===String(yi),Li=at,xi=qe,Ai=$a("toStringTag"),Ti=Object,Oi="Arguments"===xi(function(){return arguments}()),Ii=Ci?xi:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(t=Ti(e),Ai))?a:Oi?xi(t):"Object"===(n=xi(t))&&Li(t.callee)?"Arguments":n},wi=String,Ri=$a("match"),Mi=qn,ki=function(e){if(Ei(e))throw new Ni("The method doesn't accept regular expressions");return e},Di=yt,Pi=function(e){if("Symbol"===Ii(e))throw new TypeError("Cannot convert a Symbol value to a string");return wi(e)},$i=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[Ri]=!1,"/./"[e](t)}catch(e){}}return!1},Bi=Fe("".indexOf);Mi({target:"String",proto:!0,forced:!$i("includes")},{includes:function(e){return!!~Bi(Pi(Di(this)),Pi(ki(e)),arguments.length>1?arguments[1]:void 0)}});var Fi=vi("String","includes"),zi=ze,Gi=_i,Vi=Fi,Ui=Array.prototype,Yi=String.prototype,Xi=Re((function(e){var t=e.includes;return e===Ui||zi(Ui,e)&&t===Ui.includes?Gi:"string"==typeof e||e===Yi||zi(Yi,e)&&t===Yi.includes?Vi:t}));const Hi=a=>{let{title:n,children:i,icon:r,variant:o="primary",onClose:l,actions:s,oneLine:c=!1,toast:d=!1,className:u,...h}=a;const{generateCalloutClass:m,handleClose:p}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:a=t.variant,oneLine:n=t.oneLine,toast:i=t.toast,className:r=""}=e;return`c-callout ${a?`c-callout--${a}`:""} ${n?"c-callout--oneline":""} ${i?"c-callout--toast":""} ${r}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:o,oneLine:c,toast:d,className:u});return t("div",{className:m({variant:o,oneLine:c,toast:d,className:u}),...(()=>{var e,t;const a={role:"region"};return d?(a.role="alert",a["aria-live"]="polite"):Xi(e=["warning","error"]).call(e,o)?(a.role="alert",a["aria-live"]="assertive"):Xi(t=["info","success"]).call(t,o)&&(a.role="status",a["aria-live"]="polite"),a})(),...h,children:[t("div",{className:"c-callout__content",children:[r&&e("div",{className:"c-callout__icon",children:r}),t("div",{className:"c-callout__message",children:[n&&e("div",{className:"c-callout__title",children:n}),i&&e("div",{className:"c-callout__text",children:i})]})]}),s&&e("div",{className:"c-callout__actions",children:s}),l&&e("button",{className:"c-callout__close-btn",onClick:p(l),"aria-label":"Close",children:e(be,{name:"X",size:"md"})})]})};Hi.displayName="Callout";const Wi=u(((a,n)=>{let{header:i,image:r,imageAlt:o="",title:l,text:s,actions:c,icon:d,footer:u,row:h=!1,flat:m=!1,active:p=!1,className:g="",children:v,onClick:_,...S}=a;const f=[ae.CLASSES.BASE,h?ae.CLASSES.ROW:"",m?ae.CLASSES.FLAT:"",p?ae.CLASSES.ACTIVE:"",g].filter(Boolean).join(" ");return t("div",{ref:n,className:f,onClick:_,...S,children:[(r||d||i)&&t("div",{className:ae.SELECTORS.HEADER.substring(1),children:[i,r&&e("img",{src:r,alt:o,className:ae.SELECTORS.IMAGE.substring(1)}),d&&e("div",{className:ae.SELECTORS.ICON.substring(1),children:d})]}),t("div",{className:ae.SELECTORS.BODY.substring(1),children:[l&&e("h3",{className:ae.SELECTORS.TITLE.substring(1),children:l}),s&&e("p",{className:ae.SELECTORS.TEXT.substring(1),children:s}),v]}),c&&e("div",{className:ae.SELECTORS.ACTIONS.substring(1),children:c}),u&&e("div",{className:ae.SELECTORS.FOOTER.substring(1),children:u})]})}));Wi.displayName="Card";var ji=ia,Zi=Ea,Ki=ft,qi=si,Qi=TypeError,Ji="Reduce of empty array with no initial value",er=function(e){return function(t,a,n,i){var r=Zi(t),o=Ki(r),l=qi(r);if(ji(a),0===l&&n<2)throw new Qi(Ji);var s=e?l-1:0,c=e?-1:1;if(n<2)for(;;){if(s in o){i=o[s],s+=c;break}if(s+=c,e?s<0:l<=s)throw new Qi(Ji)}for(;e?s>=0:l>s;s+=c)s in o&&(i=a(i,o[s],s,r));return i}},tr={left:er(!1),right:er(!0)},ar=Me,nr=Ve,ir=Pt,rr=qe,or=function(e){return ir.slice(0,e.length)===e},lr=or("Bun/")?"BUN":or("Cloudflare-Workers")?"CLOUDFLARE":or("Deno/")?"DENO":or("Node.js/")?"NODE":nr.Bun&&"string"==typeof Bun.version?"BUN":nr.Deno&&"object"==typeof Deno.version?"DENO":"process"===rr(nr.process)?"NODE":nr.window&&nr.document?"BROWSER":"REST",sr=tr.left,cr=function(e,t){var a=[][e];return!!a&&ar((function(){a.call(null,t||function(){return 1},1)}))};qn({target:"Array",proto:!0,forced:!("NODE"===lr)&&Ut>79&&Ut<83||!cr("reduce")},{reduce:function(e){var t=arguments.length;return sr(this,e,t,t>1?arguments[1]:void 0)}});var dr=vi("Array","reduce"),ur=ze,hr=dr,mr=Array.prototype,pr=Re((function(e){var t=e.reduce;return e===mr||ur(mr,e)&&t===mr.reduce?hr:t}));function gr(e){const[t,a]=i({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),n={type:"line",size:"md",variant:"primary",loading:!1,interactive:!0,...e},l=r(null),s=r(null),c=r(null),d=h((e=>{const{type:t=n.type,size:a=n.size,variant:i=n.variant,loading:r=n.loading,error:o,className:l=""}=e,s=t?`${pe.TYPE_PREFIX}${t}`:"",c="md"===a?"":`${pe.SIZE_PREFIX}${a}`,d=i?`${pe.VARIANT_PREFIX}${i}`:"",u=r?pe.LOADING_STATE_CLASS:"",h=o?pe.ERROR_STATE_CLASS:"";return`${pe.BASE_CLASS} ${s} ${d} ${c} ${u} ${h} ${l}`.trim()}),[n]),u=h((e=>{const{loading:t,error:a,type:n}=e,i={role:"img","aria-live":"polite"};return t&&(i["aria-busy"]="true"),a&&(i["aria-invalid"]="true"),n&&(i["data-chart-type"]=n),i}),[]),m=h((function(e){var a,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe.DEFAULT_WIDTH,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pe.DEFAULT_HEIGHT,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{top:20,right:30,bottom:40,left:50},l=arguments.length>4?arguments[4]:void 0;if(!e.length)return null;const s=i-o.left-o.right,c=r-o.top-o.bottom,d=e.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>"number"==typeof e.value?e.value:0)))||[]}));if(0===d.length)return null;const u=(null==l||null===(a=l.yAxis)||void 0===a?void 0:a.min)??Math.min(0,...d),h=(null==l||null===(n=l.yAxis)||void 0===n?void 0:n.max)??Math.max(...d,1),m=h-u;return{xScale:(a,n)=>{var i;const r=n||(null===(i=e[0])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||1;if(r<=1)return o.left+s/2;return(o.left+a/(r-1)*s)*t.zoomLevel+t.panOffset.x},yScale:e=>{if(0===m)return o.top+c/2;return(o.top+c-(e-u)/m*c)*t.zoomLevel+t.panOffset.y},minValue:u,maxValue:h,valueRange:m,innerWidth:s,innerHeight:c,width:i,height:r,padding:o}}),[t.zoomLevel,t.panOffset]),p=h((e=>{const t=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"];return Array.from({length:e},((e,a)=>t[a%t.length]))}),[]),g=h(((e,t,n,i,r,o)=>{a((a=>({...a,hoveredPoint:{datasetIndex:e,pointIndex:t,x:n,y:i,clientX:r,clientY:o},focusedPointIndex:t})))}),[]),v=h((()=>{a((e=>({...e,hoveredPoint:null})))}),[]),_=h((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a((a=>{const i={datasetIndex:e,pointIndex:t},r=a.selectedPoints.findIndex((a=>a.datasetIndex===e&&a.pointIndex===t));let o;return o=r>=0?a.selectedPoints.filter(((e,t)=>t!==r)):n?[...a.selectedPoints,i]:[i],{...a,selectedPoints:o}}))}),[]),S=h(((e,t,n)=>{a((a=>{const i=1-.001*e,r=Math.max(.1,Math.min(10,a.zoomLevel*i)),o=r/a.zoomLevel,l={x:t-(t-a.panOffset.x)*o,y:n?n-(n-a.panOffset.y)*o:a.panOffset.y};return{...a,zoomLevel:r,panOffset:l}}))}),[]),f=h(((e,t)=>{a((a=>({...a,panOffset:{x:a.panOffset.x+e,y:a.panOffset.y+t}})))}),[]),b=h(((e,t)=>{a((a=>({...a,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),E=h((()=>{a((e=>({...e,isDragging:!1,dragStart:null})))}),[]),N=h(((e,t)=>{a((a=>({...a,crosshair:{x:e,y:t}})))}),[]),y=h((()=>{a((e=>({...e,crosshair:null})))}),[]),C=h((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{const n={...a,touchState:{...a.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]){const a=e.target.getBoundingClientRect(),i=t[0].x-a.left,r=t[0].y-a.top;return{...n,isDragging:!0,dragStart:{x:i,y:r}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return n}))}),[]),L=h((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{const n=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&a.isDragging&&a.dragStart){const e=t[0].x-n.left,i=t[0].y-n.top,r=e-a.dragStart.x,o=i-a.dragStart.y;return{...a,panOffset:{x:a.panOffset.x+r,y:a.panOffset.y+o},dragStart:{x:e,y:i},touchState:{...a.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&a.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(a.touchState.lastDistance>0){const i=e/a.touchState.lastDistance,r=Math.max(.1,Math.min(10,a.zoomLevel*i)),o=(t[0].x+t[1].x)/2-n.left,l=(t[0].y+t[1].y)/2-n.top,s=r/a.zoomLevel,c={x:o-(o-a.panOffset.x)*s,y:l-(l-a.panOffset.y)*s};return{...a,zoomLevel:r,panOffset:c,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),x=h((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{if(0===t.length)return{...a,isDragging:!1,dragStart:null,touchState:{...a.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&t[0]&&a.touchState.isPinching){const n=e.target.getBoundingClientRect(),i=t[0].x-n.left,r=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:i,y:r},touchState:{...a.touchState,touches:t,isPinching:!1,lastDistance:0}}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),A=h((e=>{const t="pen"===e.pointerType,n="touch"===e.pointerType;if(t)a((t=>({...t,penState:{isPen:!0,pressure:e.pressure||0,tiltX:e.tiltX||0,tiltY:e.tiltY||0},isDragging:!0,dragStart:{x:e.clientX-e.target.getBoundingClientRect().left,y:e.clientY-e.target.getBoundingClientRect().top}})));else if(!n){const t=e.target.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;b(a,n)}}),[b]),T=h((e=>{const n=e.target.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;if("pen"===e.pointerType&&t.penState.isPen)a((t=>{if(t.isDragging&&t.dragStart){const a=i-t.dragStart.x,n=r-t.dragStart.y,o=Math.max(.1,e.pressure||.5);return{...t,panOffset:{x:t.panOffset.x+a*o,y:t.panOffset.y+n*o},dragStart:{x:i,y:r},penState:{...t.penState,pressure:e.pressure||0,tiltX:e.tiltX||0,tiltY:e.tiltY||0}}}return{...t,penState:{...t.penState,pressure:e.pressure||0,tiltX:e.tiltX||0,tiltY:e.tiltY||0}}}));else if("touch"!==e.pointerType&&(N(i,r),t.isDragging&&t.dragStart)){const e=i-t.dragStart.x,a=r-t.dragStart.y;f(e,a)}}),[t,N,f]),O=h((e=>{"pen"===e.pointerType?a((e=>({...e,isDragging:!1,dragStart:null,penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}))):"touch"!==e.pointerType&&E()}),[E]),I=h((()=>{a((e=>({...e,zoomLevel:1,panOffset:{x:0,y:0},selectedPoints:[],crosshair:null,brushSelection:null})))}),[]),w=h((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;a((e=>({...e,isAnimating:!0}))),l.current&&cancelAnimationFrame(l.current);const t=Date.now(),n=()=>{const i=Date.now()-t;Math.min(i/e,1)<1?l.current=requestAnimationFrame(n):a((e=>({...e,isAnimating:!1})))};l.current=requestAnimationFrame(n)}),[]),R=h((()=>{l.current&&(cancelAnimationFrame(l.current),l.current=null),a((e=>({...e,isAnimating:!1})))}),[]);return o((()=>()=>{l.current&&cancelAnimationFrame(l.current)}),[]),{interactionState:t,hoveredPoint:t.hoveredPoint,selectedPoints:t.selectedPoints,zoomLevel:t.zoomLevel,panOffset:t.panOffset,isAnimating:t.isAnimating,isDragging:t.isDragging,crosshair:t.crosshair,brushSelection:t.brushSelection,focusedPointIndex:t.focusedPointIndex,containerRef:s,svgRef:c,defaultProps:n,generateChartClass:d,chartAttributes:u(e||{}),calculateScales:m,getChartColors:p,handlePointHover:g,handlePointLeave:v,handlePointClick:_,handleZoom:S,handlePan:f,handleDragStart:b,handleDragEnd:E,handleCrosshair:N,clearCrosshair:y,resetView:I,handleTouchStart:C,handleTouchMove:L,handleTouchEnd:x,handlePointerDown:A,handlePointerMove:T,handlePointerUp:O,startAnimation:w,stopAnimation:R,setInteractionState:a}}const vr=p(u(((a,n)=>{let{chartType:r="line",groups:o=[],enableDefaults:l=!0,defaults:s={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:c=["png","svg","csv"],size:d="md",position:u="top",onRefresh:m,onExport:p,onFullscreen:g,onSettings:v,onZoomIn:_,onZoomOut:S,onZoomReset:f,onPanToggle:b,onReset:E,onGridToggle:N,onLegendToggle:y,onTooltipsToggle:C,onAnimationsToggle:L,state:x={},className:A="",...T}=a;const[O,I]=i(!1),[w,R]=i(!1),M=h((()=>{const e=[];return s.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:x.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),s.export&&p&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>I(!O),disabled:x.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[s,m,p,x,O]),k=h((()=>{const e=[];return!s.zoom||"interactive"!==r&&"line"!==r&&"area"!==r&&"bar"!==r||e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>null==_?void 0:_(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>null==S?void 0:S(),tooltip:"Zoom out (-)",shortcut:"-"}),!s.pan||"interactive"!==r&&"line"!==r&&"area"!==r||e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>null==b?void 0:b(!x.panEnabled),active:x.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),s.reset&&(f||E)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{null==f||f(),null==E||E()},tooltip:"Reset view (R)",shortcut:"R"}),s.fullscreen&&g&&e.push({id:"fullscreen",label:x.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:x.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>null==g?void 0:g(!x.isFullscreen),variant:"success",tooltip:(x.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[s,r,_,S,b,f,E,g,x]),D=h((()=>{const e=[];return s.settings&&v&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>R(!w),tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[s,v,w]),P=o&&o.length>0?o:[...l?M():[],...l?k():[],...l?D():[]],$=a=>t("button",{className:`${pe.ACTION_CLASS} ${a.variant?`${pe.ACTION_CLASS}--${a.variant}`:""} ${a.active?"is-active":""} u-d-inline-flex u-align-items-center u-gap-1`,onClick:()=>{a.onClick()},disabled:a.disabled,title:a.tooltip,type:"button","aria-label":a.label,children:[e(be,{name:a.icon,size:"sm"}),"lg"===d&&e("span",{className:"u-text-xs",children:a.label})]},a.id),B=`${pe.TOOLBAR_CLASS} ${pe.TOOLBAR_CLASS}--${d} ${pe.TOOLBAR_CLASS}--${u} u-d-flex u-align-items-center u-gap-2 ${A}`.trim();return e("div",{ref:n,className:B,...T,children:P.map(((a,n)=>t("div",{className:"u-d-flex u-align-items-center u-gap-1",children:[a.separator&&n>0&&e("div",{className:"u-border-start u-h-4 u-mx-1 u-opacity-25"}),a.label&&"lg"===d&&e("span",{className:"u-text-xs u-text-muted u-me-1",children:a.label}),t("div",{className:"u-d-flex u-align-items-center u-gap-1 u-position-relative",children:[a.actions.map($),a.actions.some((e=>"export"===e.id))&&(O&&p?t("div",{className:`${pe.EXPORT_DROPDOWN_CLASS} u-position-absolute u-bg-white u-border u-border-radius u-shadow u-p-2 u-z-10`,children:[e("div",{className:"u-mb-2 u-text-xs u-text-muted u-fw-medium",children:"Export Formats"}),c.map((t=>e("button",{className:`${pe.EXPORT_OPTION_CLASS} u-d-block u-w-full u-text-start u-p-1 u-border-0 u-bg-transparent u-text-decoration-none u-border-radius-sm`,onClick:()=>{p(t),I(!1)},disabled:x.isExporting,type:"button",children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(w?t("div",{className:"u-position-absolute u-bg-white u-border u-border-radius u-shadow u-p-3 u-z-10",style:{minWidth:"200px"},children:[e("div",{className:"u-mb-2 u-text-xs u-text-muted u-fw-medium",children:"Chart Settings"}),t("div",{className:"u-d-flex u-flex-column u-gap-2",children:[x.zoomLevel&&t("div",{className:"u-d-flex u-justify-between u-align-items-center",children:[e("span",{className:"u-text-sm",children:"Zoom Level"}),t("span",{className:"u-text-sm u-text-muted",children:[Math.round(100*(x.zoomLevel||1)),"%"]})]}),t("div",{className:"u-d-flex u-justify-between u-align-items-center",children:[e("span",{className:"u-text-sm",children:"Chart Type"}),e("span",{className:"u-text-sm u-text-muted u-text-capitalize",children:r})]})]})]}):null)]})]},a.id)))})})));vr.displayName="ChartToolbar";const _r=p(u(((a,n)=>{let{children:r,type:l="line",size:s="md",variant:c="primary",title:d,subtitle:u,loading:m=!1,error:p,className:g="","aria-label":v,onFullscreen:_,onExport:S,onRefresh:f,showToolbar:b=!1,enableFullscreen:E=!1,enableExport:N=!1,enableRefresh:y=!1,exportFormats:C=["png","svg","csv"],datasets:L,config:x,...A}=a;const[T,O]=i(!1),[I,w]=i(!1),{state:R,handlers:M,toolbarGroups:k}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[n,r]=i({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:l=!0,defaults:s={},exportFormats:c=["png","svg","csv"],customActions:d=[],customGroups:u=[]}=t,m={...h((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":return{...t,zoom:!0,pan:!0,reset:!0};case"line":case"area":case"bar":case"scatter":return{...t,zoom:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};case"heatmap":case"treemap":return{...t,zoom:!0,pan:!0,grid:!1};case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0,grid:!0};default:return t}}),[e])(),...s},p={onRefresh:h((()=>{var e;r((e=>({...e,isRefreshing:!0}))),null===(e=a.onRefresh)||void 0===e||e.call(a),setTimeout((()=>{r((e=>({...e,isRefreshing:!1})))}),1e3)}),[a.onRefresh]),onExport:h((async e=>{r((e=>({...e,isExporting:!0})));try{var t;await(null===(t=a.onExport)||void 0===t?void 0:t.call(a,e))}finally{r((e=>({...e,isExporting:!1})))}}),[a.onExport]),onFullscreen:h((e=>{var t;r((t=>({...t,isFullscreen:e}))),null===(t=a.onFullscreen)||void 0===t||t.call(a,e)}),[a.onFullscreen]),onZoomIn:h((()=>{var e;r((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),null===(e=a.onZoomIn)||void 0===e||e.call(a)}),[a.onZoomIn]),onZoomOut:h((()=>{var e;r((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),null===(e=a.onZoomOut)||void 0===e||e.call(a)}),[a.onZoomOut]),onZoomReset:h((()=>{var e;r((e=>({...e,zoomLevel:1}))),null===(e=a.onZoomReset)||void 0===e||e.call(a)}),[a.onZoomReset]),onPanToggle:h((e=>{var t;r((t=>({...t,panEnabled:e}))),null===(t=a.onPanToggle)||void 0===t||t.call(a,e)}),[a.onPanToggle]),onReset:h((()=>{var e;r((e=>({...e,zoomLevel:1,panEnabled:!1}))),null===(e=a.onReset)||void 0===e||e.call(a)}),[a.onReset]),onGridToggle:h((e=>{var t;r((t=>({...t,showGrid:e}))),null===(t=a.onGridToggle)||void 0===t||t.call(a,e)}),[a.onGridToggle]),onLegendToggle:h((e=>{var t;r((t=>({...t,showLegend:e}))),null===(t=a.onLegendToggle)||void 0===t||t.call(a,e)}),[a.onLegendToggle]),onTooltipsToggle:h((e=>{var t;r((t=>({...t,showTooltips:e}))),null===(t=a.onTooltipsToggle)||void 0===t||t.call(a,e)}),[a.onTooltipsToggle]),onAnimationsToggle:h((e=>{var t;r((t=>({...t,animationsEnabled:e}))),null===(t=a.onAnimationsToggle)||void 0===t||t.call(a,e)}),[a.onAnimationsToggle]),onSettings:h((()=>{}),[])},g=h((()=>{const e=[],t=[];m.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:p.onRefresh,disabled:n.isRefreshing,tooltip:"Refresh chart data"}),m.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>p.onExport("png"),disabled:n.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const a=[];m.zoom&&a.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:p.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:p.onZoomOut,tooltip:"Zoom out"}),m.pan&&a.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>p.onPanToggle(!n.panEnabled),active:n.panEnabled,tooltip:"Toggle pan mode"}),m.reset&&a.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:p.onReset,tooltip:"Reset view"}),m.fullscreen&&a.push({id:"fullscreen",label:n.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:n.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>p.onFullscreen(!n.isFullscreen),variant:"success",tooltip:(n.isFullscreen?"Exit":"Enter")+" fullscreen"}),a.length>0&&e.push({id:"view-actions",label:"View",actions:a,separator:!0});const i=[];if(m.grid&&i.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>p.onGridToggle(!n.showGrid),active:n.showGrid,tooltip:"Toggle grid"}),m.legend&&i.push({id:"legend",label:"Legend",icon:"List",onClick:()=>p.onLegendToggle(!n.showLegend),active:n.showLegend,tooltip:"Toggle legend"}),m.tooltips&&i.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>p.onTooltipsToggle(!n.showTooltips),active:n.showTooltips,tooltip:"Toggle tooltips"}),m.animations&&i.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>p.onAnimationsToggle(!n.animationsEnabled),active:n.animationsEnabled,tooltip:"Toggle animations"}),i.length>0&&e.push({id:"display-actions",label:"Display",actions:i,separator:!0}),m.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:p.onSettings,tooltip:"Chart settings"}]}),e.push(...u),d.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...d)}}else e.push({id:"custom-actions",label:"Custom",actions:d});return e}),[e,m,n,p,d,u]);return o((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":m.refresh&&(e.preventDefault(),p.onRefresh());break;case"e":m.export&&(e.preventDefault(),p.onExport("png"));break;case"f":m.fullscreen&&(e.preventDefault(),p.onFullscreen(!n.isFullscreen))}else switch(e.key){case"+":case"=":m.zoom&&(e.preventDefault(),p.onZoomIn());break;case"-":m.zoom&&(e.preventDefault(),p.onZoomOut());break;case"r":m.reset&&(e.preventDefault(),p.onReset());break;case" ":m.pan&&(e.preventDefault(),p.onPanToggle(!n.panEnabled));break;case"F11":m.fullscreen&&(e.preventDefault(),p.onFullscreen(!n.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m,n,p]),{state:n,setState:r,handlers:p,toolbarGroups:g(),config:{enableDefaults:l,defaults:m,exportFormats:c}}}(l,{enableDefaults:b,defaults:{refresh:y,export:N,fullscreen:E,zoom:!0,pan:!0,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:C},{onRefresh:f,onExport:S,onFullscreen:e=>{O(e),null==_||_(e)}}),{generateChartClass:D,chartAttributes:P}=gr({type:l,size:s,variant:c,loading:m,error:p}),$=D({type:l,size:s,variant:c,loading:m,error:p,className:g});h((()=>{M.onFullscreen(!R.isFullscreen)}),[M,R.isFullscreen]),h((async e=>{await M.onExport(e)}),[M]),h((()=>{M.onRefresh()}),[M]),o((()=>{O(R.isFullscreen),w(R.isExporting)}),[R.isFullscreen,R.isExporting]);const B=`${$}${T?` ${pe.CLASSES.FULLSCREEN}`:""}`;return t("div",{ref:n,className:B,"aria-label":v||`${l} chart`,role:"img",tabIndex:0,...P,...A,children:[(d||u||b)&&t("div",{className:`${pe.HEADER_CLASS} u-d-flex u-justify-between u-align-items-start u-gap-4`,children:[t("div",{className:`${pe.HEADER_CONTENT_CLASS} u-flex-1`,children:[d&&e("h3",{className:`${pe.TITLE_CLASS} u-mb-1`,children:d}),u&&e("p",{className:`${pe.SUBTITLE_CLASS} u-mb-0`,children:u})]}),b?e(vr,{chartType:l,groups:k,enableDefaults:0===k.length,exportFormats:C,state:{isFullscreen:R.isFullscreen,isExporting:R.isExporting,isRefreshing:R.isRefreshing,zoomLevel:R.zoomLevel,panEnabled:R.panEnabled,showGrid:R.showGrid,showLegend:R.showLegend,showTooltips:R.showTooltips,animationsEnabled:R.animationsEnabled},onRefresh:M.onRefresh,onExport:M.onExport,onFullscreen:M.onFullscreen,onZoomIn:M.onZoomIn,onZoomOut:M.onZoomOut,onZoomReset:M.onZoomReset,onPanToggle:M.onPanToggle,onReset:M.onReset,onSettings:M.onSettings,onGridToggle:M.onGridToggle,onLegendToggle:M.onLegendToggle,onTooltipsToggle:M.onTooltipsToggle,onAnimationsToggle:M.onAnimationsToggle}):null]}),t("div",{className:pe.CONTENT_CLASS,children:[m&&t("div",{className:pe.LOADING_CLASS,children:[e("div",{className:pe.LOADING_SPINNER_CLASS}),e("span",{className:pe.LOADING_TEXT_CLASS,children:R.isExporting?"Exporting chart...":R.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:pe.ERROR_CLASS,children:[e("div",{className:pe.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:pe.ERROR_CONTENT_CLASS,children:[e("div",{className:pe.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:pe.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!r&&t("div",{className:pe.EMPTY_CLASS,children:[e("div",{className:pe.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:pe.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:pe.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&r&&e("div",{className:pe.CANVAS_CLASS,children:r})]})]})})));_r.displayName="Chart";const Sr=p(u(((a,n)=>{let{datasets:r=[],config:l={},advancedOptions:s={chartType:"line",realTime:!1,updateInterval:1e3,advancedTooltips:!0,enableSelection:!1,maxSelections:5,showTrendLines:!1,showMovingAverages:!1,movingAveragePeriod:7,enableExport:!1,exportFormats:["png","svg"],showDataTable:!1,enableAnnotations:!1,annotations:[]},onDataPointClick:c,...d}=a;const[u,p]=i(new Set),[g,v]=i(r),[_,S]=i(null);o((()=>{if(!s.realTime)return;const e=setInterval((()=>{v((e=>e.map((e=>({...e,data:e.data.map((e=>({...e,value:e.value+10*(Math.random()-.5)})))})))))}),s.updateInterval);return()=>clearInterval(e)}),[s.realTime,s.updateInterval]);const f=h(((e,t)=>{const a=[];for(let i=t-1;i<e.length;i++){var n;const r=pr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t.value),0)/t,o=e[i];o&&a.push({label:o.label,value:r,color:"rgba(255, 255, 255, 0.5)"})}return a}),[]),b=h(((e,t)=>{if(!s.enableSelection)return;const a=`${e}-${t}`,n=new Set(u);if(n.has(a))n.delete(a);else{if(n.size>=(s.maxSelections||5)){const e=n.values().next().value;e&&n.delete(e)}n.add(a)}p(n)}),[u,s.enableSelection,s.maxSelections]),E=h((e=>{if(!s.enableExport)return;const t=document.querySelector(".c-chart__canvas svg");if(t)switch(e){case"png":const e=(new XMLSerializer).serializeToString(t),a=document.createElement("canvas"),n=a.getContext("2d"),i=new Image;i.onload=()=>{a.width=i.width,a.height=i.height,null==n||n.drawImage(i,0,0);const e=document.createElement("a");e.download="chart.png",e.href=a.toDataURL(),e.click()},i.src="data:image/svg+xml;base64,"+btoa(e);break;case"svg":const o=new Blob([t.outerHTML],{type:"image/svg+xml"}),l=URL.createObjectURL(o),s=document.createElement("a");s.href=l,s.download="chart.svg",s.click();break;case"csv":const c=r.map((e=>e.data.map((e=>`${e.label},${e.value}`)).join("\n"))).join("\n"),d=new Blob([c],{type:"text/csv"}),u=URL.createObjectURL(d),h=document.createElement("a");h.href=u,h.download="chart-data.csv",h.click()}}),[r,s.enableExport]),N=m((()=>{var a,n,i,r;if(!g.length)return null;const o=20,d=30,h=50,m=800-h-d,p=400-o-40,v=g.flatMap((e=>e.data.map((e=>e.value)))),E=(null===(a=l.yAxis)||void 0===a?void 0:a.min)??Math.min(0,...v),N=(null===(n=l.yAxis)||void 0===n?void 0:n.max)??Math.max(...v),y=e=>{var t;const a=g[0];return null!=a&&null!==(t=a.data)&&void 0!==t&&t.length?h+e/(a.data.length-1)*m:h},C=e=>o+p-(e-E)/(N-E)*p,L=g.map(((t,a)=>{const n=t.color||`var(--atomix-color-${a+1})`,i=[];if("line"===s.chartType||"area"===s.chartType){const r=t.data.map(((e,t)=>({x:y(t),y:C(e.value)}))).map(((e,t)=>0===t?`M ${e.x},${e.y}`:`L ${e.x},${e.y}`)).join(" ");"area"===s.chartType&&i.push(e("path",{d:`${r} L ${y(t.data.length-1)},${C(E)} L ${y(0)},${C(E)} Z`,fill:n,opacity:.2},`area-${a}`)),i.push(e("path",{d:r,stroke:n,fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},`line-${a}`))}if(t.data.forEach(((t,r)=>{const o=y(r),l=C(t.value),s=`${a}-${r}`,d=u.has(s),h=(null==_?void 0:_.datasetIndex)===a&&(null==_?void 0:_.pointIndex)===r;i.push(e("circle",{cx:o,cy:l,r:d?6:h?5:4,fill:d?"var(--atomix-primary-500)":n,stroke:"#ffffff",strokeWidth:d?3:2,className:pe.DATA_POINT_CLASS,onClick:()=>{b(a,r),null==c||c(t,a,r)},onMouseEnter:()=>S({datasetIndex:a,pointIndex:r,x:o,y:l,value:t.value,label:t.label}),onMouseLeave:()=>S(null),style:{cursor:"pointer",transition:"r 0.2s ease-in-out, fill 0.2s ease-in-out"}},`point-${a}-${r}`))})),s.showMovingAverages){const r=f(t.data,s.movingAveragePeriod||7).map(((e,t)=>({x:y(t+(s.movingAveragePeriod||7)-1),y:C(e.value)}))).map(((e,t)=>0===t?`M ${e.x},${e.y}`:`L ${e.x},${e.y}`)).join(" ");i.push(e("path",{d:r,stroke:n,fill:"none",strokeWidth:1,strokeDasharray:"5,5",opacity:.7},`moving-avg-${a}`))}return i})),x=(null===(i=s.annotations)||void 0===i?void 0:i.map(((a,n)=>t("g",{children:[e("circle",{cx:y(a.x),cy:C(a.y),r:4,fill:a.color||"#ef4444",stroke:"#ffffff",strokeWidth:2}),e("text",{x:y(a.x)+10,y:C(a.y)-10,fill:"#111827",fontSize:"12",fontWeight:"bold",children:a.label})]},`annotation-${n}`))))||[];return t("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",preserveAspectRatio:"xMidYMid meet",children:[e("g",{className:pe.GRID_CLASS,children:Array.from({length:5}).map(((t,a)=>{const n=E+(N-E)*a/4;return e("line",{x1:h,y1:C(n),x2:800-d,y2:C(n),stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"4,4",opacity:.3},`grid-${a}`)}))}),L.flat(),x,e("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--x`,children:null===(r=g[0])||void 0===r||null===(r=r.data)||void 0===r?void 0:r.map(((t,a)=>e("text",{x:y(a),y:390,textAnchor:"middle",fontSize:"12",fill:"#374151",children:t.label},`x-label-${a}`)))}),e("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--y`,children:Array.from({length:5}).map(((t,a)=>{const n=E+(N-E)*a/4;return e("text",{x:h-10,y:C(n),textAnchor:"end",dominantBaseline:"middle",fontSize:"12",fill:"#374151",children:n.toFixed(n%1==0?0:1)},`y-label-${a}`)}))})]})}),[g,l,s,u,_,f,b,c]),y=m((()=>{var a;return s.advancedTooltips&&_?t("div",{className:"advanced-tooltip",style:{position:"absolute",left:_.x+10,top:_.y-10,background:"var(--atomix-surface)",border:"1px solid #e5e7eb",borderRadius:"var(--radius-md)",padding:"0.5rem",fontSize:"var(--font-size-sm)",boxShadow:"var(--shadow-lg)",zIndex:1e3,pointerEvents:"none"},children:[e("div",{style:{fontWeight:"bold",marginBottom:"var(--space-1)"},children:_.label}),t("div",{children:["Value: ",_.value]}),t("div",{children:["Dataset: ",null===(a=g[_.datasetIndex])||void 0===a?void 0:a.label]})]}):null}),[_,s.advancedTooltips,g]),C=m((()=>{var a;return s.enableExport?e("div",{className:"chart-export-controls",style:{marginTop:"var(--space-3)"},children:e("div",{style:{display:"flex",gap:"0.5rem"},children:null===(a=s.exportFormats)||void 0===a?void 0:a.map((e=>t("button",{onClick:()=>E(e),style:{padding:"var(--space-1) 0.5rem",background:"var(--atomix-surface)",border:"1px solid #e5e7eb",borderRadius:"var(--radius-sm)",fontSize:"var(--font-size-sm)",cursor:"pointer"},children:["Export ",e.toUpperCase()]},e)))})}):null}),[s.enableExport,s.exportFormats,E]),L=m((()=>{var a;return s.showDataTable&&g.length?e("div",{className:"chart-data-table",style:{marginTop:"var(--space-3)"},children:t("table",{style:{width:"100%",borderCollapse:"collapse"},children:[e("thead",{children:t("tr",{children:[e("th",{style:{padding:"0.5rem",textAlign:"left",borderBottom:"1px solid #e5e7eb"},children:"Label"}),g.map(((t,a)=>e("th",{style:{padding:"0.5rem",textAlign:"left",borderBottom:"1px solid #e5e7eb"},children:t.label},a)))]})}),e("tbody",{children:null===(a=g[0])||void 0===a||null===(a=a.data)||void 0===a?void 0:a.map(((a,n)=>{var i;return t("tr",{children:[e("td",{style:{padding:"0.5rem",borderBottom:"1px solid #e5e7eb"},children:null===(i=g[0])||void 0===i||null===(i=i.data)||void 0===i||null===(i=i[n])||void 0===i?void 0:i.label}),g.map(((t,a)=>{var i;return e("td",{style:{padding:"0.5rem",borderBottom:"1px solid #e5e7eb"},children:null===(i=t.data[n])||void 0===i?void 0:i.value.toFixed(2)},a)}))]},n)}))})]})}):null}),[s.showDataTable,g]);return t(_r,{ref:n,type:"advanced",datasets:g,config:l,...d,children:[N,y,C,L]})})));Sr.displayName="AdvancedChart";const fr=p(u(((t,a)=>{let{datasets:n=[],config:i={},chartType:l="line",particleEffects:s,...c}=t;const d=r(null),u=r(0),m=r(0),p=r([]),g=h((e=>{var t;const a=d.current;if(!a)return;const i=a.getContext("2d");if(!i)return;const{width:r,height:o}=a,l=.02*m.current,c=i.createLinearGradient(0,0,0,o);c.addColorStop(0,"#0a0a0a"),c.addColorStop(.5,"#1a1a2e"),c.addColorStop(1,"#16213e"),i.fillStyle=c,i.fillRect(0,0,r,o);const h=(null===(t=n[0])||void 0===t?void 0:t.data)||[],v=Math.max(...h.map((e=>e.value))),_=Math.min(...h.map((e=>e.value))),S=v-_||1;if(p.current.length<((null==s?void 0:s.count)||800))for(let e=0;e<3;e++){const e=Math.floor(Math.random()*h.length),t=h[e];if(t){var f;const a=(t.value-_)/S,n=e/(h.length-1)*r,i=o-a*o*.6-.2*o;p.current.push({x:n+50*(Math.random()-.5),y:i+30*(Math.random()-.5),vx:(Math.random()-.5)*((null==s?void 0:s.speed)||2),vy:2*-Math.random()-.5,life:1,size:((null==s?void 0:s.size)||2)*(.5+.5*a),color:(null==s||null===(f=s.colors)||void 0===f?void 0:f[e%(s.colors.length||1)])||"#22c55e",dataIndex:e})}}if(p.current=p.current.filter((e=>{var t;if(e.x+=e.vx,e.y+=e.vy,e.life-=.008,e.vy+=.015,e.life<=0||e.y>o+50)return!1;const a=void 0!==e.dataIndex&&h[e.dataIndex]?((null===(t=h[e.dataIndex])||void 0===t?void 0:t.value)||0)/v:.5,n=20*Math.sin(.01*e.x+l)*a+15*Math.sin(.008*e.x+1.2*l),r=e.y+n;return i.save(),i.globalAlpha=.8*e.life,i.beginPath(),i.arc(e.x,r,e.size,0,2*Math.PI),i.fillStyle=e.color,i.fill(),i.shadowBlur=8,i.shadowColor=e.color,i.fill(),i.restore(),!0})),h.length>1){((null==s?void 0:s.colors)||["#22c55e"]).forEach(((e,t)=>{i.strokeStyle=e,i.lineWidth=2,i.globalAlpha=.6,i.beginPath(),h.forEach(((e,a)=>{const n=a/(h.length-1)*r,s=(e.value-_)/S,c=o-s*o*.6-.2*o+30*Math.sin(.008*n+l+t);0===a?i.moveTo(n,c):i.lineTo(n,c)})),i.stroke()}))}i.strokeStyle="rgba(34, 197, 94, 0.1)",i.lineWidth=1,i.globalAlpha=.2;for(let e=0;e<r;e+=60)i.beginPath(),i.moveTo(e,0),i.lineTo(e,o),i.stroke();m.current+=1,u.current=requestAnimationFrame(g)}),[s,n]);return o((()=>{const e=d.current;if(!e)return;const t=()=>{e.width=e.offsetWidth,e.height=e.offsetHeight};return t(),window.addEventListener("resize",t),g(0),()=>{window.removeEventListener("resize",t),u.current&&cancelAnimationFrame(u.current)}}),[g]),e(_r,{ref:a,type:l,datasets:n,config:i,...c,children:e("canvas",{ref:d,style:{width:"100%",height:"100%",borderRadius:"8px"}})})})));function br(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[a,n]=i(1),[r,o]=i({x:0,y:0}),[l,s]=i(null),c=h(((e,t)=>{const a=[];for(let i=t-1;i<e.length;i++){var n;const r=pr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t.value),0)/t,o=e[i];o&&a.push({label:o.label,value:r,color:"rgba(255, 255, 255, 0.5)"})}return a}),[]),d=h((e=>{const t=e.length;if(t<2)return e.map((()=>null));const a=pr(e).call(e,((e,t,a)=>e+a),0),n=pr(e).call(e,((e,t)=>e+t.value),0),i=(t*pr(e).call(e,((e,t,a)=>e+a*t.value),0)-a*n)/(t*pr(e).call(e,((e,t,a)=>e+a*a),0)-a*a),r=(n-i*a)/t;return e.map(((e,t)=>({label:e.label,value:i*t+r,color:"rgba(255, 255, 255, 0.3)"})))}),[]),u=h((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4;if(e.length<2)return"";const a=e.map(((a,n)=>{if(0===n||n===e.length-1)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const i=e[n-1],r=e[n+1];if(!i||!r)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const o=r.x-i.x,l=r.y-i.y;return{cp1x:a.x-o*t,cp1y:a.y-l*t,cp2x:a.x+o*t,cp2y:a.y+l*t}})),n=e[0];if(!n)return"";let i=`M ${n.x},${n.y}`;for(let t=1;t<e.length;t++){const n=a[t-1],r=a[t],o=e[t];n&&r&&o&&(i+=` C ${n.cp2x},${n.cp2y} ${r.cp1x},${r.cp1y} ${o.x},${o.y}`)}return i}),[]),p=h(((e,i,r)=>{if(!t.enableZoom)return;const l=e>0?.9:1.1,s=Math.max(.1,Math.min(10,a*l));n(s);const c=s/a;o((e=>({x:i-(i-e.x)*c,y:r-(r-e.y)*c})))}),[a,t.enableZoom]),g=h(((e,a)=>{t.enablePan&&o((t=>({x:t.x+e,y:t.y+a})))}),[t.enablePan]),v=h((()=>{n(1),o({x:0,y:0})}),[]),_=h(((e,t,a,n)=>{s({datasetIndex:e,pointIndex:t,x:a,y:n})}),[]),S=h((()=>{s(null)}),[]),f=m((()=>e.map((e=>{const a={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(a.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:c(e.data,t)})))),t.showTrendLines&&(a.trendLine=d(e.data)),a}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,c,d]);return{zoomLevel:a,panOffset:r,hoveredPoint:l,processedDatasets:f,handleZoom:p,handlePan:g,resetView:v,handlePointHover:_,handlePointLeave:S,calculateMovingAverage:c,calculateTrendLine:d,generateSmoothPath:u,setZoomLevel:n,setPanOffset:o,setHoveredPoint:s}}fr.displayName="AnimatedChart";const Er=p(u(((a,n)=>{let{datasets:l=[],config:s,width:c=pe.DEFAULT_WIDTH,height:d=pe.DEFAULT_HEIGHT,onDataPointClick:u,interactive:p=!0,enableRealTime:g=!1,enableAccessibility:v=!0,enablePerformanceOptimization:_=!0,renderContent:S}=a;const{calculateScales:f,getChartColors:b,interactionState:E,handlePointHover:N,handlePointLeave:y,handlePointClick:C,handleZoom:L,handlePan:x,handleDragStart:A,handleDragEnd:T,handleCrosshair:O,clearCrosshair:I,handleTouchStart:w,handleTouchMove:R,handleTouchEnd:M,handlePointerDown:k,handlePointerMove:D,handlePointerUp:P,svgRef:$}=gr({interactive:p}),{processedData:B,isProcessing:F}=function(e,t){const[a,n]=i(e),[r,l]=i(!1),{enableDecimation:s=!1,maxDataPoints:c=1e3,enableRealTime:d=!1,realTimeInterval:u=1e3}=t||{},m=h(((e,t)=>{var a;if(!s||!e.length)return e;const n=(null===(a=e[0])||void 0===a||null===(a=a.data)||void 0===a?void 0:a.length)||0;if(n<=t)return e;const i=Math.ceil(n/t);return e.map((e=>{var t;return{...e,data:(null===(t=e.data)||void 0===t?void 0:t.filter(((e,t)=>t%i==0)))||[]}}))}),[s]),p=h(((e,t)=>{const a=[];for(let i=0;i<e.length;i++)if(i<t-1)a.push(null);else{var n;const r=pr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t),0);a.push(r/t)}return a}),[]),g=h((e=>{const t=e.length;if(t<2)return e.map((()=>null));const a=pr(e).call(e,((e,t,a)=>e+a),0),n=pr(e).call(e,((e,t)=>e+t),0),i=(t*pr(e).call(e,((e,t,a)=>e+a*t),0)-a*n)/(t*pr(e).call(e,((e,t,a)=>e+a*a),0)-a*a),r=(n-i*a)/t;return e.map(((e,t)=>i*t+r))}),[]);return o((()=>{l(!0),(async()=>{let t=[...e];s&&c&&(t=m(t,c)),n(t),l(!1)})()}),[e,m,s,c]),o((()=>{if(!d)return;const e=setInterval((()=>{n((e=>[...e]))}),u);return()=>clearInterval(e)}),[d,u]),{processedData:a,isProcessing:r,decimateData:m,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:n}}(l,{enableRealTime:g,enableDecimation:_,maxDataPoints:1e3}),{announcement:z,focusedPoint:G,getAccessibleDescription:V,handleKeyDown:U}=function(e,t){const{enableKeyboardNavigation:a=!0,enableScreenReader:n=!0,announceDataChanges:r=!0}=t||{},[l,s]=i({datasetIndex:0,pointIndex:0}),[c,d]=i(""),u=h(((t,n)=>{var i;if(!a||!e.length)return;const r=e.length-1,o=((null===(i=e[l.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),s((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),s((e=>({...e,pointIndex:Math.min(o,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),s((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),s((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),s((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),s((e=>({...e,pointIndex:o})));break;case"Enter":case" ":t.preventDefault(),null==n||n(l.datasetIndex,l.pointIndex)}}),[a,e,l]),m=h((e=>{n&&(d(e),setTimeout((()=>d("")),1e3))}),[n]);o((()=>{if(!r||!e.length)return;const t=pr(e).call(e,((e,t)=>{var a;return e+((null===(a=t.data)||void 0===a?void 0:a.length)||0)}),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,r,m]);const p=h((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{var a,n;const i=(null===(a=e.data)||void 0===a?void 0:a.length)||0,r=(null===(n=e.data)||void 0===n?void 0:n.map((e=>e.value)).filter((e=>"number"==typeof e)))||[],o=Math.min(...r),l=Math.max(...r);return`Dataset ${t+1}: ${e.label}, ${i} points, range ${o} to ${l}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:l,announcement:c,handleKeyDown:u,announceData:m,getAccessibleDescription:p,setFocusedPoint:s}}(B,{enableKeyboardNavigation:v,enableScreenReader:v});!function(e,t){const{enableVirtualization:a=!1,enableMemoization:n=!0,debounceMs:l=100}=t||{},[s,c]=i(!1),d=r(null),u=m((()=>n?e.map((e=>{var t,a,n;return{label:e.label,dataLength:(null===(t=e.data)||void 0===t?void 0:t.length)||0,minValue:Math.min(...(null===(a=e.data)||void 0===a?void 0:a.map((e=>e.value)).filter((e=>"number"==typeof e)))||[0]),maxValue:Math.max(...(null===(n=e.data)||void 0===n?void 0:n.map((e=>e.value)).filter((e=>"number"==typeof e)))||[0])}})):null),[e,n]),p=h((e=>{d.current&&clearTimeout(d.current),d.current=setTimeout((()=>{e(),c(!1)}),l),c(!0)}),[l]),g=h(((t,n,i)=>{var r,o;if(!a)return{start:0,end:(null===(r=e[0])||void 0===r||null===(r=r.data)||void 0===r?void 0:r.length)||0};const l=Math.floor(t/n),s=Math.ceil(i/n),c=Math.min(l+s+1,(null===(o=e[0])||void 0===o||null===(o=o.data)||void 0===o?void 0:o.length)||0);return{start:Math.max(0,l-1),end:c}}),[a,e]);o((()=>()=>{d.current&&clearTimeout(d.current)}),[])}(B,{enableMemoization:_,debounceMs:100});const Y=h((e=>{if(!p||E.touchState.isTouch)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;if(O(a,n),E.isDragging&&E.dragStart){const e=a-E.dragStart.x,t=n-E.dragStart.y;x(e,t)}}),[p,E,O,x]),X=h((e=>{if(!p||E.touchState.isTouch)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;A(a,n)}),[p,E.touchState.isTouch,A]),H=h((()=>{p&&!E.touchState.isTouch&&T()}),[p,E.touchState.isTouch,T]),W=h((e=>{if(!p)return;e.preventDefault();const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top,i=Math.abs(e.deltaY)<50?.01:.1,r=e.deltaY*i;L(r,a,n)}),[p,L]),j=h(((e,t,a)=>{p&&(C(t,a),null==u||u(e,t,a))}),[p,C,u]),Z=m((()=>{const e=f(B,c,d,void 0,s);if(!e)return null;const t=b(B.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:B.map(((e,a)=>({...e,color:e.color||t[a]})))}}),[B,s,c,d,f,b]);return Z?t("svg",{ref:n||$,width:"100%",height:"100%",viewBox:`0 0 ${Z.scales.width} ${Z.scales.height}`,preserveAspectRatio:"xMidYMid meet",className:pe.CHART_SVG_CLASS,onMouseMove:Y,onMouseDown:X,onMouseUp:H,onMouseLeave:()=>{I(),H()},onWheel:W,onTouchStart:e=>w(e.nativeEvent),onTouchMove:e=>R(e.nativeEvent),onTouchEnd:e=>M(e.nativeEvent),onPointerDown:e=>k(e.nativeEvent),onPointerMove:e=>D(e.nativeEvent),onPointerUp:e=>P(e.nativeEvent),tabIndex:v?0:void 0,role:v?"img":void 0,"aria-label":v?V():void 0,onKeyDown:v?e=>U(e.nativeEvent,((e,t)=>{var a;const n=null===(a=B[e])||void 0===a?void 0:a.data[t];j(n,e,t)})):void 0,style:{touchAction:"none",userSelect:"none",WebkitUserSelect:"none"},children:[v&&z&&e("text",{x:"-9999",y:"-9999",className:"sr-only","aria-live":"polite",children:z}),S({...Z,interactionState:E,handlers:{onDataPointClick:j,onPointHover:N,onPointLeave:y,onMouseMove:Y,onMouseDown:X,onMouseUp:H,onWheel:W},accessibility:{announcement:z,focusedPoint:G,getAccessibleDescription:V}}),p&&E.crosshair&&t("g",{className:"chart-crosshair",style:{pointerEvents:"none"},children:[e("line",{x1:E.crosshair.x,y1:0,x2:E.crosshair.x,y2:Z.scales.height,stroke:"var(--atomix-gray-4)",strokeWidth:"1",strokeDasharray:"4,4",opacity:"0.6"}),e("line",{x1:0,y1:E.crosshair.y,x2:Z.scales.width,y2:E.crosshair.y,stroke:"var(--atomix-gray-4)",strokeWidth:"1",strokeDasharray:"4,4",opacity:"0.6"})]}),p&&1!==E.zoomLevel&&t("g",{className:"chart-zoom-indicator",children:[e("rect",{x:Z.scales.width-80,y:10,width:"70",height:"20",fill:"rgba(0, 0, 0, 0.8)",rx:"4"}),t("text",{x:Z.scales.width-45,y:24,textAnchor:"middle",fill:"white",fontSize:"12",children:[Math.round(100*E.zoomLevel),"%"]})]})]}):null})));Er.displayName="ChartRenderer";const Nr=p((n=>{let{dataPoint:l,datasetLabel:s,datasetColor:c,position:d,visible:u,customRenderer:h}=n;const m=r(null),[p,g]=i(d);return o((()=>{if(!u||!m.current)return;const e=m.current.getBoundingClientRect(),t=window.innerWidth,a=window.innerHeight;let n=d.x+8,i=d.y-e.height;n+e.width>t-16&&(n=d.x-e.width-8),i<8&&(i=d.y+8),n=Math.max(8,Math.min(n,t-e.width-8)),i=Math.max(8,Math.min(i,a-e.height-8)),g({x:n,y:i})}),[d,u]),u?e("div",{ref:m,className:"c-chart__tooltip",style:{left:p.x,top:p.y},children:h?h(l):t(a,{children:[e("div",{className:"c-chart__tooltip-title",children:l.label}),t("div",{className:"c-chart__tooltip-content",children:[s&&t("div",{className:"c-chart__tooltip-dataset",children:[e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:c}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[s,":"]}),e("span",{className:"c-chart__tooltip-value",children:l.value})]}),l.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(l.metadata).map((a=>{let[n,i]=a;return t("div",{className:"c-chart__tooltip-metadata-item",children:[t("span",{className:"c-chart__tooltip-metadata-key",children:[n,":"]}),e("span",{className:"c-chart__tooltip-metadata-value",children:String(i)})]},n)}))})]})]})}):null}));Nr.displayName="ChartTooltip";const yr=p(u(((a,n)=>{var i,r,o;let{datasets:l=[],config:s={},lineOptions:c={},onDataPointClick:d,onRealTimeUpdate:u,onZoomChange:m,onPanChange:p,onBrushSelection:g,...v}=a;const{processedDatasets:_,generateSmoothPath:S,calculateMovingAverage:f,handlePointHover:b,handlePointLeave:E,hoveredPoint:N}=br(l,c),y=h((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;return r.length?r.map(((a,r)=>{var l,s,d,u;const h=a.color||i[r],m=(null===(l=a.data)||void 0===l?void 0:l.map(((e,t)=>{var i;return{x:n.xScale(t,null===(i=a.data)||void 0===i?void 0:i.length),y:n.yScale(e.value)}})))||[],p=c.smooth?S(m):`M ${m.map((e=>`${e.x},${e.y}`)).join(" L ")}`;return t("g",{children:[c.showArea&&e("path",{d:`${p} L ${(null===(s=m[m.length-1])||void 0===s?void 0:s.x)||0},${n.yScale(0)} L ${(null===(d=m[0])||void 0===d?void 0:d.x)||0},${n.yScale(0)} Z`,fill:h,className:"c-chart__area-path"}),e("path",{d:p,stroke:h,fill:"none",className:"c-chart__line-path"}),c.showDataPoints&&(null===(u=a.data)||void 0===u?void 0:u.map(((t,i)=>{var l;const s=n.xScale(i,null===(l=a.data)||void 0===l?void 0:l.length),d=n.yScale(t.value),u=(null==N?void 0:N.datasetIndex)===r&&(null==N?void 0:N.pointIndex)===i;return e("circle",{cx:s,cy:d,r:c.pointRadius||4,fill:h,className:"c-chart__data-point "+(u?"c-chart__data-point--hovered":""),onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,t,r,i)},onMouseEnter:e=>{var t;const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect();a?a.left:e.clientX,a?a.top:e.clientY,b(r,i,s,d)},onMouseLeave:E},`point-${i}`)})))]},`dataset-${r}`)})):null}),[c,S,N,b,E]);return t(_r,{ref:n,type:"line",datasets:l,config:s,toolbarConfig:{defaults:{zoom:!0,pan:!0,reset:!0,grid:!0,tooltips:!0}},...v,children:[e(Er,{datasets:_,config:s,onDataPointClick:d,renderContent:y}),N&&(null===(i=_[N.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i[N.pointIndex])&&e(Nr,{dataPoint:_[N.datasetIndex].data[N.pointIndex],datasetLabel:null===(r=_[N.datasetIndex])||void 0===r?void 0:r.label,datasetColor:null===(o=_[N.datasetIndex])||void 0===o?void 0:o.color,position:{x:N.x,y:N.y},visible:!0})]})})));yr.displayName="LineChart";const Cr=p(u(((t,a)=>{let{areaOptions:n={},...i}=t;const r={showArea:!0,fillOpacity:.3,useGradient:!0,...n};return e(yr,{ref:a,lineOptions:r,...i})})));function Lr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[a,n]=i(null),[r,o]=i(0),[l,s]=i(!1),c=h((function(e,a,n){var i;let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{top:20,right:30,bottom:40,left:50},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e.length)return[];const l=a-r.left-r.right,s=n-r.top-r.bottom,c=(null===(i=e[0])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||0,d=e.length;if(0===c)return[];const u=e.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)).filter((e=>"number"==typeof e)))||[]})),h=Math.min(0,...u),m=Math.max(...u)-h,p=[],g=Array(c).fill(0);return e.forEach(((e,i)=>{var u;null===(u=e.data)||void 0===u||u.forEach(((e,u)=>{const v="number"==typeof e.value?e.value:0;if(isNaN(v)||!isFinite(v))return;let _,S,f,b;if(o){const e=s/c,a=e*(1-(t.groupPadding||.2));b=t.stacked?a:a/d,S=r.top+u*e+(e-a)/2,t.stacked||(S+=i*b*(1+(t.barPadding||.05))),_=r.left,f=(v-h)/m*l,t.stacked&&i>0?(_=r.left+(g[u]-h)/m*l,g[u]+=v):t.stacked&&(g[u]=v)}else{const e=l/c,a=e*(1-(t.groupPadding||.2));if(f=t.stacked?a:a/d,_=r.left+u*e+(e-a)/2,t.stacked||(_+=i*f*(1+(t.barPadding||.05))),b=(v-h)/m*s,S=n-r.bottom-b,t.stacked&&i>0){const e=(g[u]-h)/m*s;S=n-r.bottom-e-b,g[u]+=v}else t.stacked&&(g[u]=v)}if(t.minBarHeight&&(o?f:b)<t.minBarHeight&&(o?f=t.minBarHeight:(b=t.minBarHeight,S=n-r.bottom-b)),t.maxBarWidth&&(o?b:f)>t.maxBarWidth)if(o)b=t.maxBarWidth,S=r.top+u*(s/c)+(s/c-b)/2;else{f=t.maxBarWidth;const e=(a-r.left-r.right)/c;_=r.left+u*e+(e-f)/2}p.push({x:Math.max(_,0),y:Math.max(S,0),width:Math.max(f,0),height:Math.max(b,0),value:v,datasetIndex:i,pointIndex:u})}))})),p}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),d=h((()=>{if(!t.enableAnimations)return;s(!0),o(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,i=Math.min(t/e,1),r=1-Math.pow(1-i,3);o(r),i<1?requestAnimationFrame(n):s(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),u=h(((e,t,a,i)=>{n({datasetIndex:e,pointIndex:t,x:a,y:i})}),[]),m=h((()=>{n(null)}),[]),p=h((e=>t.useGradients?e.map(((e,t)=>{const a=e.color||`var(--atomix-color-${t+1})`;return{id:`bar-gradient-${t}`,stops:[{offset:"0%",color:a,opacity:.8},{offset:"100%",color:a,opacity:.4}]}})):[]),[t.useGradients]),g=h((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t.valueFormatter]),v=h((function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{x:n,y:i,width:r,height:o}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:n+r/2,y:i+o/2};case"outside":return{x:a?n+r+5:n+r/2,y:a?i+o/2:i-5}}}),[t.dataLabelPosition]);return{hoveredBar:a,animationProgress:r,isAnimating:l,calculateBarDimensions:c,generateGradients:p,getDataLabelPosition:v,handleBarHover:u,handleBarLeave:m,startAnimation:d,formatValue:g,setHoveredBar:n,setAnimationProgress:o,setIsAnimating:s}}Cr.displayName="AreaChart";const xr=p(u(((a,n)=>{var i,r,o;let{datasets:l=[],config:s={},barOptions:c={},horizontal:d=!1,onDataPointClick:u,...m}=a;const{calculateBarDimensions:p,handleBarHover:g,handleBarLeave:v,hoveredBar:_,formatValue:S}=Lr(l,c),f=h((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;if(!r.length)return null;return p(r,n.width,n.height,n.padding,d).map(((a,n)=>{var l;const s=r[a.datasetIndex],d=null===(l=s.data)||void 0===l?void 0:l[a.pointIndex],u=s.color||i[a.datasetIndex],h=(null==_?void 0:_.datasetIndex)===a.datasetIndex&&(null==_?void 0:_.pointIndex)===a.pointIndex;return t("g",{children:[e("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:u,rx:c.cornerRadius||4,className:"c-chart__bar "+(h?"c-chart__bar--hovered":""),onClick:()=>{var e;return d&&(null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,d,a.datasetIndex,a.pointIndex))},onMouseMove:e=>{var t;const n=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),i=n?n.left+a.x+a.width/2:e.clientX,r=e.clientY;g(a.datasetIndex,a.pointIndex,i,r)},onMouseLeave:v}),c.showValues&&e("text",{x:a.x+a.width/2,y:a.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:S(a.value)})]},`bar-${n}`)}))}),[p,d,c,_,g,v,S]);return t(_r,{ref:n,type:d?"horizontal-bar":"bar",datasets:l,config:s,...m,children:[e(Er,{datasets:l,config:s,onDataPointClick:u,renderContent:f}),_&&e(Nr,{dataPoint:(null===(i=l[_.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i[_.pointIndex])||{label:"",value:0},datasetLabel:null===(r=l[_.datasetIndex])||void 0===r?void 0:r.label,datasetColor:null===(o=l[_.datasetIndex])||void 0===o?void 0:o.color,position:{x:_.x,y:_.y},visible:!0})]})})));xr.displayName="BarChart";const Ar=p(u(((a,n)=>{var r,o,l,s,c,d;let{bubbleData:u=[],config:m={},bubbleOptions:p={},onDataPointClick:g,...v}=a;const{minBubbleSize:_=5,maxBubbleSize:S=50,bubbleOpacity:f=.7,showLabels:b=!0,labelPosition:E="center",enableAnimations:N=!0,animationDuration:y=1e3,showSizeLegend:C=!0,sizeLegendTitle:L="Size",colorScheme:x=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:A=!1}=p,[T,O]=i(null),I=h((a=>{let{scales:n,colors:i,handlers:r}=a;if(!u.length)return null;const o=u.map((e=>e.x)),l=u.map((e=>e.y)),s=u.map((e=>e.size)),c=Math.min(...o),d=Math.max(...o),h=Math.min(...l),m=Math.max(...l),p=Math.min(...s),g=Math.max(...s),v=60,y=n.width-120,T=n.height-120,I=e=>v+(e-c)/(d-c)*y,w=e=>v+T-(e-h)/(m-h)*T,R=e=>_+(e-p)/(g-p)*(S-_),M=u.map(((t,a)=>{const n=I(t.x),i=w(t.y),o=R(t.size);let l=t.color;if(!l)if(A){const e=Math.floor((t.size-p)/(g-p)*(x.length-1));l=x[e]}else l=x[a%x.length];const s=[];if(s.push(e("circle",{cx:n,cy:i,r:o,fill:l,className:"c-chart__bubble "+(N?"c-chart__bubble--animated":""),style:{opacity:f},onClick:()=>{var e;return null===(e=r.onDataPointClick)||void 0===e?void 0:e.call(r,t,0,a)},onMouseEnter:e=>{var t;const r=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),o=r?r.left+n:e.clientX,l=r?r.top+i:e.clientY;O({index:a,clientX:o,clientY:l})},onMouseLeave:()=>O(null)},`bubble-${a}`)),b){let r=n,l=i,c="middle",d="middle";switch(E){case"top":l=i-o-5,d="auto";break;case"bottom":l=i+o+15,d="hanging";break;case"left":r=n-o-5,c="end";break;case"right":r=n+o+5,c="start"}s.push(e("text",{x:r,y:l,textAnchor:c,dominantBaseline:d,className:"c-chart__bubble-label "+("center"===E?"c-chart__bubble-label--center":""),children:t.label},`label-${a}`))}return e("g",{children:s},`bubble-group-${a}`)})),k=[];k.push(e("line",{x1:v,y1:n.height-v,x2:n.width-v,y2:n.height-v,className:"c-chart__axis-line c-chart__axis-line--x"},"x-axis")),k.push(e("line",{x1:v,y1:v,x2:v,y2:n.height-v,className:"c-chart__axis-line c-chart__axis-line--y"},"y-axis"));for(let a=0;a<=5;a++){const i=c+a/5*(d-c),r=I(i);k.push(t("g",{children:[e("line",{x1:r,y1:n.height-v,x2:r,y2:n.height-v+5,className:"c-chart__tick-line"}),e("text",{x:r,y:n.height-v+20,textAnchor:"middle",className:"c-chart__tick-label",children:i.toFixed(1)})]},`x-tick-${a}`))}for(let a=0;a<=5;a++){const n=h+a/5*(m-h),i=w(n);k.push(t("g",{children:[e("line",{x1:55,y1:i,x2:v,y2:i,className:"c-chart__tick-line"}),e("text",{x:50,y:i,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__tick-label",children:n.toFixed(1)})]},`y-tick-${a}`))}const D=[];if(C){const a=n.width-120,i=30;D.push(t("g",{children:[e("text",{x:a,y:i,fontSize:"12",fontWeight:"bold",fill:"var(--atomix-gray-8)",children:L}),[p,(p+g)/2,g].map(((n,r)=>{const o=R(n),l=i+20+30*r;return t("g",{children:[e("circle",{cx:a+15,cy:l,r:o/2,fill:"var(--atomix-gray-5)",opacity:"0.7"}),e("text",{x:a+35,y:l,dominantBaseline:"middle",fontSize:"10",fill:"var(--atomix-gray-6)",children:n.toFixed(0)})]},`legend-${r}`)}))]},"size-legend"))}return t("g",{children:[k,M,D]})}),[u,_,S,f,b,E,N,y,C,L,x,A]),w=[{label:"Bubble Data",data:u.map((e=>({label:e.label,value:e.size,x:e.x,y:e.y})))}];return t(_r,{ref:n,type:"bubble",datasets:w,config:m,...v,children:[e(Er,{datasets:w,config:m,onDataPointClick:g,renderContent:I}),T&&u[T.index]&&e(Nr,{dataPoint:{label:(null===(r=u[T.index])||void 0===r?void 0:r.label)||"",value:(null===(o=u[T.index])||void 0===o?void 0:o.size)||0,metadata:{x:null===(l=u[T.index])||void 0===l?void 0:l.x,y:null===(s=u[T.index])||void 0===s?void 0:s.y,...null===(c=u[T.index])||void 0===c?void 0:c.metadata}},datasetLabel:"Bubble Data",datasetColor:null===(d=u[T.index])||void 0===d?void 0:d.color,position:{x:T.clientX,y:T.clientY},visible:!0})]})})));Ar.displayName="BubbleChart";const Tr=p(u(((n,r)=>{let{candlestickData:o=[],config:l={},candlestickOptions:s={bullishColor:"#4DFF9F",bearishColor:"#FF6B6B",candleWidth:.8,showVolume:!1,volumeHeightRatio:.3,showMovingAverages:!1,movingAveragePeriods:[20,50],movingAverageColors:["#FFD93D","#6BCF7F"],showTrendLines:!1,enableCrosshair:!0,showOHLCTooltip:!0,dateFormat:"short",pricePrecision:2,enableZoomPan:!1},onDataPointClick:c,...d}=n;const[u,p]=i(null),[g,v]=i(null),[_,S]=i({scale:1,translateX:0,translateY:0}),f=h(((e,t)=>{const a=[];for(let i=0;i<e.length;i++)if(i<t-1)a.push(NaN);else{var n;const r=pr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t.close),0);a.push(r/t)}return a}),[]),b=h((e=>{const t="string"==typeof e?new Date(e):e;switch(s.dateFormat){case"short":default:return t.toLocaleDateString("en-US",{month:"short",day:"numeric"});case"medium":return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"2-digit"});case"long":return t.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});case"numeric":return t.toLocaleDateString("en-US")}}),[s.dateFormat]),E=m((()=>{var n,i,r,d;if(!o.length)return null;const h=800,m=s.showVolume?500:400,S=40,E=70,N=60,y=70,C=s.showVolume?m*(1-s.volumeHeightRatio):m-S-N,L=s.showVolume?m*s.volumeHeightRatio:0,x=h-y-E,A=o.flatMap((e=>[e.open,e.high,e.low,e.close])),T=(null===(n=l.yAxis)||void 0===n?void 0:n.min)??Math.min(...A),O=(null===(i=l.yAxis)||void 0===i?void 0:i.max)??Math.max(...A),I=O!==T?O-T:1,w=o.filter((e=>e.volume)),R=s.showVolume&&w.length>0?Math.max(...w.map((e=>e.volume))):0,M=R>0?R:1,k=e=>{const t=o.length>1?o.length-1:1;return(y+e/t*x)*_.scale+_.translateX},D=e=>(S+C-(e-T)/I*C)*_.scale+_.translateY,P=e=>C+S+10+(M-e)/M*(L-20),$=Math.max(o.length,1),B=x/$*(s.candleWidth||.8),F=[];s.showVolume&&w.length>0&&(o.forEach(((t,a)=>{if(!t.volume)return;const n=k(a),i=t.close>=t.open?s.bullishColor:s.bearishColor,r=isNaN(n)?0:n,o=isNaN(B/4)?0:B/4,l=P(t.volume),c=C+S+10+L-20-l;F.push(e("rect",{x:r-o,y:isNaN(l)?0:l,width:isNaN(B/2)?0:B/2,height:isNaN(c)?0:c,fill:i,opacity:.3},`volume-${a}`))})),F.push(e("line",{x1:y,y1:C+S+5,x2:h-E,y2:C+S+5,stroke:"#e5e7eb",strokeWidth:1},"volume-separator"))),o.forEach(((a,n)=>{const i=k(n),r=D(a.open),o=D(a.high),l=D(a.low),d=D(a.close),h=a.close>=a.open,m=h?s.bullishColor:s.bearishColor,g=Math.min(r,d),v=Math.abs(d-r),_=(null==u?void 0:u.index)===n,S=isNaN(i)?0:i,f=isNaN(B/2)?0:B/2,b=isNaN(g)?0:g,E=isNaN(v)||0===v?1:Math.abs(v);F.push(t("g",{children:[e("line",{x1:isNaN(S)?0:S,y1:isNaN(o)?0:o,x2:isNaN(S)?0:S,y2:isNaN(l)?0:l,stroke:m,className:"c-chart__wick "+(_?"c-chart__wick--hovered":"")}),e("rect",{x:S-f,y:b,width:isNaN(B)?0:B,height:E,fill:m,stroke:m,className:"c-chart__candlestick "+(h?"c-chart__candlestick--bullish":"c-chart__candlestick--bearish"),onMouseEnter:e=>{var t;const i=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),r=i?i.left+S:e.clientX,o=i?i.top+b:e.clientY;p({index:n,x:r,y:o,data:a})},onMouseLeave:()=>p(null),onClick:()=>null==c?void 0:c(a,0,n)}),_&&e("rect",{x:S-f-2,y:b-2,width:isNaN(B+4)?0:B+4,height:isNaN(E+4)?5:Math.max(E+4,5),fill:"none",stroke:m,className:"c-chart__candlestick-highlight"})]},`candle-${n}`))})),s.showMovingAverages&&s.movingAveragePeriods&&s.movingAveragePeriods.forEach(((t,a)=>{var n;const i=f(o,t),r=(null===(n=s.movingAverageColors)||void 0===n?void 0:n[a])||"#FFD93D",l=i.map(((e,t)=>{if(isNaN(e))return"";const a=k(t),n=D(e);if(0===t)return`M ${isNaN(a)?0:a},${isNaN(n)?0:n}`;const r=i[t-1];return void 0!==r&&isNaN(r)?`M ${isNaN(a)?0:a},${isNaN(n)?0:n}`:`L ${isNaN(a)?0:a},${isNaN(n)?0:n}`})).join(" ");F.push(e("path",{d:l,stroke:r,fill:"none",className:"c-chart__moving-average"},`ma-${t}`))})),g&&s.enableCrosshair&&F.push(t("g",{className:"c-chart__crosshair",children:[e("line",{x1:isNaN(g.x)?0:g.x,y1:S,x2:isNaN(g.x)?0:g.x,y2:C+S,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"}),e("line",{x1:y,y1:isNaN(g.y)?0:g.y,x2:h-E,y2:isNaN(g.y)?0:g.y,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"})]},"crosshair"));const z=t("g",{className:pe.GRID_CLASS,children:[(null===(r=l.yAxis)||void 0===r?void 0:r.showGrid)&&Array.from({length:6}).map(((t,a)=>{const n=D(T+I*a/5);return e("line",{x1:y,y1:isNaN(n)?0:n,x2:h-E,y2:isNaN(n)?0:n,stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"2,2",opacity:.2},`price-grid-${a}`)})),(null===(d=l.xAxis)||void 0===d?void 0:d.showGrid)&&o.map(((t,a)=>{if(a%Math.ceil(o.length/10)!=0)return null;const n=k(a);return e("line",{x1:isNaN(n)?0:n,y1:S,x2:isNaN(n)?0:n,y2:C+S,stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"2,2",opacity:.2},`time-grid-${a}`)}))]}),G=t(a,{children:[t("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--y`,children:[e("line",{x1:y,y1:S,x2:y,y2:C+S,stroke:"#e5e7eb",strokeWidth:1}),Array.from({length:6}).map(((a,n)=>{const i=T+I*n/5,r=D(i);return t("g",{children:[e("line",{x1:y-5,y1:isNaN(r)?0:r,x2:y,y2:isNaN(r)?0:r,stroke:"#e5e7eb",strokeWidth:1}),t("text",{x:y-10,y:isNaN(r)?0:r,textAnchor:"end",dominantBaseline:"middle",fontSize:"12",fill:"#374151",children:["$",i.toFixed(s.pricePrecision)]})]},`price-axis-${n}`)}))]}),t("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--x`,children:[e("line",{x1:y,y1:C+S,x2:h-E,y2:C+S,stroke:"#e5e7eb",strokeWidth:1}),o.map(((a,n)=>{if(n%Math.ceil(o.length/8)!=0)return null;const i=k(n);return t("g",{children:[e("line",{x1:isNaN(i)?0:i,y1:C+S,x2:isNaN(i)?0:i,y2:C+S+5,stroke:"#e5e7eb",strokeWidth:1}),e("text",{x:isNaN(i)?0:i,y:C+S+20,textAnchor:"middle",fontSize:"12",fill:"#374151",children:b(a.date)})]},`time-axis-${n}`)}))]}),s.showVolume&&w.length>0&&t("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--volume`,children:[e("line",{x1:h-E,y1:C+S+10,x2:h-E,y2:m-N,stroke:"#e5e7eb",strokeWidth:1}),Array.from({length:3}).map(((a,n)=>{const i=M*(n+1)/3,r=P(i);return t("g",{children:[e("line",{x1:h-E,y1:isNaN(r)?0:r,x2:h-E+5,y2:isNaN(r)?0:r,stroke:"#e5e7eb",strokeWidth:1}),e("text",{x:h-E+10,y:isNaN(r)?0:r,textAnchor:"start",dominantBaseline:"middle",fontSize:"10",fill:"#374151",children:i>1e6?`${(i/1e6).toFixed(1)}M`:i>1e3?`${(i/1e3).toFixed(0)}K`:`${Math.round(i)}`})]},`volume-axis-${n}`)}))]})]});return t("svg",{width:"100%",height:"100%",viewBox:`0 0 800 ${m}`,preserveAspectRatio:"xMidYMid meet",onMouseMove:e=>{if(!s.enableCrosshair)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;v({x:a,y:n})},onMouseLeave:()=>v(null),style:{cursor:"crosshair"},children:[z,G,F]})}),[o,l,s,u,g,_,f,b,c]),N=h((a=>{if(!u)return null;const{data:n}=u,i=n.close>=n.open,r=n.close-n.open,o=r/n.open*100;return t("div",{children:[e("div",{style:{fontWeight:"bold",marginBottom:"0.5rem"},children:b(n.date)}),t("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.25rem",fontSize:"0.75rem"},children:[t("div",{children:["Open: ",t("strong",{children:["$",n.open.toFixed(s.pricePrecision)]})]}),t("div",{children:["High: ",t("strong",{children:["$",n.high.toFixed(s.pricePrecision)]})]}),t("div",{children:["Low: ",t("strong",{children:["$",n.low.toFixed(s.pricePrecision)]})]}),t("div",{children:["Close: ",t("strong",{children:["$",n.close.toFixed(s.pricePrecision)]})]})]}),t("div",{style:{marginTop:"0.5rem",paddingTop:"0.5rem",borderTop:"1px solid var(--atomix-gray-3)",color:i?s.bullishColor:s.bearishColor,fontWeight:"bold"},children:[i?"+":"",r.toFixed(s.pricePrecision)," (",o.toFixed(2),"%)"]}),n.volume&&t("div",{style:{marginTop:"0.25rem",fontSize:"0.75rem"},children:["Volume: ",n.volume.toLocaleString()]})]})}),[s,u,b]);return t(_r,{ref:r,type:"candlestick",datasets:[],config:l,...d,children:[E,s.showOHLCTooltip&&u&&e(Nr,{dataPoint:{label:b(u.data.date),value:u.data.close,metadata:{open:u.data.open,high:u.data.high,low:u.data.low,close:u.data.close,volume:u.data.volume}},datasetLabel:"OHLC",position:{x:u.x,y:u.y},visible:!0,customRenderer:N}),s.showMovingAverages&&s.movingAveragePeriods&&e("div",{className:pe.LEGEND_CLASS,style:{display:"flex",gap:"0.75rem",marginTop:"0.5rem",fontSize:"0.875rem"},children:s.movingAveragePeriods.map(((a,n)=>{var i;return t("div",{style:{display:"flex",alignItems:"center"},children:[e("div",{className:pe.LEGEND_COLOR_CLASS,style:{width:"12px",height:"2px",backgroundColor:(null===(i=s.movingAverageColors)||void 0===i?void 0:i[n])||"#FFD93D",marginRight:"0.25rem"}}),t("span",{className:pe.LEGEND_LABEL_CLASS,children:["MA",a]})]},a)}))})]})})));Tr.displayName="CandlestickChart";const Or=p(u(((a,n)=>{var r;let{datasets:o=[],config:l={},pieOptions:s={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:c={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:d,...u}=a;const h=o.length>0?o[0]:{label:"",data:[]},[p,g]=i(null),v=m((()=>{var a,n;if(null==h||null===(a=h.data)||void 0===a||!a.length)return null;const i=null==h||null===(n=h.data)||void 0===n?void 0:n.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));if(!i.length)return null;const r=Math.min(800,400)/2*.8,o=r*(c.innerRadiusRatio??.6),l=400,u=200,m=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let p=[...i];s.sortByValue&&p.sort(((e,t)=>t.value-e.value));const v=pr(p).call(p,((e,t)=>e+t.value),0);if(v<=0||!isFinite(v))return null;const _=[];let S=(s.startAngle??0)*Math.PI/180;p.forEach(((e,t)=>{const a=e.value/v;if(!isFinite(a)||a<0)return;const n=2*a*Math.PI-(s.padAngle??1)*Math.PI/180;if(!isFinite(n)||n<0)return;const i=S+n;isFinite(S)&&isFinite(i)&&(_.push({dataPoint:e,index:t,startAngle:S,endAngle:i,color:e.color||m[t%m.length],percentage:a}),S=i+(s.padAngle??1)*Math.PI/180)}));const f=_.map((a=>{const{startAngle:n,endAngle:i,color:c,dataPoint:h,index:m,percentage:p}=a,v=l+r*Math.cos(n),_=u+r*Math.sin(n),S=l+r*Math.cos(i),f=u+r*Math.sin(i),b=l+o*Math.cos(i),E=u+o*Math.sin(i),N=l+o*Math.cos(n),y=u+o*Math.sin(n),C=i-n>Math.PI?1:0,L=[`M ${v},${_}`,`A ${r},${r} 0 ${C},1 ${S},${f}`,`L ${b},${E}`,`A ${o},${o} 0 ${C},0 ${N},${y}`,"Z"].join(" "),x=n+(i-n)/2,A=(r+o)/2,T=l+A*Math.cos(x),O=u+A*Math.sin(x),I=`${Math.round(100*p)}%`;return t("g",{children:[e("path",{d:L,fill:c,className:"c-chart__donut-slice",onClick:()=>null==d?void 0:d(h,0,m),onMouseEnter:e=>{var t;const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),n=a?a.left+T:e.clientX,i=a?a.top+O:e.clientY;g({index:m,clientX:n,clientY:i})},onMouseLeave:()=>g(null),"data-tooltip":`${h.label}: ${h.value} (${I})`}),s.showValues&&e("text",{x:T,y:O,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-label",children:s.showPercentages?I:h.value})]},`slice-${m}`)})),b=c.showTotal&&t("g",{className:"c-chart__donut-center",children:[e("circle",{cx:l,cy:u,r:o,className:"c-chart__donut-center-bg"}),c.centerLabel&&e("text",{x:l,y:185,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:c.centerLabel}),e("text",{x:l,y:u+(c.centerLabel?15:0),textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==c.centerValue?c.centerValue:v})]});return e("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",preserveAspectRatio:"xMidYMid meet",children:t("g",{children:[f,b]})})}),[h,s,c,d]),_=m((()=>{var a,n;if(!l.showLegend||null==h||null===(a=h.data)||void 0===a||!a.length)return null;const i=null==h||null===(n=h.data)||void 0===n?void 0:n.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));if(!i.length)return null;const r=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"],o=pr(i).call(i,((e,t)=>e+t.value),0);return o<=0||!isFinite(o)?null:e("div",{className:pe.LEGEND_CLASS,children:i.map(((a,n)=>{const i=Math.round(a.value/o*100);return isFinite(i)?t("div",{className:pe.LEGEND_ITEM_CLASS,onClick:()=>null==d?void 0:d(a,0,n),children:[e("div",{className:`${pe.LEGEND_COLOR_CLASS} c-chart__legend-color`,style:{backgroundColor:a.color||r[n%r.length]}}),t("span",{className:pe.LEGEND_LABEL_CLASS,children:[a.label," ",s.showPercentages&&`(${i}%)`]})]},`legend-${n}`):null}))})}),[h,l.showLegend,s.showPercentages,d]);return t(_r,{ref:n,type:"donut",datasets:o,config:l,...u,children:[t("div",{className:pe.CANVAS_CLASS,children:[v,p&&(null==h||null===(r=h.data)||void 0===r?void 0:r[p.index])&&e(Nr,{dataPoint:h.data[p.index],datasetLabel:h.label,datasetColor:h.data[p.index].color,position:{x:p.clientX,y:p.clientY},visible:!0})]}),_]})})));Or.displayName="DonutChart";const Ir=p(u(((a,n)=>{let{funnelData:i=[],config:r={},funnelOptions:o={},onDataPointClick:l,...s}=a;const{direction:c="vertical",showLabels:d=!0,showValues:u=!0,showPercentages:m=!1,labelPosition:p="outside",neckWidth:g=.3,neckHeight:v=.2,segmentGap:_=2,colorScheme:S=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:f=!0,animate:b=!0,animationDuration:E=1e3,animationDelay:N=200,valueFormatter:y=e=>e.toLocaleString(),showConversionRates:C=!0,conversionRatePosition:L="between",proportional:x=!0,minSegmentRatio:A=.1}=o,T=h((a=>{let{scales:n,colors:r,handlers:o}=a;if(!i.length)return null;const l=60,s=n.width-120,h=n.height-120,E=Math.max(...i.map((e=>e.value))),T=i.map(((e,t)=>{const a=e.value/E*100,n=t>0&&i[t-1]?e.value/i[t-1].value*100:100;return{...e,percentage:a,conversionRate:n,index:t}})),O=[];if("vertical"===c){const a=(h-(i.length-1)*_)/i.length;T.forEach(((n,r)=>{const c=l+r*(a+_);let h;if(x){const e=Math.max(n.percentage/100,A);h=s*e}else{const e=Math.max(1-r/(i.length-1)*(1-g),A);h=s*e}const v=l+(s-h)/2;let E,I=n.color||S[r%S.length];if(f){const a=`funnel-gradient-${r}`;O.push(e("defs",{children:t("linearGradient",{id:a,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e("stop",{offset:"0%",stopColor:I,stopOpacity:"0.8"}),e("stop",{offset:"100%",stopColor:I,stopOpacity:"1"})]})},`gradient-def-${r}`)),I=`url(#${a})`}if(r===i.length-1)E=`M ${v} ${c} L ${v+h} ${c} L ${v+h} ${c+a} L ${v} ${c+a} Z`;else{const e=T[r+1];let t;if(x&&e){const a=Math.max(e.percentage/100,A);t=s*a}else{const e=Math.max(1-(r+1)/(i.length-1)*(1-g),A);t=s*e}const n=l+(s-t)/2;E=`M ${v} ${c} L ${v+h} ${c} L ${n+t} ${c+a} L ${n} ${c+a} Z`}if(O.push(e("path",{d:E,fill:I,className:"c-chart__funnel-segment "+(b?"c-chart__funnel-segment--animated":""),style:{animationDelay:b?r*N+"ms":"0ms"},onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,n,0,r)}},`segment-${r}`)),d||u||m){const t=l+s/2,i=c+a/2;let o=t,h=t;"outside"===p&&(o=l+s+10,h=l+s+10);let g=[];if(d&&g.push(e("text",{x:o,y:i-5,textAnchor:"outside"===p?"start":"middle",dominantBaseline:"middle",className:"c-chart__funnel-label "+("inside"===p?"c-chart__funnel-label--inside":"c-chart__funnel-label--outside"),children:n.label},`label-${r}`)),u||m){let t="";t=u&&m?`${y(n.value)} (${n.percentage.toFixed(1)}%)`:u?y(n.value):`${n.percentage.toFixed(1)}%`,g.push(e("text",{x:h,y:i+(d?10:0),textAnchor:"outside"===p?"start":"middle",dominantBaseline:"middle",className:"c-chart__funnel-value "+("inside"===p?"c-chart__funnel-value--inside":"c-chart__funnel-value--outside"),children:t},`value-${r}`))}O.push(...g)}if(C&&r>0){const e="between"===L?c-_/2:c+a/2;O.push(t("text",{x:l+s/2,y:e,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-conversion",children:[n.conversionRate.toFixed(1),"%"]},`conversion-${r}`))}}))}else i.length,i.length,T.forEach(((e,t)=>{x?Math.max(e.percentage/100,A):Math.max(1-t/(i.length-1)*(1-v),A)}));return e("g",{children:O})}),[i,c,d,u,m,p,g,v,_,S,f,b,E,N,y,C,L,x,A]),O=[{label:"Funnel Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(_r,{ref:n,type:"funnel",datasets:O,config:r,...s,children:e(Er,{datasets:O,config:r,onDataPointClick:l,renderContent:T})})})));Ir.displayName="FunnelChart";const wr=p(u(((a,n)=>{let{value:r,min:l=0,max:s=100,config:c={},gaugeOptions:d={},...u}=a;const{startAngle:m=225,endAngle:p=315,thickness:g=.3,showNeedle:v=!0,needleColor:_="var(--atomix-gray-8)",showValue:S=!0,valueFormatter:f=e=>e.toFixed(0),showMinMaxLabels:b=!0,showTicks:E=!0,majorTicks:N=5,minorTicks:y=4,colorZones:C=[{from:0,to:30,color:"var(--atomix-success)",label:"Good"},{from:30,to:70,color:"var(--atomix-warning)",label:"Warning"},{from:70,to:100,color:"var(--atomix-error)",label:"Critical"}],animate:L=!0,animationDuration:x=1e3,animationEasing:A="ease-out",useGradient:T=!0,label:O,labelPosition:I="bottom"}=d,[w,R]=i(L?l:r),[M,k]=i(null);o((()=>{if(L){const e=Date.now(),t=w,a=Math.max(l,Math.min(s,r))-t,n=()=>{const i=Date.now()-e,r=Math.min(i/x,1);let o=r;"ease-out"===A?o=1-Math.pow(1-r,3):"ease-in"===A?o=Math.pow(r,3):"ease-in-out"===A&&(o=r<.5?4*Math.pow(r,3):1-Math.pow(-2*r+2,3)/2);R(t+a*o),r<1&&requestAnimationFrame(n)};requestAnimationFrame(n)}else R(r)}),[r,l,s,L,x,A,w]);const D=h((a=>{let{scales:n,colors:i,handlers:r}=a;const o=n.width/2,c=n.height/2,d=.8*Math.min(o,c),u=d*(1-g),h=m*Math.PI/180,L=p*Math.PI/180,x=h+(L-h)*((w-l)/(s-l)),A=[],R=P(o,c,d,u,m,p);if(A.push(e("path",{d:R,className:"c-chart__gauge-background"},"background")),C.forEach(((a,n)=>{const i=m+(a.from-l)/(s-l)*(p-m),r=m+(a.to-l)/(s-l)*(p-m),h=P(o,c,d,u,i,r);let g=a.color;if(T){const i=`gauge-gradient-${n}`;A.push(e("defs",{children:t("linearGradient",{id:i,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e("stop",{offset:"0%",stopColor:a.color,stopOpacity:"0.8"}),e("stop",{offset:"100%",stopColor:a.color,stopOpacity:"1"})]})},`gradient-def-${n}`)),g=`url(#${i})`}A.push(e("path",{d:h,fill:g,className:"c-chart__gauge-zone"},`zone-${n}`))})),E)for(let t=0;t<=N;t++){const a=m+t/N*(p-m),n=a*Math.PI/180,i={x:o+Math.cos(n)*(d-10),y:c+Math.sin(n)*(d-10)},r={x:o+Math.cos(n)*d,y:c+Math.sin(n)*d};A.push(e("line",{x1:i.x,y1:i.y,x2:r.x,y2:r.y,className:"c-chart__gauge-tick c-chart__gauge-tick--major"},`major-tick-${t}`));const u=l+t/N*(s-l),h=d+15,g=o+Math.cos(n)*h,v=c+Math.sin(n)*h;if(A.push(e("text",{x:g,y:v,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-tick-label",children:u.toFixed(0)},`tick-label-${t}`)),t<N)for(let n=1;n<=y;n++){const i=(a+n/(y+1)*((p-m)/N))*Math.PI/180,r={x:o+Math.cos(i)*(d-5),y:c+Math.sin(i)*(d-5)},l={x:o+Math.cos(i)*d,y:c+Math.sin(i)*d};A.push(e("line",{x1:r.x,y1:r.y,x2:l.x,y2:l.y,className:"c-chart__gauge-tick c-chart__gauge-tick--minor"},`minor-tick-${t}-${n}`))}}if(b){const t=d+30,a=d+30,n=o+Math.cos(h)*t,i=c+Math.sin(h)*t,r=o+Math.cos(L)*a,u=c+Math.sin(L)*a;A.push(e("text",{x:n,y:i,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-min-max-label",children:l},"min-label")),A.push(e("text",{x:r,y:u,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-min-max-label",children:s},"max-label"))}if(v){const a=.8*d,n=o+Math.cos(x)*a,i=c+Math.sin(x)*a;A.push(t("g",{className:"c-chart__gauge-needle",children:[e("line",{x1:o,y1:c,x2:n,y2:i,stroke:_,className:"c-chart__gauge-needle-line"}),e("circle",{cx:o,cy:c,r:"6",fill:_,className:"c-chart__gauge-needle-center",onMouseEnter:e=>{var t;const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),n=a?a.left+o:e.clientX,i=a?a.top+c:e.clientY;k({clientX:n,clientY:i})},onMouseLeave:()=>k(null)})]},"needle"))}if(S){let t=c;"top"===I&&(t=c-20),"bottom"===I&&(t=c+20),A.push(e("text",{x:o,y:t,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-value",children:f(w)},"value-text"))}if(O){let t=c+40;"top"===I&&(t=c-40),"center"===I&&(t=c+10),A.push(e("text",{x:o,y:t,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-label",children:O},"custom-label"))}return e("g",{children:A})}),[w,l,s,m,p,g,v,_,S,f,b,E,N,y,C,T,O,I]),P=(e,t,a,n,i,r)=>{const o=$(e,t,a,r),l=$(e,t,a,i),s=$(e,t,n,r),c=$(e,t,n,i),d=r-i<=180?"0":"1";return["M",o.x,o.y,"A",a,a,0,d,0,l.x,l.y,"L",c.x,c.y,"A",n,n,0,d,1,s.x,s.y,"Z"].join(" ")},$=(e,t,a,n)=>{const i=n*Math.PI/180;return{x:e+a*Math.cos(i),y:t+a*Math.sin(i)}},B=[{label:"Gauge Value",data:[{label:"Current",value:w}]}];return t(_r,{ref:n,type:"gauge",datasets:B,config:c,...u,children:[e(Er,{datasets:B,config:c,renderContent:D}),M&&e(Nr,{dataPoint:{label:O||"Current Value",value:w,metadata:{min:l,max:s,percentage:((w-l)/(s-l)*100).toFixed(1)+"%"}},datasetLabel:"Gauge",position:{x:M.clientX,y:M.clientY},visible:!0})]})})));wr.displayName="GaugeChart";const Rr=p(u(((a,n)=>{let{data:r=[],colorScale:o={scheme:"github",steps:5},cellConfig:l={width:12,height:12,borderRadius:2,spacing:2,showBorders:!1},showValues:s=!1,valueFormatter:c=e=>e.toFixed(0),showColorLegend:d=!0,tooltipConfig:u={enabled:!0},variant:p="grid",animationConfig:g={enabled:!0,duration:800,delay:50,easing:"ease-out"},config:v={},..._}=a;const[S,f]=i(null),[b,E]=i({x:0,y:0}),N=m((()=>{if(!r.length)return{matrix:[],xLabels:[],yLabels:[],minValue:0,maxValue:1};const e=[...new Set(r.map((e=>e.x)))].sort(),t=[...new Set(r.map((e=>e.y)))].sort(),a=r.map((e=>e.value)),n=o.min??Math.min(...a),i=o.max??Math.max(...a),l=t.map((()=>new Array(e.length).fill(null)));return r.forEach((a=>{const n=e.indexOf(a.x),i=t.indexOf(a.y);n>=0&&i>=0&&l[i]&&(l[i][n]=a)})),{matrix:l,xLabels:e,yLabels:t,minValue:n,maxValue:i}}),[r,o.min,o.max]),y={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4a0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],github:["#ebedf0","#9be9a8","#40c463","#30a14e","#216e39"],custom:o.colors||["#ffffff","#000000"]},C=h((e=>{const{minValue:t,maxValue:a}=N,n=a-t;if(0===n)return y[o.scheme][0];const i=(e-t)/n,r=y[o.scheme],l=o.steps||r.length,s=Math.min(Math.floor(i*l),l-1);return r[Math.floor(s/l*(r.length-1))]}),[N,o.scheme,o.steps,y]),L=h(((e,t)=>{f(e),t&&e&&(t.currentTarget.getBoundingClientRect(),E({x:t.clientX,y:t.clientY}))}),[]),x=h((a=>{const{matrix:n,xLabels:i,yLabels:r}=N;if(!n.length)return null;const u=l.width||40,h=l.height||40,m=l.spacing||2,v=l.borderRadius||4,_=i.length*(u+m)-m;r.length;const f=100;return t("g",{children:[e("defs",{children:d&&e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:y[o.scheme].map(((t,a)=>e("stop",{offset:a/(y[o.scheme].length-1)*100+"%",stopColor:t},a)))})}),i.map(((t,a)=>("calendar"===p?a%4==0:a%Math.max(1,Math.floor(i.length/12))==0)?e("text",{x:f+a*(u+m)+u/2,y:42,textAnchor:"middle",className:"c-chart__heatmap-axis-label",fontSize:"11",fill:"var(--atomix-gray-7)",children:String(t)},`x-label-${a}`):null)),r.map(((t,a)=>e("text",{x:92,y:50+a*(h+m)+h/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",fontSize:"11",fill:"var(--atomix-gray-7)",children:String(t)},`y-label-${a}`))),n.map(((a,n)=>a.map(((a,r)=>{const o=f+r*(u+m),d=50+n*(h+m),p=g.enabled?(n*i.length+r)*(g.delay||50):0;if(!a)return e("rect",{x:o,y:d,width:u,height:h,rx:v,fill:"var(--atomix-gray-2)",stroke:l.showBorders?"var(--atomix-gray-3)":"none",strokeWidth:l.showBorders?.5:0,className:"c-chart__heatmap-cell c-chart__heatmap-cell--empty",style:{animation:g.enabled?`chart-fade-in ${g.duration}ms ${g.easing} ${p}ms both`:"none"}},`empty-${n}-${r}`);const _=C(a.value),b=S===a;return t("g",{children:[e("rect",{x:o,y:d,width:u,height:h,fill:_,rx:v,stroke:l.showBorders?"var(--atomix-gray-3)":"none",strokeWidth:l.showBorders?.5:0,className:"c-chart__heatmap-cell "+(b?"c-chart__heatmap-cell--hovered":""),onMouseEnter:e=>L(a,e),onMouseLeave:()=>L(null),style:{cursor:"pointer",transition:"all 0.2s ease",animation:g.enabled?`chart-scale-in ${g.duration}ms ${g.easing} ${p}ms both`:"none",transform:b?"scale(1.1)":"scale(1)",filter:b?"drop-shadow(0 2px 4px rgba(0,0,0,0.2))":"none"}}),s&&a.value>0&&e("text",{x:o+u/2,y:d+h/2,textAnchor:"middle",dominantBaseline:"middle",fontSize:"9",fontWeight:"500",fill:a.value>(N.minValue+N.maxValue)/2?"white":"var(--atomix-gray-8)",className:"c-chart__heatmap-value",style:{pointerEvents:"none"},children:c(a.value)})]},`cell-${n}-${r}`)})))),d&&t("g",{transform:`translate(${f+_+40}, 50)`,children:[e("text",{x:"0",y:"-15",fontSize:"12",fontWeight:"600",fill:"var(--atomix-gray-8)",children:"Activity"}),t("g",{transform:"translate(0, 10)",children:[e("text",{x:"-5",y:"15",fontSize:"10",fill:"var(--atomix-gray-6)",textAnchor:"end",children:"Less"}),y[o.scheme].map(((t,a)=>e("rect",{x:14*a,y:0,width:12,height:12,fill:t,rx:2,stroke:"var(--atomix-gray-3)",strokeWidth:.5},a))),e("text",{x:14*y[o.scheme].length+5,y:"15",fontSize:"10",fill:"var(--atomix-gray-6)",children:"More"})]})]})]})}),[N,l,s,c,d,C,S,L,o.scheme,y]),{matrix:A,xLabels:T,yLabels:O}=N,I=l.width||12,w=l.height||12,R=l.spacing||2,M=Math.max(600,T.length*(I+R)+200),k=Math.max(400,O.length*(w+R)+150);return t(_r,{ref:n,type:"heatmap",datasets:[],config:v,className:`c-chart--heatmap c-chart--${p}`,..._,children:[e("svg",{width:M,height:k,viewBox:`0 0 ${M} ${k}`,className:"c-chart__svg",style:{width:"100%",height:"100%"},children:x({scales:{width:M,height:k}})}),u.enabled&&S&&e("div",{className:"c-chart__tooltip",style:{position:"fixed",left:b.x+10,top:b.y-10},children:u.formatter?u.formatter(S):`${S.label||`${S.x}, ${S.y}`}: ${S.value}`})]})})));Rr.displayName="HeatmapChart";const Mr=p(u(((a,n)=>{let{datasets:i=[],yAxes:r=[],xAxis:o,config:l={},syncZoom:s=!0,showCrosshair:c=!0,...d}=a;const u=m((()=>{const e={},t=r.filter((e=>"left"===e.position)),a=r.filter((e=>"right"===e.position)),n=60*t.length,o=60*a.length,l=n,s=800-o,c=s-l,d=300;r.forEach(((n,r)=>{const o=i.filter((e=>e.yAxisId===n.id));if(0===o.length)return;const l=o.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)).filter((e=>"number"==typeof e)))||[]})),c=n.min??Math.min(0,...l),u=n.max??Math.max(...l,1),h=u-c;let m;if("left"===n.position){m=60*t.findIndex((e=>e.id===n.id))+30}else{const e=a.findIndex((e=>e.id===n.id));m=s+60*e+30}e[n.id]={yScale:e=>0===h?190:340-(e-c)/h*d,minValue:c,maxValue:u,valueRange:h,axisX:m,tickCount:n.tickCount||5,format:n.format||(e=>e.toFixed(1))}}));const u=Math.max(...i.map((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.length)||0})));return e.x={xScale:(e,t)=>{const a=t||u;return a<=1?l+c/2:l+e/(a-1)*c},plotAreaLeft:l,plotAreaRight:s,plotAreaTop:40,plotAreaBottom:340,plotAreaWidth:c,plotAreaHeight:d,maxDataLength:u},e}),[i,r,o]),p=h((a=>{var n;let{scales:i,colors:o,datasets:l,handlers:s}=a;if(!l.length||!u.x)return null;const{xScale:c,plotAreaLeft:d,plotAreaRight:h,plotAreaTop:m,plotAreaBottom:p,plotAreaWidth:g,plotAreaHeight:v}=u.x;return t("g",{children:[e("rect",{x:d,y:m,width:g,height:v,className:"c-chart__plot-area"}),r.map(((a,n)=>{const i=u[a.id];if(!i)return null;const r=Array.from({length:i.tickCount},((e,t)=>{const a=i.minValue+(i.maxValue-i.minValue)*(t/(i.tickCount-1));return{value:a,y:i.yScale(a),label:i.format(a)}}));return t("g",{children:[a.showGrid&&r.map(((t,a)=>e("line",{x1:d,y1:t.y,x2:h,y2:t.y,className:"c-chart__grid"},`grid-${a}`))),e("line",{x1:i.axisX,y1:m,x2:i.axisX,y2:p,stroke:a.color||"var(--atomix-secondary-text)",className:"c-chart__axis-line"}),r.map(((n,r)=>t("g",{children:[e("line",{x1:i.axisX-5,y1:n.y,x2:i.axisX+5,y2:n.y,stroke:a.color||"var(--atomix-gray-6)",strokeWidth:"1"}),e("text",{x:"left"===a.position?i.axisX-10:i.axisX+10,y:n.y,textAnchor:"left"===a.position?"end":"start",dominantBaseline:"middle",className:"c-chart__tick-label",children:n.label})]},`tick-${r}`))),a.label&&e("text",{x:i.axisX,y:"left"===a.position?20:p+40,textAnchor:"middle",fontSize:"14",fontWeight:"bold",fill:a.color||"var(--atomix-gray-8)",transform:"left"===a.position?`rotate(-90, ${i.axisX}, 20)`:"",children:a.label})]},`y-axis-${a.id}`)})),t("g",{children:[e("line",{x1:d,y1:p,x2:h,y2:p,stroke:"var(--atomix-gray-6)",strokeWidth:"2"}),null===(n=l[0])||void 0===n||null===(n=n.data)||void 0===n?void 0:n.map(((a,n)=>{var i;const r=c(n,(null===(i=l[0])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||0);return t("g",{children:[e("line",{x1:r,y1:p,x2:r,y2:p+5,stroke:"var(--atomix-gray-6)",strokeWidth:"1"}),e("text",{x:r,y:p+20,textAnchor:"middle",fontSize:"12",fill:"var(--atomix-gray-7)",children:a.label})]},`x-tick-${n}`)}))]}),l.map(((a,n)=>{var i;const l=u[a.yAxisId||(null===(i=r[0])||void 0===i?void 0:i.id)||""];if(!l)return null;const d=a.color||o[n],h=a.type||"line";if("line"===h||"area"===h){var m,v,_,S;const i=(null===(m=a.data)||void 0===m?void 0:m.map(((e,t)=>{var n;return{x:c(t,null===(n=a.data)||void 0===n?void 0:n.length),y:l.yScale(e.value)}})))||[],r=i.length>1?`M ${i.map((e=>`${e.x},${e.y}`)).join(" L ")}`:"";return t("g",{children:["area"===h&&e("path",{d:`${r} L ${(null===(v=i[i.length-1])||void 0===v?void 0:v.x)||0},${p} L ${(null===(_=i[0])||void 0===_?void 0:_.x)||0},${p} Z`,fill:d,opacity:"0.3"}),e("path",{d:r,stroke:d,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),null===(S=a.data)||void 0===S?void 0:S.map(((t,i)=>{var r;const o=c(i,null===(r=a.data)||void 0===r?void 0:r.length),u=l.yScale(t.value);return e("circle",{cx:o,cy:u,r:"4",fill:d,className:"c-chart__data-point",onClick:()=>{var e;return null===(e=s.onDataPointClick)||void 0===e?void 0:e.call(s,t,n,i)}},`point-${i}`)}))]},`dataset-${n}`)}if("bar"===h){var f,b;const t=g/((null===(f=a.data)||void 0===f?void 0:f.length)||1)*.6;return e("g",{children:null===(b=a.data)||void 0===b?void 0:b.map(((i,r)=>{var o;const u=c(r,(null===(o=a.data)||void 0===o?void 0:o.length)||0),h=l.yScale(i.value);return e("rect",{x:u-t/2,y:h,width:t,height:p-h,fill:d,rx:"4",onClick:()=>{var e;return null===(e=s.onDataPointClick)||void 0===e?void 0:e.call(s,i,n,r)},style:{cursor:"pointer"}},`bar-${r}`)}))},`bars-${n}`)}return null})),e("g",{transform:`translate(${d}, ${p+50})`,children:l.map(((a,n)=>{const i=a.color||o[n];return t("g",{transform:`translate(${120*n}, 0)`,children:[e("rect",{x:"0",y:"0",width:"12",height:"12",fill:i,rx:"2"}),t("text",{x:"18",y:"9",fontSize:"12",fill:"var(--atomix-gray-8)",children:[a.label," (",a.yAxisId,")"]})]},`legend-${n}`)}))})]})}),[u,r]);return e(_r,{ref:n,type:"line",datasets:i,config:l,title:"Multi-Axis Chart",showToolbar:!0,...d,children:e(Er,{datasets:i,config:l,width:800,height:500,renderContent:p,interactive:!0,enableAccessibility:!0})})})));function kr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[a,n]=i(null),[r,o]=i(new Set),[l,s]=i(0),[c,d]=i(!1),u=m((()=>{const a=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return a.length?t.sortByValue?[...a].sort(((e,t)=>t.value-e.value)):a:[]}),[e,t.sortByValue]),p=m((()=>pr(u).call(u,((e,t)=>e+t.value),0)),[u]),g=m((()=>{if(!u.length||p<=0)return[];const e=400,a=200,n=150,i=n*(t.innerRadius||0),r=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let o=(t.startAngle||0)*Math.PI/180;const l=(t.padAngle||1)*Math.PI/180;return u.map(((t,s)=>{const c=t.value/p,d=2*c*Math.PI-l,u=o+d,h=o+d/2,m=e+n*Math.cos(o),g=a+n*Math.sin(o),v=e+n*Math.cos(u),_=a+n*Math.sin(u),S=d>Math.PI?1:0;let f;if(i>0){const t=e+i*Math.cos(u),n=a+i*Math.sin(u),r=e+i*Math.cos(o),l=a+i*Math.sin(o);f=[`M ${m},${g}`,`A 150,150 0 ${S},1 ${v},${_}`,`L ${t},${n}`,`A ${i},${i} 0 ${S},0 ${r},${l}`,"Z"].join(" ")}else f=["M 400,200",`L ${m},${g}`,`A 150,150 0 ${S},1 ${v},${_}`,"Z"].join(" ");const b=(n+i)/2||105,E=e+b*Math.cos(h),N=a+b*Math.sin(h),y={dataPoint:t,index:s,startAngle:o,endAngle:u,midAngle:h,color:t.color||r[s%r.length],percentage:100*c,value:t.value,label:t.label,path:f,labelPosition:{x:E,y:N}};return o=u+l,y}))}),[u,p,t.innerRadius,t.startAngle,t.padAngle]),v=h((()=>{if(!t.enableAnimations)return;d(!0),s(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,i=Math.min(t/e,1),r=1-Math.pow(1-i,3);s(r),i<1?requestAnimationFrame(n):d(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),_=h(((e,a,i)=>{t.enableHoverEffects&&(n(e),void 0!==a&&void 0!==i&&g[e]&&(g[e].clientX=a,g[e].clientY=i))}),[t.enableHoverEffects,g]),S=h((()=>{n(null)}),[]),f=h((e=>{t.enableSelection&&o((t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a}))}),[t.enableSelection]),b=h((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const a=[];return!1!==t.showLabels&&a.push(e.label),t.showPercentages&&a.push(`${Math.round(e.percentage)}%`),t.showValues&&a.push(e.value.toString()),a.join(" - ")}),[t.labelFormatter,t.showLabels,t.showPercentages,t.showValues]),E=h(((e,a)=>{if(!a||!t.enableHoverEffects||!t.hoverOffset)return"";return`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`}),[t.enableHoverEffects,t.hoverOffset]),N=h((e=>r.has(e)),[r]);return{processedData:u,slices:g,totalValue:p,hoveredSlice:a,selectedSlices:r,animationProgress:l,isAnimating:c,handleSliceHover:_,handleSliceLeave:S,handleSliceClick:f,startAnimation:v,formatLabel:b,getSliceTransform:E,isSliceSelected:N,setHoveredSlice:n,setSelectedSlices:o,setAnimationProgress:s,setIsAnimating:d}}Mr.displayName="MultiAxisChart";const Dr=p(u(((a,n)=>{var i,r,o,l,s;let{datasets:c=[],config:d={},pieOptions:u={},onDataPointClick:m,...p}=a;const g=(null===(i=c[0])||void 0===i?void 0:i.data)||[],{slices:v,handleSliceHover:_,handleSliceLeave:S,handleSliceClick:f,formatLabel:b,hoveredSlice:E,selectedSlices:N}=kr(g,u),y=h((()=>v.length?v.map(((a,n)=>{const i=E===n,r=N.has(n);return t("g",{children:[e("path",{d:a.path,fill:a.color,className:`c-chart__pie-slice ${i?"c-chart__pie-slice--hovered":""} ${r?"c-chart__pie-slice--selected":""}`,onClick:()=>{f(n),null==m||m(a.dataPoint,0,n)},onMouseEnter:e=>{var t;const i=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),r=i?i.left+a.labelPosition.x:e.clientX,o=i?i.top+a.labelPosition.y:e.clientY;_(n,r,o)},onMouseLeave:S}),u.showLabels&&e("text",{x:a.labelPosition.x,y:a.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:b(a)})]},`slice-${n}`)})):null),[v,E,N,u.showLabels,f,_,S,b,m]);return t(_r,{ref:n,type:"pie",datasets:c,config:d,...p,children:[e("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",children:y()}),null!==E&&g[E]&&e(Nr,{dataPoint:g[E],datasetLabel:null===(r=c[0])||void 0===r?void 0:r.label,datasetColor:null===(o=v[E])||void 0===o?void 0:o.color,position:{x:(null===(l=v[E])||void 0===l?void 0:l.clientX)||0,y:(null===(s=v[E])||void 0===s?void 0:s.clientY)||0},visible:!0})]})})));Dr.displayName="PieChart";const Pr=p(u(((a,n)=>{var r,o,l;let{datasets:s=[],config:c={},radarOptions:d={},onDataPointClick:u,...m}=a;const{gridLevels:p=5,showGrid:g=!0,showAxisLabels:v=!0,fillArea:_=!0,fillOpacity:S=.3,showDataPoints:f=!0,pointRadius:b=4,lineWidth:E=2,smooth:N=!1,scaleType:y="linear",scaleMin:C=0,scaleMax:L}=d,[x,A]=i(null),T=h((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;if(!r.length)return null;const l=n.width/2,s=n.height/2,c=.8*Math.min(l,s),d=r[0].data||[],u=2*Math.PI/d.length,h=L||Math.max(...r.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)))||[]}))),m=C,y=h-m,x=[];if(g){for(let t=1;t<=p;t++){const a=c*t/p,n=`M ${d.map(((e,t)=>{const n=t*u-Math.PI/2;return{x:l+Math.cos(n)*a,y:s+Math.sin(n)*a}})).map((e=>`${e.x},${e.y}`)).join(" L ")} Z`;x.push(e("path",{d:n,fill:"none",className:"c-chart__radar-grid"},`grid-${t}`))}d.forEach(((t,a)=>{const n=a*u-Math.PI/2,i=l+Math.cos(n)*c,r=s+Math.sin(n)*c;x.push(e("line",{x1:l,y1:s,x2:i,y2:r,className:"c-chart__radar-axis"},`axis-${a}`))}))}const T=[];v&&d.forEach(((t,a)=>{const n=a*u-Math.PI/2,i=c+20,r=l+Math.cos(n)*i,o=s+Math.sin(n)*i;T.push(e("text",{x:r,y:o,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-label",children:t.label},`label-${a}`))}));const I=r.map(((t,a)=>{var n;const r=t.color||i[a],d=(null===(n=t.data)||void 0===n?void 0:n.map(((e,t)=>{const a=t*u-Math.PI/2,n=(e.value-m)/y,i=c*n;return{x:l+Math.cos(a)*i,y:s+Math.sin(a)*i,originalPoint:e,angle:a,radius:i}})))||[],h=N?O(d):`M ${d.map((e=>`${e.x},${e.y}`)).join(" L ")} Z`,p=[];return _&&p.push(e("path",{d:h,fill:r,className:"c-chart__radar-fill",style:{opacity:S}},`fill-${a}`)),p.push(e("path",{d:h,fill:"none",stroke:r,className:"c-chart__radar-line",style:{strokeWidth:E}},`line-${a}`)),f&&d.forEach(((t,n)=>{p.push(e("circle",{cx:t.x,cy:t.y,r:b,fill:r,className:"c-chart__radar-point",onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,t.originalPoint,a,n)},onMouseEnter:e=>{var i;const r=null===(i=e.currentTarget.ownerSVGElement)||void 0===i?void 0:i.getBoundingClientRect(),o=r?r.left+t.x:e.clientX,l=r?r.top+t.y:e.clientY;A({datasetIndex:a,pointIndex:n,clientX:o,clientY:l})},onMouseLeave:()=>A(null)},`point-${a}-${n}`))})),e("g",{children:p},`dataset-${a}`)}));return t("g",{children:[x,I,T]})}),[p,g,v,_,S,f,b,E,N,C,L]),O=h((e=>{if(e.length<3)return`M ${e.map((e=>`${e.x},${e.y}`)).join(" L ")} Z`;let t=`M ${e[0].x},${e[0].y}`;for(let a=0;a<e.length;a++){const n=e[a],i=e[(a+1)%e.length],r=e[0===a?e.length-1:a-1];t+=` C ${n.x+.1*(i.x-r.x)},${n.y+.1*(i.y-r.y)} ${i.x-.1*(e[(a+2)%e.length].x-n.x)},${i.y-.1*(e[(a+2)%e.length].y-n.y)} ${i.x},${i.y}`}return t+" Z"}),[]);return t(_r,{ref:n,type:"radar",datasets:s,config:c,...m,children:[e(Er,{datasets:s,config:c,onDataPointClick:u,renderContent:T}),x&&e(Nr,{dataPoint:null===(r=s[x.datasetIndex])||void 0===r||null===(r=r.data)||void 0===r?void 0:r[x.pointIndex],datasetLabel:null===(o=s[x.datasetIndex])||void 0===o?void 0:o.label,datasetColor:null===(l=s[x.datasetIndex])||void 0===l?void 0:l.color,position:{x:x.clientX,y:x.clientY},visible:!0})]})})));Pr.displayName="RadarChart";const $r=p(u(((a,n)=>{let{datasets:l=[],config:s={},streamConfig:c={interval:1e3,maxDataPoints:100,autoScroll:!0,bufferSize:10},dataSource:d,websocketUrl:u,onDataUpdate:m,enablePerformanceMonitoring:p=!1,...g}=a;const[v,_]=i(l),[S,f]=i(!1),[b,E]=i({fps:0,updateTime:0,dataPoints:0}),N=r(null),y=r(null),C=r(0),L=r(Date.now()),x=r([]),A=h((()=>{if(!p)return;const e=Date.now(),t=e-L.current;if(t>=1e3){const a=Math.round(1e3*C.current/t);E((e=>({...e,fps:a,dataPoints:pr(v).call(v,((e,t)=>{var a;return e+((null===(a=t.data)||void 0===a?void 0:a.length)||0)}),0)}))),C.current=0,L.current=e}C.current++}),[p,v]),T=h((()=>{if(0===x.current.length)return;const e=performance.now();_((e=>{const t=[...e];return x.current.forEach((e=>{e.forEach(((e,a)=>{t[a]||(t[a]={label:`Dataset ${a+1}`,data:[],color:`hsl(${60*a}, 70%, 50%)`});const n=t[a],i=n.data||[],r={...e,timestamp:e.timestamp||Date.now()};i.push(r),i.length>c.maxDataPoints&&i.splice(0,i.length-c.maxDataPoints),n.data=i}))})),t})),x.current=[];const t=performance.now();E((a=>({...a,updateTime:t-e}))),null==m||m(v),A()}),[c.maxDataPoints,m,v,A]),O=h((()=>{if(u)try{y.current=new WebSocket(u),y.current.onopen=()=>{f(!0)},y.current.onmessage=e=>{try{const t=JSON.parse(e.data);x.current.push(Array.isArray(t)?t:[t])}catch(e){}},y.current.onclose=()=>{f(!1)},y.current.onerror=e=>{f(!1)}}catch(e){}}),[u]),I=h((()=>{d&&(N.current=setInterval((async()=>{try{const e=await d();e&&e.length>0&&x.current.push(e)}catch(e){}}),c.interval),f(!0))}),[d,c.interval]),w=h((()=>{u?O():d&&I()}),[u,d,O,I]),R=h((()=>{f(!1),N.current&&(clearInterval(N.current),N.current=null),y.current&&(y.current.close(),y.current=null)}),[]);o((()=>{const e=setInterval(T,c.interval/4);return()=>clearInterval(e)}),[T,c.interval]),o((()=>((d||u)&&w(),()=>{R()})),[d,u,w,R]);const M=h((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;return r.length?r.map(((a,r)=>{var l,s;const c=a.color||i[r],d=(null===(l=a.data)||void 0===l?void 0:l.map(((e,t)=>{var i;return{x:n.xScale(t,null===(i=a.data)||void 0===i?void 0:i.length),y:n.yScale(e.value),timestamp:e.timestamp}})))||[],u=d.length>1?`M ${d.map((e=>`${e.x},${e.y}`)).join(" L ")}`:"";return t("g",{children:[e("defs",{children:t("linearGradient",{id:`gradient-${r}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e("stop",{offset:"0%",stopColor:c,stopOpacity:"0.1"}),e("stop",{offset:"100%",stopColor:c,stopOpacity:"0.8"})]})}),e("path",{d:u,stroke:`url(#gradient-${r})`,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),null===(s=a.data)||void 0===s?void 0:s.map(((i,l)=>{var s,d;const u=n.xScale(l,null===(s=a.data)||void 0===s?void 0:s.length),h=n.yScale(i.value),m=l===((null===(d=a.data)||void 0===d?void 0:d.length)||0)-1;return t("g",{children:[m&&t("circle",{cx:u,cy:h,r:"8",fill:c,opacity:"0.3",children:[e("animate",{attributeName:"r",values:"4;12;4",dur:"2s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.8;0.1;0.8",dur:"2s",repeatCount:"indefinite"})]}),e("circle",{cx:u,cy:h,r:"3",fill:c,stroke:"white",strokeWidth:"1",onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,i,r,l)},style:{cursor:"pointer"}})]},`point-${l}`)}))]},`realtime-dataset-${r}`)})):null}),[]);return t(_r,{ref:n,type:"line",datasets:v,config:s,title:"Real-time Chart "+(S?"🔴 LIVE":"⏸️ PAUSED"),showToolbar:!0,enableRefresh:!0,onRefresh:w,...g,children:[e(Er,{datasets:v,config:s,renderContent:M,enableRealTime:!0,enablePerformanceOptimization:!0}),p&&t("div",{style:{position:"absolute",top:"10px",right:"10px",background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"8px",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace"},children:[t("div",{children:["FPS: ",b.fps]}),t("div",{children:["Update: ",b.updateTime.toFixed(2),"ms"]}),t("div",{children:["Points: ",b.dataPoints]}),t("div",{children:["Status: ",S?"STREAMING":"STOPPED"]})]}),t("div",{style:{position:"absolute",bottom:"10px",left:"10px",display:"flex",gap:"8px"},children:[e("button",{onClick:S?R:w,style:{padding:"6px 12px",borderRadius:"4px",border:"none",background:S?"#ef4444":"#10b981",color:"white",cursor:"pointer",fontSize:"12px"},children:S?"Stop":"Start"}),e("button",{onClick:()=>_([]),style:{padding:"6px 12px",borderRadius:"4px",border:"none",background:"#6b7280",color:"white",cursor:"pointer",fontSize:"12px"},children:"Clear"})]})]})})));$r.displayName="RealTimeChart";const Br=p(u(((n,r)=>{var o,l,s;let{datasets:c=[],config:d={},scatterOptions:u={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:h,...m}=n;const[p,g]=i(null);return t(_r,{ref:r,type:"scatter",datasets:c,config:d,...m,children:[e(Er,{datasets:c,config:d,interactive:u.enableHoverEffects,renderContent:n=>{let{scales:i,colors:r,datasets:o}=n;if(!o.length)return null;const l=[];return o.forEach(((a,n)=>{var o;const s=a.color||r[n%r.length];null===(o=a.data)||void 0===o||o.forEach(((r,o)=>{var c;const d=void 0!==r.x?i.padding.left+r.x/100*i.innerWidth:i.xScale(o,null===(c=a.data)||void 0===c?void 0:c.length),m=void 0!==r.y?i.padding.top+i.innerHeight-r.y/100*i.innerHeight:i.yScale(r.value);l.push(t("g",{children:[e("circle",{cx:d,cy:m,r:r.size||u.pointRadius||4,fill:r.color||s,className:"c-chart__scatter-point",onClick:()=>null==h?void 0:h(r,n,o),onMouseEnter:e=>{if(u.enableHoverEffects){var t;e.currentTarget.setAttribute("r",String(1.5*(r.size||u.pointRadius||4)));const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),i=a?a.left+d:e.clientX,l=a?a.top+m:e.clientY;g({datasetIndex:n,pointIndex:o,clientX:i,clientY:l})}},onMouseLeave:e=>{e.currentTarget.setAttribute("r",String(r.size||u.pointRadius||4)),g(null)}}),u.showLabels&&e("text",{x:d,y:m-(u.pointRadius||4)-5,textAnchor:"middle",className:"c-chart__scatter-label",children:r.label})]},`point-${n}-${o}`))}))})),e(a,{children:l})}}),p&&(null===(o=c[p.datasetIndex])||void 0===o||null===(o=o.data)||void 0===o?void 0:o[p.pointIndex])&&e(Nr,{dataPoint:c[p.datasetIndex].data[p.pointIndex],datasetLabel:null===(l=c[p.datasetIndex])||void 0===l?void 0:l.label,datasetColor:null===(s=c[p.datasetIndex])||void 0===s?void 0:s.color,position:{x:p.clientX,y:p.clientY},visible:!0})]})})));Br.displayName="ScatterChart";const Fr=p(u(((a,n)=>{let{data:r=[],algorithm:o="squarified",colorConfig:l={scheme:"category"},showLabels:s=!0,showValues:c=!1,labelConfig:d={minSize:1e3,fontSize:12,color:"white"},borderConfig:u={width:1,color:"white",radius:2},animationConfig:p={enabled:!0,duration:750,easing:"ease-out"},onNodeClick:g,onNodeHover:v,config:_={},...S}=a;const[f,b]=i(null),[E,N]=i(null),[y,C]=i({x:0,y:0}),L=m((()=>{if(!r.length)return null;const e=new Map;r.forEach((t=>e.set(t.id,t)));const t=[],a=new Set,n=e=>{if(a.has(e.id))return e;a.add(e.id);const t=r.filter((t=>t.parent===e.id));var i;t.length>0&&(e.children=t.map((e=>n(e))),e.value=pr(i=e.children).call(i,((e,t)=>e+t.value),0));return e};return r.forEach((a=>{a.parent&&e.has(a.parent)||t.push(n(a))})),1===t.length?t[0]:{id:"root",label:"Root",value:pr(t).call(t,((e,t)=>e+t.value),0),children:t}}),[r]),x=h(((e,t,a)=>{if(e.color)return e.color;const{scheme:n,palette:i,valueRange:o}=l,s=i||["#3b82f6","#ef4444","#10b981","#f59e0b","#8b5cf6","#06b6d4","#84cc16","#f97316","#ec4899","#6366f1"];switch(n){case"category":default:return s[a%s.length];case"depth":const n=["#1e40af","#3b82f6","#60a5fa","#93c5fd","#dbeafe"];return n[Math.min(t,n.length-1)];case"value":if(o&&L){const t=Math.max(...r.map((e=>e.value))),a=Math.min(...r.map((e=>e.value))),n=(e.value-a)/(t-a);return`hsl(${220+100*n}, 70%, ${30+40*n}%)`}return s[0]}}),[l,r,L]);h(((e,t,a,n,i)=>{if(0===e.length)return;const r=pr(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const r=e[0];return void(r&&(r.x=t,r.y=a,r.width=n,r.height=i))}const o=[...e].sort(((e,t)=>t.value-e.value)),l=e=>Math.max(e.width/e.height,e.height/e.width);let s=[],c=[...o],d=t,u=a,h=n,m=i;for(;c.length>0;){const e=c.shift();if(!e)break;s.push(e);const t=pr(s).call(s,((e,t)=>e+t.value),0),a=t/r;let n,i;h>=m?(n=h*a,i=m):(n=h,i=m*a);let o=!1;if(c.length>0){const e=c[0];if(!e)break;const a=[...s,e],d=pr(a).call(a,((e,t)=>e+t.value),0),u=d/r;let p,g;h>=m?(p=h*u,g=m):(p=h,g=m*u);const v=Math.max(...s.filter((e=>e)).map((e=>{const a=e.value/t;return l({width:h>=m?n:n*a,height:h>=m?i*a:i})})));o=Math.max(...a.filter((e=>e)).map((e=>{const t=e.value/d;return l({width:h>=m?p:p*t,height:h>=m?g*t:g})})))<=v}if(!o){let e=d,a=u;s.forEach((r=>{const o=r.value/t;h>=m?(r.x=e,r.y=a,r.width=n,r.height=m*o,a+=r.height):(r.x=e,r.y=a,r.width=h*o,r.height=i,e+=r.width)})),h>=m?(d+=n,h-=n):(u+=i,m-=i),s=[]}}}),[]);const A=m((()=>{if(!r.length)return[];const e=r.filter((e=>!e.children||0===e.children.length));pr(e).call(e,((e,t)=>e+t.value),0);let t=0,a=0;const n=800/Math.ceil(Math.sqrt(e.length)),i=600/Math.ceil(Math.sqrt(e.length));return e.map(((e,r)=>{const o={id:e.id,label:e.label,value:e.value,color:x(e,0,r)||"transparent",x:t,y:a,width:n,height:i,depth:0,children:[],originalData:e};return t+=n,t>=800&&(t=0,a+=i),o}))}),[r,x]),T=h((e=>{N(e),null==g||g(e)}),[g]),O=h(((e,t)=>{b(e),null==v||v(e),t&&e&&(t.currentTarget.getBoundingClientRect(),C({x:t.clientX,y:t.clientY}))}),[v]),I=h((()=>A.length?e("g",{children:A.map((a=>{const n=f===a,i=E===a,r=a.width*a.height,o=s&&r>=(d.minSize||1e3);return t("g",{children:[e("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:a.color,rx:u.radius||2,className:`c-chart__treemap-node ${n?"c-chart__treemap-node--hovered":""} ${i?"c-chart__treemap-node--selected":""} ${p.enabled?"c-chart__treemap-node--animated":""}`,onMouseEnter:e=>O(a,e),onMouseLeave:()=>O(null),onClick:()=>T(a)}),o&&t("g",{children:[e("text",{x:a.x+a.width/2,y:a.y+a.height/2-(c?8:0),textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",children:a.label}),c&&e("text",{x:a.x+a.width/2,y:a.y+a.height/2+12,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-value",children:a.value.toLocaleString()})]})]},a.id)}))}):null),[A,f,E,s,c,d,u,p,O,T]);return t(_r,{ref:n,type:"treemap",datasets:[],config:_,...S,children:[e("svg",{width:800,height:600,viewBox:"0 0 800 600",style:{width:"100%",height:"100%"},children:I()}),f&&t("div",{className:"c-chart__tooltip",style:{position:"fixed",left:y.x+10,top:y.y-10,transform:"translateY(-100%)",background:"var(--atomix-gray-9)",color:"white",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.2)",zIndex:1e3,pointerEvents:"none"},children:[e("div",{children:e("strong",{children:null==f?void 0:f.label})}),t("div",{children:["Value: ",null==f?void 0:f.value.toLocaleString()]})]})]})})));Fr.displayName="TreemapChart";const zr=p(u(((a,n)=>{let{waterfallData:i=[],config:r={},waterfallOptions:o={},onDataPointClick:l,...s}=a;const{showConnectors:c=!0,connectorColor:d="#f9fafb",connectorStyle:u="dashed",showValues:m=!0,valuePosition:p="top",colors:g={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:v=.6,showCumulativeLine:_=!1,cumulativeLineColor:S="#3b82f6",animate:f=!0,animationDuration:b=1e3,animationDelay:E=100,valueFormatter:N=e=>e.toLocaleString(),showBaseline:y=!0,baselineColor:C="#f3f4f6"}=o,L=h((a=>{let{scales:n,colors:r,handlers:o}=a;if(!i.length)return null;const l=60,s=n.width-120,h=n.height-120;let b=0;const L=i.map(((e,t)=>{const a="total"===e.type||"subtotal"===e.type?0:b;let n;return"total"===e.type||"subtotal"===e.type?(n=e.value,b=e.value):(n=b+e.value,b=n),{...e,startValue:a,endValue:n,cumulativeValue:b,index:t}})),x=L.flatMap((e=>[e.startValue,e.endValue])),A=Math.min(0,...x),T=Math.max(...x)-A,O=s/i.length*v,I=s/i.length,w=e=>l+e*I+I/2,R=e=>l+h-(e-A)/T*h,M=[];if(y){const t=R(0);M.push(e("line",{x1:l,y1:t,x2:n.width-l,y2:t,stroke:C,strokeWidth:"2",opacity:"0.7"},"baseline"))}if(L.forEach(((t,a)=>{const n=w(a),i=Math.min(R(t.startValue),R(t.endValue)),r=Math.max(R(t.startValue),R(t.endValue)),l=r-i;let s=t.color;if(s||(s="total"===t.type?g.total:"subtotal"===t.type?g.subtotal:t.value>=0?g.positive:g.negative),M.push(e("rect",{x:n-O/2,y:i,width:O,height:Math.max(l,2),fill:s,rx:"4",className:"c-chart__waterfall-bar "+(f?"c-chart__waterfall-bar--animated":""),style:{animationDelay:f?a*E+"ms":"0ms"},onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,t,0,a)}},`bar-${a}`)),m){let o=i,s=t.value;o="center"===p?i+l/2:"bottom"===p?r+15:i-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),M.push(e("text",{x:n,y:o,textAnchor:"middle",dominantBaseline:"center"===p?"middle":"auto",className:"c-chart__waterfall-value "+("center"===p?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:N(s)},`value-${a}`))}if(c&&a<L.length-1){const i=L[a+1];if(i){const r=R(t.endValue),o=R(i.startValue),l=w(a+1);if(Math.abs(t.endValue-i.startValue)>.01){const t="dashed"===u?"5,5":"dotted"===u?"2,2":"none";M.push(e("line",{x1:n+O/2,y1:r,x2:l-O/2,y2:o,stroke:d,strokeDasharray:t,className:"c-chart__waterfall-connector"},`connector-${a}`))}}}})),_){const t=L.map(((e,t)=>({x:w(t),y:R(e.cumulativeValue)}))),a=`M ${t.map((e=>`${e.x},${e.y}`)).join(" L ")}`;M.push(e("path",{d:a,fill:"none",stroke:S,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,a)=>{M.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:S,className:"c-chart__waterfall-cumulative-point"},`line-point-${a}`))}))}M.push(e("line",{x1:l,y1:n.height-l,x2:n.width-l,y2:n.height-l,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),M.push(e("line",{x1:l,y1:l,x2:l,y2:n.height-l,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"y-axis")),i.forEach(((t,a)=>{const i=w(a);M.push(e("text",{x:i,y:n.height-l+20,textAnchor:"middle",fontSize:"11",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${i}, ${n.height-l+20})`,children:t.label},`x-label-${a}`))}));for(let a=0;a<=5;a++){const n=A+a/5*T,i=R(n);M.push(t("g",{children:[e("line",{x1:55,y1:i,x2:l,y2:i,stroke:"var(--atomix-gray-4)",strokeWidth:"1"}),e("text",{x:50,y:i,textAnchor:"end",dominantBaseline:"middle",fontSize:"11",fill:"var(--atomix-gray-6)",children:N(n)})]},`y-tick-${a}`))}return e("g",{children:M})}),[i,c,d,u,m,p,v,_,S,f,b,E,N,y,C]),x=[{label:"Waterfall Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(_r,{ref:n,type:"waterfall",datasets:x,config:r,...s,children:e(Er,{datasets:x,config:r,onDataPointClick:l,renderContent:L})})})));zr.displayName="WaterfallChart";const Gr=t=>{let{className:a=""}=t;const[n,r]=i("light");o((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?r(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&r("dark")}),[]),o((()=>{document.body.setAttribute("data-atomix-color-mode",n),localStorage.setItem("atomix-color-mode",n)}),[n]),o((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||r(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]);return e("button",{className:`c-color-mode-toggle ${a}`,onClick:()=>{r((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===n?"dark":"light"} mode`,title:`Switch to ${"light"===n?"dark":"light"} mode`,children:e("svg","light"===n?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}:{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})})})};Gr.displayName="ColorModeToggle";const Vr=u(((a,r)=>{let{target:l,show:s=["days","hours","minutes","seconds"],separator:c=":",focused:d=!1,className:u="",onComplete:h}=a;const m="string"==typeof l?new Date(l):l,[p,g]=i((()=>new Date)),[v,_]=i(!1);o((()=>{if(v)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[v]);const S=m.getTime()-p.getTime(),{days:f,hours:b,minutes:E,seconds:N}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(S);o((()=>{S<=0&&!v&&(_(!0),h&&h())}),[S,v,h]);const y=[];return Xi(s).call(s,"days")&&y.push({label:"Days",value:f}),Xi(s).call(s,"hours")&&y.push({label:"Hours",value:b}),Xi(s).call(s,"minutes")&&y.push({label:"Minutes",value:E}),Xi(s).call(s,"seconds")&&y.push({label:"Seconds",value:N}),e("div",{ref:r,className:`c-countdown${d?" c-countdown--focused":""} ${u}`.trim(),children:y.map(((a,i)=>t(n.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:String(a.value).padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:a.label})]}),i<y.length-1&&e("span",{className:"c-countdown__separator",children:c})]},a.label)))})}));function Ur(e){let{data:t=[],columns:a=[],sortable:n=!1,paginated:r=!1,pageSize:l=10,onSort:s,initialSortConfig:c}=e;const[d,u]=i(c||null),[p,g]=i(1),[v,_]=i(""),S=h((e=>{if(!n)return;let t="asc";d&&d.key===e&&"asc"===d.direction&&(t="desc");const a={key:e,direction:t};u(a),s&&s(a)}),[n,d,s]),f=h((e=>{e<1||e>Math.ceil(t.length/l)||g(e)}),[t.length,l]),b=h((e=>{_(e),g(1)}),[]),E=m((()=>{if(!v)return t;const e=v.toLowerCase();return t.filter((t=>a.some((a=>{var n;const i=t[a.key];return null!=i&&Xi(n=String(i).toLowerCase()).call(n,e)}))))}),[t,a,v]),N=m((()=>d&&n?[...E].sort(((e,t)=>{const a=e[d.key],n=t[d.key];return null==a?"asc"===d.direction?-1:1:null==n?"asc"===d.direction?1:-1:"string"==typeof a&&"string"==typeof n?"asc"===d.direction?a.localeCompare(n):n.localeCompare(a):"asc"===d.direction?a>n?1:-1:a>n?-1:1})):E),[E,d,n]),y=m((()=>{if(!r)return N;const e=(p-1)*l;return N.slice(e,e+l)}),[N,r,p,l]),C=m((()=>r?Math.max(1,Math.ceil(N.length/l)):1),[N.length,r,l]);return o((()=>{g(1)}),[t]),o((()=>{p>C&&g(Math.max(1,C))}),[p,C]),{displayData:y,sortConfig:d,currentPage:p,totalPages:C,handleSort:S,handlePageChange:f,handleSearch:b}}function Yr(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:a=t.variant,size:n=t.size,fullscreen:i=t.fullscreen,className:r=""}=e,o="c-spinner";return`${o} ${a?`${o}--${a}`:""} ${"md"!==n?`${o}--${n}`:""} ${i?`${o}--fullscreen`:""} ${r}`.trim()}}}Vr.displayName="Countdown";const Xr=t=>{let{size:a="md",variant:n="primary",fullscreen:i=!1,className:r=""}=t;const{generateSpinnerClass:o}=Yr({size:a,variant:n,fullscreen:i}),l=o({size:a,variant:n,fullscreen:i,className:r});return e("div",{className:l,role:"status",children:e("span",{className:G.VISUALLY_HIDDEN,children:"Loading..."})})};Xr.displayName="Spinner";const Hr="...",Wr=(e,t)=>{const a=t-e+1;return Array.from({length:a},((t,a)=>a+e))},jr=e=>{let{currentPage:t,totalPages:a,siblingCount:n=1,onPageChange:i}=e;const r=m((()=>{if(n+5>=a)return Wr(1,a);const e=Math.max(t-n,1),i=Math.min(t+n,a),r=e>2,o=i<a-2,l=a;if(!r&&o){return[...Wr(1,3+2*n),Hr,a]}if(r&&!o){let e=Wr(a-(3+2*n)+1,a);return[1,Hr,...e]}if(r&&o){let t=Wr(e,i);return[1,Hr,...t,Hr,l]}return[]}),[a,n,t]),o=e=>{e>=1&&e<=a&&e!==t&&i(e)};return{paginationRange:r,currentPage:t,totalPages:a,goToPage:o,nextPage:()=>{o(t+1)},prevPage:()=>{o(t-1)},firstPage:()=>{o(1)},lastPage:()=>{o(a)},DOTS:Hr}},Zr=t=>{let{type:a,onClick:n,disabled:i,label:r,iconName:o}=t;return e("li",{className:`c-pagination__item c-pagination__item--${a} ${i?"is-disabled":""}`,"aria-disabled":i,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:i,"aria-label":r,children:e(be,{name:o,size:"sm","aria-hidden":"true"})})})},Kr=a=>{let{currentPage:n=K.currentPage,totalPages:i=K.totalPages,onPageChange:r,siblingCount:o=K.siblingCount,showFirstLastButtons:l=K.showFirstLastButtons,showPrevNextButtons:s=K.showPrevNextButtons,size:c=K.size,className:d="",ariaLabel:u="Pagination"}=a;const{paginationRange:h,goToPage:m,nextPage:p,prevPage:g,firstPage:v,lastPage:_}=jr({currentPage:n,totalPages:i,siblingCount:o,onPageChange:r});return 0===n||h.length<2?null:e("nav",{className:`c-pagination c-pagination--${c} ${d}`,"aria-label":u,children:t("ul",{className:"c-pagination__items",children:[l&&e(Zr,{type:"first",onClick:v,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),s&&e(Zr,{type:"prev",onClick:g,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),h.map(((t,a)=>{if(t===Hr)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},`dots-${a}`);const i=t===n;return e("li",{className:"c-pagination__item "+(i?"is-active":""),"aria-current":i?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>m(t),"aria-label":`Page ${t}`,"aria-current":i?"page":void 0,children:t})},t)})),s&&e(Zr,{type:"next",onClick:p,disabled:n===i,label:"Go to next page",iconName:"CaretRight"}),l&&e(Zr,{type:"last",onClick:_,disabled:n===i,label:"Go to last page",iconName:"SkipForward"})]})})};Kr.displayName="Pagination";const qr=a=>{let{data:n,columns:i,className:o,sortable:l=!1,filterable:s=!1,paginated:c=!1,pageSize:d=10,striped:u=!1,bordered:h=!1,dense:m=!1,loading:p=!1,emptyMessage:g="No data available",onRowClick:v,onSort:_,...S}=a;const f=r(null),{displayData:b,sortConfig:E,currentPage:N,totalPages:y,handleSort:C,handlePageChange:L,handleSearch:x}=Ur({data:n,columns:i,sortable:l,paginated:c,pageSize:d,onSort:_}),A=[Z.base,u&&Z.striped,h&&Z.bordered,m&&Z.dense,p&&Z.loading,o].filter(Boolean).join(" ");return t("div",{className:Z.container,...S,children:[s?e("div",{className:Z.toolbar,children:e("div",{className:Z.search,children:e("input",{type:"text",placeholder:"Search...",className:`${Z.searchInput} c-input`,onChange:e=>x(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:Z.tableWrapper,children:t("table",{ref:f,className:A,children:[e("thead",{className:Z.header,children:e("tr",{children:i.map(((a,n)=>e("th",{className:`${Z.headerCell} ${!1!==a.sortable&&l?Z.sortable:""}`,onClick:()=>!1!==a.sortable&&l?C(a.key):null,"aria-sort":(null==E?void 0:E.key)===a.key?"asc"===E.direction?"ascending":"descending":void 0,children:t("div",{className:Z.headerContent,children:[e("span",{children:a.title}),!1!==a.sortable&&l&&e("span",{className:Z.sortIcon,children:(null==E?void 0:E.key)===a.key?"asc"===E.direction?e(be,{name:"CaretUp",size:"sm"}):e(be,{name:"CaretDown",size:"sm"}):null})]})},`header-${n}`)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:Z.loadingCell,children:e("div",{className:Z.loadingIndicator,children:e(Xr,{size:"md",variant:"primary"})})})})}):0===b.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:Z.emptyCell,children:g})})}):e("tbody",{children:b.map(((t,a)=>e("tr",{className:Z.row,onClick:v?()=>v(t):void 0,tabIndex:v?0:void 0,role:v?"button":void 0,children:i.map(((n,i)=>e("td",{className:Z.cell,children:n.render?n.render(t[n.key],t):t[n.key]},`cell-${a}-${i}`)))},`row-${a}`)))})]})}),!c||y<=1?null:e("div",{className:Z.pagination,children:e(Kr,{currentPage:N,totalPages:y,onPageChange:L,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]})};function Qr(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function Jr(e,t){return new Date(e,t+1,0).getDate()}function eo(e,t){if(!e)return"";const a=e.getDate(),n=e.getMonth()+1,i=e.getFullYear();return t.replace("yyyy",i.toString()).replace("MM",n.toString().padStart(2,"0")).replace("M",n.toString()).replace("dd",a.toString().padStart(2,"0")).replace("d",a.toString())}function to(){let{value:e,onChange:t,selectionMode:a="single",startDate:n,endDate:l,onRangeChange:s,format:c="MM/dd/yyyy",minDate:d,maxDate:u,inline:m=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[p,g]=i(m),[v,_]=i(e?eo(e,c):""),[S,f]=i(n&&l?`${eo(n,c)} - ${eo(l,c)}`:n?`${eo(n,c)} - Select end date`:""),[b,E]=i(e||n||new Date),[N,y]=i("days"),[C,L]=i(!n||n&&l?"start":"end"),x=r(null),A=r(null),T=new Date,O=b.getMonth(),I=b.getFullYear(),w=Jr(I,O),R=new Date(I,O,1).getDay();o((()=>{"single"===a?_(e?eo(e,c):""):(f(n&&l?`${eo(n,c)} - ${eo(l,c)}`:n?`${eo(n,c)} - Select end date`:""),L(!n||n&&l?"start":"end"))}),[e,n,l,c,a]);const M=h((e=>{const i=new Date(I,O,e);if(!(d&&i<d||u&&i>u))if("single"===a)t&&t(i),_(eo(i,c)),m||g(!1);else if("start"===C)s&&s({startDate:i,endDate:null}),f(`${eo(i,c)} - Select end date`),L("end");else{if(!n)return;i<n?(s&&s({startDate:i,endDate:n}),f(`${eo(i,c)} - ${eo(n,c)}`)):(s&&s({startDate:n,endDate:i}),f(`${eo(n,c)} - ${eo(i,c)}`)),m||g(!1),L("start")}}),[I,O,d,u,t,s,c,m,a,C,n]),k=h((()=>{E(new Date(I,O-1,1))}),[I,O]),D=h((()=>{E(new Date(I,O+1,1))}),[I,O]),P=h((()=>{E(new Date(I-1,O,1))}),[I,O]),$=h((()=>{E(new Date(I+1,O,1))}),[I,O]),B=h((()=>{y("months")}),[]),F=h((()=>{y("years")}),[]),z=h((e=>{E(new Date(I,e,1)),y("days")}),[I]),G=h((e=>{E(new Date(e,O,1)),y("months")}),[O]),V=h((()=>{const e=new Date;E(e),"single"===a?M(e.getDate()):E(new Date)}),[M,a]),U=h((()=>{"single"===a?(_(""),t&&t(null)):(f(""),L("start"),s&&s({startDate:null,endDate:null}))}),[t,s,a]),Y=h((e=>{if("single"===a){_(e.target.value);const a=new Date(e.target.value);isNaN(a.getTime())||(t&&t(a),E(a))}else{f(e.target.value);const t=e.target.value.split("-");if(2===t.length){var n,i;const e=null===(n=t[0])||void 0===n?void 0:n.trim(),a=null===(i=t[1])||void 0===i?void 0:i.trim();if(!e||!a)return;const r=new Date(e);if(isNaN(r.getTime())||E(r),e&&a){const t=new Date(e),n=new Date(a);isNaN(t.getTime())||isNaN(n.getTime())||s&&s({startDate:t,endDate:n})}}}}),[t,s,a]),X=h((()=>{m||g(!0)}),[m]),H=h((e=>{x.current&&!x.current.contains(e.target)&&A.current&&!A.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!m?document.addEventListener("mousedown",H):document.removeEventListener("mousedown",H),()=>{document.removeEventListener("mousedown",H)})),[p,H,m]);const W=h((()=>{const e=[],t=Jr(0===O?I-1:I,0===O?11:O-1);for(let a=R-1;a>=0;a--)e.push({day:t-a,month:0===O?11:O-1,year:0===O?I-1:I,isCurrentMonth:!1});for(let t=1;t<=w;t++)e.push({day:t,month:O,year:I,isCurrentMonth:!0});const a=42-e.length;for(let t=1;t<=a;t++)e.push({day:t,month:11===O?0:O+1,year:11===O?I+1:I,isCurrentMonth:!1});return e}),[w,R,O,I]),j=h((()=>{const e=[];for(let t=0;t<12;t++)e.push({month:t,name:Qr(t)});return e}),[]),Z=h((()=>{const e=[],t=I-6;for(let a=0;a<12;a++)e.push(t+a);return e}),[I]),K=h(((e,t,a)=>function(e,t,a){return!(!e||t&&e<t||a&&e>a)}(new Date(e,t,a),d,u)),[d,u]),q=h(((t,i,r)=>{if("single"===a)return!!e&&(e.getFullYear()===t&&e.getMonth()===i&&e.getDate()===r);if(!n&&!l)return!1;if(n&&!l)return n.getFullYear()===t&&n.getMonth()===i&&n.getDate()===r;if(n&&l){const e=n.getFullYear()===t&&n.getMonth()===i&&n.getDate()===r,a=l.getFullYear()===t&&l.getMonth()===i&&l.getDate()===r;return e||a}return!1}),[e,a,n,l]),Q=h(((e,t,i)=>{if("range"!==a||!n||!l)return!1;const r=new Date(e,t,i);return r>n&&r<l}),[a,n,l]),J=h(((e,t,a)=>T.getFullYear()===e&&T.getMonth()===t&&T.getDate()===a),[T]),ee=h((e=>{const t=new Date(e.valueOf()),a=(e.getDay()+6)%7;t.setDate(t.getDate()-a+3);const n=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((n-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:v,rangeInputValue:S,viewDate:b,viewMode:N,currentMonth:O,currentYear:I,selectionMode:a,rangeSelectionState:C,datePickerRef:x,inputRef:A,startDate:n,endDate:l,setIsOpen:g,handleDateSelect:M,handlePrevMonth:k,handleNextMonth:D,handlePrevYear:P,handleNextYear:$,handleTodayClick:V,handleClear:U,handleInputChange:Y,handleInputFocus:X,switchToMonthView:B,switchToYearView:F,selectMonth:z,selectYear:G,generateDays:W,generateMonths:j,generateYears:Z,isDateSelectable:K,isDateSelected:q,isDateInSelectedRange:Q,isToday:J,getWeekNumber:ee}}qr.displayName="DataTable";const ao=u(((i,r)=>{let{value:o,onChange:l,selectionMode:s="single",startDate:c,endDate:d,onRangeChange:u,format:h="MM/dd/yyyy",minDate:m,maxDate:p,placeholder:v="Select date...",disabled:_=!1,readOnly:S=!1,clearable:f=!0,showTodayButton:b=!0,showWeekNumbers:E=!1,inline:N=!1,id:y,name:C,className:L="",placement:x="bottom-start",inputClassName:A="",size:T="md",...O}=i;const{isOpen:I,inputValue:w,rangeInputValue:R,viewMode:M,currentMonth:k,currentYear:D,selectionMode:P,rangeSelectionState:$,datePickerRef:B,inputRef:F,startDate:z,endDate:G,setIsOpen:V,handleDateSelect:U,handlePrevMonth:Y,handleNextMonth:X,handlePrevYear:H,handleNextYear:W,handleTodayClick:j,handleClear:Z,handleInputChange:K,handleInputFocus:q,switchToMonthView:Q,switchToYearView:J,selectMonth:ee,selectYear:te,generateDays:ae,generateMonths:ne,generateYears:ie,isDateSelectable:re,isDateSelected:oe,isDateInSelectedRange:le,isToday:se,getWeekNumber:ce}=to({value:o,onChange:l,selectionMode:s,startDate:c,endDate:d,onRangeChange:u,format:h,minDate:m,maxDate:p,inline:N});g(r,(()=>({open:()=>V(!0),close:()=>V(!1),clear:Z,focus:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.focus()}})));const de=`c-datepicker ${L} ${N?"c-datepicker--inline":""}`.trim(),ue=`c-datepicker__input c-input c-input--${T} ${A}`.trim(),he=y||`datepicker-${Math.random().toString(36).substring(2,9)}`,me=`${he}-calendar`,pe="single"===s?w:R;return t("div",{className:de,ref:B,...O,children:[!N&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:he,name:C,ref:F,type:"text",className:ue,placeholder:"single"===s?v:"start"===$?"Select start date...":z?`${eo(z,h)} - Select end date...`:"Select date range...",value:pe,onChange:K,onFocus:q,disabled:_,readOnly:S,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":me}),f&&pe&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:Z,"aria-label":"Clear date",children:e(be,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(be,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(I||N)&&t("div",{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${x}`,role:"dialog","aria-modal":N?void 0:"true","aria-label":"Date picker",children:[t("div",{className:"c-datepicker__header",children:["days"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:H,"aria-label":"Previous year",children:e(be,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:Y,"aria-label":"Previous month",children:e(be,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:Q,"aria-label":"Switch to month view",children:`${k+1}/${D}`}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:X,"aria-label":"Next month",children:e(be,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:W,"aria-label":"Next year",children:e(be,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:H,"aria-label":"Previous year",children:e(be,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Switch to year view",children:D}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:W,"aria-label":"Next year",children:e(be,{name:"CaretRight",size:"sm"})})]}),"years"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>H(),"aria-label":"Previous year range",children:e(be,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[D-6," - ",D+5]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>W(),"aria-label":"Next year range",children:e(be,{name:"CaretRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===M&&t(a,{children:[t("div",{className:"c-datepicker__weekdays",role:"row",children:[E&&e("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),e("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),e("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":`${he}-month-year`,children:ae().map(((a,i)=>{const r=re(a.year,a.month,a.day),o=oe(a.year,a.month,a.day),l=se(a.year,a.month,a.day),u=new Date(a.year,a.month,a.day),h=le(a.year,a.month,a.day),m="range"===s&&c&&a.day===c.getDate()&&a.month===c.getMonth()&&a.year===c.getFullYear(),p="range"===s&&d&&a.day===d.getDate()&&a.month===d.getMonth()&&a.year===d.getFullYear();if(E&&i%7==0){const s=ce(u);return t(n.Fragment,{children:[e("div",{className:"c-datepicker__weeknumber","aria-label":`Week ${s}`,children:s}),e("button",{type:"button",className:`c-datepicker__day \n ${a.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${o?"c-datepicker__day--selected":""} \n ${m?"c-datepicker__day--start-range":""}\n ${p?"c-datepicker__day--end-range":""}\n ${h?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""} \n ${r?"":"c-datepicker__day--disabled"}`,onClick:()=>r&&U(a.day),disabled:!r,tabIndex:a.isCurrentMonth?0:-1,"aria-label":u.toLocaleDateString(),"aria-selected":o?"true":"false",role:"gridcell",children:a.day})]},`week-${i}`)}return e("button",{type:"button",className:`c-datepicker__day \n ${a.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${o?"c-datepicker__day--selected":""} \n ${m?"c-datepicker__day--start-range":""}\n ${p?"c-datepicker__day--end-range":""}\n ${h?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""} \n ${r?"":"c-datepicker__day--disabled"}`,onClick:()=>r&&U(a.day),disabled:!r,tabIndex:a.isCurrentMonth?0:-1,"aria-label":u.toLocaleDateString(),"aria-selected":o?"true":"false",role:"gridcell",children:a.day},`day-${i}`)}))})]}),"months"===M&&e("div",{className:"c-datepicker__months",role:"grid",children:ne().map(((t,a)=>{const n=o&&o.getMonth()===t.month&&o.getFullYear()===D;return e("button",{type:"button",className:"c-datepicker__month "+(n?"c-datepicker__month--selected":""),onClick:()=>ee(t.month),"aria-selected":n?"true":"false",role:"gridcell",children:t.name.substring(0,3)},`month-${a}`)}))}),"years"===M&&e("div",{className:"c-datepicker__years",role:"grid",children:ie().map(((t,a)=>{const n=o&&o.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(n?"c-datepicker__year--selected":""),onClick:()=>te(t),"aria-selected":n?"true":"false",role:"gridcell",children:t},`year-${a}`)}))})]}),"days"===M&&t("div",{className:"c-datepicker__footer",children:["range"===s&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===$?"start":"end"," date"]}),b&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:j,"aria-label":"Go to today",children:"Today"}),!N&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>V(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));ao.displayName="DatePicker";const no=v({isOpen:!1,close:()=>{},id:"",trigger:"click"}),io=a=>{let{children:n,menu:l,placement:s="bottom-start",trigger:c="click",offset:d=ce.DEFAULTS.OFFSET,isOpen:u,onOpenChange:m,closeOnClickOutside:p=!0,closeOnEscape:g=!0,maxHeight:v,minWidth:_=ce.DEFAULTS.MIN_WIDTH,variant:S,className:f="",...b}=a;const[E,N]=i(!1),y=void 0!==u,C=y?u:E,L=r(null),x=r(null),A=r(null),T=r(`dropdown-${Math.random().toString(36).substring(2,9)}`).current,O=h((e=>{y||N(e),m&&m(e)}),[y,m]),I=h((()=>O(!C)),[C,O]),w=h((()=>{O(!1),setTimeout((()=>{var e;null===(e=x.current)||void 0===e||e.focus()}),0)}),[O]);o((()=>{if(!C||!p)return;const e=e=>{L.current&&!L.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[C,p,w]),o((()=>{if(!C||!g)return;const e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[C,g,w]);const R=h((e=>{var t,a;if(!A.current)return;const n=A.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!n.length)return;const i=Array.from(n).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":var r,o;if(e.preventDefault(),i<n.length-1)null===(r=n[i+1])||void 0===r||r.focus();else null===(o=n[0])||void 0===o||o.focus();break;case"ArrowUp":var l,s;if(e.preventDefault(),i>0)null===(l=n[i-1])||void 0===l||l.focus();else null===(s=n[n.length-1])||void 0===s||s.focus();break;case"Home":e.preventDefault(),null===(t=n[0])||void 0===t||t.focus();break;case"End":e.preventDefault(),null===(a=n[n.length-1])||void 0===a||a.focus()}}),[]),M=h((e=>{"click"===c&&(e.preventDefault(),e.stopPropagation(),I())}),[c,I]),k=h((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||C?"Escape"===e.key&&C&&(e.preventDefault(),w()):(e.preventDefault(),O(!0),"ArrowDown"===e.key&&A.current&&setTimeout((()=>{var e;const t=null===(e=A.current)||void 0===e?void 0:e.querySelector('[role="menuitem"]');null==t||t.focus()}),100))}),[C,O,w]),D=h((()=>{"hover"===c&&O(!0)}),[c,O]),P=["c-dropdown","click"===c?"c-dropdown--onclick":"",S?`c-dropdown--${S}`:"",C?"is-open":"",f].filter(Boolean).join(" "),$={};return v&&($.maxHeight=v),void 0!==_&&($.minWidth="number"==typeof _?`${_}px`:_),t("div",{ref:L,className:P,onMouseEnter:"hover"===c?D:void 0,...b,children:[e("div",{ref:x,className:"c-dropdown__toggle",onClick:M,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":C,"aria-controls":T,tabIndex:0,children:n}),e("div",{ref:A,id:T,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${C?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!C,onKeyDown:R,children:e("div",{className:"c-dropdown__menu-inner",style:$,children:e(no.Provider,{value:{isOpen:C,close:w,id:T,trigger:c},children:e("ul",{className:"c-dropdown__menu",children:l})})})})]})};function ro(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[a,n]=i(t.isOpen||!1),l=r(null),s=r(null),c=h((()=>{if(!l.current||"push"!==t.mode)return;const{position:e}=t,a="top"===e||"bottom"===e?l.current.clientHeight:l.current.clientWidth;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[n]=`${a}px`,document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=h((()=>{if("push"!==t.mode)return;const{position:e}=t;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[a]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),u=h((()=>{if(n(!0),document.body.classList.add("is-edgepanel-open"),l.current){const{mode:e}=t;if("none"!==e){l.current.classList.add("is-animating"),l.current.offsetHeight;const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),j.ANIMATION_DURATION)}l.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=h((()=>{if(l.current){const{position:e,mode:a}=t;if("none"!==a){l.current.classList.add("is-animating-out");const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),j.ANIMATION_DURATION)}l.current.style.transform=e?j.TRANSFORM_VALUES[e]:"","push"===t.mode&&d();setTimeout((()=>{n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===a?0:j.ANIMATION_DURATION)}else n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=h((e=>{t.closeOnEscape&&"Escape"===e.key&&a&&m()}),[m,t.closeOnEscape,a]),g=h((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&m()}),[m,t.closeOnBackdropClick]);return o((()=>(a&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[a,p,t.closeOnEscape]),o((()=>{if(l.current){const{position:e,mode:n}=t;a||"slide"!==n&&"push"!==n||!e||(l.current.style.transform=j.TRANSFORM_VALUES[e])}}),[t.mode,t.position,a]),o((()=>{void 0!==t.isOpen&&t.isOpen!==a&&(t.isOpen?u():m())}),[t.isOpen,m,a,u]),{isOpen:a,containerRef:l,backdropRef:s,generateEdgePanelClass:e=>{const{position:n=t.position,className:i="",isOpen:r}=e,o=j.CLASSES.BASE;return`${o} ${n?`${o}--${n}`:""} ${r??a?j.CLASSES.IS_OPEN:""} ${i}`.trim()},openPanel:u,closePanel:m,handleBackdropClick:g}}io.displayName="Dropdown";const oo=a=>{let{title:n,children:i,position:r="start",mode:o="slide",isOpen:l=!1,onOpenChange:s,backdrop:c=!0,closeOnBackdropClick:d=!0,closeOnEscape:u=!0,className:h=""}=a;const{isOpen:m,containerRef:p,backdropRef:g,generateEdgePanelClass:v,closePanel:_,handleBackdropClick:S}=ro({position:r,mode:o,isOpen:l,onOpenChange:s,backdrop:c,closeOnBackdropClick:d,closeOnEscape:u}),f=v({position:r,isOpen:l,className:h});return m||!1!==l?t("div",{className:f,"data-position":r,"data-mode":o,children:[c&&e("div",{ref:g,className:"c-edge-panel__backdrop",onClick:S}),t("div",{ref:p,className:"c-edge-panel__container",children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:n}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:_,"aria-label":"Close panel",children:e(be,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:i})]})]}):null};oo.displayName="EdgePanel";const lo="c-checkbox",so="is-error",co="is-valid",uo="is-disabled",ho="c-checkbox--mixed";function mo(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},a=r(null);o((()=>{a.current&&(a.current.indeterminate=Boolean(t.indeterminate))}),[t.indeterminate]);return{defaultProps:t,generateCheckboxClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:i=t.valid,indeterminate:r=t.indeterminate,className:o=""}=e;let l="";n?l=so:i&&(l=co);return`${lo} ${l} ${a?uo:""} ${r?ho:""} ${o}`.trim()},checkboxRef:a}}const po=a=>{let{label:n,checked:i=!1,onChange:r,className:o="",disabled:l=!1,required:s=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:v}=a;const{generateCheckboxClass:_,checkboxRef:S}=mo({indeterminate:p,disabled:l,invalid:h,valid:m}),f=_({className:o,disabled:l,invalid:h,valid:m,indeterminate:p});return t("div",{className:f,children:[e("input",{ref:S,type:"checkbox",className:"c-checkbox__input",checked:i,onChange:r,disabled:l,required:s,id:c,name:d,value:u,"aria-label":n?void 0:g,"aria-describedby":v,"aria-invalid":h}),n&&e("label",{className:"c-checkbox__label",htmlFor:c,children:n})]})};function go(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:a=t.disabled,className:n=""}=e,i=a?Q.CLASSES.DISABLED:"";return`${Q.CLASSES.BASE} ${i} ${n}`.trim()},handleSubmit:e=>a=>{a.preventDefault(),!t.disabled&&e&&e(a)},handleReset:e=>a=>{!t.disabled&&e&&e(a)}}}po.displayName="Checkbox";const vo=t=>{let{children:a,onSubmit:n,onReset:i,className:r="",disabled:o=!1,id:l,method:s="post",encType:c,noValidate:d=!1,autoComplete:u="on"}=t;const{generateFormClass:h,handleSubmit:m,handleReset:p}=go({disabled:o}),g=h({className:r,disabled:o});return e("form",{id:l,className:g,onSubmit:m(n),onReset:p(i),method:s,encType:c,noValidate:d,autoComplete:u,children:a})};function _o(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,l="md"===a?"":"sm"===a?J.CLASSES.SMALL:J.CLASSES.LARGE,s=i?J.CLASSES.INVALID:r?J.CLASSES.VALID:"",c=n?J.CLASSES.DISABLED:"";return`${J.CLASSES.BASE} ${l} ${s} ${c} ${o}`.trim()}}}vo.displayName="Form";const So=a=>{let{children:n,label:i,helperText:r,htmlFor:o,className:l="",disabled:s=!1,required:c=!1,invalid:d=!1,valid:u=!1,size:h="md"}=a;const{generateFormGroupClass:m}=_o({size:h,disabled:s,invalid:d,valid:u}),p=m({className:l,disabled:s,invalid:d,valid:u,size:h});return t("div",{className:p,children:[i&&t("label",{className:"c-form-group__label",htmlFor:o,children:[i,c&&e("span",{className:"c-form-group__required",children:"*"})]}),e("div",{className:"c-form-group__field",children:n}),r&&e("div",{className:"c-form-group__helper",children:r})]})};function fo(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:l="",type:s}=e,c="md"===a?"":"sm"===a?ee.CLASSES.SMALL:ee.CLASSES.LARGE,d=n?`c-input--${n}`:"",u="textarea"===s?"c-input--textarea":"";let h="";r?h=ee.CLASSES.INVALID:o&&(h=ee.CLASSES.VALID);const m=i?ee.CLASSES.DISABLED:"";return`${ee.CLASSES.BASE} ${c} ${d} ${u} ${h} ${m} ${l}`.trim()}}}So.displayName="FormGroup";const bo=t=>{let{type:a="text",value:n,onChange:i,onBlur:r,onFocus:o,placeholder:l,className:s="",disabled:c=!1,required:d=!1,readOnly:u=!1,id:h,name:m,autoComplete:p,autoFocus:g=!1,size:v="md",variant:_,invalid:S=!1,valid:f=!1,maxLength:b,minLength:E,pattern:N,min:y,max:C,step:L,ariaLabel:x,ariaDescribedBy:A}=t;const{generateInputClass:T}=fo({size:v,variant:_,disabled:c,invalid:S,valid:f}),O=T({className:s,size:v,variant:_,disabled:c,invalid:S,valid:f,type:a});return e("input",{type:a,className:O,value:n,onChange:i,onBlur:r,onFocus:o,placeholder:l,disabled:c,required:d,readOnly:u,id:h,name:m,autoComplete:p,autoFocus:g,maxLength:b,minLength:E,pattern:N,min:y,max:C,step:L,"aria-label":x,"aria-describedby":A,"aria-invalid":S})};function Eo(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:i=t.valid,className:r=""}=e;let o="";n?o=te.CLASSES.INVALID:i&&(o=te.CLASSES.VALID);const l=a?te.CLASSES.DISABLED:"";return`${te.CLASSES.BASE} ${o} ${l} ${r}`.trim()}}}bo.displayName="Input";const No=a=>{let{label:n,checked:i=!1,onChange:r,className:o="",disabled:l=!1,required:s=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,ariaLabel:p,ariaDescribedBy:g}=a;const{generateRadioClass:v}=Eo({disabled:l,invalid:h,valid:m}),_=v({className:o,disabled:l,invalid:h,valid:m});return t("div",{className:_,children:[e("input",{type:"radio",className:"c-radio__input",checked:i,onChange:r,disabled:l,required:s,id:c,name:d,value:u,"aria-label":n?void 0:p,"aria-describedby":g,"aria-invalid":h}),n&&e("label",{className:"c-radio__label",htmlFor:c,children:n})]})};function yo(e){const t=r(null),a=r(null),n=r(null),i={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},l=!!i.backgroundImageSrc,s=!!i.imageSrc,c=s&&"center"!==i.alignment,d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;if(!e)return;const a=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const i=()=>{const t=window.pageYOffset*a,n=e.querySelector(k.SELECTORS.BG);n&&(n.style.transform=`translateY(${t}px)`)};n.current=i,window.addEventListener("scroll",i),i()},u=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(k.SELECTORS.BG);t&&(t.style.transform=""),n.current&&(window.removeEventListener("scroll",n.current),n.current=null)};o((()=>{const e=t.current;return e&&i.parallax&&l&&d(e,i.parallaxIntensity),()=>{e&&n.current&&u(e)}}),[i.parallax,i.parallaxIntensity,l]);return{generateHeroClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=[k.SELECTORS.HERO.replace(".","")];return"center"===i.alignment?t.push(k.CLASSES.CENTER):"right"===i.alignment?t.push(k.CLASSES.RIGHT):"left"===i.alignment&&t.push(k.CLASSES.LEFT),i.fullViewportHeight&&t.push(k.CLASSES.FULL_VH),i.parallax&&t.push("c-hero--parallax"),i.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:function(){const e=[`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.imageColSize||7}`];return"left"===i.alignment&&e.push("u-mt-5 u-mt-md-0"),e.join(" ")},generateContentColClass:function(){return`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.contentColSize||5}`},hasBackgroundImage:l,hasForegroundImage:s,useGridLayout:c,heroRef:t,videoRef:a,applyParallaxEffect:d,removeParallaxEffect:u}}function Co(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const a=[U.SELECTORS.RIVER.replace(".","")];return t.center&&a.push(U.CLASSES.CENTER),t.breakout&&a.push(U.CLASSES.BREAKOUT),t.reverse&&a.push(U.CLASSES.REVERSE),e&&a.push(e),a.join(" ")},generateContentClass:()=>U.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>U.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function Lo(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[a,n]=i(t.expanded||!1);return{defaultProps:t,isExpanded:a,setIsExpanded:n,generateNavbarClass:e=>{const{position:a=t.position,variant:n,collapsible:i=t.collapsible,className:r=""}=e;return`c-navbar ${"static"!==a?`c-navbar--${a}`:""} ${n?`c-navbar--${n}`:""} ${i?"c-navbar--collapsible":""} ${r}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!a;n(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:a}}function xo(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:a=t.alignment,variant:n=t.variant,className:i=""}=e;return`c-nav ${"start"!==a?`c-nav--${a}`:""} ${"default"!==n?`c-nav--${n}`:""} ${i}`.trim()}}}function Ao(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:a=t.dropdown,megaMenu:n=t.megaMenu,active:i=t.active,disabled:r=t.disabled,className:o=""}=e;return`c-nav__item ${a&&!n?X.SELECTORS.DROPDOWN.replace(".",""):""} ${n?"c-nav__item--mega-menu":""} ${i?X.CLASSES.ACTIVE:""} ${r?X.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:function(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`c-nav__link ${arguments.length>0&&void 0!==arguments[0]&&arguments[0]?X.CLASSES.ACTIVE:""} ${e?"c-nav__link--disabled":""} ${t}`.trim()},handleClick:e=>a=>{!t.disabled&&e?e():a.preventDefault()}}}function To(e){const t={collapsible:!0,isOpen:!1,...e},[a,n]=i(t.isOpen||!1),l=r(null),s=r(null);o((()=>{void 0!==t.isOpen&&n(t.isOpen)}),[t.isOpen]),o((()=>{const e=()=>{const e=window.innerWidth<768;if(!e&&t.collapsible)"function"==typeof t.onToggle?t.onToggle(!0):n(!0),l.current&&(l.current.style.height="auto");else if(e&&l.current&&s.current){const e=void 0!==t.isOpen?t.isOpen:a;l.current.style.height=e?`${s.current.scrollHeight}px`:"0px"}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t.collapsible,t.isOpen,t.onToggle,a]),o((()=>{if(window.innerWidth<768&&l.current&&s.current&&t.collapsible){const e=void 0!==t.isOpen?t.isOpen:a;l.current.style.height=e?`${s.current.scrollHeight}px`:"0px"}}),[t.isOpen,a,t.collapsible]);const c=()=>void 0!==t.isOpen?t.isOpen:a;return{defaultProps:t,isOpenState:c(),wrapperRef:l,innerRef:s,generateSideMenuClass:e=>{const{className:t="",isOpen:a=!1}=e,n=a?H.CLASSES.IS_OPEN:"";return`${H.CLASSES.BASE} ${n} ${t}`.trim()},generateWrapperClass:()=>H.CLASSES.WRAPPER,handleToggle:()=>{if(t.disabled)return;const e=void 0!==t.isOpen?!t.isOpen:!a;"function"==typeof t.onToggle?t.onToggle(e):n(e)},getCurrentOpenState:c}}function Oo(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:a=t.disabled,className:n=""}=t,i=e?H.CLASSES.ACTIVE:"",r=a?H.CLASSES.DISABLED:"";return`${H.CLASSES.LINK} ${i} ${r} ${n}`.trim()},handleClick:e=>a=>{t.disabled?a.preventDefault():e&&e(a)}}}function Io(e,t){return e.classList.contains(t)}No.displayName="Radio";const wo={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function Ro(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const a=wo[e]||"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${a}"></path>\n </svg>`}function Mo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function ko(e){const t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return t?t[1]:null}function Do(e){return/(?:youtube\.com|youtu\.be)/.test(e)}var Po=Object.freeze({__proto__:null,addClass:function(e,t){Io(e,t)||e.classList.add(t)},cn:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).flat().map((e=>String(e).trim())).filter(Boolean).join(" ")},createIconElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const n=document.createElement("span");return n.className=a||"c-icon",n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.innerHTML=Ro(e,t),n},createPhosphorIcon:Ro,extractYouTubeId:ko,generateUUID:Mo,getAvailableIcons:function(){return Object.keys(wo)},hasClass:Io,isYouTubeUrl:Do,removeClass:function(e,t){Io(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,a){e.classList.toggle(t,a)}});function $o(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[a,n]=i(t.items||[]),[r,o]=i(""),l=e=>{if(!e.trim())return null;const t={id:Mo(),text:e.trim(),completed:!1};return n((e=>[...e,t])),o(""),t};return{items:a,inputText:r,setInputText:o,addTodo:l,toggleTodo:e=>{let t=null;return n((a=>a.map((a=>a.id===e?(t={...a,completed:!a.completed},t):a)))),t},deleteTodo:e=>{const t=a.length;return n((t=>t.filter((t=>t.id!==e)))),a.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!r.trim())return;const a=l(r);a&&t&&t(a.text)},generateTodoClasses:e=>{const{size:a=t.size,className:n="",disabled:i=!1}=e,r="md"===a?"":`c-todo--${a}`,o=i?"c-todo--disabled":"";return`${q.CLASSES.BASE} ${r} ${o} ${n}`.trim()},generateItemClasses:e=>{const t=e.completed?q.CLASSES.COMPLETED:"";return`${q.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?a:a.filter((e=>!e.completed))}}}function Bo(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,l="md"===a?"":"sm"===a?ne.CLASSES.SMALL:ne.CLASSES.LARGE;let s="";i?s=ne.CLASSES.INVALID:r&&(s=ne.CLASSES.VALID);const c=n?ne.CLASSES.DISABLED:"";return`${ne.CLASSES.BASE} ${l} ${s} ${c} ${o}`.trim()}}}function Fo(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:l=""}=e,s="md"===a?"":"sm"===a?ie.CLASSES.SMALL:ie.CLASSES.LARGE,c=n?`c-input--${n}`:"";let d="";r?d=ie.CLASSES.INVALID:o&&(d=ie.CLASSES.VALID);const u=i?ie.CLASSES.DISABLED:"";return`${ie.CLASSES.BASE} ${s} ${c} ${d} ${u} ${l}`.trim()}}}function zo(e){const{slides:t,slidesToShow:a=1,spaceBetween:n=0,loop:l=!1,initialSlide:s=0,direction:c="horizontal",speed:d=300,allowTouchMove:u=!0,threshold:p=50,onSlideChange:g}=e,v=r(null),_=r(null),S=r(!1),[f,b]=i(s),[E,N]=i(0),[y,C]=i(!1),[L,x]=i(0),[A,T]=i(!1),[O,I]=i(0),[w,R]=i(0),M=m((()=>0===L?0:(L-n*(a-1))/a),[L,n,a]),k=m((()=>{if(!l||0===t.length)return t;return[...t.map(((e,t)=>({...e,id:`set1-${e.id||t}`}))),...t.map(((e,t)=>({...e,id:`set2-${e.id||t}`}))),...t.map(((e,t)=>({...e,id:`set3-${e.id||t}`})))]}),[t,l]),D=t.length,P=m((()=>0===M?0:-E*M+w),[M,E,w]);o((()=>{N(l?t.length+s:s)}),[l,t.length,s]),o((()=>{const e=()=>{if(v.current){const e="horizontal"===c?v.current.offsetWidth:v.current.offsetHeight;x(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c]);const $=h((()=>{if(!y)if(l){const e=(f+1)%t.length,a=E+1;b(e),N(a),C(!0),R(0),setTimeout((()=>{C(!1),null==g||g(e),a>=2*t.length&&(S.current=!0,N(t.length+e),setTimeout((()=>{S.current=!1}),0))}),d)}else{const e=Math.min(f+1,t.length-a);b(e),N(e),C(!0),R(0),setTimeout((()=>{C(!1),null==g||g(e)}),d)}}),[f,E,t.length,a,l,y,d,g,k.length,D]),B=h((()=>{if(!y)if(l){const e=0===f?t.length-1:f-1,a=E-1;b(e),N(a),C(!0),R(0),setTimeout((()=>{C(!1),null==g||g(e),a<t.length&&(S.current=!0,N(t.length+e),setTimeout((()=>{S.current=!1}),0))}),d)}else{const e=Math.max(f-1,0);b(e),N(e),C(!0),R(0),setTimeout((()=>{C(!1),null==g||g(e)}),d)}}),[f,E,t.length,l,y,d,g,k.length,D]),F=h((e=>{y||e===f||(C(!0),R(0),b(e),N(l?t.length+e:e),setTimeout((()=>{C(!1),null==g||g(e)}),d))}),[f,y,d,g,l,D]),z=h((e=>{var t,a;if(!u)return;const n="horizontal"===c?"touches"in e?(null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0:e.clientX:"touches"in e?(null===(a=e.touches[0])||void 0===a?void 0:a.clientY)||0:e.clientY;I(n),T(!0),R(0)}),[u,c]),G=h((e=>{var t,a;if(!A||!u)return;const n="horizontal"===c?"touches"in e?(null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0:e.clientX:"touches"in e?(null===(a=e.touches[0])||void 0===a?void 0:a.clientY)||0:e.clientY,i=O-n;Math.abs(i)>10&&(e.preventDefault(),R(.5*-i))}),[A,O,u,c]),V=h((e=>{var t,a;if(!A||!u)return;const n="horizontal"===c?"changedTouches"in e?(null===(t=e.changedTouches[0])||void 0===t?void 0:t.clientX)||0:e.clientX:"changedTouches"in e?(null===(a=e.changedTouches[0])||void 0===a?void 0:a.clientY)||0:e.clientY,i=O-n;T(!1),R(0),Math.abs(i)>p&&(i>0?$():B())}),[A,O,p,$,B,u,c]),U=l||f<t.length-a,Y=l||f>0;return{activeIndex:f,realIndex:f,previousIndex:f,isBeginning:!l&&0===f,isEnd:!l&&f>=t.length-a,progress:t.length>0?f/(t.length-1):0,autoplayRunning:!1,transitioning:y,touching:A,translate:P,slidesPerView:a,slidesCount:t.length,isLocked:!1,destroyed:!1,size:L,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:U,allowSlidePrev:Y,allowTouchMove:u,animating:y,enabled:!0,initialized:!0,slideNext:$,slidePrev:B,goToSlide:F,canSlideNext:U,canSlidePrev:Y,containerRef:v,wrapperRef:_,handleTouchStart:z,handleTouchMove:G,handleTouchEnd:V,allSlides:k,translateValue:P,slideWidth:M,currentSlidesToShow:a,loopedSlides:D,repositioningRef:S}}var Go=Object.freeze({__proto__:null,DOTS:Hr,useAccordion:ve,useBadge:ye,useBarChart:Lr,useBlock:xe,useBreadcrumb:function(e){return{defaultOptions:{items:[],divider:M.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[M.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[M.CLASSES.ITEM,e.active||t?M.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>Boolean(e.href&&!e.active&&!t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(e){return[]}}}},useButton:Oe,useCard:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{elevationEffect:t=!1,elevationClass:a=ae.CLASSES.ACTIVE,flipEffect:n=!1,flipTrigger:o="click",focusEffect:l=!1,clickable:s=!1,onClick:c}=e,d=r(null),u=r(null),m=r(null),[p,g]=i(!1),[v,_]=i(!1),[S,f]=i(!1),[b,E]=i(!1),N=h((e=>{n&&"click"===o&&g((e=>!e)),c&&c(e)}),[n,o,c]),y=h((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n&&"click"===o&&g((e=>!e)),c&&c(e))}),[n,o,c]),C=h((()=>{E(!0),t&&_(!0),n&&"hover"===o&&g(!0)}),[t,n,o]),L=h((()=>{E(!1),t&&_(!1),n&&"hover"===o&&g(!1)}),[t,n,o]),x=h((()=>{f(!0)}),[]),A=h((()=>{f(!1)}),[]),T=h((()=>({className:[ae.CLASSES.BASE,v?a:"",p?ae.CLASSES.FLIPPED:"",S&&l?ae.CLASSES.FOCUSED:"",s?ae.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:s||n?0:-1,role:s?"button":void 0,onMouseEnter:C,onMouseLeave:L,onFocus:x,onBlur:A,onClick:N,onKeyDown:y})),[v,p,S,a,l,s,C,L,x,A,N,y,n]);return{cardRef:d,frontRef:u,backRef:m,isFlipped:p,isElevated:v,isFocused:S,isHovered:b,handleClick:N,handleKeyDown:y,handleMouseEnter:C,handleMouseLeave:L,handleFocus:x,handleBlur:A,getCardProps:T}},useChartData:function(e){const t=m((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||`Point ${t+1}`}))):[]),[e]),a=m((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),a=Math.min(...e),n=Math.max(...e),i=pr(e).call(e,((e,t)=>e+t),0);return{min:a,max:n,total:i,average:i/e.length}}),[t]);return{data:t,stats:a,isEmpty:0===t.length}},useChartInteraction:function(){const[e,t]=i({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:h((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:h((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:h((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}},useChartScale:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;return m((()=>{const n={top:20,right:20,bottom:40,left:40},i=t-n.left-n.right,r=a-n.top-n.bottom;if(!e.length)return{xScale:()=>n.left,yScale:()=>n.top+r,width:t,height:a,padding:n};const o=e.map((e=>e.value)),l=Math.min(0,...o),s=Math.max(...o)-l||1;return{xScale:t=>n.left+t/Math.max(e.length-1,1)*i,yScale:e=>n.top+r-(e-l)/s*r,width:t,height:a,padding:n}}),[e,t,a])},useCheckbox:mo,useDataTable:Ur,useEdgePanel:ro,useForm:go,useFormGroup:_o,useHero:yo,useInput:fo,useLineChart:br,useModal:function(){let{isOpen:e,onOpenChange:t,onOpen:a,onClose:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,l]=i(!1),s=void 0!==e,c=s?!!e:r;o((()=>{s&&l(!!e)}),[e,s]);const d=h((e=>{s||l(e),t&&t(e),e&&a?a():!e&&n&&n()}),[s,t,a,n]),u=h((()=>{d(!0)}),[d]),m=h((()=>{d(!1)}),[d]),p=h((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:m,toggle:p}},useNav:xo,useNavDropdown:function(e){const t={alignment:"start",megaMenu:!1,...e},a=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:a=t.alignment,megaMenu:n=t.megaMenu,className:i=""}=e,r=n?X.SELECTORS.MEGA_MENU.replace(".",""):X.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===a?o=`${r}--center`:"end"===a&&(o=`${r}--end`),`${r} ${o} ${i}`.trim()},isInFixedBottomNavbar:a,getIconClass:function(){return"c-nav__icon "+(a()?"icon-lux-caret-up":"icon-lux-caret-down")},getIconName:function(){return a()?"CaretUp":"CaretDown"}}},useNavItem:Ao,useNavbar:Lo,usePagination:jr,usePieChart:kr,useRadio:Eo,useRiver:Co,useSelect:Bo,useSideMenu:To,useSideMenuItem:Oo,useSlider:zo,useSpinner:Yr,useTextarea:Fo,useTodo:$o});const Vo=a=>{let{options:n=[],value:l,onChange:s,onBlur:c,onFocus:d,placeholder:u="Select an option",className:h="",disabled:m=!1,required:p=!1,id:g,name:v,size:_="md",invalid:S=!1,valid:f=!1,multiple:b=!1,ariaLabel:E,ariaDescribedBy:N}=a;const{generateSelectClass:y}=Bo({size:_,disabled:m,invalid:S,valid:f}),C=y({className:h,size:_,disabled:m,invalid:S,valid:f}),[L,x]=i(!1),[A,T]=i(u),O=r(null),I=r(null),w=r(null),R=r(null);o((()=>{if(l){const e=n.find((e=>e.value===l));e&&T(e.label)}else T(u)}),[l,n,u]),o((()=>{const e=e=>{O.current&&!O.current.contains(e.target)&&(x(!1),w.current&&(w.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);return t("div",{className:`${C} ${L?ne.CLASSES.IS_OPEN:""}`,ref:O,"aria-expanded":L,children:[t("select",{ref:R,value:l,onChange:s,onBlur:c,onFocus:d,disabled:m,required:p,id:g,name:v,multiple:b,"aria-label":E,"aria-describedby":N,"aria-invalid":S,style:{display:"none"},children:[u&&e("option",{value:"",disabled:!0,children:u}),n.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:ne.CLASSES.SELECTED,onClick:()=>{m||(!L&&w.current&&I.current?w.current.style.height=`${I.current.clientHeight}px`:w.current&&(w.current.style.height="0px"),x(!L))},"aria-disabled":m,children:A}),e("i",{className:`${ne.CLASSES.ICON_CARET} ${ne.CLASSES.TOGGLE_ICON}`}),e("div",{className:ne.CLASSES.SELECT_BODY,ref:w,style:{height:0},children:e("div",{className:ne.CLASSES.SELECT_PANEL,ref:I,children:e("ul",{className:ne.CLASSES.SELECT_ITEMS,children:n.map(((a,n)=>e("li",{className:ne.CLASSES.SELECT_ITEM,"data-value":a.value,onClick:()=>!a.disabled&&(e=>{if(T(e.label),x(!1),w.current&&(w.current.style.height="0px"),R.current&&(R.current.value=e.value),s){const t={target:{name:v,value:e.value}};s(t)}})(a),children:t("label",{htmlFor:`SelectItem${n}`,className:"c-checkbox",children:[e("input",{type:"checkbox",id:`SelectItem${n}`,className:"c-checkbox__input c-select__item-input",checked:l===a.value,readOnly:!0,disabled:a.disabled}),e("div",{className:"c-select__item-label",children:a.label})]})},a.value)))})})})]})};Vo.displayName="Select";const Uo=t=>{let{value:a,onChange:n,onBlur:i,onFocus:r,placeholder:o,className:l="",disabled:s=!1,required:c=!1,readOnly:d=!1,id:u,name:h,rows:m=4,cols:p,maxLength:g,minLength:v,size:_="md",variant:S,invalid:f=!1,valid:b=!1,autoFocus:E=!1,ariaLabel:N,ariaDescribedBy:y}=t;const{generateTextareaClass:C}=Fo({size:_,variant:S,disabled:s,invalid:f,valid:b}),L=C({className:l,size:_,variant:S,disabled:s,invalid:f,valid:b});return e("textarea",{className:L,value:a,onChange:n,onBlur:i,onFocus:r,placeholder:o,disabled:s,required:c,readOnly:d,id:u,name:h,rows:m,cols:p,maxLength:g,minLength:v,autoFocus:E,"aria-label":N,"aria-describedby":y,"aria-invalid":f})};Uo.displayName="Textarea";const Yo=n=>{let{title:i,subtitle:r,text:o,imageSrc:l,imageAlt:s="Hero image",alignment:c="left",backgroundImageSrc:d,showOverlay:u=!0,fullViewportHeight:h=!1,actions:m,imageColSize:p=7,contentColSize:g=5,contentWidth:v,className:_="",parallax:S=!1,parallaxIntensity:f=.5,videoBackground:b,videoOptions:E={autoplay:!0,loop:!0,muted:!0}}=n;const{generateHeroClassNames:N,generateImageColClass:y,generateContentColClass:C,hasBackgroundImage:L,hasForegroundImage:x,useGridLayout:A,heroRef:T,videoRef:O}=yo({alignment:c,imageColSize:p,contentColSize:g,imageSrc:l,backgroundImageSrc:d,showOverlay:u,fullViewportHeight:h,contentWidth:v,parallax:S,parallaxIntensity:f,videoBackground:b}),I=v?{"--atomix-hero-content-width":v}:void 0,w=()=>{if(!b)return null;const{autoplay:a,loop:n,muted:i,posterUrl:r}=E;return t("video",{ref:O,className:"c-hero__video",autoPlay:a,loop:n,muted:i,playsInline:!0,poster:r,children:[e("source",{src:b,type:`video/${b.split(".").pop()||"mp4"}`}),"Your browser does not support the video tag."]})},R=()=>t("div",{className:k.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:k.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:k.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:k.SELECTORS.TEXT.replace(".",""),children:o}),m&&e("div",{className:k.SELECTORS.ACTIONS.replace(".",""),children:m})]}),M=()=>x?e("div","center"===c?{className:k.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:l,alt:s,className:k.SELECTORS.IMAGE.replace(".","")})}:{className:y(),children:e("img",{src:l,alt:s,className:k.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:T,className:N(_),style:I,"data-parallax":S?"true":void 0,"data-parallax-intensity":S?f:void 0,children:[L||b?t("div",{className:k.SELECTORS.BG.replace(".",""),children:[d&&e("img",{src:d,alt:"Background",className:k.SELECTORS.BG_IMAGE.replace(".","")}),w(),u&&e("div",{className:k.SELECTORS.OVERLAY.replace(".","")})]}):null,e("div",{className:`${k.SELECTORS.CONTAINER.replace(".","")} o-container`,children:A?e("div",{className:`${k.SELECTORS.GRID.replace(".","")} o-grid`,children:t(a,"left"===c?{children:[e("div",{className:C(),children:R()}),M()]}:{children:[M(),e("div",{className:C(),children:R()})]})}):t(a,{children:[R(),M()]})})]})};Yo.displayName="Hero";const Xo=t=>{var a;let{children:i,variant:r="default",className:o="",...l}=t;const s=[R.BASE_CLASS,"default"!==r&&`c-list--${r}`,o].filter(Boolean).join(" "),c=Xi(a=["number","text"]).call(a,r)?"ol":"ul";return e(c,{className:s,...l,children:n.Children.map(i,(t=>e("li",{className:"c-list__item",children:t})))})};Xo.displayName="List";const Ho=a=>{let{messages:n=[],otherAvatar:r,selfAvatar:o,otherName:l,width:s="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",bodyHeight:h,disabled:m=!1,id:p}=a;const{inputValue:g,handleInputChange:v,handleSubmit:_,handleKeyDown:S}=function(){let{onSendMessage:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,a]=i(""),n=n=>{n.preventDefault(),t.trim()&&e&&(e(t.trim()),a(""))};return{inputValue:t,setInputValue:a,handleInputChange:e=>{a(e.target.value)},handleSubmit:n,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),n(e))}}}({onSendMessage:c}),f=p||`messages-${Math.random().toString(36).substr(2,9)}`,b=`${f}-input`;return t("div",{className:`${se.CLASSES.BASE} ${m?"is-disabled":""} ${u}`,style:{"--atomix-messages-width":s},id:f,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[e("div",{className:se.CLASSES.BODY,style:h?{"--atomix-messages-body-height":h}:void 0,children:n.map((a=>t("div",{className:`${se.CLASSES.CONTENT} ${a.isSelf?se.CLASSES.CONTENT_SELF:""}`,"aria-label":`${a.isSelf?"You":l||"Other person"} sent a message at ${a.time}`,children:[e(Ee,{src:a.isSelf?o:r,size:"xl",circle:!0,className:se.CLASSES.AVATAR,alt:a.isSelf?"Your avatar":`${l||"Other person"}'s avatar`}),t("div",{className:se.CLASSES.ITEMS,children:[!a.isSelf&&l&&e("div",{className:se.CLASSES.NAME,children:l}),a.text&&t("div",{className:se.CLASSES.TEXT,children:[a.text,e("span",{className:se.CLASSES.TIME,"aria-label":`Sent at ${a.time}`,children:a.time})]}),a.image&&e("img",{className:se.CLASSES.IMAGE,src:a.image,alt:"Message attachment",loading:"lazy"}),a.file&&t("div",{className:se.CLASSES.FILE,"aria-label":`File attachment: ${a.file.name}, size: ${a.file.size}`,children:[e("span",{className:se.CLASSES.FILE_ICON,children:e(be,{name:"File","aria-hidden":"true"})}),t("div",{className:se.CLASSES.FILE_DETAILS,children:[e("div",{className:se.CLASSES.FILE_NAME,children:a.file.name}),e("div",{className:se.CLASSES.FILE_SIZE,children:a.file.size})]})]})]})]},a.id)))}),t("form",{className:se.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[t("div",{className:se.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:b,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:b,type:"text",className:se.CLASSES.INPUT,placeholder:d,value:g,onChange:v,onKeyDown:S,disabled:m,"aria-label":"Message input"}),t("div",{className:se.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Attach file",disabled:m,children:e(be,{name:"PaperclipHorizontal","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Attach image",disabled:m,children:e(be,{name:"Image","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Insert link",disabled:m,children:e(be,{name:"Link","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:se.CLASSES.SUBMIT,"aria-label":"Send message",disabled:m,children:e(be,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};Ho.displayName="Messages";const Wo=a=>{let{children:n,isOpen:l=!1,onOpenChange:s,onClose:c,onOpen:d,title:u,subtitle:m,size:p="md",backdrop:g=!0,keyboard:v=!0,className:_="",closeButton:S=!0,footer:f,...b}=a;const E=r(null),N=r(null),y=r(null),{isOpen:C,open:L,close:x}=function(){let{isOpen:e,onOpenChange:t,onOpen:a,onClose:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,l]=i(!1),s=void 0!==e,c=s?!!e:r;o((()=>{s&&l(!!e)}),[e,s]);const d=h((e=>{s||l(e),t&&t(e),e&&a?a():!e&&n&&n()}),[s,t,a,n]),u=h((()=>{d(!0)}),[d]),m=h((()=>{d(!1)}),[d]),p=h((()=>{d(!c)}),[c,d]);return{isOpen:c,open:u,close:m,toggle:p}}({isOpen:l,onOpenChange:s,onClose:c,onOpen:d});o((()=>{if(!v)return;const e=e=>{"Escape"===e.key&&C&&x()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[C,x,v]);const A=["c-modal",C?le.CLASSES.IS_OPEN:"",p?`c-modal--${p}`:"",_].filter(Boolean).join(" ");return t("div",{ref:E,className:A,style:{display:C?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!C,...b,children:[e("div",{ref:y,className:"c-modal__backdrop",onClick:e=>{g&&e.target===e.currentTarget&&x()}}),e("div",{ref:N,className:"c-modal__dialog",children:t("div",{className:"c-modal__content",children:[(u||S)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[u&&e("h3",{className:"c-modal__title",children:u}),m&&e("p",{className:"c-modal__sub",children:m})]}),S&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:x,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),e("div",{className:"c-modal__body",children:n}),f&&e("div",{className:"c-modal__footer",children:f})]})})]})};Wo.displayName="Modal";const jo=u(((t,a)=>{let{children:i,alignment:r="start",variant:o="default",className:l="",disabled:s=!1}=t;const{generateNavClass:c}=xo({alignment:r,variant:o}),d=c({alignment:r,variant:o,className:l});return e("ul",{ref:a,className:d,role:"menubar","aria-orientation":"horizontal",children:n.Children.map(i,(e=>{if(n.isValidElement(e)){const t=e.props;return n.cloneElement(e,{...t,disabled:!!s||(null==t?void 0:t.disabled)})}return e}))})}));jo.displayName="Nav";const Zo=u(((a,l)=>{let{children:s,dropdown:c=!1,megaMenu:d=!1,active:u=!1,href:h,onClick:m,className:p="",disabled:g=!1,"aria-expanded":v,LinkComponent:_}=a;const{generateNavItemClass:S,generateNavLinkClass:f,handleClick:b}=Ao({dropdown:c,megaMenu:d,active:u,disabled:g}),[E,N]=i(!1),y=r(null);o((()=>{if(!c&&!d||!E)return;const e=e=>{if(y.current&&!y.current.contains(e.target)){window.innerWidth<768||N(!1)}};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[c,d,E]),o((()=>{if(!c&&!d)return;const e=()=>{!(window.innerWidth<768)&&E&&N(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[c,d,E]);const C=S({dropdown:c,megaMenu:d,active:u,disabled:g,className:p})+(E?" is-active":""),L=f(u,g,c||d?"c-nav__dropdown-toggle":""),x=n.Children.toArray(s),A=void 0!==v?v:E,T={ref:y,href:h||"#",className:L,onClick:c||d?e=>{(c||d)&&(e.preventDefault(),N(!E))}:b(m),"aria-disabled":g,"aria-expanded":c||d?A:void 0,"aria-current":!u||c||d?void 0:"page"};return t("li",{ref:l,className:C,role:"menuitem","aria-haspopup":c||d,children:[e(_||"a",{...T,children:c||d?x[0]:s}),(c||d)&&x.length>1&&x[1]]})}));Zo.displayName="NavItem";const Ko=u(((a,n)=>{let{brand:l,children:s,variant:c,position:d="static",containerWidth:u,collapsible:h=!0,expanded:m,onToggle:p,className:g="",disabled:v=!1,backdrop:_=!1,closeOnOutsideClick:S=!0,closeOnEscape:f=!0,ariaLabel:b="Main navigation",id:E}=a;const{generateNavbarClass:N,generateContainerStyle:y,generateCollapseClass:C}=Lo({position:d,collapsible:h,expanded:m,onToggle:p}),[L,x]=i(m||!1),A=r(null);o((()=>{void 0!==m&&x(m)}),[m]),o((()=>{const e=()=>{!(window.innerWidth<768)&&h&&("function"==typeof p?m&&p(!1):x(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[h,m,p]);const T=N({position:d,variant:c,collapsible:h,className:g}),O=y(u),I=C(L);return e("nav",{ref:n,className:T,"aria-label":b,id:E,children:t("div",{className:"c-navbar__container",style:O,children:[l&&("string"==typeof l?e("a",{href:"/",className:"c-navbar__brand",children:l}):e("div",{className:"c-navbar__brand",children:l})),h&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(v)return;const e=!L;"function"==typeof p?p(e):x(e)},"aria-expanded":L,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:v,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:I,ref:A,children:s})]})})}));Ko.displayName="Navbar";const qo=u(((a,n)=>{let{title:i,children:r,isOpen:o,onToggle:l,collapsible:s=!0,className:c="",disabled:d=!1,toggleIcon:u,id:h}=a;const{isOpenState:m,wrapperRef:p,innerRef:g,generateSideMenuClass:v,generateWrapperClass:_,handleToggle:S}=To({isOpen:o,onToggle:l,collapsible:s,disabled:d}),f=v({className:c,isOpen:m}),b=_(),E=e(be,{name:"CaretRight",size:"xs"});return t("div",{ref:n,className:f,id:h,children:[i&&s&&t("div",{className:"c-side-menu__toggler",onClick:S,role:"button",tabIndex:d?-1:0,"aria-expanded":m,"aria-controls":h?`${h}-content`:void 0,"aria-disabled":d,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||d||(e.preventDefault(),S())},children:[e("span",{className:"c-side-menu__title",children:i}),e("span",{className:"c-side-menu__toggler-icon",children:u||E})]}),i&&!s&&e("h3",{className:"c-side-menu__title",children:i}),e("div",{ref:p,className:b,id:h?`${h}-content`:void 0,"aria-hidden":!!s&&!m,children:e("div",{ref:g,className:"c-side-menu__inner",children:r})})]})}));qo.displayName="SideMenu";const Qo=u(((a,n)=>{let{children:i,href:r,onClick:o,active:l=!1,disabled:s=!1,icon:c,className:d="",target:u,rel:h,LinkComponent:m}=a;const{generateSideMenuItemClass:p,handleClick:g}=Oo({active:l,disabled:s,className:d}),v=p(),_={ref:n,href:s?void 0:r,className:v,onClick:g(o),"aria-disabled":s,"aria-current":l?"page":void 0,target:u,rel:h,tabIndex:s?-1:0};return r?t(m||"a",{..._,children:[c&&e("span",{className:"c-side-menu__link-icon",children:c}),e("span",{className:"c-side-menu__link-text",children:i})]}):t("button",{ref:n,type:"button",className:v,onClick:g(o),disabled:s,"aria-current":l?"page":void 0,tabIndex:s?-1:0,children:[c&&e("span",{className:"c-side-menu__link-icon",children:c}),e("span",{className:"c-side-menu__link-text",children:i})]})}));Qo.displayName="SideMenuItem";const Jo=u(((t,a)=>{let{children:i,className:r=""}=t;const o=`c-side-menu__list ${r}`.trim();return e("ul",{ref:a,className:o,role:"list",children:n.Children.map(i,((t,a)=>n.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},a):t))})}));Jo.displayName="SideMenuList";const el=a=>{let{currentIndex:n,imagesLength:i,onZoomOut:r,onResetZoom:o,onZoomIn:l,onToggleFullscreen:s,onClose:c,isFullscreen:d,zoomLevel:u,onRotate:h,onDownload:m,onShare:p,showInfo:g,onToggleInfo:v,currentImage:_}=a;return t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(Ce,{label:`${n+1} / ${i}`,variant:"primary",size:"sm"}),(null==_?void 0:_.title)&&e("h3",{className:"c-photo-viewer__image-title",children:_.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:u<=.1,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(be,{name:"Minus",size:"sm"})}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:1===u,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(be,{name:"MagnifyingGlass",size:"sm"})}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,disabled:u>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(be,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(be,{name:"ArrowsClockwise",size:"sm"})}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(be,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:p,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(be,{name:"Share",size:"sm"})}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:v,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(g?"is-active":""),icon:e(be,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":d?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(be,{name:d?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:c,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(be,{name:"X",size:"sm"})})]})]})},tl=n=>{let{show:i,onPrev:r,onNext:l,currentIndex:s,imagesLength:c,enableKeyboardNav:d,onClose:u}=n;return o((()=>{if(!d)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&l(),"Escape"===e.key&&u()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[d,r,l,u]),i?t(a,{children:[e(Ie,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:0===s,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:e(be,{name:"CaretLeft",size:"md"})}),e(Ie,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:l,disabled:s===c-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(be,{name:"CaretRight",size:"md"})})]}):null},al=t=>{let{imageRef:a,containerRef:n,src:l,alt:s,zoomLevel:c,dragPosition:d,isDragging:u,rotationAngle:h,isTransitioning:m=!1,onMouseDown:p,onMouseMove:g,onMouseUp:v,onWheel:_,onTouchStart:S,onTouchMove:f,onTouchEnd:b,onDoubleClick:E}=t;const N=r(null),y=n||N,[C,L]=i(!1);o((()=>(L(!0),()=>L(!1))),[]);return o((()=>{const e=y.current;if(!e)return;const t=t=>{C&&e&&_&&_(t)},a=t=>{C&&e&&S&&S(t)},n=t=>{C&&e&&f&&f(t)},i=t=>{C&&e&&b&&b(t)};return C&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",a,{passive:!1}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",i,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",i)}}),[C,_,S,f,b,y]),e("div",{ref:y,className:"c-photo-viewer__image-container "+(m?"is-transitioning":""),style:{cursor:u?"grabbing":c>1?"grab":"default",opacity:m?.7:1,touchAction:"none"},onMouseDown:p,onMouseMove:g,onMouseUp:v,onMouseLeave:v,onDoubleClick:e=>{C&&E&&E(e)},children:e("img",{ref:a,src:l,alt:s,className:"c-photo-viewer__image",style:{transform:`scale(${c}) translate(${d.x}px, ${d.y}px) rotate(${h}deg)`,transition:u?"none":m?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:u?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},nl=a=>{let{images:n,currentIndex:i,goToImage:r}=a;return n.length<=1?null:e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((a,n)=>{const o=a.thumbnail||a.src,l=n===i;return e(Ie,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(l?"is-active":""),onClick:()=>r(n),"aria-label":`View image ${n+1}${a.title?`: ${a.title}`:""}`,"aria-current":l,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:o,alt:a.alt||`Thumbnail ${n+1}`,className:"c-photo-viewer__thumbnail-img"}),l&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},n)}))})})},il=a=>{let{show:n,image:i,onClose:r}=a;return n&&i?t("div",{className:"c-photo-viewer__info-panel",children:[t("div",{className:"c-photo-viewer__info-header",children:[e("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),e(Ie,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(be,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[i.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:i.title})}),i.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:i.description})}),(i.date||i.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[i.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(be,{name:"Calendar",size:14}),e("span",{children:i.date})]}),i.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(be,{name:"User",size:14}),e("span",{children:i.author})]})]})}),i.tags&&i.tags.length>0&&t("div",{className:"c-photo-viewer__info-section",children:[e("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),e("div",{className:"c-photo-viewer__info-tags",children:i.tags.map(((t,a)=>e(Ce,{label:t,variant:"secondary",size:"sm"},a)))})]})]})]}):null},rl=a=>{let{images:n,startIndex:l=0,className:s="",disabled:c=!1,enableKeyboardNavigation:d=!0,enableGestures:u=!0,enableFullscreen:p=!0,thumbnailPosition:g="bottom",onImageChange:v,onClose:_}=a;const{currentIndex:S,zoomLevel:f,imagePosition:b,isDragging:E,isFullscreen:N,rotationAngle:y,showInfo:C,imageRef:L,containerRef:x,isTransitioning:A,setZoomLevel:T,setImagePosition:O,setIsDragging:I,setIsFullscreen:w,setRotationAngle:R,setShowInfo:M,closeModal:k,goToPrevious:D,goToNext:P,setCurrentIndex:$,handleMouseDown:B,handleMouseMove:F,handleMouseUp:z,handleWheel:G,handleTouchStart:V,handleTouchMove:U,handleTouchEnd:Y,handleDoubleClick:X,resetImageState:H}=(e=>{let{images:t,startIndex:a=0,enableGestures:n=!0,onImageChange:l,onClose:s}=e;const[c,d]=i(a),[u,m]=i(!1),[p,g]=i(!1),[v,_]=i({x:0,y:0}),[S,f]=i(!1),[b,E]=i(!1),[N,y]=i({}),[C,L]=i(!1),[x,A]=i(!1),[T,O]=i({velocity:0,timestamp:0}),I=r(null),w=r(null),R=r([]),M=r(null),k=r(null),D=r(0),P=r(null),$=h(((e,t)=>{if(!x||!I.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const a=I.current,n=w.current;if(!a.naturalWidth&&!a.width)return{minX:0,maxX:0,minY:0,maxY:0};const i=a.naturalWidth||a.width||800,r=a.naturalHeight||a.height||600;try{const a=n.getBoundingClientRect();if(!a||0===a.width||0===a.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=a.width,l=a.height,s=t*Math.PI/180,c=Math.abs(Math.cos(s)),d=Math.abs(Math.sin(s)),u=i/r;let h,m;o/l>u?(m=Math.min(.9*l,r),h=m*u):(h=Math.min(.9*o,i),m=h/u);const p=(h*c+m*d)*e,g=(h*d+m*c)*e,v=Math.max(0,(p-o)/2),_=Math.max(0,(g-l)/2);return{minX:-v,maxX:v,minY:-_,maxY:_}}catch(e){return{minX:0,maxX:0,minY:0,maxY:0}}}),[x]),B=h(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);o((()=>(A(!0),a<0||a>=t.length?d(0):d(a),()=>A(!1))),[t,a]),o((()=>{u?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[u]),o((()=>{u&&y((e=>e[c]?e:{...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[u,c]),o((()=>{l&&l(c)}),[c,l]),o((()=>{const e=I.current,t=w.current,a=()=>{x&&e&&t&&y((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=$(t.zoomLevel,t.rotation),n=B(t.position,a);return{...e,[c]:{...t,bounds:a,position:n}}}))};if(!(e&&t&&e.complete&&x))return e&&t&&x?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[c,$,B,x]),o((()=>{const e=()=>{x&&I.current&&w.current&&y((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=$(t.zoomLevel,t.rotation),n=B(t.position,a);return{...e,[c]:{...t,bounds:a,position:n}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,$,B,x]);const F=h((()=>{m(!0)}),[]),z=h((()=>{m(!1),s&&s()}),[s]),G=h((()=>{c>0&&(L(!0),setTimeout((()=>{d((e=>e-1)),L(!1)}),150))}),[c]),V=h((()=>{c<t.length-1&&(L(!0),setTimeout((()=>{d((e=>e+1)),L(!1)}),150))}),[c,t.length]),U=h((e=>{y((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.zoomLevel):e,i=Math.max(.1,Math.min(5,n)),r=$(i,a.rotation),o=B(a.position,r);return{...t,[c]:{...a,zoomLevel:i,bounds:r,position:o}}}))}),[x,c,$,B]),Y=h((e=>{y((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.position):e,i=B(n,a.bounds);return{...t,[c]:{...a,position:i}}}))}),[c,B]),X=h((e=>{y((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=(("function"==typeof e?e(a.rotation):e)%360+360)%360,i=$(a.zoomLevel,n),r=B(a.position,i);return{...t,[c]:{...a,rotation:n,bounds:i,position:r}}}))}),[x,c,$,B]),H=h((e=>{var t;if(!x||!e||!e.currentTarget)return;const a=e.currentTarget;if(a&&"function"==typeof a.getBoundingClientRect){if("undefined"!=typeof window&&null!==(t=window.location)&&void 0!==t&&null!==(t=t.href)&&void 0!==t&&Xi(t).call(t,"storybook"))try{const e=a.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(e){return}y((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},i=/Mac|iPod|iPhone|iPad/.test(navigator.platform),r=e.ctrlKey&&i,o=Math.abs(e.deltaX)>0,l=!e.ctrlKey&&o&&i,s=!e.ctrlKey&&!o&&i,d=!i;let u,h=!1;if(r)u=-.02*e.deltaY,h=!0;else if(l){if(!(n.zoomLevel>1))return t;u=-.003*e.deltaY,h=!0}else s?(u=-.004*e.deltaY,h=!0):d?(u=-.006*e.deltaY,h=!0):(u=-.005*e.deltaY,h=!0);h&&(e.preventDefault(),e.stopPropagation());const m=Date.now(),p=m-D.current;if(D.current=m,r&&p<100){const e=Math.abs(u)/p;O({velocity:e,timestamp:m}),P.current&&clearTimeout(P.current),P.current=setTimeout((()=>{const e=()=>{O((t=>{if(t.velocity<.001)return t;const a=.95*t.velocity,n=a*(u>0?1:-1);return y((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.max(.1,Math.min(5,t.zoomLevel+n));if(a===t.zoomLevel)return e;const i=$(a,t.rotation),r=B(t.position,i);return{...e,[c]:{...t,zoomLevel:a,bounds:i,position:r}}})),a>=.001&&requestAnimationFrame(e),{velocity:a,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50)}let g;try{g=a.getBoundingClientRect()}catch(e){return t}if(!g||0===g.width||0===g.height)return t;const v=g.width/2,_=g.height/2,S=e.clientX-g.left-v,f=e.clientY-g.top-_,b=n.zoomLevel,E=Math.max(.1,Math.min(5,b+u));if(E!==b){const e=E/b,a=$(E,n.rotation),i={x:n.position.x+S*(1-e)*.5,y:n.position.y+f*(1-e)*.5},r=B(i,a);return{...t,[c]:{...n,zoomLevel:E,bounds:a,position:r}}}return t}))}}),[x,c,$,B]),W=h((e=>{if(!x||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&y((a=>{const n=a[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let i;try{i=t.getBoundingClientRect()}catch(e){return a}if(!i||0===i.width||0===i.height)return a;const r=i.width/2,o=i.height/2,l=e.clientX-i.left-r,s=e.clientY-i.top-o;let d,u={x:0,y:0};n.zoomLevel<1.5?(d=2,u={x:.5*-l,y:.5*-s}):n.zoomLevel<3?(d=4,u={x:.75*-l,y:.75*-s}):(d=1,u={x:0,y:0});const h=$(d,n.rotation),m=B(u,h);return{...a,[c]:{...n,zoomLevel:d,bounds:h,position:m}}}))}),[x,c,$,B]),j=h((e=>{y((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return a.zoomLevel>1&&(e.preventDefault(),g(!0),_({x:e.clientX-a.position.x,y:e.clientY-a.position.y})),t}))}),[c]),Z=h((e=>{p&&y((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.min(1,1/a.zoomLevel),i=(e.clientX-v.x)*n,r=(e.clientY-v.y)*n,o=B({x:i,y:r},a.bounds);return{...t,[c]:{...a,position:o}}}))}),[p,v,c,B]),K=h((()=>{g(!1)}),[]),q=h((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),R.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),y((e=>{const a=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&a.zoomLevel>1){g(!0);const e=t[0];e&&_({x:e.clientX-a.position.x,y:e.clientY-a.position.y})}else if(2===t.length){const e=t[0],a=t[1];if(e&&a){const t=e.clientX-a.clientX,n=e.clientY-a.clientY;M.current=Math.sqrt(t*t+n*n),k.current={x:(e.clientX+a.clientX)/2,y:(e.clientY+a.clientY)/2}}}return e}))}),[n,c]),Q=h((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),y((a=>{const n=a[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};n.zoomLevel>1&&1===t.length&&e.preventDefault();let i=null,r=0,o=null;if(1===t.length&&p&&n.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/n.zoomLevel);i={x:(e.clientX-v.x)*t,y:(e.clientY-v.y)*t}}if(i){const e=B(i,n.bounds);return{...a,[c]:{...n,position:e}}}}else if(2===t.length&&null!==M.current){const i=t[0],l=t[1];if(i&&l){const t=i.clientX-l.clientX,s=i.clientY-l.clientY,d=Math.sqrt(t*t+s*s);r=.005*(d-M.current),M.current=d,o={x:(i.clientX+l.clientX)/2,y:(i.clientY+l.clientY)/2};const u=n.zoomLevel,h=Math.max(.1,Math.min(5,u+r));if(h!==u&&k.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(e){return a}if(!t||0===t.width||0===t.height)return a;const i=t.width/2,r=t.height/2,l=o.x-t.left-i,s=o.y-t.top-r,d=h/u,m=$(h,n.rotation),p={x:n.position.x+l*(1-d)*.5,y:n.position.y+s*(1-d)*.5},g=B(p,m);return k.current=o,{...a,[c]:{...n,zoomLevel:h,bounds:m,position:g}}}o&&(k.current=o)}}return a}))}),[x,n,p,v,c,B,$]),J=h((()=>{g(!1),M.current=null,k.current=null}),[]),ee=N[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:c,isModalOpen:u,zoomLevel:ee.zoomLevel,imagePosition:ee.position,isDragging:p,isFullscreen:S,rotationAngle:ee.rotation,showInfo:b,imageRef:I,containerRef:w,isTransitioning:C,setCurrentIndex:d,setZoomLevel:U,setImagePosition:Y,setIsDragging:g,setIsFullscreen:f,setRotationAngle:X,setShowInfo:E,openModal:F,closeModal:z,goToPrevious:G,goToNext:V,handleWheel:H,handleMouseDown:j,handleMouseMove:Z,handleMouseUp:K,handleTouchStart:q,handleTouchMove:Q,handleTouchEnd:J,handleDoubleClick:W,resetImageState:()=>{y((e=>({...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:l,enableGestures:u,onImageChange:v,onClose:_||(()=>{})}),W=m((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),j=W[S],Z=m((()=>["c-photo-viewer",`c-photo-viewer--thumbnails-${g}`,E?"c-photo-viewer--dragging":"",N?"c-photo-viewer--fullscreen":"",C?"c-photo-viewer--info-open":"",c?"is-disabled":"",s].filter(Boolean).join(" ")),[E,N,C,c,g,s]);return o((()=>{const e=()=>{w(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[w]),o((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:Z,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:k}),t("div",{className:"c-photo-viewer__container",children:[e(el,{currentIndex:S,imagesLength:n.length,onZoomOut:()=>T((e=>Math.max(e-.25,.1))),onResetZoom:()=>{H()},onZoomIn:()=>T((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(p){if(N)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}w(!N)}},onClose:_||k,isFullscreen:N,zoomLevel:f,onRotate:()=>{R((e=>(e+90)%360))},onDownload:()=>{if(null==j||!j.src)return;const e=document.createElement("a");e.href=j.src,e.download=j.title||`image-${S+1}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&null!=j&&j.src)try{await navigator.share({title:j.title||"Shared Image",text:j.description||"Check out this image",url:j.src})}catch(e){}},showInfo:C,onToggleInfo:()=>M(!C),currentImage:j}),t("div",{className:"c-photo-viewer__content",children:[e(tl,{show:n.length>1,onPrev:D,onNext:P,currentIndex:S,imagesLength:n.length,enableKeyboardNav:d,onClose:_||k}),(null==j?void 0:j.src)&&e(al,{imageRef:L,containerRef:x,src:j.src,alt:(null==j?void 0:j.alt)||`Image ${S+1}`,zoomLevel:f,dragPosition:b,isDragging:E,rotationAngle:y,isTransitioning:A,onMouseDown:B,onMouseMove:F,onMouseUp:z,onWheel:G,onTouchStart:V,onTouchMove:U,onTouchEnd:Y,onDoubleClick:X})]}),"none"!==g&&e(nl,{images:W,currentIndex:S,goToImage:$}),e(il,{show:C,image:j,onClose:()=>M(!1)})]})]}):null};rl.displayName="PhotoViewer";const ol=v({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),ll=a=>{let{content:n,position:l="top",trigger:s="click",className:c="",delay:d=0,offset:u=12,defaultOpen:h=!1,isOpen:m,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:v=!0,id:_,children:S}=a;const{isOpen:f,setIsOpen:b,triggerRef:E,popoverRef:N,arrowRef:y,popoverId:C,currentPosition:L,updatePosition:x}=(e=>{let{position:t="top",trigger:a="click",offset:n=12,delay:l=0,defaultOpen:s=!1,isOpen:c,onOpenChange:d,closeOnClickOutside:u=!0,closeOnEscape:h=!0,id:m}=e;const[p,g]=i(s),[v,_]=i("auto"===t?"top":t),S=r(null),f=r(null),b=r(null),E=r(null),N=m||`popover-${Math.random().toString(36).slice(2,11)}`,y=void 0!==c,C=y?c:p,L=e=>{y||g(e),d&&d(e)};o((()=>{if("hover"!==a||!S.current||!f.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),l>0?E.current=setTimeout((()=>{L(!0)}),l):L(!0)},t=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{var e;null!==(e=f.current)&&void 0!==e&&e.matches(":hover")||L(!1)}),100)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},i=()=>{L(!1)};return S.current.addEventListener("mouseenter",e),S.current.addEventListener("mouseleave",t),f.current.addEventListener("mouseenter",n),f.current.addEventListener("mouseleave",i),()=>{S.current&&(S.current.removeEventListener("mouseenter",e),S.current.removeEventListener("mouseleave",t)),f.current&&(f.current.removeEventListener("mouseenter",n),f.current.removeEventListener("mouseleave",i)),null!==E.current&&window.clearTimeout(E.current)}}),[a,l,C]);const x=e=>{if(!S.current||!f.current)return;const a=S.current.getBoundingClientRect(),i=f.current.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,l=a.top<50||a.bottom>o-50||a.left<50||a.right>r-50;if("scroll"===(null==e?void 0:e.type)&&!l)return;const s=a.top,c=o-a.bottom,d=a.left,u=r-a.right;let h="auto"===t?"top":t;if("auto"===t){var m;const e=[{position:"top",space:s},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),h=null===(m=e[0])||void 0===m?void 0:m.position}else("top"===t&&s<i.height+n&&c>=i.height+n||"bottom"===t&&c<i.height+n&&s>=i.height+n||"left"===t&&d<i.width+n&&u>=i.width+n||"right"===t&&u<i.width+n&&d>=i.width+n)&&(h={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[t]);_(h);let p=0,g=0;switch(h){case"top":p=a.top-i.height-n,g=a.left+a.width/2-i.width/2;break;case"bottom":p=a.bottom+n,g=a.left+a.width/2-i.width/2;break;case"left":p=a.top+a.height/2-i.height/2,g=a.left-i.width-n;break;case"right":p=a.top+a.height/2-i.height/2,g=a.right+n}g<0?g=5:g+i.width>r&&(g=r-i.width-5),p<0?p=5:p+i.height>o&&(p=o-i.height-5);const v=p+window.scrollY,b=g+window.scrollX;f.current.style.position="absolute",f.current.style.top=`${v}px`,f.current.style.left=`${b}px`};return o((()=>{if(!C||!S.current||!f.current)return;x(),window.addEventListener("resize",x);let e=null;const t=t=>{e||(e=setTimeout((()=>{x(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{x()}),500);return()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(a)}}),[C,t,n]),o((()=>{if(!C||!u)return;const e=e=>{f.current&&!f.current.contains(e.target)&&S.current&&!S.current.contains(e.target)&&L(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[C,u]),o((()=>{if(!C||!h)return;const e=e=>{"Escape"===e.key&&L(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[C,h]),o((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:C,setIsOpen:L,triggerRef:S,popoverRef:f,arrowRef:b,popoverId:N,currentPosition:v,updatePosition:x}})({position:l,trigger:s,offset:u,delay:d,defaultOpen:h,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:v,id:_});return t(ol.Provider,{value:{isOpen:f,setIsOpen:b,triggerRef:E,popoverId:C,triggerType:s},children:[S,"undefined"!=typeof document&&O(t("div",{ref:N,className:`c-popover c-popover--${L} ${f?P.CLASSES.IS_OPEN:""} ${c}`,id:C,role:"tooltip","aria-hidden":!f,children:[e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})}),e("div",{ref:y,className:"c-popover__arrow"})]}),document.body)]})};ll.displayName="Popover";function sl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function cl(e,t){return n.useMemo((()=>null==e&&null==t?null:a=>{sl(e,a),sl(t,a)}),[e,t])}const dl=u(((a,n)=>{let{value:l=0,defaultValue:s,maxValue:c=5,allowHalf:d=!1,readOnly:u=!1,size:m="md",color:p,onChange:g,className:v="",label:_,id:S,useVanillaJS:f=!1,...b}=a;const E=r(null),N=r(null),{currentValue:y,hoverValue:C,focusedIndex:L,setHoverValue:x,setFocused:A,handleKeyDown:T}=(e=>{let{value:t=0,maxValue:a=5,allowHalf:n=!1,readOnly:r=!1,onChange:o}=e;const l=void 0!==o,[s,c]=i(t),[d,u]=i(null),[m,p]=i(null),g=l?t:s,v=h((e=>{r||u(e)}),[r]),_=h((()=>{r||u(null)}),[r]),S=h((e=>{r||(l||c(e),null==o||o(e))}),[r,o,l]),f=h(((e,t)=>{if(r)return;const i=n?.5:1;let s=g;switch(e.key){case"ArrowRight":case"ArrowUp":s=Math.min(a,g+i),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":s=Math.max(0,g-i),e.preventDefault();break;case"Home":s=0,e.preventDefault();break;case"End":s=a,e.preventDefault();break;case" ":case"Enter":s=t,e.preventDefault();break;default:return}s!==g&&(l||c(s),null==o||o(s))}),[g,a,n,r,o,l]);return{currentValue:g,hoverValue:d,focusedIndex:m,handleMouseEnter:v,handleMouseLeave:_,handleClick:S,handleKeyDown:f,setFocused:p,setHoverValue:u,isControlled:l}})({value:void 0!==l?l:s,maxValue:c,allowHalf:d,readOnly:u,onChange:g}),O=h(((e,t)=>{if(!u)if(d){const a=e.currentTarget.getBoundingClientRect(),n=a.left+a.width/2,i=e.clientX<n?t-.5:t;x(Math.max(.5,i))}else x(t)}),[u,d,x]),I=h(((e,t)=>{if(u||!d)return;const a=e.currentTarget.getBoundingClientRect(),n=a.left+a.width/2,i=e.clientX<n?t-.5:t;x(Math.max(.5,i))}),[u,d,x]),w=h((()=>{u||x(null)}),[u,x]),R=h(((e,t)=>{if(u)return;let a=t;if(d){const n=e.currentTarget.getBoundingClientRect(),i=n.left+n.width/2;a=e.clientX<i?t-.5:t,a=Math.max(.5,a)}null==g||g(a)}),[u,g,d]);o((()=>{if(f&&"undefined"!=typeof window&&E.current)return()=>{N.current&&N.current.destroy()}}),[f,l,s,c,d,u,m,p,g]),o((()=>{f&&N.current&&N.current.updateOptions({value:void 0!==l?l:s,maxValue:c,allowHalf:d,readOnly:u,size:m,color:p})}),[f,l,s,c,d,u,m,p]);const M=["c-rating","sm"===m?W.CLASSES.SMALL:"","lg"===m?W.CLASSES.LARGE:"",p?`c-rating--${p}`:"",v].filter(Boolean).join(" ");if(f)return e("div",{className:M,ref:cl(E,n),id:S,...b});const k=null!==C?C:y;return e("div",{className:M,ref:cl(E,n),id:S,"data-readonly":u?"true":"false",onMouseLeave:w,role:u?"img":"radiogroup","aria-label":_||`Rating: ${y} out of ${c} stars`,...b,children:(()=>{const a=[],n=d?Math.floor(2*k)/2:Math.round(k),i=S||`rating-${Math.random().toString(36).substring(2,9)}`;for(let r=1;r<=c;r++){const o=r<=Math.floor(n),l=d&&r-.5===n,s=["c-rating__star",o?W.CLASSES.FULL:"",l?W.CLASSES.HALF:"",p?`c-rating__star--${p}`:"",L===r?"c-rating__star--focused":""].filter(Boolean).join(" "),h=`${i}-star-${r}`;a.push(e("div",{id:h,className:s,"data-value":r,role:u?"presentation":"button",tabIndex:u?-1:0,"aria-label":`${r} ${1===r?"star":"stars"}`,"aria-checked":r<=n,"aria-setsize":c,"aria-posinset":r,onClick:e=>R(e,r),onMouseEnter:e=>O(e,r),onMouseMove:e=>I(e,r),onFocus:()=>A(r),onBlur:()=>A(null),onKeyDown:e=>T(e,r),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${i}-${r})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${i}-${r}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},r))}return a})()})}));dl.displayName="Rating";const ul=a=>{let{productName:n,productImage:l,initialRating:s=0,maxRating:c=5,allowHalf:d=!0,ratingColor:u="warning",onSubmit:h,className:m=""}=a;const[p,g]=i(s),[v,_]=i(""),[S,f]=i(!1),b=r(null),E=r(null);o((()=>{if("undefined"!=typeof window&&b.current)return()=>{E.current&&E.current.destroy()}}),[n,l,s,c,d,u,h]);const N=e=>{e.preventDefault(),h&&h(p,v),f(!0)},y=["c-product-review",m].filter(Boolean).join(" ");return S?e("div",{className:y,ref:b,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(Ie,{variant:"secondary",label:"Write another review",onClick:()=>{f(!1),g(0),_("")}})]})}):t("div",{className:y,ref:b,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),l&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:l,alt:n,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:N,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(dl,{value:p,onChange:g,allowHalf:d,maxValue:c,size:"lg",color:u}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:v,onChange:e=>_(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(Ie,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};ul.displayName="ProductReview";const hl=u(((t,a)=>{let{value:n,variant:i="primary",size:r="md",className:o="",disabled:l=!1,ariaLabel:s=de.DEFAULTS.ARIA_LABEL}=t;const{progressValue:c,progressStyle:d,progressClasses:u}=(e=>{let{value:t,variant:a="primary",size:n="md",className:i=""}=e;const r=Math.min(Math.max(t,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":`${r}%`},progressClasses:[o,a?`${o}--${a}`:"",n?`${o}--${n}`:"",i||""].filter(Boolean).join(" ")}})({value:n,variant:i,size:r,className:o});return e("div",{ref:a,className:u,style:d,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c,"aria-label":s,"aria-disabled":l,children:e("div",{className:de.CLASSES.BAR})})})),ml=a=>{let{title:n,text:i,actions:r,imageSrc:o,imageAlt:l="Image",center:s=!1,breakout:c=!1,reverse:d=!1,contentColumns:u,backgroundImageSrc:h,showOverlay:m=!0,contentWidth:p,className:g=""}=a;const{generateRiverClassNames:v,generateContentClass:_,generateVisualClass:S,hasBackgroundImage:f,hasForegroundImage:b,textContent:E}=Co({title:n,text:i,imageSrc:o,imageAlt:l,center:s,breakout:c,reverse:d,backgroundImageSrc:h,showOverlay:m,contentWidth:p}),N=p?{[U.ATTRIBUTES.CONTENT_WIDTH]:p}:void 0,y=()=>f?t("div",{className:U.SELECTORS.BG.replace(".",""),children:[e("img",{src:h,alt:"Background",className:U.SELECTORS.BG_IMAGE.replace(".","")}),m&&e("div",{className:U.SELECTORS.OVERLAY.replace(".","")})]}):null,C=()=>b?e("div",{className:S(),children:e("div",{className:U.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:o,alt:l,className:U.SELECTORS.IMAGE.replace(".","")})})}):null;return u&&u.length>0?t("div",{className:v(g),style:N,children:[y(),e("div",{className:`${U.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:U.SELECTORS.ROW.replace(".",""),children:[!d&&C(),t("div",{className:_(),children:[u.map(((t,a)=>e("div",{className:`${U.SELECTORS.CONTENT_COL.replace(".","")} ${U.SELECTORS[`CONTENT_COL_${t.type.toUpperCase()}`].replace(".","")}`,children:t.content},a))),r&&e("div",{className:U.SELECTORS.ACTIONS.replace(".",""),children:r})]}),d&&C()]})})]}):t("div",{className:v(g),style:N,children:[y(),e("div",{className:`${U.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:U.SELECTORS.ROW.replace(".",""),children:[!d&&C(),t("div",{className:_(),children:[n&&e("h2",{className:U.SELECTORS.TITLE.replace(".",""),children:n}),E.map(((t,a)=>e("p",{className:U.SELECTORS.TEXT.replace(".",""),children:t},a))),r&&e("div",{className:U.SELECTORS.ACTIONS.replace(".",""),children:r})]}),d&&C()]})})]})};ml.displayName="River";const pl=a=>{let{title:n,label:i,text:l,actions:s,alignment:c="left",backgroundImageSrc:d,showOverlay:u=!1,imageSrc:h,imageAlt:m="Section image",size:p="md",skeleton:g=!1,className:v=""}=a;const _=r(null),S=r(null);o((()=>{if("undefined"!=typeof window&&_.current)return()=>{S.current&&S.current.destroy()}}),[c,d,u,p,g]);const f=["c-sectionintro","center"===c?V.CLASSES.CENTER:"","sm"===p?V.CLASSES.SMALL:"","lg"===p?V.CLASSES.LARGE:"",d?"c-sectionintro--has-bg":"",v].filter(Boolean).join(" ");if(g)return e("div",{className:f,ref:_,children:t("div",{className:"c-sectionintro__container",children:[i&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),l&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),s&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})});return t("div",{className:f,ref:_,children:[d?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:d,alt:"Background",className:"c-sectionintro__bg-image"}),u&&e("div",{className:"c-sectionintro__overlay"})]}):null,t("div",{className:"c-sectionintro__container o-container",children:[i&&e("div",{className:"c-sectionintro__label",children:i}),e("h2",{className:"c-sectionintro__title",children:n}),l&&e("div",{className:"c-sectionintro__text",children:l}),s&&e("div",{className:"c-sectionintro__actions",children:s}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:h,alt:m,className:"c-sectionintro__image"})})]})]})};pl.displayName="SectionIntro";const gl=u(((a,n)=>{var i;const{slides:r=[],height:o=300,width:l="100%",slidesToShow:s=1,spaceBetween:c=0,loop:d=!1,initialSlide:u=0,direction:h="horizontal",speed:p=300,allowTouchMove:g=!0,threshold:v=50,grabCursor:_=!0,navigation:S,pagination:f,className:b,onSlideChange:E,...N}=a;if(!r||0===r.length)return e("div",{className:"c-slider c-slider--empty",style:{height:o,width:l},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const y=zo({slides:r,slidesToShow:s,spaceBetween:c,loop:d,initialSlide:u,direction:h,speed:p,allowTouchMove:g,threshold:v,onSlideChange:E}),{containerRef:C,wrapperRef:L,allSlides:x,realIndex:A,translateValue:T,slideWidth:O,transitioning:I,touching:w,slideNext:R,slidePrev:M,goToSlide:k,canSlideNext:D,canSlidePrev:P,handleTouchStart:$,handleTouchMove:B,handleTouchEnd:F,loopedSlides:z}=y,G=m((()=>0===O?0:x.length*(O+c)-c),[x.length,O,c]),V=["c-slider","vertical"===h&&"c-slider--vertical",_&&"c-slider--grab-cursor",w&&"c-slider--grabbing",d&&"c-slider--loop",b].filter(Boolean).join(" ");return t("div",{ref:n||C,className:V,style:{height:"number"==typeof o?`${o}px`:o,width:"number"==typeof l?`${l}px`:l,overflow:"hidden",position:"relative",cursor:_&&!w?"grab":w?"grabbing":"default",...N.style},onTouchStart:$,onTouchMove:B,onTouchEnd:F,onMouseDown:$,onMouseMove:B,onMouseUp:F,onMouseLeave:F,children:[e("div",{ref:L,className:"c-slider__wrapper",style:{display:"flex",flexDirection:"vertical"===h?"column":"row",width:"horizontal"===h?`${G}px`:"100%",height:"vertical"===h?`${G}px`:"100%",transform:"horizontal"===h?`translateX(${T}px)`:`translateY(${T}px)`,transition:!I||null!==(i=y.repositioningRef)&&void 0!==i&&i.current?"none":`transform ${p}ms ease-out`,willChange:"transform"},children:x.map(((a,n)=>t("div",{className:["c-slider__slide",(d?n%r.length===A:n===A)&&"c-slider__slide--active",a.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===h?"100%":`${O}px`,height:"vertical"===h?`${O}px`:"100%",flexShrink:0,marginRight:"horizontal"===h&&n<x.length-1?`${c}px`:0,marginBottom:"vertical"===h&&n<x.length-1?`${c}px`:0},children:[a.video?e("video",{src:a.video.src,poster:a.video.poster,autoPlay:a.video.autoplay,loop:a.video.loop,muted:a.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${a.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:a.content}):a.image?e("img",{src:a.image,alt:a.alt||a.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):a.content,(a.title||a.description)&&t("div",{className:"c-slider__slide-content",children:[a.title&&e("h3",{children:a.title}),a.description&&e("p",{children:a.description})]})]},a.id||n)))}),S&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:M,disabled:!P,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:R,disabled:!D,"aria-label":"Next slide"})]}),f&&e("div",{className:"c-slider__pagination",children:r.map(((t,a)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(a===A?"c-slider__pagination-bullet--active":""),onClick:()=>k(a),"aria-label":`Go to slide ${a+1}`},a)))})]})}));gl.displayName="Slider";const vl=a=>{let{items:n,activeIndex:r=0,vertical:l=!1,onStepChange:s,className:c=""}=a;const[d,u]=i(r);return o((()=>{d!==r&&u(r)}),[r]),e("div",{className:`c-steps ${l?F.CLASSES.VERTICAL:""} ${c}`,role:"navigation","aria-label":"Steps",children:n.map(((a,n)=>t("div",{className:`c-steps__item ${n<=d?F.CLASSES.ACTIVE:""} ${n<d?F.CLASSES.COMPLETED:""}`,"aria-current":n===d?"step":void 0,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[e("div",{className:"c-steps__number",children:a.number}),e("div",{className:"c-steps__text",children:a.text}),a.content&&e("div",{className:"c-steps__custom-content",children:a.content})]})]},`step-${n}`)))})};vl.displayName="Steps";const _l=a=>{let{items:n,activeIndex:r=B.DEFAULTS.ACTIVE_INDEX,onTabChange:o,className:l=""}=a;const[s,c]=i(r);return t("div",{className:`c-tabs js-atomix-tab ${l}`,children:[e("ul",{className:"c-tabs__nav",children:n.map(((t,a)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:`c-tabs__nav-btn ${a===s?B.CLASSES.ACTIVE:""}`,onClick:()=>(e=>{c(e),o&&o(e)})(a),"data-tabindex":a,role:"tab","aria-selected":a===s,"aria-controls":`tab-panel-${a}`,children:t.label})},`tab-nav-${a}`)))}),e("div",{className:"c-tabs__panels",children:n.map(((t,a)=>e("div",{className:`c-tabs__panel ${a===s?B.CLASSES.ACTIVE:""}`,"data-tabindex":a,id:`tab-panel-${a}`,role:"tabpanel","aria-labelledby":`tab-nav-${a}`,style:{height:a===s?"auto":"0px",opacity:a===s?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},`tab-panel-${a}`)))})]})};_l.displayName="Tab";const Sl=a=>{let{quote:n,author:i,size:l="",skeleton:s=!1,className:c=""}=a;const d=r(null),u=r(null);o((()=>{if("undefined"!=typeof window&&d.current)return()=>{u.current&&u.current.destroy()}}),[l,s]);const h=["c-testimonial","sm"===l?z.CLASSES.SMALL:"","lg"===l?z.CLASSES.LARGE:"",c].filter(Boolean).join(" ");return t("div",s?{className:h,ref:d,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:h,ref:d,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),i&&t("div",{className:"c-testimonial__author",children:[i.avatarSrc&&e("img",{src:i.avatarSrc,alt:i.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:i.name}),e("p",{className:"c-testimonial__author-role",children:i.role})]})]})]})};Sl.displayName="Testimonial";const fl=a=>{let{items:n=[],title:r="Todo List",onAddTodo:l,onToggleTodo:s,onDeleteTodo:c,size:d="md",placeholder:u="Add a new todo",showCompleted:h=!0,className:m="",disabled:p=!1}=a;const{inputText:g,setInputText:v,addTodo:_,generateTodoClasses:S,generateItemClasses:f}=$o({items:n,title:r,size:d,placeholder:u,showCompleted:h,disabled:p}),[b,E]=i(n);o((()=>{E(n)}),[n]);const N=h?b:b.filter((e=>!e.completed)),y=S({size:d,className:m,disabled:p});return t("div",{className:y,children:[r&&e("h2",{className:"c-todo__title",children:r}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Mo(),text:g.trim(),completed:!1};E((e=>[...e,t])),l&&l(g),v("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:u,value:g,onChange:e=>v(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(be,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===N.length?e("li",{className:"c-todo__empty",children:"No items to display"}):N.map((a=>e("li",{className:f(a),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:a.completed,onChange:()=>(e=>{p||(E((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),s&&s(e))})(a.id),disabled:p,"aria-label":`Mark "${a.text}" as ${a.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:a.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(E((t=>t.filter((t=>t.id!==e)))),c&&c(e))})(a.id),disabled:p,"aria-label":`Delete "${a.text}"`,children:e(be,{name:"Trash",size:"sm"})})]})},a.id)))})]})};fl.displayName="Todo";const bl=t=>{let{initialOn:a=!1,onToggleOn:n,onToggleOff:r,disabled:o=!1,className:l=""}=t;const[s,c]=i(a),d=()=>{if(o)return;const e=!s;c(e),e?n&&n():r&&r()};return e("div",{className:`c-toggle ${s?$.CLASSES.IS_ON:""} ${o?"is-disabled":""} ${l}`,onClick:d,onKeyDown:e=>{o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d())},role:"switch","aria-checked":s,tabIndex:o?-1:0,"aria-disabled":o,children:e("div",{className:"c-toggle__switch"})})};bl.displayName="Toggle";const El=a=>{let{content:n,children:o,position:l=D.DEFAULTS.POSITION,trigger:s=D.DEFAULTS.TRIGGER,className:c="",delay:d=D.DEFAULTS.DELAY,offset:u=D.DEFAULTS.OFFSET}=a;const[h,m]=i(!1),p=r(null),g=()=>{p.current&&clearTimeout(p.current),d>0?p.current=setTimeout((()=>{m(!0)}),d):m(!0)},v=()=>{p.current&&clearTimeout(p.current),m(!1)},_=()=>{h?v():g()},S={};return"hover"===s?(S.onMouseEnter=g,S.onMouseLeave=v):"click"===s&&(S.onClick=_),t("div",{className:"u-position-relative u-d-inline-block",children:[e("div",{className:`${D.SELECTORS.TRIGGER.substring(1)}${c?` ${c}`:""}`,...S,children:o}),h&&e("div",{className:`c-tooltip ${D.SELECTORS.TOOLTIP.substring(1)} ${(()=>{switch(l){case"top":default:return"c-tooltip--top";case"bottom":return"c-tooltip--bottom";case"left":return"c-tooltip--left";case"right":return"c-tooltip--right";case"top-left":return"c-tooltip--top-left";case"top-right":return"c-tooltip--top-right";case"bottom-left":return"c-tooltip--bottom-left";case"bottom-right":return"c-tooltip--bottom-right"}})()}`,"data-tooltip-position":l,"data-tooltip-trigger":s,children:t("div",{className:`c-tooltip__content ${D.SELECTORS.CONTENT.substring(1)} ${h&&"is-active"}`,children:[e("span",{className:D.SELECTORS.ARROW.substring(1)}),n]})})]})};El.displayName="Tooltip";const Nl=a=>{let{disabled:n=!1,maxSizeInMB:o=5,acceptedFileTypes:l=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:s=!1,title:c="Drag and Drop files here",supportedFilesText:d="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:u="Choose File",helperText:h=`Maximum size: ${o}MB`,icon:m=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:p,onFileUpload:g,onFileUploadComplete:v,onFileUploadError:_,className:S=""}=a;const f=r(null),[b,E]=i("idle"),[N,y]=i(!1),[C,L]=i(null),[x,A]=i(0),[T,O]=i(null),[I,w]=i(null),[R,M]=i(null),k=r(0),D=e=>{if(!e.length)return;const t=(s?e:[e[0]]).filter((e=>void 0!==e&&P(e)));t.length&&p&&p(t),t.length&&(L(t[0]||null),t[0]&&$(t[0]))},P=e=>{const t=1024*o*1024;if(e.size>t)return E("error"),w(`File too large. Maximum size is ${o}MB.`),!1;if(null!=l&&l.length){if(!l.some((t=>{if(t.endsWith("/*")){const a=t.split("/")[0];return e.type.startsWith(`${a}/`)}return e.type===t})))return E("error"),w("File type not supported."),!1}return!0},$=e=>{E("loading"),A(0);let t=0;const a=setInterval((()=>{t+=5,t<100?(A(t),O(`${Math.ceil((100-t)/5)} seconds left`),g&&g(e,t)):(clearInterval(a),E("success"),M("Upload successful"),v&&v(e))}),500)};return e("div",{className:`c-upload ${N?Y.CLASSES.DRAGGING:""} ${n?Y.CLASSES.DISABLED:""} ${S}`,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||(k.current++,1===k.current&&y(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(k.current--,0===k.current&&y(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{var t;if(e.preventDefault(),e.stopPropagation(),n)return;if(k.current=0,y(!1),null===(t=e.dataTransfer.files)||void 0===t||!t.length)return;const a=Array.from(e.dataTransfer.files);D(a)},children:t("div",{className:"c-upload__inner",children:[e("input",{type:"file",ref:f,className:"c-upload__input",onChange:e=>{var t;if(null===(t=e.target.files)||void 0===t||!t.length)return;const a=Array.from(e.target.files);D(a)},disabled:n,accept:l.join(","),multiple:s}),t("div",{className:"c-upload__inner",children:[e("div",{className:"c-upload__icon",children:m}),e("h3",{className:"c-upload__title",children:c}),e("p",{className:"c-upload__text",children:d}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:()=>{f.current&&!n&&f.current.click()},disabled:n,children:u}),e("p",{className:"c-upload__helper-text",children:h})]}),"idle"!==b&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":x},children:[C&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:C.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[x,"%"]}),e("div",{className:"c-upload__loader-time",children:T})]})]}),("loading"===b||"error"===b||"success"===b)&&t("div",{className:"c-upload__loader-control",children:[e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),e("button",{type:"button",className:"c-upload__loader-close c-btn",onClick:()=>{E("idle"),L(null),A(0),O(null),w(null),M(null)},children:e("i",{className:"icon-lux-x"})})]})]})]})})};Nl.displayName="Upload";const yl=u(((n,l)=>{var s;let{src:c,type:d="video",youtubeId:u,poster:m,autoplay:p=!1,loop:g=!1,muted:v=!1,controls:_=!0,preload:O="metadata",width:I,height:w,aspectRatio:R="16:9",className:M="",onPlay:k,onPause:D,onEnded:P,onTimeUpdate:$,onVolumeChange:B,onFullscreenChange:F,onError:z,showDownload:G=!1,showShare:V=!1,showSettings:U=!0,playbackRates:Y=[.5,.75,1,1.25,1.5,2],subtitles:X,quality:H,ambientMode:W=!1,...j}=n;const Z=r(null),K=r(null),q=r(null),Q=r(null),J="youtube"===d||u||c&&Do(c),ee=u||(J&&c?ko(c):null),{isPlaying:te,currentTime:ae,duration:ne,volume:ie,isMuted:re,isFullscreen:oe,isLoading:le,playbackRate:se,currentQuality:ce,showControls:de,play:he,pause:me,togglePlay:pe,seek:ge,setVolume:ve,toggleMute:_e,toggleFullscreen:Se,togglePictureInPicture:fe,setPlaybackRate:be,setQuality:Ee,formatTime:Ne,getProgressPercentage:ye,getBufferedPercentage:Ce}=function(e){let{videoRef:t,containerRef:a,onPlay:n,onPause:l,onEnded:s,onTimeUpdate:c,onVolumeChange:d,onFullscreenChange:u,onError:m,playbackRates:p=[.5,.75,1,1.25,1.5,2],quality:g}=e;const[v,_]=i(!1),[S,f]=i(0),[b,E]=i(0),[N,y]=i(1),[C,L]=i(!1),[x,A]=i(!1),[T,O]=i(!1),[I,w]=i(!1),[R,M]=i(0),[k,D]=i(1),[P,$]=i((null==g?void 0:g[0])||null),[B,F]=i(!0),z=r(null),G=h((()=>{z.current&&clearTimeout(z.current),F(!0),z.current=setTimeout((()=>{v&&F(!1)}),3e3)}),[v]),V=h((async()=>{if(t.current)try{await t.current.play(),_(!0),null==n||n()}catch(e){}}),[t,n]),U=h((()=>{t.current&&(t.current.pause(),_(!1),null==l||l())}),[t,l]),Y=h((()=>{v?U():V()}),[v,V,U]),X=h((e=>{t.current&&(t.current.currentTime=Math.max(0,Math.min(e,b)))}),[t,b]),H=h((e=>{const a=Math.max(0,Math.min(1,e));t.current&&(t.current.volume=a,y(a),L(0===a),null==d||d(a))}),[t,d]),W=h((()=>{if(t.current){const e=!C;t.current.muted=e,L(e)}}),[t,C]),j=h((async()=>{if(a.current)try{x?document.exitFullscreen&&await document.exitFullscreen():a.current.requestFullscreen&&await a.current.requestFullscreen()}catch(e){}}),[a,x]),Z=h((async()=>{if(t.current)try{T?document.exitPictureInPicture&&await document.exitPictureInPicture():t.current.requestPictureInPicture&&await t.current.requestPictureInPicture()}catch(e){}}),[t,T]),K=h((e=>{t.current&&Xi(p).call(p,e)&&(t.current.playbackRate=e,D(e))}),[t,p]),q=h((e=>{if(t.current&&g){const a=t.current.currentTime,n=!t.current.paused;t.current.src=e.src,t.current.currentTime=a,n&&t.current.play(),$(e)}}),[t,g]),Q=h((e=>{const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}),[]),J=h((()=>b>0?S/b*100:0),[S,b]),ee=h((()=>b>0?R/b*100:0),[R,b]);return o((()=>{const e=t.current;if(!e)return;const a=()=>w(!0),i=()=>w(!1),r=()=>{E(e.duration),y(e.volume),L(e.muted)},o=()=>{f(e.currentTime),null==c||c(e.currentTime)},u=()=>{e.buffered.length>0&&M(e.buffered.end(e.buffered.length-1))},h=()=>{_(!0),null==n||n()},p=()=>{_(!1),null==l||l()},g=()=>{_(!1),null==s||s()},v=()=>{y(e.volume),L(e.muted),null==d||d(e.volume)},S=e=>{w(!1),null==m||m(e)},b=()=>O(!0),N=()=>O(!1);return e.addEventListener("loadstart",a),e.addEventListener("canplay",i),e.addEventListener("loadedmetadata",r),e.addEventListener("timeupdate",o),e.addEventListener("progress",u),e.addEventListener("play",h),e.addEventListener("pause",p),e.addEventListener("ended",g),e.addEventListener("volumechange",v),e.addEventListener("error",S),e.addEventListener("enterpictureinpicture",b),e.addEventListener("leavepictureinpicture",N),()=>{e.removeEventListener("loadstart",a),e.removeEventListener("canplay",i),e.removeEventListener("loadedmetadata",r),e.removeEventListener("timeupdate",o),e.removeEventListener("progress",u),e.removeEventListener("play",h),e.removeEventListener("pause",p),e.removeEventListener("ended",g),e.removeEventListener("volumechange",v),e.removeEventListener("error",S),e.removeEventListener("enterpictureinpicture",b),e.removeEventListener("leavepictureinpicture",N)}}),[t,n,l,s,c,d,m]),o((()=>{const e=()=>{const e=!!document.fullscreenElement;A(e),null==u||u(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[u]),o((()=>{const e=e=>{var t;if(null!==(t=a.current)&&void 0!==t&&t.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),Y();break;case"ArrowLeft":e.preventDefault(),X(S-10);break;case"ArrowRight":e.preventDefault(),X(S+10);break;case"ArrowUp":e.preventDefault(),H(Math.min(1,N+.1));break;case"ArrowDown":e.preventDefault(),H(Math.max(0,N-.1));break;case"KeyM":e.preventDefault(),W();break;case"KeyF":e.preventDefault(),j()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[Y,X,S,H,N,W,j,a]),o((()=>{const e=a.current;if(!e)return;const t=()=>G(),n=()=>{z.current&&clearTimeout(z.current),v&&F(!1)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",n),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",n),z.current&&clearTimeout(z.current)}}),[a,G,v]),{isPlaying:v,currentTime:S,duration:b,volume:N,isMuted:C,isFullscreen:x,isPictureInPicture:T,isLoading:I,buffered:R,playbackRate:k,currentQuality:P,showControls:B,play:V,pause:U,togglePlay:Y,seek:X,setVolume:H,toggleMute:W,toggleFullscreen:j,togglePictureInPicture:Z,setPlaybackRate:K,setQuality:q,formatTime:Q,getProgressPercentage:J,getBufferedPercentage:ee}}({videoRef:Z,containerRef:K,onPlay:k,onPause:D,onEnded:P,onTimeUpdate:$,onVolumeChange:B,onFullscreenChange:F,onError:z,playbackRates:Y,quality:H});!function(e){let{videoRef:t,canvasRef:a,enabled:n,blur:i=60,opacity:l=.6,scale:s=1.2}=e;const c=r(60);o((()=>{if(!n||!t.current||!a.current)return;const e=t.current,r=a.current,o=r.getContext("2d");if(!o)return;const d=()=>{if(!e||!r||!o)return;const t=e.getBoundingClientRect();r.width=t.width*s,r.height=t.height*s,o.filter=`blur(${i}px)`,o.globalAlpha=l;try{o.drawImage(e,0,0,r.width,r.height)}catch(e){}n&&(c.current=requestAnimationFrame(d))},u=()=>{n&&d()},h=()=>{c.current&&cancelAnimationFrame(c.current)};return e.addEventListener("play",u),e.addEventListener("pause",h),e.addEventListener("ended",h),e.paused||u(),()=>{e.removeEventListener("play",u),e.removeEventListener("pause",h),e.removeEventListener("ended",h),c.current&&cancelAnimationFrame(c.current)}}),[n,i,l,s,t,a])}({videoRef:Z,canvasRef:q,enabled:W});const[Le,xe]=i(!1),[Ae,Te]=i("quality"),[Oe,Ie]=i((null==X||null===(s=X.find((e=>e.default)))||void 0===s?void 0:s.srcLang)||null),we=h((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;ge(a*ne)}),[ne,ge]),Re=h((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;ve(a)}),[ve]),Me=h((()=>{if(c){const e=document.createElement("a");e.href=c,e.download="video",e.click()}}),[c]),ke=h((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),De=h((e=>{const t=Z.current;if(t){const a=t.textTracks;for(let e=0;e<a.length;e++){const t=a[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<a.length;t++){const n=a[t];if(n&&n.language===e){n.mode="showing";break}}Ie(e)}}),[Z]);o((()=>{const e=Z.current;if(e&&X){const t=()=>{setTimeout((()=>{const e=X.find((e=>e.default));e&&De(e.srcLang)}),100)},a=()=>{if(e.textTracks.length>0){const e=X.find((e=>e.default));e&&De(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",a),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",a)}}}),[X,De,Z]);const Pe=h((()=>{K.current&&K.current.focus()}),[]),$e=h((e=>{switch(e.key){case" ":case"k":e.preventDefault(),pe();break;case"ArrowLeft":e.preventDefault(),ge(ae-10);break;case"ArrowRight":e.preventDefault(),ge(ae+10);break;case"ArrowUp":e.preventDefault(),ve(Math.min(1,ie+.1));break;case"ArrowDown":e.preventDefault(),ve(Math.max(0,ie-.1));break;case"m":e.preventDefault(),_e();break;case"f":e.preventDefault(),Se()}}),[pe,ae,ge,ie,ve,_e,Se]);return t("div",{ref:K,className:`${ue.CLASSES.BASE} ${J?ue.CLASSES.YOUTUBE:""} ${W?ue.CLASSES.AMBIENT:""} ${M}`,style:{width:I,height:w,aspectRatio:R?R.replace(":","/"):void 0},tabIndex:0,onClick:Pe,onKeyDown:$e,role:"application","aria-label":"Video player",...j,children:[W&&e("canvas",{ref:q,className:ue.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),J&&ee?e("iframe",{ref:Q,className:ue.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${ee}?${new URLSearchParams({autoplay:p?"1":"0",loop:g?"1":"0",mute:v?"1":"0",controls:_?"1":"0",modestbranding:"1",rel:"0",...g&&{playlist:ee}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):e("video",{ref:e=>{Z.current=e,"function"==typeof l?l(e):l&&(l.current=e)},className:ue.CLASSES.VIDEO,src:c,poster:m,autoPlay:p,loop:g,muted:v,preload:O,controls:!1,crossOrigin:"anonymous",children:X&&X.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),le&&e("div",{className:ue.CLASSES.LOADING,children:e("div",{className:ue.CLASSES.SPINNER})}),_&&!J&&t("div",{className:`${ue.CLASSES.CONTROLS} ${de?ue.CLASSES.CONTROLS_VISIBLE:""}`,children:[e("div",{className:ue.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:ue.CLASSES.PROGRESS_BAR,onClick:we,children:[e("div",{className:ue.CLASSES.PROGRESS_BUFFERED,style:{width:`${Ce()}%`}}),e("div",{className:ue.CLASSES.PROGRESS_PLAYED,style:{width:`${ye()}%`}}),e("div",{className:ue.CLASSES.PROGRESS_THUMB,style:{left:`${ye()}%`}})]})}),t("div",{className:ue.CLASSES.CONTROLS_ROW,children:[t("div",{className:ue.CLASSES.CONTROLS_LEFT,children:[e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:pe,"aria-label":te?"Pause":"Play",children:e(te?S:f,{size:20})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:()=>ge(ae-10),"aria-label":"Skip back 10 seconds",children:e(b,{size:20})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:()=>ge(ae+10),"aria-label":"Skip forward 10 seconds",children:e(E,{size:20})}),t("div",{className:ue.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:_e,"aria-label":re?"Unmute":"Mute",children:e(re||0===ie?N:y,{size:20})}),e("div",{className:ue.CLASSES.VOLUME_SLIDER,children:e("div",{className:ue.CLASSES.VOLUME_BAR,onClick:Re,children:e("div",{className:ue.CLASSES.VOLUME_FILL,style:{width:100*ie+"%"}})})})]}),t("div",{className:ue.CLASSES.TIME_DISPLAY,children:[e("span",{children:Ne(ae)}),e("span",{children:"/"}),e("span",{children:Ne(ne)})]})]}),t("div",{className:ue.CLASSES.CONTROLS_RIGHT,children:[U&&t("div",{className:ue.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:()=>xe(!Le),"aria-label":"Settings",children:e(C,{size:20})}),Le&&t("div",{className:ue.CLASSES.SETTINGS_MENU,children:[t("div",{className:ue.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"quality"===Ae?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Te("quality"),children:"Quality"}),e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"speed"===Ae?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Te("speed"),children:"Speed"}),e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"subtitles"===Ae?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Te("subtitles"),children:"Subtitles"})]}),t("div",{className:ue.CLASSES.SETTINGS_CONTENT,children:["quality"===Ae&&H&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${(null==ce?void 0:ce.label)===t.label?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ee(t),children:t.label},t.label)))}),"speed"===Ae&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:Y.map((e=>t("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${se===e?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>be(e),children:[e,"x"]},e)))}),"subtitles"===Ae&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:X&&X.length>0?t(a,{children:[e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${null===Oe?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>De(null),children:"Off"}),X.map((t=>e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${Oe===t.srcLang?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>De(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:ue.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),G&&e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Me,"aria-label":"Download video",children:e(L,{size:20})}),V&&e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:ke,"aria-label":"Share video",children:e(x,{size:20})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:fe,"aria-label":"Picture in Picture",children:e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:e("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Se,"aria-label":oe?"Exit fullscreen":"Enter fullscreen",children:e(oe?A:T,{size:20})})]})]})]})]})}));yl.displayName="VideoPlayer";var Cl=Object.freeze({__proto__:null,Accordion:_e,AdvancedChart:Sr,AnimatedChart:fr,AreaChart:Cr,AtomixLogo:Se,Avatar:Ee,AvatarGroup:Ne,Badge:Ce,BarChart:xr,Block:Ae,Breadcrumb:Te,BubbleChart:Ar,Button:Ie,Callout:Hi,CandlestickChart:Tr,Card:Wi,Chart:_r,ChartRenderer:Er,Checkbox:po,ColorModeToggle:Gr,Countdown:Vr,DataTable:qr,DatePicker:ao,DonutChart:Or,Dropdown:io,EdgePanel:oo,Form:vo,FormGroup:So,FunnelChart:Ir,GaugeChart:wr,HeatmapChart:Rr,Hero:Yo,Icon:be,Input:bo,LineChart:yr,List:Xo,Messages:Ho,Modal:Wo,MultiAxisChart:Mr,Nav:jo,NavItem:Zo,Navbar:Ko,Pagination:Kr,PhotoViewer:rl,PieChart:Dr,Popover:ll,ProductReview:ul,Progress:hl,RadarChart:Pr,Radio:No,Rating:dl,RealTimeChart:$r,River:ml,ScatterChart:Br,SectionIntro:pl,Select:Vo,SideMenu:qo,SideMenuItem:Qo,SideMenuList:Jo,Slider:gl,Spinner:Xr,Steps:vl,Tab:_l,Testimonial:Sl,Textarea:Uo,Todo:fl,Toggle:bl,Tooltip:El,TreemapChart:Fr,Upload:Nl,VideoPlayer:yl,WaterfallChart:zr});const Ll=Go,xl=Po,Al=Object.freeze({__proto__:null}),Tl=Object.freeze({__proto__:null,ACCORDION:I,AVATAR:re,AVATAR_GROUP:oe,BADGE:w,BLOCK:ge,BREADCRUMB:M,BUTTON:{BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},CALLOUT:{BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},CARD:ae,CHART:pe,CLASS_PREFIX:{COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},CODE_SNIPPET:{BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},COUNTDOWN:{SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},DATA_TABLE_CLASSES:Z,DATA_TABLE_SELECTORS:{TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},DATEPICKER:{SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},DROPDOWN:ce,EDGE_PANEL:j,FORM:Q,FORM_GROUP:J,HERO:k,INPUT:ee,LIST:R,LIST_GROUP:{BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},MESSAGES:se,MODAL:le,NAV:X,NAVBAR:{SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},PAGINATION_DEFAULTS:K,PHOTOVIEWER:{SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},POPOVER:P,PROGRESS:de,RADIO:te,RATING:W,RIVER:U,SECTION_INTRO:V,SELECT:ne,SIDE_MENU:H,SIZES:["sm","md","lg"],SLIDER:me,SPINNER:G,STEPS:F,TAB:B,TESTIMONIAL:z,TEXTAREA:ie,THEME_COLORS:["primary","secondary","success","info","warning","error","light","dark"],TODO:q,TOGGLE:$,TOOLTIP:D,UPLOAD:Y,VIDEO_PLAYER:ue,sliderConstants:he}),Ol=u(((t,a)=>{let{children:n,className:i="",justifyContent:r,alignItems:o,noGutters:l,...s}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),l&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:a,className:c.join(" "),...s,children:n})}));Ol.displayName="Grid";const Il=u(((t,a)=>{let{children:n,className:i="",xs:r,sm:o,md:l,lg:s,xl:c,xxl:d,offsetXs:u,offsetSm:h,offsetMd:m,offsetLg:p,offsetXl:g,offsetXxl:v,..._}=t;const S=!(r||o||l||s||c||d)?["o-grid__col","o-grid__col--auto"]:["o-grid__col"];return r&&("auto"===r?S.push("o-grid__col--auto"):S.push(`o-grid__col--${r}`)),o&&("auto"===o?S.push("o-grid__col--sm-auto"):S.push(`o-grid__col--sm-${o}`)),l&&("auto"===l?S.push("o-grid__col--md-auto"):S.push(`o-grid__col--md-${l}`)),s&&("auto"===s?S.push("o-grid__col--lg-auto"):S.push(`o-grid__col--lg-${s}`)),c&&("auto"===c?S.push("o-grid__col--xl-auto"):S.push(`o-grid__col--xl-${c}`)),d&&("auto"===d?S.push("o-grid__col--xxl-auto"):S.push(`o-grid__col--xxl-${d}`)),u&&S.push(`o-grid__offset--${u}`),h&&S.push(`o-grid__offset--sm-${h}`),m&&S.push(`o-grid__offset--md-${m}`),p&&S.push(`o-grid__offset--lg-${p}`),g&&S.push(`o-grid__offset--xl-${g}`),v&&S.push(`o-grid__offset--xxl-${v}`),i&&S.push(i),e("div",{ref:a,className:S.join(" "),..._,children:n})}));Il.displayName="GridCol";const wl=u(((t,a)=>{let{children:n,className:i="",justifyContent:r,alignItems:o,noGutters:l,...s}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),l&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:a,className:c.join(" "),...s,children:n})}));wl.displayName="Row";const Rl=u(((t,a)=>{let{children:l,className:d="",xs:u=1,sm:m,md:p,lg:v,xl:_,xxl:S,gap:f=16,animate:b=!0,imagesLoaded:E=!0,onLayoutComplete:N,onImageLoad:y,...C}=t;const[L,x]=i(u),[A,T]=i([]),[O,I]=i(!1),[w,R]=i(!1),M=r(null),k=r([]),D=r(0),P=r(0),$=r(new Map);o((()=>{R(!!E)}),[L,E]),g(a,(()=>M.current));const B=h((()=>{const e=window.innerWidth;return e>=1400&&void 0!==S?S:e>=1200&&void 0!==_?_:e>=992&&void 0!==v?v:e>=768&&void 0!==p?p:e>=576&&void 0!==m?m:u}),[u,m,p,v,_,S]);o((()=>{const e=()=>x(B());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[B]);const[F,z]=i([]);o((()=>{const e=[];s.forEach(l,((t,a)=>{var i;c(t)&&e.push({id:(null===(i=t.key)||void 0===i?void 0:i.toString())||`masonry-item-${a}`,element:t,position:null,ref:n.createRef()})})),z(e)}),[l]);const G=h((e=>{if(!$.current.get(e)){if($.current.set(e,!0),D.current+=1,M.current&&E){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{U()}))})),null==y||y(D.current,P.current),D.current>=P.current&&P.current>0&&(I(!0),R(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{U(),R(!1)}))})),null==N||N())}}),[y,N,E]),V=h((()=>{if(!E||!M.current)return;$.current.clear(),D.current=0;const e=M.current.querySelectorAll("img");return P.current=e.length,0===e.length?(I(!0),R(!1),void(null==N||N())):(R(!0),e.forEach((e=>{const t=e,a=e.closest(".o-masonry-grid > div");if(a&&a.classList.add("o-masonry-grid__item-loading"),e.complete)G(e);else{const a=()=>G(e);e.addEventListener("load",a),e.addEventListener("error",a),t._masonryLoadHandler=a}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[E,G,N]),U=h((()=>{if(!M.current||0===F.length)return;const e=(M.current.offsetWidth-f*(L-1))/L;k.current=Array(L).fill(0);const t=[];F.forEach(((a,n)=>{if(a.ref.current){const i=k.current.indexOf(Math.min(...k.current)),r=i*(e+f),o=k.current[i]??0,l=a.ref.current.offsetHeight;k.current[i]=o+l+f,t[n]={left:r,top:o,width:e,height:l}}})),T(t)}),[F,L,f]);o((()=>{if(!M.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>U()))}));return t.observe(M.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[U]),n.useLayoutEffect((()=>{if(E){return V()}return U(),I(!0),void R(!1)}),[F,L,U,E,V]),n.useEffect((()=>{const e=[];return F.forEach((t=>{if(t.ref.current){const a=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{U()}))}))}));a.observe(t.ref.current),e.push(a)}})),()=>{e.forEach((e=>e.disconnect()))}}),[F,U]);const Y=k.current.length>0?Math.max(...k.current):0,X=["o-masonry-grid",d,b?"o-masonry-grid--animate":"",w?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:M,className:X,style:{position:"relative",width:"100%",height:`${Y}px`,...C.style},...C,children:F.map(((t,a)=>{const n=A[a];return e("div",n?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:`${n.left}px`,top:`${n.top}px`,width:`${n.width}px`,opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));Rl.displayName="MasonryGrid";const Ml=u(((t,a)=>{let{children:n,className:i="",...r}=t;const o=["o-masonry-grid__item-inner"];return i&&o.push(i),e("div",{ref:a,className:o.join(" "),...r,children:n})}));Ml.displayName="MasonryGridItem";const kl={...Cl,...Object.freeze({__proto__:null,Container:Le,Grid:Ol,GridCol:Il,MasonryGrid:Rl,MasonryGridItem:Ml,Row:wl}),composables:Ll,utils:xl,constants:Tl,types:Al};export{_e as Accordion,Sr as AdvancedChart,fr as AnimatedChart,Cr as AreaChart,Se as AtomixLogo,Ee as Avatar,Ne as AvatarGroup,Ce as Badge,xr as BarChart,Ae as Block,Te as Breadcrumb,Ar as BubbleChart,Ie as Button,Hi as Callout,Tr as CandlestickChart,Wi as Card,_r as Chart,Er as ChartRenderer,po as Checkbox,Gr as ColorModeToggle,Le as Container,Vr as Countdown,qr as DataTable,ao as DatePicker,Or as DonutChart,io as Dropdown,oo as EdgePanel,vo as Form,So as FormGroup,Ir as FunnelChart,wr as GaugeChart,Ol as Grid,Il as GridCol,Rr as HeatmapChart,Yo as Hero,be as Icon,bo as Input,yr as LineChart,Xo as List,Rl as MasonryGrid,Ml as MasonryGridItem,Ho as Messages,Wo as Modal,Mr as MultiAxisChart,jo as Nav,Zo as NavItem,Ko as Navbar,Kr as Pagination,rl as PhotoViewer,Dr as PieChart,ll as Popover,ul as ProductReview,hl as Progress,Pr as RadarChart,No as Radio,dl as Rating,$r as RealTimeChart,ml as River,wl as Row,Br as ScatterChart,pl as SectionIntro,Vo as Select,qo as SideMenu,Qo as SideMenuItem,Jo as SideMenuList,gl as Slider,Xr as Spinner,vl as Steps,_l as Tab,Sl as Testimonial,Uo as Textarea,fl as Todo,bl as Toggle,El as Tooltip,Fr as TreemapChart,Nl as Upload,yl as VideoPlayer,zr as WaterfallChart,Ll as composables,Tl as constants,kl as default,Al as types,xl as utils};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import n,{useState as i,useRef as r,useEffect as o,forwardRef as l,useId as s,useMemo as c,useCallback as d,Children as u,isValidElement as h,cloneElement as m,memo as p,useImperativeHandle as g,createContext as v}from"react";import*as S from"@phosphor-icons/react";import{Pause as f,Play as E,SkipBack as A,SkipForward as b,SpeakerX as N,SpeakerHigh as _,Gear as C,Download as T,Share as L,ArrowsIn as y,ArrowsOut as x}from"@phosphor-icons/react";import{createPortal as I}from"react-dom";const w={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},R={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},O={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},M={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},D={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},k={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},B={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},P={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},z={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},F={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},U={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},G={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},V={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},Y={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},H={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},W={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},Q={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},K={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},Z={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},j={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},q={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},X={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},$={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},J={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},ee={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},te={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},ae={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},ne={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},ie={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},re={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},oe={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},le={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},se={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},ce={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},de={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},ue={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas",GLASS:"c-video-player--glass",GLASS_OVERLAY:"c-video-player__glass-overlay",GLASS_CONTENT:"c-video-player__glass-content"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},he={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},me=he,pe={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},ge={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}},ve={SELECTORS:{FOOTER:".c-footer",CONTAINER:".c-footer__container",SECTIONS:".c-footer__sections",BRAND:".c-footer__brand",BRAND_LOGO:".c-footer__brand-logo",BRAND_NAME:".c-footer__brand-name",BRAND_DESCRIPTION:".c-footer__brand-description",SECTION:".c-footer__section",SECTION_HEADER:".c-footer__section-header",SECTION_TITLE:".c-footer__section-title",SECTION_CONTENT:".c-footer__section-content",SECTION_TOGGLE:".c-footer__section-toggle",LINK:".c-footer__link",SOCIAL:".c-footer__social",SOCIAL_LINK:".c-footer__social-link",NEWSLETTER:".c-footer__newsletter",NEWSLETTER_FORM:".c-footer__newsletter-form",NEWSLETTER_INPUT:".c-footer__newsletter-input",NEWSLETTER_BUTTON:".c-footer__newsletter-button",BOTTOM:".c-footer__bottom",COPYRIGHT:".c-footer__copyright",BACK_TO_TOP:".c-footer__back-to-top",DIVIDER:".c-footer__divider"},CLASSES:{BASE:"c-footer",CONTAINER:"c-footer__container",SECTIONS:"c-footer__sections",BRAND:"c-footer__brand",BRAND_LOGO:"c-footer__brand-logo",BRAND_NAME:"c-footer__brand-name",BRAND_DESCRIPTION:"c-footer__brand-description",SECTION:"c-footer__section",SECTION_HEADER:"c-footer__section-header",SECTION_TITLE:"c-footer__section-title",SECTION_CONTENT:"c-footer__section-content",SECTION_TOGGLE:"c-footer__section-toggle",SECTION_COLLAPSIBLE:"c-footer__section--collapsible",SECTION_COLLAPSED:"c-footer__section--collapsed",LINK:"c-footer__link",LINK_ACTIVE:"c-footer__link--active",LINK_DISABLED:"c-footer__link--disabled",SOCIAL:"c-footer__social",SOCIAL_LINK:"c-footer__social-link",NEWSLETTER:"c-footer__newsletter",NEWSLETTER_FORM:"c-footer__newsletter-form",NEWSLETTER_INPUT:"c-footer__newsletter-input",NEWSLETTER_BUTTON:"c-footer__newsletter-button",BOTTOM:"c-footer__bottom",COPYRIGHT:"c-footer__copyright",BACK_TO_TOP:"c-footer__back-to-top",DIVIDER:"c-footer__divider",COLUMNS:"c-footer--columns",CENTERED:"c-footer--centered",MINIMAL:"c-footer--minimal",STACKED:"c-footer--stacked",SM:"c-footer--sm",MD:"c-footer--md",LG:"c-footer--lg",STICKY:"c-footer--sticky"},DEFAULTS:{LAYOUT:"columns",VARIANT:"primary",SIZE:"md",SHOW_NEWSLETTER:!1,SHOW_BACK_TO_TOP:!1,SHOW_DIVIDER:!0,STICKY:!1,NEWSLETTER_TITLE:"Stay Updated",NEWSLETTER_DESCRIPTION:"Subscribe to our newsletter for the latest updates.",NEWSLETTER_PLACEHOLDER:"Enter your email",NEWSLETTER_BUTTON_TEXT:"Subscribe",BACK_TO_TOP_TEXT:"Back to Top"}};function Se(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},a="boolean"==typeof t.isOpen,[n,l]=i(t.defaultOpen||!1),s=a?t.isOpen:n,[c,d]=i(s?"auto":"0px"),u=r(null),h=r(null),m=()=>{if(h.current&&u.current){const e=s?`${h.current.clientHeight}px`:"0px";u.current.style.setProperty(w.CSS_VARS.PANEL_HEIGHT,e),d(e)}};o((()=>{m()}),[s]),o((()=>{const e=()=>{s&&m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]);return{state:{isOpen:s,panelHeight:c},toggle:()=>{t.disabled||(a?t.onOpenChange&&t.onOpenChange(!s):l((e=>!e)))},updatePanelHeight:m,panelRef:u,contentRef:h,generateClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`c-accordion ${s?w.CLASSES.IS_OPEN:""} ${t.disabled?w.CLASSES.IS_DISABLED:""} ${e}`.trim()},generateHeaderClassNames:()=>`c-accordion__header ${"left"===t.iconPosition?"c-accordion__header--icon-left":""}`.trim()}}var fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ae=function(e){try{return!!e()}catch(e){return!0}},be=!Ae((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ne=be,_e=Function.prototype,Ce=_e.call,Te=Ne&&_e.bind.bind(Ce,Ce),Le=Ne?Te:function(e){return function(){return Ce.apply(e,arguments)}},ye=Le({}.isPrototypeOf),xe=function(e){return e&&e.Math===Math&&e},Ie=xe("object"==typeof globalThis&&globalThis)||xe("object"==typeof window&&window)||xe("object"==typeof self&&self)||xe("object"==typeof fe&&fe)||xe("object"==typeof fe&&fe)||function(){return this}()||Function("return this")(),we=be,Re=Function.prototype,Oe=Re.apply,Me=Re.call,De="object"==typeof Reflect&&Reflect.apply||(we?Me.bind(Oe):function(){return Me.apply(Oe,arguments)}),ke=Le,Be=ke({}.toString),Pe=ke("".slice),ze=function(e){return Pe(Be(e),8,-1)},Fe=ze,Ue=Le,Ge=function(e){if("Function"===Fe(e))return Ue(e)},Ve="object"==typeof document&&document.all,Ye=void 0===Ve&&void 0!==Ve?function(e){return"function"==typeof e||e===Ve}:function(e){return"function"==typeof e},He={},We=!Ae((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Qe=be,Ke=Function.prototype.call,Ze=Qe?Ke.bind(Ke):function(){return Ke.apply(Ke,arguments)},je={},qe={}.propertyIsEnumerable,Xe=Object.getOwnPropertyDescriptor,$e=Xe&&!qe.call({1:2},1);je.f=$e?function(e){var t=Xe(this,e);return!!t&&t.enumerable}:qe;var Je,et,tt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},at=Ae,nt=ze,it=Object,rt=Le("".split),ot=at((function(){return!it("z").propertyIsEnumerable(0)}))?function(e){return"String"===nt(e)?rt(e,""):it(e)}:it,lt=function(e){return null==e},st=lt,ct=TypeError,dt=function(e){if(st(e))throw new ct("Can't call method on "+e);return e},ut=ot,ht=dt,mt=function(e){return ut(ht(e))},pt=Ye,gt=function(e){return"object"==typeof e?null!==e:pt(e)},vt={},St=vt,ft=Ie,Et=Ye,At=function(e){return Et(e)?e:void 0},bt=Ie.navigator,Nt=bt&&bt.userAgent,_t=Nt?String(Nt):"",Ct=Ie,Tt=_t,Lt=Ct.process,yt=Ct.Deno,xt=Lt&&Lt.versions||yt&&yt.version,It=xt&&xt.v8;It&&(et=(Je=It.split("."))[0]>0&&Je[0]<4?1:+(Je[0]+Je[1])),!et&&Tt&&(!(Je=Tt.match(/Edge\/(\d+)/))||Je[1]>=74)&&(Je=Tt.match(/Chrome\/(\d+)/))&&(et=+Je[1]);var wt=et,Rt=wt,Ot=Ae,Mt=Ie.String,Dt=!!Object.getOwnPropertySymbols&&!Ot((function(){var e=Symbol("symbol detection");return!Mt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rt&&Rt<41})),kt=Dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Bt=function(e,t){return arguments.length<2?At(St[e])||At(ft[e]):St[e]&&St[e][t]||ft[e]&&ft[e][t]},Pt=Ye,zt=ye,Ft=Object,Ut=kt?function(e){return"symbol"==typeof e}:function(e){var t=Bt("Symbol");return Pt(t)&&zt(t.prototype,Ft(e))},Gt=String,Vt=Ye,Yt=function(e){try{return Gt(e)}catch(e){return"Object"}},Ht=TypeError,Wt=function(e){if(Vt(e))return e;throw new Ht(Yt(e)+" is not a function")},Qt=Wt,Kt=lt,Zt=Ze,jt=Ye,qt=gt,Xt=TypeError,$t={exports:{}},Jt=Ie,ea=Object.defineProperty,ta=Ie,aa=function(e,t){try{ea(Jt,e,{value:t,configurable:!0,writable:!0})}catch(a){Jt[e]=t}return t},na="__core-js_shared__",ia=$t.exports=ta[na]||aa(na,{});(ia.versions||(ia.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ra=$t.exports,oa=dt,la=Object,sa=function(e){return la(oa(e))},ca=sa,da=Le({}.hasOwnProperty),ua=Object.hasOwn||function(e,t){return da(ca(e),t)},ha=Le,ma=0,pa=Math.random(),ga=ha(1.1.toString),va=function(e,t){return ra[e]||(ra[e]=t||{})},Sa=ua,fa=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ga(++ma+pa,36)},Ea=Dt,Aa=kt,ba=Ie.Symbol,Na=va("wks"),_a=Aa?ba.for||ba:ba&&ba.withoutSetter||fa,Ca=function(e){return Sa(Na,e)||(Na[e]=Ea&&Sa(ba,e)?ba[e]:_a("Symbol."+e)),Na[e]},Ta=Ze,La=gt,ya=Ut,xa=function(e,t){var a=e[t];return Kt(a)?void 0:Qt(a)},Ia=function(e,t){var a,n;if("string"===t&&jt(a=e.toString)&&!qt(n=Zt(a,e)))return n;if(jt(a=e.valueOf)&&!qt(n=Zt(a,e)))return n;if("string"!==t&&jt(a=e.toString)&&!qt(n=Zt(a,e)))return n;throw new Xt("Can't convert object to primitive value")},wa=TypeError,Ra=Ca("toPrimitive"),Oa=function(e,t){if(!La(e)||ya(e))return e;var a,n=xa(e,Ra);if(n){if(void 0===t&&(t="default"),a=Ta(n,e,t),!La(a)||ya(a))return a;throw new wa("Can't convert object to primitive value")}return void 0===t&&(t="number"),Ia(e,t)},Ma=Ut,Da=function(e){var t=Oa(e,"string");return Ma(t)?t:t+""},ka=gt,Ba=Ie.document,Pa=ka(Ba)&&ka(Ba.createElement),za=function(e){return Pa?Ba.createElement(e):{}},Fa=!We&&!Ae((function(){return 7!==Object.defineProperty(za("div"),"a",{get:function(){return 7}}).a})),Ua=We,Ga=Ze,Va=je,Ya=tt,Ha=mt,Wa=Da,Qa=ua,Ka=Fa,Za=Object.getOwnPropertyDescriptor;He.f=Ua?Za:function(e,t){if(e=Ha(e),t=Wa(t),Ka)try{return Za(e,t)}catch(e){}if(Qa(e,t))return Ya(!Ga(Va.f,e,t),e[t])};var ja=Ae,qa=Ye,Xa=/#|\.prototype\./,$a=function(e,t){var a=en[Ja(e)];return a===an||a!==tn&&(qa(t)?ja(t):!!t)},Ja=$a.normalize=function(e){return String(e).replace(Xa,".").toLowerCase()},en=$a.data={},tn=$a.NATIVE="N",an=$a.POLYFILL="P",nn=$a,rn=Wt,on=be,ln=Ge(Ge.bind),sn={},cn=We&&Ae((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),dn=gt,un=String,hn=TypeError,mn=We,pn=Fa,gn=cn,vn=function(e){if(dn(e))return e;throw new hn(un(e)+" is not an object")},Sn=Da,fn=TypeError,En=Object.defineProperty,An=Object.getOwnPropertyDescriptor,bn="enumerable",Nn="configurable",_n="writable";sn.f=mn?gn?function(e,t,a){if(vn(e),t=Sn(t),vn(a),"function"==typeof e&&"prototype"===t&&"value"in a&&_n in a&&!a[_n]){var n=An(e,t);n&&n[_n]&&(e[t]=a.value,a={configurable:Nn in a?a[Nn]:n[Nn],enumerable:bn in a?a[bn]:n[bn],writable:!1})}return En(e,t,a)}:En:function(e,t,a){if(vn(e),t=Sn(t),vn(a),pn)try{return En(e,t,a)}catch(e){}if("get"in a||"set"in a)throw new fn("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var Cn=sn,Tn=tt,Ln=We?function(e,t,a){return Cn.f(e,t,Tn(1,a))}:function(e,t,a){return e[t]=a,e},yn=Ie,xn=De,In=Ge,wn=Ye,Rn=He.f,On=nn,Mn=vt,Dn=function(e,t){return rn(e),void 0===t?e:on?ln(e,t):function(){return e.apply(t,arguments)}},kn=Ln,Bn=ua,Pn=function(e){var t=function(a,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(a);case 2:return new e(a,n)}return new e(a,n,i)}return xn(e,this,arguments)};return t.prototype=e.prototype,t},zn=function(e,t){var a,n,i,r,o,l,s,c,d,u=e.target,h=e.global,m=e.stat,p=e.proto,g=h?yn:m?yn[u]:yn[u]&&yn[u].prototype,v=h?Mn:Mn[u]||kn(Mn,u,{})[u],S=v.prototype;for(r in t)n=!(a=On(h?r:u+(m?".":"#")+r,e.forced))&&g&&Bn(g,r),l=v[r],n&&(s=e.dontCallGetSet?(d=Rn(g,r))&&d.value:g[r]),o=n&&s?s:t[r],(a||p||typeof l!=typeof o)&&(c=e.bind&&n?Dn(o,yn):e.wrap&&n?Pn(o):p&&wn(o)?In(o):o,(e.sham||o&&o.sham||l&&l.sham)&&kn(c,"sham",!0),kn(v,r,c),p&&(Bn(Mn,i=u+"Prototype")||kn(Mn,i,{}),kn(Mn[i],r,o),e.real&&S&&(a||!S[r])&&kn(S,r,o)))},Fn=Math.ceil,Un=Math.floor,Gn=Math.trunc||function(e){var t=+e;return(t>0?Un:Fn)(t)},Vn=function(e){var t=+e;return t!=t||0===t?0:Gn(t)},Yn=Vn,Hn=Math.max,Wn=Math.min,Qn=Vn,Kn=Math.min,Zn=function(e){var t=Qn(e);return t>0?Kn(t,9007199254740991):0},jn=function(e){return Zn(e.length)},qn=mt,Xn=function(e,t){var a=Yn(e);return a<0?Hn(a+t,0):Wn(a,t)},$n=jn,Jn=function(e){return function(t,a,n){var i=qn(t),r=$n(i);if(0===r)return!e&&-1;var o,l=Xn(n,r);if(e&&a!=a){for(;r>l;)if((o=i[l++])!=o)return!0}else for(;r>l;l++)if((e||l in i)&&i[l]===a)return e||l||0;return!e&&-1}},ei={includes:Jn(!0),indexOf:Jn(!1)}.includes;zn({target:"Array",proto:!0,forced:Ae((function(){return!Array(1).includes()}))},{includes:function(e){return ei(this,e,arguments.length>1?arguments[1]:void 0)}});var ti=Ie,ai=vt,ni=function(e,t){var a=ai[e+"Prototype"],n=a&&a[t];if(n)return n;var i=ti[e],r=i&&i.prototype;return r&&r[t]},ii=ni("Array","includes"),ri=gt,oi=ze,li=Ca("match"),si=function(e){var t;return ri(e)&&(void 0!==(t=e[li])?!!t:"RegExp"===oi(e))},ci=TypeError,di={};di[Ca("toStringTag")]="z";var ui="[object z]"===String(di),hi=Ye,mi=ze,pi=Ca("toStringTag"),gi=Object,vi="Arguments"===mi(function(){return arguments}()),Si=ui?mi:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(t=gi(e),pi))?a:vi?mi(t):"Object"===(n=mi(t))&&hi(t.callee)?"Arguments":n},fi=String,Ei=Ca("match"),Ai=zn,bi=function(e){if(si(e))throw new ci("The method doesn't accept regular expressions");return e},Ni=dt,_i=function(e){if("Symbol"===Si(e))throw new TypeError("Cannot convert a Symbol value to a string");return fi(e)},Ci=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[Ei]=!1,"/./"[e](t)}catch(e){}}return!1},Ti=Le("".indexOf);Ai({target:"String",proto:!0,forced:!Ci("includes")},{includes:function(e){return!!~Ti(_i(Ni(this)),_i(bi(e)),arguments.length>1?arguments[1]:void 0)}});var Li=ni("String","includes"),yi=ye,xi=ii,Ii=Li,wi=Array.prototype,Ri=String.prototype,Oi=Ee((function(e){var t=e.includes;return e===wi||yi(wi,e)&&t===wi.includes?xi:"string"==typeof e||e===Ri||yi(Ri,e)&&t===Ri.includes?Ii:t}));function Mi(e,t,a){return(a=Math.max(0,Math.min(1,(a-e)/(t-e))))*a*(3-2*a)}function Di(e,t,a,n,i){const r=Math.abs(e)-a+i,o=Math.abs(t)-n+i;return Math.min(Math.max(r,o),0)+function(e,t){return Math.sqrt(e*e+t*t)}(Math.max(r,0),Math.max(o,0))-i}const ki={liquidGlass:e=>{const t=e.x-.5,a=e.y-.5,n=Mi(.8,0,Di(t,a,.3,.2,.6)-.15),i=Mi(0,1,n);return{x:t*i+.5,y:a*i+.5}}};class Bi{constructor(e){this.options=e,this.canvasDPI=1,this.canvas=document.createElement("canvas"),this.canvas.width=e.width*this.canvasDPI,this.canvas.height=e.height*this.canvasDPI,this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw new Error("Could not get 2D context");this.context=t}updateShader(e){const t=this.options.width*this.canvasDPI,a=this.options.height*this.canvasDPI;let n=0;const i=[];for(let r=0;r<a;r++)for(let o=0;o<t;o++){const l={x:o/t,y:r/a},s=this.options.fragment(l,e),c=s.x*t-o,d=s.y*a-r;n=Math.max(n,Math.abs(c),Math.abs(d)),i.push(c,d)}n=n>0?Math.max(n,1):1;const r=this.context.createImageData(t,a),o=r.data;let l=0;for(let e=0;e<a;e++)for(let r=0;r<t;r++){const s=i[l++]||0,c=i[l++]||0,d=Math.min(r,e,t-r-1,a-e-1),u=Math.min(1,d/2),h=s*u/n+.5,m=c*u/n+.5,p=4*(e*t+r);o[p]=Math.max(0,Math.min(255,255*h)),o[p+1]=Math.max(0,Math.min(255,255*m)),o[p+2]=Math.max(0,Math.min(255,255*m)),o[p+3]=255}return this.context.putImageData(r,0,0),this.canvas.toDataURL()}destroy(){this.canvas.remove()}getScale(){return this.canvasDPI}}const Pi="data:image/jpeg;base64,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cUAUAkEkziomgGgkoxZGgxZFQFQlYnQHRdPfj/10KCSCKESCNiVkViPSLpD0h6I0Q0I0A2IoBWBIJIBKBIJoJIJ2R2J0JWBUJ0JUB0XTv479dFZDYiglYigkhEgjZFQjRFQjRFQjQigFYigHYigmgEgmglYlYnQlQlYlQHQlQnQ9P/kf1yVkNiNCNkNiVENiNiViNEViNkVCVgKCViViViSCViSCVgdCViVCViVCdgVCVCdD1D+U/XBWQ2I0I2Q2JUQ2I0JWQ0I2JUQ2JUI2JUI2J0JWJWJWA2R0BWJ0I2JUJ2BUJUJ0P//EABkQAQEBAQEBAAAAAAAAAAAAAAECABEDEP/aAAgBAQABAgB1atWrVq1atWrVq1atWrVq1atWrVq1atWrVq+OrVq1atWrVq1atWrVq1atWrVq1atWrVq1atXxVppppppdWrVq1atWrVq1NNNNNNNNNNNPVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=",zi=(e,t)=>{switch(e){case"standard":return Pi;case"polar":return"data:image/jpeg;base64,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";case"prominent":return"data:image/png;base64,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";case"shader":return t||Pi;default:throw new Error(`Invalid mode: ${e}`)}},Fi=a=>{let{id:n,displacementScale:i,aberrationIntensity:r,mode:o,shaderMapUrl:l}=a;return e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",children:t("defs",{children:[t("radialGradient",{id:`${n}-edge-mask`,cx:"50%",cy:"50%",r:"50%",children:[e("stop",{offset:"0%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:`${Math.max(30,80-2*r)}%`,stopColor:"black",stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),t("filter",{id:n,x:"-35%",y:"-35%",width:"170%",height:"170%",colorInterpolationFilters:"sRGB",children:[e("feImage",{id:"feimage",x:"0",y:"0",width:"100%",height:"100%",result:"DISPLACEMENT_MAP",href:zi(o,l),preserveAspectRatio:"xMidYMid slice"}),e("feColorMatrix",{in:"DISPLACEMENT_MAP",type:"matrix",values:"0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0 0 0 1 0",result:"EDGE_INTENSITY"}),e("feComponentTransfer",{in:"EDGE_INTENSITY",result:"EDGE_MASK",children:e("feFuncA",{type:"discrete",tableValues:`0 ${.05*r} 1`})}),e("feOffset",{in:"SourceGraphic",dx:"0",dy:"0",result:"CENTER_ORIGINAL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:i*("shader"===o?1:-1),xChannelSelector:"R",yChannelSelector:"B",result:"RED_DISPLACED"}),e("feColorMatrix",{in:"RED_DISPLACED",type:"matrix",values:"1 0 0 0 0\n 0 0 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"RED_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:i*(("shader"===o?1:-1)-.02*r),xChannelSelector:"R",yChannelSelector:"B",result:"GREEN_DISPLACED"}),e("feColorMatrix",{in:"GREEN_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 1 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"GREEN_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:i*(("shader"===o?1:-1)-.03*r),xChannelSelector:"R",yChannelSelector:"B",result:"BLUE_DISPLACED"}),e("feColorMatrix",{in:"BLUE_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 0 0 0 0\n 0 0 1 0 0\n 0 0 0 1 0",result:"BLUE_CHANNEL"}),e("feBlend",{in:"GREEN_CHANNEL",in2:"BLUE_CHANNEL",mode:"screen",result:"GB_COMBINED"}),e("feBlend",{in:"RED_CHANNEL",in2:"GB_COMBINED",mode:"screen",result:"RGB_COMBINED"}),e("feGaussianBlur",{in:"RGB_COMBINED",stdDeviation:Math.max(.1,.5-.1*r),result:"ABERRATED_BLURRED"}),e("feComposite",{in:"ABERRATED_BLURRED",in2:"EDGE_MASK",operator:"in",result:"EDGE_ABERRATION"}),e("feComponentTransfer",{in:"EDGE_MASK",result:"INVERTED_MASK",children:e("feFuncA",{type:"table",tableValues:"1 0"})}),e("feComposite",{in:"CENTER_ORIGINAL",in2:"INVERTED_MASK",operator:"in",result:"CENTER_CLEAN"}),e("feComposite",{in:"EDGE_ABERRATION",in2:"CENTER_CLEAN",operator:"over"})]})]})})},Ui=l(((a,n)=>{var r;let{children:l,className:d="",style:u,displacementScale:h=25,blurAmount:m=.0625,saturation:p=180,aberrationIntensity:g=2,mouseOffset:v={x:0,y:0},globalMousePos:S={x:0,y:0},onMouseEnter:f,onMouseLeave:E,onMouseDown:A,onMouseUp:b,active:N=!1,isHovered:_=!1,isActive:C=!1,overLight:T=!1,cornerRadius:L=0,padding:y="0 0",glassSize:x={width:0,height:0},onClick:I,mode:w="standard",transform:R="none",effectiveDisableEffects:O=!1,effectiveReducedMotion:M=!1}=a;const D=s(),[k,B]=i("");Oi(r=navigator.userAgent.toLowerCase()).call(r,"firefox"),o((()=>{if("shader"===w&&x.width>0&&x.height>0)try{const e=((e,t)=>{try{const a=new Bi({width:e,height:t,fragment:ki.liquidGlass}),n=a.updateShader();return a.destroy(),n}catch(e){return Pi}})(x.width,x.height);B(e)}catch(e){}}),[w,x.width,x.height]),o((()=>{if(!n||"function"==typeof n)return;const e=n.current;if(!e)return;const t=setTimeout((()=>{try{e.offsetHeight}catch(e){}}),0);return()=>clearTimeout(t)}),[L,x.width,x.height]);const P=c((()=>{var e;if(!n||!S.x||!S.y)return{baseBlur:m,edgeBlur:.5*m,centerBlur:.2*m,flowBlur:.3*m};const t=null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return{baseBlur:m,edgeBlur:.5*m,centerBlur:.2*m,flowBlur:.3*m};const a=t.left+t.width/2,i=t.top+t.height/2,r=S.x-a,o=S.y-i,l=Math.sqrt(r*r+o*o),s=Math.sqrt(t.width*t.width+t.height*t.height)/2,c=Math.min(l/s,1),d=Math.sqrt(v.x*v.x+v.y*v.y)/100,u=m+d*m*.4,h=u*(.8+.6*(1.5*c+.3*d)),p=u*(.3+.4*(.3*(1-c)+.2*d)),g=Math.atan2(o,r),f=u*(.4+.6*(.5*Math.sin(g+d*Math.PI)+.5)),E=(_?1.2:1)*(C?1.4:1);return{baseBlur:Math.max(.1,u*E),edgeBlur:Math.max(.1,h*E),centerBlur:Math.max(.1,p*E),flowBlur:Math.max(.1,f*E)}}),[m,S,v,_,C,n]),z=c((()=>{const e=p+20*P.baseBlur,t=[`blur(${P.baseBlur}px)`,`blur(${P.flowBlur}px)`];return{filter:`url(#${D})`,backdropFilter:`${t.join(" ")} saturate(${Math.min(e,200)}%)`}}),[D,P,p]);return e("div",{ref:n,className:` ${d} ${N?"active":""}`,style:u,onClick:I,children:t("div",{className:"glass",style:{position:"relative",padding:y,borderRadius:`${L}px`,transition:"all 0.2s ease-out"},onMouseEnter:f,onMouseLeave:E,onMouseDown:A,onMouseUp:b,children:[e(Fi,{mode:w,id:D,displacementScale:h,aberrationIntensity:g,shaderMapUrl:k}),e("span",{className:"glass__warp",style:{...z,borderRadius:`${L}px`,position:"absolute",inset:"0"}}),e("div",{style:{position:"absolute",inset:"1px",borderRadius:`${L}px`,pointerEvents:"none",zIndex:20,boxShadow:["0 0 20px rgba(0, 0, 0, 0.15) inset","0 4px 8px rgba(0, 0, 0, 0.08) inset"].join(", "),opacity:O?0:1,transition:M?"none":"opacity 0.2s ease-out"}}),e("div",{style:{position:"relative",zIndex:1,textShadow:T?"0px 2px 12px rgba(0, 0, 0, 0)":"0px 2px 12px rgba(0, 0, 0, 0.4)"},children:l})]})})}));function Gi(n){let{children:l,displacementScale:s=15,blurAmount:u=.5,saturation:h=120,aberrationIntensity:m=1,elasticity:p=.15,cornerRadius:g=20,globalMousePos:v,mouseOffset:S,mouseContainer:f=null,className:E="",padding:A="0 0",overLight:b=!1,style:N={},mode:_="standard",onClick:C,"aria-label":T,"aria-describedby":L,role:y,tabIndex:x,reducedMotion:I=!1,highContrast:w=!1,disableEffects:R=!1,enablePerformanceMonitoring:O=!1}=n;const M=r(null),[D,k]=i(!1),[B,P]=i(!1),[z,F]=i({width:270,height:69}),[U,G]=i({x:0,y:0}),[V,Y]=i({x:0,y:0}),[H,W]=i(!1),[Q,K]=i(!1);o((()=>{if("function"==typeof window.matchMedia)try{const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");W(e.matches),K(t.matches);const a=e=>{W(e.matches)},n=e=>{K(e.matches)};return e.addEventListener?(e.addEventListener("change",a),t.addEventListener("change",n)):e.addListener&&(e.addListener(a),t.addListener(n)),()=>{e.removeEventListener?(e.removeEventListener("change",a),t.removeEventListener("change",n)):e.removeListener&&(e.removeListener(a),t.removeListener(n))}}catch(e){}}),[]);const Z=I||H,j=w||Q,q=R||Z,X=v||U,$=S||V,J=r(null),ee=r(null),te=d((e=>{ee.current=e,null===J.current&&(J.current=requestAnimationFrame((()=>{const e=ee.current;if(!e)return void(J.current=null);const t=(null==f?void 0:f.current)||M.current;if(t)try{const a=O?performance.now():0,n=t.getBoundingClientRect(),i=n.left+n.width/2,r=n.top+n.height/2;if(Y({x:(e.clientX-i)/n.width*100,y:(e.clientY-r)/n.height*100}),G({x:e.clientX,y:e.clientY}),O){performance.now()}}catch(e){}finally{J.current=null}else J.current=null})))}),[f]);o((()=>{if(v&&S)return;if(q)return;const e=(null==f?void 0:f.current)||M.current;return e?(e.addEventListener("mousemove",te,{passive:!0}),()=>{e.removeEventListener("mousemove",te),J.current&&(cancelAnimationFrame(J.current),J.current=null)}):void 0}),[te,f,v,S,q]);const ae=d((()=>{if(!X.x||!X.y||!M.current)return"scale(1)";const e=M.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,n=z.width,i=z.height,r=X.x-t,o=X.y-a,l=Math.max(0,Math.abs(r)-n/2),s=Math.max(0,Math.abs(o)-i/2),c=Math.sqrt(l*l+s*s);if(c>200)return"scale(1)";const d=1-c/200,u=Math.sqrt(r*r+o*o);if(0===u)return"scale(1)";const h=r/u,m=o/u,g=Math.min(u/300,1)*p*d,v=1+Math.abs(h)*g*.3-Math.abs(m)*g*.15,S=1+Math.abs(m)*g*.3-Math.abs(h)*g*.15;return`scaleX(${Math.max(.8,v)}) scaleY(${Math.max(.8,S)})`}),[X,p,z]),ne=d((()=>{if(!X.x||!X.y||!M.current)return 0;const e=M.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,n=z.width,i=z.height,r=Math.max(0,Math.abs(X.x-t)-n/2),o=Math.max(0,Math.abs(X.y-a)-i/2),l=Math.sqrt(r*r+o*o);return l>200?0:1-l/200}),[X,z]),ie=d((()=>{if(!M.current)return{x:0,y:0};const e=ne(),t=M.current.getBoundingClientRect(),a=t.left+t.width/2,n=t.top+t.height/2;return{x:(X.x-a)*p*.1*e,y:(X.y-n)*p*.1*e}}),[X,p,ne]);o((()=>{const e=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let t=null,a={width:0,height:0},n=g;const i=function(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{null!==t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{try{if(!e(M.current))return;const t=M.current.getBoundingClientRect();if(t.width<=0||t.height<=0)return;const r=Math.max(0,.1*g),o={width:Math.round(t.width+r),height:Math.round(t.height+r)},l=n!==g,s=o.width!==a.width||o.height!==a.height;(i||l||s)&&(a=o,n=g,F(o))}catch(e){}finally{t=null}}))}catch(e){}};let r=null;const o=()=>{r&&clearTimeout(r),r=setTimeout(i,16)};try{i(!0)}catch(e){}let l=null,s=null;try{if("undefined"!=typeof ResizeObserver&&"function"==typeof ResizeObserver.prototype.observe&&e(M.current))try{l=new ResizeObserver((e=>{try{for(const t of e)if(t.target===M.current){i();break}}catch(e){}})),l.observe(M.current)}catch(t){s=setInterval((()=>{e(M.current)&&i()}),100)}else s=setInterval((()=>{e(M.current)&&i()}),100)}catch(t){s=setInterval((()=>{e(M.current)&&i()}),100)}return window.addEventListener("resize",o,{passive:!0}),()=>{try{if(null!==t&&(cancelAnimationFrame(t),t=null),r&&(clearTimeout(r),r=null),window.removeEventListener("resize",o),l){try{e(M.current)&&l.unobserve(M.current),l.disconnect()}catch(e){}l=null}s&&(clearInterval(s),s=null)}catch(e){}}}),[g,O]),o((()=>{if(!M.current)return;const e=setTimeout((()=>{try{var e;const t=null===(e=M.current)||void 0===e?void 0:e.getBoundingClientRect();if(t&&t.width>0&&t.height>0){const e=Math.max(0,.1*g),a={width:Math.round(t.width+e),height:Math.round(t.height+e)};F(a)}}catch(e){}}),0);return()=>clearTimeout(e)}),[g,O]);const re=c((()=>q?{x:0,y:0}:ie()),[ie,q]),oe=c((()=>q?"scale(1)":ae()),[ae,q]),le=c((()=>q?B&&Boolean(C)?"scale(0.98)":"scale(1)":`translate(${re.x}px, ${re.y}px) ${B&&Boolean(C)?"scale(0.96)":oe}`),[re,B,C,oe,q]),se=c((()=>({...N,transform:le,transition:Z?"none":"all ease-out 0.2s",willChange:q?"auto":"transform",...j&&{border:"2px solid currentColor",outline:"2px solid transparent",outlineOffset:"2px"}})),[N,le,Z,q,j]),ce=c((()=>({position:se.position||"absolute",top:se.top||0,left:se.left||0})),[se]),de=d((()=>{if(!M.current)return{width:0,height:0};try{const e=M.current.getBoundingClientRect();return{width:Math.max(e.width,0),height:Math.max(e.height,0)}}catch(e){return{width:0,height:0}}}),[]);d((()=>{const e=de();if(q||0===e.width||0===e.height)return e;let t=1,a=1;const n=oe.match(/scale\(([^)]+)\)/);if(n&&n[1]){const e=parseFloat(n[1]);t=e,a=e}else{const e=oe.match(/scaleX\(([^)]+)\)/);e&&e[1]&&(t=parseFloat(e[1]));const n=oe.match(/scaleY\(([^)]+)\)/);n&&n[1]&&(a=parseFloat(n[1]))}return{width:e.width*t,height:e.height*a}}),[de,oe,q,O]);const ue=c((()=>{const e={width:"fixed"!==se.position?"100%":se.width?se.width:Math.max(z.width,0),height:"fixed"!==se.position?"100%":se.height?se.height:Math.max(z.height,0)};return{...ce,width:e.width,height:e.height,borderRadius:`${Math.max(0,g)}px`,transform:se.transform,transition:Z?"none":se.transition,pointerEvents:"none",mixBlendMode:"screen",opacity:.2,padding:"1.5px",boxSizing:"border-box",zIndex:5,WebkitMask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",boxShadow:"0 0 0 0.5px rgba(255, 255, 255, 0.5) inset, 0 1px 3px rgba(255, 255, 255, 0.25) inset, 0 1px 4px rgba(0, 0, 0, 0.35)",background:`linear-gradient(\n ${135+1.2*$.x}deg,\n rgba(255, 255, 255, 0.0) 0%,\n rgba(255, 255, 255, ${.12+.008*Math.abs($.x)}) ${Math.max(10,33+.3*$.y)}%,\n rgba(255, 255, 255, ${.4+.012*Math.abs($.x)}) ${Math.min(90,66+.4*$.y)}%,\n rgba(255, 255, 255, 0.0) 100%\n )`}}),[ce,z,g,se,$,Z]),he=c((()=>{const e={width:"fixed"!==se.position?"100%":se.width?se.width:Math.max(z.width,0),height:"fixed"!==se.position?"100%":se.height?se.height:Math.max(z.height,0)};return{...ce,width:e.width,height:e.height,borderRadius:`${Math.max(0,g)}px`,transform:se.transform,transition:Z?"none":se.transition,overflow:"hidden",pointerEvents:"none",zIndex:6,mixBlendMode:"overlay",padding:"1.5px",boxSizing:"border-box",WebkitMask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",boxShadow:"0 0 0 0.5px rgba(255, 255, 255, 0.5) inset, 0 1px 3px rgba(255, 255, 255, 0.25) inset, 0 1px 4px rgba(0, 0, 0, 0.35)",background:`linear-gradient(\n ${135+1.2*$.x}deg,\n rgba(255, 255, 255, 0.0) 0%,\n rgba(255, 255, 255, ${.32+.008*Math.abs($.x)}) ${Math.max(10,33+.3*$.y)}%,\n rgba(255, 255, 255, ${.6+.012*Math.abs($.x)}) ${Math.min(90,66+.4*$.y)}%,\n rgba(255, 255, 255, 0.0) 100%\n )`}}),[ce,z,g,se,$,Z]),me=c((()=>({...ce,position:"absolute",inset:"0",borderRadius:`${Math.max(0,g)}px`,transform:se.transform,pointerEvents:"none",transition:Z?"none":"all 0.2s ease-out",opacity:D||B?.5:0,background:`radial-gradient(\n circle at ${50+$.x/2}% ${50+$.y/2}%,\n rgba(255, 255, 255, 0.5) 0%,\n rgba(255, 255, 255, 0) 50%\n )`,mixBlendMode:"overlay"})),[ce,g,se,D,B,$,Z]),pe=c((()=>({...ce,position:"absolute",inset:"0",borderRadius:`${Math.max(0,g)}px`,overflow:"hidden",transform:se.transform,pointerEvents:"none",transition:Z?"none":"all 0.2s ease-out",opacity:B?.5:0,background:`radial-gradient(\n circle at ${50+$.x/1.5}% ${50+$.y/1.5}%,\n rgba(255, 255, 255, 1) 0%,\n rgba(255, 255, 255, 0) 80%\n )`,mixBlendMode:"overlay"})),[ce,g,se,B,$,Z]),ge=c((()=>({...ce,position:"absolute",inset:"0",transform:se.transform,borderRadius:`${Math.max(0,g)}px`,pointerEvents:"none",transition:Z?"none":"all 0.2s ease-out",opacity:D?.4:B?.8:0,background:`radial-gradient(\n circle at ${50+$.x}% ${50+$.y}%,\n rgba(255, 255, 255, 1) 0%,\n rgba(255, 255, 255, 0) 100%\n )`,mixBlendMode:"overlay"})),[ce,g,se,D,B,$,Z]);return t("div",{style:{...ce,position:"relative"},role:y||(C?"button":void 0),tabIndex:C?x??0:x,"aria-label":T,"aria-describedby":L,"aria-disabled":!C&&void 0,onKeyDown:C?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C())}:void 0,children:[e("div",{className:"u-bg-dark "+(b?"u-opacity-50":"u-opacity-0"),style:{...ce,height:z.height,width:z.width,borderRadius:`${g}px`,transform:se.transform,transition:se.transition,willChange:"transform"}}),e("div",{className:"u-bg-black "+(b?"u-opacity-25":"u-opacity-0"),style:{...ce,height:z.height,width:z.width,borderRadius:`${g}px`,transform:se.transform,transition:se.transition,mixBlendMode:"overlay",pointerEvents:"none",willChange:"transform"}}),e(Ui,{ref:M,className:E,style:{...se,transform:se.transform},cornerRadius:g,displacementScale:q?0:b?.5*s:s,blurAmount:q?0:u,saturation:j?200:h,aberrationIntensity:q?0:m,glassSize:z,padding:A,mouseOffset:q?{x:0,y:0}:$,globalMousePos:q?{x:0,y:0}:X,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),onMouseDown:()=>P(!0),onMouseUp:()=>P(!1),active:B,isHovered:D,isActive:B,overLight:b,onClick:C,mode:q?"standard":_,transform:se.transform,effectiveDisableEffects:q,effectiveReducedMotion:Z,children:l}),e("span",{style:ue}),e("span",{style:he}),Boolean(C)&&t(a,{children:[e("div",{style:me}),e("div",{style:pe}),e("div",{style:ge})]})]})}Ui.displayName="GlassContainer";const Vi=a=>{let{title:n,children:i,defaultOpen:r=!1,isOpen:o,onOpenChange:l,disabled:c=!1,iconPosition:d="right",icon:u,className:h="",glass:m}=a;const p=s(),g=`accordion-header-${p}`,v=`accordion-panel-${p}`,{state:S,toggle:f,updatePanelHeight:E,panelRef:A,contentRef:b,generateClassNames:N,generateHeaderClassNames:_}=Se({defaultOpen:r,disabled:c,iconPosition:d,isOpen:o,onOpenChange:l}),C=e("i",{className:"c-accordion__icon",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("polyline",{points:"6 9 12 15 18 9"})})}),T=t("div",{className:N(h)+(m?" c-accordion--glass":""),children:[t("button",{id:g,className:_(),onClick:f,"aria-expanded":S.isOpen,"aria-controls":v,disabled:c,type:"button",children:[e("span",{className:"c-accordion__title",children:n}),u||C]}),e("div",{id:v,className:w.SELECTORS.PANEL.replace(".",""),ref:A,role:"region","aria-labelledby":g,children:e("div",{className:w.SELECTORS.BODY.replace(".",""),ref:b,children:i})})]});if(m){const t={displacementScale:20,blurAmount:10,saturation:140,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===m?t:{...t,...m};return e(Gi,{...a,children:T})}return T};Vi.displayName="Accordion";const Yi=a=>{let{height:n=24,width:i=24,color:r="currentColor",...o}=a;return t("svg",{width:i,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:r}),e("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:r})]})},Hi={xs:16,sm:20,md:24,lg:32,xl:40},Wi=t=>{let{name:a,size:n="md",weight:i="regular",color:r,className:o="",alt:l}=t;const s=S[a];if(!s)return null;return e("span",{className:`c-icon c-icon--${n} ${o}`,"aria-hidden":!l,title:l,children:e(s,{size:"string"==typeof n?Hi[n]||24:n,weight:i,color:r,"aria-label":l})})};Wi.displayName="Icon";const Qi=t=>{let{src:a,alt:n="Avatar",initials:r,icon:o,size:l="md",circle:s=!1,className:c="",disabled:d=!1,onClick:u}=t;const[h,m]=i(!1),p=[re.CLASSES.BASE,"md"!==l&&`c-avatar--${l}`,s&&re.CLASSES.CIRCLE,d&&"is-disabled",c].filter(Boolean).join(" ");return e("div",{className:p,onClick:u?e=>{!d&&u&&u(e)}:void 0,role:u?"button":void 0,tabIndex:u&&!d?0:void 0,"aria-disabled":d||void 0,children:a&&!h?e("img",{src:a,alt:n,className:"c-avatar__image",onError:()=>{m(!0)}}):e("span",r?{className:"c-avatar__initials",children:r}:o?{className:"c-avatar__icon",children:o}:{className:"c-avatar__icon",children:e(Wi,{name:"User",size:"xs"===l?"xs":"sm"===l?"sm":"md"})})})};Qi.displayName="Avatar";const Ki=a=>{let{children:n,max:i,stacked:r=!1,className:o="",moreText:l}=a;const s=[oe.CLASSES.BASE,r&&oe.CLASSES.STACKED,o].filter(Boolean).join(" "),c=u.toArray(n).filter((e=>h(e)&&e.type===Qi)),d=void 0!==i&&c.length>i,p=d?c.slice(0,i):c,g=c.length-(i||0),v=h(c[0])?c[0].props:null,S=(null==v?void 0:v.size)||"md",f=(null==v?void 0:v.circle)||!1,E=[re.CLASSES.BASE,oe.CLASSES.MORE,"md"!==S&&`c-avatar--${S}`,f&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:s,children:[p.map(((e,t)=>h(e)?m(e,{key:t,...e.props}):null)),d&&e("div",{className:E,children:l||`+${g}`})]})};function Zi(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:i=t.disabled,className:r=""}=e;return`${R.BASE_CLASS} ${a?`${R.VARIANT_PREFIX}${a}`:""} ${"md"===n?"":`${R.SIZE_PREFIX}${n}`} ${i?"c-badge--disabled":""} ${r}`.trim()}}}Ki.displayName="AvatarGroup";const ji=a=>{let{label:n,variant:i="primary",size:r="md",disabled:o=!1,icon:l,className:s="",glass:c}=a;const{generateBadgeClass:d}=Zi({variant:i,size:r,disabled:o}),u=d({variant:i,size:r,disabled:o,className:`${s} ${c?"c-badge--glass":""}`.trim()}),h=t("span",{className:u,"aria-disabled":o,children:[l&&e("span",{className:R.ICON_CLASS,children:l}),e("span",{children:n})]});if(c){const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:999,mode:"standard",className:"c-badge-glass"},a=!0===c?t:{...t,...c};return e(Gi,{...a,children:h})}return h};ji.displayName="Badge";const qi=l(((t,a)=>{let{children:n,className:i="",type:r,...o}=t,l="o-container";return r&&(l=`o-container-${r}`),e("div",{ref:a,className:`${l} ${i}`.trim(),...o,children:n})}));qi.displayName="Container";const Xi=()=>({generateBlockClass:e=>{let{spacing:t=ge.SPACING.DEFAULT,background:a="",fullWidth:n=!1,className:i=""}=e;const r=[ge.BASE_CLASS];if(t&&"none"!==t&&r.push(`${ge.SPACING_PREFIX}${t}`),a){const e=ge.CLASSES[`BG_${a.toUpperCase()}`];e&&r.push(e)}return n&&r.push(ge.CLASSES.FULL_WIDTH),i&&r.push(i),r.filter(Boolean).join(" ")}}),$i=l(((t,a)=>{let{children:n,as:i="section",spacing:r="md",container:o={},fullWidth:l=!1,className:s="",style:c,background:d="",...u}=t;const{generateBlockClass:h}=Xi(),m=h({spacing:r,background:d,fullWidth:l,className:s});return e(i,{ref:a,className:m,style:c,...u,children:l?n:e(qi,{type:o.type,className:o.className,children:n})})}));$i.displayName="Block";const Ji=n=>{let{items:i,divider:r,className:o="",ariaLabel:l="Breadcrumb",LinkComponent:s}=n;const c=[M.CLASSES.BASE,o].filter(Boolean).join(" ");return e("nav",{"aria-label":l,children:e("ol",{className:c,children:i.map(((n,r)=>{const o=r===i.length-1,l=[M.CLASSES.ITEM,n.active||o?M.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(a,{children:[n.icon&&e("span",{className:"c-breadcrumb__icon",children:n.icon}),n.label]}),d={href:n.href,className:M.CLASSES.LINK,onClick:n.onClick};return e("li",{className:l,children:n.href&&!n.active?e(s||"a",{...d,children:c}):e("span",{className:M.CLASSES.LINK,children:c})},r)}))})})};function er(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:i=t.disabled,rounded:r=t.rounded,iconOnly:o=!1,glass:l=t.glass,className:s=""}=e;return`c-btn c-btn--${a} ${"md"===n?"":`c-btn--${n}`} ${o?"c-btn--icon":""} ${r?"c-btn--rounded":""} ${i?"c-btn--disabled":""} ${l?"c-btn--glass":""} ${s}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}Ji.displayName="Breadcrumb";const tr=l(((n,i)=>{let{label:r,children:o,onClick:l,variant:s="primary",size:c="md",disabled:d=!1,icon:u,iconOnly:h=!1,rounded:m=!1,className:p="",as:g="button",glass:v,...S}=n;const{generateButtonClass:f,handleClick:E}=er({variant:s,size:c,disabled:d,rounded:m,glass:v}),A={},b={ref:i,className:f({variant:s,size:c,disabled:d,rounded:m,iconOnly:h,glass:v,className:p}),onClick:E(l),disabled:d,"aria-disabled":d,style:v?A:void 0,...S},N=t(a,{children:[u&&e("span",{className:"c-btn__icon",children:u}),!h&&e("span",{className:"c-btn__label",children:r||o})]});if(v){const t={displacementScale:80,blurAmount:1,saturation:200,aberrationIntensity:1,cornerRadius:12,mode:"shader",mouseContainer:i,onclick:()=>{}},a=!0===v?t:{...t,...v};return e(Gi,{...a,children:e(g,{...b,children:N})})}return e(g,{...b,children:N})}));tr.displayName="Button";const ar=n=>{let{title:i,children:r,icon:o,variant:l="primary",onClose:s,actions:c,oneLine:d=!1,toast:u=!1,glass:h,className:m,...p}=n;const{generateCalloutClass:g,handleClose:v}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:a=t.variant,oneLine:n=t.oneLine,toast:i=t.toast,glass:r=t.glass,className:o=""}=e;return`c-callout ${a?`c-callout--${a}`:""} ${n?"c-callout--oneline":""} ${i?"c-callout--toast":""} ${r?"c-callout--glass":""} ${o}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:l,oneLine:d,toast:u,glass:h,className:m}),S=()=>{var e,t;const a={role:"region"};return u?(a.role="alert",a["aria-live"]="polite"):Oi(e=["warning","error"]).call(e,l)?(a.role="alert",a["aria-live"]="assertive"):Oi(t=["info","success"]).call(t,l)&&(a.role="status",a["aria-live"]="polite"),a},f=t(a,{children:[t("div",{className:"c-callout__content",children:[o&&e("div",{className:"c-callout__icon",children:o}),t("div",{className:"c-callout__message",children:[i&&e("div",{className:"c-callout__title",children:i}),r&&e("div",{className:"c-callout__text",children:r})]})]}),c&&e("div",{className:"c-callout__actions",children:c}),s&&e("button",{className:"c-callout__close-btn",onClick:v(s),"aria-label":"Close",children:e(Wi,{name:"X",size:"md"})})]});if(h){const t={displacementScale:20,blurAmount:2,saturation:70,aberrationIntensity:1,cornerRadius:8,overLight:!1,elasticity:0,mode:"shader"},a=!0===h?t:{...t,...h};return e("div",{className:g({variant:l,oneLine:d,toast:u,glass:h,className:m}),...S(),...p,children:e(Gi,{...a,children:e("div",{className:"c-callout__glass-content",children:f})})})}return e("div",{className:g({variant:l,oneLine:d,toast:u,glass:h,className:m}),...S(),...p,children:f})};ar.displayName="Callout";const nr=l(((n,i)=>{let{header:r,image:o,imageAlt:l="",title:s,text:c,actions:d,icon:u,footer:h,row:m=!1,flat:p=!1,active:g=!1,className:v="",children:S,onClick:f,styles:E,glass:A,...b}=n;const N=[ae.CLASSES.BASE,m?ae.CLASSES.ROW:"",p?ae.CLASSES.FLAT:"",g?ae.CLASSES.ACTIVE:"",v].filter(Boolean).join(" "),_=t(a,{children:[(o||u||r)&&t("div",{className:ae.SELECTORS.HEADER.substring(1),children:[r,o&&e("img",{src:o,alt:l,className:ae.SELECTORS.IMAGE.substring(1)}),u&&e("div",{className:ae.SELECTORS.ICON.substring(1),children:u})]}),t("div",{className:ae.SELECTORS.BODY.substring(1),children:[s&&e("h3",{className:ae.SELECTORS.TITLE.substring(1),children:s}),c&&e("p",{className:ae.SELECTORS.TEXT.substring(1),children:c}),S]}),d&&e("div",{className:ae.SELECTORS.ACTIONS.substring(1),children:d}),h&&e("div",{className:ae.SELECTORS.FOOTER.substring(1),children:h})]});if(A){const t=!0===A?{}:A;return e("div",{ref:i,className:N+" c-card--glass",onClick:f,...b,style:{...E},children:e(Gi,{...t,cornerRadius:10,children:e("div",{className:"c-card__glass-content",children:_})})})}return e("div",{ref:i,className:N,onClick:f,...b,style:{...E},children:_})}));nr.displayName="Card";var ir=Wt,rr=sa,or=ot,lr=jn,sr=TypeError,cr="Reduce of empty array with no initial value",dr=function(e){return function(t,a,n,i){var r=rr(t),o=or(r),l=lr(r);if(ir(a),0===l&&n<2)throw new sr(cr);var s=e?l-1:0,c=e?-1:1;if(n<2)for(;;){if(s in o){i=o[s],s+=c;break}if(s+=c,e?s<0:l<=s)throw new sr(cr)}for(;e?s>=0:l>s;s+=c)s in o&&(i=a(i,o[s],s,r));return i}},ur={left:dr(!1),right:dr(!0)},hr=Ae,mr=Ie,pr=_t,gr=ze,vr=function(e){return pr.slice(0,e.length)===e},Sr=vr("Bun/")?"BUN":vr("Cloudflare-Workers")?"CLOUDFLARE":vr("Deno/")?"DENO":vr("Node.js/")?"NODE":mr.Bun&&"string"==typeof Bun.version?"BUN":mr.Deno&&"object"==typeof Deno.version?"DENO":"process"===gr(mr.process)?"NODE":mr.window&&mr.document?"BROWSER":"REST",fr=ur.left,Er=function(e,t){var a=[][e];return!!a&&hr((function(){a.call(null,t||function(){return 1},1)}))};zn({target:"Array",proto:!0,forced:!("NODE"===Sr)&&wt>79&&wt<83||!Er("reduce")},{reduce:function(e){var t=arguments.length;return fr(this,e,t,t>1?arguments[1]:void 0)}});var Ar=ni("Array","reduce"),br=ye,Nr=Ar,_r=Array.prototype,Cr=Ee((function(e){var t=e.reduce;return e===_r||br(_r,e)&&t===_r.reduce?Nr:t}));function Tr(e){const[t,a]=i({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),n={type:"line",size:"md",variant:"primary",loading:!1,interactive:!0,...e},l=r(null),s=r(null),c=r(null),u=d((e=>{const{type:t=n.type,size:a=n.size,variant:i=n.variant,loading:r=n.loading,error:o,className:l=""}=e,s=t?`${pe.TYPE_PREFIX}${t}`:"",c="md"===a?"":`${pe.SIZE_PREFIX}${a}`,d=i?`${pe.VARIANT_PREFIX}${i}`:"",u=r?pe.LOADING_STATE_CLASS:"",h=o?pe.ERROR_STATE_CLASS:"";return`${pe.BASE_CLASS} ${s} ${d} ${c} ${u} ${h} ${l}`.trim()}),[n]),h=d((e=>{const{loading:t,error:a,type:n}=e,i={role:"img","aria-live":"polite"};return t&&(i["aria-busy"]="true"),a&&(i["aria-invalid"]="true"),n&&(i["data-chart-type"]=n),i}),[]),m=d((function(e){var a,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe.DEFAULT_WIDTH,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pe.DEFAULT_HEIGHT,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{top:20,right:30,bottom:40,left:50},l=arguments.length>4?arguments[4]:void 0;if(!e.length)return null;const s=i-o.left-o.right,c=r-o.top-o.bottom,d=e.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>"number"==typeof e.value?e.value:0)))||[]}));if(0===d.length)return null;const u=(null==l||null===(a=l.yAxis)||void 0===a?void 0:a.min)??Math.min(0,...d),h=(null==l||null===(n=l.yAxis)||void 0===n?void 0:n.max)??Math.max(...d,1),m=h-u;return{xScale:(a,n)=>{var i;const r=n||(null===(i=e[0])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||1;if(r<=1)return o.left+s/2;return(o.left+a/(r-1)*s)*t.zoomLevel+t.panOffset.x},yScale:e=>{if(0===m)return o.top+c/2;return(o.top+c-(e-u)/m*c)*t.zoomLevel+t.panOffset.y},minValue:u,maxValue:h,valueRange:m,innerWidth:s,innerHeight:c,width:i,height:r,padding:o}}),[t.zoomLevel,t.panOffset]),p=d((e=>{const t=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"];return Array.from({length:e},((e,a)=>t[a%t.length]))}),[]),g=d(((e,t,n,i,r,o)=>{a((a=>({...a,hoveredPoint:{datasetIndex:e,pointIndex:t,x:n,y:i,clientX:r,clientY:o},focusedPointIndex:t})))}),[]),v=d((()=>{a((e=>({...e,hoveredPoint:null})))}),[]),S=d((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a((a=>{const i={datasetIndex:e,pointIndex:t},r=a.selectedPoints.findIndex((a=>a.datasetIndex===e&&a.pointIndex===t));let o;return o=r>=0?a.selectedPoints.filter(((e,t)=>t!==r)):n?[...a.selectedPoints,i]:[i],{...a,selectedPoints:o}}))}),[]),f=d(((e,t,n)=>{a((a=>{const i=1-.001*e,r=Math.max(.1,Math.min(10,a.zoomLevel*i)),o=r/a.zoomLevel,l={x:t-(t-a.panOffset.x)*o,y:n?n-(n-a.panOffset.y)*o:a.panOffset.y};return{...a,zoomLevel:r,panOffset:l}}))}),[]),E=d(((e,t)=>{a((a=>({...a,panOffset:{x:a.panOffset.x+e,y:a.panOffset.y+t}})))}),[]),A=d(((e,t)=>{a((a=>({...a,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),b=d((()=>{a((e=>({...e,isDragging:!1,dragStart:null})))}),[]),N=d(((e,t)=>{a((a=>({...a,crosshair:{x:e,y:t}})))}),[]),_=d((()=>{a((e=>({...e,crosshair:null})))}),[]),C=d((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{const n={...a,touchState:{...a.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]){const a=e.target.getBoundingClientRect(),i=t[0].x-a.left,r=t[0].y-a.top;return{...n,isDragging:!0,dragStart:{x:i,y:r}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return n}))}),[]),T=d((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{const n=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&a.isDragging&&a.dragStart){const e=t[0].x-n.left,i=t[0].y-n.top,r=e-a.dragStart.x,o=i-a.dragStart.y;return{...a,panOffset:{x:a.panOffset.x+r,y:a.panOffset.y+o},dragStart:{x:e,y:i},touchState:{...a.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&a.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(a.touchState.lastDistance>0){const i=e/a.touchState.lastDistance,r=Math.max(.1,Math.min(10,a.zoomLevel*i)),o=(t[0].x+t[1].x)/2-n.left,l=(t[0].y+t[1].y)/2-n.top,s=r/a.zoomLevel,c={x:o-(o-a.panOffset.x)*s,y:l-(l-a.panOffset.y)*s};return{...a,zoomLevel:r,panOffset:c,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t,lastDistance:e}}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),L=d((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));a((a=>{if(0===t.length)return{...a,isDragging:!1,dragStart:null,touchState:{...a.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&t[0]&&a.touchState.isPinching){const n=e.target.getBoundingClientRect(),i=t[0].x-n.left,r=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:i,y:r},touchState:{...a.touchState,touches:t,isPinching:!1,lastDistance:0}}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),y=d((e=>{const t="pen"===e.pointerType,n="touch"===e.pointerType;if(t)a((t=>({...t,penState:{isPen:!0,pressure:e.pressure||0,tiltX:e.tiltX||0,tiltY:e.tiltY||0},isDragging:!0,dragStart:{x:e.clientX-e.target.getBoundingClientRect().left,y:e.clientY-e.target.getBoundingClientRect().top}})));else if(!n){const t=e.target.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;A(a,n)}}),[A]),x=d((e=>{const n=e.target.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;if("pen"===e.pointerType&&t.penState.isPen)a((t=>{if(t.isDragging&&t.dragStart){const a=i-t.dragStart.x,n=r-t.dragStart.y,o=Math.max(.1,e.pressure||.5);return{...t,panOffset:{x:t.panOffset.x+a*o,y:t.panOffset.y+n*o},dragStart:{x:i,y:r},penState:{...t.penState,pressure:e.pressure||0,tiltX:e.tiltX||0,tiltY:e.tiltY||0}}}return{...t,penState:{...t.penState,pressure:e.pressure||0,tiltX:e.tiltX||0,tiltY:e.tiltY||0}}}));else if("touch"!==e.pointerType&&(N(i,r),t.isDragging&&t.dragStart)){const e=i-t.dragStart.x,a=r-t.dragStart.y;E(e,a)}}),[t,N,E]),I=d((e=>{"pen"===e.pointerType?a((e=>({...e,isDragging:!1,dragStart:null,penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}))):"touch"!==e.pointerType&&b()}),[b]),w=d((()=>{a((e=>({...e,zoomLevel:1,panOffset:{x:0,y:0},selectedPoints:[],crosshair:null,brushSelection:null})))}),[]),R=d((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;a((e=>({...e,isAnimating:!0}))),l.current&&cancelAnimationFrame(l.current);const t=Date.now(),n=()=>{const i=Date.now()-t;Math.min(i/e,1)<1?l.current=requestAnimationFrame(n):a((e=>({...e,isAnimating:!1})))};l.current=requestAnimationFrame(n)}),[]),O=d((()=>{l.current&&(cancelAnimationFrame(l.current),l.current=null),a((e=>({...e,isAnimating:!1})))}),[]);return o((()=>()=>{l.current&&cancelAnimationFrame(l.current)}),[]),{interactionState:t,hoveredPoint:t.hoveredPoint,selectedPoints:t.selectedPoints,zoomLevel:t.zoomLevel,panOffset:t.panOffset,isAnimating:t.isAnimating,isDragging:t.isDragging,crosshair:t.crosshair,brushSelection:t.brushSelection,focusedPointIndex:t.focusedPointIndex,containerRef:s,svgRef:c,defaultProps:n,generateChartClass:u,chartAttributes:h(e||{}),calculateScales:m,getChartColors:p,handlePointHover:g,handlePointLeave:v,handlePointClick:S,handleZoom:f,handlePan:E,handleDragStart:A,handleDragEnd:b,handleCrosshair:N,clearCrosshair:_,resetView:w,handleTouchStart:C,handleTouchMove:T,handleTouchEnd:L,handlePointerDown:y,handlePointerMove:x,handlePointerUp:I,startAnimation:R,stopAnimation:O,setInteractionState:a}}const Lr=p(l(((a,n)=>{let{chartType:r="line",groups:o=[],enableDefaults:l=!0,defaults:s={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:c=["png","svg","csv"],size:u="md",position:h="top",onRefresh:m,onExport:p,onFullscreen:g,onSettings:v,onZoomIn:S,onZoomOut:f,onZoomReset:E,onPanToggle:A,onReset:b,onGridToggle:N,onLegendToggle:_,onTooltipsToggle:C,onAnimationsToggle:T,state:L={},className:y="",...x}=a;const[I,w]=i(!1),[R,O]=i(!1),M=d((()=>{const e=[];return s.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:L.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),s.export&&p&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>w(!I),disabled:L.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[s,m,p,L,I]),D=d((()=>{const e=[];return!s.zoom||"interactive"!==r&&"line"!==r&&"area"!==r&&"bar"!==r||e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>null==S?void 0:S(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>null==f?void 0:f(),tooltip:"Zoom out (-)",shortcut:"-"}),!s.pan||"interactive"!==r&&"line"!==r&&"area"!==r||e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>null==A?void 0:A(!L.panEnabled),active:L.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),s.reset&&(E||b)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{null==E||E(),null==b||b()},tooltip:"Reset view (R)",shortcut:"R"}),s.fullscreen&&g&&e.push({id:"fullscreen",label:L.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:L.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>null==g?void 0:g(!L.isFullscreen),variant:"success",tooltip:(L.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[s,r,S,f,A,E,b,g,L]),k=d((()=>{const e=[];return s.settings&&v&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>O(!R),tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[s,v,R]),B=o&&o.length>0?o:[...l?M():[],...l?D():[],...l?k():[]],P=a=>t("button",{className:`${pe.ACTION_CLASS} ${a.variant?`${pe.ACTION_CLASS}--${a.variant}`:""} ${a.active?"is-active":""} u-d-inline-flex u-align-items-center u-gap-1`,onClick:()=>{a.onClick()},disabled:a.disabled,title:a.tooltip,type:"button","aria-label":a.label,children:[e(Wi,{name:a.icon,size:"sm"}),"lg"===u&&e("span",{className:"u-text-xs",children:a.label})]},a.id),z=`${pe.TOOLBAR_CLASS} ${pe.TOOLBAR_CLASS}--${u} ${pe.TOOLBAR_CLASS}--${h} u-d-flex u-align-items-center u-gap-2 ${y}`.trim();return e("div",{ref:n,className:z,...x,children:B.map(((a,n)=>t("div",{className:"u-d-flex u-align-items-center u-gap-1",children:[a.separator&&n>0&&e("div",{className:"u-border-start u-h-4 u-mx-1 u-opacity-25"}),a.label&&"lg"===u&&e("span",{className:"u-text-xs u-text-muted u-me-1",children:a.label}),t("div",{className:"u-d-flex u-align-items-center u-gap-1 u-position-relative",children:[a.actions.map(P),a.actions.some((e=>"export"===e.id))&&(I&&p?t("div",{className:`${pe.EXPORT_DROPDOWN_CLASS} u-position-absolute u-bg-white u-border u-border-radius u-shadow u-p-2 u-z-10`,children:[e("div",{className:"u-mb-2 u-text-xs u-text-muted u-fw-medium",children:"Export Formats"}),c.map((t=>e("button",{className:`${pe.EXPORT_OPTION_CLASS} u-d-block u-w-full u-text-start u-p-1 u-border-0 u-bg-transparent u-text-decoration-none u-border-radius-sm`,onClick:()=>{p(t),w(!1)},disabled:L.isExporting,type:"button",children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(R?t("div",{className:"u-position-absolute u-bg-white u-border u-border-radius u-shadow u-p-3 u-z-10",style:{minWidth:"200px"},children:[e("div",{className:"u-mb-2 u-text-xs u-text-muted u-fw-medium",children:"Chart Settings"}),t("div",{className:"u-d-flex u-flex-column u-gap-2",children:[L.zoomLevel&&t("div",{className:"u-d-flex u-justify-between u-align-items-center",children:[e("span",{className:"u-text-sm",children:"Zoom Level"}),t("span",{className:"u-text-sm u-text-muted",children:[Math.round(100*(L.zoomLevel||1)),"%"]})]}),t("div",{className:"u-d-flex u-justify-between u-align-items-center",children:[e("span",{className:"u-text-sm",children:"Chart Type"}),e("span",{className:"u-text-sm u-text-muted u-text-capitalize",children:r})]})]})]}):null)]})]},a.id)))})})));Lr.displayName="ChartToolbar";const yr=p(l(((a,n)=>{let{children:r,type:l="line",size:s="md",variant:c="primary",title:u,subtitle:h,loading:m=!1,error:p,className:g="","aria-label":v,onFullscreen:S,onExport:f,onRefresh:E,showToolbar:A=!1,enableFullscreen:b=!1,enableExport:N=!1,enableRefresh:_=!1,exportFormats:C=["png","svg","csv"],datasets:T,config:L,...y}=a;const[x,I]=i(!1),[w,R]=i(!1),{state:O,handlers:M,toolbarGroups:D}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[n,r]=i({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:l=!0,defaults:s={},exportFormats:c=["png","svg","csv"],customActions:u=[],customGroups:h=[]}=t,m={...d((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":return{...t,zoom:!0,pan:!0,reset:!0};case"line":case"area":case"bar":case"scatter":return{...t,zoom:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};case"heatmap":case"treemap":return{...t,zoom:!0,pan:!0,grid:!1};case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0,grid:!0};default:return t}}),[e])(),...s},p={onRefresh:d((()=>{var e;r((e=>({...e,isRefreshing:!0}))),null===(e=a.onRefresh)||void 0===e||e.call(a),setTimeout((()=>{r((e=>({...e,isRefreshing:!1})))}),1e3)}),[a.onRefresh]),onExport:d((async e=>{r((e=>({...e,isExporting:!0})));try{var t;await(null===(t=a.onExport)||void 0===t?void 0:t.call(a,e))}finally{r((e=>({...e,isExporting:!1})))}}),[a.onExport]),onFullscreen:d((e=>{var t;r((t=>({...t,isFullscreen:e}))),null===(t=a.onFullscreen)||void 0===t||t.call(a,e)}),[a.onFullscreen]),onZoomIn:d((()=>{var e;r((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),null===(e=a.onZoomIn)||void 0===e||e.call(a)}),[a.onZoomIn]),onZoomOut:d((()=>{var e;r((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),null===(e=a.onZoomOut)||void 0===e||e.call(a)}),[a.onZoomOut]),onZoomReset:d((()=>{var e;r((e=>({...e,zoomLevel:1}))),null===(e=a.onZoomReset)||void 0===e||e.call(a)}),[a.onZoomReset]),onPanToggle:d((e=>{var t;r((t=>({...t,panEnabled:e}))),null===(t=a.onPanToggle)||void 0===t||t.call(a,e)}),[a.onPanToggle]),onReset:d((()=>{var e;r((e=>({...e,zoomLevel:1,panEnabled:!1}))),null===(e=a.onReset)||void 0===e||e.call(a)}),[a.onReset]),onGridToggle:d((e=>{var t;r((t=>({...t,showGrid:e}))),null===(t=a.onGridToggle)||void 0===t||t.call(a,e)}),[a.onGridToggle]),onLegendToggle:d((e=>{var t;r((t=>({...t,showLegend:e}))),null===(t=a.onLegendToggle)||void 0===t||t.call(a,e)}),[a.onLegendToggle]),onTooltipsToggle:d((e=>{var t;r((t=>({...t,showTooltips:e}))),null===(t=a.onTooltipsToggle)||void 0===t||t.call(a,e)}),[a.onTooltipsToggle]),onAnimationsToggle:d((e=>{var t;r((t=>({...t,animationsEnabled:e}))),null===(t=a.onAnimationsToggle)||void 0===t||t.call(a,e)}),[a.onAnimationsToggle]),onSettings:d((()=>{}),[])},g=d((()=>{const e=[],t=[];m.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:p.onRefresh,disabled:n.isRefreshing,tooltip:"Refresh chart data"}),m.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>p.onExport("png"),disabled:n.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const a=[];m.zoom&&a.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:p.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:p.onZoomOut,tooltip:"Zoom out"}),m.pan&&a.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>p.onPanToggle(!n.panEnabled),active:n.panEnabled,tooltip:"Toggle pan mode"}),m.reset&&a.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:p.onReset,tooltip:"Reset view"}),m.fullscreen&&a.push({id:"fullscreen",label:n.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:n.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>p.onFullscreen(!n.isFullscreen),variant:"success",tooltip:(n.isFullscreen?"Exit":"Enter")+" fullscreen"}),a.length>0&&e.push({id:"view-actions",label:"View",actions:a,separator:!0});const i=[];if(m.grid&&i.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>p.onGridToggle(!n.showGrid),active:n.showGrid,tooltip:"Toggle grid"}),m.legend&&i.push({id:"legend",label:"Legend",icon:"List",onClick:()=>p.onLegendToggle(!n.showLegend),active:n.showLegend,tooltip:"Toggle legend"}),m.tooltips&&i.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>p.onTooltipsToggle(!n.showTooltips),active:n.showTooltips,tooltip:"Toggle tooltips"}),m.animations&&i.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>p.onAnimationsToggle(!n.animationsEnabled),active:n.animationsEnabled,tooltip:"Toggle animations"}),i.length>0&&e.push({id:"display-actions",label:"Display",actions:i,separator:!0}),m.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:p.onSettings,tooltip:"Chart settings"}]}),e.push(...h),u.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...u)}}else e.push({id:"custom-actions",label:"Custom",actions:u});return e}),[e,m,n,p,u,h]);return o((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":m.refresh&&(e.preventDefault(),p.onRefresh());break;case"e":m.export&&(e.preventDefault(),p.onExport("png"));break;case"f":m.fullscreen&&(e.preventDefault(),p.onFullscreen(!n.isFullscreen))}else switch(e.key){case"+":case"=":m.zoom&&(e.preventDefault(),p.onZoomIn());break;case"-":m.zoom&&(e.preventDefault(),p.onZoomOut());break;case"r":m.reset&&(e.preventDefault(),p.onReset());break;case" ":m.pan&&(e.preventDefault(),p.onPanToggle(!n.panEnabled));break;case"F11":m.fullscreen&&(e.preventDefault(),p.onFullscreen(!n.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[m,n,p]),{state:n,setState:r,handlers:p,toolbarGroups:g(),config:{enableDefaults:l,defaults:m,exportFormats:c}}}(l,{enableDefaults:A,defaults:{refresh:_,export:N,fullscreen:b,zoom:!0,pan:!0,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:C},{onRefresh:E,onExport:f,onFullscreen:e=>{I(e),null==S||S(e)}}),{generateChartClass:k,chartAttributes:B}=Tr({type:l,size:s,variant:c,loading:m,error:p}),P=k({type:l,size:s,variant:c,loading:m,error:p,className:g});d((()=>{M.onFullscreen(!O.isFullscreen)}),[M,O.isFullscreen]),d((async e=>{await M.onExport(e)}),[M]),d((()=>{M.onRefresh()}),[M]),o((()=>{I(O.isFullscreen),R(O.isExporting)}),[O.isFullscreen,O.isExporting]);const z=`${P}${x?` ${pe.CLASSES.FULLSCREEN}`:""}`;return t("div",{ref:n,className:z,"aria-label":v||`${l} chart`,role:"img",tabIndex:0,...B,...y,children:[(u||h||A)&&t("div",{className:`${pe.HEADER_CLASS} u-d-flex u-justify-between u-align-items-start u-gap-4`,children:[t("div",{className:`${pe.HEADER_CONTENT_CLASS} u-flex-1`,children:[u&&e("h3",{className:`${pe.TITLE_CLASS} u-mb-1`,children:u}),h&&e("p",{className:`${pe.SUBTITLE_CLASS} u-mb-0`,children:h})]}),A?e(Lr,{chartType:l,groups:D,enableDefaults:0===D.length,exportFormats:C,state:{isFullscreen:O.isFullscreen,isExporting:O.isExporting,isRefreshing:O.isRefreshing,zoomLevel:O.zoomLevel,panEnabled:O.panEnabled,showGrid:O.showGrid,showLegend:O.showLegend,showTooltips:O.showTooltips,animationsEnabled:O.animationsEnabled},onRefresh:M.onRefresh,onExport:M.onExport,onFullscreen:M.onFullscreen,onZoomIn:M.onZoomIn,onZoomOut:M.onZoomOut,onZoomReset:M.onZoomReset,onPanToggle:M.onPanToggle,onReset:M.onReset,onSettings:M.onSettings,onGridToggle:M.onGridToggle,onLegendToggle:M.onLegendToggle,onTooltipsToggle:M.onTooltipsToggle,onAnimationsToggle:M.onAnimationsToggle}):null]}),t("div",{className:pe.CONTENT_CLASS,children:[m&&t("div",{className:pe.LOADING_CLASS,children:[e("div",{className:pe.LOADING_SPINNER_CLASS}),e("span",{className:pe.LOADING_TEXT_CLASS,children:O.isExporting?"Exporting chart...":O.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:pe.ERROR_CLASS,children:[e("div",{className:pe.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:pe.ERROR_CONTENT_CLASS,children:[e("div",{className:pe.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:pe.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!r&&t("div",{className:pe.EMPTY_CLASS,children:[e("div",{className:pe.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:pe.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:pe.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&r&&e("div",{className:pe.CANVAS_CLASS,children:r})]})]})})));yr.displayName="Chart";const xr=p(l(((a,n)=>{let{datasets:r=[],config:l={},advancedOptions:s={chartType:"line",realTime:!1,updateInterval:1e3,advancedTooltips:!0,enableSelection:!1,maxSelections:5,showTrendLines:!1,showMovingAverages:!1,movingAveragePeriod:7,enableExport:!1,exportFormats:["png","svg"],showDataTable:!1,enableAnnotations:!1,annotations:[]},onDataPointClick:u,...h}=a;const[m,p]=i(new Set),[g,v]=i(r),[S,f]=i(null);o((()=>{if(!s.realTime)return;const e=setInterval((()=>{v((e=>e.map((e=>({...e,data:e.data.map((e=>({...e,value:e.value+10*(Math.random()-.5)})))})))))}),s.updateInterval);return()=>clearInterval(e)}),[s.realTime,s.updateInterval]);const E=d(((e,t)=>{const a=[];for(let i=t-1;i<e.length;i++){var n;const r=Cr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t.value),0)/t,o=e[i];o&&a.push({label:o.label,value:r,color:"rgba(255, 255, 255, 0.5)"})}return a}),[]),A=d(((e,t)=>{if(!s.enableSelection)return;const a=`${e}-${t}`,n=new Set(m);if(n.has(a))n.delete(a);else{if(n.size>=(s.maxSelections||5)){const e=n.values().next().value;e&&n.delete(e)}n.add(a)}p(n)}),[m,s.enableSelection,s.maxSelections]),b=d((e=>{if(!s.enableExport)return;const t=document.querySelector(".c-chart__canvas svg");if(t)switch(e){case"png":const e=(new XMLSerializer).serializeToString(t),a=document.createElement("canvas"),n=a.getContext("2d"),i=new Image;i.onload=()=>{a.width=i.width,a.height=i.height,null==n||n.drawImage(i,0,0);const e=document.createElement("a");e.download="chart.png",e.href=a.toDataURL(),e.click()},i.src="data:image/svg+xml;base64,"+btoa(e);break;case"svg":const o=new Blob([t.outerHTML],{type:"image/svg+xml"}),l=URL.createObjectURL(o),s=document.createElement("a");s.href=l,s.download="chart.svg",s.click();break;case"csv":const c=r.map((e=>e.data.map((e=>`${e.label},${e.value}`)).join("\n"))).join("\n"),d=new Blob([c],{type:"text/csv"}),u=URL.createObjectURL(d),h=document.createElement("a");h.href=u,h.download="chart-data.csv",h.click()}}),[r,s.enableExport]),N=c((()=>{var a,n,i,r;if(!g.length)return null;const o=20,c=30,d=50,h=800-d-c,p=400-o-40,v=g.flatMap((e=>e.data.map((e=>e.value)))),b=(null===(a=l.yAxis)||void 0===a?void 0:a.min)??Math.min(0,...v),N=(null===(n=l.yAxis)||void 0===n?void 0:n.max)??Math.max(...v),_=e=>{var t;const a=g[0];return null!=a&&null!==(t=a.data)&&void 0!==t&&t.length?d+e/(a.data.length-1)*h:d},C=e=>o+p-(e-b)/(N-b)*p,T=g.map(((t,a)=>{const n=t.color||`var(--atomix-color-${a+1})`,i=[];if("line"===s.chartType||"area"===s.chartType){const r=t.data.map(((e,t)=>({x:_(t),y:C(e.value)}))).map(((e,t)=>0===t?`M ${e.x},${e.y}`:`L ${e.x},${e.y}`)).join(" ");"area"===s.chartType&&i.push(e("path",{d:`${r} L ${_(t.data.length-1)},${C(b)} L ${_(0)},${C(b)} Z`,fill:n,opacity:.2},`area-${a}`)),i.push(e("path",{d:r,stroke:n,fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},`line-${a}`))}if(t.data.forEach(((t,r)=>{const o=_(r),l=C(t.value),s=`${a}-${r}`,c=m.has(s),d=(null==S?void 0:S.datasetIndex)===a&&(null==S?void 0:S.pointIndex)===r;i.push(e("circle",{cx:o,cy:l,r:c?6:d?5:4,fill:c?"var(--atomix-primary-500)":n,stroke:"#ffffff",strokeWidth:c?3:2,className:pe.DATA_POINT_CLASS,onClick:()=>{A(a,r),null==u||u(t,a,r)},onMouseEnter:()=>f({datasetIndex:a,pointIndex:r,x:o,y:l,value:t.value,label:t.label}),onMouseLeave:()=>f(null),style:{cursor:"pointer",transition:"r 0.2s ease-in-out, fill 0.2s ease-in-out"}},`point-${a}-${r}`))})),s.showMovingAverages){const r=E(t.data,s.movingAveragePeriod||7).map(((e,t)=>({x:_(t+(s.movingAveragePeriod||7)-1),y:C(e.value)}))).map(((e,t)=>0===t?`M ${e.x},${e.y}`:`L ${e.x},${e.y}`)).join(" ");i.push(e("path",{d:r,stroke:n,fill:"none",strokeWidth:1,strokeDasharray:"5,5",opacity:.7},`moving-avg-${a}`))}return i})),L=(null===(i=s.annotations)||void 0===i?void 0:i.map(((a,n)=>t("g",{children:[e("circle",{cx:_(a.x),cy:C(a.y),r:4,fill:a.color||"#ef4444",stroke:"#ffffff",strokeWidth:2}),e("text",{x:_(a.x)+10,y:C(a.y)-10,fill:"#111827",fontSize:"12",fontWeight:"bold",children:a.label})]},`annotation-${n}`))))||[];return t("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",preserveAspectRatio:"xMidYMid meet",children:[e("g",{className:pe.GRID_CLASS,children:Array.from({length:5}).map(((t,a)=>{const n=b+(N-b)*a/4;return e("line",{x1:d,y1:C(n),x2:800-c,y2:C(n),stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"4,4",opacity:.3},`grid-${a}`)}))}),T.flat(),L,e("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--x`,children:null===(r=g[0])||void 0===r||null===(r=r.data)||void 0===r?void 0:r.map(((t,a)=>e("text",{x:_(a),y:390,textAnchor:"middle",fontSize:"12",fill:"#374151",children:t.label},`x-label-${a}`)))}),e("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--y`,children:Array.from({length:5}).map(((t,a)=>{const n=b+(N-b)*a/4;return e("text",{x:d-10,y:C(n),textAnchor:"end",dominantBaseline:"middle",fontSize:"12",fill:"#374151",children:n.toFixed(n%1==0?0:1)},`y-label-${a}`)}))})]})}),[g,l,s,m,S,E,A,u]),_=c((()=>{var a;return s.advancedTooltips&&S?t("div",{className:"advanced-tooltip",style:{position:"absolute",left:S.x+10,top:S.y-10,background:"var(--atomix-surface)",border:"1px solid #e5e7eb",borderRadius:"var(--radius-md)",padding:"0.5rem",fontSize:"var(--font-size-sm)",boxShadow:"var(--shadow-lg)",zIndex:1e3,pointerEvents:"none"},children:[e("div",{style:{fontWeight:"bold",marginBottom:"var(--space-1)"},children:S.label}),t("div",{children:["Value: ",S.value]}),t("div",{children:["Dataset: ",null===(a=g[S.datasetIndex])||void 0===a?void 0:a.label]})]}):null}),[S,s.advancedTooltips,g]),C=c((()=>{var a;return s.enableExport?e("div",{className:"chart-export-controls",style:{marginTop:"var(--space-3)"},children:e("div",{style:{display:"flex",gap:"0.5rem"},children:null===(a=s.exportFormats)||void 0===a?void 0:a.map((e=>t("button",{onClick:()=>b(e),style:{padding:"var(--space-1) 0.5rem",background:"var(--atomix-surface)",border:"1px solid #e5e7eb",borderRadius:"var(--radius-sm)",fontSize:"var(--font-size-sm)",cursor:"pointer"},children:["Export ",e.toUpperCase()]},e)))})}):null}),[s.enableExport,s.exportFormats,b]),T=c((()=>{var a;return s.showDataTable&&g.length?e("div",{className:"chart-data-table",style:{marginTop:"var(--space-3)"},children:t("table",{style:{width:"100%",borderCollapse:"collapse"},children:[e("thead",{children:t("tr",{children:[e("th",{style:{padding:"0.5rem",textAlign:"left",borderBottom:"1px solid #e5e7eb"},children:"Label"}),g.map(((t,a)=>e("th",{style:{padding:"0.5rem",textAlign:"left",borderBottom:"1px solid #e5e7eb"},children:t.label},a)))]})}),e("tbody",{children:null===(a=g[0])||void 0===a||null===(a=a.data)||void 0===a?void 0:a.map(((a,n)=>{var i;return t("tr",{children:[e("td",{style:{padding:"0.5rem",borderBottom:"1px solid #e5e7eb"},children:null===(i=g[0])||void 0===i||null===(i=i.data)||void 0===i||null===(i=i[n])||void 0===i?void 0:i.label}),g.map(((t,a)=>{var i;return e("td",{style:{padding:"0.5rem",borderBottom:"1px solid #e5e7eb"},children:null===(i=t.data[n])||void 0===i?void 0:i.value.toFixed(2)},a)}))]},n)}))})]})}):null}),[s.showDataTable,g]);return t(yr,{ref:n,type:"advanced",datasets:g,config:l,...h,children:[N,_,C,T]})})));xr.displayName="AdvancedChart";const Ir=p(l(((t,a)=>{let{datasets:n=[],config:i={},chartType:l="line",particleEffects:s,...c}=t;const u=r(null),h=r(0),m=r(0),p=r([]),g=d((e=>{var t;const a=u.current;if(!a)return;const i=a.getContext("2d");if(!i)return;const{width:r,height:o}=a,l=.02*m.current,c=i.createLinearGradient(0,0,0,o);c.addColorStop(0,"#0a0a0a"),c.addColorStop(.5,"#1a1a2e"),c.addColorStop(1,"#16213e"),i.fillStyle=c,i.fillRect(0,0,r,o);const d=(null===(t=n[0])||void 0===t?void 0:t.data)||[],v=Math.max(...d.map((e=>e.value))),S=Math.min(...d.map((e=>e.value))),f=v-S||1;if(p.current.length<((null==s?void 0:s.count)||800))for(let e=0;e<3;e++){const e=Math.floor(Math.random()*d.length),t=d[e];if(t){var E;const a=(t.value-S)/f,n=e/(d.length-1)*r,i=o-a*o*.6-.2*o;p.current.push({x:n+50*(Math.random()-.5),y:i+30*(Math.random()-.5),vx:(Math.random()-.5)*((null==s?void 0:s.speed)||2),vy:2*-Math.random()-.5,life:1,size:((null==s?void 0:s.size)||2)*(.5+.5*a),color:(null==s||null===(E=s.colors)||void 0===E?void 0:E[e%(s.colors.length||1)])||"#22c55e",dataIndex:e})}}if(p.current=p.current.filter((e=>{var t;if(e.x+=e.vx,e.y+=e.vy,e.life-=.008,e.vy+=.015,e.life<=0||e.y>o+50)return!1;const a=void 0!==e.dataIndex&&d[e.dataIndex]?((null===(t=d[e.dataIndex])||void 0===t?void 0:t.value)||0)/v:.5,n=20*Math.sin(.01*e.x+l)*a+15*Math.sin(.008*e.x+1.2*l),r=e.y+n;return i.save(),i.globalAlpha=.8*e.life,i.beginPath(),i.arc(e.x,r,e.size,0,2*Math.PI),i.fillStyle=e.color,i.fill(),i.shadowBlur=8,i.shadowColor=e.color,i.fill(),i.restore(),!0})),d.length>1){((null==s?void 0:s.colors)||["#22c55e"]).forEach(((e,t)=>{i.strokeStyle=e,i.lineWidth=2,i.globalAlpha=.6,i.beginPath(),d.forEach(((e,a)=>{const n=a/(d.length-1)*r,s=(e.value-S)/f,c=o-s*o*.6-.2*o+30*Math.sin(.008*n+l+t);0===a?i.moveTo(n,c):i.lineTo(n,c)})),i.stroke()}))}i.strokeStyle="rgba(34, 197, 94, 0.1)",i.lineWidth=1,i.globalAlpha=.2;for(let e=0;e<r;e+=60)i.beginPath(),i.moveTo(e,0),i.lineTo(e,o),i.stroke();m.current+=1,h.current=requestAnimationFrame(g)}),[s,n]);return o((()=>{const e=u.current;if(!e)return;const t=()=>{e.width=e.offsetWidth,e.height=e.offsetHeight};return t(),window.addEventListener("resize",t),g(0),()=>{window.removeEventListener("resize",t),h.current&&cancelAnimationFrame(h.current)}}),[g]),e(yr,{ref:a,type:l,datasets:n,config:i,...c,children:e("canvas",{ref:u,style:{width:"100%",height:"100%",borderRadius:"8px"}})})})));function wr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[a,n]=i(1),[r,o]=i({x:0,y:0}),[l,s]=i(null),u=d(((e,t)=>{const a=[];for(let i=t-1;i<e.length;i++){var n;const r=Cr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t.value),0)/t,o=e[i];o&&a.push({label:o.label,value:r,color:"rgba(255, 255, 255, 0.5)"})}return a}),[]),h=d((e=>{const t=e.length;if(t<2)return e.map((()=>null));const a=Cr(e).call(e,((e,t,a)=>e+a),0),n=Cr(e).call(e,((e,t)=>e+t.value),0),i=(t*Cr(e).call(e,((e,t,a)=>e+a*t.value),0)-a*n)/(t*Cr(e).call(e,((e,t,a)=>e+a*a),0)-a*a),r=(n-i*a)/t;return e.map(((e,t)=>({label:e.label,value:i*t+r,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=d((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4;if(e.length<2)return"";const a=e.map(((a,n)=>{if(0===n||n===e.length-1)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const i=e[n-1],r=e[n+1];if(!i||!r)return{cp1x:a.x,cp1y:a.y,cp2x:a.x,cp2y:a.y};const o=r.x-i.x,l=r.y-i.y;return{cp1x:a.x-o*t,cp1y:a.y-l*t,cp2x:a.x+o*t,cp2y:a.y+l*t}})),n=e[0];if(!n)return"";let i=`M ${n.x},${n.y}`;for(let t=1;t<e.length;t++){const n=a[t-1],r=a[t],o=e[t];n&&r&&o&&(i+=` C ${n.cp2x},${n.cp2y} ${r.cp1x},${r.cp1y} ${o.x},${o.y}`)}return i}),[]),p=d(((e,i,r)=>{if(!t.enableZoom)return;const l=e>0?.9:1.1,s=Math.max(.1,Math.min(10,a*l));n(s);const c=s/a;o((e=>({x:i-(i-e.x)*c,y:r-(r-e.y)*c})))}),[a,t.enableZoom]),g=d(((e,a)=>{t.enablePan&&o((t=>({x:t.x+e,y:t.y+a})))}),[t.enablePan]),v=d((()=>{n(1),o({x:0,y:0})}),[]),S=d(((e,t,a,n)=>{s({datasetIndex:e,pointIndex:t,x:a,y:n})}),[]),f=d((()=>{s(null)}),[]),E=c((()=>e.map((e=>{const a={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(a.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:u(e.data,t)})))),t.showTrendLines&&(a.trendLine=h(e.data)),a}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,u,h]);return{zoomLevel:a,panOffset:r,hoveredPoint:l,processedDatasets:E,handleZoom:p,handlePan:g,resetView:v,handlePointHover:S,handlePointLeave:f,calculateMovingAverage:u,calculateTrendLine:h,generateSmoothPath:m,setZoomLevel:n,setPanOffset:o,setHoveredPoint:s}}Ir.displayName="AnimatedChart";const Rr=p(l(((a,n)=>{let{datasets:l=[],config:s,width:u=pe.DEFAULT_WIDTH,height:h=pe.DEFAULT_HEIGHT,onDataPointClick:m,interactive:p=!0,enableRealTime:g=!1,enableAccessibility:v=!0,enablePerformanceOptimization:S=!0,renderContent:f}=a;const{calculateScales:E,getChartColors:A,interactionState:b,handlePointHover:N,handlePointLeave:_,handlePointClick:C,handleZoom:T,handlePan:L,handleDragStart:y,handleDragEnd:x,handleCrosshair:I,clearCrosshair:w,handleTouchStart:R,handleTouchMove:O,handleTouchEnd:M,handlePointerDown:D,handlePointerMove:k,handlePointerUp:B,svgRef:P}=Tr({interactive:p}),{processedData:z,isProcessing:F}=function(e,t){const[a,n]=i(e),[r,l]=i(!1),{enableDecimation:s=!1,maxDataPoints:c=1e3,enableRealTime:u=!1,realTimeInterval:h=1e3}=t||{},m=d(((e,t)=>{var a;if(!s||!e.length)return e;const n=(null===(a=e[0])||void 0===a||null===(a=a.data)||void 0===a?void 0:a.length)||0;if(n<=t)return e;const i=Math.ceil(n/t);return e.map((e=>{var t;return{...e,data:(null===(t=e.data)||void 0===t?void 0:t.filter(((e,t)=>t%i==0)))||[]}}))}),[s]),p=d(((e,t)=>{const a=[];for(let i=0;i<e.length;i++)if(i<t-1)a.push(null);else{var n;const r=Cr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t),0);a.push(r/t)}return a}),[]),g=d((e=>{const t=e.length;if(t<2)return e.map((()=>null));const a=Cr(e).call(e,((e,t,a)=>e+a),0),n=Cr(e).call(e,((e,t)=>e+t),0),i=(t*Cr(e).call(e,((e,t,a)=>e+a*t),0)-a*n)/(t*Cr(e).call(e,((e,t,a)=>e+a*a),0)-a*a),r=(n-i*a)/t;return e.map(((e,t)=>i*t+r))}),[]);return o((()=>{l(!0),(async()=>{let t=[...e];s&&c&&(t=m(t,c)),n(t),l(!1)})()}),[e,m,s,c]),o((()=>{if(!u)return;const e=setInterval((()=>{n((e=>[...e]))}),h);return()=>clearInterval(e)}),[u,h]),{processedData:a,isProcessing:r,decimateData:m,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:n}}(l,{enableRealTime:g,enableDecimation:S,maxDataPoints:1e3}),{announcement:U,focusedPoint:G,getAccessibleDescription:V,handleKeyDown:Y}=function(e,t){const{enableKeyboardNavigation:a=!0,enableScreenReader:n=!0,announceDataChanges:r=!0}=t||{},[l,s]=i({datasetIndex:0,pointIndex:0}),[c,u]=i(""),h=d(((t,n)=>{var i;if(!a||!e.length)return;const r=e.length-1,o=((null===(i=e[l.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),s((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),s((e=>({...e,pointIndex:Math.min(o,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),s((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),s((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),s((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),s((e=>({...e,pointIndex:o})));break;case"Enter":case" ":t.preventDefault(),null==n||n(l.datasetIndex,l.pointIndex)}}),[a,e,l]),m=d((e=>{n&&(u(e),setTimeout((()=>u("")),1e3))}),[n]);o((()=>{if(!r||!e.length)return;const t=Cr(e).call(e,((e,t)=>{var a;return e+((null===(a=t.data)||void 0===a?void 0:a.length)||0)}),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,r,m]);const p=d((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{var a,n;const i=(null===(a=e.data)||void 0===a?void 0:a.length)||0,r=(null===(n=e.data)||void 0===n?void 0:n.map((e=>e.value)).filter((e=>"number"==typeof e)))||[],o=Math.min(...r),l=Math.max(...r);return`Dataset ${t+1}: ${e.label}, ${i} points, range ${o} to ${l}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:l,announcement:c,handleKeyDown:h,announceData:m,getAccessibleDescription:p,setFocusedPoint:s}}(z,{enableKeyboardNavigation:v,enableScreenReader:v});!function(e,t){const{enableVirtualization:a=!1,enableMemoization:n=!0,debounceMs:l=100}=t||{},[s,u]=i(!1),h=r(null),m=c((()=>n?e.map((e=>{var t,a,n;return{label:e.label,dataLength:(null===(t=e.data)||void 0===t?void 0:t.length)||0,minValue:Math.min(...(null===(a=e.data)||void 0===a?void 0:a.map((e=>e.value)).filter((e=>"number"==typeof e)))||[0]),maxValue:Math.max(...(null===(n=e.data)||void 0===n?void 0:n.map((e=>e.value)).filter((e=>"number"==typeof e)))||[0])}})):null),[e,n]),p=d((e=>{h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{e(),u(!1)}),l),u(!0)}),[l]),g=d(((t,n,i)=>{var r,o;if(!a)return{start:0,end:(null===(r=e[0])||void 0===r||null===(r=r.data)||void 0===r?void 0:r.length)||0};const l=Math.floor(t/n),s=Math.ceil(i/n),c=Math.min(l+s+1,(null===(o=e[0])||void 0===o||null===(o=o.data)||void 0===o?void 0:o.length)||0);return{start:Math.max(0,l-1),end:c}}),[a,e]);o((()=>()=>{h.current&&clearTimeout(h.current)}),[])}(z,{enableMemoization:S,debounceMs:100});const H=d((e=>{if(!p||b.touchState.isTouch)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;if(I(a,n),b.isDragging&&b.dragStart){const e=a-b.dragStart.x,t=n-b.dragStart.y;L(e,t)}}),[p,b,I,L]),W=d((e=>{if(!p||b.touchState.isTouch)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;y(a,n)}),[p,b.touchState.isTouch,y]),Q=d((()=>{p&&!b.touchState.isTouch&&x()}),[p,b.touchState.isTouch,x]),K=d((e=>{if(!p)return;e.preventDefault();const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top,i=Math.abs(e.deltaY)<50?.01:.1,r=e.deltaY*i;T(r,a,n)}),[p,T]),Z=d(((e,t,a)=>{p&&(C(t,a),null==m||m(e,t,a))}),[p,C,m]),j=c((()=>{const e=E(z,u,h,void 0,s);if(!e)return null;const t=A(z.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:z.map(((e,a)=>({...e,color:e.color||t[a]})))}}),[z,s,u,h,E,A]);return j?t("svg",{ref:n||P,width:"100%",height:"100%",viewBox:`0 0 ${j.scales.width} ${j.scales.height}`,preserveAspectRatio:"xMidYMid meet",className:pe.CHART_SVG_CLASS,onMouseMove:H,onMouseDown:W,onMouseUp:Q,onMouseLeave:()=>{w(),Q()},onWheel:K,onTouchStart:e=>R(e.nativeEvent),onTouchMove:e=>O(e.nativeEvent),onTouchEnd:e=>M(e.nativeEvent),onPointerDown:e=>D(e.nativeEvent),onPointerMove:e=>k(e.nativeEvent),onPointerUp:e=>B(e.nativeEvent),tabIndex:v?0:void 0,role:v?"img":void 0,"aria-label":v?V():void 0,onKeyDown:v?e=>Y(e.nativeEvent,((e,t)=>{var a;const n=null===(a=z[e])||void 0===a?void 0:a.data[t];Z(n,e,t)})):void 0,style:{touchAction:"none",userSelect:"none",WebkitUserSelect:"none"},children:[v&&U&&e("text",{x:"-9999",y:"-9999",className:"sr-only","aria-live":"polite",children:U}),f({...j,interactionState:b,handlers:{onDataPointClick:Z,onPointHover:N,onPointLeave:_,onMouseMove:H,onMouseDown:W,onMouseUp:Q,onWheel:K},accessibility:{announcement:U,focusedPoint:G,getAccessibleDescription:V}}),p&&b.crosshair&&t("g",{className:"chart-crosshair",style:{pointerEvents:"none"},children:[e("line",{x1:b.crosshair.x,y1:0,x2:b.crosshair.x,y2:j.scales.height,stroke:"var(--atomix-gray-4)",strokeWidth:"1",strokeDasharray:"4,4",opacity:"0.6"}),e("line",{x1:0,y1:b.crosshair.y,x2:j.scales.width,y2:b.crosshair.y,stroke:"var(--atomix-gray-4)",strokeWidth:"1",strokeDasharray:"4,4",opacity:"0.6"})]}),p&&1!==b.zoomLevel&&t("g",{className:"chart-zoom-indicator",children:[e("rect",{x:j.scales.width-80,y:10,width:"70",height:"20",fill:"rgba(0, 0, 0, 0.8)",rx:"4"}),t("text",{x:j.scales.width-45,y:24,textAnchor:"middle",fill:"white",fontSize:"12",children:[Math.round(100*b.zoomLevel),"%"]})]})]}):null})));Rr.displayName="ChartRenderer";const Or=p((n=>{let{dataPoint:l,datasetLabel:s,datasetColor:c,position:d,visible:u,customRenderer:h}=n;const m=r(null),[p,g]=i(d);return o((()=>{if(!u||!m.current)return;const e=m.current.getBoundingClientRect(),t=window.innerWidth,a=window.innerHeight;let n=d.x+8,i=d.y-e.height;n+e.width>t-16&&(n=d.x-e.width-8),i<8&&(i=d.y+8),n=Math.max(8,Math.min(n,t-e.width-8)),i=Math.max(8,Math.min(i,a-e.height-8)),g({x:n,y:i})}),[d,u]),u?e("div",{ref:m,className:"c-chart__tooltip",style:{left:p.x,top:p.y},children:h?h(l):t(a,{children:[e("div",{className:"c-chart__tooltip-title",children:l.label}),t("div",{className:"c-chart__tooltip-content",children:[s&&t("div",{className:"c-chart__tooltip-dataset",children:[e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:c}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[s,":"]}),e("span",{className:"c-chart__tooltip-value",children:l.value})]}),l.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(l.metadata).map((a=>{let[n,i]=a;return t("div",{className:"c-chart__tooltip-metadata-item",children:[t("span",{className:"c-chart__tooltip-metadata-key",children:[n,":"]}),e("span",{className:"c-chart__tooltip-metadata-value",children:String(i)})]},n)}))})]})]})}):null}));Or.displayName="ChartTooltip";const Mr=p(l(((a,n)=>{var i,r,o;let{datasets:l=[],config:s={},lineOptions:c={},onDataPointClick:u,onRealTimeUpdate:h,onZoomChange:m,onPanChange:p,onBrushSelection:g,...v}=a;const{processedDatasets:S,generateSmoothPath:f,calculateMovingAverage:E,handlePointHover:A,handlePointLeave:b,hoveredPoint:N}=wr(l,c),_=d((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;return r.length?r.map(((a,r)=>{var l,s,d,u;const h=a.color||i[r],m=(null===(l=a.data)||void 0===l?void 0:l.map(((e,t)=>{var i;return{x:n.xScale(t,null===(i=a.data)||void 0===i?void 0:i.length),y:n.yScale(e.value)}})))||[],p=c.smooth?f(m):`M ${m.map((e=>`${e.x},${e.y}`)).join(" L ")}`;return t("g",{children:[c.showArea&&e("path",{d:`${p} L ${(null===(s=m[m.length-1])||void 0===s?void 0:s.x)||0},${n.yScale(0)} L ${(null===(d=m[0])||void 0===d?void 0:d.x)||0},${n.yScale(0)} Z`,fill:h,className:"c-chart__area-path"}),e("path",{d:p,stroke:h,fill:"none",className:"c-chart__line-path"}),c.showDataPoints&&(null===(u=a.data)||void 0===u?void 0:u.map(((t,i)=>{var l;const s=n.xScale(i,null===(l=a.data)||void 0===l?void 0:l.length),d=n.yScale(t.value),u=(null==N?void 0:N.datasetIndex)===r&&(null==N?void 0:N.pointIndex)===i;return e("circle",{cx:s,cy:d,r:c.pointRadius||4,fill:h,className:"c-chart__data-point "+(u?"c-chart__data-point--hovered":""),onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,t,r,i)},onMouseEnter:e=>{var t;const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect();a?a.left:e.clientX,a?a.top:e.clientY,A(r,i,s,d)},onMouseLeave:b},`point-${i}`)})))]},`dataset-${r}`)})):null}),[c,f,N,A,b]);return t(yr,{ref:n,type:"line",datasets:l,config:s,toolbarConfig:{defaults:{zoom:!0,pan:!0,reset:!0,grid:!0,tooltips:!0}},...v,children:[e(Rr,{datasets:S,config:s,onDataPointClick:u,renderContent:_}),N&&(null===(i=S[N.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i[N.pointIndex])&&e(Or,{dataPoint:S[N.datasetIndex].data[N.pointIndex],datasetLabel:null===(r=S[N.datasetIndex])||void 0===r?void 0:r.label,datasetColor:null===(o=S[N.datasetIndex])||void 0===o?void 0:o.color,position:{x:N.x,y:N.y},visible:!0})]})})));Mr.displayName="LineChart";const Dr=p(l(((t,a)=>{let{areaOptions:n={},...i}=t;const r={showArea:!0,fillOpacity:.3,useGradient:!0,...n};return e(Mr,{ref:a,lineOptions:r,...i})})));function kr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[a,n]=i(null),[r,o]=i(0),[l,s]=i(!1),c=d((function(e,a,n){var i;let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{top:20,right:30,bottom:40,left:50},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e.length)return[];const l=a-r.left-r.right,s=n-r.top-r.bottom,c=(null===(i=e[0])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||0,d=e.length;if(0===c)return[];const u=e.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)).filter((e=>"number"==typeof e)))||[]})),h=Math.min(0,...u),m=Math.max(...u)-h,p=[],g=Array(c).fill(0);return e.forEach(((e,i)=>{var u;null===(u=e.data)||void 0===u||u.forEach(((e,u)=>{const v="number"==typeof e.value?e.value:0;if(isNaN(v)||!isFinite(v))return;let S,f,E,A;if(o){const e=s/c,a=e*(1-(t.groupPadding||.2));A=t.stacked?a:a/d,f=r.top+u*e+(e-a)/2,t.stacked||(f+=i*A*(1+(t.barPadding||.05))),S=r.left,E=(v-h)/m*l,t.stacked&&i>0?(S=r.left+(g[u]-h)/m*l,g[u]+=v):t.stacked&&(g[u]=v)}else{const e=l/c,a=e*(1-(t.groupPadding||.2));if(E=t.stacked?a:a/d,S=r.left+u*e+(e-a)/2,t.stacked||(S+=i*E*(1+(t.barPadding||.05))),A=(v-h)/m*s,f=n-r.bottom-A,t.stacked&&i>0){const e=(g[u]-h)/m*s;f=n-r.bottom-e-A,g[u]+=v}else t.stacked&&(g[u]=v)}if(t.minBarHeight&&(o?E:A)<t.minBarHeight&&(o?E=t.minBarHeight:(A=t.minBarHeight,f=n-r.bottom-A)),t.maxBarWidth&&(o?A:E)>t.maxBarWidth)if(o)A=t.maxBarWidth,f=r.top+u*(s/c)+(s/c-A)/2;else{E=t.maxBarWidth;const e=(a-r.left-r.right)/c;S=r.left+u*e+(e-E)/2}p.push({x:Math.max(S,0),y:Math.max(f,0),width:Math.max(E,0),height:Math.max(A,0),value:v,datasetIndex:i,pointIndex:u})}))})),p}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),u=d((()=>{if(!t.enableAnimations)return;s(!0),o(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,i=Math.min(t/e,1),r=1-Math.pow(1-i,3);o(r),i<1?requestAnimationFrame(n):s(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),h=d(((e,t,a,i)=>{n({datasetIndex:e,pointIndex:t,x:a,y:i})}),[]),m=d((()=>{n(null)}),[]),p=d((e=>t.useGradients?e.map(((e,t)=>{const a=e.color||`var(--atomix-color-${t+1})`;return{id:`bar-gradient-${t}`,stops:[{offset:"0%",color:a,opacity:.8},{offset:"100%",color:a,opacity:.4}]}})):[]),[t.useGradients]),g=d((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t.valueFormatter]),v=d((function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{x:n,y:i,width:r,height:o}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:n+r/2,y:i+o/2};case"outside":return{x:a?n+r+5:n+r/2,y:a?i+o/2:i-5}}}),[t.dataLabelPosition]);return{hoveredBar:a,animationProgress:r,isAnimating:l,calculateBarDimensions:c,generateGradients:p,getDataLabelPosition:v,handleBarHover:h,handleBarLeave:m,startAnimation:u,formatValue:g,setHoveredBar:n,setAnimationProgress:o,setIsAnimating:s}}Dr.displayName="AreaChart";const Br=p(l(((a,n)=>{var i,r,o;let{datasets:l=[],config:s={},barOptions:c={},horizontal:u=!1,onDataPointClick:h,...m}=a;const{calculateBarDimensions:p,handleBarHover:g,handleBarLeave:v,hoveredBar:S,formatValue:f}=kr(l,c),E=d((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;if(!r.length)return null;return p(r,n.width,n.height,n.padding,u).map(((a,n)=>{var l;const s=r[a.datasetIndex],d=null===(l=s.data)||void 0===l?void 0:l[a.pointIndex],u=s.color||i[a.datasetIndex],h=(null==S?void 0:S.datasetIndex)===a.datasetIndex&&(null==S?void 0:S.pointIndex)===a.pointIndex;return t("g",{children:[e("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:u,rx:c.cornerRadius||4,className:"c-chart__bar "+(h?"c-chart__bar--hovered":""),onClick:()=>{var e;return d&&(null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,d,a.datasetIndex,a.pointIndex))},onMouseMove:e=>{var t;const n=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),i=n?n.left+a.x+a.width/2:e.clientX,r=e.clientY;g(a.datasetIndex,a.pointIndex,i,r)},onMouseLeave:v}),c.showValues&&e("text",{x:a.x+a.width/2,y:a.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:f(a.value)})]},`bar-${n}`)}))}),[p,u,c,S,g,v,f]);return t(yr,{ref:n,type:u?"horizontal-bar":"bar",datasets:l,config:s,...m,children:[e(Rr,{datasets:l,config:s,onDataPointClick:h,renderContent:E}),S&&e(Or,{dataPoint:(null===(i=l[S.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i[S.pointIndex])||{label:"",value:0},datasetLabel:null===(r=l[S.datasetIndex])||void 0===r?void 0:r.label,datasetColor:null===(o=l[S.datasetIndex])||void 0===o?void 0:o.color,position:{x:S.x,y:S.y},visible:!0})]})})));Br.displayName="BarChart";const Pr=p(l(((a,n)=>{var r,o,l,s,c,u;let{bubbleData:h=[],config:m={},bubbleOptions:p={},onDataPointClick:g,...v}=a;const{minBubbleSize:S=5,maxBubbleSize:f=50,bubbleOpacity:E=.7,showLabels:A=!0,labelPosition:b="center",enableAnimations:N=!0,animationDuration:_=1e3,showSizeLegend:C=!0,sizeLegendTitle:T="Size",colorScheme:L=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:y=!1}=p,[x,I]=i(null),w=d((a=>{let{scales:n,colors:i,handlers:r}=a;if(!h.length)return null;const o=h.map((e=>e.x)),l=h.map((e=>e.y)),s=h.map((e=>e.size)),c=Math.min(...o),d=Math.max(...o),u=Math.min(...l),m=Math.max(...l),p=Math.min(...s),g=Math.max(...s),v=60,_=n.width-120,x=n.height-120,w=e=>v+(e-c)/(d-c)*_,R=e=>v+x-(e-u)/(m-u)*x,O=e=>S+(e-p)/(g-p)*(f-S),M=h.map(((t,a)=>{const n=w(t.x),i=R(t.y),o=O(t.size);let l=t.color;if(!l)if(y){const e=Math.floor((t.size-p)/(g-p)*(L.length-1));l=L[e]}else l=L[a%L.length];const s=[];if(s.push(e("circle",{cx:n,cy:i,r:o,fill:l,className:"c-chart__bubble "+(N?"c-chart__bubble--animated":""),style:{opacity:E},onClick:()=>{var e;return null===(e=r.onDataPointClick)||void 0===e?void 0:e.call(r,t,0,a)},onMouseEnter:e=>{var t;const r=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),o=r?r.left+n:e.clientX,l=r?r.top+i:e.clientY;I({index:a,clientX:o,clientY:l})},onMouseLeave:()=>I(null)},`bubble-${a}`)),A){let r=n,l=i,c="middle",d="middle";switch(b){case"top":l=i-o-5,d="auto";break;case"bottom":l=i+o+15,d="hanging";break;case"left":r=n-o-5,c="end";break;case"right":r=n+o+5,c="start"}s.push(e("text",{x:r,y:l,textAnchor:c,dominantBaseline:d,className:"c-chart__bubble-label "+("center"===b?"c-chart__bubble-label--center":""),children:t.label},`label-${a}`))}return e("g",{children:s},`bubble-group-${a}`)})),D=[];D.push(e("line",{x1:v,y1:n.height-v,x2:n.width-v,y2:n.height-v,className:"c-chart__axis-line c-chart__axis-line--x"},"x-axis")),D.push(e("line",{x1:v,y1:v,x2:v,y2:n.height-v,className:"c-chart__axis-line c-chart__axis-line--y"},"y-axis"));for(let a=0;a<=5;a++){const i=c+a/5*(d-c),r=w(i);D.push(t("g",{children:[e("line",{x1:r,y1:n.height-v,x2:r,y2:n.height-v+5,className:"c-chart__tick-line"}),e("text",{x:r,y:n.height-v+20,textAnchor:"middle",className:"c-chart__tick-label",children:i.toFixed(1)})]},`x-tick-${a}`))}for(let a=0;a<=5;a++){const n=u+a/5*(m-u),i=R(n);D.push(t("g",{children:[e("line",{x1:55,y1:i,x2:v,y2:i,className:"c-chart__tick-line"}),e("text",{x:50,y:i,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__tick-label",children:n.toFixed(1)})]},`y-tick-${a}`))}const k=[];if(C){const a=n.width-120,i=30;k.push(t("g",{children:[e("text",{x:a,y:i,fontSize:"12",fontWeight:"bold",fill:"var(--atomix-gray-8)",children:T}),[p,(p+g)/2,g].map(((n,r)=>{const o=O(n),l=i+20+30*r;return t("g",{children:[e("circle",{cx:a+15,cy:l,r:o/2,fill:"var(--atomix-gray-5)",opacity:"0.7"}),e("text",{x:a+35,y:l,dominantBaseline:"middle",fontSize:"10",fill:"var(--atomix-gray-6)",children:n.toFixed(0)})]},`legend-${r}`)}))]},"size-legend"))}return t("g",{children:[D,M,k]})}),[h,S,f,E,A,b,N,_,C,T,L,y]),R=[{label:"Bubble Data",data:h.map((e=>({label:e.label,value:e.size,x:e.x,y:e.y})))}];return t(yr,{ref:n,type:"bubble",datasets:R,config:m,...v,children:[e(Rr,{datasets:R,config:m,onDataPointClick:g,renderContent:w}),x&&h[x.index]&&e(Or,{dataPoint:{label:(null===(r=h[x.index])||void 0===r?void 0:r.label)||"",value:(null===(o=h[x.index])||void 0===o?void 0:o.size)||0,metadata:{x:null===(l=h[x.index])||void 0===l?void 0:l.x,y:null===(s=h[x.index])||void 0===s?void 0:s.y,...null===(c=h[x.index])||void 0===c?void 0:c.metadata}},datasetLabel:"Bubble Data",datasetColor:null===(u=h[x.index])||void 0===u?void 0:u.color,position:{x:x.clientX,y:x.clientY},visible:!0})]})})));Pr.displayName="BubbleChart";const zr=p(l(((n,r)=>{let{candlestickData:o=[],config:l={},candlestickOptions:s={bullishColor:"#4DFF9F",bearishColor:"#FF6B6B",candleWidth:.8,showVolume:!1,volumeHeightRatio:.3,showMovingAverages:!1,movingAveragePeriods:[20,50],movingAverageColors:["#FFD93D","#6BCF7F"],showTrendLines:!1,enableCrosshair:!0,showOHLCTooltip:!0,dateFormat:"short",pricePrecision:2,enableZoomPan:!1},onDataPointClick:u,...h}=n;const[m,p]=i(null),[g,v]=i(null),[S,f]=i({scale:1,translateX:0,translateY:0}),E=d(((e,t)=>{const a=[];for(let i=0;i<e.length;i++)if(i<t-1)a.push(NaN);else{var n;const r=Cr(n=e.slice(i-t+1,i+1)).call(n,((e,t)=>e+t.close),0);a.push(r/t)}return a}),[]),A=d((e=>{const t="string"==typeof e?new Date(e):e;switch(s.dateFormat){case"short":default:return t.toLocaleDateString("en-US",{month:"short",day:"numeric"});case"medium":return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"2-digit"});case"long":return t.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});case"numeric":return t.toLocaleDateString("en-US")}}),[s.dateFormat]),b=c((()=>{var n,i,r,c;if(!o.length)return null;const d=800,h=s.showVolume?500:400,f=40,b=70,N=60,_=70,C=s.showVolume?h*(1-s.volumeHeightRatio):h-f-N,T=s.showVolume?h*s.volumeHeightRatio:0,L=d-_-b,y=o.flatMap((e=>[e.open,e.high,e.low,e.close])),x=(null===(n=l.yAxis)||void 0===n?void 0:n.min)??Math.min(...y),I=(null===(i=l.yAxis)||void 0===i?void 0:i.max)??Math.max(...y),w=I!==x?I-x:1,R=o.filter((e=>e.volume)),O=s.showVolume&&R.length>0?Math.max(...R.map((e=>e.volume))):0,M=O>0?O:1,D=e=>{const t=o.length>1?o.length-1:1;return(_+e/t*L)*S.scale+S.translateX},k=e=>(f+C-(e-x)/w*C)*S.scale+S.translateY,B=e=>C+f+10+(M-e)/M*(T-20),P=Math.max(o.length,1),z=L/P*(s.candleWidth||.8),F=[];s.showVolume&&R.length>0&&(o.forEach(((t,a)=>{if(!t.volume)return;const n=D(a),i=t.close>=t.open?s.bullishColor:s.bearishColor,r=isNaN(n)?0:n,o=isNaN(z/4)?0:z/4,l=B(t.volume),c=C+f+10+T-20-l;F.push(e("rect",{x:r-o,y:isNaN(l)?0:l,width:isNaN(z/2)?0:z/2,height:isNaN(c)?0:c,fill:i,opacity:.3},`volume-${a}`))})),F.push(e("line",{x1:_,y1:C+f+5,x2:d-b,y2:C+f+5,stroke:"#e5e7eb",strokeWidth:1},"volume-separator"))),o.forEach(((a,n)=>{const i=D(n),r=k(a.open),o=k(a.high),l=k(a.low),c=k(a.close),d=a.close>=a.open,h=d?s.bullishColor:s.bearishColor,g=Math.min(r,c),v=Math.abs(c-r),S=(null==m?void 0:m.index)===n,f=isNaN(i)?0:i,E=isNaN(z/2)?0:z/2,A=isNaN(g)?0:g,b=isNaN(v)||0===v?1:Math.abs(v);F.push(t("g",{children:[e("line",{x1:isNaN(f)?0:f,y1:isNaN(o)?0:o,x2:isNaN(f)?0:f,y2:isNaN(l)?0:l,stroke:h,className:"c-chart__wick "+(S?"c-chart__wick--hovered":"")}),e("rect",{x:f-E,y:A,width:isNaN(z)?0:z,height:b,fill:h,stroke:h,className:"c-chart__candlestick "+(d?"c-chart__candlestick--bullish":"c-chart__candlestick--bearish"),onMouseEnter:e=>{var t;const i=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),r=i?i.left+f:e.clientX,o=i?i.top+A:e.clientY;p({index:n,x:r,y:o,data:a})},onMouseLeave:()=>p(null),onClick:()=>null==u?void 0:u(a,0,n)}),S&&e("rect",{x:f-E-2,y:A-2,width:isNaN(z+4)?0:z+4,height:isNaN(b+4)?5:Math.max(b+4,5),fill:"none",stroke:h,className:"c-chart__candlestick-highlight"})]},`candle-${n}`))})),s.showMovingAverages&&s.movingAveragePeriods&&s.movingAveragePeriods.forEach(((t,a)=>{var n;const i=E(o,t),r=(null===(n=s.movingAverageColors)||void 0===n?void 0:n[a])||"#FFD93D",l=i.map(((e,t)=>{if(isNaN(e))return"";const a=D(t),n=k(e);if(0===t)return`M ${isNaN(a)?0:a},${isNaN(n)?0:n}`;const r=i[t-1];return void 0!==r&&isNaN(r)?`M ${isNaN(a)?0:a},${isNaN(n)?0:n}`:`L ${isNaN(a)?0:a},${isNaN(n)?0:n}`})).join(" ");F.push(e("path",{d:l,stroke:r,fill:"none",className:"c-chart__moving-average"},`ma-${t}`))})),g&&s.enableCrosshair&&F.push(t("g",{className:"c-chart__crosshair",children:[e("line",{x1:isNaN(g.x)?0:g.x,y1:f,x2:isNaN(g.x)?0:g.x,y2:C+f,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"}),e("line",{x1:_,y1:isNaN(g.y)?0:g.y,x2:d-b,y2:isNaN(g.y)?0:g.y,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"})]},"crosshair"));const U=t("g",{className:pe.GRID_CLASS,children:[(null===(r=l.yAxis)||void 0===r?void 0:r.showGrid)&&Array.from({length:6}).map(((t,a)=>{const n=k(x+w*a/5);return e("line",{x1:_,y1:isNaN(n)?0:n,x2:d-b,y2:isNaN(n)?0:n,stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"2,2",opacity:.2},`price-grid-${a}`)})),(null===(c=l.xAxis)||void 0===c?void 0:c.showGrid)&&o.map(((t,a)=>{if(a%Math.ceil(o.length/10)!=0)return null;const n=D(a);return e("line",{x1:isNaN(n)?0:n,y1:f,x2:isNaN(n)?0:n,y2:C+f,stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"2,2",opacity:.2},`time-grid-${a}`)}))]}),G=t(a,{children:[t("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--y`,children:[e("line",{x1:_,y1:f,x2:_,y2:C+f,stroke:"#e5e7eb",strokeWidth:1}),Array.from({length:6}).map(((a,n)=>{const i=x+w*n/5,r=k(i);return t("g",{children:[e("line",{x1:_-5,y1:isNaN(r)?0:r,x2:_,y2:isNaN(r)?0:r,stroke:"#e5e7eb",strokeWidth:1}),t("text",{x:_-10,y:isNaN(r)?0:r,textAnchor:"end",dominantBaseline:"middle",fontSize:"12",fill:"#374151",children:["$",i.toFixed(s.pricePrecision)]})]},`price-axis-${n}`)}))]}),t("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--x`,children:[e("line",{x1:_,y1:C+f,x2:d-b,y2:C+f,stroke:"#e5e7eb",strokeWidth:1}),o.map(((a,n)=>{if(n%Math.ceil(o.length/8)!=0)return null;const i=D(n);return t("g",{children:[e("line",{x1:isNaN(i)?0:i,y1:C+f,x2:isNaN(i)?0:i,y2:C+f+5,stroke:"#e5e7eb",strokeWidth:1}),e("text",{x:isNaN(i)?0:i,y:C+f+20,textAnchor:"middle",fontSize:"12",fill:"#374151",children:A(a.date)})]},`time-axis-${n}`)}))]}),s.showVolume&&R.length>0&&t("g",{className:`${pe.AXIS_CLASS} ${pe.AXIS_CLASS}--volume`,children:[e("line",{x1:d-b,y1:C+f+10,x2:d-b,y2:h-N,stroke:"#e5e7eb",strokeWidth:1}),Array.from({length:3}).map(((a,n)=>{const i=M*(n+1)/3,r=B(i);return t("g",{children:[e("line",{x1:d-b,y1:isNaN(r)?0:r,x2:d-b+5,y2:isNaN(r)?0:r,stroke:"#e5e7eb",strokeWidth:1}),e("text",{x:d-b+10,y:isNaN(r)?0:r,textAnchor:"start",dominantBaseline:"middle",fontSize:"10",fill:"#374151",children:i>1e6?`${(i/1e6).toFixed(1)}M`:i>1e3?`${(i/1e3).toFixed(0)}K`:`${Math.round(i)}`})]},`volume-axis-${n}`)}))]})]});return t("svg",{width:"100%",height:"100%",viewBox:`0 0 800 ${h}`,preserveAspectRatio:"xMidYMid meet",onMouseMove:e=>{if(!s.enableCrosshair)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;v({x:a,y:n})},onMouseLeave:()=>v(null),style:{cursor:"crosshair"},children:[U,G,F]})}),[o,l,s,m,g,S,E,A,u]),N=d((a=>{if(!m)return null;const{data:n}=m,i=n.close>=n.open,r=n.close-n.open,o=r/n.open*100;return t("div",{children:[e("div",{style:{fontWeight:"bold",marginBottom:"0.5rem"},children:A(n.date)}),t("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.25rem",fontSize:"0.75rem"},children:[t("div",{children:["Open: ",t("strong",{children:["$",n.open.toFixed(s.pricePrecision)]})]}),t("div",{children:["High: ",t("strong",{children:["$",n.high.toFixed(s.pricePrecision)]})]}),t("div",{children:["Low: ",t("strong",{children:["$",n.low.toFixed(s.pricePrecision)]})]}),t("div",{children:["Close: ",t("strong",{children:["$",n.close.toFixed(s.pricePrecision)]})]})]}),t("div",{style:{marginTop:"0.5rem",paddingTop:"0.5rem",borderTop:"1px solid var(--atomix-gray-3)",color:i?s.bullishColor:s.bearishColor,fontWeight:"bold"},children:[i?"+":"",r.toFixed(s.pricePrecision)," (",o.toFixed(2),"%)"]}),n.volume&&t("div",{style:{marginTop:"0.25rem",fontSize:"0.75rem"},children:["Volume: ",n.volume.toLocaleString()]})]})}),[s,m,A]);return t(yr,{ref:r,type:"candlestick",datasets:[],config:l,...h,children:[b,s.showOHLCTooltip&&m&&e(Or,{dataPoint:{label:A(m.data.date),value:m.data.close,metadata:{open:m.data.open,high:m.data.high,low:m.data.low,close:m.data.close,volume:m.data.volume}},datasetLabel:"OHLC",position:{x:m.x,y:m.y},visible:!0,customRenderer:N}),s.showMovingAverages&&s.movingAveragePeriods&&e("div",{className:pe.LEGEND_CLASS,style:{display:"flex",gap:"0.75rem",marginTop:"0.5rem",fontSize:"0.875rem"},children:s.movingAveragePeriods.map(((a,n)=>{var i;return t("div",{style:{display:"flex",alignItems:"center"},children:[e("div",{className:pe.LEGEND_COLOR_CLASS,style:{width:"12px",height:"2px",backgroundColor:(null===(i=s.movingAverageColors)||void 0===i?void 0:i[n])||"#FFD93D",marginRight:"0.25rem"}}),t("span",{className:pe.LEGEND_LABEL_CLASS,children:["MA",a]})]},a)}))})]})})));zr.displayName="CandlestickChart";const Fr=p(l(((a,n)=>{var r;let{datasets:o=[],config:l={},pieOptions:s={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:d={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:u,...h}=a;const m=o.length>0?o[0]:{label:"",data:[]},[p,g]=i(null),v=c((()=>{var a,n;if(null==m||null===(a=m.data)||void 0===a||!a.length)return null;const i=null==m||null===(n=m.data)||void 0===n?void 0:n.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));if(!i.length)return null;const r=Math.min(800,400)/2*.8,o=r*(d.innerRadiusRatio??.6),l=400,c=200,h=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let p=[...i];s.sortByValue&&p.sort(((e,t)=>t.value-e.value));const v=Cr(p).call(p,((e,t)=>e+t.value),0);if(v<=0||!isFinite(v))return null;const S=[];let f=(s.startAngle??0)*Math.PI/180;p.forEach(((e,t)=>{const a=e.value/v;if(!isFinite(a)||a<0)return;const n=2*a*Math.PI-(s.padAngle??1)*Math.PI/180;if(!isFinite(n)||n<0)return;const i=f+n;isFinite(f)&&isFinite(i)&&(S.push({dataPoint:e,index:t,startAngle:f,endAngle:i,color:e.color||h[t%h.length],percentage:a}),f=i+(s.padAngle??1)*Math.PI/180)}));const E=S.map((a=>{const{startAngle:n,endAngle:i,color:d,dataPoint:h,index:m,percentage:p}=a,v=l+r*Math.cos(n),S=c+r*Math.sin(n),f=l+r*Math.cos(i),E=c+r*Math.sin(i),A=l+o*Math.cos(i),b=c+o*Math.sin(i),N=l+o*Math.cos(n),_=c+o*Math.sin(n),C=i-n>Math.PI?1:0,T=[`M ${v},${S}`,`A ${r},${r} 0 ${C},1 ${f},${E}`,`L ${A},${b}`,`A ${o},${o} 0 ${C},0 ${N},${_}`,"Z"].join(" "),L=n+(i-n)/2,y=(r+o)/2,x=l+y*Math.cos(L),I=c+y*Math.sin(L),w=`${Math.round(100*p)}%`;return t("g",{children:[e("path",{d:T,fill:d,className:"c-chart__donut-slice",onClick:()=>null==u?void 0:u(h,0,m),onMouseEnter:e=>{var t;const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),n=a?a.left+x:e.clientX,i=a?a.top+I:e.clientY;g({index:m,clientX:n,clientY:i})},onMouseLeave:()=>g(null),"data-tooltip":`${h.label}: ${h.value} (${w})`}),s.showValues&&e("text",{x:x,y:I,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-label",children:s.showPercentages?w:h.value})]},`slice-${m}`)})),A=d.showTotal&&t("g",{className:"c-chart__donut-center",children:[e("circle",{cx:l,cy:c,r:o,className:"c-chart__donut-center-bg"}),d.centerLabel&&e("text",{x:l,y:185,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:d.centerLabel}),e("text",{x:l,y:c+(d.centerLabel?15:0),textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==d.centerValue?d.centerValue:v})]});return e("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",preserveAspectRatio:"xMidYMid meet",children:t("g",{children:[E,A]})})}),[m,s,d,u]),S=c((()=>{var a,n;if(!l.showLegend||null==m||null===(a=m.data)||void 0===a||!a.length)return null;const i=null==m||null===(n=m.data)||void 0===n?void 0:n.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));if(!i.length)return null;const r=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"],o=Cr(i).call(i,((e,t)=>e+t.value),0);return o<=0||!isFinite(o)?null:e("div",{className:pe.LEGEND_CLASS,children:i.map(((a,n)=>{const i=Math.round(a.value/o*100);return isFinite(i)?t("div",{className:pe.LEGEND_ITEM_CLASS,onClick:()=>null==u?void 0:u(a,0,n),children:[e("div",{className:`${pe.LEGEND_COLOR_CLASS} c-chart__legend-color`,style:{backgroundColor:a.color||r[n%r.length]}}),t("span",{className:pe.LEGEND_LABEL_CLASS,children:[a.label," ",s.showPercentages&&`(${i}%)`]})]},`legend-${n}`):null}))})}),[m,l.showLegend,s.showPercentages,u]);return t(yr,{ref:n,type:"donut",datasets:o,config:l,...h,children:[t("div",{className:pe.CANVAS_CLASS,children:[v,p&&(null==m||null===(r=m.data)||void 0===r?void 0:r[p.index])&&e(Or,{dataPoint:m.data[p.index],datasetLabel:m.label,datasetColor:m.data[p.index].color,position:{x:p.clientX,y:p.clientY},visible:!0})]}),S]})})));Fr.displayName="DonutChart";const Ur=p(l(((a,n)=>{let{funnelData:i=[],config:r={},funnelOptions:o={},onDataPointClick:l,...s}=a;const{direction:c="vertical",showLabels:u=!0,showValues:h=!0,showPercentages:m=!1,labelPosition:p="outside",neckWidth:g=.3,neckHeight:v=.2,segmentGap:S=2,colorScheme:f=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:E=!0,animate:A=!0,animationDuration:b=1e3,animationDelay:N=200,valueFormatter:_=e=>e.toLocaleString(),showConversionRates:C=!0,conversionRatePosition:T="between",proportional:L=!0,minSegmentRatio:y=.1}=o,x=d((a=>{let{scales:n,colors:r,handlers:o}=a;if(!i.length)return null;const l=60,s=n.width-120,d=n.height-120,b=Math.max(...i.map((e=>e.value))),x=i.map(((e,t)=>{const a=e.value/b*100,n=t>0&&i[t-1]?e.value/i[t-1].value*100:100;return{...e,percentage:a,conversionRate:n,index:t}})),I=[];if("vertical"===c){const a=(d-(i.length-1)*S)/i.length;x.forEach(((n,r)=>{const c=l+r*(a+S);let d;if(L){const e=Math.max(n.percentage/100,y);d=s*e}else{const e=Math.max(1-r/(i.length-1)*(1-g),y);d=s*e}const v=l+(s-d)/2;let b,w=n.color||f[r%f.length];if(E){const a=`funnel-gradient-${r}`;I.push(e("defs",{children:t("linearGradient",{id:a,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e("stop",{offset:"0%",stopColor:w,stopOpacity:"0.8"}),e("stop",{offset:"100%",stopColor:w,stopOpacity:"1"})]})},`gradient-def-${r}`)),w=`url(#${a})`}if(r===i.length-1)b=`M ${v} ${c} L ${v+d} ${c} L ${v+d} ${c+a} L ${v} ${c+a} Z`;else{const e=x[r+1];let t;if(L&&e){const a=Math.max(e.percentage/100,y);t=s*a}else{const e=Math.max(1-(r+1)/(i.length-1)*(1-g),y);t=s*e}const n=l+(s-t)/2;b=`M ${v} ${c} L ${v+d} ${c} L ${n+t} ${c+a} L ${n} ${c+a} Z`}if(I.push(e("path",{d:b,fill:w,className:"c-chart__funnel-segment "+(A?"c-chart__funnel-segment--animated":""),style:{animationDelay:A?r*N+"ms":"0ms"},onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,n,0,r)}},`segment-${r}`)),u||h||m){const t=l+s/2,i=c+a/2;let o=t,d=t;"outside"===p&&(o=l+s+10,d=l+s+10);let g=[];if(u&&g.push(e("text",{x:o,y:i-5,textAnchor:"outside"===p?"start":"middle",dominantBaseline:"middle",className:"c-chart__funnel-label "+("inside"===p?"c-chart__funnel-label--inside":"c-chart__funnel-label--outside"),children:n.label},`label-${r}`)),h||m){let t="";t=h&&m?`${_(n.value)} (${n.percentage.toFixed(1)}%)`:h?_(n.value):`${n.percentage.toFixed(1)}%`,g.push(e("text",{x:d,y:i+(u?10:0),textAnchor:"outside"===p?"start":"middle",dominantBaseline:"middle",className:"c-chart__funnel-value "+("inside"===p?"c-chart__funnel-value--inside":"c-chart__funnel-value--outside"),children:t},`value-${r}`))}I.push(...g)}if(C&&r>0){const e="between"===T?c-S/2:c+a/2;I.push(t("text",{x:l+s/2,y:e,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-conversion",children:[n.conversionRate.toFixed(1),"%"]},`conversion-${r}`))}}))}else i.length,i.length,x.forEach(((e,t)=>{L?Math.max(e.percentage/100,y):Math.max(1-t/(i.length-1)*(1-v),y)}));return e("g",{children:I})}),[i,c,u,h,m,p,g,v,S,f,E,A,b,N,_,C,T,L,y]),I=[{label:"Funnel Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(yr,{ref:n,type:"funnel",datasets:I,config:r,...s,children:e(Rr,{datasets:I,config:r,onDataPointClick:l,renderContent:x})})})));Ur.displayName="FunnelChart";const Gr=p(l(((a,n)=>{let{value:r,min:l=0,max:s=100,config:c={},gaugeOptions:u={},...h}=a;const{startAngle:m=225,endAngle:p=315,thickness:g=.3,showNeedle:v=!0,needleColor:S="var(--atomix-gray-8)",showValue:f=!0,valueFormatter:E=e=>e.toFixed(0),showMinMaxLabels:A=!0,showTicks:b=!0,majorTicks:N=5,minorTicks:_=4,colorZones:C=[{from:0,to:30,color:"var(--atomix-success)",label:"Good"},{from:30,to:70,color:"var(--atomix-warning)",label:"Warning"},{from:70,to:100,color:"var(--atomix-error)",label:"Critical"}],animate:T=!0,animationDuration:L=1e3,animationEasing:y="ease-out",useGradient:x=!0,label:I,labelPosition:w="bottom"}=u,[R,O]=i(T?l:r),[M,D]=i(null);o((()=>{if(T){const e=Date.now(),t=R,a=Math.max(l,Math.min(s,r))-t,n=()=>{const i=Date.now()-e,r=Math.min(i/L,1);let o=r;"ease-out"===y?o=1-Math.pow(1-r,3):"ease-in"===y?o=Math.pow(r,3):"ease-in-out"===y&&(o=r<.5?4*Math.pow(r,3):1-Math.pow(-2*r+2,3)/2);O(t+a*o),r<1&&requestAnimationFrame(n)};requestAnimationFrame(n)}else O(r)}),[r,l,s,T,L,y,R]);const k=d((a=>{let{scales:n,colors:i,handlers:r}=a;const o=n.width/2,c=n.height/2,d=.8*Math.min(o,c),u=d*(1-g),h=m*Math.PI/180,T=p*Math.PI/180,L=h+(T-h)*((R-l)/(s-l)),y=[],O=B(o,c,d,u,m,p);if(y.push(e("path",{d:O,className:"c-chart__gauge-background"},"background")),C.forEach(((a,n)=>{const i=m+(a.from-l)/(s-l)*(p-m),r=m+(a.to-l)/(s-l)*(p-m),h=B(o,c,d,u,i,r);let g=a.color;if(x){const i=`gauge-gradient-${n}`;y.push(e("defs",{children:t("linearGradient",{id:i,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e("stop",{offset:"0%",stopColor:a.color,stopOpacity:"0.8"}),e("stop",{offset:"100%",stopColor:a.color,stopOpacity:"1"})]})},`gradient-def-${n}`)),g=`url(#${i})`}y.push(e("path",{d:h,fill:g,className:"c-chart__gauge-zone"},`zone-${n}`))})),b)for(let t=0;t<=N;t++){const a=m+t/N*(p-m),n=a*Math.PI/180,i={x:o+Math.cos(n)*(d-10),y:c+Math.sin(n)*(d-10)},r={x:o+Math.cos(n)*d,y:c+Math.sin(n)*d};y.push(e("line",{x1:i.x,y1:i.y,x2:r.x,y2:r.y,className:"c-chart__gauge-tick c-chart__gauge-tick--major"},`major-tick-${t}`));const u=l+t/N*(s-l),h=d+15,g=o+Math.cos(n)*h,v=c+Math.sin(n)*h;if(y.push(e("text",{x:g,y:v,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-tick-label",children:u.toFixed(0)},`tick-label-${t}`)),t<N)for(let n=1;n<=_;n++){const i=(a+n/(_+1)*((p-m)/N))*Math.PI/180,r={x:o+Math.cos(i)*(d-5),y:c+Math.sin(i)*(d-5)},l={x:o+Math.cos(i)*d,y:c+Math.sin(i)*d};y.push(e("line",{x1:r.x,y1:r.y,x2:l.x,y2:l.y,className:"c-chart__gauge-tick c-chart__gauge-tick--minor"},`minor-tick-${t}-${n}`))}}if(A){const t=d+30,a=d+30,n=o+Math.cos(h)*t,i=c+Math.sin(h)*t,r=o+Math.cos(T)*a,u=c+Math.sin(T)*a;y.push(e("text",{x:n,y:i,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-min-max-label",children:l},"min-label")),y.push(e("text",{x:r,y:u,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-min-max-label",children:s},"max-label"))}if(v){const a=.8*d,n=o+Math.cos(L)*a,i=c+Math.sin(L)*a;y.push(t("g",{className:"c-chart__gauge-needle",children:[e("line",{x1:o,y1:c,x2:n,y2:i,stroke:S,className:"c-chart__gauge-needle-line"}),e("circle",{cx:o,cy:c,r:"6",fill:S,className:"c-chart__gauge-needle-center",onMouseEnter:e=>{var t;const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),n=a?a.left+o:e.clientX,i=a?a.top+c:e.clientY;D({clientX:n,clientY:i})},onMouseLeave:()=>D(null)})]},"needle"))}if(f){let t=c;"top"===w&&(t=c-20),"bottom"===w&&(t=c+20),y.push(e("text",{x:o,y:t,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-value",children:E(R)},"value-text"))}if(I){let t=c+40;"top"===w&&(t=c-40),"center"===w&&(t=c+10),y.push(e("text",{x:o,y:t,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-label",children:I},"custom-label"))}return e("g",{children:y})}),[R,l,s,m,p,g,v,S,f,E,A,b,N,_,C,x,I,w]),B=(e,t,a,n,i,r)=>{const o=P(e,t,a,r),l=P(e,t,a,i),s=P(e,t,n,r),c=P(e,t,n,i),d=r-i<=180?"0":"1";return["M",o.x,o.y,"A",a,a,0,d,0,l.x,l.y,"L",c.x,c.y,"A",n,n,0,d,1,s.x,s.y,"Z"].join(" ")},P=(e,t,a,n)=>{const i=n*Math.PI/180;return{x:e+a*Math.cos(i),y:t+a*Math.sin(i)}},z=[{label:"Gauge Value",data:[{label:"Current",value:R}]}];return t(yr,{ref:n,type:"gauge",datasets:z,config:c,...h,children:[e(Rr,{datasets:z,config:c,renderContent:k}),M&&e(Or,{dataPoint:{label:I||"Current Value",value:R,metadata:{min:l,max:s,percentage:((R-l)/(s-l)*100).toFixed(1)+"%"}},datasetLabel:"Gauge",position:{x:M.clientX,y:M.clientY},visible:!0})]})})));Gr.displayName="GaugeChart";const Vr=p(l(((a,n)=>{let{data:r=[],colorScale:o={scheme:"github",steps:5},cellConfig:l={width:12,height:12,borderRadius:2,spacing:2,showBorders:!1},showValues:s=!1,valueFormatter:u=e=>e.toFixed(0),showColorLegend:h=!0,tooltipConfig:m={enabled:!0},variant:p="grid",animationConfig:g={enabled:!0,duration:800,delay:50,easing:"ease-out"},config:v={},...S}=a;const[f,E]=i(null),[A,b]=i({x:0,y:0}),N=c((()=>{if(!r.length)return{matrix:[],xLabels:[],yLabels:[],minValue:0,maxValue:1};const e=[...new Set(r.map((e=>e.x)))].sort(),t=[...new Set(r.map((e=>e.y)))].sort(),a=r.map((e=>e.value)),n=o.min??Math.min(...a),i=o.max??Math.max(...a),l=t.map((()=>new Array(e.length).fill(null)));return r.forEach((a=>{const n=e.indexOf(a.x),i=t.indexOf(a.y);n>=0&&i>=0&&l[i]&&(l[i][n]=a)})),{matrix:l,xLabels:e,yLabels:t,minValue:n,maxValue:i}}),[r,o.min,o.max]),_={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4a0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],github:["#ebedf0","#9be9a8","#40c463","#30a14e","#216e39"],custom:o.colors||["#ffffff","#000000"]},C=d((e=>{const{minValue:t,maxValue:a}=N,n=a-t;if(0===n)return _[o.scheme][0];const i=(e-t)/n,r=_[o.scheme],l=o.steps||r.length,s=Math.min(Math.floor(i*l),l-1);return r[Math.floor(s/l*(r.length-1))]}),[N,o.scheme,o.steps,_]),T=d(((e,t)=>{E(e),t&&e&&(t.currentTarget.getBoundingClientRect(),b({x:t.clientX,y:t.clientY}))}),[]),L=d((a=>{const{matrix:n,xLabels:i,yLabels:r}=N;if(!n.length)return null;const c=l.width||40,d=l.height||40,m=l.spacing||2,v=l.borderRadius||4,S=i.length*(c+m)-m;r.length;const E=100;return t("g",{children:[e("defs",{children:h&&e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:_[o.scheme].map(((t,a)=>e("stop",{offset:a/(_[o.scheme].length-1)*100+"%",stopColor:t},a)))})}),i.map(((t,a)=>("calendar"===p?a%4==0:a%Math.max(1,Math.floor(i.length/12))==0)?e("text",{x:E+a*(c+m)+c/2,y:42,textAnchor:"middle",className:"c-chart__heatmap-axis-label",fontSize:"11",fill:"var(--atomix-gray-7)",children:String(t)},`x-label-${a}`):null)),r.map(((t,a)=>e("text",{x:92,y:50+a*(d+m)+d/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",fontSize:"11",fill:"var(--atomix-gray-7)",children:String(t)},`y-label-${a}`))),n.map(((a,n)=>a.map(((a,r)=>{const o=E+r*(c+m),h=50+n*(d+m),p=g.enabled?(n*i.length+r)*(g.delay||50):0;if(!a)return e("rect",{x:o,y:h,width:c,height:d,rx:v,fill:"var(--atomix-gray-2)",stroke:l.showBorders?"var(--atomix-gray-3)":"none",strokeWidth:l.showBorders?.5:0,className:"c-chart__heatmap-cell c-chart__heatmap-cell--empty",style:{animation:g.enabled?`chart-fade-in ${g.duration}ms ${g.easing} ${p}ms both`:"none"}},`empty-${n}-${r}`);const S=C(a.value),A=f===a;return t("g",{children:[e("rect",{x:o,y:h,width:c,height:d,fill:S,rx:v,stroke:l.showBorders?"var(--atomix-gray-3)":"none",strokeWidth:l.showBorders?.5:0,className:"c-chart__heatmap-cell "+(A?"c-chart__heatmap-cell--hovered":""),onMouseEnter:e=>T(a,e),onMouseLeave:()=>T(null),style:{cursor:"pointer",transition:"all 0.2s ease",animation:g.enabled?`chart-scale-in ${g.duration}ms ${g.easing} ${p}ms both`:"none",transform:A?"scale(1.1)":"scale(1)",filter:A?"drop-shadow(0 2px 4px rgba(0,0,0,0.2))":"none"}}),s&&a.value>0&&e("text",{x:o+c/2,y:h+d/2,textAnchor:"middle",dominantBaseline:"middle",fontSize:"9",fontWeight:"500",fill:a.value>(N.minValue+N.maxValue)/2?"white":"var(--atomix-gray-8)",className:"c-chart__heatmap-value",style:{pointerEvents:"none"},children:u(a.value)})]},`cell-${n}-${r}`)})))),h&&t("g",{transform:`translate(${E+S+40}, 50)`,children:[e("text",{x:"0",y:"-15",fontSize:"12",fontWeight:"600",fill:"var(--atomix-gray-8)",children:"Activity"}),t("g",{transform:"translate(0, 10)",children:[e("text",{x:"-5",y:"15",fontSize:"10",fill:"var(--atomix-gray-6)",textAnchor:"end",children:"Less"}),_[o.scheme].map(((t,a)=>e("rect",{x:14*a,y:0,width:12,height:12,fill:t,rx:2,stroke:"var(--atomix-gray-3)",strokeWidth:.5},a))),e("text",{x:14*_[o.scheme].length+5,y:"15",fontSize:"10",fill:"var(--atomix-gray-6)",children:"More"})]})]})]})}),[N,l,s,u,h,C,f,T,o.scheme,_]),{matrix:y,xLabels:x,yLabels:I}=N,w=l.width||12,R=l.height||12,O=l.spacing||2,M=Math.max(600,x.length*(w+O)+200),D=Math.max(400,I.length*(R+O)+150);return t(yr,{ref:n,type:"heatmap",datasets:[],config:v,className:`c-chart--heatmap c-chart--${p}`,...S,children:[e("svg",{width:M,height:D,viewBox:`0 0 ${M} ${D}`,className:"c-chart__svg",style:{width:"100%",height:"100%"},children:L({scales:{width:M,height:D}})}),m.enabled&&f&&e("div",{className:"c-chart__tooltip",style:{position:"fixed",left:A.x+10,top:A.y-10},children:m.formatter?m.formatter(f):`${f.label||`${f.x}, ${f.y}`}: ${f.value}`})]})})));Vr.displayName="HeatmapChart";const Yr=p(l(((a,n)=>{let{datasets:i=[],yAxes:r=[],xAxis:o,config:l={},syncZoom:s=!0,showCrosshair:u=!0,...h}=a;const m=c((()=>{const e={},t=r.filter((e=>"left"===e.position)),a=r.filter((e=>"right"===e.position)),n=60*t.length,o=60*a.length,l=n,s=800-o,c=s-l,d=300;r.forEach(((n,r)=>{const o=i.filter((e=>e.yAxisId===n.id));if(0===o.length)return;const l=o.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)).filter((e=>"number"==typeof e)))||[]})),c=n.min??Math.min(0,...l),u=n.max??Math.max(...l,1),h=u-c;let m;if("left"===n.position){m=60*t.findIndex((e=>e.id===n.id))+30}else{const e=a.findIndex((e=>e.id===n.id));m=s+60*e+30}e[n.id]={yScale:e=>0===h?190:340-(e-c)/h*d,minValue:c,maxValue:u,valueRange:h,axisX:m,tickCount:n.tickCount||5,format:n.format||(e=>e.toFixed(1))}}));const u=Math.max(...i.map((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.length)||0})));return e.x={xScale:(e,t)=>{const a=t||u;return a<=1?l+c/2:l+e/(a-1)*c},plotAreaLeft:l,plotAreaRight:s,plotAreaTop:40,plotAreaBottom:340,plotAreaWidth:c,plotAreaHeight:d,maxDataLength:u},e}),[i,r,o]),p=d((a=>{var n;let{scales:i,colors:o,datasets:l,handlers:s}=a;if(!l.length||!m.x)return null;const{xScale:c,plotAreaLeft:d,plotAreaRight:u,plotAreaTop:h,plotAreaBottom:p,plotAreaWidth:g,plotAreaHeight:v}=m.x;return t("g",{children:[e("rect",{x:d,y:h,width:g,height:v,className:"c-chart__plot-area"}),r.map(((a,n)=>{const i=m[a.id];if(!i)return null;const r=Array.from({length:i.tickCount},((e,t)=>{const a=i.minValue+(i.maxValue-i.minValue)*(t/(i.tickCount-1));return{value:a,y:i.yScale(a),label:i.format(a)}}));return t("g",{children:[a.showGrid&&r.map(((t,a)=>e("line",{x1:d,y1:t.y,x2:u,y2:t.y,className:"c-chart__grid"},`grid-${a}`))),e("line",{x1:i.axisX,y1:h,x2:i.axisX,y2:p,stroke:a.color||"var(--atomix-secondary-text)",className:"c-chart__axis-line"}),r.map(((n,r)=>t("g",{children:[e("line",{x1:i.axisX-5,y1:n.y,x2:i.axisX+5,y2:n.y,stroke:a.color||"var(--atomix-gray-6)",strokeWidth:"1"}),e("text",{x:"left"===a.position?i.axisX-10:i.axisX+10,y:n.y,textAnchor:"left"===a.position?"end":"start",dominantBaseline:"middle",className:"c-chart__tick-label",children:n.label})]},`tick-${r}`))),a.label&&e("text",{x:i.axisX,y:"left"===a.position?20:p+40,textAnchor:"middle",fontSize:"14",fontWeight:"bold",fill:a.color||"var(--atomix-gray-8)",transform:"left"===a.position?`rotate(-90, ${i.axisX}, 20)`:"",children:a.label})]},`y-axis-${a.id}`)})),t("g",{children:[e("line",{x1:d,y1:p,x2:u,y2:p,stroke:"var(--atomix-gray-6)",strokeWidth:"2"}),null===(n=l[0])||void 0===n||null===(n=n.data)||void 0===n?void 0:n.map(((a,n)=>{var i;const r=c(n,(null===(i=l[0])||void 0===i||null===(i=i.data)||void 0===i?void 0:i.length)||0);return t("g",{children:[e("line",{x1:r,y1:p,x2:r,y2:p+5,stroke:"var(--atomix-gray-6)",strokeWidth:"1"}),e("text",{x:r,y:p+20,textAnchor:"middle",fontSize:"12",fill:"var(--atomix-gray-7)",children:a.label})]},`x-tick-${n}`)}))]}),l.map(((a,n)=>{var i;const l=m[a.yAxisId||(null===(i=r[0])||void 0===i?void 0:i.id)||""];if(!l)return null;const d=a.color||o[n],u=a.type||"line";if("line"===u||"area"===u){var h,v,S,f;const i=(null===(h=a.data)||void 0===h?void 0:h.map(((e,t)=>{var n;return{x:c(t,null===(n=a.data)||void 0===n?void 0:n.length),y:l.yScale(e.value)}})))||[],r=i.length>1?`M ${i.map((e=>`${e.x},${e.y}`)).join(" L ")}`:"";return t("g",{children:["area"===u&&e("path",{d:`${r} L ${(null===(v=i[i.length-1])||void 0===v?void 0:v.x)||0},${p} L ${(null===(S=i[0])||void 0===S?void 0:S.x)||0},${p} Z`,fill:d,opacity:"0.3"}),e("path",{d:r,stroke:d,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),null===(f=a.data)||void 0===f?void 0:f.map(((t,i)=>{var r;const o=c(i,null===(r=a.data)||void 0===r?void 0:r.length),u=l.yScale(t.value);return e("circle",{cx:o,cy:u,r:"4",fill:d,className:"c-chart__data-point",onClick:()=>{var e;return null===(e=s.onDataPointClick)||void 0===e?void 0:e.call(s,t,n,i)}},`point-${i}`)}))]},`dataset-${n}`)}if("bar"===u){var E,A;const t=g/((null===(E=a.data)||void 0===E?void 0:E.length)||1)*.6;return e("g",{children:null===(A=a.data)||void 0===A?void 0:A.map(((i,r)=>{var o;const u=c(r,(null===(o=a.data)||void 0===o?void 0:o.length)||0),h=l.yScale(i.value);return e("rect",{x:u-t/2,y:h,width:t,height:p-h,fill:d,rx:"4",onClick:()=>{var e;return null===(e=s.onDataPointClick)||void 0===e?void 0:e.call(s,i,n,r)},style:{cursor:"pointer"}},`bar-${r}`)}))},`bars-${n}`)}return null})),e("g",{transform:`translate(${d}, ${p+50})`,children:l.map(((a,n)=>{const i=a.color||o[n];return t("g",{transform:`translate(${120*n}, 0)`,children:[e("rect",{x:"0",y:"0",width:"12",height:"12",fill:i,rx:"2"}),t("text",{x:"18",y:"9",fontSize:"12",fill:"var(--atomix-gray-8)",children:[a.label," (",a.yAxisId,")"]})]},`legend-${n}`)}))})]})}),[m,r]);return e(yr,{ref:n,type:"line",datasets:i,config:l,title:"Multi-Axis Chart",showToolbar:!0,...h,children:e(Rr,{datasets:i,config:l,width:800,height:500,renderContent:p,interactive:!0,enableAccessibility:!0})})})));function Hr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[a,n]=i(null),[r,o]=i(new Set),[l,s]=i(0),[u,h]=i(!1),m=c((()=>{const a=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return a.length?t.sortByValue?[...a].sort(((e,t)=>t.value-e.value)):a:[]}),[e,t.sortByValue]),p=c((()=>Cr(m).call(m,((e,t)=>e+t.value),0)),[m]),g=c((()=>{if(!m.length||p<=0)return[];const e=400,a=200,n=150,i=n*(t.innerRadius||0),r=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let o=(t.startAngle||0)*Math.PI/180;const l=(t.padAngle||1)*Math.PI/180;return m.map(((t,s)=>{const c=t.value/p,d=2*c*Math.PI-l,u=o+d,h=o+d/2,m=e+n*Math.cos(o),g=a+n*Math.sin(o),v=e+n*Math.cos(u),S=a+n*Math.sin(u),f=d>Math.PI?1:0;let E;if(i>0){const t=e+i*Math.cos(u),n=a+i*Math.sin(u),r=e+i*Math.cos(o),l=a+i*Math.sin(o);E=[`M ${m},${g}`,`A 150,150 0 ${f},1 ${v},${S}`,`L ${t},${n}`,`A ${i},${i} 0 ${f},0 ${r},${l}`,"Z"].join(" ")}else E=["M 400,200",`L ${m},${g}`,`A 150,150 0 ${f},1 ${v},${S}`,"Z"].join(" ");const A=(n+i)/2||105,b=e+A*Math.cos(h),N=a+A*Math.sin(h),_={dataPoint:t,index:s,startAngle:o,endAngle:u,midAngle:h,color:t.color||r[s%r.length],percentage:100*c,value:t.value,label:t.label,path:E,labelPosition:{x:b,y:N}};return o=u+l,_}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),v=d((()=>{if(!t.enableAnimations)return;h(!0),s(0);const e=t.animationDuration||1e3,a=Date.now(),n=()=>{const t=Date.now()-a,i=Math.min(t/e,1),r=1-Math.pow(1-i,3);s(r),i<1?requestAnimationFrame(n):h(!1)};requestAnimationFrame(n)}),[t.enableAnimations,t.animationDuration]),S=d(((e,a,i)=>{t.enableHoverEffects&&(n(e),void 0!==a&&void 0!==i&&g[e]&&(g[e].clientX=a,g[e].clientY=i))}),[t.enableHoverEffects,g]),f=d((()=>{n(null)}),[]),E=d((e=>{t.enableSelection&&o((t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a}))}),[t.enableSelection]),A=d((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const a=[];return!1!==t.showLabels&&a.push(e.label),t.showPercentages&&a.push(`${Math.round(e.percentage)}%`),t.showValues&&a.push(e.value.toString()),a.join(" - ")}),[t.labelFormatter,t.showLabels,t.showPercentages,t.showValues]),b=d(((e,a)=>{if(!a||!t.enableHoverEffects||!t.hoverOffset)return"";return`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`}),[t.enableHoverEffects,t.hoverOffset]),N=d((e=>r.has(e)),[r]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:a,selectedSlices:r,animationProgress:l,isAnimating:u,handleSliceHover:S,handleSliceLeave:f,handleSliceClick:E,startAnimation:v,formatLabel:A,getSliceTransform:b,isSliceSelected:N,setHoveredSlice:n,setSelectedSlices:o,setAnimationProgress:s,setIsAnimating:h}}Yr.displayName="MultiAxisChart";const Wr=p(l(((a,n)=>{var i,r,o,l,s;let{datasets:c=[],config:u={},pieOptions:h={},onDataPointClick:m,...p}=a;const g=(null===(i=c[0])||void 0===i?void 0:i.data)||[],{slices:v,handleSliceHover:S,handleSliceLeave:f,handleSliceClick:E,formatLabel:A,hoveredSlice:b,selectedSlices:N}=Hr(g,h),_=d((()=>v.length?v.map(((a,n)=>{const i=b===n,r=N.has(n);return t("g",{children:[e("path",{d:a.path,fill:a.color,className:`c-chart__pie-slice ${i?"c-chart__pie-slice--hovered":""} ${r?"c-chart__pie-slice--selected":""}`,onClick:()=>{E(n),null==m||m(a.dataPoint,0,n)},onMouseEnter:e=>{var t;const i=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),r=i?i.left+a.labelPosition.x:e.clientX,o=i?i.top+a.labelPosition.y:e.clientY;S(n,r,o)},onMouseLeave:f}),h.showLabels&&e("text",{x:a.labelPosition.x,y:a.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:A(a)})]},`slice-${n}`)})):null),[v,b,N,h.showLabels,E,S,f,A,m]);return t(yr,{ref:n,type:"pie",datasets:c,config:u,...p,children:[e("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",children:_()}),null!==b&&g[b]&&e(Or,{dataPoint:g[b],datasetLabel:null===(r=c[0])||void 0===r?void 0:r.label,datasetColor:null===(o=v[b])||void 0===o?void 0:o.color,position:{x:(null===(l=v[b])||void 0===l?void 0:l.clientX)||0,y:(null===(s=v[b])||void 0===s?void 0:s.clientY)||0},visible:!0})]})})));Wr.displayName="PieChart";const Qr=p(l(((a,n)=>{var r,o,l;let{datasets:s=[],config:c={},radarOptions:u={},onDataPointClick:h,...m}=a;const{gridLevels:p=5,showGrid:g=!0,showAxisLabels:v=!0,fillArea:S=!0,fillOpacity:f=.3,showDataPoints:E=!0,pointRadius:A=4,lineWidth:b=2,smooth:N=!1,scaleType:_="linear",scaleMin:C=0,scaleMax:T}=u,[L,y]=i(null),x=d((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;if(!r.length)return null;const l=n.width/2,s=n.height/2,c=.8*Math.min(l,s),d=r[0].data||[],u=2*Math.PI/d.length,h=T||Math.max(...r.flatMap((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)))||[]}))),m=C,_=h-m,L=[];if(g){for(let t=1;t<=p;t++){const a=c*t/p,n=`M ${d.map(((e,t)=>{const n=t*u-Math.PI/2;return{x:l+Math.cos(n)*a,y:s+Math.sin(n)*a}})).map((e=>`${e.x},${e.y}`)).join(" L ")} Z`;L.push(e("path",{d:n,fill:"none",className:"c-chart__radar-grid"},`grid-${t}`))}d.forEach(((t,a)=>{const n=a*u-Math.PI/2,i=l+Math.cos(n)*c,r=s+Math.sin(n)*c;L.push(e("line",{x1:l,y1:s,x2:i,y2:r,className:"c-chart__radar-axis"},`axis-${a}`))}))}const x=[];v&&d.forEach(((t,a)=>{const n=a*u-Math.PI/2,i=c+20,r=l+Math.cos(n)*i,o=s+Math.sin(n)*i;x.push(e("text",{x:r,y:o,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-label",children:t.label},`label-${a}`))}));const w=r.map(((t,a)=>{var n;const r=t.color||i[a],d=(null===(n=t.data)||void 0===n?void 0:n.map(((e,t)=>{const a=t*u-Math.PI/2,n=(e.value-m)/_,i=c*n;return{x:l+Math.cos(a)*i,y:s+Math.sin(a)*i,originalPoint:e,angle:a,radius:i}})))||[],h=N?I(d):`M ${d.map((e=>`${e.x},${e.y}`)).join(" L ")} Z`,p=[];return S&&p.push(e("path",{d:h,fill:r,className:"c-chart__radar-fill",style:{opacity:f}},`fill-${a}`)),p.push(e("path",{d:h,fill:"none",stroke:r,className:"c-chart__radar-line",style:{strokeWidth:b}},`line-${a}`)),E&&d.forEach(((t,n)=>{p.push(e("circle",{cx:t.x,cy:t.y,r:A,fill:r,className:"c-chart__radar-point",onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,t.originalPoint,a,n)},onMouseEnter:e=>{var i;const r=null===(i=e.currentTarget.ownerSVGElement)||void 0===i?void 0:i.getBoundingClientRect(),o=r?r.left+t.x:e.clientX,l=r?r.top+t.y:e.clientY;y({datasetIndex:a,pointIndex:n,clientX:o,clientY:l})},onMouseLeave:()=>y(null)},`point-${a}-${n}`))})),e("g",{children:p},`dataset-${a}`)}));return t("g",{children:[L,w,x]})}),[p,g,v,S,f,E,A,b,N,C,T]),I=d((e=>{if(e.length<3)return`M ${e.map((e=>`${e.x},${e.y}`)).join(" L ")} Z`;let t=`M ${e[0].x},${e[0].y}`;for(let a=0;a<e.length;a++){const n=e[a],i=e[(a+1)%e.length],r=e[0===a?e.length-1:a-1];t+=` C ${n.x+.1*(i.x-r.x)},${n.y+.1*(i.y-r.y)} ${i.x-.1*(e[(a+2)%e.length].x-n.x)},${i.y-.1*(e[(a+2)%e.length].y-n.y)} ${i.x},${i.y}`}return t+" Z"}),[]);return t(yr,{ref:n,type:"radar",datasets:s,config:c,...m,children:[e(Rr,{datasets:s,config:c,onDataPointClick:h,renderContent:x}),L&&e(Or,{dataPoint:null===(r=s[L.datasetIndex])||void 0===r||null===(r=r.data)||void 0===r?void 0:r[L.pointIndex],datasetLabel:null===(o=s[L.datasetIndex])||void 0===o?void 0:o.label,datasetColor:null===(l=s[L.datasetIndex])||void 0===l?void 0:l.color,position:{x:L.clientX,y:L.clientY},visible:!0})]})})));Qr.displayName="RadarChart";const Kr=p(l(((a,n)=>{let{datasets:l=[],config:s={},streamConfig:c={interval:1e3,maxDataPoints:100,autoScroll:!0,bufferSize:10},dataSource:u,websocketUrl:h,onDataUpdate:m,enablePerformanceMonitoring:p=!1,...g}=a;const[v,S]=i(l),[f,E]=i(!1),[A,b]=i({fps:0,updateTime:0,dataPoints:0}),N=r(null),_=r(null),C=r(0),T=r(Date.now()),L=r([]),y=d((()=>{if(!p)return;const e=Date.now(),t=e-T.current;if(t>=1e3){const a=Math.round(1e3*C.current/t);b((e=>({...e,fps:a,dataPoints:Cr(v).call(v,((e,t)=>{var a;return e+((null===(a=t.data)||void 0===a?void 0:a.length)||0)}),0)}))),C.current=0,T.current=e}C.current++}),[p,v]),x=d((()=>{if(0===L.current.length)return;const e=performance.now();S((e=>{const t=[...e];return L.current.forEach((e=>{e.forEach(((e,a)=>{t[a]||(t[a]={label:`Dataset ${a+1}`,data:[],color:`hsl(${60*a}, 70%, 50%)`});const n=t[a],i=n.data||[],r={...e,timestamp:e.timestamp||Date.now()};i.push(r),i.length>c.maxDataPoints&&i.splice(0,i.length-c.maxDataPoints),n.data=i}))})),t})),L.current=[];const t=performance.now();b((a=>({...a,updateTime:t-e}))),null==m||m(v),y()}),[c.maxDataPoints,m,v,y]),I=d((()=>{if(h)try{_.current=new WebSocket(h),_.current.onopen=()=>{E(!0)},_.current.onmessage=e=>{try{const t=JSON.parse(e.data);L.current.push(Array.isArray(t)?t:[t])}catch(e){}},_.current.onclose=()=>{E(!1)},_.current.onerror=e=>{E(!1)}}catch(e){}}),[h]),w=d((()=>{u&&(N.current=setInterval((async()=>{try{const e=await u();e&&e.length>0&&L.current.push(e)}catch(e){}}),c.interval),E(!0))}),[u,c.interval]),R=d((()=>{h?I():u&&w()}),[h,u,I,w]),O=d((()=>{E(!1),N.current&&(clearInterval(N.current),N.current=null),_.current&&(_.current.close(),_.current=null)}),[]);o((()=>{const e=setInterval(x,c.interval/4);return()=>clearInterval(e)}),[x,c.interval]),o((()=>((u||h)&&R(),()=>{O()})),[u,h,R,O]);const M=d((a=>{let{scales:n,colors:i,datasets:r,handlers:o}=a;return r.length?r.map(((a,r)=>{var l,s;const c=a.color||i[r],d=(null===(l=a.data)||void 0===l?void 0:l.map(((e,t)=>{var i;return{x:n.xScale(t,null===(i=a.data)||void 0===i?void 0:i.length),y:n.yScale(e.value),timestamp:e.timestamp}})))||[],u=d.length>1?`M ${d.map((e=>`${e.x},${e.y}`)).join(" L ")}`:"";return t("g",{children:[e("defs",{children:t("linearGradient",{id:`gradient-${r}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e("stop",{offset:"0%",stopColor:c,stopOpacity:"0.1"}),e("stop",{offset:"100%",stopColor:c,stopOpacity:"0.8"})]})}),e("path",{d:u,stroke:`url(#gradient-${r})`,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),null===(s=a.data)||void 0===s?void 0:s.map(((i,l)=>{var s,d;const u=n.xScale(l,null===(s=a.data)||void 0===s?void 0:s.length),h=n.yScale(i.value),m=l===((null===(d=a.data)||void 0===d?void 0:d.length)||0)-1;return t("g",{children:[m&&t("circle",{cx:u,cy:h,r:"8",fill:c,opacity:"0.3",children:[e("animate",{attributeName:"r",values:"4;12;4",dur:"2s",repeatCount:"indefinite"}),e("animate",{attributeName:"opacity",values:"0.8;0.1;0.8",dur:"2s",repeatCount:"indefinite"})]}),e("circle",{cx:u,cy:h,r:"3",fill:c,stroke:"white",strokeWidth:"1",onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,i,r,l)},style:{cursor:"pointer"}})]},`point-${l}`)}))]},`realtime-dataset-${r}`)})):null}),[]);return t(yr,{ref:n,type:"line",datasets:v,config:s,title:"Real-time Chart "+(f?"🔴 LIVE":"⏸️ PAUSED"),showToolbar:!0,enableRefresh:!0,onRefresh:R,...g,children:[e(Rr,{datasets:v,config:s,renderContent:M,enableRealTime:!0,enablePerformanceOptimization:!0}),p&&t("div",{style:{position:"absolute",top:"10px",right:"10px",background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"8px",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace"},children:[t("div",{children:["FPS: ",A.fps]}),t("div",{children:["Update: ",A.updateTime.toFixed(2),"ms"]}),t("div",{children:["Points: ",A.dataPoints]}),t("div",{children:["Status: ",f?"STREAMING":"STOPPED"]})]}),t("div",{style:{position:"absolute",bottom:"10px",left:"10px",display:"flex",gap:"8px"},children:[e("button",{onClick:f?O:R,style:{padding:"6px 12px",borderRadius:"4px",border:"none",background:f?"#ef4444":"#10b981",color:"white",cursor:"pointer",fontSize:"12px"},children:f?"Stop":"Start"}),e("button",{onClick:()=>S([]),style:{padding:"6px 12px",borderRadius:"4px",border:"none",background:"#6b7280",color:"white",cursor:"pointer",fontSize:"12px"},children:"Clear"})]})]})})));Kr.displayName="RealTimeChart";const Zr=p(l(((n,r)=>{var o,l,s;let{datasets:c=[],config:d={},scatterOptions:u={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:h,...m}=n;const[p,g]=i(null);return t(yr,{ref:r,type:"scatter",datasets:c,config:d,...m,children:[e(Rr,{datasets:c,config:d,interactive:u.enableHoverEffects,renderContent:n=>{let{scales:i,colors:r,datasets:o}=n;if(!o.length)return null;const l=[];return o.forEach(((a,n)=>{var o;const s=a.color||r[n%r.length];null===(o=a.data)||void 0===o||o.forEach(((r,o)=>{var c;const d=void 0!==r.x?i.padding.left+r.x/100*i.innerWidth:i.xScale(o,null===(c=a.data)||void 0===c?void 0:c.length),m=void 0!==r.y?i.padding.top+i.innerHeight-r.y/100*i.innerHeight:i.yScale(r.value);l.push(t("g",{children:[e("circle",{cx:d,cy:m,r:r.size||u.pointRadius||4,fill:r.color||s,className:"c-chart__scatter-point",onClick:()=>null==h?void 0:h(r,n,o),onMouseEnter:e=>{if(u.enableHoverEffects){var t;e.currentTarget.setAttribute("r",String(1.5*(r.size||u.pointRadius||4)));const a=null===(t=e.currentTarget.ownerSVGElement)||void 0===t?void 0:t.getBoundingClientRect(),i=a?a.left+d:e.clientX,l=a?a.top+m:e.clientY;g({datasetIndex:n,pointIndex:o,clientX:i,clientY:l})}},onMouseLeave:e=>{e.currentTarget.setAttribute("r",String(r.size||u.pointRadius||4)),g(null)}}),u.showLabels&&e("text",{x:d,y:m-(u.pointRadius||4)-5,textAnchor:"middle",className:"c-chart__scatter-label",children:r.label})]},`point-${n}-${o}`))}))})),e(a,{children:l})}}),p&&(null===(o=c[p.datasetIndex])||void 0===o||null===(o=o.data)||void 0===o?void 0:o[p.pointIndex])&&e(Or,{dataPoint:c[p.datasetIndex].data[p.pointIndex],datasetLabel:null===(l=c[p.datasetIndex])||void 0===l?void 0:l.label,datasetColor:null===(s=c[p.datasetIndex])||void 0===s?void 0:s.color,position:{x:p.clientX,y:p.clientY},visible:!0})]})})));Zr.displayName="ScatterChart";const jr=p(l(((a,n)=>{let{data:r=[],algorithm:o="squarified",colorConfig:l={scheme:"category"},showLabels:s=!0,showValues:u=!1,labelConfig:h={minSize:1e3,fontSize:12,color:"white"},borderConfig:m={width:1,color:"white",radius:2},animationConfig:p={enabled:!0,duration:750,easing:"ease-out"},onNodeClick:g,onNodeHover:v,config:S={},...f}=a;const[E,A]=i(null),[b,N]=i(null),[_,C]=i({x:0,y:0}),T=c((()=>{if(!r.length)return null;const e=new Map;r.forEach((t=>e.set(t.id,t)));const t=[],a=new Set,n=e=>{if(a.has(e.id))return e;a.add(e.id);const t=r.filter((t=>t.parent===e.id));var i;t.length>0&&(e.children=t.map((e=>n(e))),e.value=Cr(i=e.children).call(i,((e,t)=>e+t.value),0));return e};return r.forEach((a=>{a.parent&&e.has(a.parent)||t.push(n(a))})),1===t.length?t[0]:{id:"root",label:"Root",value:Cr(t).call(t,((e,t)=>e+t.value),0),children:t}}),[r]),L=d(((e,t,a)=>{if(e.color)return e.color;const{scheme:n,palette:i,valueRange:o}=l,s=i||["#3b82f6","#ef4444","#10b981","#f59e0b","#8b5cf6","#06b6d4","#84cc16","#f97316","#ec4899","#6366f1"];switch(n){case"category":default:return s[a%s.length];case"depth":const n=["#1e40af","#3b82f6","#60a5fa","#93c5fd","#dbeafe"];return n[Math.min(t,n.length-1)];case"value":if(o&&T){const t=Math.max(...r.map((e=>e.value))),a=Math.min(...r.map((e=>e.value))),n=(e.value-a)/(t-a);return`hsl(${220+100*n}, 70%, ${30+40*n}%)`}return s[0]}}),[l,r,T]);d(((e,t,a,n,i)=>{if(0===e.length)return;const r=Cr(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const r=e[0];return void(r&&(r.x=t,r.y=a,r.width=n,r.height=i))}const o=[...e].sort(((e,t)=>t.value-e.value)),l=e=>Math.max(e.width/e.height,e.height/e.width);let s=[],c=[...o],d=t,u=a,h=n,m=i;for(;c.length>0;){const e=c.shift();if(!e)break;s.push(e);const t=Cr(s).call(s,((e,t)=>e+t.value),0),a=t/r;let n,i;h>=m?(n=h*a,i=m):(n=h,i=m*a);let o=!1;if(c.length>0){const e=c[0];if(!e)break;const a=[...s,e],d=Cr(a).call(a,((e,t)=>e+t.value),0),u=d/r;let p,g;h>=m?(p=h*u,g=m):(p=h,g=m*u);const v=Math.max(...s.filter((e=>e)).map((e=>{const a=e.value/t;return l({width:h>=m?n:n*a,height:h>=m?i*a:i})})));o=Math.max(...a.filter((e=>e)).map((e=>{const t=e.value/d;return l({width:h>=m?p:p*t,height:h>=m?g*t:g})})))<=v}if(!o){let e=d,a=u;s.forEach((r=>{const o=r.value/t;h>=m?(r.x=e,r.y=a,r.width=n,r.height=m*o,a+=r.height):(r.x=e,r.y=a,r.width=h*o,r.height=i,e+=r.width)})),h>=m?(d+=n,h-=n):(u+=i,m-=i),s=[]}}}),[]);const y=c((()=>{if(!r.length)return[];const e=r.filter((e=>!e.children||0===e.children.length));Cr(e).call(e,((e,t)=>e+t.value),0);let t=0,a=0;const n=800/Math.ceil(Math.sqrt(e.length)),i=600/Math.ceil(Math.sqrt(e.length));return e.map(((e,r)=>{const o={id:e.id,label:e.label,value:e.value,color:L(e,0,r)||"transparent",x:t,y:a,width:n,height:i,depth:0,children:[],originalData:e};return t+=n,t>=800&&(t=0,a+=i),o}))}),[r,L]),x=d((e=>{N(e),null==g||g(e)}),[g]),I=d(((e,t)=>{A(e),null==v||v(e),t&&e&&(t.currentTarget.getBoundingClientRect(),C({x:t.clientX,y:t.clientY}))}),[v]),w=d((()=>y.length?e("g",{children:y.map((a=>{const n=E===a,i=b===a,r=a.width*a.height,o=s&&r>=(h.minSize||1e3);return t("g",{children:[e("rect",{x:a.x,y:a.y,width:a.width,height:a.height,fill:a.color,rx:m.radius||2,className:`c-chart__treemap-node ${n?"c-chart__treemap-node--hovered":""} ${i?"c-chart__treemap-node--selected":""} ${p.enabled?"c-chart__treemap-node--animated":""}`,onMouseEnter:e=>I(a,e),onMouseLeave:()=>I(null),onClick:()=>x(a)}),o&&t("g",{children:[e("text",{x:a.x+a.width/2,y:a.y+a.height/2-(u?8:0),textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",children:a.label}),u&&e("text",{x:a.x+a.width/2,y:a.y+a.height/2+12,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-value",children:a.value.toLocaleString()})]})]},a.id)}))}):null),[y,E,b,s,u,h,m,p,I,x]);return t(yr,{ref:n,type:"treemap",datasets:[],config:S,...f,children:[e("svg",{width:800,height:600,viewBox:"0 0 800 600",style:{width:"100%",height:"100%"},children:w()}),E&&t("div",{className:"c-chart__tooltip",style:{position:"fixed",left:_.x+10,top:_.y-10,transform:"translateY(-100%)",background:"var(--atomix-gray-9)",color:"white",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.2)",zIndex:1e3,pointerEvents:"none"},children:[e("div",{children:e("strong",{children:null==E?void 0:E.label})}),t("div",{children:["Value: ",null==E?void 0:E.value.toLocaleString()]})]})]})})));jr.displayName="TreemapChart";const qr=p(l(((a,n)=>{let{waterfallData:i=[],config:r={},waterfallOptions:o={},onDataPointClick:l,...s}=a;const{showConnectors:c=!0,connectorColor:u="#f9fafb",connectorStyle:h="dashed",showValues:m=!0,valuePosition:p="top",colors:g={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:v=.6,showCumulativeLine:S=!1,cumulativeLineColor:f="#3b82f6",animate:E=!0,animationDuration:A=1e3,animationDelay:b=100,valueFormatter:N=e=>e.toLocaleString(),showBaseline:_=!0,baselineColor:C="#f3f4f6"}=o,T=d((a=>{let{scales:n,colors:r,handlers:o}=a;if(!i.length)return null;const l=60,s=n.width-120,d=n.height-120;let A=0;const T=i.map(((e,t)=>{const a="total"===e.type||"subtotal"===e.type?0:A;let n;return"total"===e.type||"subtotal"===e.type?(n=e.value,A=e.value):(n=A+e.value,A=n),{...e,startValue:a,endValue:n,cumulativeValue:A,index:t}})),L=T.flatMap((e=>[e.startValue,e.endValue])),y=Math.min(0,...L),x=Math.max(...L)-y,I=s/i.length*v,w=s/i.length,R=e=>l+e*w+w/2,O=e=>l+d-(e-y)/x*d,M=[];if(_){const t=O(0);M.push(e("line",{x1:l,y1:t,x2:n.width-l,y2:t,stroke:C,strokeWidth:"2",opacity:"0.7"},"baseline"))}if(T.forEach(((t,a)=>{const n=R(a),i=Math.min(O(t.startValue),O(t.endValue)),r=Math.max(O(t.startValue),O(t.endValue)),l=r-i;let s=t.color;if(s||(s="total"===t.type?g.total:"subtotal"===t.type?g.subtotal:t.value>=0?g.positive:g.negative),M.push(e("rect",{x:n-I/2,y:i,width:I,height:Math.max(l,2),fill:s,rx:"4",className:"c-chart__waterfall-bar "+(E?"c-chart__waterfall-bar--animated":""),style:{animationDelay:E?a*b+"ms":"0ms"},onClick:()=>{var e;return null===(e=o.onDataPointClick)||void 0===e?void 0:e.call(o,t,0,a)}},`bar-${a}`)),m){let o=i,s=t.value;o="center"===p?i+l/2:"bottom"===p?r+15:i-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),M.push(e("text",{x:n,y:o,textAnchor:"middle",dominantBaseline:"center"===p?"middle":"auto",className:"c-chart__waterfall-value "+("center"===p?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:N(s)},`value-${a}`))}if(c&&a<T.length-1){const i=T[a+1];if(i){const r=O(t.endValue),o=O(i.startValue),l=R(a+1);if(Math.abs(t.endValue-i.startValue)>.01){const t="dashed"===h?"5,5":"dotted"===h?"2,2":"none";M.push(e("line",{x1:n+I/2,y1:r,x2:l-I/2,y2:o,stroke:u,strokeDasharray:t,className:"c-chart__waterfall-connector"},`connector-${a}`))}}}})),S){const t=T.map(((e,t)=>({x:R(t),y:O(e.cumulativeValue)}))),a=`M ${t.map((e=>`${e.x},${e.y}`)).join(" L ")}`;M.push(e("path",{d:a,fill:"none",stroke:f,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,a)=>{M.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:f,className:"c-chart__waterfall-cumulative-point"},`line-point-${a}`))}))}M.push(e("line",{x1:l,y1:n.height-l,x2:n.width-l,y2:n.height-l,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),M.push(e("line",{x1:l,y1:l,x2:l,y2:n.height-l,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"y-axis")),i.forEach(((t,a)=>{const i=R(a);M.push(e("text",{x:i,y:n.height-l+20,textAnchor:"middle",fontSize:"11",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${i}, ${n.height-l+20})`,children:t.label},`x-label-${a}`))}));for(let a=0;a<=5;a++){const n=y+a/5*x,i=O(n);M.push(t("g",{children:[e("line",{x1:55,y1:i,x2:l,y2:i,stroke:"var(--atomix-gray-4)",strokeWidth:"1"}),e("text",{x:50,y:i,textAnchor:"end",dominantBaseline:"middle",fontSize:"11",fill:"var(--atomix-gray-6)",children:N(n)})]},`y-tick-${a}`))}return e("g",{children:M})}),[i,c,u,h,m,p,v,S,f,E,A,b,N,_,C]),L=[{label:"Waterfall Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(yr,{ref:n,type:"waterfall",datasets:L,config:r,...s,children:e(Rr,{datasets:L,config:r,onDataPointClick:l,renderContent:T})})})));qr.displayName="WaterfallChart";const Xr=t=>{let{className:a=""}=t;const[n,r]=i("light");o((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?r(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&r("dark")}),[]),o((()=>{document.body.setAttribute("data-atomix-color-mode",n),localStorage.setItem("atomix-color-mode",n)}),[n]),o((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||r(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]);return e("button",{className:`c-color-mode-toggle ${a}`,onClick:()=>{r((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===n?"dark":"light"} mode`,title:`Switch to ${"light"===n?"dark":"light"} mode`,children:e("svg","light"===n?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}:{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})})})};Xr.displayName="ColorModeToggle";const $r=l(((a,r)=>{let{target:l,show:s=["days","hours","minutes","seconds"],separator:c=":",focused:d=!1,className:u="",onComplete:h}=a;const m="string"==typeof l?new Date(l):l,[p,g]=i((()=>new Date)),[v,S]=i(!1);o((()=>{if(v)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[v]);const f=m.getTime()-p.getTime(),{days:E,hours:A,minutes:b,seconds:N}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(f);o((()=>{f<=0&&!v&&(S(!0),h&&h())}),[f,v,h]);const _=[];return Oi(s).call(s,"days")&&_.push({label:"Days",value:E}),Oi(s).call(s,"hours")&&_.push({label:"Hours",value:A}),Oi(s).call(s,"minutes")&&_.push({label:"Minutes",value:b}),Oi(s).call(s,"seconds")&&_.push({label:"Seconds",value:N}),e("div",{ref:r,className:`c-countdown${d?" c-countdown--focused":""} ${u}`.trim(),children:_.map(((a,i)=>t(n.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:String(a.value).padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:a.label})]}),i<_.length-1&&e("span",{className:"c-countdown__separator",children:c})]},a.label)))})}));function Jr(e){let{data:t=[],columns:a=[],sortable:n=!1,paginated:r=!1,pageSize:l=10,onSort:s,initialSortConfig:u}=e;const[h,m]=i(u||null),[p,g]=i(1),[v,S]=i(""),f=d((e=>{if(!n)return;let t="asc";h&&h.key===e&&"asc"===h.direction&&(t="desc");const a={key:e,direction:t};m(a),s&&s(a)}),[n,h,s]),E=d((e=>{e<1||e>Math.ceil(t.length/l)||g(e)}),[t.length,l]),A=d((e=>{S(e),g(1)}),[]),b=c((()=>{if(!v)return t;const e=v.toLowerCase();return t.filter((t=>a.some((a=>{var n;const i=t[a.key];return null!=i&&Oi(n=String(i).toLowerCase()).call(n,e)}))))}),[t,a,v]),N=c((()=>h&&n?[...b].sort(((e,t)=>{const a=e[h.key],n=t[h.key];return null==a?"asc"===h.direction?-1:1:null==n?"asc"===h.direction?1:-1:"string"==typeof a&&"string"==typeof n?"asc"===h.direction?a.localeCompare(n):n.localeCompare(a):"asc"===h.direction?a>n?1:-1:a>n?-1:1})):b),[b,h,n]),_=c((()=>{if(!r)return N;const e=(p-1)*l;return N.slice(e,e+l)}),[N,r,p,l]),C=c((()=>r?Math.max(1,Math.ceil(N.length/l)):1),[N.length,r,l]);return o((()=>{g(1)}),[t]),o((()=>{p>C&&g(Math.max(1,C))}),[p,C]),{displayData:_,sortConfig:h,currentPage:p,totalPages:C,handleSort:f,handlePageChange:E,handleSearch:A}}function eo(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:a=t.variant,size:n=t.size,fullscreen:i=t.fullscreen,className:r=""}=e,o="c-spinner";return`${o} ${a?`${o}--${a}`:""} ${"md"!==n?`${o}--${n}`:""} ${i?`${o}--fullscreen`:""} ${r}`.trim()}}}$r.displayName="Countdown";const to=t=>{let{size:a="md",variant:n="primary",fullscreen:i=!1,className:r=""}=t;const{generateSpinnerClass:o}=eo({size:a,variant:n,fullscreen:i}),l=o({size:a,variant:n,fullscreen:i,className:r});return e("div",{className:l,role:"status",children:e("span",{className:G.VISUALLY_HIDDEN,children:"Loading..."})})};to.displayName="Spinner";const ao="...",no=(e,t)=>{const a=t-e+1;return Array.from({length:a},((t,a)=>a+e))},io=e=>{let{currentPage:t,totalPages:a,siblingCount:n=1,onPageChange:i}=e;const r=c((()=>{if(n+5>=a)return no(1,a);const e=Math.max(t-n,1),i=Math.min(t+n,a),r=e>2,o=i<a-2,l=a;if(!r&&o){return[...no(1,3+2*n),ao,a]}if(r&&!o){let e=no(a-(3+2*n)+1,a);return[1,ao,...e]}if(r&&o){let t=no(e,i);return[1,ao,...t,ao,l]}return[]}),[a,n,t]),o=e=>{e>=1&&e<=a&&e!==t&&i(e)};return{paginationRange:r,currentPage:t,totalPages:a,goToPage:o,nextPage:()=>{o(t+1)},prevPage:()=>{o(t-1)},firstPage:()=>{o(1)},lastPage:()=>{o(a)},DOTS:ao}},ro=t=>{let{type:a,onClick:n,disabled:i,label:r,iconName:o}=t;return e("li",{className:`c-pagination__item c-pagination__item--${a} ${i?"is-disabled":""}`,"aria-disabled":i,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:i,"aria-label":r,children:e(Wi,{name:o,size:"sm","aria-hidden":"true"})})})},oo=a=>{let{currentPage:n=q.currentPage,totalPages:i=q.totalPages,onPageChange:r,siblingCount:o=q.siblingCount,showFirstLastButtons:l=q.showFirstLastButtons,showPrevNextButtons:s=q.showPrevNextButtons,size:c=q.size,className:d="",ariaLabel:u="Pagination",glass:h}=a;const{paginationRange:m,goToPage:p,nextPage:g,prevPage:v,firstPage:S,lastPage:f}=io({currentPage:n,totalPages:i,siblingCount:o,onPageChange:r});if(0===n||m.length<2)return null;const E=e("nav",{className:`c-pagination c-pagination--${c} ${d}`,"aria-label":u,children:t("ul",{className:"c-pagination__items",children:[l&&e(ro,{type:"first",onClick:S,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),s&&e(ro,{type:"prev",onClick:v,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),m.map(((t,a)=>{if(t===ao)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},`dots-${a}`);const i=t===n;return e("li",{className:"c-pagination__item "+(i?"is-active":""),"aria-current":i?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>p(t),"aria-label":`Page ${t}`,"aria-current":i?"page":void 0,children:t})},t)})),s&&e(ro,{type:"next",onClick:g,disabled:n===i,label:"Go to next page",iconName:"CaretRight"}),l&&e(ro,{type:"last",onClick:f,disabled:n===i,label:"Go to last page",iconName:"SkipForward"})]})});if(h){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===h?t:{...t,...h};return e(Gi,{...a,children:E})}return E};oo.displayName="Pagination";const lo=a=>{let{data:n,columns:i,className:o,sortable:l=!1,filterable:s=!1,paginated:c=!1,pageSize:d=10,striped:u=!1,bordered:h=!1,dense:m=!1,loading:p=!1,emptyMessage:g="No data available",onRowClick:v,onSort:S,...f}=a;const E=r(null),{displayData:A,sortConfig:b,currentPage:N,totalPages:_,handleSort:C,handlePageChange:T,handleSearch:L}=Jr({data:n,columns:i,sortable:l,paginated:c,pageSize:d,onSort:S}),y=[j.base,u&&j.striped,h&&j.bordered,m&&j.dense,p&&j.loading,o].filter(Boolean).join(" ");return t("div",{className:j.container,...f,children:[s?e("div",{className:j.toolbar,children:e("div",{className:j.search,children:e("input",{type:"text",placeholder:"Search...",className:`${j.searchInput} c-input`,onChange:e=>L(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:j.tableWrapper,children:t("table",{ref:E,className:y,children:[e("thead",{className:j.header,children:e("tr",{children:i.map(((a,n)=>e("th",{className:`${j.headerCell} ${!1!==a.sortable&&l?j.sortable:""}`,onClick:()=>!1!==a.sortable&&l?C(a.key):null,"aria-sort":(null==b?void 0:b.key)===a.key?"asc"===b.direction?"ascending":"descending":void 0,children:t("div",{className:j.headerContent,children:[e("span",{children:a.title}),!1!==a.sortable&&l&&e("span",{className:j.sortIcon,children:(null==b?void 0:b.key)===a.key?"asc"===b.direction?e(Wi,{name:"CaretUp",size:"sm"}):e(Wi,{name:"CaretDown",size:"sm"}):null})]})},`header-${n}`)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:j.loadingCell,children:e("div",{className:j.loadingIndicator,children:e(to,{size:"md",variant:"primary"})})})})}):0===A.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:j.emptyCell,children:g})})}):e("tbody",{children:A.map(((t,a)=>e("tr",{className:j.row,onClick:v?()=>v(t):void 0,tabIndex:v?0:void 0,role:v?"button":void 0,children:i.map(((n,i)=>e("td",{className:j.cell,children:n.render?n.render(t[n.key],t):t[n.key]},`cell-${a}-${i}`)))},`row-${a}`)))})]})}),!c||_<=1?null:e("div",{className:j.pagination,children:e(oo,{currentPage:N,totalPages:_,onPageChange:T,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]})};function so(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function co(e,t){return new Date(e,t+1,0).getDate()}function uo(e,t){if(!e)return"";const a=e.getDate(),n=e.getMonth()+1,i=e.getFullYear();return t.replace("yyyy",i.toString()).replace("MM",n.toString().padStart(2,"0")).replace("M",n.toString()).replace("dd",a.toString().padStart(2,"0")).replace("d",a.toString())}function ho(){let{value:e,onChange:t,selectionMode:a="single",startDate:n,endDate:l,onRangeChange:s,format:c="MM/dd/yyyy",minDate:u,maxDate:h,inline:m=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[p,g]=i(m),[v,S]=i(e?uo(e,c):""),[f,E]=i(n&&l?`${uo(n,c)} - ${uo(l,c)}`:n?`${uo(n,c)} - Select end date`:""),[A,b]=i(e||n||new Date),[N,_]=i("days"),[C,T]=i(!n||n&&l?"start":"end"),L=r(null),y=r(null),x=new Date,I=A.getMonth(),w=A.getFullYear(),R=co(w,I),O=new Date(w,I,1).getDay();o((()=>{"single"===a?S(e?uo(e,c):""):(E(n&&l?`${uo(n,c)} - ${uo(l,c)}`:n?`${uo(n,c)} - Select end date`:""),T(!n||n&&l?"start":"end"))}),[e,n,l,c,a]);const M=d((e=>{const i=new Date(w,I,e);if(!(u&&i<u||h&&i>h))if("single"===a)t&&t(i),S(uo(i,c)),m||g(!1);else if("start"===C)s&&s({startDate:i,endDate:null}),E(`${uo(i,c)} - Select end date`),T("end");else{if(!n)return;i<n?(s&&s({startDate:i,endDate:n}),E(`${uo(i,c)} - ${uo(n,c)}`)):(s&&s({startDate:n,endDate:i}),E(`${uo(n,c)} - ${uo(i,c)}`)),m||g(!1),T("start")}}),[w,I,u,h,t,s,c,m,a,C,n]),D=d((()=>{b(new Date(w,I-1,1))}),[w,I]),k=d((()=>{b(new Date(w,I+1,1))}),[w,I]),B=d((()=>{b(new Date(w-1,I,1))}),[w,I]),P=d((()=>{b(new Date(w+1,I,1))}),[w,I]),z=d((()=>{_("months")}),[]),F=d((()=>{_("years")}),[]),U=d((e=>{b(new Date(w,e,1)),_("days")}),[w]),G=d((e=>{b(new Date(e,I,1)),_("months")}),[I]),V=d((()=>{const e=new Date;b(e),"single"===a?M(e.getDate()):b(new Date)}),[M,a]),Y=d((()=>{"single"===a?(S(""),t&&t(null)):(E(""),T("start"),s&&s({startDate:null,endDate:null}))}),[t,s,a]),H=d((e=>{if("single"===a){S(e.target.value);const a=new Date(e.target.value);isNaN(a.getTime())||(t&&t(a),b(a))}else{E(e.target.value);const t=e.target.value.split("-");if(2===t.length){var n,i;const e=null===(n=t[0])||void 0===n?void 0:n.trim(),a=null===(i=t[1])||void 0===i?void 0:i.trim();if(!e||!a)return;const r=new Date(e);if(isNaN(r.getTime())||b(r),e&&a){const t=new Date(e),n=new Date(a);isNaN(t.getTime())||isNaN(n.getTime())||s&&s({startDate:t,endDate:n})}}}}),[t,s,a]),W=d((()=>{m||g(!0)}),[m]),Q=d((e=>{L.current&&!L.current.contains(e.target)&&y.current&&!y.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!m?document.addEventListener("mousedown",Q):document.removeEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)})),[p,Q,m]);const K=d((()=>{const e=[],t=co(0===I?w-1:w,0===I?11:I-1);for(let a=O-1;a>=0;a--)e.push({day:t-a,month:0===I?11:I-1,year:0===I?w-1:w,isCurrentMonth:!1});for(let t=1;t<=R;t++)e.push({day:t,month:I,year:w,isCurrentMonth:!0});const a=42-e.length;for(let t=1;t<=a;t++)e.push({day:t,month:11===I?0:I+1,year:11===I?w+1:w,isCurrentMonth:!1});return e}),[R,O,I,w]),Z=d((()=>{const e=[];for(let t=0;t<12;t++)e.push({month:t,name:so(t)});return e}),[]),j=d((()=>{const e=[],t=w-6;for(let a=0;a<12;a++)e.push(t+a);return e}),[w]),q=d(((e,t,a)=>function(e,t,a){return!(!e||t&&e<t||a&&e>a)}(new Date(e,t,a),u,h)),[u,h]),X=d(((t,i,r)=>{if("single"===a)return!!e&&(e.getFullYear()===t&&e.getMonth()===i&&e.getDate()===r);if(!n&&!l)return!1;if(n&&!l)return n.getFullYear()===t&&n.getMonth()===i&&n.getDate()===r;if(n&&l){const e=n.getFullYear()===t&&n.getMonth()===i&&n.getDate()===r,a=l.getFullYear()===t&&l.getMonth()===i&&l.getDate()===r;return e||a}return!1}),[e,a,n,l]),$=d(((e,t,i)=>{if("range"!==a||!n||!l)return!1;const r=new Date(e,t,i);return r>n&&r<l}),[a,n,l]),J=d(((e,t,a)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===a),[x]),ee=d((e=>{const t=new Date(e.valueOf()),a=(e.getDay()+6)%7;t.setDate(t.getDate()-a+3);const n=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((n-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:v,rangeInputValue:f,viewDate:A,viewMode:N,currentMonth:I,currentYear:w,selectionMode:a,rangeSelectionState:C,datePickerRef:L,inputRef:y,startDate:n,endDate:l,setIsOpen:g,handleDateSelect:M,handlePrevMonth:D,handleNextMonth:k,handlePrevYear:B,handleNextYear:P,handleTodayClick:V,handleClear:Y,handleInputChange:H,handleInputFocus:W,switchToMonthView:z,switchToYearView:F,selectMonth:U,selectYear:G,generateDays:K,generateMonths:Z,generateYears:j,isDateSelectable:q,isDateSelected:X,isDateInSelectedRange:$,isToday:J,getWeekNumber:ee}}lo.displayName="DataTable";const mo=l(((n,i)=>{let{value:r,onChange:o,selectionMode:l="single",startDate:s,endDate:c,onRangeChange:d,format:u="MM/dd/yyyy",minDate:h,maxDate:m,placeholder:p="Select date...",disabled:v=!1,readOnly:S=!1,clearable:f=!0,showTodayButton:E=!0,showWeekNumbers:A=!1,inline:b=!1,id:N,name:_,className:C="",placement:T="bottom-start",inputClassName:L="",size:y="md",glass:x,...I}=n;const{isOpen:w,inputValue:R,rangeInputValue:O,viewMode:M,currentMonth:D,currentYear:k,selectionMode:B,rangeSelectionState:P,datePickerRef:z,inputRef:F,startDate:U,endDate:G,setIsOpen:V,handleInputChange:Y,handleInputFocus:H,handleClear:W,handleDateSelect:Q,handleTodayClick:K,handlePrevMonth:Z,handleNextMonth:j,handlePrevYear:q,handleNextYear:X,switchToMonthView:$,switchToYearView:J,selectMonth:ee,selectYear:te,generateDays:ae,generateMonths:ne,generateYears:ie,isDateSelectable:re,isDateSelected:oe,isDateInSelectedRange:le,isToday:se,getWeekNumber:ce}=ho({value:r,onChange:o,selectionMode:l,startDate:s,endDate:c,onRangeChange:d,minDate:h,maxDate:m,format:u,inline:b});g(i,(()=>({open:()=>V(!0),close:()=>V(!1),clear:W,focus:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.focus()}})));const de=`c-datepicker ${C} ${b?"c-datepicker--inline":""}`.trim(),ue=`c-datepicker__input c-input c-input--${y} ${L}`.trim(),he=N||`datepicker-${Math.random().toString(36).substring(2,9)}`,me=`${he}-calendar`,pe="single"===l?R:O,ge=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",ve=()=>{},Se=()=>{},fe=()=>{},Ee=()=>t(a,{children:[t("div",{className:"c-datepicker__header",children:["days"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:q,"aria-label":"Previous year",children:e(Wi,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:Z,"aria-label":"Previous month",children:e(Wi,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:$,"aria-label":`${ge(D)} ${k}`,children:[ge(D)," ",k]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:j,"aria-label":"Next month",children:e(Wi,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:X,"aria-label":"Next year",children:e(Wi,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:q,"aria-label":"Previous year",children:e(Wi,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":`Year ${k}`,children:k}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:X,"aria-label":"Next year",children:e(Wi,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===M&&t(a,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:ve,"aria-label":"Previous decade",children:e(Wi,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:fe,children:[ie()[0]," - ",ie()[ie().length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:Se,"aria-label":"Next decade",children:e(Wi,{name:"CaretDoubleRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===M&&t(a,{children:[t("div",{className:"c-datepicker__weekdays"+(A?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[A&&e("div",{className:"c-datepicker__weekday",children:"Wk"}),["Su","Mo","Tu","We","Th","Fr","Sa"].map((t=>e("div",{className:"c-datepicker__weekday",role:"columnheader",children:t},t)))]}),e("div",{className:"c-datepicker__days"+(A?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],a=ae();for(let n=0;n<a.length;n++){const i=a[n];if(!i)continue;const r=new Date(i.year,i.month,i.day),o=re(i.year,i.month,i.day),l=oe(i.year,i.month,i.day),s=se(i.year,i.month,i.day),c=le(i.year,i.month,i.day);if(A&&n%7==0){const a=ce(r);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:a},`weeknumber-${Math.floor(n/7)}`))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${i.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${l?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${s?"c-datepicker__day--today":""}\n ${o?"":"c-datepicker__day--disabled"}`,onClick:()=>o&&Q(i.day),disabled:!o,tabIndex:i.isCurrentMonth?0:-1,"aria-label":r.toLocaleDateString(),"aria-selected":l?"true":"false",role:"gridcell",children:i.day},`day-${n}`))}return t})()})]}),"months"===M&&e("div",{className:"c-datepicker__months",role:"grid",children:ne().map(((t,a)=>{const n=r&&r.getMonth()===t.month&&r.getFullYear()===k;return e("button",{type:"button",className:"c-datepicker__month "+(n?"c-datepicker__month--selected":""),onClick:()=>ee(t.month),"aria-selected":n?"true":"false",role:"gridcell",children:t.name.substring(0,3)},`month-${a}`)}))}),"years"===M&&e("div",{className:"c-datepicker__years",role:"grid",children:ie().map(((t,a)=>{const n=r&&r.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(n?"c-datepicker__year--selected":""),onClick:()=>te(t),"aria-selected":n?"true":"false",role:"gridcell",children:t},`year-${a}`)}))})]}),"days"===M&&t("div",{className:"c-datepicker__footer",children:["range"===l&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===P?"start":"end"," date"]}),E&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:K,"aria-label":"Go to today",children:"Today"}),!b&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>V(!1),"aria-label":"Close calendar",children:"Close"})]})]});return t("div",{className:de,ref:z,...I,children:[!b&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:he,name:_,ref:F,type:"text",className:ue,placeholder:"single"===l?p:"start"===P?"Select start date...":U?`${uo(U,u)} - Select end date...`:"Select date range...",value:pe,onChange:Y,onFocus:H,disabled:v,readOnly:S,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":me}),f&&pe&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:W,"aria-label":"Clear date",children:e(Wi,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(Wi,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(w||b)&&e(a,{children:e("div",x?{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${T} c-datepicker__calendar--glass`,role:"dialog","aria-modal":b?void 0:"true","aria-label":"Date picker",children:e(Gi,{...!0===x?{displacementScale:50,blurAmount:3,saturation:160,aberrationIntensity:0,cornerRadius:12,overLight:!1,elasticity:0,mode:"standard"}:x,children:e("div",{className:"c-datepicker__glass-content",children:Ee()})})}:{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${T}`,role:"dialog","aria-modal":b?void 0:"true","aria-label":"Date picker",children:Ee()})})]})}));mo.displayName="DatePicker";const po=v({isOpen:!1,close:()=>{},id:"",trigger:"click"}),go=a=>{let{children:n,menu:l,placement:s="bottom-start",trigger:c="click",offset:u=ce.DEFAULTS.OFFSET,isOpen:h,onOpenChange:m,closeOnClickOutside:p=!0,closeOnEscape:g=!0,maxHeight:v,minWidth:S=ce.DEFAULTS.MIN_WIDTH,variant:f,className:E="",glass:A,...b}=a;const[N,_]=i(!1),C=void 0!==h,T=C?h:N,L=r(null),y=r(null),x=r(null),I=r(`dropdown-${Math.random().toString(36).substring(2,9)}`).current,w=d((e=>{C||_(e),m&&m(e)}),[C,m]),R=d((()=>w(!T)),[T,w]),O=d((()=>{w(!1),setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),0)}),[w]);o((()=>{if(!T||!p)return;const e=e=>{L.current&&!L.current.contains(e.target)&&O()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[T,p,O]),o((()=>{if(!T||!g)return;const e=e=>{"Escape"===e.key&&O()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[T,g,O]);const M=d((e=>{var t,a;if(!x.current)return;const n=x.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!n.length)return;const i=Array.from(n).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":var r,o;if(e.preventDefault(),i<n.length-1)null===(r=n[i+1])||void 0===r||r.focus();else null===(o=n[0])||void 0===o||o.focus();break;case"ArrowUp":var l,s;if(e.preventDefault(),i>0)null===(l=n[i-1])||void 0===l||l.focus();else null===(s=n[n.length-1])||void 0===s||s.focus();break;case"Home":e.preventDefault(),null===(t=n[0])||void 0===t||t.focus();break;case"End":e.preventDefault(),null===(a=n[n.length-1])||void 0===a||a.focus()}}),[]),D=d((e=>{"click"===c&&(e.preventDefault(),e.stopPropagation(),R())}),[c,R]),k=d((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||T?"Escape"===e.key&&T&&(e.preventDefault(),O()):(e.preventDefault(),w(!0),"ArrowDown"===e.key&&x.current&&setTimeout((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.querySelector('[role="menuitem"]');null==t||t.focus()}),100))}),[T,w,O]),B=d((()=>{"hover"===c&&w(!0)}),[c,w]),P=["c-dropdown","click"===c?"c-dropdown--onclick":"",f?`c-dropdown--${f}`:"",T?"is-open":"",A?"c-dropdown--glass":"",E].filter(Boolean).join(" "),z={};v&&(z.maxHeight=v),void 0!==S&&(z.minWidth="number"==typeof S?`${S}px`:S);const F=e("div",{className:"c-dropdown__menu-inner",style:z,children:e(po.Provider,{value:{isOpen:T,close:O,id:I,trigger:c},children:e("ul",{className:"c-dropdown__menu "+(A?"c-dropdown__menu--glass":""),children:l})})});return t("div",{ref:L,className:P,onMouseEnter:"hover"===c?B:void 0,...b,children:[e("div",{ref:y,className:"c-dropdown__toggle",onClick:D,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":T,"aria-controls":I,tabIndex:0,children:n}),e("div",{ref:x,id:I,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${T?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!T,onKeyDown:M,children:A?(()=>{const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:12,mode:"shader"},a=!0===A?t:{...t,...A};return e(Gi,{...a,style:{position:"absolute",width:"100%",height:"100%"},children:F})})():F})]})};function vo(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[a,n]=i(t.isOpen||!1),l=r(null),s=r(null),c=d((()=>{if(!l.current||"push"!==t.mode)return;const{position:e}=t,a="top"===e||"bottom"===e?l.current.clientHeight:l.current.clientWidth;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[n]=`${a}px`,document.body.classList.add("is-pushed")}),[t.mode,t.position]),u=d((()=>{if("push"!==t.mode)return;const{position:e}=t;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a=`padding${e.charAt(0).toUpperCase()+e.slice(1)}`}document.body.style[a]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),h=d((()=>{if(n(!0),document.body.classList.add("is-edgepanel-open"),l.current){const{mode:e}=t;if("none"!==e){l.current.classList.add("is-animating"),l.current.offsetHeight;const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),Z.ANIMATION_DURATION)}l.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=d((()=>{if(l.current){const{position:e,mode:a}=t;if("none"!==a){l.current.classList.add("is-animating-out");const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),Z.ANIMATION_DURATION)}l.current.style.transform=e?Z.TRANSFORM_VALUES[e]:"","push"===t.mode&&u();setTimeout((()=>{n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===a?0:Z.ANIMATION_DURATION)}else n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,u]),p=d((e=>{t.closeOnEscape&&"Escape"===e.key&&a&&m()}),[m,t.closeOnEscape,a]),g=d((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&m()}),[m,t.closeOnBackdropClick]);return o((()=>(a&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[a,p,t.closeOnEscape]),o((()=>{if(l.current){const{position:e,mode:n}=t;a||"slide"!==n&&"push"!==n||!e||(l.current.style.transform=Z.TRANSFORM_VALUES[e])}}),[t.mode,t.position,a]),o((()=>{void 0!==t.isOpen&&t.isOpen!==a&&(t.isOpen?h():m())}),[t.isOpen,m,a,h]),{isOpen:a,containerRef:l,backdropRef:s,generateEdgePanelClass:e=>{const{position:n=t.position,className:i="",isOpen:r}=e,o=Z.CLASSES.BASE;return`${o} ${n?`${o}--${n}`:""} ${r??a?Z.CLASSES.IS_OPEN:""} ${i}`.trim()},openPanel:h,closePanel:m,handleBackdropClick:g}}go.displayName="Dropdown";const So=a=>{let{title:n,children:i,position:r="start",mode:o="slide",isOpen:l=!1,onOpenChange:s,backdrop:c=!0,closeOnBackdropClick:d=!0,closeOnEscape:u=!0,className:h=""}=a;const{isOpen:m,containerRef:p,backdropRef:g,generateEdgePanelClass:v,closePanel:S,handleBackdropClick:f}=vo({position:r,mode:o,isOpen:l,onOpenChange:s,backdrop:c,closeOnBackdropClick:d,closeOnEscape:u}),E=v({position:r,isOpen:l,className:h});return m||!1!==l?t("div",{className:E,"data-position":r,"data-mode":o,children:[c&&e("div",{ref:g,className:"c-edge-panel__backdrop",onClick:f}),t("div",{ref:p,className:"c-edge-panel__container",children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:n}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:S,"aria-label":"Close panel",children:e(Wi,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:i})]})]}):null};So.displayName="EdgePanel";const fo="c-checkbox",Eo="is-error",Ao="is-valid",bo="is-disabled",No="c-checkbox--mixed";function _o(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},a=r(null);o((()=>{a.current&&(a.current.indeterminate=Boolean(t.indeterminate))}),[t.indeterminate]);return{defaultProps:t,generateCheckboxClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:i=t.valid,indeterminate:r=t.indeterminate,className:o=""}=e;let l="";n?l=Eo:i&&(l=Ao);return`${fo} ${l} ${a?bo:""} ${r?No:""} ${o}`.trim()},checkboxRef:a}}const Co=a=>{let{label:n,checked:i=!1,onChange:r,className:o="",disabled:l=!1,required:s=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:v,glass:S}=a;const{generateCheckboxClass:f,checkboxRef:E}=_o({indeterminate:p,disabled:l,invalid:h,valid:m}),A=f({className:`${o} ${S?"c-checkbox--glass":""}`.trim(),disabled:l,invalid:h,valid:m,indeterminate:p}),b=t("div",{className:A,children:[e("input",{ref:E,type:"checkbox",className:"c-checkbox__input",checked:i,onChange:r,disabled:l,required:s,id:c,name:d,value:u,"aria-label":n?void 0:g,"aria-describedby":v,"aria-invalid":h}),n&&e("label",{className:"c-checkbox__label",htmlFor:c,children:n})]});if(S){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},a=!0===S?t:{...t,...S};return e(Gi,{...a,children:b})}return b};function To(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:a=t.disabled,className:n=""}=e,i=a?$.CLASSES.DISABLED:"";return`${$.CLASSES.BASE} ${i} ${n}`.trim()},handleSubmit:e=>a=>{a.preventDefault(),!t.disabled&&e&&e(a)},handleReset:e=>a=>{!t.disabled&&e&&e(a)}}}Co.displayName="Checkbox";const Lo=t=>{let{children:a,onSubmit:n,onReset:i,className:r="",disabled:o=!1,id:l,method:s="post",encType:c,noValidate:d=!1,autoComplete:u="on"}=t;const{generateFormClass:h,handleSubmit:m,handleReset:p}=To({disabled:o}),g=h({className:r,disabled:o});return e("form",{id:l,className:g,onSubmit:m(n),onReset:p(i),method:s,encType:c,noValidate:d,autoComplete:u,children:a})};function yo(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,l="md"===a?"":"sm"===a?J.CLASSES.SMALL:J.CLASSES.LARGE,s=i?J.CLASSES.INVALID:r?J.CLASSES.VALID:"",c=n?J.CLASSES.DISABLED:"";return`${J.CLASSES.BASE} ${l} ${s} ${c} ${o}`.trim()}}}Lo.displayName="Form";const xo=a=>{let{children:n,label:i,helperText:r,htmlFor:o,className:l="",disabled:s=!1,required:c=!1,invalid:d=!1,valid:u=!1,size:h="md"}=a;const{generateFormGroupClass:m}=yo({size:h,disabled:s,invalid:d,valid:u}),p=m({className:l,disabled:s,invalid:d,valid:u,size:h});return t("div",{className:p,children:[i&&t("label",{className:"c-form-group__label",htmlFor:o,children:[i,c&&e("span",{className:"c-form-group__required",children:"*"})]}),e("div",{className:"c-form-group__field",children:n}),r&&e("div",{className:"c-form-group__helper",children:r})]})};function Io(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:l="",type:s}=e,c="md"===a?"":"sm"===a?ee.CLASSES.SMALL:ee.CLASSES.LARGE,d=n?`c-input--${n}`:"",u="textarea"===s?"c-input--textarea":"";let h="";r?h=ee.CLASSES.INVALID:o&&(h=ee.CLASSES.VALID);const m=i?ee.CLASSES.DISABLED:"";return`${ee.CLASSES.BASE} ${c} ${d} ${u} ${h} ${m} ${l}`.trim()}}}xo.displayName="FormGroup";const wo=l(((t,a)=>{let{type:n="text",value:i,onChange:r,onBlur:o,onFocus:l,placeholder:s,className:c="",disabled:d=!1,required:u=!1,readOnly:h=!1,id:m,name:p,autoComplete:g,autoFocus:v=!1,size:S="md",variant:f,invalid:E=!1,valid:A=!1,maxLength:b,minLength:N,pattern:_,min:C,max:T,step:L,ariaLabel:y,ariaDescribedBy:x,glass:I}=t;const{generateInputClass:w}=Io({size:S,variant:f,disabled:d,invalid:E,valid:A}),R=w({className:`${c} ${I?"c-input--glass":""}`.trim(),size:S,variant:f,disabled:d,invalid:E,valid:A,type:n}),O=e("input",{ref:a,type:n,className:R,value:i,onChange:r,onBlur:o,onFocus:l,placeholder:s,disabled:d,required:u,readOnly:h,id:m,name:p,autoComplete:g,autoFocus:v,maxLength:b,minLength:N,pattern:_,min:C,max:T,step:L,"aria-label":y,"aria-describedby":x,"aria-invalid":E,style:I?{}:void 0});if(I){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},a=!0===I?t:{...t,...I};return e(Gi,{...a,children:O})}return O}));function Ro(e){const t=r(null),a=r(null),n=r(null),i={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},l=!!i.backgroundImageSrc,s=!!i.imageSrc,c=s&&"center"!==i.alignment,d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;if(!e)return;const a=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const i=()=>{const t=window.pageYOffset*a,n=e.querySelector(D.SELECTORS.BG);n&&(n.style.transform=`translateY(${t}px)`)};n.current=i,window.addEventListener("scroll",i),i()},u=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(D.SELECTORS.BG);t&&(t.style.transform=""),n.current&&(window.removeEventListener("scroll",n.current),n.current=null)};o((()=>{const e=t.current;return e&&i.parallax&&l&&d(e,i.parallaxIntensity),()=>{e&&n.current&&u(e)}}),[i.parallax,i.parallaxIntensity,l]);return{generateHeroClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=[D.SELECTORS.HERO.replace(".","")];return"center"===i.alignment?t.push(D.CLASSES.CENTER):"right"===i.alignment?t.push(D.CLASSES.RIGHT):"left"===i.alignment&&t.push(D.CLASSES.LEFT),i.fullViewportHeight&&t.push(D.CLASSES.FULL_VH),i.parallax&&t.push("c-hero--parallax"),i.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:function(){const e=[`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.imageColSize||7}`];return"left"===i.alignment&&e.push("u-mt-5 u-mt-md-0"),e.join(" ")},generateContentColClass:function(){return`o-grid__col o-grid__col--md-${arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.contentColSize||5}`},hasBackgroundImage:l,hasForegroundImage:s,useGridLayout:c,heroRef:t,videoRef:a,applyParallaxEffect:d,removeParallaxEffect:u}}function Oo(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const a=[Y.SELECTORS.RIVER.replace(".","")];return t.center&&a.push(Y.CLASSES.CENTER),t.breakout&&a.push(Y.CLASSES.BREAKOUT),t.reverse&&a.push(Y.CLASSES.REVERSE),e&&a.push(e),a.join(" ")},generateContentClass:()=>Y.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>Y.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function Mo(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[a,n]=i(t.expanded||!1);return{defaultProps:t,isExpanded:a,setIsExpanded:n,generateNavbarClass:e=>{const{position:a=t.position,variant:n,collapsible:i=t.collapsible,className:r=""}=e;return`c-navbar ${"static"!==a?`c-navbar--${a}`:""} ${n?`c-navbar--${n}`:""} ${i?"c-navbar--collapsible":""} ${r}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!a;n(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:a}}function Do(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:a=t.alignment,variant:n=t.variant,className:i=""}=e;return`c-nav ${"start"!==a?`c-nav--${a}`:""} ${"default"!==n?`c-nav--${n}`:""} ${i}`.trim()}}}function ko(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:a=t.dropdown,megaMenu:n=t.megaMenu,active:i=t.active,disabled:r=t.disabled,className:o=""}=e;return`c-nav__item ${a&&!n?W.SELECTORS.DROPDOWN.replace(".",""):""} ${n?"c-nav__item--mega-menu":""} ${i?W.CLASSES.ACTIVE:""} ${r?W.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:function(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`c-nav__link ${arguments.length>0&&void 0!==arguments[0]&&arguments[0]?W.CLASSES.ACTIVE:""} ${e?"c-nav__link--disabled":""} ${t}`.trim()},handleClick:e=>a=>{!t.disabled&&e?e():a.preventDefault()}}}function Bo(e){const t={collapsible:!0,isOpen:!1,...e},[a,n]=i(t.isOpen||!1),l=r(null),s=r(null);o((()=>{void 0!==t.isOpen&&n(t.isOpen)}),[t.isOpen]),o((()=>{const e=()=>{const e=window.innerWidth<768;if(!e&&t.collapsible)"function"==typeof t.onToggle?t.onToggle(!0):n(!0),l.current&&(l.current.style.height="auto");else if(e&&l.current&&s.current){const e=void 0!==t.isOpen?t.isOpen:a;l.current.style.height=e?`${s.current.scrollHeight}px`:"0px"}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t.collapsible,t.isOpen,t.onToggle,a]),o((()=>{if(window.innerWidth<768&&l.current&&s.current&&t.collapsible){const e=void 0!==t.isOpen?t.isOpen:a;l.current.style.height=e?`${s.current.scrollHeight}px`:"0px"}}),[t.isOpen,a,t.collapsible]);const c=()=>void 0!==t.isOpen?t.isOpen:a;return{defaultProps:t,isOpenState:c(),wrapperRef:l,innerRef:s,generateSideMenuClass:e=>{const{className:t="",isOpen:a=!1}=e,n=a?Q.CLASSES.IS_OPEN:"";return`${Q.CLASSES.BASE} ${n} ${t}`.trim()},generateWrapperClass:()=>Q.CLASSES.WRAPPER,handleToggle:()=>{if(t.disabled)return;const e=void 0!==t.isOpen?!t.isOpen:!a;"function"==typeof t.onToggle?t.onToggle(e):n(e)},getCurrentOpenState:c}}function Po(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:a=t.disabled,className:n=""}=t,i=e?Q.CLASSES.ACTIVE:"",r=a?Q.CLASSES.DISABLED:"";return`${Q.CLASSES.LINK} ${i} ${r} ${n}`.trim()},handleClick:e=>a=>{t.disabled?a.preventDefault():e&&e(a)}}}function zo(e,t){return e.classList.contains(t)}wo.displayName="Input";const Fo={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function Uo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const a=Fo[e]||"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${a}"></path>\n </svg>`}function Go(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Vo(e){const t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return t?t[1]:null}function Yo(e){return/(?:youtube\.com|youtu\.be)/.test(e)}var Ho=Object.freeze({__proto__:null,addClass:function(e,t){zo(e,t)||e.classList.add(t)},cn:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).flat().map((e=>String(e).trim())).filter(Boolean).join(" ")},createIconElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const n=document.createElement("span");return n.className=a||"c-icon",n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.innerHTML=Uo(e,t),n},createPhosphorIcon:Uo,extractYouTubeId:Vo,generateUUID:Go,getAvailableIcons:function(){return Object.keys(Fo)},hasClass:zo,isYouTubeUrl:Yo,removeClass:function(e,t){zo(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,a){e.classList.toggle(t,a)}});function Wo(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[a,n]=i(t.items||[]),[r,o]=i(""),l=e=>{if(!e.trim())return null;const t={id:Go(),text:e.trim(),completed:!1};return n((e=>[...e,t])),o(""),t};return{items:a,inputText:r,setInputText:o,addTodo:l,toggleTodo:e=>{let t=null;return n((a=>a.map((a=>a.id===e?(t={...a,completed:!a.completed},t):a)))),t},deleteTodo:e=>{const t=a.length;return n((t=>t.filter((t=>t.id!==e)))),a.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!r.trim())return;const a=l(r);a&&t&&t(a.text)},generateTodoClasses:e=>{const{size:a=t.size,className:n="",disabled:i=!1}=e,r="md"===a?"":`c-todo--${a}`,o=i?"c-todo--disabled":"";return`${X.CLASSES.BASE} ${r} ${o} ${n}`.trim()},generateItemClasses:e=>{const t=e.completed?X.CLASSES.COMPLETED:"";return`${X.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?a:a.filter((e=>!e.completed))}}}function Qo(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:i=t.valid,className:r=""}=e;let o="";n?o=te.CLASSES.INVALID:i&&(o=te.CLASSES.VALID);const l=a?te.CLASSES.DISABLED:"";return`${te.CLASSES.BASE} ${o} ${l} ${r}`.trim()}}}function Ko(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e,l="md"===a?"":"sm"===a?ne.CLASSES.SMALL:ne.CLASSES.LARGE;let s="";i?s=ne.CLASSES.INVALID:r&&(s=ne.CLASSES.VALID);const c=n?ne.CLASSES.DISABLED:"";return`${ne.CLASSES.BASE} ${l} ${s} ${c} ${o}`.trim()}}}function Zo(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:i=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:l=""}=e,s="md"===a?"":"sm"===a?ie.CLASSES.SMALL:ie.CLASSES.LARGE,c=n?`c-input--${n}`:"";let d="";r?d=ie.CLASSES.INVALID:o&&(d=ie.CLASSES.VALID);const u=i?ie.CLASSES.DISABLED:"";return`${ie.CLASSES.BASE} ${s} ${c} ${d} ${u} ${l}`.trim()}}}function jo(e){const{slides:t,slidesToShow:a=1,spaceBetween:n=0,loop:l=!1,initialSlide:s=0,direction:u="horizontal",speed:h=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:v}=e,S=r(null),f=r(null),E=r(!1),A=r(null),[b,N]=i(!1),[_,C]=i(s),[T,L]=i(0),[y,x]=i(!1),[I,w]=i(0),[R,O]=i(!1),[M,D]=i(0),[k,B]=i(0),P=c((()=>0===I?0:(I-n*(a-1))/a),[I,n,a]),z=c((()=>{if(!l||0===t.length)return t;return[...t.map(((e,t)=>({...e,id:`set1-${e.id||t}`}))),...t.map(((e,t)=>({...e,id:`set2-${e.id||t}`}))),...t.map(((e,t)=>({...e,id:`set3-${e.id||t}`})))]}),[t,l]),F=t.length,U=c((()=>0===P?0:-T*P+k),[P,T,k]);o((()=>{if(!g)return A.current&&(clearInterval(A.current),A.current=null),void N(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:n=3e3,pauseOnMouseEnter:i=!1,disableOnInteraction:r=!1,reverseDirection:o=!1}=e;A.current&&clearInterval(A.current),A.current=setInterval((()=>{C((e=>{if(y)return e;let n;if(r&&A.current&&(clearInterval(A.current),A.current=null,N(!1)),n=l?(e+1)%t.length:Math.min(e+1,t.length-a),o){const a=l?0===e?t.length-1:e-1:Math.max(e-1,0);return L(l?t.length+a:a),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(a)}),h),a}return L(l?t.length+n:n),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(n),l&&n>=2*t.length&&(E.current=!0,L(t.length+n),setTimeout((()=>{E.current=!1}),0))}),h),n}))}),n),N(!0);let s=null;const c=()=>{A.current&&(clearInterval(A.current),A.current=null,N(!1))},d=()=>{A.current&&clearInterval(A.current),A.current=setInterval((()=>{C((e=>{if(y)return e;let n;return n=l?(e+1)%t.length:Math.min(e+1,t.length-a),L(l?t.length+n:n),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(n),l&&n>=2*t.length&&(E.current=!0,L(t.length+n),setTimeout((()=>{E.current=!1}),0))}),h),n}))}),n),N(!0)};return i&&S.current&&(s=S.current,s.addEventListener("mouseenter",c),s.addEventListener("mouseleave",d)),()=>{A.current&&(clearInterval(A.current),A.current=null),s&&(s.removeEventListener("mouseenter",c),s.removeEventListener("mouseleave",d)),N(!1)}}),[g,t.length,l,a,y,h,v,E]),o((()=>{L(l?t.length+s:s)}),[l,t.length,s]),o((()=>{const e=()=>{if(S.current){const e="horizontal"===u?S.current.offsetWidth:S.current.offsetHeight;w(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[u]);const G=d((()=>{if(!y)if(g&&"object"==typeof g&&g.disableOnInteraction&&A.current&&(clearInterval(A.current),A.current=null,N(!1)),l){const e=(_+1)%t.length,a=T+1;C(e),L(a),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e),a>=2*t.length&&(E.current=!0,L(t.length+e),setTimeout((()=>{E.current=!1}),0))}),h)}else{const e=Math.min(_+1,t.length-a);C(e),L(e),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e)}),h)}}),[_,T,t.length,a,l,y,h,v,z.length,F,g]),V=d((()=>{if(!y)if(g&&"object"==typeof g&&g.disableOnInteraction&&A.current&&(clearInterval(A.current),A.current=null,N(!1)),l){const e=0===_?t.length-1:_-1,a=T-1;C(e),L(a),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e),a<t.length&&(E.current=!0,L(t.length+e),setTimeout((()=>{E.current=!1}),0))}),h)}else{const e=Math.max(_-1,0);C(e),L(e),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e)}),h)}}),[_,T,t.length,l,y,h,v,z.length,F,g]),Y=d((e=>{y||e===_||(g&&"object"==typeof g&&g.disableOnInteraction&&A.current&&(clearInterval(A.current),A.current=null,N(!1)),x(!0),B(0),C(e),L(l?t.length+e:e),setTimeout((()=>{x(!1),null==v||v(e)}),h))}),[_,y,h,v,l,F,g]),H=d((e=>{var t,a;if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&A.current&&(clearInterval(A.current),A.current=null,N(!1));const n="horizontal"===u?"touches"in e?(null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0:e.clientX:"touches"in e?(null===(a=e.touches[0])||void 0===a?void 0:a.clientY)||0:e.clientY;D(n),O(!0),B(0)}),[m,u,g]),W=d((e=>{var t,a;if(!R||!m)return;const n="horizontal"===u?"touches"in e?(null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0:e.clientX:"touches"in e?(null===(a=e.touches[0])||void 0===a?void 0:a.clientY)||0:e.clientY,i=M-n;Math.abs(i)>10&&(e.preventDefault(),B(.5*-i))}),[R,M,m,u]),Q=d((e=>{var t,a;if(!R||!m)return;const n="horizontal"===u?"changedTouches"in e?(null===(t=e.changedTouches[0])||void 0===t?void 0:t.clientX)||0:e.clientX:"changedTouches"in e?(null===(a=e.changedTouches[0])||void 0===a?void 0:a.clientY)||0:e.clientY,i=M-n;O(!1),B(0),Math.abs(i)>p&&(i>0?G():V())}),[R,M,p,G,V,m,u]),K=l||_<t.length-a,Z=l||_>0;return{activeIndex:_,realIndex:_,previousIndex:_,isBeginning:!l&&0===_,isEnd:!l&&_>=t.length-a,progress:t.length>0?_/(t.length-1):0,autoplayRunning:b,transitioning:y,touching:R,translate:U,slidesPerView:a,slidesCount:t.length,isLocked:!1,destroyed:!1,size:I,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:K,allowSlidePrev:Z,allowTouchMove:m,animating:y,enabled:!0,initialized:!0,slideNext:G,slidePrev:V,goToSlide:Y,canSlideNext:K,canSlidePrev:Z,containerRef:S,wrapperRef:f,handleTouchStart:H,handleTouchMove:W,handleTouchEnd:Q,allSlides:z,translateValue:U,slideWidth:P,currentSlidesToShow:a,loopedSlides:F,repositioningRef:E}}var qo=Object.freeze({__proto__:null,DOTS:ao,useAccordion:Se,useAtomixGlass:function(){return{generateGlassClass:d((e=>{const t=["c-atomix-glass"];return e.size&&"md"!==e.size&&t.push(`c-atomix-glass--${e.size}`),e.mode&&"standard"!==e.mode&&t.push(`c-atomix-glass--${e.mode}`),e.clickable&&t.push("c-atomix-glass--clickable"),e.overLight&&t.push("c-atomix-glass--over-light"),e.active&&t.push("c-atomix-glass--active"),e.className&&t.push(e.className),t.filter(Boolean).join(" ")}),[]),generateElementClass:d(((e,t)=>{const a=`c-atomix-glass__${e}`;return t?`${a}--${t}`:a}),[])}},useBadge:Zi,useBarChart:kr,useBlock:Xi,useBreadcrumb:function(e){return{defaultOptions:{items:[],divider:M.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[M.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[M.CLASSES.ITEM,e.active||t?M.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>Boolean(e.href&&!e.active&&!t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(e){return[]}}}},useButton:er,useCard:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{elevationEffect:t=!1,elevationClass:a=ae.CLASSES.ACTIVE,flipEffect:n=!1,flipTrigger:o="click",focusEffect:l=!1,clickable:s=!1,onClick:c}=e,u=r(null),h=r(null),m=r(null),[p,g]=i(!1),[v,S]=i(!1),[f,E]=i(!1),[A,b]=i(!1),N=d((e=>{n&&"click"===o&&g((e=>!e)),c&&c(e)}),[n,o,c]),_=d((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n&&"click"===o&&g((e=>!e)),c&&c(e))}),[n,o,c]),C=d((()=>{b(!0),t&&S(!0),n&&"hover"===o&&g(!0)}),[t,n,o]),T=d((()=>{b(!1),t&&S(!1),n&&"hover"===o&&g(!1)}),[t,n,o]),L=d((()=>{E(!0)}),[]),y=d((()=>{E(!1)}),[]),x=d((()=>({className:[ae.CLASSES.BASE,v?a:"",p?ae.CLASSES.FLIPPED:"",f&&l?ae.CLASSES.FOCUSED:"",s?ae.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:u,tabxwIndex:s||n?0:-1,role:s?"button":void 0,onMouseEnter:C,onMouseLeave:T,onFocus:L,onBlur:y,onClick:N,onKeyDown:_})),[v,p,f,a,l,s,C,T,L,y,N,_,n]);return{cardRef:u,frontRef:h,backRef:m,isFlipped:p,isElevated:v,isFocused:f,isHovered:A,handleClick:N,handleKeyDown:_,handleMouseEnter:C,handleMouseLeave:T,handleFocus:L,handleBlur:y,getCardProps:x}},useChartData:function(e){const t=c((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||`Point ${t+1}`}))):[]),[e]),a=c((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),a=Math.min(...e),n=Math.max(...e),i=Cr(e).call(e,((e,t)=>e+t),0);return{min:a,max:n,total:i,average:i/e.length}}),[t]);return{data:t,stats:a,isEmpty:0===t.length}},useChartInteraction:function(){const[e,t]=i({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:d((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:d((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:d((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}},useChartScale:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;return c((()=>{const n={top:20,right:20,bottom:40,left:40},i=t-n.left-n.right,r=a-n.top-n.bottom;if(!e.length)return{xScale:()=>n.left,yScale:()=>n.top+r,width:t,height:a,padding:n};const o=e.map((e=>e.value)),l=Math.min(0,...o),s=Math.max(...o)-l||1;return{xScale:t=>n.left+t/Math.max(e.length-1,1)*i,yScale:e=>n.top+r-(e-l)/s*r,width:t,height:a,padding:n}}),[e,t,a])},useCheckbox:_o,useDataTable:Jr,useEdgePanel:vo,useForm:To,useFormGroup:yo,useGlassContainer:function(e){const{glassSize:t={width:270,height:69},elasticity:a=.15,mouseContainer:n,globalMousePos:l,mouseOffset:c}=e,u=s(),h=r(null),[m,p]=i(!1),[g,v]=i(!1),[S,f]=i(t),[E,A]=i({x:0,y:0}),[b,N]=i({x:0,y:0}),_=l||E,C=c||b,T=d((e=>{const t=(null==n?void 0:n.current)||h.current;if(!t)return;const a=t.getBoundingClientRect(),i=a.left+a.width/2,r=a.top+a.height/2;N({x:(e.clientX-i)/a.width*100,y:(e.clientY-r)/a.height*100}),A({x:e.clientX,y:e.clientY})}),[n]);o((()=>{if(l&&c)return;const e=(null==n?void 0:n.current)||h.current;return e?(e.addEventListener("mousemove",T),()=>e.removeEventListener("mousemove",T)):void 0}),[T,n,l,c]);const L=d((()=>{if(!_.x||!_.y||!h.current)return"scale(1)";const e=h.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2,i=S.width,r=S.height,o=_.x-t,l=_.y-n,s=Math.max(0,Math.abs(o)-i/2),c=Math.max(0,Math.abs(l)-r/2),d=Math.sqrt(s*s+c*c);if(d>200)return"scale(1)";const u=1-d/200,m=Math.sqrt(o*o+l*l);if(0===m)return"scale(1)";const p=o/m,g=l/m,v=Math.min(m/300,1)*a*u,f=1+Math.abs(p)*v*.3-Math.abs(g)*v*.15,E=1+Math.abs(g)*v*.3-Math.abs(p)*v*.15;return`scaleX(${Math.max(.8,f)}) scaleY(${Math.max(.8,E)})`}),[_,a,S]),y=d((()=>{if(!h.current)return{x:0,y:0};const e=h.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2,i=S.width,r=S.height,o=Math.max(0,Math.abs(_.x-t)-i/2),l=Math.max(0,Math.abs(_.y-n)-r/2),s=Math.sqrt(o*o+l*l),c=s>200?0:1-s/200;return{x:(_.x-t)*a*.1*c,y:(_.y-n)*a*.1*c}}),[_,a,S]);o((()=>{const e=()=>{if(h.current){const e=h.current.getBoundingClientRect();f({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const x=d((()=>{p(!0)}),[]),I=d((()=>{p(!1)}),[]),w=d((()=>{v(!0)}),[]),R=d((()=>{v(!1)}),[]);return{filterId:u,glassRef:h,isHovered:m,isActive:g,currentGlassSize:S,globalMousePos:_,mouseOffset:C,calculateDirectionalScale:L,calculateElasticTranslation:y,handleMouseEnter:x,handleMouseLeave:I,handleMouseDown:w,handleMouseUp:R}},useHero:Ro,useInput:Io,useLineChart:wr,useModal:function(){let{isOpen:e,onOpenChange:t,onOpen:a,onClose:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,l]=i(!1),s=void 0!==e,c=s?!!e:r;o((()=>{s&&l(!!e)}),[e,s]);const u=d((e=>{s||l(e),t&&t(e),e&&a?a():!e&&n&&n()}),[s,t,a,n]),h=d((()=>{u(!0)}),[u]),m=d((()=>{u(!1)}),[u]),p=d((()=>{u(!c)}),[c,u]);return{isOpen:c,open:h,close:m,toggle:p}},useNav:Do,useNavDropdown:function(e){const t={alignment:"start",megaMenu:!1,...e},a=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:a=t.alignment,megaMenu:n=t.megaMenu,className:i=""}=e,r=n?W.SELECTORS.MEGA_MENU.replace(".",""):W.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===a?o=`${r}--center`:"end"===a&&(o=`${r}--end`),`${r} ${o} ${i}`.trim()},isInFixedBottomNavbar:a,getIconClass:function(){return"c-nav__icon "+(a()?"icon-lux-caret-up":"icon-lux-caret-down")},getIconName:function(){return a()?"CaretUp":"CaretDown"}}},useNavItem:ko,useNavbar:Mo,usePagination:io,usePieChart:Hr,useRadio:Qo,useRiver:Oo,useSelect:Ko,useSideMenu:Bo,useSideMenuItem:Po,useSlider:jo,useSpinner:eo,useTextarea:Zo,useTodo:Wo});const Xo=a=>{let{options:n=[],value:l,onChange:s,onBlur:c,onFocus:d,placeholder:u="Select an option",className:h="",disabled:m=!1,required:p=!1,id:g,name:v,size:S="md",invalid:f=!1,valid:E=!1,multiple:A=!1,ariaLabel:b,ariaDescribedBy:N,glass:_}=a;const{generateSelectClass:C}=Ko({size:S,disabled:m,invalid:f,valid:E}),T=C({className:`${h} ${_?"c-select--glass":""}`.trim(),size:S,disabled:m,invalid:f,valid:E}),[L,y]=i(!1),[x,I]=i(u),w=r(null),R=r(null),O=r(null),M=r(null);o((()=>{if(l){const e=n.find((e=>e.value===l));e&&I(e.label)}else I(u)}),[l,n,u]),o((()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&(y(!1),O.current&&(O.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const D=t("div",{className:`${T} ${L?ne.CLASSES.IS_OPEN:""}`,ref:w,"aria-expanded":L,children:[t("select",{ref:M,value:l,onChange:s,onBlur:c,onFocus:d,disabled:m,required:p,id:g,name:v,multiple:A,"aria-label":b,"aria-describedby":N,"aria-invalid":f,style:{display:"none"},children:[u&&e("option",{value:"",disabled:!0,children:u}),n.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:ne.CLASSES.SELECTED,onClick:()=>{m||(!L&&O.current&&R.current?O.current.style.height=`${R.current.clientHeight}px`:O.current&&(O.current.style.height="0px"),y(!L))},"aria-disabled":m,children:x}),e("i",{className:`${ne.CLASSES.ICON_CARET} ${ne.CLASSES.TOGGLE_ICON}`}),e("div",{className:ne.CLASSES.SELECT_BODY,ref:O,style:{height:0},children:e("div",{className:ne.CLASSES.SELECT_PANEL,ref:R,children:e("ul",{className:ne.CLASSES.SELECT_ITEMS,children:n.map(((a,n)=>e("li",{className:ne.CLASSES.SELECT_ITEM,"data-value":a.value,onClick:()=>!a.disabled&&(e=>{if(I(e.label),y(!1),O.current&&(O.current.style.height="0px"),M.current&&(M.current.value=e.value),s){const t={target:{name:v,value:e.value}};s(t)}})(a),children:t("label",{htmlFor:`SelectItem${n}`,className:"c-checkbox",children:[e("input",{type:"checkbox",id:`SelectItem${n}`,className:"c-checkbox__input c-select__item-input",checked:l===a.value,readOnly:!0,disabled:a.disabled}),e("div",{className:"c-select__item-label",children:a.label})]})},a.value)))})})})]});if(_){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},a=!0===_?t:{...t,..._};return e(Gi,{...a,children:D})}return D};Xo.displayName="Select";const $o=a=>{let{label:n,checked:i=!1,onChange:r,className:o="",disabled:l=!1,required:s=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,ariaLabel:p,ariaDescribedBy:g,glass:v}=a;const{generateRadioClass:S}=Qo({disabled:l,invalid:h,valid:m}),f=S({className:`${o} ${v?"c-radio--glass":""}`.trim(),disabled:l,invalid:h,valid:m}),E=t("div",{className:f,children:[e("input",{type:"radio",className:"c-radio__input",checked:i,onChange:r,disabled:l,required:s,id:c,name:d,value:u,"aria-label":n?void 0:p,"aria-describedby":g,"aria-invalid":h}),n&&e("label",{className:"c-radio__label",htmlFor:c,children:n})]});if(v){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},a=!0===v?t:{...t,...v};return e(Gi,{...a,children:E})}return E};$o.displayName="Radio";const Jo=l(((t,a)=>{let{value:n,onChange:i,onBlur:r,onFocus:o,placeholder:l,className:s="",disabled:c=!1,required:d=!1,readOnly:u=!1,id:h,name:m,rows:p=4,cols:g,maxLength:v,minLength:S,size:f="md",variant:E,invalid:A=!1,valid:b=!1,autoFocus:N=!1,ariaLabel:_,ariaDescribedBy:C,glass:T}=t;const{generateTextareaClass:L}=Zo({size:f,variant:E,disabled:c,invalid:A,valid:b}),y=L({className:`${s} ${T?"c-input--glass":""}`.trim(),size:f,variant:E,disabled:c,invalid:A,valid:b}),x=e("textarea",{ref:a,className:y,value:n,onChange:i,onBlur:r,onFocus:o,placeholder:l,disabled:c,required:d,readOnly:u,id:h,name:m,rows:p,cols:g,maxLength:v,minLength:S,autoFocus:N,"aria-label":_,"aria-describedby":C,"aria-invalid":A,style:T?{}:void 0});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,cornerRadius:8,mode:"shader"},a=!0===T?t:{...t,...T};return e(Gi,{...a,children:x})}return x}));Jo.displayName="Textarea";const el=l(((a,n)=>{let{platform:i,url:r,icon:o,label:l,size:s="md",variant:c="default",disabled:d=!1,className:u="",...h}=a;const m=["c-footer__social-link",`c-footer__social-link--${i}`,`c-footer__social-link--${s}`,`c-footer__social-link--${c}`,d&&"c-footer__social-link--disabled",u].filter(Boolean).join(" "),p=l||`Follow us on ${(e=>({facebook:"Facebook",twitter:"Twitter",instagram:"Instagram",linkedin:"LinkedIn",youtube:"YouTube",github:"GitHub",discord:"Discord",tiktok:"TikTok",pinterest:"Pinterest",snapchat:"Snapchat",whatsapp:"WhatsApp",telegram:"Telegram",reddit:"Reddit",twitch:"Twitch",spotify:"Spotify",dribbble:"Dribbble",behance:"Behance",medium:"Medium",dev:"Dev.to",codepen:"CodePen"}[e]||e))(i)}`;return t("a",{ref:n,href:d?void 0:r,className:m,target:"_blank",rel:"noopener noreferrer","aria-label":p,"aria-disabled":d,...h,children:[e("span",{className:"c-footer__social-link-icon",children:o||(e=>({facebook:"📘",twitter:"🐦",instagram:"📷",linkedin:"💼",youtube:"📺",github:"🐙",discord:"🎮",tiktok:"🎵",pinterest:"📌",snapchat:"👻",whatsapp:"💬",telegram:"✈️",reddit:"🤖",twitch:"🎮",spotify:"🎵",dribbble:"🏀",behance:"🎨",medium:"📝",dev:"👨💻",codepen:"✏️"}[e]||"🔗"))(i)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:p})]})}));el.displayName="FooterSocialLink";const tl=l(((a,n)=>{let{brand:i,brandLogo:r,brandDescription:o,copyright:l,layout:s="columns",variant:c="primary",size:d="md",showNewsletter:u=!1,newsletterTitle:h="Stay Updated",newsletterDescription:m="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:p="Enter your email",newsletterButtonText:g="Subscribe",onNewsletterSubmit:v,socialLinks:S=[],showBackToTop:f=!1,backToTopText:E="Back to Top",onBackToTop:A,showDivider:b=!0,sticky:N=!1,children:_,className:C="",disabled:T=!1,...L}=a;const{footerClass:y,containerClass:x,brandClass:I,sectionsClass:w,bottomClass:R,handleNewsletterSubmit:O,handleBackToTop:M,socialLinks:D}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{layout:t=ve.DEFAULTS.LAYOUT,variant:a=ve.DEFAULTS.VARIANT,size:n=ve.DEFAULTS.SIZE,sticky:i=ve.DEFAULTS.STICKY,showNewsletter:r=ve.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:o=ve.DEFAULTS.SHOW_BACK_TO_TOP,socialLinks:l=[],onNewsletterSubmit:s,onBackToTop:c,className:d=""}=e;return{footerClass:[ve.CLASSES.BASE,ve.CLASSES[t.toUpperCase()]||ve.CLASSES.COLUMNS,`c-footer--${a}`,ve.CLASSES[n.toUpperCase()]||ve.CLASSES.MD,i&&ve.CLASSES.STICKY,d].filter(Boolean).join(" "),containerClass:ve.CLASSES.CONTAINER,brandClass:ve.CLASSES.BRAND,sectionsClass:[ve.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" "),bottomClass:ve.CLASSES.BOTTOM,handleNewsletterSubmit:e=>{s&&s(e)},handleBackToTop:()=>{c?c():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:l}}({layout:s,variant:c,size:d,sticky:N,showNewsletter:u,showBackToTop:f,socialLinks:S,onNewsletterSubmit:v,onBackToTop:A,className:C});return e("footer",{ref:n,className:y,...L,children:t("div",{className:x,children:[t("div",{className:w,children:[(i||r||o)&&t("div",{className:I,children:[r&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof r?e("img",{src:r,alt:"Brand Logo"}):r}),i&&e("div",{className:"c-footer__brand-name",children:"string"==typeof i?e("h3",{children:i}):i}),o&&e("div",{className:"c-footer__brand-description",children:o}),S.length>0&&e("div",{className:"c-footer__social",children:S.map(((t,a)=>e(el,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:d},`${t.platform}-${a}`)))})]}),_&&e("div",{className:"c-footer__sections",children:_}),u&&t("div",{className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:h}),m&&e("p",{className:"c-footer__newsletter-description",children:m}),e(Lo,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&O(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(wo,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:p,required:!0}),e(tr,{type:"submit",className:"c-footer__newsletter-button",children:g})]})})]})]}),(l||f)&&b&&e("hr",{className:"c-footer__divider"}),(l||f)&&t("div",{className:R,children:[l&&e("div",{className:"c-footer__copyright",children:l}),f&&t(tr,{variant:"ghost",className:"c-footer__back-to-top",onClick:M,disabled:T,"aria-label":E,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:E})]})]})]})})}));tl.displayName="Footer";const al=l(((a,i)=>{let{title:r,icon:o,collapsible:l=!1,defaultCollapsed:s=!1,children:c,className:d="",...u}=a;const[h,m]=n.useState(s),p=["c-footer__section",l&&"c-footer__section--collapsible",h&&"c-footer__section--collapsed",d].filter(Boolean).join(" ");return t("div",{ref:i,className:p,...u,children:[r&&e("div",{className:"c-footer__section-header",children:l?t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{l&&m(!h)},"aria-expanded":!h,"aria-controls":`footer-section-${r.toString().toLowerCase().replace(/\s+/g,"-")}`,children:[o&&e("span",{className:"c-footer__section-icon",children:o}),e("h4",{className:"c-footer__section-title",children:r}),e("span",{className:"c-footer__section-chevron",children:h?"▼":"▲"})]}):t("div",{className:"c-footer__section-header-content",children:[o&&e("span",{className:"c-footer__section-icon",children:o}),e("h4",{className:"c-footer__section-title",children:r})]})}),e("div",{className:"c-footer__section-content",id:r?`footer-section-${r.toString().toLowerCase().replace(/\s+/g,"-")}`:void 0,style:{display:l&&h?"none":"block"},children:c})]})}));al.displayName="FooterSection";const nl=l(((a,n)=>{let{href:i,icon:r,external:o=!1,active:l=!1,disabled:s=!1,onClick:c,children:d,className:u="",LinkComponent:h,...m}=a;const p={className:["c-footer__link",l&&"c-footer__link--active",s&&"c-footer__link--disabled",u].filter(Boolean).join(" "),onClick:s?void 0:c,"aria-disabled":s,...o&&{target:"_blank",rel:"noopener noreferrer"},...m};return h?t(h,{ref:n,to:i,...p,children:[r&&e("span",{className:"c-footer__link-icon",children:r}),e("span",{className:"c-footer__link-text",children:d}),o&&e("span",{className:"c-footer__link-external",children:"↗"})]}):t("a",{ref:n,href:s?void 0:i,...p,children:[r&&e("span",{className:"c-footer__link-icon",children:r}),e("span",{className:"c-footer__link-text",children:d}),o&&e("span",{className:"c-footer__link-external",children:"↗"})]})}));nl.displayName="FooterLink";const il=n=>{let{title:i,subtitle:r,text:o,imageSrc:l,imageAlt:s="Hero image",alignment:c="left",backgroundImageSrc:d,showOverlay:u=!0,fullViewportHeight:h=!1,actions:m,imageColSize:p=7,contentColSize:g=5,contentWidth:v,className:S="",parallax:f=!1,parallaxIntensity:E=.5,videoBackground:A,children:b,glass:N,videoOptions:_={autoplay:!0,loop:!0,muted:!0}}=n;const{generateHeroClassNames:C,generateImageColClass:T,generateContentColClass:L,hasBackgroundImage:y,hasForegroundImage:x,useGridLayout:I,heroRef:w,videoRef:R}=Ro({alignment:c,imageColSize:p,contentColSize:g,imageSrc:l,backgroundImageSrc:d,showOverlay:u,fullViewportHeight:h,contentWidth:v,parallax:f,parallaxIntensity:E,videoBackground:A}),O=v?{"--atomix-hero-content-width":v}:void 0,M=()=>{if(!A)return null;const{autoplay:a,loop:n,muted:i,posterUrl:r}=_;return t("video",{ref:R,className:"c-hero__video",autoPlay:a,loop:n,muted:i,playsInline:!0,poster:r,children:[e("source",{src:A,type:`video/${A.split(".").pop()||"mp4"}`}),"Your browser does not support the video tag."]})},k=()=>{const a=t("div",{className:D.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:D.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:D.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:D.SELECTORS.TEXT.replace(".",""),children:o}),m&&e("div",{className:D.SELECTORS.ACTIONS.replace(".",""),children:m})]});return!1===N?a:N?e("div",!0===N?{className:D.SELECTORS.CONTENT.replace(".",""),children:e(Gi,{displacementScale:60,blurAmount:3,saturation:180,aberrationIntensity:0,cornerRadius:8,overLight:!1,mode:"standard",children:t("div",{className:"u-p-4",children:[r&&e("p",{className:D.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:D.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:D.SELECTORS.TEXT.replace(".",""),children:o}),m&&e("div",{className:D.SELECTORS.ACTIONS.replace(".",""),children:m})]})})}:{className:D.SELECTORS.CONTENT.replace(".",""),children:e(Gi,{...N,children:t("div",{className:"u-p-4",children:[r&&e("p",{className:D.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:D.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:D.SELECTORS.TEXT.replace(".",""),children:o}),m&&e("div",{className:D.SELECTORS.ACTIONS.replace(".",""),children:m})]})})}):a},B=()=>x?e("div","center"===c?{className:D.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:l,alt:s,className:D.SELECTORS.IMAGE.replace(".","")})}:{className:T(),children:e("img",{src:l,alt:s,className:D.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:w,className:C(S),style:O,"data-parallax":f?"true":void 0,"data-parallax-intensity":f?E:void 0,children:[y||A?t("div",{className:D.SELECTORS.BG.replace(".",""),children:[d&&e("img",{src:d,alt:"Background",className:D.SELECTORS.BG_IMAGE.replace(".","")}),M(),u&&e("div",{className:D.SELECTORS.OVERLAY.replace(".","")})]}):null,e("div",{className:`${D.SELECTORS.CONTAINER.replace(".","")} o-container`,children:b?e("div",{className:D.SELECTORS.GRID.replace(".",""),children:b}):I?e("div",{className:`${D.SELECTORS.GRID.replace(".","")} o-grid`,children:t(a,"left"===c?{children:[e("div",{className:L(),children:k()}),B()]}:{children:[B(),e("div",{className:L(),children:k()})]})}):t(a,{children:[k(),B()]})})]})};il.displayName="Hero";const rl=t=>{var a;let{children:i,variant:r="default",className:o="",...l}=t;const s=[O.BASE_CLASS,"default"!==r&&`c-list--${r}`,o].filter(Boolean).join(" "),c=Oi(a=["number","text"]).call(a,r)?"ol":"ul";return e(c,{className:s,...l,children:n.Children.map(i,(t=>e("li",{className:"c-list__item",children:t})))})};rl.displayName="List";const ol=a=>{let{messages:n=[],otherAvatar:r,selfAvatar:o,otherName:l,width:s="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",bodyHeight:h,disabled:m=!1,id:p}=a;const{inputValue:g,handleInputChange:v,handleSubmit:S,handleKeyDown:f}=function(){let{onSendMessage:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,a]=i(""),n=n=>{n.preventDefault(),t.trim()&&e&&(e(t.trim()),a(""))};return{inputValue:t,setInputValue:a,handleInputChange:e=>{a(e.target.value)},handleSubmit:n,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),n(e))}}}({onSendMessage:c}),E=p||`messages-${Math.random().toString(36).substr(2,9)}`,A=`${E}-input`;return t("div",{className:`${se.CLASSES.BASE} ${m?"is-disabled":""} ${u}`,style:{"--atomix-messages-width":s},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[e("div",{className:se.CLASSES.BODY,style:h?{"--atomix-messages-body-height":h}:void 0,children:n.map((a=>t("div",{className:`${se.CLASSES.CONTENT} ${a.isSelf?se.CLASSES.CONTENT_SELF:""}`,"aria-label":`${a.isSelf?"You":l||"Other person"} sent a message at ${a.time}`,children:[e(Qi,{src:a.isSelf?o:r,size:"xl",circle:!0,className:se.CLASSES.AVATAR,alt:a.isSelf?"Your avatar":`${l||"Other person"}'s avatar`}),t("div",{className:se.CLASSES.ITEMS,children:[!a.isSelf&&l&&e("div",{className:se.CLASSES.NAME,children:l}),a.text&&t("div",{className:se.CLASSES.TEXT,children:[a.text,e("span",{className:se.CLASSES.TIME,"aria-label":`Sent at ${a.time}`,children:a.time})]}),a.image&&e("img",{className:se.CLASSES.IMAGE,src:a.image,alt:"Message attachment",loading:"lazy"}),a.file&&t("div",{className:se.CLASSES.FILE,"aria-label":`File attachment: ${a.file.name}, size: ${a.file.size}`,children:[e("span",{className:se.CLASSES.FILE_ICON,children:e(Wi,{name:"File","aria-hidden":"true"})}),t("div",{className:se.CLASSES.FILE_DETAILS,children:[e("div",{className:se.CLASSES.FILE_NAME,children:a.file.name}),e("div",{className:se.CLASSES.FILE_SIZE,children:a.file.size})]})]})]})]},a.id)))}),t("form",{className:se.CLASSES.FORM,onSubmit:S,"aria-label":"Message input form",children:[t("div",{className:se.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:A,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:A,type:"text",className:se.CLASSES.INPUT,placeholder:d,value:g,onChange:v,onKeyDown:f,disabled:m,"aria-label":"Message input"}),t("div",{className:se.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Attach file",disabled:m,children:e(Wi,{name:"PaperclipHorizontal","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Attach image",disabled:m,children:e(Wi,{name:"Image","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Insert link",disabled:m,children:e(Wi,{name:"Link","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:se.CLASSES.SUBMIT,"aria-label":"Send message",disabled:m,children:e(Wi,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};ol.displayName="Messages";const ll=a=>{let{children:n,isOpen:l=!1,onOpenChange:s,onClose:c,onOpen:u,title:h,subtitle:m,size:p="md",backdrop:g=!0,keyboard:v=!0,className:S="",closeButton:f=!0,footer:E,glass:A,...b}=a;const N=r(null),_=r(null),C=r(null),{isOpen:T,open:L,close:y}=function(){let{isOpen:e,onOpenChange:t,onOpen:a,onClose:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,l]=i(!1),s=void 0!==e,c=s?!!e:r;o((()=>{s&&l(!!e)}),[e,s]);const u=d((e=>{s||l(e),t&&t(e),e&&a?a():!e&&n&&n()}),[s,t,a,n]),h=d((()=>{u(!0)}),[u]),m=d((()=>{u(!1)}),[u]),p=d((()=>{u(!c)}),[c,u]);return{isOpen:c,open:h,close:m,toggle:p}}({isOpen:l,onOpenChange:s,onClose:c,onOpen:u});o((()=>{if(!v)return;const e=e=>{"Escape"===e.key&&T&&y()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[T,y,v]);const x=["c-modal",T?le.CLASSES.IS_OPEN:"",p?`c-modal--${p}`:"",A?"c-modal--glass":"",S].filter(Boolean).join(" "),I=t("div",{className:"c-modal__content",children:[(h||f)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[h&&e("h3",{className:"c-modal__title",children:h}),m&&e("p",{className:"c-modal__sub",children:m})]}),f&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:y,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),e("div",{className:"c-modal__body",children:n}),E&&e("div",{className:"c-modal__footer",children:E})]});return t("div",{ref:N,className:x,style:{display:T?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!T,...b,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{g&&e.target===e.currentTarget&&y()}}),e("div",{ref:_,className:"c-modal__dialog",children:A?(()=>{const t={displacementScale:100,blurAmount:2,saturation:180,aberrationIntensity:1,cornerRadius:16,mode:"shader"},a=!0===A?t:{...t,...A};return e(Gi,{...a,children:I})})():I})]})};ll.displayName="Modal";const sl=l(((t,a)=>{let{children:i,alignment:r="start",variant:o="default",className:l="",disabled:s=!1}=t;const{generateNavClass:c}=Do({alignment:r,variant:o}),d=c({alignment:r,variant:o,className:l});return e("ul",{ref:a,className:d,role:"menubar","aria-orientation":"horizontal",children:n.Children.map(i,(e=>{if(n.isValidElement(e)){const t=e.props;return n.cloneElement(e,{...t,disabled:!!s||(null==t?void 0:t.disabled)})}return e}))})}));sl.displayName="Nav";const cl=l(((a,l)=>{let{children:s,dropdown:c=!1,megaMenu:d=!1,active:u=!1,href:h,onClick:m,className:p="",disabled:g=!1,"aria-expanded":v,LinkComponent:S}=a;const{generateNavItemClass:f,generateNavLinkClass:E,handleClick:A}=ko({dropdown:c,megaMenu:d,active:u,disabled:g}),[b,N]=i(!1),_=r(null);o((()=>{if(!c&&!d||!b)return;const e=e=>{if(_.current&&!_.current.contains(e.target)){window.innerWidth<768||N(!1)}};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[c,d,b]),o((()=>{if(!c&&!d)return;const e=()=>{!(window.innerWidth<768)&&b&&N(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[c,d,b]);const C=f({dropdown:c,megaMenu:d,active:u,disabled:g,className:p})+(b?" is-active":""),T=E(u,g,c||d?"c-nav__dropdown-toggle":""),L=n.Children.toArray(s),y=void 0!==v?v:b,x={ref:_,href:h||"#",className:T,onClick:c||d?e=>{(c||d)&&(e.preventDefault(),N(!b))}:A(m),"aria-disabled":g,"aria-expanded":c||d?y:void 0,"aria-current":!u||c||d?void 0:"page"};return t("li",{ref:l,className:C,role:"menuitem","aria-haspopup":c||d,children:[e(S||"a",{...x,children:c||d?L[0]:s}),(c||d)&&L.length>1&&L[1]]})}));cl.displayName="NavItem";const dl=l(((a,n)=>{let{brand:l,children:s,variant:c,position:d="static",containerWidth:u,collapsible:h=!0,expanded:m,onToggle:p,className:g="",disabled:v=!1,backdrop:S=!1,closeOnOutsideClick:f=!0,closeOnEscape:E=!0,ariaLabel:A="Main navigation",id:b}=a;const{generateNavbarClass:N,generateContainerStyle:_,generateCollapseClass:C}=Mo({position:d,collapsible:h,expanded:m,onToggle:p}),[T,L]=i(m||!1),y=r(null);o((()=>{void 0!==m&&L(m)}),[m]),o((()=>{const e=()=>{!(window.innerWidth<768)&&h&&("function"==typeof p?m&&p(!1):L(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[h,m,p]);const x=N({position:d,variant:c,collapsible:h,className:g}),I=_(u),w=C(T);return e("nav",{ref:n,className:x,"aria-label":A,id:b,children:t("div",{className:"c-navbar__container",style:I,children:[l&&("string"==typeof l?e("a",{href:"/",className:"c-navbar__brand",children:l}):e("div",{className:"c-navbar__brand",children:l})),h&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(v)return;const e=!T;"function"==typeof p?p(e):L(e)},"aria-expanded":T,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:v,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:w,ref:y,children:s})]})})}));dl.displayName="Navbar";const ul=l(((a,n)=>{let{title:i,children:r,isOpen:o,onToggle:l,collapsible:s=!0,className:c="",disabled:d=!1,toggleIcon:u,id:h}=a;const{isOpenState:m,wrapperRef:p,innerRef:g,generateSideMenuClass:v,generateWrapperClass:S,handleToggle:f}=Bo({isOpen:o,onToggle:l,collapsible:s,disabled:d}),E=v({className:c,isOpen:m}),A=S(),b=e(Wi,{name:"CaretRight",size:"xs"});return t("div",{ref:n,className:E,id:h,children:[i&&s&&t("div",{className:"c-side-menu__toggler",onClick:f,role:"button",tabIndex:d?-1:0,"aria-expanded":m,"aria-controls":h?`${h}-content`:void 0,"aria-disabled":d,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||d||(e.preventDefault(),f())},children:[e("span",{className:"c-side-menu__title",children:i}),e("span",{className:"c-side-menu__toggler-icon",children:u||b})]}),i&&!s&&e("h3",{className:"c-side-menu__title",children:i}),e("div",{ref:p,className:A,id:h?`${h}-content`:void 0,"aria-hidden":!!s&&!m,children:e("div",{ref:g,className:"c-side-menu__inner",children:r})})]})}));ul.displayName="SideMenu";const hl=l(((a,n)=>{let{children:i,href:r,onClick:o,active:l=!1,disabled:s=!1,icon:c,className:d="",target:u,rel:h,LinkComponent:m}=a;const{generateSideMenuItemClass:p,handleClick:g}=Po({active:l,disabled:s,className:d}),v=p(),S={ref:n,href:s?void 0:r,className:v,onClick:g(o),"aria-disabled":s,"aria-current":l?"page":void 0,target:u,rel:h,tabIndex:s?-1:0};return r?t(m||"a",{...S,children:[c&&e("span",{className:"c-side-menu__link-icon",children:c}),e("span",{className:"c-side-menu__link-text",children:i})]}):t("button",{ref:n,type:"button",className:v,onClick:g(o),disabled:s,"aria-current":l?"page":void 0,tabIndex:s?-1:0,children:[c&&e("span",{className:"c-side-menu__link-icon",children:c}),e("span",{className:"c-side-menu__link-text",children:i})]})}));hl.displayName="SideMenuItem";const ml=l(((t,a)=>{let{children:i,className:r=""}=t;const o=`c-side-menu__list ${r}`.trim();return e("ul",{ref:a,className:o,role:"list",children:n.Children.map(i,((t,a)=>n.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},a):t))})}));ml.displayName="SideMenuList";const pl=a=>{let{currentIndex:n,imagesLength:i,onZoomOut:r,onResetZoom:o,onZoomIn:l,onToggleFullscreen:s,onClose:c,isFullscreen:d,zoomLevel:u,onRotate:h,onDownload:m,onShare:p,showInfo:g,onToggleInfo:v,currentImage:S}=a;return t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(ji,{label:`${n+1} / ${i}`,variant:"primary",size:"sm"}),(null==S?void 0:S.title)&&e("h3",{className:"c-photo-viewer__image-title",children:S.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:u<=.1,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(Wi,{name:"Minus",size:"sm"})}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:1===u,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(Wi,{name:"MagnifyingGlass",size:"sm"})}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,disabled:u>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(Wi,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(Wi,{name:"ArrowsClockwise",size:"sm"})}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(Wi,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:p,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(Wi,{name:"Share",size:"sm"})}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:v,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(g?"is-active":""),icon:e(Wi,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":d?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(Wi,{name:d?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:c,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(Wi,{name:"X",size:"sm"})})]})]})},gl=n=>{let{show:i,onPrev:r,onNext:l,currentIndex:s,imagesLength:c,enableKeyboardNav:d,onClose:u}=n;return o((()=>{if(!d)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&l(),"Escape"===e.key&&u()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[d,r,l,u]),i?t(a,{children:[e(tr,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:0===s,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:e(Wi,{name:"CaretLeft",size:"md"})}),e(tr,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:l,disabled:s===c-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(Wi,{name:"CaretRight",size:"md"})})]}):null},vl=t=>{let{imageRef:a,containerRef:n,src:l,alt:s,zoomLevel:c,dragPosition:d,isDragging:u,rotationAngle:h,isTransitioning:m=!1,onMouseDown:p,onMouseMove:g,onMouseUp:v,onWheel:S,onTouchStart:f,onTouchMove:E,onTouchEnd:A,onDoubleClick:b}=t;const N=r(null),_=n||N,[C,T]=i(!1);o((()=>(T(!0),()=>T(!1))),[]);return o((()=>{const e=_.current;if(!e)return;const t=t=>{C&&e&&S&&S(t)},a=t=>{C&&e&&f&&f(t)},n=t=>{C&&e&&E&&E(t)},i=t=>{C&&e&&A&&A(t)};return C&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",a,{passive:!1}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",i,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",i)}}),[C,S,f,E,A,_]),e("div",{ref:_,className:"c-photo-viewer__image-container "+(m?"is-transitioning":""),style:{cursor:u?"grabbing":c>1?"grab":"default",opacity:m?.7:1,touchAction:"none"},onMouseDown:p,onMouseMove:g,onMouseUp:v,onMouseLeave:v,onDoubleClick:e=>{C&&b&&b(e)},children:e("img",{ref:a,src:l,alt:s,className:"c-photo-viewer__image",style:{transform:`scale(${c}) translate(${d.x}px, ${d.y}px) rotate(${h}deg)`,transition:u?"none":m?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:u?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Sl=a=>{let{images:n,currentIndex:i,goToImage:r}=a;return n.length<=1?null:e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((a,n)=>{const o=a.thumbnail||a.src,l=n===i;return e(tr,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(l?"is-active":""),onClick:()=>r(n),"aria-label":`View image ${n+1}${a.title?`: ${a.title}`:""}`,"aria-current":l,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:o,alt:a.alt||`Thumbnail ${n+1}`,className:"c-photo-viewer__thumbnail-img"}),l&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},n)}))})})},fl=a=>{let{show:n,image:i,onClose:r}=a;return n&&i?t("div",{className:"c-photo-viewer__info-panel",children:[t("div",{className:"c-photo-viewer__info-header",children:[e("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),e(tr,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(Wi,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[i.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:i.title})}),i.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:i.description})}),(i.date||i.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[i.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(Wi,{name:"Calendar",size:14}),e("span",{children:i.date})]}),i.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(Wi,{name:"User",size:14}),e("span",{children:i.author})]})]})}),i.tags&&i.tags.length>0&&t("div",{className:"c-photo-viewer__info-section",children:[e("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),e("div",{className:"c-photo-viewer__info-tags",children:i.tags.map(((t,a)=>e(ji,{label:t,variant:"secondary",size:"sm"},a)))})]})]})]}):null},El=a=>{let{images:n,startIndex:l=0,className:s="",disabled:u=!1,enableKeyboardNavigation:h=!0,enableGestures:m=!0,enableFullscreen:p=!0,thumbnailPosition:g="bottom",onImageChange:v,onClose:S}=a;const{currentIndex:f,zoomLevel:E,imagePosition:A,isDragging:b,isFullscreen:N,rotationAngle:_,showInfo:C,imageRef:T,containerRef:L,isTransitioning:y,setZoomLevel:x,setImagePosition:I,setIsDragging:w,setIsFullscreen:R,setRotationAngle:O,setShowInfo:M,closeModal:D,goToPrevious:k,goToNext:B,setCurrentIndex:P,handleMouseDown:z,handleMouseMove:F,handleMouseUp:U,handleWheel:G,handleTouchStart:V,handleTouchMove:Y,handleTouchEnd:H,handleDoubleClick:W,resetImageState:Q}=(e=>{let{images:t,startIndex:a=0,enableGestures:n=!0,onImageChange:l,onClose:s}=e;const[c,u]=i(a),[h,m]=i(!1),[p,g]=i(!1),[v,S]=i({x:0,y:0}),[f,E]=i(!1),[A,b]=i(!1),[N,_]=i({}),[C,T]=i(!1),[L,y]=i(!1),[x,I]=i({velocity:0,timestamp:0}),w=r(null),R=r(null),O=r([]),M=r(null),D=r(null),k=r(0),B=r(null),P=d(((e,t)=>{if(!L||!w.current||!R.current)return{minX:0,maxX:0,minY:0,maxY:0};const a=w.current,n=R.current;if(!a.naturalWidth&&!a.width)return{minX:0,maxX:0,minY:0,maxY:0};const i=a.naturalWidth||a.width||800,r=a.naturalHeight||a.height||600;try{const a=n.getBoundingClientRect();if(!a||0===a.width||0===a.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=a.width,l=a.height,s=t*Math.PI/180,c=Math.abs(Math.cos(s)),d=Math.abs(Math.sin(s)),u=i/r;let h,m;o/l>u?(m=Math.min(.9*l,r),h=m*u):(h=Math.min(.9*o,i),m=h/u);const p=(h*c+m*d)*e,g=(h*d+m*c)*e,v=Math.max(0,(p-o)/2),S=Math.max(0,(g-l)/2);return{minX:-v,maxX:v,minY:-S,maxY:S}}catch(e){return{minX:0,maxX:0,minY:0,maxY:0}}}),[L]),z=d(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);o((()=>(y(!0),a<0||a>=t.length?u(0):u(a),()=>y(!1))),[t,a]),o((()=>{h?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[h]),o((()=>{h&&_((e=>e[c]?e:{...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[h,c]),o((()=>{l&&l(c)}),[c,l]),o((()=>{const e=w.current,t=R.current,a=()=>{L&&e&&t&&_((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=P(t.zoomLevel,t.rotation),n=z(t.position,a);return{...e,[c]:{...t,bounds:a,position:n}}}))};if(!(e&&t&&e.complete&&L))return e&&t&&L?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[c,P,z,L]),o((()=>{const e=()=>{L&&w.current&&R.current&&_((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=P(t.zoomLevel,t.rotation),n=z(t.position,a);return{...e,[c]:{...t,bounds:a,position:n}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,P,z,L]);const F=d((()=>{m(!0)}),[]),U=d((()=>{m(!1),s&&s()}),[s]),G=d((()=>{c>0&&(T(!0),setTimeout((()=>{u((e=>e-1)),T(!1)}),150))}),[c]),V=d((()=>{c<t.length-1&&(T(!0),setTimeout((()=>{u((e=>e+1)),T(!1)}),150))}),[c,t.length]),Y=d((e=>{_((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.zoomLevel):e,i=Math.max(.1,Math.min(5,n)),r=P(i,a.rotation),o=z(a.position,r);return{...t,[c]:{...a,zoomLevel:i,bounds:r,position:o}}}))}),[L,c,P,z]),H=d((e=>{_((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.position):e,i=z(n,a.bounds);return{...t,[c]:{...a,position:i}}}))}),[c,z]),W=d((e=>{_((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=(("function"==typeof e?e(a.rotation):e)%360+360)%360,i=P(a.zoomLevel,n),r=z(a.position,i);return{...t,[c]:{...a,rotation:n,bounds:i,position:r}}}))}),[L,c,P,z]),Q=d((e=>{var t;if(!L||!e||!e.currentTarget)return;const a=e.currentTarget;if(a&&"function"==typeof a.getBoundingClientRect){if("undefined"!=typeof window&&null!==(t=window.location)&&void 0!==t&&null!==(t=t.href)&&void 0!==t&&Oi(t).call(t,"storybook"))try{const e=a.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(e){return}_((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},i=/Mac|iPod|iPhone|iPad/.test(navigator.platform),r=e.ctrlKey&&i,o=Math.abs(e.deltaX)>0,l=!e.ctrlKey&&o&&i,s=!e.ctrlKey&&!o&&i,d=!i;let u,h=!1;if(r)u=-.02*e.deltaY,h=!0;else if(l){if(!(n.zoomLevel>1))return t;u=-.003*e.deltaY,h=!0}else s?(u=-.004*e.deltaY,h=!0):d?(u=-.006*e.deltaY,h=!0):(u=-.005*e.deltaY,h=!0);h&&(e.preventDefault(),e.stopPropagation());const m=Date.now(),p=m-k.current;if(k.current=m,r&&p<100){const e=Math.abs(u)/p;I({velocity:e,timestamp:m}),B.current&&clearTimeout(B.current),B.current=setTimeout((()=>{const e=()=>{I((t=>{if(t.velocity<.001)return t;const a=.95*t.velocity,n=a*(u>0?1:-1);return _((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.max(.1,Math.min(5,t.zoomLevel+n));if(a===t.zoomLevel)return e;const i=P(a,t.rotation),r=z(t.position,i);return{...e,[c]:{...t,zoomLevel:a,bounds:i,position:r}}})),a>=.001&&requestAnimationFrame(e),{velocity:a,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50)}let g;try{g=a.getBoundingClientRect()}catch(e){return t}if(!g||0===g.width||0===g.height)return t;const v=g.width/2,S=g.height/2,f=e.clientX-g.left-v,E=e.clientY-g.top-S,A=n.zoomLevel,b=Math.max(.1,Math.min(5,A+u));if(b!==A){const e=b/A,a=P(b,n.rotation),i={x:n.position.x+f*(1-e)*.5,y:n.position.y+E*(1-e)*.5},r=z(i,a);return{...t,[c]:{...n,zoomLevel:b,bounds:a,position:r}}}return t}))}}),[L,c,P,z]),K=d((e=>{if(!L||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&_((a=>{const n=a[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let i;try{i=t.getBoundingClientRect()}catch(e){return a}if(!i||0===i.width||0===i.height)return a;const r=i.width/2,o=i.height/2,l=e.clientX-i.left-r,s=e.clientY-i.top-o;let d,u={x:0,y:0};n.zoomLevel<1.5?(d=2,u={x:.5*-l,y:.5*-s}):n.zoomLevel<3?(d=4,u={x:.75*-l,y:.75*-s}):(d=1,u={x:0,y:0});const h=P(d,n.rotation),m=z(u,h);return{...a,[c]:{...n,zoomLevel:d,bounds:h,position:m}}}))}),[L,c,P,z]),Z=d((e=>{_((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return a.zoomLevel>1&&(e.preventDefault(),g(!0),S({x:e.clientX-a.position.x,y:e.clientY-a.position.y})),t}))}),[c]),j=d((e=>{p&&_((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.min(1,1/a.zoomLevel),i=(e.clientX-v.x)*n,r=(e.clientY-v.y)*n,o=z({x:i,y:r},a.bounds);return{...t,[c]:{...a,position:o}}}))}),[p,v,c,z]),q=d((()=>{g(!1)}),[]),X=d((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),O.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),_((e=>{const a=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&a.zoomLevel>1){g(!0);const e=t[0];e&&S({x:e.clientX-a.position.x,y:e.clientY-a.position.y})}else if(2===t.length){const e=t[0],a=t[1];if(e&&a){const t=e.clientX-a.clientX,n=e.clientY-a.clientY;M.current=Math.sqrt(t*t+n*n),D.current={x:(e.clientX+a.clientX)/2,y:(e.clientY+a.clientY)/2}}}return e}))}),[n,c]),$=d((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),_((a=>{const n=a[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};n.zoomLevel>1&&1===t.length&&e.preventDefault();let i=null,r=0,o=null;if(1===t.length&&p&&n.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/n.zoomLevel);i={x:(e.clientX-v.x)*t,y:(e.clientY-v.y)*t}}if(i){const e=z(i,n.bounds);return{...a,[c]:{...n,position:e}}}}else if(2===t.length&&null!==M.current){const i=t[0],l=t[1];if(i&&l){const t=i.clientX-l.clientX,s=i.clientY-l.clientY,d=Math.sqrt(t*t+s*s);r=.005*(d-M.current),M.current=d,o={x:(i.clientX+l.clientX)/2,y:(i.clientY+l.clientY)/2};const u=n.zoomLevel,h=Math.max(.1,Math.min(5,u+r));if(h!==u&&D.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(e){return a}if(!t||0===t.width||0===t.height)return a;const i=t.width/2,r=t.height/2,l=o.x-t.left-i,s=o.y-t.top-r,d=h/u,m=P(h,n.rotation),p={x:n.position.x+l*(1-d)*.5,y:n.position.y+s*(1-d)*.5},g=z(p,m);return D.current=o,{...a,[c]:{...n,zoomLevel:h,bounds:m,position:g}}}o&&(D.current=o)}}return a}))}),[L,n,p,v,c,z,P]),J=d((()=>{g(!1),M.current=null,D.current=null}),[]),ee=N[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:c,isModalOpen:h,zoomLevel:ee.zoomLevel,imagePosition:ee.position,isDragging:p,isFullscreen:f,rotationAngle:ee.rotation,showInfo:A,imageRef:w,containerRef:R,isTransitioning:C,setCurrentIndex:u,setZoomLevel:Y,setImagePosition:H,setIsDragging:g,setIsFullscreen:E,setRotationAngle:W,setShowInfo:b,openModal:F,closeModal:U,goToPrevious:G,goToNext:V,handleWheel:Q,handleMouseDown:Z,handleMouseMove:j,handleMouseUp:q,handleTouchStart:X,handleTouchMove:$,handleTouchEnd:J,handleDoubleClick:K,resetImageState:()=>{_((e=>({...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:l,enableGestures:m,onImageChange:v,onClose:S||(()=>{})}),K=c((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),Z=K[f],j=c((()=>["c-photo-viewer",`c-photo-viewer--thumbnails-${g}`,b?"c-photo-viewer--dragging":"",N?"c-photo-viewer--fullscreen":"",C?"c-photo-viewer--info-open":"",u?"is-disabled":"",s].filter(Boolean).join(" ")),[b,N,C,u,g,s]);return o((()=>{const e=()=>{R(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[R]),o((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:j,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:D}),t("div",{className:"c-photo-viewer__container",children:[e(pl,{currentIndex:f,imagesLength:n.length,onZoomOut:()=>x((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Q()},onZoomIn:()=>x((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(p){if(N)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}R(!N)}},onClose:S||D,isFullscreen:N,zoomLevel:E,onRotate:()=>{O((e=>(e+90)%360))},onDownload:()=>{if(null==Z||!Z.src)return;const e=document.createElement("a");e.href=Z.src,e.download=Z.title||`image-${f+1}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&null!=Z&&Z.src)try{await navigator.share({title:Z.title||"Shared Image",text:Z.description||"Check out this image",url:Z.src})}catch(e){}},showInfo:C,onToggleInfo:()=>M(!C),currentImage:Z}),t("div",{className:"c-photo-viewer__content",children:[e(gl,{show:n.length>1,onPrev:k,onNext:B,currentIndex:f,imagesLength:n.length,enableKeyboardNav:h,onClose:S||D}),(null==Z?void 0:Z.src)&&e(vl,{imageRef:T,containerRef:L,src:Z.src,alt:(null==Z?void 0:Z.alt)||`Image ${f+1}`,zoomLevel:E,dragPosition:A,isDragging:b,rotationAngle:_,isTransitioning:y,onMouseDown:z,onMouseMove:F,onMouseUp:U,onWheel:G,onTouchStart:V,onTouchMove:Y,onTouchEnd:H,onDoubleClick:W})]}),"none"!==g&&e(Sl,{images:K,currentIndex:f,goToImage:P}),e(fl,{show:C,image:Z,onClose:()=>M(!1)})]})]}):null};El.displayName="PhotoViewer";const Al=v({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),bl=a=>{let{content:n,position:l="top",trigger:s="click",className:c="",delay:d=0,offset:u=12,defaultOpen:h=!1,isOpen:m,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:v=!0,id:S,children:f,glass:E}=a;const{isOpen:A,setIsOpen:b,triggerRef:N,popoverRef:_,arrowRef:C,popoverId:T,currentPosition:L,updatePosition:y}=(e=>{let{position:t="top",trigger:a="click",offset:n=12,delay:l=0,defaultOpen:s=!1,isOpen:c,onOpenChange:d,closeOnClickOutside:u=!0,closeOnEscape:h=!0,id:m}=e;const[p,g]=i(s),[v,S]=i("auto"===t?"top":t),f=r(null),E=r(null),A=r(null),b=r(null),N=m||`popover-${Math.random().toString(36).slice(2,11)}`,_=void 0!==c,C=_?c:p,T=e=>{_||g(e),d&&d(e)};o((()=>{if("hover"!==a||!f.current||!E.current)return;const e=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null),l>0?b.current=setTimeout((()=>{T(!0)}),l):T(!0)},t=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null),b.current=setTimeout((()=>{var e;null!==(e=E.current)&&void 0!==e&&e.matches(":hover")||T(!1)}),100)},n=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null)},i=()=>{T(!1)};return f.current.addEventListener("mouseenter",e),f.current.addEventListener("mouseleave",t),E.current.addEventListener("mouseenter",n),E.current.addEventListener("mouseleave",i),()=>{f.current&&(f.current.removeEventListener("mouseenter",e),f.current.removeEventListener("mouseleave",t)),E.current&&(E.current.removeEventListener("mouseenter",n),E.current.removeEventListener("mouseleave",i)),null!==b.current&&window.clearTimeout(b.current)}}),[a,l,C]);const L=e=>{if(!f.current||!E.current)return;const a=f.current.getBoundingClientRect(),i=E.current.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,l=a.top<50||a.bottom>o-50||a.left<50||a.right>r-50;if("scroll"===(null==e?void 0:e.type)&&!l)return;const s=a.top,c=o-a.bottom,d=a.left,u=r-a.right;let h="auto"===t?"top":t;if("auto"===t){var m;const e=[{position:"top",space:s},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),h=null===(m=e[0])||void 0===m?void 0:m.position}else("top"===t&&s<i.height+n&&c>=i.height+n||"bottom"===t&&c<i.height+n&&s>=i.height+n||"left"===t&&d<i.width+n&&u>=i.width+n||"right"===t&&u<i.width+n&&d>=i.width+n)&&(h={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[t]);S(h);let p=0,g=0;switch(h){case"top":p=a.top-i.height-n,g=a.left+a.width/2-i.width/2;break;case"bottom":p=a.bottom+n,g=a.left+a.width/2-i.width/2;break;case"left":p=a.top+a.height/2-i.height/2,g=a.left-i.width-n;break;case"right":p=a.top+a.height/2-i.height/2,g=a.right+n}g<0?g=5:g+i.width>r&&(g=r-i.width-5),p<0?p=5:p+i.height>o&&(p=o-i.height-5);const v=p+window.scrollY,A=g+window.scrollX;E.current.style.position="absolute",E.current.style.top=`${v}px`,E.current.style.left=`${A}px`};return o((()=>{if(!C||!f.current||!E.current)return;L(),window.addEventListener("resize",L);let e=null;const t=t=>{e||(e=setTimeout((()=>{L(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{L()}),500);return()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(a)}}),[C,t,n]),o((()=>{if(!C||!u)return;const e=e=>{E.current&&!E.current.contains(e.target)&&f.current&&!f.current.contains(e.target)&&T(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[C,u]),o((()=>{if(!C||!h)return;const e=e=>{"Escape"===e.key&&T(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[C,h]),o((()=>()=>{null!==b.current&&window.clearTimeout(b.current)}),[]),{isOpen:C,setIsOpen:T,triggerRef:f,popoverRef:E,arrowRef:A,popoverId:N,currentPosition:v,updatePosition:L}})({position:l,trigger:s,offset:u,delay:d,defaultOpen:h,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:v,id:S});return t(Al.Provider,{value:{isOpen:A,setIsOpen:b,triggerRef:N,popoverId:T,triggerType:s},children:[f,"undefined"!=typeof document&&I(t("div",{ref:_,className:`c-popover c-popover--${L} ${A?B.CLASSES.IS_OPEN:""} ${E?"c-popover--glass":""} ${c}`,id:T,role:"tooltip","aria-hidden":!A,children:[E?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===E?t:{...t,...E};return e(Gi,{...a,children:e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})})})})():e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})}),e("div",{ref:C,className:"c-popover__arrow"})]}),document.body)]})};bl.displayName="Popover";function Nl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function _l(e,t){return n.useMemo((()=>null==e&&null==t?null:a=>{Nl(e,a),Nl(t,a)}),[e,t])}const Cl=l(((a,n)=>{let{value:l=0,defaultValue:s,maxValue:c=5,allowHalf:u=!1,readOnly:h=!1,size:m="md",color:p,onChange:g,className:v="",label:S,id:f,useVanillaJS:E=!1,glass:A,...b}=a;const N=r(null),_=r(null),{currentValue:C,hoverValue:T,focusedIndex:L,setHoverValue:y,setFocused:x,handleKeyDown:I}=(e=>{let{value:t=0,maxValue:a=5,allowHalf:n=!1,readOnly:r=!1,onChange:o}=e;const l=void 0!==o,[s,c]=i(t),[u,h]=i(null),[m,p]=i(null),g=l?t:s,v=d((e=>{r||h(e)}),[r]),S=d((()=>{r||h(null)}),[r]),f=d((e=>{r||(l||c(e),null==o||o(e))}),[r,o,l]),E=d(((e,t)=>{if(r)return;const i=n?.5:1;let s=g;switch(e.key){case"ArrowRight":case"ArrowUp":s=Math.min(a,g+i),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":s=Math.max(0,g-i),e.preventDefault();break;case"Home":s=0,e.preventDefault();break;case"End":s=a,e.preventDefault();break;case" ":case"Enter":s=t,e.preventDefault();break;default:return}s!==g&&(l||c(s),null==o||o(s))}),[g,a,n,r,o,l]);return{currentValue:g,hoverValue:u,focusedIndex:m,handleMouseEnter:v,handleMouseLeave:S,handleClick:f,handleKeyDown:E,setFocused:p,setHoverValue:h,isControlled:l}})({value:void 0!==l?l:s,maxValue:c,allowHalf:u,readOnly:h,onChange:g}),w=d(((e,t)=>{if(!h)if(u){const a=e.currentTarget.getBoundingClientRect(),n=a.left+a.width/2,i=e.clientX<n?t-.5:t;y(Math.max(.5,i))}else y(t)}),[h,u,y]),R=d(((e,t)=>{if(h||!u)return;const a=e.currentTarget.getBoundingClientRect(),n=a.left+a.width/2,i=e.clientX<n?t-.5:t;y(Math.max(.5,i))}),[h,u,y]),O=d((()=>{h||y(null)}),[h,y]),M=d(((e,t)=>{if(h)return;let a=t;if(u){const n=e.currentTarget.getBoundingClientRect(),i=n.left+n.width/2;a=e.clientX<i?t-.5:t,a=Math.max(.5,a)}null==g||g(a)}),[h,g,u]);o((()=>{if(E&&"undefined"!=typeof window&&N.current)return()=>{_.current&&_.current.destroy()}}),[E,l,s,c,u,h,m,p,g]),o((()=>{E&&_.current&&_.current.updateOptions({value:void 0!==l?l:s,maxValue:c,allowHalf:u,readOnly:h,size:m,color:p})}),[E,l,s,c,u,h,m,p]);const D=["c-rating","sm"===m?K.CLASSES.SMALL:"","lg"===m?K.CLASSES.LARGE:"",p?`c-rating--${p}`:"",v].filter(Boolean).join(" ");if(E)return e("div",{className:D,ref:_l(N,n),id:f,...b});const k=null!==T?T:C,B=e("div",{className:D,ref:_l(N,n),id:f,"data-readonly":h?"true":"false",onMouseLeave:O,role:h?"img":"radiogroup","aria-label":S||`Rating: ${C} out of ${c} stars`,...b,children:(()=>{const a=[],n=u?Math.floor(2*k)/2:Math.round(k),i=f||`rating-${Math.random().toString(36).substring(2,9)}`;for(let r=1;r<=c;r++){const o=r<=Math.floor(n),l=u&&r-.5===n,s=["c-rating__star",o?K.CLASSES.FULL:"",l?K.CLASSES.HALF:"",p?`c-rating__star--${p}`:"",L===r?"c-rating__star--focused":""].filter(Boolean).join(" "),d=`${i}-star-${r}`;a.push(e("div",{id:d,className:s,"data-value":r,role:h?"presentation":"button",tabIndex:h?-1:0,"aria-label":`${r} ${1===r?"star":"stars"}`,"aria-checked":r<=n,"aria-setsize":c,"aria-posinset":r,onClick:e=>M(e,r),onMouseEnter:e=>w(e,r),onMouseMove:e=>R(e,r),onFocus:()=>x(r),onBlur:()=>x(null),onKeyDown:e=>I(e,r),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${i}-${r})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${i}-${r}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},r))}return a})()});if(A){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===A?t:{...t,...A};return e(Gi,{...a,children:B})}return B}));Cl.displayName="Rating";const Tl=a=>{let{productName:n,productImage:l,initialRating:s=0,maxRating:c=5,allowHalf:d=!0,ratingColor:u="warning",onSubmit:h,className:m=""}=a;const[p,g]=i(s),[v,S]=i(""),[f,E]=i(!1),A=r(null),b=r(null);o((()=>{if("undefined"!=typeof window&&A.current)return()=>{b.current&&b.current.destroy()}}),[n,l,s,c,d,u,h]);const N=e=>{e.preventDefault(),h&&h(p,v),E(!0)},_=["c-product-review",m].filter(Boolean).join(" ");return f?e("div",{className:_,ref:A,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(tr,{variant:"secondary",label:"Write another review",onClick:()=>{E(!1),g(0),S("")}})]})}):t("div",{className:_,ref:A,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),l&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:l,alt:n,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:N,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(Cl,{value:p,onChange:g,allowHalf:d,maxValue:c,size:"lg",color:u}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:v,onChange:e=>S(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(tr,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};Tl.displayName="ProductReview";const Ll=l(((t,a)=>{let{value:n,variant:i="primary",size:r="md",className:o="",disabled:l=!1,ariaLabel:s=de.DEFAULTS.ARIA_LABEL}=t;const{progressValue:c,progressStyle:d,progressClasses:u}=(e=>{let{value:t,variant:a="primary",size:n="md",className:i=""}=e;const r=Math.min(Math.max(t,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":`${r}%`},progressClasses:[o,a?`${o}--${a}`:"",n?`${o}--${n}`:"",i||""].filter(Boolean).join(" ")}})({value:n,variant:i,size:r,className:o});return e("div",{ref:a,className:u,style:d,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c,"aria-label":s,"aria-disabled":l,children:e("div",{className:de.CLASSES.BAR})})})),yl=a=>{let{title:n,text:i,actions:r,imageSrc:o,imageAlt:l="Image",center:s=!1,breakout:c=!1,reverse:d=!1,contentColumns:u,backgroundImageSrc:h,showOverlay:m=!0,contentWidth:p,className:g=""}=a;const{generateRiverClassNames:v,generateContentClass:S,generateVisualClass:f,hasBackgroundImage:E,hasForegroundImage:A,textContent:b}=Oo({title:n,text:i,imageSrc:o,imageAlt:l,center:s,breakout:c,reverse:d,backgroundImageSrc:h,showOverlay:m,contentWidth:p}),N=p?{[Y.ATTRIBUTES.CONTENT_WIDTH]:p}:void 0,_=()=>E?t("div",{className:Y.SELECTORS.BG.replace(".",""),children:[e("img",{src:h,alt:"Background",className:Y.SELECTORS.BG_IMAGE.replace(".","")}),m&&e("div",{className:Y.SELECTORS.OVERLAY.replace(".","")})]}):null,C=()=>A?e("div",{className:f(),children:e("div",{className:Y.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:o,alt:l,className:Y.SELECTORS.IMAGE.replace(".","")})})}):null;return u&&u.length>0?t("div",{className:v(g),style:N,children:[_(),e("div",{className:`${Y.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:Y.SELECTORS.ROW.replace(".",""),children:[!d&&C(),t("div",{className:S(),children:[u.map(((t,a)=>e("div",{className:`${Y.SELECTORS.CONTENT_COL.replace(".","")} ${Y.SELECTORS[`CONTENT_COL_${t.type.toUpperCase()}`].replace(".","")}`,children:t.content},a))),r&&e("div",{className:Y.SELECTORS.ACTIONS.replace(".",""),children:r})]}),d&&C()]})})]}):t("div",{className:v(g),style:N,children:[_(),e("div",{className:`${Y.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:Y.SELECTORS.ROW.replace(".",""),children:[!d&&C(),t("div",{className:S(),children:[n&&e("h2",{className:Y.SELECTORS.TITLE.replace(".",""),children:n}),b.map(((t,a)=>e("p",{className:Y.SELECTORS.TEXT.replace(".",""),children:t},a))),r&&e("div",{className:Y.SELECTORS.ACTIONS.replace(".",""),children:r})]}),d&&C()]})})]})};yl.displayName="River";const xl=a=>{let{title:n,label:i,text:l,actions:s,alignment:c="left",backgroundImageSrc:d,showOverlay:u=!1,imageSrc:h,imageAlt:m="Section image",size:p="md",skeleton:g=!1,className:v=""}=a;const S=r(null),f=r(null);o((()=>{if("undefined"!=typeof window&&S.current)return()=>{f.current&&f.current.destroy()}}),[c,d,u,p,g]);const E=["c-sectionintro","center"===c?V.CLASSES.CENTER:"","sm"===p?V.CLASSES.SMALL:"","lg"===p?V.CLASSES.LARGE:"",d?"c-sectionintro--has-bg":"",v].filter(Boolean).join(" ");if(g)return e("div",{className:E,ref:S,children:t("div",{className:"c-sectionintro__container",children:[i&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),l&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),s&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})});return t("div",{className:E,ref:S,children:[d?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:d,alt:"Background",className:"c-sectionintro__bg-image"}),u&&e("div",{className:"c-sectionintro__overlay"})]}):null,i&&e("div",{className:"c-sectionintro__label",children:i}),e("h2",{className:"c-sectionintro__title",children:n}),l&&e("div",{className:"c-sectionintro__text",children:l}),s&&e("div",{className:"c-sectionintro__actions",children:s}),h&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:h,alt:m,className:"c-sectionintro__image"})})]})};xl.displayName="SectionIntro";const Il=l(((a,n)=>{var i;const{slides:r=[],height:o=300,width:l="100%",slidesToShow:s=1,spaceBetween:d=0,loop:u=!1,initialSlide:h=0,direction:m="horizontal",speed:p=300,allowTouchMove:g=!0,threshold:v=50,grabCursor:S=!0,autoplay:f,navigation:E,pagination:A,className:b,onSlideChange:N,..._}=a;if(!r||0===r.length)return e("div",{className:"c-slider c-slider--empty",style:{height:o,width:l},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const C=jo({slides:r,slidesToShow:s,spaceBetween:d,loop:u,initialSlide:h,direction:m,speed:p,allowTouchMove:g,threshold:v,autoplay:f,onSlideChange:N}),{containerRef:T,wrapperRef:L,allSlides:y,realIndex:x,translateValue:I,slideWidth:w,transitioning:R,touching:O,slideNext:M,slidePrev:D,goToSlide:k,canSlideNext:B,canSlidePrev:P,handleTouchStart:z,handleTouchMove:F,handleTouchEnd:U,loopedSlides:G}=C,V=c((()=>0===w?0:y.length*(w+d)-d),[y.length,w,d]),Y=["c-slider","vertical"===m&&"c-slider--vertical",S&&"c-slider--grab-cursor",O&&"c-slider--grabbing",u&&"c-slider--loop",b].filter(Boolean).join(" ");return t("div",{ref:n||T,className:Y,style:{height:"number"==typeof o?`${o}px`:o,width:"number"==typeof l?`${l}px`:l,overflow:"hidden",position:"relative",cursor:S&&!O?"grab":O?"grabbing":"default",..._.style},onTouchStart:z,onTouchMove:F,onTouchEnd:U,onMouseDown:z,onMouseMove:F,onMouseUp:U,onMouseLeave:U,children:[e("div",{ref:L,className:"c-slider__wrapper",style:{display:"flex",flexDirection:"vertical"===m?"column":"row",width:"horizontal"===m?`${V}px`:"100%",height:"vertical"===m?`${V}px`:"100%",transform:"horizontal"===m?`translateX(${I}px)`:`translateY(${I}px)`,transition:!R||null!==(i=C.repositioningRef)&&void 0!==i&&i.current?"none":`transform ${p}ms ease-out`,willChange:"transform"},children:y.map(((a,n)=>t("div",{className:["c-slider__slide",(u?n%r.length===x:n===x)&&"c-slider__slide--active",a.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===m?"100%":`${w}px`,height:"vertical"===m?`${w}px`:"100%",flexShrink:0,marginRight:"horizontal"===m&&n<y.length-1?`${d}px`:0,marginBottom:"vertical"===m&&n<y.length-1?`${d}px`:0},children:[a.video?e("video",{src:a.video.src,poster:a.video.poster,autoPlay:a.video.autoplay,loop:a.video.loop,muted:a.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${a.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:a.content}):a.image?e("img",{src:a.image,alt:a.alt||a.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):a.content,(a.title||a.description)&&t("div",{className:"c-slider__slide-content",children:[a.title&&e("h3",{children:a.title}),a.description&&e("p",{children:a.description})]})]},a.id||n)))}),E&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:D,disabled:!P,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:M,disabled:!B,"aria-label":"Next slide"})]}),A&&e("div",{className:"c-slider__pagination",children:r.map(((t,a)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(a===x?"c-slider__pagination-bullet--active":""),onClick:()=>k(a),"aria-label":`Go to slide ${a+1}`},a)))})]})}));Il.displayName="Slider";const wl=a=>{let{items:n,activeIndex:r=0,vertical:l=!1,onStepChange:s,className:c="",glass:d}=a;const[u,h]=i(r);o((()=>{u!==r&&h(r)}),[r]);const m=e("div",{className:`c-steps ${l?F.CLASSES.VERTICAL:""} ${c}`,role:"navigation","aria-label":"Steps",children:n.map(((a,n)=>t("div",{className:`c-steps__item ${n<=u?F.CLASSES.ACTIVE:""} ${n<u?F.CLASSES.COMPLETED:""}`,"aria-current":n===u?"step":void 0,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[e("div",{className:"c-steps__number",children:a.number}),e("div",{className:"c-steps__text",children:a.text}),a.content&&e("div",{className:"c-steps__custom-content",children:a.content})]})]},`step-${n}`)))});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===d?t:{...t,...d};return e(Gi,{...a,children:m})}return m};wl.displayName="Steps";const Rl=a=>{let{items:n,activeIndex:r=z.DEFAULTS.ACTIVE_INDEX,onTabChange:o,className:l="",glass:s}=a;const[c,d]=i(r),u=t("div",{className:`c-tabs js-atomix-tab ${l}`,children:[e("ul",{className:"c-tabs__nav",children:n.map(((t,a)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:`c-tabs__nav-btn ${a===c?z.CLASSES.ACTIVE:""}`,onClick:()=>(e=>{d(e),o&&o(e)})(a),"data-tabindex":a,role:"tab","aria-selected":a===c,"aria-controls":`tab-panel-${a}`,children:t.label})},`tab-nav-${a}`)))}),e("div",{className:"c-tabs__panels",children:n.map(((t,a)=>e("div",{className:`c-tabs__panel ${a===c?z.CLASSES.ACTIVE:""}`,"data-tabindex":a,id:`tab-panel-${a}`,role:"tabpanel","aria-labelledby":`tab-nav-${a}`,style:{height:a===c?"auto":"0px",opacity:a===c?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},`tab-panel-${a}`)))})]});if(s){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===s?t:{...t,...s};return e(Gi,{...a,children:u})}return u};Rl.displayName="Tab";const Ol=a=>{let{quote:n,author:i,size:l="",skeleton:s=!1,className:c=""}=a;const d=r(null),u=r(null);o((()=>{if("undefined"!=typeof window&&d.current)return()=>{u.current&&u.current.destroy()}}),[l,s]);const h=["c-testimonial","sm"===l?U.CLASSES.SMALL:"","lg"===l?U.CLASSES.LARGE:"",c].filter(Boolean).join(" ");return t("div",s?{className:h,ref:d,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:h,ref:d,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),i&&t("div",{className:"c-testimonial__author",children:[i.avatarSrc&&e("img",{src:i.avatarSrc,alt:i.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:i.name}),e("p",{className:"c-testimonial__author-role",children:i.role})]})]})]})};Ol.displayName="Testimonial";const Ml=a=>{let{items:n=[],title:r="Todo List",onAddTodo:l,onToggleTodo:s,onDeleteTodo:c,size:d="md",placeholder:u="Add a new todo",showCompleted:h=!0,className:m="",disabled:p=!1}=a;const{inputText:g,setInputText:v,addTodo:S,generateTodoClasses:f,generateItemClasses:E}=Wo({items:n,title:r,size:d,placeholder:u,showCompleted:h,disabled:p}),[A,b]=i(n);o((()=>{b(n)}),[n]);const N=h?A:A.filter((e=>!e.completed)),_=f({size:d,className:m,disabled:p});return t("div",{className:_,children:[r&&e("h2",{className:"c-todo__title",children:r}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Go(),text:g.trim(),completed:!1};b((e=>[...e,t])),l&&l(g),v("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:u,value:g,onChange:e=>v(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(Wi,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===N.length?e("li",{className:"c-todo__empty",children:"No items to display"}):N.map((a=>e("li",{className:E(a),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:a.completed,onChange:()=>(e=>{p||(b((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),s&&s(e))})(a.id),disabled:p,"aria-label":`Mark "${a.text}" as ${a.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:a.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(b((t=>t.filter((t=>t.id!==e)))),c&&c(e))})(a.id),disabled:p,"aria-label":`Delete "${a.text}"`,children:e(Wi,{name:"Trash",size:"sm"})})]})},a.id)))})]})};Ml.displayName="Todo";const Dl=t=>{let{initialOn:a=!1,onToggleOn:n,onToggleOff:r,disabled:o=!1,className:l="",glass:s}=t;const[c,d]=i(a),u=()=>{if(o)return;const e=!c;d(e),e?n&&n():r&&r()},h=e("div",{className:`c-toggle ${c?P.CLASSES.IS_ON:""} ${o?"is-disabled":""} ${l}`,onClick:u,onKeyDown:e=>{o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),u())},role:"switch","aria-checked":c,tabIndex:o?-1:0,"aria-disabled":o,children:e("div",{className:"c-toggle__switch"})});if(s){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===s?t:{...t,...s};return e(Gi,{...a,children:h})}return h};Dl.displayName="Toggle";const kl=a=>{let{content:n,children:o,position:l=k.DEFAULTS.POSITION,trigger:s=k.DEFAULTS.TRIGGER,className:c="",delay:d=k.DEFAULTS.DELAY,offset:u=k.DEFAULTS.OFFSET,glass:h}=a;const[m,p]=i(!1),g=r(null),v=()=>{g.current&&clearTimeout(g.current),d>0?g.current=setTimeout((()=>{p(!0)}),d):p(!0)},S=()=>{g.current&&clearTimeout(g.current),p(!1)},f=()=>{m?S():v()},E={};return"hover"===s?(E.onMouseEnter=v,E.onMouseLeave=S):"click"===s&&(E.onClick=f),t("div",{className:"u-position-relative u-d-inline-block",children:[e("div",{className:`${k.SELECTORS.TRIGGER.substring(1)}${c?` ${c}`:""}`,...E,children:o}),m&&e("div",{className:`c-tooltip ${k.SELECTORS.TOOLTIP.substring(1)} ${(()=>{switch(l){case"top":default:return"c-tooltip--top";case"bottom":return"c-tooltip--bottom";case"left":return"c-tooltip--left";case"right":return"c-tooltip--right";case"top-left":return"c-tooltip--top-left";case"top-right":return"c-tooltip--top-right";case"bottom-left":return"c-tooltip--bottom-left";case"bottom-right":return"c-tooltip--bottom-right"}})()} ${h?"c-tooltip--glass":""}`,"data-tooltip-position":l,"data-tooltip-trigger":s,children:h?(()=>{const a={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},i=!0===h?a:{...a,...h};return e(Gi,{...i,children:t("div",{className:`c-tooltip__content ${k.SELECTORS.CONTENT.substring(1)} ${m&&"is-active"}`,children:[e("span",{className:k.SELECTORS.ARROW.substring(1)}),n]})})})():t("div",{className:`c-tooltip__content ${k.SELECTORS.CONTENT.substring(1)} ${m&&"is-active"}`,children:[e("span",{className:k.SELECTORS.ARROW.substring(1)}),n]})})]})};kl.displayName="Tooltip";const Bl=a=>{let{disabled:n=!1,maxSizeInMB:o=5,acceptedFileTypes:l=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:s=!1,title:c="Drag and Drop files here",supportedFilesText:d="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:u="Choose File",helperText:h=`Maximum size: ${o}MB`,icon:m=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:p,onFileUpload:g,onFileUploadComplete:v,onFileUploadError:S,className:f=""}=a;const E=r(null),[A,b]=i("idle"),[N,_]=i(!1),[C,T]=i(null),[L,y]=i(0),[x,I]=i(null),[w,R]=i(null),[O,M]=i(null),D=r(0),k=e=>{if(!e.length)return;const t=(s?e:[e[0]]).filter((e=>void 0!==e&&B(e)));t.length&&p&&p(t),t.length&&(T(t[0]||null),t[0]&&P(t[0]))},B=e=>{const t=1024*o*1024;if(e.size>t)return b("error"),R(`File too large. Maximum size is ${o}MB.`),!1;if(null!=l&&l.length){if(!l.some((t=>{if(t.endsWith("/*")){const a=t.split("/")[0];return e.type.startsWith(`${a}/`)}return e.type===t})))return b("error"),R("File type not supported."),!1}return!0},P=e=>{b("loading"),y(0);let t=0;const a=setInterval((()=>{t+=5,t<100?(y(t),I(`${Math.ceil((100-t)/5)} seconds left`),g&&g(e,t)):(clearInterval(a),b("success"),M("Upload successful"),v&&v(e))}),500)};return e("div",{className:`c-upload ${N?H.CLASSES.DRAGGING:""} ${n?H.CLASSES.DISABLED:""} ${f}`,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||(D.current++,1===D.current&&_(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(D.current--,0===D.current&&_(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{var t;if(e.preventDefault(),e.stopPropagation(),n)return;if(D.current=0,_(!1),null===(t=e.dataTransfer.files)||void 0===t||!t.length)return;const a=Array.from(e.dataTransfer.files);k(a)},children:t("div",{className:"c-upload__inner",children:[e("input",{type:"file",ref:E,className:"c-upload__input",onChange:e=>{var t;if(null===(t=e.target.files)||void 0===t||!t.length)return;const a=Array.from(e.target.files);k(a)},disabled:n,accept:l.join(","),multiple:s}),t("div",{className:"c-upload__inner",children:[e("div",{className:"c-upload__icon",children:m}),e("h3",{className:"c-upload__title",children:c}),e("p",{className:"c-upload__text",children:d}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:()=>{E.current&&!n&&E.current.click()},disabled:n,children:u}),e("p",{className:"c-upload__helper-text",children:h})]}),"idle"!==A&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":L},children:[C&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:C.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[L,"%"]}),e("div",{className:"c-upload__loader-time",children:x})]})]}),("loading"===A||"error"===A||"success"===A)&&t("div",{className:"c-upload__loader-control",children:[e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),e("button",{type:"button",className:"c-upload__loader-close c-btn",onClick:()=>{b("idle"),T(null),y(0),I(null),R(null),M(null)},children:e("i",{className:"icon-lux-x"})})]})]})]})})};Bl.displayName="Upload";const Pl=l(((n,l)=>{var s;let{src:c,type:u="video",youtubeId:h,poster:m,autoplay:p=!1,loop:g=!1,muted:v=!1,controls:S=!0,preload:I="metadata",width:w,height:R,aspectRatio:O="16:9",className:M="",onPlay:D,onPause:k,onEnded:B,onTimeUpdate:P,onVolumeChange:z,onFullscreenChange:F,onError:U,showDownload:G=!1,showShare:V=!1,showSettings:Y=!0,playbackRates:H=[.5,.75,1,1.25,1.5,2],subtitles:W,quality:Q,ambientMode:K=!1,glass:Z=!1,glassOpacity:j=1,glassContent:q,...X}=n;const $=r(null),J=r(null),ee=r(null),te=r(null),[ae,ne]=i(8),ie="youtube"===u||h||c&&Yo(c),re=h||(ie&&c?Vo(c):null),{isPlaying:oe,currentTime:le,duration:se,volume:ce,isMuted:de,isFullscreen:he,isLoading:me,playbackRate:pe,currentQuality:ge,showControls:ve,play:Se,pause:fe,togglePlay:Ee,seek:Ae,setVolume:be,toggleMute:Ne,toggleFullscreen:_e,togglePictureInPicture:Ce,setPlaybackRate:Te,setQuality:Le,formatTime:ye,getProgressPercentage:xe,getBufferedPercentage:Ie}=function(e){let{videoRef:t,containerRef:a,onPlay:n,onPause:l,onEnded:s,onTimeUpdate:c,onVolumeChange:u,onFullscreenChange:h,onError:m,playbackRates:p=[.5,.75,1,1.25,1.5,2],quality:g}=e;const[v,S]=i(!1),[f,E]=i(0),[A,b]=i(0),[N,_]=i(1),[C,T]=i(!1),[L,y]=i(!1),[x,I]=i(!1),[w,R]=i(!1),[O,M]=i(0),[D,k]=i(1),[B,P]=i((null==g?void 0:g[0])||null),[z,F]=i(!0),U=r(null),G=d((()=>{U.current&&clearTimeout(U.current),F(!0),U.current=setTimeout((()=>{v&&F(!1)}),3e3)}),[v]),V=d((async()=>{if(t.current)try{await t.current.play(),S(!0),null==n||n()}catch(e){}}),[t,n]),Y=d((()=>{t.current&&(t.current.pause(),S(!1),null==l||l())}),[t,l]),H=d((()=>{v?Y():V()}),[v,V,Y]),W=d((e=>{t.current&&(t.current.currentTime=Math.max(0,Math.min(e,A)))}),[t,A]),Q=d((e=>{const a=Math.max(0,Math.min(1,e));t.current&&(t.current.volume=a,_(a),T(0===a),null==u||u(a))}),[t,u]),K=d((()=>{if(t.current){const e=!C;t.current.muted=e,T(e)}}),[t,C]),Z=d((async()=>{if(a.current)try{L?document.exitFullscreen&&await document.exitFullscreen():a.current.requestFullscreen&&await a.current.requestFullscreen()}catch(e){}}),[a,L]),j=d((async()=>{if(t.current)try{x?document.exitPictureInPicture&&await document.exitPictureInPicture():t.current.requestPictureInPicture&&await t.current.requestPictureInPicture()}catch(e){}}),[t,x]),q=d((e=>{t.current&&Oi(p).call(p,e)&&(t.current.playbackRate=e,k(e))}),[t,p]),X=d((e=>{if(t.current&&g){const a=t.current.currentTime,n=!t.current.paused;t.current.src=e.src,t.current.currentTime=a,n&&t.current.play(),P(e)}}),[t,g]),$=d((e=>{const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`}),[]),J=d((()=>A>0?f/A*100:0),[f,A]),ee=d((()=>A>0?O/A*100:0),[O,A]);return o((()=>{const e=t.current;if(!e)return;const a=()=>R(!0),i=()=>R(!1),r=()=>{b(e.duration),_(e.volume),T(e.muted)},o=()=>{E(e.currentTime),null==c||c(e.currentTime)},d=()=>{e.buffered.length>0&&M(e.buffered.end(e.buffered.length-1))},h=()=>{S(!0),null==n||n()},p=()=>{S(!1),null==l||l()},g=()=>{S(!1),null==s||s()},v=()=>{_(e.volume),T(e.muted),null==u||u(e.volume)},f=e=>{R(!1),null==m||m(e)},A=()=>I(!0),N=()=>I(!1);return e.addEventListener("loadstart",a),e.addEventListener("canplay",i),e.addEventListener("loadedmetadata",r),e.addEventListener("timeupdate",o),e.addEventListener("progress",d),e.addEventListener("play",h),e.addEventListener("pause",p),e.addEventListener("ended",g),e.addEventListener("volumechange",v),e.addEventListener("error",f),e.addEventListener("enterpictureinpicture",A),e.addEventListener("leavepictureinpicture",N),()=>{e.removeEventListener("loadstart",a),e.removeEventListener("canplay",i),e.removeEventListener("loadedmetadata",r),e.removeEventListener("timeupdate",o),e.removeEventListener("progress",d),e.removeEventListener("play",h),e.removeEventListener("pause",p),e.removeEventListener("ended",g),e.removeEventListener("volumechange",v),e.removeEventListener("error",f),e.removeEventListener("enterpictureinpicture",A),e.removeEventListener("leavepictureinpicture",N)}}),[t,n,l,s,c,u,m]),o((()=>{const e=()=>{const e=!!document.fullscreenElement;y(e),null==h||h(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[h]),o((()=>{const e=e=>{var t;if(null!==(t=a.current)&&void 0!==t&&t.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),W(f-10);break;case"ArrowRight":e.preventDefault(),W(f+10);break;case"ArrowUp":e.preventDefault(),Q(Math.min(1,N+.1));break;case"ArrowDown":e.preventDefault(),Q(Math.max(0,N-.1));break;case"KeyM":e.preventDefault(),K();break;case"KeyF":e.preventDefault(),Z()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[H,W,f,Q,N,K,Z,a]),o((()=>{const e=a.current;if(!e)return;const t=()=>G(),n=()=>{U.current&&clearTimeout(U.current),v&&F(!1)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",n),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",n),U.current&&clearTimeout(U.current)}}),[a,G,v]),{isPlaying:v,currentTime:f,duration:A,volume:N,isMuted:C,isFullscreen:L,isPictureInPicture:x,isLoading:w,buffered:O,playbackRate:D,currentQuality:B,showControls:z,play:V,pause:Y,togglePlay:H,seek:W,setVolume:Q,toggleMute:K,toggleFullscreen:Z,togglePictureInPicture:j,setPlaybackRate:q,setQuality:X,formatTime:$,getProgressPercentage:J,getBufferedPercentage:ee}}({videoRef:$,containerRef:J,onPlay:D,onPause:k,onEnded:B,onTimeUpdate:P,onVolumeChange:z,onFullscreenChange:F,onError:U,playbackRates:H,quality:Q});!function(e){let{videoRef:t,canvasRef:a,enabled:n,blur:i=60,opacity:l=.6,scale:s=1.2}=e;const c=r(60);o((()=>{if(!n||!t.current||!a.current)return;const e=t.current,r=a.current,o=r.getContext("2d");if(!o)return;const d=()=>{if(!e||!r||!o)return;const t=e.getBoundingClientRect();r.width=t.width*s,r.height=t.height*s,o.filter=`blur(${i}px)`,o.globalAlpha=l;try{o.drawImage(e,0,0,r.width,r.height)}catch(e){}n&&(c.current=requestAnimationFrame(d))},u=()=>{n&&d()},h=()=>{c.current&&cancelAnimationFrame(c.current)};return e.addEventListener("play",u),e.addEventListener("pause",h),e.addEventListener("ended",h),e.paused||u(),()=>{e.removeEventListener("play",u),e.removeEventListener("pause",h),e.removeEventListener("ended",h),c.current&&cancelAnimationFrame(c.current)}}),[n,i,l,s,t,a])}({videoRef:$,canvasRef:ee,enabled:K});const[we,Re]=i(!1),[Oe,Me]=i("quality"),[De,ke]=i((null==W||null===(s=W.find((e=>e.default)))||void 0===s?void 0:s.srcLang)||null),[Be,Pe]=i({width:0,height:0}),ze=d((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;Ae(a*se)}),[se,Ae]),Fe=d((e=>{const t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width;be(a)}),[be]),Ue=d((()=>{if(c){const e=document.createElement("a");e.href=c,e.download="video",e.click()}}),[c]),Ge=d((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Ve=d((e=>{const t=$.current;if(t){const a=t.textTracks;for(let e=0;e<a.length;e++){const t=a[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<a.length;t++){const n=a[t];if(n&&n.language===e){n.mode="showing";break}}ke(e)}}),[$]);o((()=>{const e=$.current;if(e&&W){const t=()=>{setTimeout((()=>{const e=W.find((e=>e.default));e&&Ve(e.srcLang)}),100)},a=()=>{if(e.textTracks.length>0){const e=W.find((e=>e.default));e&&Ve(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",a),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",a)}}}),[W,Ve,$]),o((()=>{const e=()=>{if(ie&&te.current){const e=te.current.getBoundingClientRect();Pe({width:e.width,height:e.height})}else if($.current){const e=$.current.getBoundingClientRect();Pe({width:e.width,height:e.height})}},t=setTimeout(e,100),a=new ResizeObserver(e);if(ie&&te.current){const n=te.current;a.observe(n);const i=()=>e();return n.addEventListener("load",i),()=>{clearTimeout(t),a.disconnect(),n.removeEventListener("load",i)}}if($.current){const n=$.current;a.observe(n);const i=()=>e();return n.addEventListener("loadedmetadata",i),()=>{clearTimeout(t),a.disconnect(),n.removeEventListener("loadedmetadata",i)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),a.disconnect(),window.removeEventListener("resize",e)}}),[ie,$,te]);const Ye=d((()=>{J.current&&J.current.focus()}),[]);o((()=>{const e=()=>{if(!J.current)return;const e=window.getComputedStyle(J.current),t=e.borderRadius||e.borderTopLeftRadius,a=parseFloat(t);isNaN(a)||ne(a)};e();let t=null;return"undefined"!=typeof ResizeObserver&&J.current&&(t=new ResizeObserver(e),t.observe(J.current)),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t&&J.current&&(t.unobserve(J.current),t.disconnect())}}),[]);const He=d((e=>{switch(e.key){case" ":case"k":e.preventDefault(),Ee();break;case"ArrowLeft":e.preventDefault(),Ae(le-10);break;case"ArrowRight":e.preventDefault(),Ae(le+10);break;case"ArrowUp":e.preventDefault(),be(Math.min(1,ce+.1));break;case"ArrowDown":e.preventDefault(),be(Math.max(0,ce-.1));break;case"m":e.preventDefault(),Ne();break;case"f":e.preventDefault(),_e()}}),[Ee,le,Ae,ce,be,Ne,_e]);return t("div",{ref:J,className:`${ue.CLASSES.BASE} ${ie?ue.CLASSES.YOUTUBE:""} ${K?ue.CLASSES.AMBIENT:""} ${Z?ue.CLASSES.GLASS:""} ${M}`,style:{width:w,height:R,aspectRatio:O?O.replace(":","/"):void 0},tabIndex:0,onClick:Ye,onKeyDown:He,role:"application","aria-label":"Video player",...X,children:[K&&e("canvas",{ref:ee,className:ue.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ie&&re?e("iframe",{ref:te,className:ue.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:p?"1":"0",loop:g?"1":"0",mute:v?"1":"0",controls:S?"1":"0",modestbranding:"1",rel:"0",...g&&{playlist:re}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):e("video",{ref:e=>{$&&$.current!==e&&($.current=e),"function"==typeof l?l(e):l&&l.current!==e&&(l.current=e)},className:ue.CLASSES.VIDEO,src:c,poster:m,autoPlay:p,loop:g,muted:v,preload:I,controls:!1,crossOrigin:"anonymous",children:W&&W.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),me&&e("div",{className:ue.CLASSES.LOADING,children:e("div",{className:ue.CLASSES.SPINNER})}),Z&&e("div",{className:ue.CLASSES.GLASS_OVERLAY,children:e(Gi,{..."boolean"==typeof Z?{}:Z,style:{borderRadius:"inherit"},mouseContainer:J,displacementScale:30,blurAmount:0,saturation:100,aberrationIntensity:0,cornerRadius:ae,elasticity:0,children:!q&&e("div",{style:{width:Be.width>0?`${Be.width}px`:"100%",height:Be.height>0?`${Be.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),Z&&q&&e("div",{className:ue.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:q}),S&&!ie&&t("div",{className:`${ue.CLASSES.CONTROLS} ${ve?ue.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:Z?3:"auto"},children:[e("div",{className:ue.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:ue.CLASSES.PROGRESS_BAR,onClick:ze,children:[e("div",{className:ue.CLASSES.PROGRESS_BUFFERED,style:{width:`${Ie()}%`}}),e("div",{className:ue.CLASSES.PROGRESS_PLAYED,style:{width:`${xe()}%`}}),e("div",{className:ue.CLASSES.PROGRESS_THUMB,style:{left:`${xe()}%`}})]})}),t("div",{className:ue.CLASSES.CONTROLS_ROW,children:[t("div",{className:ue.CLASSES.CONTROLS_LEFT,children:[e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Ee,"aria-label":oe?"Pause":"Play",children:e(oe?f:E,{size:20})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:()=>Ae(le-10),"aria-label":"Skip back 10 seconds",children:e(A,{size:20})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:()=>Ae(le+10),"aria-label":"Skip forward 10 seconds",children:e(b,{size:20})}),t("div",{className:ue.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Ne,"aria-label":de?"Unmute":"Mute",children:e(de||0===ce?N:_,{size:20})}),e("div",{className:ue.CLASSES.VOLUME_SLIDER,children:e("div",{className:ue.CLASSES.VOLUME_BAR,onClick:Fe,children:e("div",{className:ue.CLASSES.VOLUME_FILL,style:{width:100*ce+"%"}})})})]}),t("div",{className:ue.CLASSES.TIME_DISPLAY,children:[e("span",{children:ye(le)}),e("span",{children:"/"}),e("span",{children:ye(se)})]})]}),t("div",{className:ue.CLASSES.CONTROLS_RIGHT,children:[Y&&t("div",{className:ue.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:()=>Re(!we),"aria-label":"Settings",children:e(C,{size:20})}),we&&t("div",{className:ue.CLASSES.SETTINGS_MENU,children:[t("div",{className:ue.CLASSES.SETTINGS_TABS,children:[Q&&Q.length>1&&e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"quality"===Oe?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Me("quality"),children:"Quality"}),e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"speed"===Oe?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Me("speed"),children:"Speed"}),e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"subtitles"===Oe?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Me("subtitles"),children:"Subtitles"})]}),t("div",{className:ue.CLASSES.SETTINGS_CONTENT,children:["quality"===Oe&&Q&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:Q.map((t=>e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${(null==ge?void 0:ge.label)===t.label?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Le(t),children:t.label},t.label)))}),"speed"===Oe&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:H.map((e=>t("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${pe===e?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Te(e),children:[e,"x"]},e)))}),"subtitles"===Oe&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:W&&W.length>0?t(a,{children:[e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${null===De?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ve(null),children:"Off"}),W.map((t=>e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${De===t.srcLang?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ve(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:ue.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),G&&e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Download video",children:e(T,{size:20})}),V&&e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Ge,"aria-label":"Share video",children:e(L,{size:20})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Ce,"aria-label":"Picture in Picture",children:e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:e("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:_e,"aria-label":he?"Exit fullscreen":"Enter fullscreen",children:e(he?y:x,{size:20})})]})]})]})]})}));Pl.displayName="VideoPlayer";var zl=Object.freeze({__proto__:null,Accordion:Vi,AdvancedChart:xr,AnimatedChart:Ir,AreaChart:Dr,AtomixGlass:Gi,AtomixLogo:Yi,Avatar:Qi,AvatarGroup:Ki,Badge:ji,BarChart:Br,Block:$i,Breadcrumb:Ji,BubbleChart:Pr,Button:tr,Callout:ar,CandlestickChart:zr,Card:nr,Chart:yr,ChartRenderer:Rr,Checkbox:Co,ColorModeToggle:Xr,Countdown:$r,DataTable:lo,DatePicker:mo,DonutChart:Fr,Dropdown:go,EdgePanel:So,Footer:tl,FooterLink:nl,FooterSection:al,FooterSocialLink:el,Form:Lo,FormGroup:xo,FunnelChart:Ur,GaugeChart:Gr,HeatmapChart:Vr,Hero:il,Icon:Wi,Input:wo,LineChart:Mr,List:rl,Messages:ol,Modal:ll,MultiAxisChart:Yr,Nav:sl,NavItem:cl,Navbar:dl,Pagination:oo,PhotoViewer:El,PieChart:Wr,Popover:bl,ProductReview:Tl,Progress:Ll,RadarChart:Qr,Radio:$o,Rating:Cl,RealTimeChart:Kr,River:yl,ScatterChart:Zr,SectionIntro:xl,Select:Xo,SideMenu:ul,SideMenuItem:hl,SideMenuList:ml,Slider:Il,Spinner:to,Steps:wl,Tab:Rl,Testimonial:Ol,Textarea:Jo,Todo:Ml,Toggle:Dl,Tooltip:kl,TreemapChart:jr,Upload:Bl,VideoPlayer:Pl,WaterfallChart:qr});const Fl=qo,Ul=Ho,Gl=Object.freeze({__proto__:null}),Vl=Object.freeze({__proto__:null,ACCORDION:w,ATOMIX_GLASS:{BASE_CLASS:"c-atomix-glass",WARP_CLASS:"c-atomix-glass__warp",CONTENT_CLASS:"c-atomix-glass__content",BORDER_CLASS:"c-atomix-glass__border",OVER_LIGHT_CLASS:"c-atomix-glass__over-light",HOVER_EFFECT_CLASS:"c-atomix-glass__hover-effect",ACTIVE_EFFECT_CLASS:"c-atomix-glass__active-effect",GLOW_EFFECT_CLASS:"c-atomix-glass__glow-effect",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",WARP:"c-atomix-glass__warp",CONTENT:"c-atomix-glass__content",BORDER:"c-atomix-glass__border",BORDER_OVERLAY:"c-atomix-glass__border--overlay",OVER_LIGHT:"c-atomix-glass__over-light",OVER_LIGHT_ACTIVE:"c-atomix-glass__over-light--active",OVER_LIGHT_OVERLAY:"c-atomix-glass__over-light--overlay",OVER_LIGHT_OVERLAY_ACTIVE:"c-atomix-glass__over-light--overlay-active",HOVER_EFFECT:"c-atomix-glass__hover-effect",HOVER_EFFECT_ACTIVE:"c-atomix-glass__hover-effect--active",ACTIVE_EFFECT:"c-atomix-glass__active-effect",ACTIVE_EFFECT_ACTIVE:"c-atomix-glass__active-effect--active",GLOW_EFFECT:"c-atomix-glass__glow-effect",GLOW_EFFECT_HOVER:"c-atomix-glass__glow-effect--hover",GLOW_EFFECT_ACTIVE:"c-atomix-glass__glow-effect--active",CLICKABLE:"c-atomix-glass--clickable",ACTIVE:"c-atomix-glass--active",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:70,BLUR_AMOUNT:.0625,SATURATION:140,ABERRATION_INTENSITY:2,ELASTICITY:.15,CORNER_RADIUS:999,PADDING:"24px 32px",MODE:"standard",OVER_LIGHT:!1,SIZE:"md"}},AVATAR:re,AVATAR_GROUP:oe,BADGE:R,BLOCK:ge,BREADCRUMB:M,BUTTON:{BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},CALLOUT:{BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},CARD:ae,CHART:pe,CLASS_PREFIX:{COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},CODE_SNIPPET:{BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},COUNTDOWN:{SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},DATA_TABLE_CLASSES:j,DATA_TABLE_SELECTORS:{TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},DATEPICKER:{SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},DROPDOWN:ce,EDGE_PANEL:Z,FOOTER:ve,FORM:$,FORM_GROUP:J,GLASS_CONTAINER:{CLASSES:{BASE:"c-glass-container",GLASS:"c-glass-container__glass",WARP:"c-glass-container__warp",CONTENT:"c-glass-container__content",OVERLAY:"c-glass-container__overlay",OVERLAY_VISIBLE:"c-glass-container__overlay--visible",OVERLAY_HIDDEN:"c-glass-container__overlay--hidden",OVERLAY_BLEND:"c-glass-container__overlay-blend",BORDER:"c-glass-container__border",BORDER_OVERLAY:"c-glass-container__border-overlay",HOVER_EFFECT:"c-glass-container__hover-effect",ACTIVE_EFFECT:"c-glass-container__active-effect",INTERACTION_EFFECT:"c-glass-container__interaction-effect",ACTIVE:"c-glass-container--active",CLICKABLE:"c-glass-container--clickable"},DISPLACEMENT_MAPS:{STANDARD:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0iZ3JhZGllbnQiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjUwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzgwODA4MCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzgwODA4MCIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZGllbnQpIi8+PC9zdmc+",POLAR:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxyYWRpYWxHcmFkaWVudCBpZD0icG9sYXIiIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjUwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQwNDA0MCIvPjxzdG9wIG9mZnNldD0iNTAlIiBzdG9wLWNvbG9yPSIjODA4MDgwIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjNDA0MDQwIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwb2xhcikiLz48L3N2Zz4=",PROMINENT:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icHJvbWluZW50IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNDA0MDQwIi8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiNjMGMwYzAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0MDQwNDAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3Byb21pbmVudCkiLz48L3N2Zz4="}},HERO:D,INPUT:ee,LIST:O,LIST_GROUP:{BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},MESSAGES:se,MODAL:le,NAV:W,NAVBAR:{SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},PAGINATION_DEFAULTS:q,PHOTOVIEWER:{SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},POPOVER:B,PROGRESS:de,RADIO:te,RATING:K,RIVER:Y,SECTION_INTRO:V,SELECT:ne,SIDE_MENU:Q,SIZES:["sm","md","lg"],SLIDER:me,SPINNER:G,STEPS:F,TAB:z,TESTIMONIAL:U,TEXTAREA:ie,THEME_COLORS:["primary","secondary","success","info","warning","error","light","dark"],TODO:X,TOGGLE:P,TOOLTIP:k,UPLOAD:H,VIDEO_PLAYER:ue,sliderConstants:he}),Yl=l(((t,a)=>{let{children:n,className:i="",justifyContent:r,alignItems:o,noGutters:l,...s}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),l&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:a,className:c.join(" "),...s,children:n})}));Yl.displayName="Grid";const Hl=l(((t,a)=>{let{children:n,className:i="",xs:r,sm:o,md:l,lg:s,xl:c,xxl:d,offsetXs:u,offsetSm:h,offsetMd:m,offsetLg:p,offsetXl:g,offsetXxl:v,...S}=t;const f=!(r||o||l||s||c||d)?["o-grid__col","o-grid__col--auto"]:["o-grid__col"];return r&&("auto"===r?f.push("o-grid__col--auto"):f.push(`o-grid__col--${r}`)),o&&("auto"===o?f.push("o-grid__col--sm-auto"):f.push(`o-grid__col--sm-${o}`)),l&&("auto"===l?f.push("o-grid__col--md-auto"):f.push(`o-grid__col--md-${l}`)),s&&("auto"===s?f.push("o-grid__col--lg-auto"):f.push(`o-grid__col--lg-${s}`)),c&&("auto"===c?f.push("o-grid__col--xl-auto"):f.push(`o-grid__col--xl-${c}`)),d&&("auto"===d?f.push("o-grid__col--xxl-auto"):f.push(`o-grid__col--xxl-${d}`)),u&&f.push(`o-grid__offset--${u}`),h&&f.push(`o-grid__offset--sm-${h}`),m&&f.push(`o-grid__offset--md-${m}`),p&&f.push(`o-grid__offset--lg-${p}`),g&&f.push(`o-grid__offset--xl-${g}`),v&&f.push(`o-grid__offset--xxl-${v}`),i&&f.push(i),e("div",{ref:a,className:f.join(" "),...S,children:n})}));Hl.displayName="GridCol";const Wl=l(((t,a)=>{let{children:n,className:i="",justifyContent:r,alignItems:o,noGutters:l,...s}=t;const c=["o-grid"];return r&&c.push(`u-justify-content-${r}`),o&&c.push(`u-align-items-${o}`),l&&c.push("o-grid--no-gutters"),i&&c.push(i),e("div",{ref:a,className:c.join(" "),...s,children:n})}));Wl.displayName="Row";const Ql=l(((t,a)=>{let{children:l,className:s="",xs:c=1,sm:m,md:p,lg:v,xl:S,xxl:f,gap:E=16,animate:A=!0,imagesLoaded:b=!0,onLayoutComplete:N,onImageLoad:_,...C}=t;const[T,L]=i(c),[y,x]=i([]),[I,w]=i(!1),[R,O]=i(!1),M=r(null),D=r([]),k=r(0),B=r(0),P=r(new Map);o((()=>{O(!!b)}),[T,b]),g(a,(()=>M.current));const z=d((()=>{const e=window.innerWidth;return e>=1400&&void 0!==f?f:e>=1200&&void 0!==S?S:e>=992&&void 0!==v?v:e>=768&&void 0!==p?p:e>=576&&void 0!==m?m:c}),[c,m,p,v,S,f]);o((()=>{const e=()=>L(z());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[z]);const[F,U]=i([]);o((()=>{const e=[];u.forEach(l,((t,a)=>{var i;h(t)&&e.push({id:(null===(i=t.key)||void 0===i?void 0:i.toString())||`masonry-item-${a}`,element:t,position:null,ref:n.createRef()})})),U(e)}),[l]);const G=d((e=>{if(!P.current.get(e)){if(P.current.set(e,!0),k.current+=1,M.current&&b){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{Y()}))})),null==_||_(k.current,B.current),k.current>=B.current&&B.current>0&&(w(!0),O(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{Y(),O(!1)}))})),null==N||N())}}),[_,N,b]),V=d((()=>{if(!b||!M.current)return;P.current.clear(),k.current=0;const e=M.current.querySelectorAll("img");return B.current=e.length,0===e.length?(w(!0),O(!1),void(null==N||N())):(O(!0),e.forEach((e=>{const t=e,a=e.closest(".o-masonry-grid > div");if(a&&a.classList.add("o-masonry-grid__item-loading"),e.complete)G(e);else{const a=()=>G(e);e.addEventListener("load",a),e.addEventListener("error",a),t._masonryLoadHandler=a}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[b,G,N]),Y=d((()=>{if(!M.current||0===F.length)return;const e=(M.current.offsetWidth-E*(T-1))/T;D.current=Array(T).fill(0);const t=[];F.forEach(((a,n)=>{if(a.ref.current){const i=D.current.indexOf(Math.min(...D.current)),r=i*(e+E),o=D.current[i]??0,l=a.ref.current.offsetHeight;D.current[i]=o+l+E,t[n]={left:r,top:o,width:e,height:l}}})),x(t)}),[F,T,E]);o((()=>{if(!M.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>Y()))}));return t.observe(M.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[Y]),n.useLayoutEffect((()=>{if(b){return V()}return Y(),w(!0),void O(!1)}),[F,T,Y,b,V]),n.useEffect((()=>{const e=[];return F.forEach((t=>{if(t.ref.current){const a=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{Y()}))}))}));a.observe(t.ref.current),e.push(a)}})),()=>{e.forEach((e=>e.disconnect()))}}),[F,Y]);const H=D.current.length>0?Math.max(...D.current):0,W=["o-masonry-grid",s,A?"o-masonry-grid--animate":"",R?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:M,className:W,style:{position:"relative",width:"100%",height:`${H}px`,...C.style},...C,children:F.map(((t,a)=>{const n=y[a];return e("div",n?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:`${n.left}px`,top:`${n.top}px`,width:`${n.width}px`,opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));Ql.displayName="MasonryGrid";const Kl=l(((t,a)=>{let{children:n,className:i="",...r}=t;const o=["o-masonry-grid__item-inner"];return i&&o.push(i),e("div",{ref:a,className:o.join(" "),...r,children:n})}));Kl.displayName="MasonryGridItem";const Zl={...zl,...Object.freeze({__proto__:null,Container:qi,Grid:Yl,GridCol:Hl,MasonryGrid:Ql,MasonryGridItem:Kl,Row:Wl}),composables:Fl,utils:Ul,constants:Vl,types:Gl};export{Vi as Accordion,xr as AdvancedChart,Ir as AnimatedChart,Dr as AreaChart,Gi as AtomixGlass,Yi as AtomixLogo,Qi as Avatar,Ki as AvatarGroup,ji as Badge,Br as BarChart,$i as Block,Ji as Breadcrumb,Pr as BubbleChart,tr as Button,ar as Callout,zr as CandlestickChart,nr as Card,yr as Chart,Rr as ChartRenderer,Co as Checkbox,Xr as ColorModeToggle,qi as Container,$r as Countdown,lo as DataTable,mo as DatePicker,Fr as DonutChart,go as Dropdown,So as EdgePanel,tl as Footer,nl as FooterLink,al as FooterSection,el as FooterSocialLink,Lo as Form,xo as FormGroup,Ur as FunnelChart,Gr as GaugeChart,Yl as Grid,Hl as GridCol,Vr as HeatmapChart,il as Hero,Wi as Icon,wo as Input,Mr as LineChart,rl as List,Ql as MasonryGrid,Kl as MasonryGridItem,ol as Messages,ll as Modal,Yr as MultiAxisChart,sl as Nav,cl as NavItem,dl as Navbar,oo as Pagination,El as PhotoViewer,Wr as PieChart,bl as Popover,Tl as ProductReview,Ll as Progress,Qr as RadarChart,$o as Radio,Cl as Rating,Kr as RealTimeChart,yl as River,Wl as Row,Zr as ScatterChart,xl as SectionIntro,Xo as Select,ul as SideMenu,hl as SideMenuItem,ml as SideMenuList,Il as Slider,to as Spinner,wl as Steps,Rl as Tab,Ol as Testimonial,Jo as Textarea,Ml as Todo,Dl as Toggle,kl as Tooltip,jr as TreemapChart,Bl as Upload,Pl as VideoPlayer,qr as WaterfallChart,Fl as composables,Vl as constants,Zl as default,Gl as types,Ul as utils};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|