@shohojdhara/atomix 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomix.css +714 -646
- package/dist/atomix.min.css +5 -5
- package/dist/index.d.ts +794 -146
- package/dist/index.esm.js +12052 -6091
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5133 -2674
- 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 +662 -594
- package/dist/themes/boomdevs.min.css +7 -7
- package/dist/themes/esrar.css +714 -646
- package/dist/themes/esrar.min.css +6 -6
- package/dist/themes/mashroom.css +707 -642
- package/dist/themes/mashroom.min.css +7 -7
- package/dist/themes/shaj-default.css +707 -642
- package/dist/themes/shaj-default.min.css +6 -6
- package/package.json +66 -15
- package/src/components/Accordion/Accordion.stories.tsx +800 -0
- package/src/components/Accordion/Accordion.tsx +33 -5
- package/src/components/AtomixGlass/AtomixGlass.stories.tsx +1230 -0
- package/src/components/AtomixGlass/AtomixGlass.test.tsx +199 -0
- package/src/components/AtomixGlass/AtomixGlass.tsx +1343 -0
- package/src/components/AtomixGlass/README.md +134 -0
- package/src/components/AtomixGlass/index.ts +10 -0
- package/src/components/AtomixGlass/shader-utils.ts +696 -0
- package/src/components/AtomixGlass/stories/Examples.stories.tsx +5800 -0
- package/src/components/AtomixGlass/stories/Modes.stories.tsx +1065 -0
- package/src/components/AtomixGlass/stories/Playground.stories.tsx +1066 -0
- package/src/components/AtomixGlass/stories/ShaderVariants.stories.tsx +397 -0
- package/src/components/AtomixGlass/stories/shared-components.tsx +310 -0
- package/src/components/AtomixGlass/utils.ts +8 -0
- package/src/components/Badge/Badge.stories.tsx +170 -0
- package/src/components/Badge/Badge.tsx +31 -4
- package/src/components/Button/Button.stories.tsx +826 -0
- package/src/components/Button/Button.tsx +34 -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 +43 -6
- package/src/components/Callout/README.md +409 -0
- package/src/components/Card/Card.stories.tsx +699 -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 +877 -1
- 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/EdgePanel/EdgePanel.stories.tsx +476 -3
- package/src/components/EdgePanel/EdgePanel.tsx +86 -13
- 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/Messages/Messages.stories.tsx +113 -0
- package/src/components/Messages/Messages.tsx +51 -9
- package/src/components/Modal/Modal.stories.tsx +237 -0
- package/src/components/Modal/Modal.tsx +63 -35
- package/src/components/Navigation/Nav/Nav.stories.tsx +469 -0
- package/src/components/Navigation/Nav/Nav.tsx +17 -4
- package/src/components/Navigation/Navbar/Navbar.stories.tsx +413 -0
- package/src/components/Navigation/Navbar/Navbar.tsx +66 -28
- package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +340 -0
- package/src/components/Navigation/SideMenu/SideMenu.tsx +28 -2
- 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/Progress/Progress.tsx +17 -2
- package/src/components/Rating/Rating.stories.tsx +112 -0
- package/src/components/Rating/Rating.tsx +25 -1
- package/src/components/Spinner/Spinner.tsx +17 -2
- 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 +1 -0
- package/src/lib/composables/index.ts +4 -0
- package/src/lib/composables/useAtomixGlass.ts +71 -0
- package/src/lib/composables/useBarChart.ts +14 -4
- package/src/lib/composables/useButton.ts +3 -1
- package/src/lib/composables/useCallout.ts +4 -1
- package/src/lib/composables/useChart.ts +223 -370
- package/src/lib/composables/useChartToolbar.ts +11 -20
- package/src/lib/composables/useEdgePanel.ts +81 -35
- package/src/lib/composables/useGlassContainer.ts +168 -0
- package/src/lib/composables/useLineChart.ts +4 -2
- package/src/lib/composables/usePieChart.ts +4 -14
- package/src/lib/constants/components.ts +89 -0
- package/src/lib/types/components.ts +448 -14
- package/src/lib/utils/displacement-generator.ts +86 -0
- package/src/styles/01-settings/_settings.background.scss +8 -7
- package/src/styles/01-settings/_settings.callout.scss +7 -7
- package/src/styles/01-settings/_settings.edge-panel.scss +1 -1
- package/src/styles/02-tools/_tools.animations.scss +19 -0
- package/src/styles/02-tools/_tools.background.scss +19 -17
- package/src/styles/02-tools/_tools.glass.scss +1 -0
- package/src/styles/02-tools/_tools.utility-api.scss +62 -27
- package/src/styles/03-generic/_generic.root.scss +3 -2
- package/src/styles/04-elements/_elements.body.scss +0 -18
- package/src/styles/06-components/_components.accordion.scss +16 -0
- package/src/styles/06-components/_components.atomix-glass.scss +72 -0
- package/src/styles/06-components/_components.badge.scss +21 -0
- package/src/styles/06-components/_components.button.scss +10 -0
- package/src/styles/06-components/_components.callout.scss +46 -2
- package/src/styles/06-components/_components.card.scss +17 -0
- package/src/styles/06-components/_components.chart.scss +1 -1
- package/src/styles/06-components/_components.datepicker.scss +18 -0
- package/src/styles/06-components/_components.dropdown.scss +7 -1
- package/src/styles/06-components/_components.edge-panel.scss +101 -0
- package/src/styles/06-components/_components.hero.scss +1 -2
- package/src/styles/06-components/_components.input.scss +31 -1
- package/src/styles/06-components/_components.messages.scss +176 -0
- package/src/styles/06-components/_components.modal.scss +13 -3
- package/src/styles/06-components/_components.navbar.scss +12 -1
- package/src/styles/06-components/_components.side-menu.scss +5 -0
- package/src/styles/06-components/_components.video-player.scss +48 -26
- package/src/styles/06-components/_index.scss +1 -0
- package/src/styles/99-utilities/_index.scss +1 -0
- package/src/styles/99-utilities/_utilities.glass-fixes.scss +49 -0
- package/src/styles/99-utilities/_utilities.opacity.scss +1 -1
- package/dist/themes/yabai.css +0 -15207
- 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 C,Gear as y,Download as L,Share as T,ArrowsIn as A,ArrowsOut as x}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"}},k={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:"›"}},M={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"}},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 _e(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 Se=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}=_e({defaultOpen:r,disabled:c,iconPosition:d,isOpen:o,onOpenChange:s}),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"})})});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||C]}),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})})]})};Se.displayName="Accordion";const fe=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})]})},be={xs:16,sm:20,md:24,lg:32,xl:40},Ee=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?be[n]||24:n,weight:i,color:r,"aria-label":l})})};Ee.displayName="Icon";const Ne=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(Ee,{name:"User",size:"xs"===l?"xs":"sm"===l?"sm":"md"})})})};Ne.displayName="Avatar";const Ce=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===Ne)),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()}}}Ce.displayName="AvatarGroup";const Le=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})]})};Le.displayName="Badge";const Te=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})}));Te.displayName="Container";const Ae=()=>({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(" ")}}),xe=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}=Ae(),m=h({spacing:r,background:d,fullWidth:l,className:s});return e(i,{ref:a,className:m,style:c,...u,children:l?n:e(Te,{type:o.type,className:o.className,children:n})})}));xe.displayName="Block";const Oe=n=>{let{items:i,divider:r,className:o="",ariaLabel:l="Breadcrumb",LinkComponent:s}=n;const c=[k.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=[k.CLASSES.ITEM,n.active||o?k.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:k.CLASSES.LINK,onClick:n.onClick};return e("li",{className:l,children:n.href&&!n.active?e(s||"a",{...d,children:c}):e("span",{className:k.CLASSES.LINK,children:c})},r)}))})})};function Ie(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()}}}Oe.displayName="Breadcrumb";const we=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:_}=Ie({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})]})}));we.displayName="Button";var Re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ke(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}},De=!Me((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Pe=De,$e=Function.prototype,Be=$e.call,Fe=Pe&&$e.bind.bind(Be,Be),ze=Pe?Fe:function(e){return function(){return Be.apply(e,arguments)}},Ge=ze({}.isPrototypeOf),Ve=function(e){return e&&e.Math===Math&&e},Ue=Ve("object"==typeof globalThis&&globalThis)||Ve("object"==typeof window&&window)||Ve("object"==typeof self&&self)||Ve("object"==typeof Re&&Re)||Ve("object"==typeof Re&&Re)||function(){return this}()||Function("return this")(),Ye=De,Xe=Function.prototype,He=Xe.apply,We=Xe.call,je="object"==typeof Reflect&&Reflect.apply||(Ye?We.bind(He):function(){return We.apply(He,arguments)}),Ze=ze,Ke=Ze({}.toString),qe=Ze("".slice),Qe=function(e){return qe(Ke(e),8,-1)},Je=Qe,et=ze,tt=function(e){if("Function"===Je(e))return et(e)},at="object"==typeof document&&document.all,nt=void 0===at&&void 0!==at?function(e){return"function"==typeof e||e===at}:function(e){return"function"==typeof e},it={},rt=!Me((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ot=De,lt=Function.prototype.call,st=ot?lt.bind(lt):function(){return lt.apply(lt,arguments)},ct={},dt={}.propertyIsEnumerable,ut=Object.getOwnPropertyDescriptor,ht=ut&&!dt.call({1:2},1);ct.f=ht?function(e){var t=ut(this,e);return!!t&&t.enumerable}:dt;var mt,pt,gt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vt=Me,_t=Qe,St=Object,ft=ze("".split),bt=vt((function(){return!St("z").propertyIsEnumerable(0)}))?function(e){return"String"===_t(e)?ft(e,""):St(e)}:St,Et=function(e){return null==e},Nt=Et,Ct=TypeError,yt=function(e){if(Nt(e))throw new Ct("Can't call method on "+e);return e},Lt=bt,Tt=yt,At=function(e){return Lt(Tt(e))},xt=nt,Ot=function(e){return"object"==typeof e?null!==e:xt(e)},It={},wt=It,Rt=Ue,kt=nt,Mt=function(e){return kt(e)?e:void 0},Dt=Ue.navigator,Pt=Dt&&Dt.userAgent,$t=Pt?String(Pt):"",Bt=Ue,Ft=$t,zt=Bt.process,Gt=Bt.Deno,Vt=zt&&zt.versions||Gt&&Gt.version,Ut=Vt&&Vt.v8;Ut&&(pt=(mt=Ut.split("."))[0]>0&&mt[0]<4?1:+(mt[0]+mt[1])),!pt&&Ft&&(!(mt=Ft.match(/Edge\/(\d+)/))||mt[1]>=74)&&(mt=Ft.match(/Chrome\/(\d+)/))&&(pt=+mt[1]);var Yt=pt,Xt=Yt,Ht=Me,Wt=Ue.String,jt=!!Object.getOwnPropertySymbols&&!Ht((function(){var e=Symbol("symbol detection");return!Wt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xt&&Xt<41})),Zt=jt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kt=function(e,t){return arguments.length<2?Mt(wt[e])||Mt(Rt[e]):wt[e]&&wt[e][t]||Rt[e]&&Rt[e][t]},qt=nt,Qt=Ge,Jt=Object,ea=Zt?function(e){return"symbol"==typeof e}:function(e){var t=Kt("Symbol");return qt(t)&&Qt(t.prototype,Jt(e))},ta=String,aa=nt,na=function(e){try{return ta(e)}catch(e){return"Object"}},ia=TypeError,ra=function(e){if(aa(e))return e;throw new ia(na(e)+" is not a function")},oa=ra,la=Et,sa=st,ca=nt,da=Ot,ua=TypeError,ha={exports:{}},ma=Ue,pa=Object.defineProperty,ga=Ue,va=function(e,t){try{pa(ma,e,{value:t,configurable:!0,writable:!0})}catch(a){ma[e]=t}return t},_a="__core-js_shared__",Sa=ha.exports=ga[_a]||va(_a,{});(Sa.versions||(Sa.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 fa=ha.exports,ba=yt,Ea=Object,Na=function(e){return Ea(ba(e))},Ca=Na,ya=ze({}.hasOwnProperty),La=Object.hasOwn||function(e,t){return ya(Ca(e),t)},Ta=ze,Aa=0,xa=Math.random(),Oa=Ta(1.1.toString),Ia=function(e,t){return fa[e]||(fa[e]=t||{})},wa=La,Ra=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Oa(++Aa+xa,36)},ka=jt,Ma=Zt,Da=Ue.Symbol,Pa=Ia("wks"),$a=Ma?Da.for||Da:Da&&Da.withoutSetter||Ra,Ba=function(e){return wa(Pa,e)||(Pa[e]=ka&&wa(Da,e)?Da[e]:$a("Symbol."+e)),Pa[e]},Fa=st,za=Ot,Ga=ea,Va=function(e,t){var a=e[t];return la(a)?void 0:oa(a)},Ua=function(e,t){var a,n;if("string"===t&&ca(a=e.toString)&&!da(n=sa(a,e)))return n;if(ca(a=e.valueOf)&&!da(n=sa(a,e)))return n;if("string"!==t&&ca(a=e.toString)&&!da(n=sa(a,e)))return n;throw new ua("Can't convert object to primitive value")},Ya=TypeError,Xa=Ba("toPrimitive"),Ha=function(e,t){if(!za(e)||Ga(e))return e;var a,n=Va(e,Xa);if(n){if(void 0===t&&(t="default"),a=Fa(n,e,t),!za(a)||Ga(a))return a;throw new Ya("Can't convert object to primitive value")}return void 0===t&&(t="number"),Ua(e,t)},Wa=ea,ja=function(e){var t=Ha(e,"string");return Wa(t)?t:t+""},Za=Ot,Ka=Ue.document,qa=Za(Ka)&&Za(Ka.createElement),Qa=function(e){return qa?Ka.createElement(e):{}},Ja=!rt&&!Me((function(){return 7!==Object.defineProperty(Qa("div"),"a",{get:function(){return 7}}).a})),en=rt,tn=st,an=ct,nn=gt,rn=At,on=ja,ln=La,sn=Ja,cn=Object.getOwnPropertyDescriptor;it.f=en?cn:function(e,t){if(e=rn(e),t=on(t),sn)try{return cn(e,t)}catch(e){}if(ln(e,t))return nn(!tn(an.f,e,t),e[t])};var dn=Me,un=nt,hn=/#|\.prototype\./,mn=function(e,t){var a=gn[pn(e)];return a===_n||a!==vn&&(un(t)?dn(t):!!t)},pn=mn.normalize=function(e){return String(e).replace(hn,".").toLowerCase()},gn=mn.data={},vn=mn.NATIVE="N",_n=mn.POLYFILL="P",Sn=mn,fn=ra,bn=De,En=tt(tt.bind),Nn={},Cn=rt&&Me((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),yn=Ot,Ln=String,Tn=TypeError,An=rt,xn=Ja,On=Cn,In=function(e){if(yn(e))return e;throw new Tn(Ln(e)+" is not an object")},wn=ja,Rn=TypeError,kn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Dn="enumerable",Pn="configurable",$n="writable";Nn.f=An?On?function(e,t,a){if(In(e),t=wn(t),In(a),"function"==typeof e&&"prototype"===t&&"value"in a&&$n in a&&!a[$n]){var n=Mn(e,t);n&&n[$n]&&(e[t]=a.value,a={configurable:Pn in a?a[Pn]:n[Pn],enumerable:Dn in a?a[Dn]:n[Dn],writable:!1})}return kn(e,t,a)}:kn:function(e,t,a){if(In(e),t=wn(t),In(a),xn)try{return kn(e,t,a)}catch(e){}if("get"in a||"set"in a)throw new Rn("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var Bn=Nn,Fn=gt,zn=rt?function(e,t,a){return Bn.f(e,t,Fn(1,a))}:function(e,t,a){return e[t]=a,e},Gn=Ue,Vn=je,Un=tt,Yn=nt,Xn=it.f,Hn=Sn,Wn=It,jn=function(e,t){return fn(e),void 0===t?e:bn?En(e,t):function(){return e.apply(t,arguments)}},Zn=zn,Kn=La,qn=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 Vn(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?Gn:m?Gn[u]:Gn[u]&&Gn[u].prototype,v=h?Wn:Wn[u]||Zn(Wn,u,{})[u],_=v.prototype;for(r in t)n=!(a=Hn(h?r:u+(m?".":"#")+r,e.forced))&&g&&Kn(g,r),l=v[r],n&&(s=e.dontCallGetSet?(d=Xn(g,r))&&d.value:g[r]),o=n&&s?s:t[r],(a||p||typeof l!=typeof o)&&(c=e.bind&&n?jn(o,Gn):e.wrap&&n?qn(o):p&&Yn(o)?Un(o):o,(e.sham||o&&o.sham||l&&l.sham)&&Zn(c,"sham",!0),Zn(v,r,c),p&&(Kn(Wn,i=u+"Prototype")||Zn(Wn,i,{}),Zn(Wn[i],r,o),e.real&&_&&(a||!_[r])&&Zn(_,r,o)))},Jn=Math.ceil,ei=Math.floor,ti=Math.trunc||function(e){var t=+e;return(t>0?ei:Jn)(t)},ai=function(e){var t=+e;return t!=t||0===t?0:ti(t)},ni=ai,ii=Math.max,ri=Math.min,oi=ai,li=Math.min,si=function(e){var t=oi(e);return t>0?li(t,9007199254740991):0},ci=function(e){return si(e.length)},di=At,ui=function(e,t){var a=ni(e);return a<0?ii(a+t,0):ri(a,t)},hi=ci,mi=function(e){return function(t,a,n){var i=di(t),r=hi(i);if(0===r)return!e&&-1;var o,l=ui(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}},pi={includes:mi(!0),indexOf:mi(!1)}.includes;Qn({target:"Array",proto:!0,forced:Me((function(){return!Array(1).includes()}))},{includes:function(e){return pi(this,e,arguments.length>1?arguments[1]:void 0)}});var gi=Ue,vi=It,_i=function(e,t){var a=vi[e+"Prototype"],n=a&&a[t];if(n)return n;var i=gi[e],r=i&&i.prototype;return r&&r[t]},Si=_i("Array","includes"),fi=Ot,bi=Qe,Ei=Ba("match"),Ni=function(e){var t;return fi(e)&&(void 0!==(t=e[Ei])?!!t:"RegExp"===bi(e))},Ci=TypeError,yi={};yi[Ba("toStringTag")]="z";var Li="[object z]"===String(yi),Ti=nt,Ai=Qe,xi=Ba("toStringTag"),Oi=Object,Ii="Arguments"===Ai(function(){return arguments}()),wi=Li?Ai: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=Oi(e),xi))?a:Ii?Ai(t):"Object"===(n=Ai(t))&&Ti(t.callee)?"Arguments":n},Ri=String,ki=Ba("match"),Mi=Qn,Di=function(e){if(Ni(e))throw new Ci("The method doesn't accept regular expressions");return e},Pi=yt,$i=function(e){if("Symbol"===wi(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ri(e)},Bi=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[ki]=!1,"/./"[e](t)}catch(e){}}return!1},Fi=ze("".indexOf);Mi({target:"String",proto:!0,forced:!Bi("includes")},{includes:function(e){return!!~Fi($i(Pi(this)),$i(Di(e)),arguments.length>1?arguments[1]:void 0)}});var zi=_i("String","includes"),Gi=Ge,Vi=Si,Ui=zi,Yi=Array.prototype,Xi=String.prototype,Hi=ke((function(e){var t=e.includes;return e===Yi||Gi(Yi,e)&&t===Yi.includes?Vi:"string"==typeof e||e===Xi||Gi(Xi,e)&&t===Xi.includes?Ui:t}));const Wi=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"):Hi(e=["warning","error"]).call(e,o)?(a.role="alert",a["aria-live"]="assertive"):Hi(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(Ee,{name:"X",size:"md"})})]})};Wi.displayName="Callout";const ji=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})]})}));ji.displayName="Card";var Zi=ra,Ki=Na,qi=bt,Qi=ci,Ji=TypeError,er="Reduce of empty array with no initial value",tr=function(e){return function(t,a,n,i){var r=Ki(t),o=qi(r),l=Qi(r);if(Zi(a),0===l&&n<2)throw new Ji(er);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 Ji(er)}for(;e?s>=0:l>s;s+=c)s in o&&(i=a(i,o[s],s,r));return i}},ar={left:tr(!1),right:tr(!0)},nr=Me,ir=Ue,rr=$t,or=Qe,lr=function(e){return rr.slice(0,e.length)===e},sr=lr("Bun/")?"BUN":lr("Cloudflare-Workers")?"CLOUDFLARE":lr("Deno/")?"DENO":lr("Node.js/")?"NODE":ir.Bun&&"string"==typeof Bun.version?"BUN":ir.Deno&&"object"==typeof Deno.version?"DENO":"process"===or(ir.process)?"NODE":ir.window&&ir.document?"BROWSER":"REST",cr=ar.left,dr=function(e,t){var a=[][e];return!!a&&nr((function(){a.call(null,t||function(){return 1},1)}))};Qn({target:"Array",proto:!0,forced:!("NODE"===sr)&&Yt>79&&Yt<83||!dr("reduce")},{reduce:function(e){var t=arguments.length;return cr(this,e,t,t>1?arguments[1]:void 0)}});var ur=_i("Array","reduce"),hr=Ge,mr=ur,pr=Array.prototype,gr=ke((function(e){var t=e.reduce;return e===pr||hr(pr,e)&&t===pr.reduce?mr:t}));function vr(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}})))}),[]),C=h((()=>{a((e=>({...e,crosshair:null})))}),[]),y=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}}}))}),[]),T=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]),x=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:C,resetView:I,handleTouchStart:y,handleTouchMove:L,handleTouchEnd:T,handlePointerDown:A,handlePointerMove:x,handlePointerUp:O,startAnimation:w,stopAnimation:R,setInteractionState:a}}const _r=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:C,onTooltipsToggle:y,onAnimationsToggle:L,state:T={},className:A="",...x}=a;const[O,I]=i(!1),[w,R]=i(!1),k=h((()=>{const e=[];return s.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:T.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:T.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[s,m,p,T,O]),M=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(!T.panEnabled),active:T.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:T.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:T.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>null==g?void 0:g(!T.isFullscreen),variant:"success",tooltip:(T.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,T]),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?k():[],...l?M():[],...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(Ee,{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,...x,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:T.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:[T.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*(T.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)))})})));_r.displayName="ChartToolbar";const Sr=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:C=!1,exportFormats:y=["png","svg","csv"],datasets:L,config:T,...A}=a;const[x,O]=i(!1),[I,w]=i(!1),{state:R,handlers:k,toolbarGroups:M}=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:C,export:N,fullscreen:E,zoom:!0,pan:!0,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:y},{onRefresh:f,onExport:S,onFullscreen:e=>{O(e),null==_||_(e)}}),{generateChartClass:D,chartAttributes:P}=vr({type:l,size:s,variant:c,loading:m,error:p}),$=D({type:l,size:s,variant:c,loading:m,error:p,className:g});h((()=>{k.onFullscreen(!R.isFullscreen)}),[k,R.isFullscreen]),h((async e=>{await k.onExport(e)}),[k]),h((()=>{k.onRefresh()}),[k]),o((()=>{O(R.isFullscreen),w(R.isExporting)}),[R.isFullscreen,R.isExporting]);const B=`${$}${x?` ${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(_r,{chartType:l,groups:M,enableDefaults:0===M.length,exportFormats:y,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:k.onRefresh,onExport:k.onExport,onFullscreen:k.onFullscreen,onZoomIn:k.onZoomIn,onZoomOut:k.onZoomOut,onZoomReset:k.onZoomReset,onPanToggle:k.onPanToggle,onReset:k.onReset,onSettings:k.onSettings,onGridToggle:k.onGridToggle,onLegendToggle:k.onLegendToggle,onTooltipsToggle:k.onTooltipsToggle,onAnimationsToggle:k.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})]})]})})));Sr.displayName="Chart";const fr=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=gr(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),C=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},y=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:C(t),y:y(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 ${C(t.data.length-1)},${y(E)} L ${C(0)},${y(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=C(r),l=y(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:C(t+(s.movingAveragePeriod||7)-1),y:y(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})),T=(null===(i=s.annotations)||void 0===i?void 0:i.map(((a,n)=>t("g",{children:[e("circle",{cx:C(a.x),cy:y(a.y),r:4,fill:a.color||"#ef4444",stroke:"#ffffff",strokeWidth:2}),e("text",{x:C(a.x)+10,y:y(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:y(n),x2:800-d,y2:y(n),stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"4,4",opacity:.3},`grid-${a}`)}))}),L.flat(),T,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:C(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:y(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]),C=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]),y=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(Sr,{ref:n,type:"advanced",datasets:g,config:l,...d,children:[N,C,y,L]})})));fr.displayName="AdvancedChart";const br=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(Sr,{ref:a,type:l,datasets:n,config:i,...c,children:e("canvas",{ref:d,style:{width:"100%",height:"100%",borderRadius:"8px"}})})})));function Er(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=gr(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=gr(e).call(e,((e,t,a)=>e+a),0),n=gr(e).call(e,((e,t)=>e+t.value),0),i=(t*gr(e).call(e,((e,t,a)=>e+a*t.value),0)-a*n)/(t*gr(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}}br.displayName="AnimatedChart";const Nr=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:C,handlePointClick:y,handleZoom:L,handlePan:T,handleDragStart:A,handleDragEnd:x,handleCrosshair:O,clearCrosshair:I,handleTouchStart:w,handleTouchMove:R,handleTouchEnd:k,handlePointerDown:M,handlePointerMove:D,handlePointerUp:P,svgRef:$}=vr({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=gr(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=gr(e).call(e,((e,t,a)=>e+a),0),n=gr(e).call(e,((e,t)=>e+t),0),i=(t*gr(e).call(e,((e,t,a)=>e+a*t),0)-a*n)/(t*gr(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=gr(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;T(e,t)}}),[p,E,O,T]),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&&x()}),[p,E.touchState.isTouch,x]),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&&(y(t,a),null==u||u(e,t,a))}),[p,y,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=>k(e.nativeEvent),onPointerDown:e=>M(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:C,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})));Nr.displayName="ChartRenderer";const Cr=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}));Cr.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}=Er(l,c),C=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(Sr,{ref:n,type:"line",datasets:l,config:s,toolbarConfig:{defaults:{zoom:!0,pan:!0,reset:!0,grid:!0,tooltips:!0}},...v,children:[e(Nr,{datasets:_,config:s,onDataPointClick:d,renderContent:C}),N&&(null===(i=_[N.datasetIndex])||void 0===i||null===(i=i.data)||void 0===i?void 0:i[N.pointIndex])&&e(Cr,{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 Lr=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 Tr(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}}Lr.displayName="AreaChart";const Ar=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}=Tr(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(Sr,{ref:n,type:d?"horizontal-bar":"bar",datasets:l,config:s,...m,children:[e(Nr,{datasets:l,config:s,onDataPointClick:u,renderContent:f}),_&&e(Cr,{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})]})})));Ar.displayName="BarChart";const xr=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:C=1e3,showSizeLegend:y=!0,sizeLegendTitle:L="Size",colorScheme:T=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:A=!1}=p,[x,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,C=n.width-120,x=n.height-120,I=e=>v+(e-c)/(d-c)*C,w=e=>v+x-(e-h)/(m-h)*x,R=e=>_+(e-p)/(g-p)*(S-_),k=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)*(T.length-1));l=T[e]}else l=T[a%T.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}`)})),M=[];M.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")),M.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);M.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);M.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(y){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:[M,k,D]})}),[u,_,S,f,b,E,N,C,y,L,T,A]),w=[{label:"Bubble Data",data:u.map((e=>({label:e.label,value:e.size,x:e.x,y:e.y})))}];return t(Sr,{ref:n,type:"bubble",datasets:w,config:m,...v,children:[e(Nr,{datasets:w,config:m,onDataPointClick:g,renderContent:I}),x&&u[x.index]&&e(Cr,{dataPoint:{label:(null===(r=u[x.index])||void 0===r?void 0:r.label)||"",value:(null===(o=u[x.index])||void 0===o?void 0:o.size)||0,metadata:{x:null===(l=u[x.index])||void 0===l?void 0:l.x,y:null===(s=u[x.index])||void 0===s?void 0:s.y,...null===(c=u[x.index])||void 0===c?void 0:c.metadata}},datasetLabel:"Bubble Data",datasetColor:null===(d=u[x.index])||void 0===d?void 0:d.color,position:{x:x.clientX,y:x.clientY},visible:!0})]})})));xr.displayName="BubbleChart";const Or=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=gr(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,C=70,y=s.showVolume?m*(1-s.volumeHeightRatio):m-S-N,L=s.showVolume?m*s.volumeHeightRatio:0,T=h-C-E,A=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(...A),O=(null===(i=l.yAxis)||void 0===i?void 0:i.max)??Math.max(...A),I=O!==x?O-x:1,w=o.filter((e=>e.volume)),R=s.showVolume&&w.length>0?Math.max(...w.map((e=>e.volume))):0,k=R>0?R:1,M=e=>{const t=o.length>1?o.length-1:1;return(C+e/t*T)*_.scale+_.translateX},D=e=>(S+y-(e-x)/I*y)*_.scale+_.translateY,P=e=>y+S+10+(k-e)/k*(L-20),$=Math.max(o.length,1),B=T/$*(s.candleWidth||.8),F=[];s.showVolume&&w.length>0&&(o.forEach(((t,a)=>{if(!t.volume)return;const n=M(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=y+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:C,y1:y+S+5,x2:h-E,y2:y+S+5,stroke:"#e5e7eb",strokeWidth:1},"volume-separator"))),o.forEach(((a,n)=>{const i=M(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=M(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:y+S,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"}),e("line",{x1:C,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(x+I*a/5);return e("line",{x1:C,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=M(a);return e("line",{x1:isNaN(n)?0:n,y1:S,x2:isNaN(n)?0:n,y2:y+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:C,y1:S,x2:C,y2:y+S,stroke:"#e5e7eb",strokeWidth:1}),Array.from({length:6}).map(((a,n)=>{const i=x+I*n/5,r=D(i);return t("g",{children:[e("line",{x1:C-5,y1:isNaN(r)?0:r,x2:C,y2:isNaN(r)?0:r,stroke:"#e5e7eb",strokeWidth:1}),t("text",{x:C-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:C,y1:y+S,x2:h-E,y2:y+S,stroke:"#e5e7eb",strokeWidth:1}),o.map(((a,n)=>{if(n%Math.ceil(o.length/8)!=0)return null;const i=M(n);return t("g",{children:[e("line",{x1:isNaN(i)?0:i,y1:y+S,x2:isNaN(i)?0:i,y2:y+S+5,stroke:"#e5e7eb",strokeWidth:1}),e("text",{x:isNaN(i)?0:i,y:y+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:y+S+10,x2:h-E,y2:m-N,stroke:"#e5e7eb",strokeWidth:1}),Array.from({length:3}).map(((a,n)=>{const i=k*(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(Sr,{ref:r,type:"candlestick",datasets:[],config:l,...d,children:[E,s.showOHLCTooltip&&u&&e(Cr,{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)}))})]})})));Or.displayName="CandlestickChart";const Ir=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=gr(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),C=u+o*Math.sin(n),y=i-n>Math.PI?1:0,L=[`M ${v},${_}`,`A ${r},${r} 0 ${y},1 ${S},${f}`,`L ${b},${E}`,`A ${o},${o} 0 ${y},0 ${N},${C}`,"Z"].join(" "),T=n+(i-n)/2,A=(r+o)/2,x=l+A*Math.cos(T),O=u+A*Math.sin(T),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+x: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:x,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=gr(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(Sr,{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(Cr,{dataPoint:h.data[p.index],datasetLabel:h.label,datasetColor:h.data[p.index].color,position:{x:p.clientX,y:p.clientY},visible:!0})]}),_]})})));Ir.displayName="DonutChart";const wr=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:C=e=>e.toLocaleString(),showConversionRates:y=!0,conversionRatePosition:L="between",proportional:T=!0,minSegmentRatio:A=.1}=o,x=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))),x=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;x.forEach(((n,r)=>{const c=l+r*(a+_);let h;if(T){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=x[r+1];let t;if(T&&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?`${C(n.value)} (${n.percentage.toFixed(1)}%)`:u?C(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(y&&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,x.forEach(((e,t)=>{T?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,C,y,L,T,A]),O=[{label:"Funnel Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(Sr,{ref:n,type:"funnel",datasets:O,config:r,...s,children:e(Nr,{datasets:O,config:r,onDataPointClick:l,renderContent:x})})})));wr.displayName="FunnelChart";const Rr=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:C=4,colorZones:y=[{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:T=1e3,animationEasing:A="ease-out",useGradient:x=!0,label:O,labelPosition:I="bottom"}=d,[w,R]=i(L?l:r),[k,M]=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/T,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,T,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,T=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")),y.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(x){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<=C;n++){const i=(a+n/(C+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(T)*a,i=c+Math.sin(T)*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;M({clientX:n,clientY:i})},onMouseLeave:()=>M(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,C,y,x,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(Sr,{ref:n,type:"gauge",datasets:B,config:c,...u,children:[e(Nr,{datasets:B,config:c,renderContent:D}),k&&e(Cr,{dataPoint:{label:O||"Current Value",value:w,metadata:{min:l,max:s,percentage:((w-l)/(s-l)*100).toFixed(1)+"%"}},datasetLabel:"Gauge",position:{x:k.clientX,y:k.clientY},visible:!0})]})})));Rr.displayName="GaugeChart";const kr=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]),C={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"]},y=h((e=>{const{minValue:t,maxValue:a}=N,n=a-t;if(0===n)return C[o.scheme][0];const i=(e-t)/n,r=C[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,C]),L=h(((e,t)=>{f(e),t&&e&&(t.currentTarget.getBoundingClientRect(),E({x:t.clientX,y:t.clientY}))}),[]),T=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:C[o.scheme].map(((t,a)=>e("stop",{offset:a/(C[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 _=y(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"}),C[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*C[o.scheme].length+5,y:"15",fontSize:"10",fill:"var(--atomix-gray-6)",children:"More"})]})]})]})}),[N,l,s,c,d,y,S,L,o.scheme,C]),{matrix:A,xLabels:x,yLabels:O}=N,I=l.width||12,w=l.height||12,R=l.spacing||2,k=Math.max(600,x.length*(I+R)+200),M=Math.max(400,O.length*(w+R)+150);return t(Sr,{ref:n,type:"heatmap",datasets:[],config:v,className:`c-chart--heatmap c-chart--${p}`,..._,children:[e("svg",{width:k,height:M,viewBox:`0 0 ${k} ${M}`,className:"c-chart__svg",style:{width:"100%",height:"100%"},children:T({scales:{width:k,height:M}})}),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}`})]})})));kr.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(Sr,{ref:n,type:"line",datasets:i,config:l,title:"Multi-Axis Chart",showToolbar:!0,...d,children:e(Nr,{datasets:i,config:l,width:800,height:500,renderContent:p,interactive:!0,enableAccessibility:!0})})})));function Dr(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((()=>gr(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),C={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,C}))}),[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 Pr=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}=Dr(g,u),C=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(Sr,{ref:n,type:"pie",datasets:c,config:d,...p,children:[e("svg",{width:"100%",height:"100%",viewBox:"0 0 800 400",children:C()}),null!==E&&g[E]&&e(Cr,{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})]})})));Pr.displayName="PieChart";const $r=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:C="linear",scaleMin:y=0,scaleMax:L}=d,[T,A]=i(null),x=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=y,C=h-m,T=[];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`;T.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;T.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 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)/C,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:[T,I,x]})}),[p,g,v,_,S,f,b,E,N,y,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(Sr,{ref:n,type:"radar",datasets:s,config:c,...m,children:[e(Nr,{datasets:s,config:c,onDataPointClick:u,renderContent:x}),T&&e(Cr,{dataPoint:null===(r=s[T.datasetIndex])||void 0===r||null===(r=r.data)||void 0===r?void 0:r[T.pointIndex],datasetLabel:null===(o=s[T.datasetIndex])||void 0===o?void 0:o.label,datasetColor:null===(l=s[T.datasetIndex])||void 0===l?void 0:l.color,position:{x:T.clientX,y:T.clientY},visible:!0})]})})));$r.displayName="RadarChart";const Br=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),C=r(null),y=r(0),L=r(Date.now()),T=r([]),A=h((()=>{if(!p)return;const e=Date.now(),t=e-L.current;if(t>=1e3){const a=Math.round(1e3*y.current/t);E((e=>({...e,fps:a,dataPoints:gr(v).call(v,((e,t)=>{var a;return e+((null===(a=t.data)||void 0===a?void 0:a.length)||0)}),0)}))),y.current=0,L.current=e}y.current++}),[p,v]),x=h((()=>{if(0===T.current.length)return;const e=performance.now();_((e=>{const t=[...e];return T.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})),T.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{C.current=new WebSocket(u),C.current.onopen=()=>{f(!0)},C.current.onmessage=e=>{try{const t=JSON.parse(e.data);T.current.push(Array.isArray(t)?t:[t])}catch(e){}},C.current.onclose=()=>{f(!1)},C.current.onerror=e=>{f(!1)}}catch(e){}}),[u]),I=h((()=>{d&&(N.current=setInterval((async()=>{try{const e=await d();e&&e.length>0&&T.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),C.current&&(C.current.close(),C.current=null)}),[]);o((()=>{const e=setInterval(x,c.interval/4);return()=>clearInterval(e)}),[x,c.interval]),o((()=>((d||u)&&w(),()=>{R()})),[d,u,w,R]);const k=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(Sr,{ref:n,type:"line",datasets:v,config:s,title:"Real-time Chart "+(S?"🔴 LIVE":"⏸️ PAUSED"),showToolbar:!0,enableRefresh:!0,onRefresh:w,...g,children:[e(Nr,{datasets:v,config:s,renderContent:k,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"})]})]})})));Br.displayName="RealTimeChart";const Fr=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(Sr,{ref:r,type:"scatter",datasets:c,config:d,...m,children:[e(Nr,{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(Cr,{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})]})})));Fr.displayName="ScatterChart";const zr=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),[C,y]=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=gr(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:gr(t).call(t,((e,t)=>e+t.value),0),children:t}}),[r]),T=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=gr(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=gr(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=gr(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));gr(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:T(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,T]),x=h((e=>{N(e),null==g||g(e)}),[g]),O=h(((e,t)=>{b(e),null==v||v(e),t&&e&&(t.currentTarget.getBoundingClientRect(),y({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:()=>x(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,x]);return t(Sr,{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:C.x+10,top:C.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()]})]})]})})));zr.displayName="TreemapChart";const Gr=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:C=!0,baselineColor:y="#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}})),T=L.flatMap((e=>[e.startValue,e.endValue])),A=Math.min(0,...T),x=Math.max(...T)-A,O=s/i.length*v,I=s/i.length,w=e=>l+e*I+I/2,R=e=>l+h-(e-A)/x*h,k=[];if(C){const t=R(0);k.push(e("line",{x1:l,y1:t,x2:n.width-l,y2:t,stroke:y,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),k.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),k.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";k.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 ")}`;k.push(e("path",{d:a,fill:"none",stroke:S,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,a)=>{k.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:S,className:"c-chart__waterfall-cumulative-point"},`line-point-${a}`))}))}k.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")),k.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);k.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*x,i=R(n);k.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:k})}),[i,c,d,u,m,p,v,_,S,f,b,E,N,C,y]),T=[{label:"Waterfall Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(Sr,{ref:n,type:"waterfall",datasets:T,config:r,...s,children:e(Nr,{datasets:T,config:r,onDataPointClick:l,renderContent:L})})})));Gr.displayName="WaterfallChart";const Vr=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"})})})};Vr.displayName="ColorModeToggle";const Ur=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 C=[];return Hi(s).call(s,"days")&&C.push({label:"Days",value:f}),Hi(s).call(s,"hours")&&C.push({label:"Hours",value:b}),Hi(s).call(s,"minutes")&&C.push({label:"Minutes",value:E}),Hi(s).call(s,"seconds")&&C.push({label:"Seconds",value:N}),e("div",{ref:r,className:`c-countdown${d?" c-countdown--focused":""} ${u}`.trim(),children:C.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<C.length-1&&e("span",{className:"c-countdown__separator",children:c})]},a.label)))})}));function Yr(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&&Hi(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]),C=m((()=>{if(!r)return N;const e=(p-1)*l;return N.slice(e,e+l)}),[N,r,p,l]),y=m((()=>r?Math.max(1,Math.ceil(N.length/l)):1),[N.length,r,l]);return o((()=>{g(1)}),[t]),o((()=>{p>y&&g(Math.max(1,y))}),[p,y]),{displayData:C,sortConfig:d,currentPage:p,totalPages:y,handleSort:S,handlePageChange:f,handleSearch:b}}function Xr(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()}}}Ur.displayName="Countdown";const Hr=t=>{let{size:a="md",variant:n="primary",fullscreen:i=!1,className:r=""}=t;const{generateSpinnerClass:o}=Xr({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..."})})};Hr.displayName="Spinner";const Wr="...",jr=(e,t)=>{const a=t-e+1;return Array.from({length:a},((t,a)=>a+e))},Zr=e=>{let{currentPage:t,totalPages:a,siblingCount:n=1,onPageChange:i}=e;const r=m((()=>{if(n+5>=a)return jr(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[...jr(1,3+2*n),Wr,a]}if(r&&!o){let e=jr(a-(3+2*n)+1,a);return[1,Wr,...e]}if(r&&o){let t=jr(e,i);return[1,Wr,...t,Wr,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:Wr}},Kr=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(Ee,{name:o,size:"sm","aria-hidden":"true"})})})},qr=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:_}=Zr({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(Kr,{type:"first",onClick:v,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),s&&e(Kr,{type:"prev",onClick:g,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),h.map(((t,a)=>{if(t===Wr)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(Kr,{type:"next",onClick:p,disabled:n===i,label:"Go to next page",iconName:"CaretRight"}),l&&e(Kr,{type:"last",onClick:_,disabled:n===i,label:"Go to last page",iconName:"SkipForward"})]})})};qr.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:C,handleSort:y,handlePageChange:L,handleSearch:T}=Yr({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=>T(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?y(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(Ee,{name:"CaretUp",size:"sm"}):e(Ee,{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(Hr,{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||C<=1?null:e("div",{className:Z.pagination,children:e(qr,{currentPage:N,totalPages:C,onPageChange:L,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]})};function Jr(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function eo(e,t){return new Date(e,t+1,0).getDate()}function to(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 ao(){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?to(e,c):""),[S,f]=i(n&&l?`${to(n,c)} - ${to(l,c)}`:n?`${to(n,c)} - Select end date`:""),[b,E]=i(e||n||new Date),[N,C]=i("days"),[y,L]=i(!n||n&&l?"start":"end"),T=r(null),A=r(null),x=new Date,O=b.getMonth(),I=b.getFullYear(),w=eo(I,O),R=new Date(I,O,1).getDay();o((()=>{"single"===a?_(e?to(e,c):""):(f(n&&l?`${to(n,c)} - ${to(l,c)}`:n?`${to(n,c)} - Select end date`:""),L(!n||n&&l?"start":"end"))}),[e,n,l,c,a]);const k=h((e=>{const i=new Date(I,O,e);if(!(d&&i<d||u&&i>u))if("single"===a)t&&t(i),_(to(i,c)),m||g(!1);else if("start"===y)s&&s({startDate:i,endDate:null}),f(`${to(i,c)} - Select end date`),L("end");else{if(!n)return;i<n?(s&&s({startDate:i,endDate:n}),f(`${to(i,c)} - ${to(n,c)}`)):(s&&s({startDate:n,endDate:i}),f(`${to(n,c)} - ${to(i,c)}`)),m||g(!1),L("start")}}),[I,O,d,u,t,s,c,m,a,y,n]),M=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((()=>{C("months")}),[]),F=h((()=>{C("years")}),[]),z=h((e=>{E(new Date(I,e,1)),C("days")}),[I]),G=h((e=>{E(new Date(e,O,1)),C("months")}),[O]),V=h((()=>{const e=new Date;E(e),"single"===a?k(e.getDate()):E(new Date)}),[k,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=>{T.current&&!T.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=eo(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:Jr(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)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===a),[x]),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:y,datePickerRef:T,inputRef:A,startDate:n,endDate:l,setIsOpen:g,handleDateSelect:k,handlePrevMonth:M,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 no=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:C,name:y,className:L="",placement:T="bottom-start",inputClassName:A="",size:x="md",...O}=i;const{isOpen:I,inputValue:w,rangeInputValue:R,viewMode:k,currentMonth:M,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}=ao({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--${x} ${A}`.trim(),he=C||`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:y,ref:F,type:"text",className:ue,placeholder:"single"===s?v:"start"===$?"Select start date...":z?`${to(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(Ee,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(Ee,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(I||N)&&t("div",{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${T}`,role:"dialog","aria-modal":N?void 0:"true","aria-label":"Date picker",children:[t("div",{className:"c-datepicker__header",children:["days"===k&&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(Ee,{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(Ee,{name:"CaretLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:Q,"aria-label":"Switch to month view",children:`${M+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(Ee,{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(Ee,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===k&&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(Ee,{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(Ee,{name:"CaretRight",size:"sm"})})]}),"years"===k&&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(Ee,{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(Ee,{name:"CaretRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===k&&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"===k&&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"===k&&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"===k&&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"})]})]})]})}));no.displayName="DatePicker";const io=v({isOpen:!1,close:()=>{},id:"",trigger:"click"}),ro=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),C=void 0!==u,y=C?u:E,L=r(null),T=r(null),A=r(null),x=r(`dropdown-${Math.random().toString(36).substring(2,9)}`).current,O=h((e=>{C||N(e),m&&m(e)}),[C,m]),I=h((()=>O(!y)),[y,O]),w=h((()=>{O(!1),setTimeout((()=>{var e;null===(e=T.current)||void 0===e||e.focus()}),0)}),[O]);o((()=>{if(!y||!p)return;const e=e=>{L.current&&!L.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[y,p,w]),o((()=>{if(!y||!g)return;const e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[y,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()}}),[]),k=h((e=>{"click"===c&&(e.preventDefault(),e.stopPropagation(),I())}),[c,I]),M=h((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||y?"Escape"===e.key&&y&&(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))}),[y,O,w]),D=h((()=>{"hover"===c&&O(!0)}),[c,O]),P=["c-dropdown","click"===c?"c-dropdown--onclick":"",S?`c-dropdown--${S}`:"",y?"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:T,className:"c-dropdown__toggle",onClick:k,onKeyDown:M,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":x,tabIndex:0,children:n}),e("div",{ref:A,id:x,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${y?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!y,onKeyDown:R,children:e("div",{className:"c-dropdown__menu-inner",style:$,children:e(io.Provider,{value:{isOpen:y,close:w,id:x,trigger:c},children:e("ul",{className:"c-dropdown__menu",children:l})})})})]})};function oo(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}}ro.displayName="Dropdown";const lo=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}=oo({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(Ee,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:i})]})]}):null};lo.displayName="EdgePanel";const so="c-checkbox",co="is-error",uo="is-valid",ho="is-disabled",mo="c-checkbox--mixed";function po(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=co:i&&(l=uo);return`${so} ${l} ${a?ho:""} ${r?mo:""} ${o}`.trim()},checkboxRef:a}}const go=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}=po({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 vo(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)}}}go.displayName="Checkbox";const _o=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}=vo({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 So(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()}}}_o.displayName="Form";const fo=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}=So({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 bo(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()}}}fo.displayName="FormGroup";const Eo=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:C,max:y,step:L,ariaLabel:T,ariaDescribedBy:A}=t;const{generateInputClass:x}=bo({size:v,variant:_,disabled:c,invalid:S,valid:f}),O=x({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:C,max:y,step:L,"aria-label":T,"aria-describedby":A,"aria-invalid":S})};function No(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(M.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(M.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=[M.SELECTORS.HERO.replace(".","")];return"center"===i.alignment?t.push(M.CLASSES.CENTER):"right"===i.alignment?t.push(M.CLASSES.RIGHT):"left"===i.alignment&&t.push(M.CLASSES.LEFT),i.fullViewportHeight&&t.push(M.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 yo(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 Lo(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 To(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 Ao(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 xo(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 Oo(e,t){return e.classList.contains(t)}Eo.displayName="Input";const Io={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 wo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const a=Io[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 Ro(){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 Mo(e){return/(?:youtube\.com|youtu\.be)/.test(e)}var Do=Object.freeze({__proto__:null,addClass:function(e,t){Oo(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=wo(e,t),n},createPhosphorIcon:wo,extractYouTubeId:ko,generateUUID:Ro,getAvailableIcons:function(){return Object.keys(Io)},hasClass:Oo,isYouTubeUrl:Mo,removeClass:function(e,t){Oo(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,a){e.classList.toggle(t,a)}});function Po(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:Ro(),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 $o(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 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,autoplay:g,onSlideChange:v}=e,_=r(null),S=r(null),f=r(!1),b=r(null),[E,N]=i(!1),[C,y]=i(s),[L,T]=i(0),[A,x]=i(!1),[O,I]=i(0),[w,R]=i(!1),[k,M]=i(0),[D,P]=i(0),$=m((()=>0===O?0:(O-n*(a-1))/a),[O,n,a]),B=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]),F=t.length,z=m((()=>0===$?0:-L*$+D),[$,L,D]);o((()=>{if(!g)return b.current&&(clearInterval(b.current),b.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;b.current&&clearInterval(b.current),b.current=setInterval((()=>{y((e=>{if(A)return e;let n;if(r&&b.current&&(clearInterval(b.current),b.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 T(l?t.length+a:a),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(a)}),d),a}return T(l?t.length+n:n),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(n),l&&n>=2*t.length&&(f.current=!0,T(t.length+n),setTimeout((()=>{f.current=!1}),0))}),d),n}))}),n),N(!0);let s=null;const c=()=>{b.current&&(clearInterval(b.current),b.current=null,N(!1))},u=()=>{b.current&&clearInterval(b.current),b.current=setInterval((()=>{y((e=>{if(A)return e;let n;return n=l?(e+1)%t.length:Math.min(e+1,t.length-a),T(l?t.length+n:n),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(n),l&&n>=2*t.length&&(f.current=!0,T(t.length+n),setTimeout((()=>{f.current=!1}),0))}),d),n}))}),n),N(!0)};return i&&_.current&&(s=_.current,s.addEventListener("mouseenter",c),s.addEventListener("mouseleave",u)),()=>{b.current&&(clearInterval(b.current),b.current=null),s&&(s.removeEventListener("mouseenter",c),s.removeEventListener("mouseleave",u)),N(!1)}}),[g,t.length,l,a,A,d,v,f]),o((()=>{T(l?t.length+s:s)}),[l,t.length,s]),o((()=>{const e=()=>{if(_.current){const e="horizontal"===c?_.current.offsetWidth:_.current.offsetHeight;I(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c]);const G=h((()=>{if(!A)if(g&&"object"==typeof g&&g.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,N(!1)),l){const e=(C+1)%t.length,a=L+1;y(e),T(a),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(e),a>=2*t.length&&(f.current=!0,T(t.length+e),setTimeout((()=>{f.current=!1}),0))}),d)}else{const e=Math.min(C+1,t.length-a);y(e),T(e),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(e)}),d)}}),[C,L,t.length,a,l,A,d,v,B.length,F,g]),V=h((()=>{if(!A)if(g&&"object"==typeof g&&g.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,N(!1)),l){const e=0===C?t.length-1:C-1,a=L-1;y(e),T(a),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(e),a<t.length&&(f.current=!0,T(t.length+e),setTimeout((()=>{f.current=!1}),0))}),d)}else{const e=Math.max(C-1,0);y(e),T(e),x(!0),P(0),setTimeout((()=>{x(!1),null==v||v(e)}),d)}}),[C,L,t.length,l,A,d,v,B.length,F,g]),U=h((e=>{A||e===C||(g&&"object"==typeof g&&g.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,N(!1)),x(!0),P(0),y(e),T(l?t.length+e:e),setTimeout((()=>{x(!1),null==v||v(e)}),d))}),[C,A,d,v,l,F,g]),Y=h((e=>{var t,a;if(!u)return;g&&"object"==typeof g&&g.disableOnInteraction&&b.current&&(clearInterval(b.current),b.current=null,N(!1));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;M(n),R(!0),P(0)}),[u,c,g]),X=h((e=>{var t,a;if(!w||!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=k-n;Math.abs(i)>10&&(e.preventDefault(),P(.5*-i))}),[w,k,u,c]),H=h((e=>{var t,a;if(!w||!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=k-n;R(!1),P(0),Math.abs(i)>p&&(i>0?G():V())}),[w,k,p,G,V,u,c]),W=l||C<t.length-a,j=l||C>0;return{activeIndex:C,realIndex:C,previousIndex:C,isBeginning:!l&&0===C,isEnd:!l&&C>=t.length-a,progress:t.length>0?C/(t.length-1):0,autoplayRunning:E,transitioning:A,touching:w,translate:z,slidesPerView:a,slidesCount:t.length,isLocked:!1,destroyed:!1,size:O,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:W,allowSlidePrev:j,allowTouchMove:u,animating:A,enabled:!0,initialized:!0,slideNext:G,slidePrev:V,goToSlide:U,canSlideNext:W,canSlidePrev:j,containerRef:_,wrapperRef:S,handleTouchStart:Y,handleTouchMove:X,handleTouchEnd:H,allSlides:B,translateValue:z,slideWidth:$,currentSlidesToShow:a,loopedSlides:F,repositioningRef:f}}var Go=Object.freeze({__proto__:null,DOTS:Wr,useAccordion:_e,useBadge:ye,useBarChart:Tr,useBlock:Ae,useBreadcrumb:function(e){return{defaultOptions:{items:[],divider:k.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[k.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[k.CLASSES.ITEM,e.active||t?k.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:Ie,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]),C=h((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n&&"click"===o&&g((e=>!e)),c&&c(e))}),[n,o,c]),y=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]),T=h((()=>{f(!0)}),[]),A=h((()=>{f(!1)}),[]),x=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:y,onMouseLeave:L,onFocus:T,onBlur:A,onClick:N,onKeyDown:C})),[v,p,S,a,l,s,y,L,T,A,N,C,n]);return{cardRef:d,frontRef:u,backRef:m,isFlipped:p,isElevated:v,isFocused:S,isHovered:b,handleClick:N,handleKeyDown:C,handleMouseEnter:y,handleMouseLeave:L,handleFocus:T,handleBlur:A,getCardProps:x}},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=gr(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:po,useDataTable:Yr,useEdgePanel:oo,useForm:vo,useFormGroup:So,useHero:No,useInput:bo,useLineChart:Er,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:Lo,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:To,useNavbar:yo,usePagination:Zr,usePieChart:Dr,useRadio:$o,useRiver:Co,useSelect:Bo,useSideMenu:Ao,useSideMenuItem:xo,useSlider:zo,useSpinner:Xr,useTextarea:Fo,useTodo:Po});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:C}=Bo({size:_,disabled:m,invalid:S,valid:f}),y=C({className:h,size:_,disabled:m,invalid:S,valid:f}),[L,T]=i(!1),[A,x]=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&&x(e.label)}else x(u)}),[l,n,u]),o((()=>{const e=e=>{O.current&&!O.current.contains(e.target)&&(T(!1),w.current&&(w.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);return t("div",{className:`${y} ${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"),T(!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(x(e.label),T(!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=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}=$o({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})]})};Uo.displayName="Radio";const Yo=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:C}=t;const{generateTextareaClass:y}=Fo({size:_,variant:S,disabled:s,invalid:f,valid:b}),L=y({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":C,"aria-invalid":f})};Yo.displayName="Textarea";const Xo=u(((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})]})}));Xo.displayName="FooterSocialLink";const Ho=u(((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:_=[],showBackToTop:S=!1,backToTopText:f="Back to Top",onBackToTop:b,showDivider:E=!0,sticky:N=!1,children:C,className:y="",disabled:L=!1,...T}=a;const{footerClass:A,containerClass:x,brandClass:O,sectionsClass:I,bottomClass:w,handleNewsletterSubmit:R,handleBackToTop:k,socialLinks:M}=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:S,socialLinks:_,onNewsletterSubmit:v,onBackToTop:b,className:y});return e("footer",{ref:n,className:A,...T,children:t("div",{className:x,children:[t("div",{className:I,children:[(i||r||o)&&t("div",{className:O,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}),_.length>0&&e("div",{className:"c-footer__social",children:_.map(((t,a)=>e(Xo,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:d},`${t.platform}-${a}`)))})]}),C&&e("div",{className:"c-footer__sections",children:C}),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(_o,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&R(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(Eo,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:p,required:!0}),e(we,{type:"submit",className:"c-footer__newsletter-button",children:g})]})})]})]}),(l||S)&&E&&e("hr",{className:"c-footer__divider"}),(l||S)&&t("div",{className:w,children:[l&&e("div",{className:"c-footer__copyright",children:l}),S&&t(we,{variant:"ghost",className:"c-footer__back-to-top",onClick:k,disabled:L,"aria-label":f,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:f})]})]})]})})}));Ho.displayName="Footer";const Wo=u(((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})]})}));Wo.displayName="FooterSection";const jo=u(((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:"↗"})]})}));jo.displayName="FooterLink";const Zo=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:C,generateContentColClass:y,hasBackgroundImage:L,hasForegroundImage:T,useGridLayout:A,heroRef:x,videoRef:O}=No({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:M.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:M.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:M.SELECTORS.TITLE.replace(".",""),children:i}),o&&e("p",{className:M.SELECTORS.TEXT.replace(".",""),children:o}),m&&e("div",{className:M.SELECTORS.ACTIONS.replace(".",""),children:m})]}),k=()=>T?e("div","center"===c?{className:M.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:l,alt:s,className:M.SELECTORS.IMAGE.replace(".","")})}:{className:C(),children:e("img",{src:l,alt:s,className:M.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:x,className:N(_),style:I,"data-parallax":S?"true":void 0,"data-parallax-intensity":S?f:void 0,children:[L||b?t("div",{className:M.SELECTORS.BG.replace(".",""),children:[d&&e("img",{src:d,alt:"Background",className:M.SELECTORS.BG_IMAGE.replace(".","")}),w(),u&&e("div",{className:M.SELECTORS.OVERLAY.replace(".","")})]}):null,e("div",{className:`${M.SELECTORS.CONTAINER.replace(".","")} o-container`,children:A?e("div",{className:`${M.SELECTORS.GRID.replace(".","")} o-grid`,children:t(a,"left"===c?{children:[e("div",{className:y(),children:R()}),k()]}:{children:[k(),e("div",{className:y(),children:R()})]})}):t(a,{children:[R(),k()]})})]})};Zo.displayName="Hero";const Ko=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=Hi(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})))})};Ko.displayName="List";const qo=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(Ne,{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(Ee,{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(Ee,{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(Ee,{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(Ee,{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(Ee,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};qo.displayName="Messages";const Qo=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),C=r(null),{isOpen:y,open:L,close:T}=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&&y&&T()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y,T,v]);const A=["c-modal",y?le.CLASSES.IS_OPEN:"",p?`c-modal--${p}`:"",_].filter(Boolean).join(" ");return t("div",{ref:E,className:A,style:{display:y?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!y,...b,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{g&&e.target===e.currentTarget&&T()}}),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:T,"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})]})})]})};Qo.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}=Lo({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 el=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}=To({dropdown:c,megaMenu:d,active:u,disabled:g}),[E,N]=i(!1),C=r(null);o((()=>{if(!c&&!d||!E)return;const e=e=>{if(C.current&&!C.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 y=S({dropdown:c,megaMenu:d,active:u,disabled:g,className:p})+(E?" is-active":""),L=f(u,g,c||d?"c-nav__dropdown-toggle":""),T=n.Children.toArray(s),A=void 0!==v?v:E,x={ref:C,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:y,role:"menuitem","aria-haspopup":c||d,children:[e(_||"a",{...x,children:c||d?T[0]:s}),(c||d)&&T.length>1&&T[1]]})}));el.displayName="NavItem";const tl=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:C,generateCollapseClass:y}=yo({position:d,collapsible:h,expanded:m,onToggle:p}),[L,T]=i(m||!1),A=r(null);o((()=>{void 0!==m&&T(m)}),[m]),o((()=>{const e=()=>{!(window.innerWidth<768)&&h&&("function"==typeof p?m&&p(!1):T(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[h,m,p]);const x=N({position:d,variant:c,collapsible:h,className:g}),O=C(u),I=y(L);return e("nav",{ref:n,className:x,"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):T(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})]})})}));tl.displayName="Navbar";const al=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}=Ao({isOpen:o,onToggle:l,collapsible:s,disabled:d}),f=v({className:c,isOpen:m}),b=_(),E=e(Ee,{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})})]})}));al.displayName="SideMenu";const nl=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}=xo({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})]})}));nl.displayName="SideMenuItem";const il=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))})}));il.displayName="SideMenuList";const rl=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(Le,{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(we,{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(Ee,{name:"Minus",size:"sm"})}),e(we,{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(Ee,{name:"MagnifyingGlass",size:"sm"})}),e(we,{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(Ee,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(we,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(Ee,{name:"ArrowsClockwise",size:"sm"})}),e(we,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(Ee,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(we,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:p,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(Ee,{name:"Share",size:"sm"})}),e(we,{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(Ee,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(we,{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(Ee,{name:d?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(we,{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(Ee,{name:"X",size:"sm"})})]})]})},ol=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(we,{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(Ee,{name:"CaretLeft",size:"md"})}),e(we,{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(Ee,{name:"CaretRight",size:"md"})})]}):null},ll=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),C=n||N,[y,L]=i(!1);o((()=>(L(!0),()=>L(!1))),[]);return o((()=>{const e=C.current;if(!e)return;const t=t=>{y&&e&&_&&_(t)},a=t=>{y&&e&&S&&S(t)},n=t=>{y&&e&&f&&f(t)},i=t=>{y&&e&&b&&b(t)};return y&&(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)}}),[y,_,S,f,b,C]),e("div",{ref:C,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=>{y&&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()})})},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(we,{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)}))})})},cl=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(we,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(Ee,{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(Ee,{name:"Calendar",size:14}),e("span",{children:i.date})]}),i.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(Ee,{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(Le,{label:t,variant:"secondary",size:"sm"},a)))})]})]})]}):null},dl=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:C,showInfo:y,imageRef:L,containerRef:T,isTransitioning:A,setZoomLevel:x,setImagePosition:O,setIsDragging:I,setIsFullscreen:w,setRotationAngle:R,setShowInfo:k,closeModal:M,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,C]=i({}),[y,L]=i(!1),[T,A]=i(!1),[x,O]=i({velocity:0,timestamp:0}),I=r(null),w=r(null),R=r([]),k=r(null),M=r(null),D=r(0),P=r(null),$=h(((e,t)=>{if(!T||!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}}}),[T]),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&&C((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=()=>{T&&e&&t&&C((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&&T))return e&&t&&T?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[c,$,B,T]),o((()=>{const e=()=>{T&&I.current&&w.current&&C((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,T]);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=>{C((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}}}))}),[T,c,$,B]),Y=h((e=>{C((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=>{C((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}}}))}),[T,c,$,B]),H=h((e=>{var t;if(!T||!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&&Hi(t).call(t,"storybook"))try{const e=a.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(e){return}C((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 C((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}))}}),[T,c,$,B]),W=h((e=>{if(!T||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&C((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}}}))}),[T,c,$,B]),j=h((e=>{C((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&&C((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}))),C((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;k.current=Math.sqrt(t*t+n*n),M.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()),C((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!==k.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-k.current),k.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&&M.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 M.current=o,{...a,[c]:{...n,zoomLevel:h,bounds:m,position:g}}}o&&(M.current=o)}}return a}))}),[T,n,p,v,c,B,$]),J=h((()=>{g(!1),k.current=null,M.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:y,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:()=>{C((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":"",y?"c-photo-viewer--info-open":"",c?"is-disabled":"",s].filter(Boolean).join(" ")),[E,N,y,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:M}),t("div",{className:"c-photo-viewer__container",children:[e(rl,{currentIndex:S,imagesLength:n.length,onZoomOut:()=>x((e=>Math.max(e-.25,.1))),onResetZoom:()=>{H()},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()}w(!N)}},onClose:_||M,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:y,onToggleInfo:()=>k(!y),currentImage:j}),t("div",{className:"c-photo-viewer__content",children:[e(ol,{show:n.length>1,onPrev:D,onNext:P,currentIndex:S,imagesLength:n.length,enableKeyboardNav:d,onClose:_||M}),(null==j?void 0:j.src)&&e(ll,{imageRef:L,containerRef:T,src:j.src,alt:(null==j?void 0:j.alt)||`Image ${S+1}`,zoomLevel:f,dragPosition:b,isDragging:E,rotationAngle:C,isTransitioning:A,onMouseDown:B,onMouseMove:F,onMouseUp:z,onWheel:G,onTouchStart:V,onTouchMove:U,onTouchEnd:Y,onDoubleClick:X})]}),"none"!==g&&e(sl,{images:W,currentIndex:S,goToImage:$}),e(cl,{show:y,image:j,onClose:()=>k(!1)})]})]}):null};dl.displayName="PhotoViewer";const ul=v({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),hl=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:C,popoverId:y,currentPosition:L,updatePosition:T}=(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)}`,C=void 0!==c,y=C?c:p,L=e=>{C||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,y]);const T=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(!y||!S.current||!f.current)return;T(),window.addEventListener("resize",T);let e=null;const t=t=>{e||(e=setTimeout((()=>{T(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{T()}),500);return()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(a)}}),[y,t,n]),o((()=>{if(!y||!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)}}),[y,u]),o((()=>{if(!y||!h)return;const e=e=>{"Escape"===e.key&&L(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y,h]),o((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:y,setIsOpen:L,triggerRef:S,popoverRef:f,arrowRef:b,popoverId:N,currentPosition:v,updatePosition:T}})({position:l,trigger:s,offset:u,delay:d,defaultOpen:h,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:v,id:_});return t(ul.Provider,{value:{isOpen:f,setIsOpen:b,triggerRef:E,popoverId:y,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:y,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:C,className:"c-popover__arrow"})]}),document.body)]})};hl.displayName="Popover";function ml(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function pl(e,t){return n.useMemo((()=>null==e&&null==t?null:a=>{ml(e,a),ml(t,a)}),[e,t])}const gl=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:C,hoverValue:y,focusedIndex:L,setHoverValue:T,setFocused:A,handleKeyDown:x}=(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;T(Math.max(.5,i))}else T(t)}),[u,d,T]),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;T(Math.max(.5,i))}),[u,d,T]),w=h((()=>{u||T(null)}),[u,T]),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 k=["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:k,ref:pl(E,n),id:S,...b});const M=null!==y?y:C;return e("div",{className:k,ref:pl(E,n),id:S,"data-readonly":u?"true":"false",onMouseLeave:w,role:u?"img":"radiogroup","aria-label":_||`Rating: ${C} out of ${c} stars`,...b,children:(()=>{const a=[],n=d?Math.floor(2*M)/2:Math.round(M),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=>x(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})()})}));gl.displayName="Rating";const vl=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)},C=["c-product-review",m].filter(Boolean).join(" ");return S?e("div",{className:C,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(we,{variant:"secondary",label:"Write another review",onClick:()=>{f(!1),g(0),_("")}})]})}):t("div",{className:C,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(gl,{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(we,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};vl.displayName="ProductReview";const _l=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})})})),Sl=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,C=()=>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,y=()=>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:[C(),e("div",{className:`${U.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:U.SELECTORS.ROW.replace(".",""),children:[!d&&y(),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&&y()]})})]}):t("div",{className:v(g),style:N,children:[C(),e("div",{className:`${U.SELECTORS.CONTAINER.replace(".","")} o-container`,children:t("div",{className:U.SELECTORS.ROW.replace(".",""),children:[!d&&y(),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&&y()]})})]})};Sl.displayName="River";const fl=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,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"})})]})};fl.displayName="SectionIntro";const bl=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,autoplay:S,navigation:f,pagination:b,className:E,onSlideChange:N,...C}=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,autoplay:S,onSlideChange:N}),{containerRef:L,wrapperRef:T,allSlides:A,realIndex:x,translateValue:O,slideWidth:I,transitioning:w,touching:R,slideNext:k,slidePrev:M,goToSlide:D,canSlideNext:P,canSlidePrev:$,handleTouchStart:B,handleTouchMove:F,handleTouchEnd:z,loopedSlides:G}=y,V=m((()=>0===I?0:A.length*(I+c)-c),[A.length,I,c]),U=["c-slider","vertical"===h&&"c-slider--vertical",_&&"c-slider--grab-cursor",R&&"c-slider--grabbing",d&&"c-slider--loop",E].filter(Boolean).join(" ");return t("div",{ref:n||L,className:U,style:{height:"number"==typeof o?`${o}px`:o,width:"number"==typeof l?`${l}px`:l,overflow:"hidden",position:"relative",cursor:_&&!R?"grab":R?"grabbing":"default",...C.style},onTouchStart:B,onTouchMove:F,onTouchEnd:z,onMouseDown:B,onMouseMove:F,onMouseUp:z,onMouseLeave:z,children:[e("div",{ref:T,className:"c-slider__wrapper",style:{display:"flex",flexDirection:"vertical"===h?"column":"row",width:"horizontal"===h?`${V}px`:"100%",height:"vertical"===h?`${V}px`:"100%",transform:"horizontal"===h?`translateX(${O}px)`:`translateY(${O}px)`,transition:!w||null!==(i=y.repositioningRef)&&void 0!==i&&i.current?"none":`transform ${p}ms ease-out`,willChange:"transform"},children:A.map(((a,n)=>t("div",{className:["c-slider__slide",(d?n%r.length===x:n===x)&&"c-slider__slide--active",a.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===h?"100%":`${I}px`,height:"vertical"===h?`${I}px`:"100%",flexShrink:0,marginRight:"horizontal"===h&&n<A.length-1?`${c}px`:0,marginBottom:"vertical"===h&&n<A.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)))}),f&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:M,disabled:!$,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:k,disabled:!P,"aria-label":"Next slide"})]}),b&&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:()=>D(a),"aria-label":`Go to slide ${a+1}`},a)))})]})}));bl.displayName="Slider";const El=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}`)))})};El.displayName="Steps";const Nl=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}`)))})]})};Nl.displayName="Tab";const Cl=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})]})]})]})};Cl.displayName="Testimonial";const yl=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}=Po({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)),C=S({size:d,className:m,disabled:p});return t("div",{className:C,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:Ro(),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(Ee,{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(Ee,{name:"Trash",size:"sm"})})]})},a.id)))})]})};yl.displayName="Todo";const Ll=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"})})};Ll.displayName="Toggle";const Tl=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]})})]})};Tl.displayName="Tooltip";const Al=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,C]=i(!1),[y,L]=i(null),[T,A]=i(0),[x,O]=i(null),[I,w]=i(null),[R,k]=i(null),M=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"),k("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||(M.current++,1===M.current&&C(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(M.current--,0===M.current&&C(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{var t;if(e.preventDefault(),e.stopPropagation(),n)return;if(M.current=0,C(!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":T},children:[y&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:y.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[T,"%"]}),e("div",{className:"c-upload__loader-time",children:x})]})]}),("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),k(null)},children:e("i",{className:"icon-lux-x"})})]})]})]})})};Al.displayName="Upload";const xl=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:k="",onPlay:M,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&&Mo(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:Ce,getBufferedPercentage:ye}=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,C]=i(1),[y,L]=i(!1),[T,A]=i(!1),[x,O]=i(!1),[I,w]=i(!1),[R,k]=i(0),[M,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,C(a),L(0===a),null==d||d(a))}),[t,d]),W=h((()=>{if(t.current){const e=!y;t.current.muted=e,L(e)}}),[t,y]),j=h((async()=>{if(a.current)try{T?document.exitFullscreen&&await document.exitFullscreen():a.current.requestFullscreen&&await a.current.requestFullscreen()}catch(e){}}),[a,T]),Z=h((async()=>{if(t.current)try{x?document.exitPictureInPicture&&await document.exitPictureInPicture():t.current.requestPictureInPicture&&await t.current.requestPictureInPicture()}catch(e){}}),[t,x]),K=h((e=>{t.current&&Hi(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),C(e.volume),L(e.muted)},o=()=>{f(e.currentTime),null==c||c(e.currentTime)},u=()=>{e.buffered.length>0&&k(e.buffered.end(e.buffered.length-1))},h=()=>{_(!0),null==n||n()},p=()=>{_(!1),null==l||l()},g=()=>{_(!1),null==s||s()},v=()=>{C(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:y,isFullscreen:T,isPictureInPicture:x,isLoading:I,buffered:R,playbackRate:M,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:M,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,Te]=i(!1),[Ae,xe]=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]),ke=h((()=>{if(c){const e=document.createElement("a");e.href=c,e.download="video",e.click()}}),[c]),Me=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:""} ${k}`,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:`${ye()}%`}}),e("div",{className:ue.CLASSES.PROGRESS_PLAYED,style:{width:`${Ce()}%`}}),e("div",{className:ue.CLASSES.PROGRESS_THUMB,style:{left:`${Ce()}%`}})]})}),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:C,{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:()=>Te(!Le),"aria-label":"Settings",children:e(y,{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:()=>xe("quality"),children:"Quality"}),e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"speed"===Ae?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>xe("speed"),children:"Speed"}),e("button",{className:`${ue.CLASSES.SETTINGS_TAB} ${"subtitles"===Ae?ue.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>xe("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:ke,"aria-label":"Download video",children:e(L,{size:20})}),V&&e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Me,"aria-label":"Share video",children:e(T,{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:x,{size:20})})]})]})]})]})}));xl.displayName="VideoPlayer";var Ol=Object.freeze({__proto__:null,Accordion:Se,AdvancedChart:fr,AnimatedChart:br,AreaChart:Lr,AtomixLogo:fe,Avatar:Ne,AvatarGroup:Ce,Badge:Le,BarChart:Ar,Block:xe,Breadcrumb:Oe,BubbleChart:xr,Button:we,Callout:Wi,CandlestickChart:Or,Card:ji,Chart:Sr,ChartRenderer:Nr,Checkbox:go,ColorModeToggle:Vr,Countdown:Ur,DataTable:Qr,DatePicker:no,DonutChart:Ir,Dropdown:ro,EdgePanel:lo,Footer:Ho,FooterLink:jo,FooterSection:Wo,FooterSocialLink:Xo,Form:_o,FormGroup:fo,FunnelChart:wr,GaugeChart:Rr,HeatmapChart:kr,Hero:Zo,Icon:Ee,Input:Eo,LineChart:yr,List:Ko,Messages:qo,Modal:Qo,MultiAxisChart:Mr,Nav:Jo,NavItem:el,Navbar:tl,Pagination:qr,PhotoViewer:dl,PieChart:Pr,Popover:hl,ProductReview:vl,Progress:_l,RadarChart:$r,Radio:Uo,Rating:gl,RealTimeChart:Br,River:Sl,ScatterChart:Fr,SectionIntro:fl,Select:Vo,SideMenu:al,SideMenuItem:nl,SideMenuList:il,Slider:bl,Spinner:Hr,Steps:El,Tab:Nl,Testimonial:Cl,Textarea:Yo,Todo:yl,Toggle:Ll,Tooltip:Tl,TreemapChart:zr,Upload:Al,VideoPlayer:xl,WaterfallChart:Gr});const Il=Go,wl=Do,Rl=Object.freeze({__proto__:null}),kl=Object.freeze({__proto__:null,ACCORDION:I,AVATAR:re,AVATAR_GROUP:oe,BADGE:w,BLOCK:ge,BREADCRUMB:k,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,FOOTER:ve,FORM:Q,FORM_GROUP:J,HERO:M,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}),Ml=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})}));Ml.displayName="Grid";const Dl=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})}));Dl.displayName="GridCol";const Pl=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})}));Pl.displayName="Row";const $l=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:C,...y}=t;const[L,T]=i(u),[A,x]=i([]),[O,I]=i(!1),[w,R]=i(!1),k=r(null),M=r([]),D=r(0),P=r(0),$=r(new Map);o((()=>{R(!!E)}),[L,E]),g(a,(()=>k.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=()=>T(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,k.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==C||C(D.current,P.current),D.current>=P.current&&P.current>0&&(I(!0),R(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{U(),R(!1)}))})),null==N||N())}}),[C,N,E]),V=h((()=>{if(!E||!k.current)return;$.current.clear(),D.current=0;const e=k.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(!k.current||0===F.length)return;const e=(k.current.offsetWidth-f*(L-1))/L;M.current=Array(L).fill(0);const t=[];F.forEach(((a,n)=>{if(a.ref.current){const i=M.current.indexOf(Math.min(...M.current)),r=i*(e+f),o=M.current[i]??0,l=a.ref.current.offsetHeight;M.current[i]=o+l+f,t[n]={left:r,top:o,width:e,height:l}}})),x(t)}),[F,L,f]);o((()=>{if(!k.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>U()))}));return t.observe(k.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=M.current.length>0?Math.max(...M.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:k,className:X,style:{position:"relative",width:"100%",height:`${Y}px`,...y.style},...y,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)}))})}));$l.displayName="MasonryGrid";const Bl=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})}));Bl.displayName="MasonryGridItem";const Fl={...Ol,...Object.freeze({__proto__:null,Container:Te,Grid:Ml,GridCol:Dl,MasonryGrid:$l,MasonryGridItem:Bl,Row:Pl}),composables:Il,utils:wl,constants:kl,types:Rl};export{Se as Accordion,fr as AdvancedChart,br as AnimatedChart,Lr as AreaChart,fe as AtomixLogo,Ne as Avatar,Ce as AvatarGroup,Le as Badge,Ar as BarChart,xe as Block,Oe as Breadcrumb,xr as BubbleChart,we as Button,Wi as Callout,Or as CandlestickChart,ji as Card,Sr as Chart,Nr as ChartRenderer,go as Checkbox,Vr as ColorModeToggle,Te as Container,Ur as Countdown,Qr as DataTable,no as DatePicker,Ir as DonutChart,ro as Dropdown,lo as EdgePanel,Ho as Footer,jo as FooterLink,Wo as FooterSection,Xo as FooterSocialLink,_o as Form,fo as FormGroup,wr as FunnelChart,Rr as GaugeChart,Ml as Grid,Dl as GridCol,kr as HeatmapChart,Zo as Hero,Ee as Icon,Eo as Input,yr as LineChart,Ko as List,$l as MasonryGrid,Bl as MasonryGridItem,qo as Messages,Qo as Modal,Mr as MultiAxisChart,Jo as Nav,el as NavItem,tl as Navbar,qr as Pagination,dl as PhotoViewer,Pr as PieChart,hl as Popover,vl as ProductReview,_l as Progress,$r as RadarChart,Uo as Radio,gl as Rating,Br as RealTimeChart,Sl as River,Pl as Row,Fr as ScatterChart,fl as SectionIntro,Vo as Select,al as SideMenu,nl as SideMenuItem,il as SideMenuList,bl as Slider,Hr as Spinner,El as Steps,Nl as Tab,Cl as Testimonial,Yo as Textarea,yl as Todo,Ll as Toggle,Tl as Tooltip,zr as TreemapChart,Al as Upload,xl as VideoPlayer,Gr as WaterfallChart,Il as composables,kl as constants,Fl as default,Rl as types,wl 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 y,Share as T,ArrowsIn as L,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"}},$={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"}},H={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"}},W={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:"▶"}},Q={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"}},K={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"},j={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"}},X={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",SETTINGS_MENU_CLASS:"c-chart__settings-menu",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()}}const fe=0,Ee=255,Ae=8e-4,be=(e,t,a)=>{const n=Math.max(0,Math.min(1,(a-e)/(t-e)));return n*n*(3-2*n)},Ne=(e,t)=>Math.sqrt(e*e+t*t),_e=(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)+Ne(Math.max(r,0),Math.max(o,0))-i},Ce=(e,t)=>({x:e,y:t}),ye=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),Te=(e,t,a)=>Math.max(t,Math.min(a,e)),Le=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,xe=e=>1-Math.pow(1-e,4),Ie=(e,t)=>{const a=255&Math.floor(e),n=255&Math.floor(t),i=e-Math.floor(e),r=t-Math.floor(t),o=Le(i),l=Le(r),s=(e,t)=>{const a=e+57*t;return 43758.5453*Math.sin(12.9898*a+78.233)%1},c=s(a,n),d=s(a+1,n),u=s(a,n+1),h=c+o*(d-c);return h+l*(u+o*(s(a+1,n+1)-u)-h)},we=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,n=0,i=.5,r=1;for(let o=0;o<a;o++)n+=i*Ie(e*r,t*r),r*=2,i*=.5;return n},Re=function(e,t,a){const n=.02*a;return{x:(e-(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0))*n,y:(t-(arguments.length>4&&void 0!==arguments[4]?arguments[4]:0))*n}},Oe={liquidGlass:(e,t)=>{if(!ye(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,i=Date.now()*Ae,r=t&&ye(t)?t.x-.5:0,o=t&&ye(t)?t.y-.5:0,l=Ne(r,o),s=xe(1-Math.min(2*l,1)),c=we(12*(a+.5*r)+i,12*(n+.5*o)+.7*i,3)-.5,d=_e(a,n,.4,.3,.35),u=be(.8,0,d-.05),h=((e,t,a)=>{const n=Ne(e,t),i=Math.pow(n,2)*a;return{x:e*(1+i),y:t*(1+i)}})(a,n,.4*.1),m=1.2*(h.x-a)*u,p=1.2*(h.y-n)*u,g=.018*Math.sin(8*(a+2*r)+2*i),v=.018*Math.cos(8*(n+2*o)+1.5*i),S=(.015*Math.sin(12*(a-r)+12*(n-o)+3*i)+.012*Math.cos(10*(a+r)-10*(n-o)-2*i))*s*l,f=(Math.sin(15*a+i)*Math.cos(15*n-i)*.008+Math.sin(20*a-.5*i)*Math.cos(20*n+.5*i)*.006)*u,E=.85*(g+v+.025*c),A=m+E+S+f,b=p+.8*E+.9*S+f,N=((e,t,a)=>{const n=Ne(e,t),i=Math.atan2(t,e);return{x:Math.cos(i)*n*a,y:Math.sin(i)*n*a}})(a,n,.015*u),_=be(0,1,1.15*u),C=a+A+.5*N.x,y=n+b+.5*N.y;return Ce(Te(C*_+.5,0,1),Te(y*_+.5,0,1))},appleFluid:(e,t)=>{if(!ye(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,i=Date.now()*Ae*.6,r=t&&ye(t)?t.x-.5:0,o=t&&ye(t)?t.y-.5:0,l=Ne(r,o),s=xe(1-Math.min(1.5*l,1)),c=we(10*(a+.3*r)+i,10*(n+.3*o),5)-.5,d=we(10*(a-.3*r),10*(n-.3*o)+.8*i,5)-.5,u=_e(a,n,.42,.32,.38),h=be(.85,-.1,u),m=Math.sin(6*a+2*i)*Math.cos(4*n-i)*.025,p=Math.cos(4*a-i)*Math.sin(6*n+2*i)*.025,g=Math.atan2(n-o,a-r),v=s*l*.08,S=Math.cos(g+i)*v,f=n+(.035*d+p+Math.sin(g+i)*v)*h;return Ce(Te(a+(.035*c+m+S)*h+.5,0,1),Te(f+.5,0,1))},premiumGlass:(e,t)=>{if(!ye(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,i=Date.now()*Ae*.4,r=t&&ye(t)?t.x-.5:0,o=t&&ye(t)?t.y-.5:0,l=Ne(r,o),s=Ne(a,n),c=.3*Math.pow(s,1.5),d=Math.atan2(n,a);let u=0,h=0;for(let e=0;e<3;e++){const t=5*(e+1),r=i*(1+.3*e),o=.01/(e+1);u+=Math.sin(a*t+r)*o,h+=Math.cos(n*t-r)*o}const m=Math.cos(d)*c*(1+.5*l),p=Math.sin(d)*c*(1+.5*l),g=we(8*a+i,8*n-i,2)-.5,v=_e(a,n,.43,.33,.36),S=be(.9,-.05,v),f=n+(p+h+.015*g)*S;return Ce(Te(a+(m+u+.015*g)*S+.5,0,1),Te(f+.5,0,1))},liquidMetal:(e,t)=>{if(!ye(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,i=Date.now()*Ae*1.2,r=t&&ye(t)?t.x-.5:0,o=t&&ye(t)?t.y-.5:0,l=Math.sin(20*a+4*i)*Math.cos(15*n-3*i)*.02,s=Math.cos(15*a-2*i)*Math.sin(20*n+5*i)*.015,c=.025*we(25*a+2*i,25*n-2*i,4),d=Math.atan2(n-o,a-r),u=Ne(a-r,n-o),h=.02*Math.sin(15*u-6*i)*xe(1-Math.min(2*u,1)),m=_e(a,n,.41,.31,.37),p=be(.88,-.08,m),g=a+(l+c+Math.cos(d)*h)*p,v=n+(s+.8*c+Math.sin(d)*h)*p;return Ce(Te(g+.5,0,1),Te(v+.5,0,1))},basiBasi:(e,t)=>{if(!ye(e))return{x:.5,y:.5};const a=e.x-.5,n=e.y-.5,i=Date.now()*Ae*.5,r=t&&ye(t)?t.x-.5:0,o=t&&ye(t)?t.y-.5:0,l=Ne(r,o),s=xe(1-Math.min(1.2*l,1)),c=function(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return.5*(Math.sin(8*e+2*a)*Math.cos(8*t-2*a)*.5+Math.sin(8*(e+.5)*1.3-2*a*.8)*Math.cos(8*(t-.3)*1.3+2*a*.8)*.3+Math.sin(8*(e-.3)*.7+2*a*1.2)*Math.cos(8*(t+.4)*.7-2*a*1.2)*.2+1)*n}(a,n,i,.8),d=.02*(c-.5),u=Math.atan2(n,a),h=((e,t,a,n)=>{const i=Ne(e,t)*n,r=.8*i,o=1*i,l=1.2*i;return{r:{x:Math.cos(a)*r,y:Math.sin(a)*r},g:{x:Math.cos(a)*o,y:Math.sin(a)*o},b:{x:Math.cos(a)*l,y:Math.sin(a)*l}}})(a,n,u,.025),m=(h.r.x+h.g.x+h.b.x)/3,p=(h.r.y+h.g.y+h.b.y)/3;let g=0,v=0;for(let e=0;e<7;e++){const t=Re(a,n,(e+1)/7,r,o),l=we((a+t.x)*(8+2*e)+i*(.5+.1*e),(n+t.y)*(8+2*e)-i*(.5+.1*e),3)-.5,s=1/(e+1);g+=(t.x+.01*l)*s,v+=(t.y+.01*l)*s}g/=7,v/=7;const S=((e,t,a,n)=>we(5*e+.5*n,5*t-.5*n,3)*Math.exp(2*-a)*.5+.5)(a,n,.5,i),f=Math.cos(u)*S*.015,E=Math.sin(u)*S*.015,A=function(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=0,r=1,o=1;for(let l=0;l<n;l++)i+=Math.abs(Ie(e*o+a,t*o-a))*r,o*=2,r*=.5;return i}(6*a,6*n,i,6),b=.012*Math.cos(A*Math.PI*2),N=.012*Math.sin(A*Math.PI*2),_=((e,t,a)=>.5*(.7*we(40*e+.3*a,40*t-.3*a,6)+.3*we(80*e,80*t,4)))(a,n,i),C=.008*(_-.5),y=.008*(_-.5),T=Ne(a,n),L=.35*Math.pow(T,1.8)*(1+s*l*.8),x=Math.cos(u)*L,I=Math.sin(u)*L,w=Math.atan2(n-o,a-r),R=Ne(a-r,n-o),O=s*Math.sin(10*R-3*i)*.025,M=Math.cos(w+2*i)*O,D=Math.sin(w+2*i)*O,k=Math.sin(10*a+5*r+2.5*i)*Math.cos(8*n-2*i)*.018,B=Math.cos(8*a-2*i)*Math.sin(10*n+5*o+2.5*i)*.018,P=(.012*Math.sin(15*T-4*i)+.008*Math.cos(20*T+3*i))*s,z=Math.cos(u)*P,F=Math.sin(u)*P,U=_e(a,n,.44,.34,.39),G=be(.92,-.12,U),V=be(.85,.1,U),Y=n+.85*((1.2*I+.8*p+1.5*v+.9*E+1*N+.6*y+1.3*D+1.1*B+.7*F+.8*d)*G*V);return Ce(Te(a+.85*((1.2*x+.8*m+1.5*g+.9*f+1*b+.6*C+1.3*M+1.1*k+.7*z+d)*G*V)+.5,0,1),Te(Y+.5,0,1))}};class Me{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw new Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,e.width*this.canvasDPI),this.canvas.height=Math.max(1,e.height*this.canvasDPI),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw new Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){return e&&"number"==typeof e.width&&e.width>0&&"number"==typeof e.height&&e.height>0&&"function"==typeof e.fragment}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);let c=s.x*t-o,d=s.y*a-r;const u=2*Math.min(o/t,(t-o)/t),h=2*Math.min(r/a,(a-r)/a),m=Math.min(u,h);c*=be(0,.2,m),d*=be(0,.2,m),n=Math.max(n,Math.abs(c),Math.abs(d)),i.push(c,d)}n=Math.max(n,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]=Te(255*h,fe,Ee),o[p+1]=Te(255*m,fe,Ee),o[p+2]=Te(255*m,fe,Ee),o[p+3]=255}return this.context.putImageData(r,0,0),this.canvas.toDataURL()}destroy(){this.canvas.remove()}getScale(){return this.canvasDPI}}const De="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=",ke=200,Be=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const a=e.x-t.x,n=e.y-t.y;return Math.sqrt(a*a+n*n)},Pe=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},ze=e=>e&&"number"==typeof e.x&&"number"==typeof e.y?Math.sqrt(e.x*e.x+e.y*e.y)/100:0,Fe=e=>"number"!=typeof e||isNaN(e)?.1:Math.max(.1,e),Ue=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0,Ge=(e,t)=>{switch(e){case"standard":default:return De;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||De}},Ve=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,visibility:"hidden",opacity: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:Ge(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"})]})]})})},Ye=l(((a,n)=>{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},globalMousePosition:S={x:0,y:0},onMouseEnter:f,onMouseLeave:E,onMouseDown:A,onMouseUp:b,active:N=!1,isHovered:_=!1,isActive:C=!1,overLight:y=!1,cornerRadius:T=0,padding:L="0 0",glassSize:x={width:0,height:0},onClick:I,mode:w="standard",transform:R="none",effectiveDisableEffects:O=!1,effectiveReducedMotion:M=!1,shaderVariant:D="liquidGlass",enableLiquidBlur:k=!1,elasticity:B=0}=a;const P=s(),[z,F]=i(""),U=r(null);o((()=>{if("shader"===w&&x.width>0&&x.height>0){var e;null===(e=U.current)||void 0===e||e.destroy();const t=Oe[D]||Oe.liquidGlass;U.current=new Me({width:x.width,height:x.height,fragment:t});const a=U.current.updateShader();F(a)}return()=>{var e;null===(e=U.current)||void 0===e||e.destroy(),U.current=null}}),[w,x.width,x.height,D]),o((()=>{if(!n||"function"==typeof n)return;const e=n.current;if(!e)return;const t=setTimeout((()=>{e.offsetHeight}),0);return()=>clearTimeout(t)}),[T,x.width,x.height]);const[G,V]=i(null);o((()=>{if(!n||"function"==typeof n)return;const e=n.current;e&&V(e.getBoundingClientRect())}),[n,x]);const Y=c((()=>{const e={baseBlur:m,edgeBlur:1.25*m,centerBlur:1.1*m,flowBlur:1.2*m};if(!(k&&G&&S.x&&S.y))return e;const t=Pe(G),a=Be(S,t),n=Math.sqrt(G.width*G.width+G.height*G.height)/2,i=Math.min(a/n,1),r=ze(v),o=m+r*m*.4,l=o*(.8+.6*(1.5*i+.3*r)),s=o*(.3+.4*(.3*(1-i)+.2*r)),c=S.x-t.x,d=S.y-t.y,u=Math.atan2(d,c),h=o*(.4+.6*(.5*Math.sin(u+r*Math.PI)+.5)),p=(_?1.2:1)*(C?1.4:1);return{baseBlur:Fe(o*p),edgeBlur:Fe(l*p),centerBlur:Fe(s*p),flowBlur:Fe(h*p)}}),[k,m,S,v,_,C,G]),$=c((()=>{const e=p+20*Y.baseBlur;return{backdropFilter:`${[`blur(${Y.baseBlur}px)`,`blur(${Y.edgeBlur}px)`,`blur(${Y.centerBlur}px)`,`blur(${Y.flowBlur}px)`].join(" ")} saturate(${Math.min(e,200)}%) url(#${P})`}}),[P,Y,p]),H=c((()=>{const e=(null==v?void 0:v.x)||0,t=(null==v?void 0:v.y)||0,a=`gc-${P.replace(/:/g,"")}`;return{[`--${a}-padding`]:L,[`--${a}-radius`]:`${T}px`,[`--${a}-backdrop`]:$.backdropFilter,[`--${a}-shadow`]:y?[`inset 0 1px 0 rgba(255, 255, 255, ${.4+.002*e})`,`inset 0 -1px 0 rgba(0, 0, 0, ${.2+.001*Math.abs(t)})`,`inset 0 0 20px rgba(0, 0, 0, ${.08+.001*Math.abs(e+t)})`,`0 2px 12px rgba(0, 0, 0, ${.12+.002*Math.abs(t)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset",[`--${a}-shadow-opacity`]:O?0:1,[`--${a}-bg`]:y?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none",[`--${a}-text-shadow`]:y?"0px 1px 3px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.1)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--gc-scoped-id":a}}),[P,L,T,$,v,y,O]),W=`gc-${P.replace(/:/g,"")}`;return e("div",{ref:n,className:` ${d} ${N?"active":""}`,style:{...u,...H},onClick:I,children:t("div",{className:"atomix-glass",style:{position:"relative",padding:`var(--${W}-padding)`,borderRadius:`var(--${W}-radius)`},onMouseEnter:f,onMouseLeave:E,onMouseDown:A,onMouseUp:b,children:[e(Ve,{mode:w,id:P,displacementScale:h,aberrationIntensity:g,shaderMapUrl:z}),e("span",{className:"atomix-glass__warp",style:{backdropFilter:`var(--${W}-backdrop)`,borderRadius:`var(--${W}-radius)`,position:"absolute",inset:"0"}}),e("div",{style:{position:"absolute",inset:"1.5px",borderRadius:`var(--${W}-radius)`,pointerEvents:"none",boxShadow:`var(--${W}-shadow)`,opacity:`var(--${W}-shadow-opacity)`,background:`var(--${W}-bg)`}}),e("div",{style:{position:"relative",...0!==B&&{zIndex:4,textShadow:`var(--${W}-text-shadow)`}},children:l})]})})}));function $e(n){let{children:l,displacementScale:u=20,blurAmount:h=1,saturation:m=140,aberrationIntensity:p=2.5,elasticity:g=.05,cornerRadius:v=16,globalMousePosition:S,mouseOffset:f,mouseContainer:E=null,className:A="",padding:b="0 0",overLight:N=!1,style:_={},mode:C="standard",onClick:y,shaderVariant:T="liquidGlass","aria-label":L,"aria-describedby":x,role:I,tabIndex:w,reducedMotion:R=!1,highContrast:O=!1,disableEffects:M=!1,enableLiquidBlur:D=!1,enableBorderEffect:k=!0,enableOverLightLayers:B=!1,enablePerformanceMonitoring:P=!1}=n;const z=r(null),[F,U]=i(!1),[G,V]=i(!1),[Y,$]=i({width:270,height:69}),[H,W]=i({x:0,y:0}),[Q,K]=i({x:0,y:0}),[Z,j]=i(!1),[q,X]=i(!1),[J,ee]=i(!1),te=c((()=>R||Z),[R,Z]),ae=c((()=>O||q),[O,q]),ne=c((()=>M||te),[M,te]);o((()=>{if("auto"===N&&z.current)try{const e=z.current;e.getBoundingClientRect();let t=0,a=0,n=e.parentElement;for(;n&&a<3;){const e=window.getComputedStyle(n).backgroundColor;if(e&&"rgba(0, 0, 0, 0)"!==e&&"transparent"!==e){const n=e.match(/\d+/g);if(n&&n.length>=3){const e=Number(n[0])||0,i=Number(n[1])||0,r=Number(n[2])||0;t+=(.299*e+.587*i+.114*r)/255,a++}}n=n.parentElement}if(0===a&&"undefined"!=typeof document)try{const e=document.createElement("canvas"),n=e.getContext("2d");if(n){e.width=1,e.height=1;const i=n.getImageData(0,0,1,1),r=i.data[0]||0,o=i.data[1]||0,l=i.data[2]||0;t=(.299*r+.587*o+.114*l)/255,a=1}}catch(e){}if(a>0){const e=t/a;let n=.7;if("object"==typeof N&&null!==N&&"auto"!==N){n=N.threshold||.7}ee(e>n)}}catch(e){}if("function"==typeof window.matchMedia)try{const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");j(e.matches),X(t.matches);const a=e=>{j(e.matches)},n=e=>{X(e.matches)};return e.addEventListener?(e.addEventListener("change",a),t.addEventListener("change",n)):e.addListener&&(e.addListener(a),t.addListener(n)),()=>{try{e.removeEventListener?(e.removeEventListener("change",a),t.removeEventListener("change",n)):e.removeListener&&(e.removeListener(a),t.removeListener(n))}catch(e){}}}catch(e){return}}),[]);const ie=c((()=>S||H),[S,H]),re=c((()=>f||Q),[f,Q]),oe=d((()=>"boolean"==typeof N?N:J),[N,J]),le=c((()=>{const e=oe(),t=ze(re),a=F?1.3:1,n=G?1.5:1,i={isOverLight:e,threshold:.7,opacity:.4*a*n,contrast:1.3+.2*t,brightness:.9+.1*t,saturationBoost:1.2+.3*t,shadowIntensity:.8+.4*t,borderOpacity:.6+.2*t};if("object"==typeof N&&null!==N){const e=N;return{...i,threshold:e.threshold||i.threshold,opacity:(e.opacity||.4)*a*n,contrast:(e.contrast||1.3)+.2*t}}return i}),[N,oe,re,F,G]),se=r(null),ce=r(null),de=d((e=>{ce.current=e,null===se.current&&(se.current=requestAnimationFrame((()=>{const e=ce.current;if(!e)return void(se.current=null);const t=(null==E?void 0:E.current)||z.current;if(!t)return void(se.current=null);const a=P?performance.now():0,n=t.getBoundingClientRect();if(0===n.width||0===n.height)return void(se.current=null);const i=Pe(n);if(K({x:(e.clientX-i.x)/n.width*100,y:(e.clientY-i.y)/n.height*100}),W({x:e.clientX,y:e.clientY}),P){performance.now()}se.current=null})))}),[E,P]);o((()=>{if(S&&f)return;if(ne)return;const e=(null==E?void 0:E.current)||z.current;return e?(e.addEventListener("mousemove",de,{passive:!0}),()=>{e.removeEventListener("mousemove",de),se.current&&(cancelAnimationFrame(se.current),se.current=null)}):void 0}),[de,E,S,f,ne]);const ue=d((()=>{if(!(ie.x&&ie.y&&z.current&&Ue(Y)))return"scale(1)";const e=z.current.getBoundingClientRect(),t=Pe(e),a=ie.x-t.x,n=ie.y-t.y,i=Math.max(0,Math.abs(a)-Y.width/2),r=Math.max(0,Math.abs(n)-Y.height/2),o=Be({x:i,y:r},{x:0,y:0});if(o>ke)return"scale(1)";const l=1-o/ke,s=Be(ie,t);if(0===s)return"scale(1)";const c=a/s,d=n/s,u=Math.min(s/300,1)*g*l,h=1+Math.abs(c)*u*.3-Math.abs(d)*u*.15,m=1+Math.abs(d)*u*.3-Math.abs(c)*u*.15;return`scaleX(${Math.max(.8,h)}) scaleY(${Math.max(.8,m)})`}),[ie,g,Y]),he=d((()=>{if(!(ie.x&&ie.y&&z.current&&Ue(Y)))return 0;const e=z.current.getBoundingClientRect(),t=Pe(e),a=Math.max(0,Math.abs(ie.x-t.x)-Y.width/2),n=Math.max(0,Math.abs(ie.y-t.y)-Y.height/2),i=Be({x:a,y:n},{x:0,y:0});return i>ke?0:1-i/ke}),[ie,Y]),me=d((()=>{if(!z.current)return{x:0,y:0};const e=he(),t=z.current.getBoundingClientRect(),a=Pe(t);return{x:(ie.x-a.x)*g*.1*e,y:(ie.y-a.y)*g*.1*e}}),[ie,g,he]);o((()=>{const e=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let t=null,a={width:0,height:0},n=v;const i=function(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null!==t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{if(!e(z.current))return;const r=z.current.getBoundingClientRect();if(r.width<=0||r.height<=0)return;const o=Math.max(0,.1*v),l={width:Math.round(r.width+o),height:Math.round(r.height+o)},s=n!==v,c=l.width!==a.width||l.height!==a.height;var d;(i||s||c)&&(Ue(d=l)&&d.width<=4096&&d.height<=4096)&&(a=l,n=v,$(l)),t=null}))};let r=null;const o=()=>{r&&clearTimeout(r),r=setTimeout(i,16)};i(!0);let l=null,s=null;if("undefined"!=typeof ResizeObserver&&e(z.current))try{l=new ResizeObserver((e=>{for(const t of e)if(t.target===z.current){i();break}})),l.observe(z.current)}catch{s=setInterval((()=>e(z.current)&&i()),100)}else s=setInterval((()=>e(z.current)&&i()),100);return window.addEventListener("resize",o,{passive:!0}),()=>{var e;null!==t&&cancelAnimationFrame(t),r&&clearTimeout(r),s&&clearInterval(s),window.removeEventListener("resize",o),null===(e=l)||void 0===e||e.disconnect()}}),[v,P]),o((()=>{if(!z.current)return;const e=setTimeout((()=>{if(!z.current)return;const e=z.current.getBoundingClientRect();if(e.width>0&&e.height>0){const t=Math.max(0,.1*v);$({width:Math.round(e.width+t),height:Math.round(e.height+t)})}}),0);return()=>clearTimeout(e)}),[v]);const pe=c((()=>ne?{x:0,y:0}:me()),[me,ne]),ge=c((()=>ne?"scale(1)":ue()),[ue,ne]),ve=c((()=>ne?G&&Boolean(y)?"scale(0.98)":"scale(1)":`translate(${pe.x}px, ${pe.y}px) ${G&&Boolean(y)?"scale(0.96)":ge}`),[pe,G,y,ge,ne]),Se=c((()=>({..._,...0!==g&&{transform:ve,transition:te?"none":"all ease-out 0.2s",willChange:ne?"auto":"transform"},...ae&&{border:"2px solid currentColor",outline:"2px solid transparent",outlineOffset:"2px"}})),[_,ve,te,ne,ae,g]),fe=c((()=>({position:Se.position||"absolute",top:Se.top||0,left:Se.left||0})),[Se]),Ee={width:"fixed"!==Se.position?"100%":Se.width?Se.width:Math.max(Y.width,0),height:"fixed"!==Se.position?"100%":Se.height?Se.height:Math.max(Y.height,0)},Ae=s(),be=c((()=>{const e=(null==le?void 0:le.isOverLight)??!1,t=re.x,a=re.y,n=`ag-${Ae.replace(/:/g,"")}`;return{[`--${n}-pos`]:fe.position,[`--${n}-top`]:"fixed"!==fe.top?`${fe.top}px`:"0",[`--${n}-left`]:"fixed"!==fe.left?`${fe.left}px`:"0",[`--${n}-w`]:"fixed"!==Se.position?Ee.width:`${Ee.width}px`,[`--${n}-h`]:"fixed"!==Se.position?Ee.height:`${Ee.height}px`,[`--${n}-r`]:`${v}px`,[`--${n}-t`]:Se.transform,[`--${n}-tr`]:te?"none":Se.transition,[`--${n}-blend`]:e?"multiply":"overlay",[`--${n}-b1`]:`linear-gradient(${135+1.2*t}deg, rgba(255,255,255,0) 0%, rgba(255,255,255,${.12+.008*Math.abs(t)}) ${Math.max(10,33+.3*a)}%, rgba(255,255,255,${.4+.012*Math.abs(t)}) ${Math.min(90,66+.4*a)}%, rgba(255,255,255,0) 100%)`,[`--${n}-b2`]:`linear-gradient(${135+1.2*t}deg, rgba(255,255,255,0) 0%, rgba(255,255,255,${.32+.008*Math.abs(t)}) ${Math.max(10,33+.3*a)}%, rgba(255,255,255,${.6+.012*Math.abs(t)}) ${Math.min(90,66+.4*a)}%, rgba(255,255,255,0) 100%)`,[`--${n}-h1-o`]:F||G?e?.3:.5:0,[`--${n}-h1`]:e?`radial-gradient(circle at ${50+t/2}% ${50+a/2}%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0) 60%)`:`radial-gradient(circle at ${50+t/2}% ${50+a/2}%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%)`,[`--${n}-h2-o`]:G?e?.4:.5:0,[`--${n}-h2`]:e?`radial-gradient(circle at ${50+t/1.5}% ${50+a/1.5}%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0) 80%)`:`radial-gradient(circle at ${50+t/1.5}% ${50+a/1.5}%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 80%)`,[`--${n}-h3-o`]:F?e?.25:.4:G?e?.5:.8:0,[`--${n}-h3`]:e?`radial-gradient(circle at ${50+t}% ${50+a}%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%)`:`radial-gradient(circle at ${50+t}% ${50+a}%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%)`,[`--${n}-base-o`]:e?le.opacity:0,[`--${n}-base`]:e?`linear-gradient(135deg, rgba(0,0,0,${.12+.002*t}) 0%, rgba(0,0,0,${.08+.001*a}) 50%, rgba(0,0,0,${.15+.003*Math.abs(t)}) 100%)`:"rgba(255,255,255,0.1)",[`--${n}-over-o`]:e?.9*le.opacity:0,[`--${n}-over`]:e?`radial-gradient(circle at ${50+.5*t}% ${50+.5*a}%, rgba(0,0,0,${.08+.002*Math.abs(t)}) 0%, rgba(0,0,0,0.04) 40%, rgba(0,0,0,${.12+.002*Math.abs(a)}) 100%)`:"rgba(255,255,255,0.05)","--ag-scoped-id":n}}),[Ae,fe,Ee,v,Se,te,re,F,G,le]),Ne=`ag-${Ae.replace(/:/g,"")}`;return t("div",{className:"atomix-glass",style:{...fe,position:"relative",...be},role:I||(y?"button":void 0),tabIndex:y?w??0:w,"aria-label":L,"aria-describedby":x,"aria-disabled":!y&&void 0,onKeyDown:y?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),y())}:void 0,children:[e(Ye,{ref:z,className:A,style:Se,cornerRadius:v,displacementScale:ne?0:"shader"===C?.8*u:le.isOverLight?.6*u:u,blurAmount:ne?0:h,saturation:ae?200:le.isOverLight?m*le.saturationBoost:m,aberrationIntensity:ne?0:"shader"===C?.7*p:p,glassSize:Y,padding:b,mouseOffset:ne?{x:0,y:0}:re,globalMousePosition:ne?{x:0,y:0}:ie,onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1),onMouseDown:()=>V(!0),onMouseUp:()=>V(!1),active:G,isHovered:F,isActive:G,overLight:(null==le?void 0:le.isOverLight)||!1,onClick:y,mode:C,transform:Se.transform,effectiveDisableEffects:ne,effectiveReducedMotion:te,shaderVariant:T,elasticity:g,enableLiquidBlur:D,children:l}),k&&t(a,{children:[e("span",{className:"atomix-glass__border-1",style:{position:`var(--${Ne}-pos)`,top:`var(--${Ne}-top)`,left:`var(--${Ne}-left)`,width:`var(--${Ne}-w)`,height:`var(--${Ne}-h)`,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,background:`var(--${Ne}-b1)`}}),e("span",{className:"atomix-glass__border-2",style:{position:`var(--${Ne}-pos)`,top:`var(--${Ne}-top)`,left:`var(--${Ne}-left)`,width:`var(--${Ne}-w)`,height:`var(--${Ne}-h)`,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,mixBlendMode:`var(--${Ne}-blend)`,background:`var(--${Ne}-b2)`}})]}),Boolean(y)&&t(a,{children:[e("div",{className:"atomix-glass__hover-1",style:{position:"absolute",inset:0,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,mixBlendMode:`var(--${Ne}-blend)`,opacity:`var(--${Ne}-h1-o)`,background:`var(--${Ne}-h1)`}}),e("div",{className:"atomix-glass__hover-2",style:{position:"absolute",inset:0,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,mixBlendMode:`var(--${Ne}-blend)`,opacity:`var(--${Ne}-h2-o)`,background:`var(--${Ne}-h2)`}}),e("div",{className:"atomix-glass__hover-3",style:{position:"absolute",inset:0,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,mixBlendMode:`var(--${Ne}-blend)`,opacity:`var(--${Ne}-h3-o)`,background:`var(--${Ne}-h3)`}})]}),B&&t(a,{children:[e("div",{className:"atomix-glass__base",style:{position:"absolute",inset:0,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,opacity:`var(--${Ne}-base-o)`,background:`var(--${Ne}-base)`}}),e("div",{className:"atomix-glass__overlay",style:{position:"absolute",inset:0,borderRadius:`var(--${Ne}-r)`,transform:`var(--${Ne}-t)`,transition:`var(--${Ne}-tr)`,opacity:`var(--${Ne}-over-o)`,background:`var(--${Ne}-over)`}})]})]})}Ye.displayName="GlassContainer";const He=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"})})}),y=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:60,blurAmount:1.5,cornerRadius:4,mode:"shader"},a=!0===m?t:{...t,...m};return e($e,{...a,children:y})}return y};He.displayName="Accordion";const We=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})]})},Qe={xs:16,sm:20,md:24,lg:32,xl:40},Ke=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?Qe[n]||24:n,weight:i,color:r,"aria-label":l})})};Ke.displayName="Icon";const Ze=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(Ke,{name:"User",size:"xs"===l?"xs":"sm"===l?"sm":"md"})})})};Ze.displayName="Avatar";const je=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===Ze)),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 qe(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()}}}je.displayName="AvatarGroup";const Xe=a=>{let{label:n,variant:i="primary",size:o="md",disabled:l=!1,icon:s,className:c="",glass:d}=a;const{generateBadgeClass:u}=qe({variant:i,size:o,disabled:l}),h=r(null),m=u({variant:i,size:o,disabled:l,className:`${c} ${d?"c-badge--glass":""}`.trim()}),p=t("span",{className:m,"aria-disabled":l,ref:h,children:[s&&e("span",{className:R.ICON_CLASS,children:s}),e("span",{children:n})]});if(d){var g,v;const t={displacementScale:10,saturation:200,blurAmount:1,cornerRadius:null!==(g=h.current)&&void 0!==g&&g.getBoundingClientRect().width?(null===(v=h.current)||void 0===v?void 0:v.getBoundingClientRect().width)/2:16,mode:"standard",className:"c-badge--glass",elasticity:0},a=!0===d?t:{...t,...d};return e($e,{...a,children:p})}return p};Xe.displayName="Badge";const Je=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})}));Je.displayName="Container";const et=()=>({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(" ")}}),tt=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}=et(),m=h({spacing:r,background:d,fullWidth:l,className:s});return e(i,{ref:a,className:m,style:c,...u,children:l?n:e(Je,{type:o.type,className:o.className,children:n})})}));tt.displayName="Block";const at=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 nt(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()}}}at.displayName="Breadcrumb";const it=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}=nt({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:5,blurAmount:0,saturation:200,aberrationIntensity:1,cornerRadius:12,overLight:!1,elasticity:0},a=!0===v?t:{...t,...v};return e($e,{...a,children:e(g,{...b,children:N})})}return e(g,{...b,children:N})}));it.displayName="Button";var rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lt=function(e){try{return!!e()}catch(e){return!0}},st=!lt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ct=st,dt=Function.prototype,ut=dt.call,ht=ct&&dt.bind.bind(ut,ut),mt=ct?ht:function(e){return function(){return ut.apply(e,arguments)}},pt=mt({}.isPrototypeOf),gt=function(e){return e&&e.Math===Math&&e},vt=gt("object"==typeof globalThis&&globalThis)||gt("object"==typeof window&&window)||gt("object"==typeof self&&self)||gt("object"==typeof rt&&rt)||gt("object"==typeof rt&&rt)||function(){return this}()||Function("return this")(),St=st,ft=Function.prototype,Et=ft.apply,At=ft.call,bt="object"==typeof Reflect&&Reflect.apply||(St?At.bind(Et):function(){return At.apply(Et,arguments)}),Nt=mt,_t=Nt({}.toString),Ct=Nt("".slice),yt=function(e){return Ct(_t(e),8,-1)},Tt=yt,Lt=mt,xt=function(e){if("Function"===Tt(e))return Lt(e)},It="object"==typeof document&&document.all,wt=void 0===It&&void 0!==It?function(e){return"function"==typeof e||e===It}:function(e){return"function"==typeof e},Rt={},Ot=!lt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Mt=st,Dt=Function.prototype.call,kt=Mt?Dt.bind(Dt):function(){return Dt.apply(Dt,arguments)},Bt={},Pt={}.propertyIsEnumerable,zt=Object.getOwnPropertyDescriptor,Ft=zt&&!Pt.call({1:2},1);Bt.f=Ft?function(e){var t=zt(this,e);return!!t&&t.enumerable}:Pt;var Ut,Gt,Vt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yt=lt,$t=yt,Ht=Object,Wt=mt("".split),Qt=Yt((function(){return!Ht("z").propertyIsEnumerable(0)}))?function(e){return"String"===$t(e)?Wt(e,""):Ht(e)}:Ht,Kt=function(e){return null==e},Zt=Kt,jt=TypeError,qt=function(e){if(Zt(e))throw new jt("Can't call method on "+e);return e},Xt=Qt,Jt=qt,ea=function(e){return Xt(Jt(e))},ta=wt,aa=function(e){return"object"==typeof e?null!==e:ta(e)},na={},ia=na,ra=vt,oa=wt,la=function(e){return oa(e)?e:void 0},sa=vt.navigator,ca=sa&&sa.userAgent,da=ca?String(ca):"",ua=vt,ha=da,ma=ua.process,pa=ua.Deno,ga=ma&&ma.versions||pa&&pa.version,va=ga&&ga.v8;va&&(Gt=(Ut=va.split("."))[0]>0&&Ut[0]<4?1:+(Ut[0]+Ut[1])),!Gt&&ha&&(!(Ut=ha.match(/Edge\/(\d+)/))||Ut[1]>=74)&&(Ut=ha.match(/Chrome\/(\d+)/))&&(Gt=+Ut[1]);var Sa=Gt,fa=Sa,Ea=lt,Aa=vt.String,ba=!!Object.getOwnPropertySymbols&&!Ea((function(){var e=Symbol("symbol detection");return!Aa(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fa&&fa<41})),Na=ba&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_a=function(e,t){return arguments.length<2?la(ia[e])||la(ra[e]):ia[e]&&ia[e][t]||ra[e]&&ra[e][t]},Ca=wt,ya=pt,Ta=Object,La=Na?function(e){return"symbol"==typeof e}:function(e){var t=_a("Symbol");return Ca(t)&&ya(t.prototype,Ta(e))},xa=String,Ia=wt,wa=function(e){try{return xa(e)}catch(e){return"Object"}},Ra=TypeError,Oa=function(e){if(Ia(e))return e;throw new Ra(wa(e)+" is not a function")},Ma=Oa,Da=Kt,ka=kt,Ba=wt,Pa=aa,za=TypeError,Fa={exports:{}},Ua=vt,Ga=Object.defineProperty,Va=vt,Ya=function(e,t){try{Ga(Ua,e,{value:t,configurable:!0,writable:!0})}catch(a){Ua[e]=t}return t},$a="__core-js_shared__",Ha=Fa.exports=Va[$a]||Ya($a,{});(Ha.versions||(Ha.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 Wa=Fa.exports,Qa=qt,Ka=Object,Za=function(e){return Ka(Qa(e))},ja=Za,qa=mt({}.hasOwnProperty),Xa=Object.hasOwn||function(e,t){return qa(ja(e),t)},Ja=mt,en=0,tn=Math.random(),an=Ja(1.1.toString),nn=function(e,t){return Wa[e]||(Wa[e]=t||{})},rn=Xa,on=function(e){return"Symbol("+(void 0===e?"":e)+")_"+an(++en+tn,36)},ln=ba,sn=Na,cn=vt.Symbol,dn=nn("wks"),un=sn?cn.for||cn:cn&&cn.withoutSetter||on,hn=function(e){return rn(dn,e)||(dn[e]=ln&&rn(cn,e)?cn[e]:un("Symbol."+e)),dn[e]},mn=kt,pn=aa,gn=La,vn=function(e,t){var a=e[t];return Da(a)?void 0:Ma(a)},Sn=function(e,t){var a,n;if("string"===t&&Ba(a=e.toString)&&!Pa(n=ka(a,e)))return n;if(Ba(a=e.valueOf)&&!Pa(n=ka(a,e)))return n;if("string"!==t&&Ba(a=e.toString)&&!Pa(n=ka(a,e)))return n;throw new za("Can't convert object to primitive value")},fn=TypeError,En=hn("toPrimitive"),An=function(e,t){if(!pn(e)||gn(e))return e;var a,n=vn(e,En);if(n){if(void 0===t&&(t="default"),a=mn(n,e,t),!pn(a)||gn(a))return a;throw new fn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Sn(e,t)},bn=La,Nn=function(e){var t=An(e,"string");return bn(t)?t:t+""},_n=aa,Cn=vt.document,yn=_n(Cn)&&_n(Cn.createElement),Tn=function(e){return yn?Cn.createElement(e):{}},Ln=!Ot&&!lt((function(){return 7!==Object.defineProperty(Tn("div"),"a",{get:function(){return 7}}).a})),xn=Ot,In=kt,wn=Bt,Rn=Vt,On=ea,Mn=Nn,Dn=Xa,kn=Ln,Bn=Object.getOwnPropertyDescriptor;Rt.f=xn?Bn:function(e,t){if(e=On(e),t=Mn(t),kn)try{return Bn(e,t)}catch(e){}if(Dn(e,t))return Rn(!In(wn.f,e,t),e[t])};var Pn=lt,zn=wt,Fn=/#|\.prototype\./,Un=function(e,t){var a=Vn[Gn(e)];return a===$n||a!==Yn&&(zn(t)?Pn(t):!!t)},Gn=Un.normalize=function(e){return String(e).replace(Fn,".").toLowerCase()},Vn=Un.data={},Yn=Un.NATIVE="N",$n=Un.POLYFILL="P",Hn=Un,Wn=Oa,Qn=st,Kn=xt(xt.bind),Zn={},jn=Ot&<((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qn=aa,Xn=String,Jn=TypeError,ei=Ot,ti=Ln,ai=jn,ni=function(e){if(qn(e))return e;throw new Jn(Xn(e)+" is not an object")},ii=Nn,ri=TypeError,oi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,si="enumerable",ci="configurable",di="writable";Zn.f=ei?ai?function(e,t,a){if(ni(e),t=ii(t),ni(a),"function"==typeof e&&"prototype"===t&&"value"in a&&di in a&&!a[di]){var n=li(e,t);n&&n[di]&&(e[t]=a.value,a={configurable:ci in a?a[ci]:n[ci],enumerable:si in a?a[si]:n[si],writable:!1})}return oi(e,t,a)}:oi:function(e,t,a){if(ni(e),t=ii(t),ni(a),ti)try{return oi(e,t,a)}catch(e){}if("get"in a||"set"in a)throw new ri("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var ui=Zn,hi=Vt,mi=Ot?function(e,t,a){return ui.f(e,t,hi(1,a))}:function(e,t,a){return e[t]=a,e},pi=vt,gi=bt,vi=xt,Si=wt,fi=Rt.f,Ei=Hn,Ai=na,bi=function(e,t){return Wn(e),void 0===t?e:Qn?Kn(e,t):function(){return e.apply(t,arguments)}},Ni=mi,_i=Xa,Ci=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 gi(e,this,arguments)};return t.prototype=e.prototype,t},yi=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?pi:m?pi[u]:pi[u]&&pi[u].prototype,v=h?Ai:Ai[u]||Ni(Ai,u,{})[u],S=v.prototype;for(r in t)n=!(a=Ei(h?r:u+(m?".":"#")+r,e.forced))&&g&&_i(g,r),l=v[r],n&&(s=e.dontCallGetSet?(d=fi(g,r))&&d.value:g[r]),o=n&&s?s:t[r],(a||p||typeof l!=typeof o)&&(c=e.bind&&n?bi(o,pi):e.wrap&&n?Ci(o):p&&Si(o)?vi(o):o,(e.sham||o&&o.sham||l&&l.sham)&&Ni(c,"sham",!0),Ni(v,r,c),p&&(_i(Ai,i=u+"Prototype")||Ni(Ai,i,{}),Ni(Ai[i],r,o),e.real&&S&&(a||!S[r])&&Ni(S,r,o)))},Ti=Math.ceil,Li=Math.floor,xi=Math.trunc||function(e){var t=+e;return(t>0?Li:Ti)(t)},Ii=function(e){var t=+e;return t!=t||0===t?0:xi(t)},wi=Ii,Ri=Math.max,Oi=Math.min,Mi=Ii,Di=Math.min,ki=function(e){var t=Mi(e);return t>0?Di(t,9007199254740991):0},Bi=function(e){return ki(e.length)},Pi=ea,zi=function(e,t){var a=wi(e);return a<0?Ri(a+t,0):Oi(a,t)},Fi=Bi,Ui=function(e){return function(t,a,n){var i=Pi(t),r=Fi(i);if(0===r)return!e&&-1;var o,l=zi(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}},Gi={includes:Ui(!0),indexOf:Ui(!1)}.includes;yi({target:"Array",proto:!0,forced:lt((function(){return!Array(1).includes()}))},{includes:function(e){return Gi(this,e,arguments.length>1?arguments[1]:void 0)}});var Vi=vt,Yi=na,$i=function(e,t){var a=Yi[e+"Prototype"],n=a&&a[t];if(n)return n;var i=Vi[e],r=i&&i.prototype;return r&&r[t]},Hi=$i("Array","includes"),Wi=aa,Qi=yt,Ki=hn("match"),Zi=function(e){var t;return Wi(e)&&(void 0!==(t=e[Ki])?!!t:"RegExp"===Qi(e))},ji=TypeError,qi={};qi[hn("toStringTag")]="z";var Xi="[object z]"===String(qi),Ji=wt,er=yt,tr=hn("toStringTag"),ar=Object,nr="Arguments"===er(function(){return arguments}()),ir=Xi?er: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=ar(e),tr))?a:nr?er(t):"Object"===(n=er(t))&&Ji(t.callee)?"Arguments":n},rr=String,or=hn("match"),lr=yi,sr=function(e){if(Zi(e))throw new ji("The method doesn't accept regular expressions");return e},cr=qt,dr=function(e){if("Symbol"===ir(e))throw new TypeError("Cannot convert a Symbol value to a string");return rr(e)},ur=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[or]=!1,"/./"[e](t)}catch(e){}}return!1},hr=mt("".indexOf);lr({target:"String",proto:!0,forced:!ur("includes")},{includes:function(e){return!!~hr(dr(cr(this)),dr(sr(e)),arguments.length>1?arguments[1]:void 0)}});var mr=$i("String","includes"),pr=pt,gr=Hi,vr=mr,Sr=Array.prototype,fr=String.prototype,Er=ot((function(e){var t=e.includes;return e===Sr||pr(Sr,e)&&t===Sr.includes?gr:"string"==typeof e||e===fr||pr(fr,e)&&t===fr.includes?vr:t}));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"):Er(e=["warning","error"]).call(e,l)?(a.role="alert",a["aria-live"]="assertive"):Er(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(Ke,{name:"X",size:"md"})})]});if(h){const t={displacementScale:30,cornerRadius:8,elasticity:0},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($e,{...a,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:a.cornerRadius},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 br=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($e,{...t,cornerRadius:10,elasticity:0,children:e("div",{className:"c-card__glass-content",children:_})})})}return e("div",{ref:i,className:N,onClick:f,...b,style:{...E},children:_})}));br.displayName="Card";var Nr=Oa,_r=Za,Cr=Qt,yr=Bi,Tr=TypeError,Lr="Reduce of empty array with no initial value",xr=function(e){return function(t,a,n,i){var r=_r(t),o=Cr(r),l=yr(r);if(Nr(a),0===l&&n<2)throw new Tr(Lr);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 Tr(Lr)}for(;e?s>=0:l>s;s+=c)s in o&&(i=a(i,o[s],s,r));return i}},Ir={left:xr(!1),right:xr(!0)},wr=lt,Rr=vt,Or=da,Mr=yt,Dr=function(e){return Or.slice(0,e.length)===e},kr=Dr("Bun/")?"BUN":Dr("Cloudflare-Workers")?"CLOUDFLARE":Dr("Deno/")?"DENO":Dr("Node.js/")?"NODE":Rr.Bun&&"string"==typeof Bun.version?"BUN":Rr.Deno&&"object"==typeof Deno.version?"DENO":"process"===Mr(Rr.process)?"NODE":Rr.window&&Rr.document?"BROWSER":"REST",Br=Ir.left,Pr=function(e,t){var a=[][e];return!!a&&wr((function(){a.call(null,t||function(){return 1},1)}))};yi({target:"Array",proto:!0,forced:!("NODE"===kr)&&Sa>79&&Sa<83||!Pr("reduce")},{reduce:function(e){var t=arguments.length;return Br(this,e,t,t>1?arguments[1]:void 0)}});var zr=$i("Array","reduce"),Fr=pt,Ur=zr,Gr=Array.prototype,Vr=ot((function(e){var t=e.reduce;return e===Gr||Fr(Gr,e)&&t===Gr.reduce?Ur:t}));function Yr(e){const[t,a]=i({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},panEnabled:!1,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=r(null);o((()=>()=>{n.current&&cancelAnimationFrame(n.current)}),[]);const l=d(((e,t,n,i,r,o)=>{a((a=>({...a,hoveredPoint:{datasetIndex:e,pointIndex:t,x:n,y:i,clientX:r,clientY:o}})))}),[]),s=d((()=>{a((e=>({...e,hoveredPoint:null})))}),[]),c=d(((e,t)=>{a((a=>{const n=a.selectedPoints.some((a=>a.datasetIndex===e&&a.pointIndex===t));return{...a,selectedPoints:n?a.selectedPoints.filter((a=>!(a.datasetIndex===e&&a.pointIndex===t))):[...a.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),u=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-(t-a.panOffset.x)*o:a.panOffset.x,y:n?n-(n-a.panOffset.y)*o:a.panOffset.y};return{...a,zoomLevel:r,panOffset:l}}))}),[]),h=d(((e,t)=>{a((a=>({...a,panOffset:{x:a.panOffset.x+e,y:a.panOffset.y+t}})))}),[]),m=d(((e,t)=>{a((a=>({...a,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=d((()=>{a((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=d(((e,t)=>{a((a=>({...a,crosshair:{x:e,y:t}})))}),[]),v=d((()=>{a((e=>({...e,crosshair:null})))}),[]),S=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]&&a.panEnabled){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}))}),[]),f=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&&a.panEnabled){const e=t[0].x-n.left,i=t[0].y-n.top,r=a.touchState.touches[0];let o,l;if(r){o=e-(r.x-n.left),l=i-(r.y-n.top)}else o=e-a.dragStart.x,l=i-a.dragStart.y;const s=.6,c=o*s,d=l*s;return Math.abs(c)>1||Math.abs(d)>1?{...a,panOffset:{x:a.panOffset.x+c,y:a.panOffset.y+d},touchState:{...a.touchState,touches:t}}:{...a,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}}}))}),[]),E=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&&a.panEnabled){const n=e.target.getBoundingClientRect(),i=t[0].x-n.left,r=t[0].y-n.top;return{...a,dragStart:{x:i,y:r},touchState:{...a.touchState,touches:t,isPinching:!1,lastDistance:0}}}if(2===t.length){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...a,touchState:{...a.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...a,touchState:{...a.touchState,touches:t}}}))}),[]),A=d((e=>{"pen"===e.pointerType&&a((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),b=d((e=>{"pen"===e.pointerType&&a((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),N=d((e=>{"pen"===e.pointerType&&a((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),_=d((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pe.DEFAULT_WIDTH,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pe.DEFAULT_HEIGHT,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{top:20,right:20,bottom:30,left:40};if(!e||0===e.length)return null;const i=e.flatMap((e=>e.data));if(0===i.length)return null;const r=Math.min(...i.map((e=>e.value))),o=Math.max(...i.map((e=>e.value))),l=o-r||1,s=t-n.left-n.right,c=a-n.top-n.bottom;return{xScale:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.length;return t<=1?n.left+s/2:n.left+e/(t-1)*s},yScale:e=>n.top+c-(e-r)/l*c,minValue:r,maxValue:o,valueRange:l,innerWidth:s,innerHeight:c,width:t,height:a,padding:n}}),[]),C=d((e=>{if(e<=0)return[];const t=[];for(let a=0;a<e;a++){const e=a%pe.DEFAULT_COLORS.length;t.push(pe.DEFAULT_COLORS[e])}return t}),[]),y=r(null);return{interactionState:t,setInteractionState:a,handlePointHover:l,handlePointLeave:s,handlePointClick:c,handleZoom:u,handlePan:h,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:v,handleTouchStart:S,handleTouchMove:f,handleTouchEnd:E,handlePointerDown:A,handlePointerMove:b,handlePointerUp:N,calculateScales:_,getChartColors:C,svgRef:y}}const $r=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:y,state:T={},className:L="",...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:T.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:T.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[s,m,p,T,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(!T.panEnabled),active:T.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:T.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:T.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>null==g?void 0:g(!T.isFullscreen),variant:"success",tooltip:(T.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,T]),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(Ke,{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 ${L}`.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:T.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:[T.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*(T.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)))})})));$r.displayName="ChartToolbar";const Hr=p(l(((a,n)=>{let{children:r,type:l="line",size:s="md",variant:u="primary",title:h,subtitle:m,loading:p=!1,error:g,className:v="","aria-label":S,onFullscreen:f,onExport:E,onRefresh:A,showToolbar:b=!1,enableFullscreen:N=!1,enableExport:_=!1,enableRefresh:C=!1,exportFormats:y=["png","svg","csv"],datasets:T,config:L,...x}=a;const[I,w]=i(!1),[R,O]=i(!1),{state:M,handlers:D,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:u=["png","svg","csv"],customActions:h=[],customGroups:m=[]}=t,p=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":case"line":case"area":case"bar":case"horizontal-bar":case"scatter":case"bubble":case"funnel":case"waterfall":case"candlestick":return{...t,zoom:!0,pan:!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};default:return t}}),[e]),g=c((()=>({...p(),...s})),[p,s]),v={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((()=>{}),[])},S=d((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:v.onRefresh,disabled:n.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>v.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=[];g.zoom&&a.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:v.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:v.onZoomOut,tooltip:"Zoom out"}),g.pan&&a.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>v.onPanToggle(!n.panEnabled),active:n.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&a.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:v.onReset,tooltip:"Reset view"}),g.fullscreen&&a.push({id:"fullscreen",label:n.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:n.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>v.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(g.grid&&i.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>v.onGridToggle(!n.showGrid),active:n.showGrid,tooltip:"Toggle grid"}),g.legend&&i.push({id:"legend",label:"Legend",icon:"List",onClick:()=>v.onLegendToggle(!n.showLegend),active:n.showLegend,tooltip:"Toggle legend"}),g.tooltips&&i.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>v.onTooltipsToggle(!n.showTooltips),active:n.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&i.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>v.onAnimationsToggle(!n.animationsEnabled),active:n.animationsEnabled,tooltip:"Toggle animations"}),i.length>0&&e.push({id:"display-actions",label:"Display",actions:i,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:v.onSettings,tooltip:"Chart settings"}]}),e.push(...m),h.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...h)}}else e.push({id:"custom-actions",label:"Custom",actions:h});return e}),[e,g,n,v,h,m]);return o((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),v.onRefresh());break;case"e":g.export&&(e.preventDefault(),v.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),v.onFullscreen(!n.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),v.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),v.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),v.onReset());break;case" ":g.pan&&(e.preventDefault(),v.onPanToggle(!n.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),v.onFullscreen(!n.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,n,v]),{state:n,setState:r,handlers:v,toolbarGroups:S(),config:{enableDefaults:l,defaults:g,exportFormats:u}}}(l,{enableDefaults:b,defaults:{refresh:C,export:_,fullscreen:N,zoom:!0,pan:!0,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:y},{onRefresh:A,onExport:E,onFullscreen:e=>{w(e),null==f||f(e)}}),{generateChartClass:B,chartAttributes:P}=Yr(),z=B({type:l,size:s,variant:u,loading:p,error:g,className:v});d((()=>{D.onFullscreen(!M.isFullscreen)}),[D,M.isFullscreen]),d((async e=>{await D.onExport(e)}),[D]),d((()=>{D.onRefresh()}),[D]),o((()=>{w(M.isFullscreen),O(M.isExporting)}),[M.isFullscreen,M.isExporting]);const F=`${z}${I?` ${pe.CLASSES.FULLSCREEN}`:""}`;return t("div",{ref:n,className:F,"aria-label":S||`${l} chart`,role:"img",tabIndex:0,...P,...x,children:[(h||m||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:[h&&e("h3",{className:`${pe.TITLE_CLASS} u-mb-1`,children:h}),m&&e("p",{className:`${pe.SUBTITLE_CLASS} u-mb-0`,children:m})]}),b?e($r,{chartType:l,groups:k,enableDefaults:0===k.length,exportFormats:y,state:{isFullscreen:M.isFullscreen,isExporting:M.isExporting,isRefreshing:M.isRefreshing,zoomLevel:M.zoomLevel,panEnabled:M.panEnabled,showGrid:M.showGrid,showLegend:M.showLegend,showTooltips:M.showTooltips,animationsEnabled:M.animationsEnabled},onRefresh:D.onRefresh,onExport:D.onExport,onFullscreen:D.onFullscreen,onZoomIn:D.onZoomIn,onZoomOut:D.onZoomOut,onZoomReset:D.onZoomReset,onPanToggle:D.onPanToggle,onReset:D.onReset,onSettings:D.onSettings,onGridToggle:D.onGridToggle,onLegendToggle:D.onLegendToggle,onTooltipsToggle:D.onTooltipsToggle,onAnimationsToggle:D.onAnimationsToggle}):null]}),t("div",{className:pe.CONTENT_CLASS,children:[p&&t("div",{className:pe.LOADING_CLASS,children:[e("div",{className:pe.LOADING_SPINNER_CLASS}),e("span",{className:pe.LOADING_TEXT_CLASS,children:M.isExporting?"Exporting chart...":M.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),g&&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:g})]})]}),!p&&!g&&!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"})]}),!p&&!g&&r&&e("div",{className:pe.CANVAS_CLASS,children:r})]})]})})));Hr.displayName="Chart";const Wr=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=Vr(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,y=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})),T=(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}`)}))}),y.flat(),T,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]),y=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(Hr,{ref:n,type:"advanced",datasets:g,config:l,...h,children:[N,_,C,y]})})));Wr.displayName="AdvancedChart";const Qr=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(Hr,{ref:a,type:l,datasets:n,config:i,...c,children:e("canvas",{ref:u,style:{width:"100%",height:"100%",borderRadius:"8px"}})})})));function Kr(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=Vr(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=Vr(e).call(e,((e,t,a)=>e+a),0),n=Vr(e).call(e,((e,t)=>e+t.value),0),i=(t*Vr(e).call(e,((e,t,a)=>e+a*t.value),0)-a*n)/(t*Vr(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,i,r)=>{s({datasetIndex:e,pointIndex:t,x:a,y:n,clientX:i,clientY:r})}),[]),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}}Qr.displayName="AnimatedChart";const Zr=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:y,handlePan:T,handleDragStart:L,handleDragEnd:x,handleCrosshair:I,clearCrosshair:w,handleTouchStart:R,handleTouchMove:O,handleTouchEnd:M,handlePointerDown:D,handlePointerMove:k,handlePointerUp:B,svgRef:P}=Yr(),{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=Vr(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=Vr(e).call(e,((e,t,a)=>e+a),0),n=Vr(e).call(e,((e,t)=>e+t),0),i=(t*Vr(e).call(e,((e,t,a)=>e+a*t),0)-a*n)/(t*Vr(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=Vr(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=r.length>0?Math.min(...r):0,l=r.length>0?Math.max(...r):0;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;const n=(null===(t=e.data)||void 0===t?void 0:t.map((e=>e.value)).filter((e=>"number"==typeof e)))||[],i=n.length>0?n:[0];return{label:e.label,dataLength:(null===(a=e.data)||void 0===a?void 0:a.length)||0,minValue:Math.min(...i),maxValue:Math.max(...i)}})):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 $=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;T(e,t)}}),[p,b,I,T]),H=d((e=>{if(!p||b.touchState.isTouch)return;const t=e.currentTarget.getBoundingClientRect(),a=e.clientX-t.left,n=e.clientY-t.top;L(a,n)}),[p,b.touchState.isTouch,L]),W=d((()=>{p&&!b.touchState.isTouch&&x()}),[p,b.touchState.isTouch,x]),Q=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;y(r,a,n)}),[p,y]),K=d(((e,t,a)=>{p&&(C(t,a),null==m||m(e,t,a))}),[p,C,m]),Z=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 Z?t("svg",{ref:n||P,width:"100%",height:"100%",viewBox:`0 0 ${Z.scales.width} ${Z.scales.height}`,preserveAspectRatio:"xMidYMid meet",className:pe.CHART_SVG_CLASS,onMouseMove:$,onMouseDown:H,onMouseUp:W,onMouseLeave:()=>{w(),W()},onWheel:Q,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];K(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({...Z,interactionState:b,handlers:{onDataPointClick:K,onPointHover:N,onPointLeave:_,onMouseMove:$,onMouseDown:H,onMouseUp:W,onWheel:Q},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:Z.scales.height,stroke:"var(--atomix-gray-4)",strokeWidth:"1",strokeDasharray:"4,4",opacity:"0.6"}),e("line",{x1:0,y1:b.crosshair.y,x2:Z.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: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*b.zoomLevel),"%"]})]})]}):null})));Zr.displayName="ChartRenderer";const jr=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}));jr.displayName="ChartTooltip";const qr=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}=Kr(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(Hr,{ref:n,type:"line",datasets:l,config:s,toolbarConfig:{defaults:{zoom:!0,pan:!0,reset:!0,grid:!0,tooltips:!0}},...v,children:[e(Zr,{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(jr,{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})]})})));qr.displayName="LineChart";const Xr=p(l(((t,a)=>{let{areaOptions:n={},...i}=t;const r={showArea:!0,fillOpacity:.3,useGradient:!0,...n};return e(qr,{ref:a,lineOptions:r,...i})})));function Jr(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,r,o)=>{n({datasetIndex:e,pointIndex:t,chartX:a,chartY:i,clientX:r,clientY:o})}),[]),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}}Xr.displayName="AreaChart";const eo=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}=Jr(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(Hr,{ref:n,type:u?"horizontal-bar":"bar",datasets:l,config:s,...m,children:[e(Zr,{datasets:l,config:s,onDataPointClick:h,renderContent:E}),S&&e(jr,{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})]})})));eo.displayName="BarChart";const to=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:y="Size",colorScheme:T=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:L=!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(L){const e=Math.floor((t.size-p)/(g-p)*(T.length-1));l=T[e]}else l=T[a%T.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:y}),[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,y,T,L]),R=[{label:"Bubble Data",data:h.map((e=>({label:e.label,value:e.size,x:e.x,y:e.y})))}];return t(Hr,{ref:n,type:"bubble",datasets:R,config:m,...v,children:[e(Zr,{datasets:R,config:m,onDataPointClick:g,renderContent:w}),x&&h[x.index]&&e(jr,{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})]})})));to.displayName="BubbleChart";const ao=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=Vr(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,y=s.showVolume?h*s.volumeHeightRatio:0,T=d-_-b,L=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(...L),I=(null===(i=l.yAxis)||void 0===i?void 0:i.max)??Math.max(...L),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*T)*S.scale+S.translateX},k=e=>(f+C-(e-x)/w*C)*S.scale+S.translateY,B=e=>C+f+10+(M-e)/M*(y-20),P=Math.max(o.length,1),z=T/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+y-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(Hr,{ref:r,type:"candlestick",datasets:[],config:l,...h,children:[b,s.showOHLCTooltip&&m&&e(jr,{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)}))})]})})));ao.displayName="CandlestickChart";const no=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=Vr(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,y=[`M ${v},${S}`,`A ${r},${r} 0 ${C},1 ${f},${E}`,`L ${A},${b}`,`A ${o},${o} 0 ${C},0 ${N},${_}`,"Z"].join(" "),T=n+(i-n)/2,L=(r+o)/2,x=l+L*Math.cos(T),I=c+L*Math.sin(T),w=`${Math.round(100*p)}%`;return t("g",{children:[e("path",{d:y,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=Vr(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(Hr,{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(jr,{dataPoint:m.data[p.index],datasetLabel:m.label,datasetColor:m.data[p.index].color,position:{x:p.clientX,y:p.clientY},visible:!0})]}),S]})})));no.displayName="DonutChart";const io=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:y="between",proportional:T=!0,minSegmentRatio:L=.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(T){const e=Math.max(n.percentage/100,L);d=s*e}else{const e=Math.max(1-r/(i.length-1)*(1-g),L);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(T&&e){const a=Math.max(e.percentage/100,L);t=s*a}else{const e=Math.max(1-(r+1)/(i.length-1)*(1-g),L);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"===y?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)=>{T?Math.max(e.percentage/100,L):Math.max(1-t/(i.length-1)*(1-v),L)}));return e("g",{children:I})}),[i,c,u,h,m,p,g,v,S,f,E,A,b,N,_,C,y,T,L]),I=[{label:"Funnel Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(Hr,{ref:n,type:"funnel",datasets:I,config:r,...s,children:e(Zr,{datasets:I,config:r,onDataPointClick:l,renderContent:x})})})));io.displayName="FunnelChart";const ro=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:y=!0,animationDuration:T=1e3,animationEasing:L="ease-out",useGradient:x=!0,label:I,labelPosition:w="bottom"}=u,[R,O]=i(y?l:r),[M,D]=i(null);o((()=>{if(y){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/T,1);let o=r;"ease-out"===L?o=1-Math.pow(1-r,3):"ease-in"===L?o=Math.pow(r,3):"ease-in-out"===L&&(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,y,T,L,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,y=p*Math.PI/180,T=h+(y-h)*((R-l)/(s-l)),L=[],O=B(o,c,d,u,m,p);if(L.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}`;L.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})`}L.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};L.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(L.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};L.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(y)*a,u=c+Math.sin(y)*a;L.push(e("text",{x:n,y:i,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-min-max-label",children:l},"min-label")),L.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(T)*a,i=c+Math.sin(T)*a;L.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),L.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),L.push(e("text",{x:o,y:t,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__gauge-label",children:I},"custom-label"))}return e("g",{children:L})}),[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(Hr,{ref:n,type:"gauge",datasets:z,config:c,...h,children:[e(Zr,{datasets:z,config:c,renderContent:k}),M&&e(jr,{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})]})})));ro.displayName="GaugeChart";const oo=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,_]),y=d(((e,t)=>{E(e),t&&e&&(t.currentTarget.getBoundingClientRect(),b({x:t.clientX,y:t.clientY}))}),[]),T=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=>y(a,e),onMouseLeave:()=>y(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,y,o.scheme,_]),{matrix:L,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(Hr,{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:T({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}`})]})})));oo.displayName="HeatmapChart";const lo=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(Hr,{ref:n,type:"line",datasets:i,config:l,title:"Multi-Axis Chart",showToolbar:!0,...h,children:e(Zr,{datasets:i,config:l,width:800,height:500,renderContent:p,interactive:!0,enableAccessibility:!0})})})));function so(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((()=>Vr(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,t,a)=>{n(e)}),[]),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}}lo.displayName="MultiAxisChart";const co=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}=so(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(Hr,{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(jr,{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})]})})));co.displayName="PieChart";const uo=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:y}=u,[T,L]=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=y||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,T=[];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`;T.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;T.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;L({datasetIndex:a,pointIndex:n,clientX:o,clientY:l})},onMouseLeave:()=>L(null)},`point-${a}-${n}`))})),e("g",{children:p},`dataset-${a}`)}));return t("g",{children:[T,w,x]})}),[p,g,v,S,f,E,A,b,N,C,y]),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(Hr,{ref:n,type:"radar",datasets:s,config:c,...m,children:[e(Zr,{datasets:s,config:c,onDataPointClick:h,renderContent:x}),T&&e(jr,{dataPoint:null===(r=s[T.datasetIndex])||void 0===r||null===(r=r.data)||void 0===r?void 0:r[T.pointIndex],datasetLabel:null===(o=s[T.datasetIndex])||void 0===o?void 0:o.label,datasetColor:null===(l=s[T.datasetIndex])||void 0===l?void 0:l.color,position:{x:T.clientX,y:T.clientY},visible:!0})]})})));uo.displayName="RadarChart";const ho=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),y=r(Date.now()),T=r([]),L=d((()=>{if(!p)return;const e=Date.now(),t=e-y.current;if(t>=1e3){const a=Math.round(1e3*C.current/t);b((e=>({...e,fps:a,dataPoints:Vr(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,y.current=e}C.current++}),[p,v]),x=d((()=>{if(0===T.current.length)return;const e=performance.now();S((e=>{const t=[...e];return T.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})),T.current=[];const t=performance.now();b((a=>({...a,updateTime:t-e}))),null==m||m(v),L()}),[c.maxDataPoints,m,v,L]),I=d((()=>{if(h)try{_.current=new WebSocket(h),_.current.onopen=()=>{E(!0)},_.current.onmessage=e=>{try{const t=JSON.parse(e.data);T.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&&T.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(Hr,{ref:n,type:"line",datasets:v,config:s,title:"Real-time Chart "+(f?"🔴 LIVE":"⏸️ PAUSED"),showToolbar:!0,enableRefresh:!0,onRefresh:R,...g,children:[e(Zr,{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"})]})]})})));ho.displayName="RealTimeChart";const mo=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(Hr,{ref:r,type:"scatter",datasets:c,config:d,...m,children:[e(Zr,{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(jr,{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})]})})));mo.displayName="ScatterChart";const po=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}),y=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=Vr(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:Vr(t).call(t,((e,t)=>e+t.value),0),children:t}}),[r]),T=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&&y){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,y]);d(((e,t,a,n,i)=>{if(0===e.length)return;const r=Vr(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=Vr(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=Vr(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 L=c((()=>{if(!r.length)return[];const e=r.filter((e=>!e.children||0===e.children.length));Vr(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:T(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,T]),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((()=>L.length?e("g",{children:L.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),[L,E,b,s,u,h,m,p,I,x]);return t(Hr,{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()]})]})]})})));po.displayName="TreemapChart";const go=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,y=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 y=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}})),T=y.flatMap((e=>[e.startValue,e.endValue])),L=Math.min(0,...T),x=Math.max(...T)-L,I=s/i.length*v,w=s/i.length,R=e=>l+e*w+w/2,O=e=>l+d-(e-L)/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(y.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<y.length-1){const i=y[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=y.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=L+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]),T=[{label:"Waterfall Data",data:i.map((e=>({label:e.label,value:e.value})))}];return e(Hr,{ref:n,type:"waterfall",datasets:T,config:r,...s,children:e(Zr,{datasets:T,config:r,onDataPointClick:l,renderContent:y})})})));go.displayName="WaterfallChart";const vo=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"})})})};vo.displayName="ColorModeToggle";const So=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 Er(s).call(s,"days")&&_.push({label:"Days",value:E}),Er(s).call(s,"hours")&&_.push({label:"Hours",value:A}),Er(s).call(s,"minutes")&&_.push({label:"Minutes",value:b}),Er(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 fo(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&&Er(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()}}}So.displayName="Countdown";const Ao=t=>{let{size:a="md",variant:n="primary",fullscreen:i=!1,className:r="",glass:o}=t;const{generateSpinnerClass:l}=Eo({size:a,variant:n,fullscreen:i}),s=l({size:a,variant:n,fullscreen:i,className:`${r} ${o?"c-spinner--glass":""}`.trim()}),c=e("div",{className:s,role:"status",children:e("span",{className:G.VISUALLY_HIDDEN,children:"Loading..."})});if(o){const t={displacementScale:20,blurAmount:1,cornerRadius:999,mode:"shader"},a=!0===o?t:{...t,...o};return e($e,{...a,children:c})}return c};Ao.displayName="Spinner";const bo="...",No=(e,t)=>{const a=t-e+1;return Array.from({length:a},((t,a)=>a+e))},_o=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),bo,a]}if(r&&!o){let e=No(a-(3+2*n)+1,a);return[1,bo,...e]}if(r&&o){let t=No(e,i);return[1,bo,...t,bo,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:bo}},Co=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(Ke,{name:o,size:"sm","aria-hidden":"true"})})})},yo=a=>{let{currentPage:n=j.currentPage,totalPages:i=j.totalPages,onPageChange:r,siblingCount:o=j.siblingCount,showFirstLastButtons:l=j.showFirstLastButtons,showPrevNextButtons:s=j.showPrevNextButtons,size:c=j.size,className:d="",ariaLabel:u="Pagination",glass:h}=a;const{paginationRange:m,goToPage:p,nextPage:g,prevPage:v,firstPage:S,lastPage:f}=_o({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(Co,{type:"first",onClick:S,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),s&&e(Co,{type:"prev",onClick:v,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),m.map(((t,a)=>{if(t===bo)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(Co,{type:"next",onClick:g,disabled:n===i,label:"Go to next page",iconName:"CaretRight"}),l&&e(Co,{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($e,{...a,children:E})}return E};yo.displayName="Pagination";const To=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:y,handleSearch:T}=fo({data:n,columns:i,sortable:l,paginated:c,pageSize:d,onSort:S}),L=[Z.base,u&&Z.striped,h&&Z.bordered,m&&Z.dense,p&&Z.loading,o].filter(Boolean).join(" ");return t("div",{className:Z.container,...f,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=>T(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:Z.tableWrapper,children:t("table",{ref:E,className:L,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==b?void 0:b.key)===a.key?"asc"===b.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==b?void 0:b.key)===a.key?"asc"===b.direction?e(Ke,{name:"CaretUp",size:"sm"}):e(Ke,{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(Ao,{size:"md",variant:"primary"})})})})}):0===A.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:i.length,className:Z.emptyCell,children:g})})}):e("tbody",{children:A.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||_<=1?null:e("div",{className:Z.pagination,children:e(yo,{currentPage:N,totalPages:_,onPageChange:y,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})})]})};function Lo(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function xo(e,t){return new Date(e,t+1,0).getDate()}function Io(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 wo(){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?Io(e,c):""),[f,E]=i(n&&l?`${Io(n,c)} - ${Io(l,c)}`:n?`${Io(n,c)} - Select end date`:""),[A,b]=i(e||n||new Date),[N,_]=i("days"),[C,y]=i(!n||n&&l?"start":"end"),T=r(null),L=r(null),x=new Date,I=A.getMonth(),w=A.getFullYear(),R=xo(w,I),O=new Date(w,I,1).getDay();o((()=>{"single"===a?S(e?Io(e,c):""):(E(n&&l?`${Io(n,c)} - ${Io(l,c)}`:n?`${Io(n,c)} - Select end date`:""),y(!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(Io(i,c)),m||g(!1);else if("start"===C)s&&s({startDate:i,endDate:null}),E(`${Io(i,c)} - Select end date`),y("end");else{if(!n)return;i<n?(s&&s({startDate:i,endDate:n}),E(`${Io(i,c)} - ${Io(n,c)}`)):(s&&s({startDate:n,endDate:i}),E(`${Io(n,c)} - ${Io(i,c)}`)),m||g(!1),y("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(""),y("start"),s&&s({startDate:null,endDate:null}))}),[t,s,a]),$=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]),H=d((()=>{m||g(!0)}),[m]),W=d((e=>{T.current&&!T.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&g(!1)}),[]);o((()=>(p&&!m?document.addEventListener("mousedown",W):document.removeEventListener("mousedown",W),()=>{document.removeEventListener("mousedown",W)})),[p,W,m]);const Q=d((()=>{const e=[],t=xo(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]),K=d((()=>{const e=[];for(let t=0;t<12;t++)e.push({month:t,name:Lo(t)});return e}),[]),Z=d((()=>{const e=[],t=w-6;for(let a=0;a<12;a++)e.push(t+a);return e}),[w]),j=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]),q=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]),X=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:T,inputRef:L,startDate:n,endDate:l,setIsOpen:g,handleDateSelect:M,handlePrevMonth:D,handleNextMonth:k,handlePrevYear:B,handleNextYear:P,handleTodayClick:V,handleClear:Y,handleInputChange:$,handleInputFocus:H,switchToMonthView:z,switchToYearView:F,selectMonth:U,selectYear:G,generateDays:Q,generateMonths:K,generateYears:Z,isDateSelectable:j,isDateSelected:q,isDateInSelectedRange:X,isToday:J,getWeekNumber:ee}}To.displayName="DataTable";const Ro=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:y="bottom-start",inputClassName:T="",size:L="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:$,handleClear:H,handleDateSelect:W,handleTodayClick:Q,handlePrevMonth:K,handleNextMonth:Z,handlePrevYear:j,handleNextYear:q,switchToMonthView:X,switchToYearView:J,selectMonth:ee,selectYear:te,generateDays:ae,generateMonths:ne,generateYears:ie,isDateSelectable:re,isDateSelected:oe,isDateInSelectedRange:le,isToday:se,getWeekNumber:ce}=wo({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:H,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--${L} ${T}`.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:j,"aria-label":"Previous year",children:e(Ke,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:K,"aria-label":"Previous month",children:e(Ke,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:X,"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:Z,"aria-label":"Next month",children:e(Ke,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:q,"aria-label":"Next year",children:e(Ke,{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:j,"aria-label":"Previous year",children:e(Ke,{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:q,"aria-label":"Next year",children:e(Ke,{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(Ke,{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(Ke,{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&&W(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:Q,"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?`${Io(U,u)} - Select end date...`:"Select date range...",value:pe,onChange:Y,onFocus:$,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:H,"aria-label":"Clear date",children:e(Ke,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(Ke,{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--${y} c-datepicker__calendar--glass`,role:"dialog","aria-modal":b?void 0:"true","aria-label":"Date picker",children:e($e,{...!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--${y}`,role:"dialog","aria-modal":b?void 0:"true","aria-label":"Date picker",children:Ee()})})]})}));Ro.displayName="DatePicker";const Oo=v({isOpen:!1,close:()=>{},id:"",trigger:"click"}),Mo=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,y=C?h:N,T=r(null),L=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(!y)),[y,w]),O=d((()=>{w(!1),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),0)}),[w]);o((()=>{if(!y||!p)return;const e=e=>{T.current&&!T.current.contains(e.target)&&O()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[y,p,O]),o((()=>{if(!y||!g)return;const e=e=>{"Escape"===e.key&&O()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[y,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||y?"Escape"===e.key&&y&&(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))}),[y,w,O]),B=d((()=>{"hover"===c&&w(!0)}),[c,w]),P=["c-dropdown","click"===c?"c-dropdown--onclick":"",f?`c-dropdown--${f}`:"",y?"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(Oo.Provider,{value:{isOpen:y,close:O,id:I,trigger:c},children:e("ul",{className:"c-dropdown__menu "+(A?"c-dropdown__menu--glass":""),children:l})})});return t("div",{ref:T,className:P,onMouseEnter:"hover"===c?B:void 0,...b,children:[e("div",{ref:L,className:"c-dropdown__toggle",onClick:D,onKeyDown:k,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":I,tabIndex:0,children:n}),e("div",{ref:x,id:I,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${y?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!y,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($e,{...a,style:{position:"absolute",width:"100%",height:"100%"},children:F})})():F})]})};function Do(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,glass:void 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((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n(!0),document.body.classList.add("is-edgepanel-open"),l.current){const{mode:a}=t;if("none"!==a)if(e){l.current.classList.add("is-fade-animating"),l.current.offsetHeight;const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),K.ANIMATION_DURATION)}else{l.current.classList.add("is-animating"),l.current.offsetHeight;const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),K.ANIMATION_DURATION)}e?(l.current.style.opacity="1",l.current.style.transform=""):l.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=d((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(l.current){const{position:a,mode:i}=t;if("none"!==i)if(e){l.current.classList.add("is-fade-animating-out");const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),K.ANIMATION_DURATION)}else{l.current.classList.add("is-animating-out");const e=l.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),K.ANIMATION_DURATION)}e?(l.current.style.opacity="0",l.current.style.transform=""):l.current.style.transform=a?K.TRANSFORM_VALUES[a]:"","push"===t.mode&&u();setTimeout((()=>{n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===i?0:K.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=K.TRANSFORM_VALUES[e],t.glass&&(l.current.style.opacity="0"))}}),[t.mode,t.position,t.glass,a]),o((()=>{void 0!==t.isOpen&&t.isOpen!==a&&(t.isOpen?h(!!t.glass):m(!!t.glass))}),[t.isOpen,m,a,h,t.glass]),{isOpen:a,containerRef:l,backdropRef:s,generateEdgePanelClass:e=>{const{position:n=t.position,className:i="",isOpen:r}=e,o=K.CLASSES.BASE;return`${o} ${n?`${o}--${n}`:""} ${r??a?K.CLASSES.IS_OPEN:""} ${i}`.trim()},openPanel:h,closePanel:m,handleBackdropClick:g}}Mo.displayName="Dropdown";const ko=n=>{var i,o,l,s,c,d,u;let{title:h,children:m,position:p="start",mode:g="slide",isOpen:v=!1,onOpenChange:S,backdrop:f=!0,closeOnBackdropClick:E=!0,closeOnEscape:A=!0,className:b="",glass:N}=n;const{isOpen:_,containerRef:C,backdropRef:y,generateEdgePanelClass:T,closePanel:L,handleBackdropClick:x}=Do({position:p,mode:g,isOpen:v,onOpenChange:S,backdrop:f,closeOnBackdropClick:E,closeOnEscape:A,glass:N}),I=r(null),w=T({position:p,isOpen:v,className:N?`${b} c-edge-panel--glass`:b});if(!_&&!1===v)return null;const R={elasticity:0},O=!0===N?R:{...R,...N},M=t(a,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:h}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>L(),"aria-label":"Close panel",children:e(Ke,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:m})]});return t("div",{className:w,"data-position":p,"data-mode":g,children:[f&&e("div",{ref:y,className:"c-edge-panel__backdrop",onClick:x}),e("div",{ref:C,className:"c-edge-panel__container",children:N?e($e,{...O,className:"c-edge-panel__glass-wrapper",style:{position:"fixed",width:null===(i=I.current)||void 0===i?void 0:i.offsetWidth,height:null===(o=I.current)||void 0===o?void 0:o.offsetHeight,top:null===(l=C.current)||void 0===l?void 0:l.offsetTop,left:null===(s=C.current)||void 0===s?void 0:s.offsetLeft,bottom:null===(c=C.current)||void 0===c?void 0:c.style.bottom,right:null===(d=C.current)||void 0===d?void 0:d.style.right},children:e("div",{ref:I,className:"c-edge-panel__glass-content",style:{borderRadius:null===(u=C.current)||void 0===u?void 0:u.style.borderRadius},children:M})}):M})]})};ko.displayName="EdgePanel";const Bo="c-checkbox",Po="is-error",zo="is-valid",Fo="is-disabled",Uo="c-checkbox--mixed";function Go(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=Po:i&&(l=zo);return`${Bo} ${l} ${a?Fo:""} ${r?Uo:""} ${o}`.trim()},checkboxRef:a}}const Vo=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}=Go({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($e,{...a,children:b})}return b};function Yo(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:a=t.disabled,className:n=""}=e,i=a?X.CLASSES.DISABLED:"";return`${X.CLASSES.BASE} ${i} ${n}`.trim()},handleSubmit:e=>a=>{a.preventDefault(),!t.disabled&&e&&e(a)},handleReset:e=>a=>{!t.disabled&&e&&e(a)}}}Vo.displayName="Checkbox";const $o=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}=Yo({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 Ho(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()}}}$o.displayName="Form";const Wo=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}=Ho({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 Qo(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()}}}Wo.displayName="FormGroup";const Ko=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:y,step:T,ariaLabel:L,ariaDescribedBy:x,glass:I}=t;const{generateInputClass:w}=Qo({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:y,step:T,"aria-label":L,"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($e,{...a,children:O})}return O}));function Zo(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 jo(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 qo(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 Jo(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?H.SELECTORS.DROPDOWN.replace(".",""):""} ${n?"c-nav__item--mega-menu":""} ${i?H.CLASSES.ACTIVE:""} ${r?H.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]?H.CLASSES.ACTIVE:""} ${e?"c-nav__link--disabled":""} ${t}`.trim()},handleClick:e=>a=>{!t.disabled&&e?e():a.preventDefault()}}}function el(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?W.CLASSES.IS_OPEN:"";return`${W.CLASSES.BASE} ${n} ${t}`.trim()},generateWrapperClass:()=>W.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 tl(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?W.CLASSES.ACTIVE:"",r=a?W.CLASSES.DISABLED:"";return`${W.CLASSES.LINK} ${i} ${r} ${n}`.trim()},handleClick:e=>a=>{t.disabled?a.preventDefault():e&&e(a)}}}function al(e,t){return e.classList.contains(t)}Ko.displayName="Input";const nl={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 il(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const a=nl[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 rl(){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 ol(e){const t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return t?t[1]:null}function ll(e){return/(?:youtube\.com|youtu\.be)/.test(e)}var sl=Object.freeze({__proto__:null,addClass:function(e,t){al(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=il(e,t),n},createPhosphorIcon:il,extractYouTubeId:ol,generateUUID:rl,getAvailableIcons:function(){return Object.keys(nl)},hasClass:al,isYouTubeUrl:ll,removeClass:function(e,t){al(e,t)&&e.classList.remove(t)},toggleClass:function(e,t,a){e.classList.toggle(t,a)}});function cl(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:rl(),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 dl(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 ul(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 hl(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 ml(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),[y,T]=i(0),[L,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:-y*P+k),[P,y,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(L)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 T(l?t.length+a:a),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(a)}),h),a}return T(l?t.length+n:n),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(n),l&&n>=2*t.length&&(E.current=!0,T(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(L)return e;let n;return n=l?(e+1)%t.length:Math.min(e+1,t.length-a),T(l?t.length+n:n),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(n),l&&n>=2*t.length&&(E.current=!0,T(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,L,h,v,E]),o((()=>{T(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(!L)if(g&&"object"==typeof g&&g.disableOnInteraction&&A.current&&(clearInterval(A.current),A.current=null,N(!1)),l){const e=(_+1)%t.length,a=y+1;C(e),T(a),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e),a>=2*t.length&&(E.current=!0,T(t.length+e),setTimeout((()=>{E.current=!1}),0))}),h)}else{const e=Math.min(_+1,t.length-a);C(e),T(e),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e)}),h)}}),[_,y,t.length,a,l,L,h,v,z.length,F,g]),V=d((()=>{if(!L)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=y-1;C(e),T(a),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e),a<t.length&&(E.current=!0,T(t.length+e),setTimeout((()=>{E.current=!1}),0))}),h)}else{const e=Math.max(_-1,0);C(e),T(e),x(!0),B(0),setTimeout((()=>{x(!1),null==v||v(e)}),h)}}),[_,y,t.length,l,L,h,v,z.length,F,g]),Y=d((e=>{L||e===_||(g&&"object"==typeof g&&g.disableOnInteraction&&A.current&&(clearInterval(A.current),A.current=null,N(!1)),x(!0),B(0),C(e),T(l?t.length+e:e),setTimeout((()=>{x(!1),null==v||v(e)}),h))}),[_,L,h,v,l,F,g]),$=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]),H=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]),W=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]),Q=l||_<t.length-a,K=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:L,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:Q,allowSlidePrev:K,allowTouchMove:m,animating:L,enabled:!0,initialized:!0,slideNext:G,slidePrev:V,goToSlide:Y,canSlideNext:Q,canSlidePrev:K,containerRef:S,wrapperRef:f,handleTouchStart:$,handleTouchMove:H,handleTouchEnd:W,allSlides:z,translateValue:U,slideWidth:P,currentSlidesToShow:a,loopedSlides:F,repositioningRef:E}}var pl=Object.freeze({__proto__:null,DOTS:bo,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:qe,useBarChart:Jr,useBlock:et,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:nt,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]),y=d((()=>{b(!1),t&&S(!1),n&&"hover"===o&&g(!1)}),[t,n,o]),T=d((()=>{E(!0)}),[]),L=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:y,onFocus:T,onBlur:L,onClick:N,onKeyDown:_})),[v,p,f,a,l,s,C,y,T,L,N,_,n]);return{cardRef:u,frontRef:h,backRef:m,isFlipped:p,isElevated:v,isFocused:f,isHovered:A,handleClick:N,handleKeyDown:_,handleMouseEnter:C,handleMouseLeave:y,handleFocus:T,handleBlur:L,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=Vr(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:Go,useDataTable:fo,useEdgePanel:Do,useForm:Yo,useFormGroup:Ho,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,y=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",y),()=>e.removeEventListener("mousemove",y)):void 0}),[y,n,l,c]);const T=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]),L=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:T,calculateElasticTranslation:L,handleMouseEnter:x,handleMouseLeave:I,handleMouseDown:w,handleMouseUp:R}},useHero:Zo,useInput:Qo,useLineChart:Kr,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: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?H.SELECTORS.MEGA_MENU.replace(".",""):H.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:Jo,useNavbar:qo,usePagination:_o,usePieChart:so,useRadio:dl,useRiver:jo,useSelect:ul,useSideMenu:el,useSideMenuItem:tl,useSlider:ml,useSpinner:Eo,useTextarea:hl,useTodo:cl});const gl=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}=ul({size:S,disabled:m,invalid:f,valid:E}),y=C({className:`${h} ${_?"c-select--glass":""}`.trim(),size:S,disabled:m,invalid:f,valid:E}),[T,L]=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)&&(L(!1),O.current&&(O.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const D=t("div",{className:`${y} ${T?ne.CLASSES.IS_OPEN:""}`,ref:w,"aria-expanded":T,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||(!T&&O.current&&R.current?O.current.style.height=`${R.current.clientHeight}px`:O.current&&(O.current.style.height="0px"),L(!T))},"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),L(!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($e,{...a,children:D})}return D};gl.displayName="Select";const vl=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}=dl({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($e,{...a,children:E})}return E};vl.displayName="Radio";const Sl=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:y}=t;const{generateTextareaClass:T}=hl({size:f,variant:E,disabled:c,invalid:A,valid:b}),L=T({className:`${s} ${y?"c-input--glass":""}`.trim(),size:f,variant:E,disabled:c,invalid:A,valid:b}),x=e("textarea",{ref:a,className:L,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:y?{}:void 0});if(y){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,cornerRadius:8,mode:"shader"},a=!0===y?t:{...t,...y};return e($e,{...a,children:x})}return x}));Sl.displayName="Textarea";const fl=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})]})}));fl.displayName="FooterSocialLink";const El=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:y=!1,...T}=a;const{footerClass:L,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:L,...T,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(fl,{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($o,{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(Ko,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:p,required:!0}),e(it,{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(it,{variant:"ghost",className:"c-footer__back-to-top",onClick:M,disabled:y,"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})]})]})]})})}));El.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 bl=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:"↗"})]})}));bl.displayName="FooterLink";const Nl=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:y,generateContentColClass:T,hasBackgroundImage:L,hasForegroundImage:x,useGridLayout:I,heroRef:w,videoRef:R}=Zo({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($e,{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($e,{...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:y(),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:[L||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:T(),children:k()}),B()]}:{children:[B(),e("div",{className:T(),children:k()})]})}):t(a,{children:[k(),B()]})})]})};Nl.displayName="Hero";const _l=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=Er(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})))})};_l.displayName="List";const Cl=n=>{let{messages:r=[],otherAvatar:o,selfAvatar:l,otherName:s,width:c="100%",onSendMessage:d,placeholder:u="Type a message",className:h="",bodyHeight:m,disabled:p=!1,id:g,glass:v}=n;const{inputValue:S,handleInputChange:f,handleSubmit:E,handleKeyDown:A}=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:d}),b=g||`messages-${Math.random().toString(36).substr(2,9)}`,N=`${b}-input`,_={displacementScale:150,cornerRadius:12,elasticity:0,aberrationIntensity:2},C=`${se.CLASSES.BASE} ${v?"c-messages--glass":""} ${p?"is-disabled":""} ${h}`,y=t(a,{children:[e("div",{className:se.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:r.map((a=>t("div",{className:`${se.CLASSES.CONTENT} ${a.isSelf?se.CLASSES.CONTENT_SELF:""}`,"aria-label":`${a.isSelf?"You":s||"Other person"} sent a message at ${a.time}`,children:[e(Ze,{src:a.isSelf?l:o,size:"xl",circle:!0,className:se.CLASSES.AVATAR,alt:a.isSelf?"Your avatar":`${s||"Other person"}'s avatar`}),t("div",{className:se.CLASSES.ITEMS,children:[!a.isSelf&&s&&e("div",{className:se.CLASSES.NAME,children:s}),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(Ke,{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:E,"aria-label":"Message input form",children:[t("div",{className:se.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:N,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:N,type:"text",className:se.CLASSES.INPUT,placeholder:u,value:S,onChange:f,onKeyDown:A,disabled:p,"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:p,children:e(Ke,{name:"PaperclipHorizontal","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(Ke,{name:"Image","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:se.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(Ke,{name:"Link","aria-hidden":"true",className:se.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:se.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(Ke,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(v){const t=!0===v?_:{..._,...v};return e("div",{className:C,style:{"--atomix-messages-width":c},id:b,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e($e,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.cornerRadius},children:y})})})}return e("div",{className:C,style:{"--atomix-messages-width":c},id:b,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:y})};Cl.displayName="Messages";const yl=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:y,open:T,close:L}=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&&y&&L()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y,L,v]);const x=["c-modal",y?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:L,"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:y?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!y,...b,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{g&&e.target===e.currentTarget&&L()}}),e("div",{ref:_,className:"c-modal__dialog",children:A?(()=>{const t={displacementScale:100,blurAmount:2,aberrationIntensity:1,cornerRadius:12,mode:"shader"},a=!0===A?t:{...t,...A};return e($e,{...a,children:I})})():I})]})};yl.displayName="Modal";const Tl=l(((t,a)=>{let{children:i,alignment:r="start",variant:o="default",className:l="",disabled:s=!1,glass:c}=t;const{generateNavClass:d}=Xo({alignment:r,variant:o}),u=d({alignment:r,variant:o,className:l}),h=e("ul",{ref:a,className:u+(c?" c-nav--glass":""),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}))});if(c){const t={displacementScale:60,blurAmount:1.5,cornerRadius:8,mode:"shader"},a=!0===c?t:{...t,...c};return e($e,{...a,children:h})}return h}));Tl.displayName="Nav";const Ll=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}=Jo({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":""),y=E(u,g,c||d?"c-nav__dropdown-toggle":""),T=n.Children.toArray(s),L=void 0!==v?v:b,x={ref:_,href:h||"#",className:y,onClick:c||d?e=>{(c||d)&&(e.preventDefault(),N(!b))}:A(m),"aria-disabled":g,"aria-expanded":c||d?L: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?T[0]:s}),(c||d)&&T.length>1&&T[1]]})}));Ll.displayName="NavItem";const xl=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,glass:N}=a;const{generateNavbarClass:_,generateContainerStyle:C,generateCollapseClass:y}=qo({position:d,collapsible:h,expanded:m,onToggle:p}),[T,L]=i(m||!1),x=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 I=_({position:d,variant:c,collapsible:h,className:g}),w=C(u),R=y(T),O=t("div",{className:"c-navbar__container",style:w,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:R,ref:x,children:s})]});if(N){const t={displacementScale:30,blurAmount:2,cornerRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},a=!0===N?t:{...t,...N};return e($e,{...a,style:{..."fixed"===d&&{position:"fixed"},left:0,right:0,top:0},children:e("nav",{ref:n,className:I+" c-navbar--glass","aria-label":A,id:b,children:O})})}return e("nav",{ref:n,className:I,"aria-label":A,id:b,children:O})}));xl.displayName="Navbar";const Il=l(((n,i)=>{let{title:r,children:o,isOpen:l,onToggle:s,collapsible:c=!0,className:d="",disabled:u=!1,toggleIcon:h,id:m,glass:p}=n;const{isOpenState:g,wrapperRef:v,innerRef:S,generateSideMenuClass:f,generateWrapperClass:E,handleToggle:A}=el({isOpen:l,onToggle:s,collapsible:c,disabled:u}),b=f({className:d,isOpen:g}),N=E(),_=e(Ke,{name:"CaretRight",size:"xs"}),C=t(a,{children:[r&&c&&t("div",{className:"c-side-menu__toggler",onClick:A,role:"button",tabIndex:u?-1:0,"aria-expanded":g,"aria-controls":m?`${m}-content`:void 0,"aria-disabled":u,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||u||(e.preventDefault(),A())},children:[e("span",{className:"c-side-menu__title",children:r}),e("span",{className:"c-side-menu__toggler-icon",children:h||_})]}),r&&!c&&e("h3",{className:"c-side-menu__title",children:r}),e("div",{ref:v,className:N,id:m?`${m}-content`:void 0,"aria-hidden":!!c&&!g,children:e("div",{ref:S,className:"c-side-menu__inner",children:o})})]});if(p){const t={displacementScale:70,blurAmount:2,cornerRadius:12,mode:"shader"},a=!0===p?t:{...t,...p};return e($e,{...a,children:e("div",{ref:i,className:b+" c-side-menu--glass",id:m,children:C})})}return e("div",{ref:i,className:b,id:m,children:C})}));Il.displayName="SideMenu";const wl=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}=tl({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})]})}));wl.displayName="SideMenuItem";const Rl=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))})}));Rl.displayName="SideMenuList";const Ol=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(Xe,{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(it,{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(Ke,{name:"Minus",size:"sm"})}),e(it,{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(Ke,{name:"MagnifyingGlass",size:"sm"})}),e(it,{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(Ke,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(it,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(Ke,{name:"ArrowsClockwise",size:"sm"})}),e(it,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(Ke,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(it,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:p,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(Ke,{name:"Share",size:"sm"})}),e(it,{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(Ke,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(it,{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(Ke,{name:d?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(it,{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(Ke,{name:"X",size:"sm"})})]})]})},Ml=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(it,{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(Ke,{name:"CaretLeft",size:"md"})}),e(it,{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(Ke,{name:"CaretRight",size:"md"})})]}):null},Dl=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,y]=i(!1);o((()=>(y(!0),()=>y(!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()})})},kl=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(it,{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)}))})})},Bl=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(it,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(Ke,{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(Ke,{name:"Calendar",size:14}),e("span",{children:i.date})]}),i.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(Ke,{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(Xe,{label:t,variant:"secondary",size:"sm"},a)))})]})]})]}):null},Pl=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:y,containerRef:T,isTransitioning:L,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:$,handleDoubleClick:H,resetImageState:W}=(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,y]=i(!1),[T,L]=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(!T||!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}}}),[T]),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((()=>(L(!0),a<0||a>=t.length?u(0):u(a),()=>L(!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=()=>{T&&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&&T))return e&&t&&T?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[c,P,z,T]),o((()=>{const e=()=>{T&&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,T]);const F=d((()=>{m(!0)}),[]),U=d((()=>{m(!1),s&&s()}),[s]),G=d((()=>{c>0&&(y(!0),setTimeout((()=>{u((e=>e-1)),y(!1)}),150))}),[c]),V=d((()=>{c<t.length-1&&(y(!0),setTimeout((()=>{u((e=>e+1)),y(!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}}}))}),[T,c,P,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}},n="function"==typeof e?e(a.position):e,i=z(n,a.bounds);return{...t,[c]:{...a,position:i}}}))}),[c,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.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}}}))}),[T,c,P,z]),W=d((e=>{var t;if(!T||!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&&Er(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}))}}),[T,c,P,z]),Q=d((e=>{if(!T||!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}}}))}),[T,c,P,z]),K=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]),Z=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]),j=d((()=>{g(!1)}),[]),q=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]),X=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}))}),[T,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:$,setIsDragging:g,setIsFullscreen:E,setRotationAngle:H,setShowInfo:b,openModal:F,closeModal:U,goToPrevious:G,goToNext:V,handleWheel:W,handleMouseDown:K,handleMouseMove:Z,handleMouseUp:j,handleTouchStart:q,handleTouchMove:X,handleTouchEnd:J,handleDoubleClick:Q,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||(()=>{})}),Q=c((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),K=Q[f],Z=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:Z,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(Ol,{currentIndex:f,imagesLength:n.length,onZoomOut:()=>x((e=>Math.max(e-.25,.1))),onResetZoom:()=>{W()},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==K||!K.src)return;const e=document.createElement("a");e.href=K.src,e.download=K.title||`image-${f+1}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&null!=K&&K.src)try{await navigator.share({title:K.title||"Shared Image",text:K.description||"Check out this image",url:K.src})}catch(e){}},showInfo:C,onToggleInfo:()=>M(!C),currentImage:K}),t("div",{className:"c-photo-viewer__content",children:[e(Ml,{show:n.length>1,onPrev:k,onNext:B,currentIndex:f,imagesLength:n.length,enableKeyboardNav:h,onClose:S||D}),(null==K?void 0:K.src)&&e(Dl,{imageRef:y,containerRef:T,src:K.src,alt:(null==K?void 0:K.alt)||`Image ${f+1}`,zoomLevel:E,dragPosition:A,isDragging:b,rotationAngle:_,isTransitioning:L,onMouseDown:z,onMouseMove:F,onMouseUp:U,onWheel:G,onTouchStart:V,onTouchMove:Y,onTouchEnd:$,onDoubleClick:H})]}),"none"!==g&&e(kl,{images:Q,currentIndex:f,goToImage:P}),e(Bl,{show:C,image:K,onClose:()=>M(!1)})]})]}):null};Pl.displayName="PhotoViewer";const zl=v({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Fl=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:y,currentPosition:T,updatePosition:L}=(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,y=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((()=>{y(!0)}),l):y(!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")||y(!1)}),100)},n=()=>{null!==b.current&&(clearTimeout(b.current),b.current=null)},i=()=>{y(!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 T=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;T(),window.addEventListener("resize",T);let e=null;const t=t=>{e||(e=setTimeout((()=>{T(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{T()}),500);return()=>{window.removeEventListener("resize",T),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)&&y(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[C,u]),o((()=>{if(!C||!h)return;const e=e=>{"Escape"===e.key&&y(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[C,h]),o((()=>()=>{null!==b.current&&window.clearTimeout(b.current)}),[]),{isOpen:C,setIsOpen:y,triggerRef:f,popoverRef:E,arrowRef:A,popoverId:N,currentPosition:v,updatePosition:T}})({position:l,trigger:s,offset:u,delay:d,defaultOpen:h,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:v,id:S});return t(zl.Provider,{value:{isOpen:A,setIsOpen:b,triggerRef:N,popoverId:y,triggerType:s},children:[f,"undefined"!=typeof document&&I(t("div",{ref:_,className:`c-popover c-popover--${T} ${A?B.CLASSES.IS_OPEN:""} ${E?"c-popover--glass":""} ${c}`,id:y,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($e,{...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)]})};Fl.displayName="Popover";function Ul(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Gl(e,t){return n.useMemo((()=>null==e&&null==t?null:a=>{Ul(e,a),Ul(t,a)}),[e,t])}const Vl=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:y,focusedIndex:T,setHoverValue:L,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;L(Math.max(.5,i))}else L(t)}),[h,u,L]),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;L(Math.max(.5,i))}),[h,u,L]),O=d((()=>{h||L(null)}),[h,L]),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?Q.CLASSES.SMALL:"","lg"===m?Q.CLASSES.LARGE:"",p?`c-rating--${p}`:"",v].filter(Boolean).join(" ");if(E)return e("div",{className:D,ref:Gl(N,n),id:f,...b});const k=null!==y?y:C,B=e("div",{className:D,ref:Gl(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?Q.CLASSES.FULL:"",l?Q.CLASSES.HALF:"",p?`c-rating__star--${p}`:"",T===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($e,{...a,children:B})}return B}));Vl.displayName="Rating";const Yl=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(it,{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(Vl,{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(it,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};Yl.displayName="ProductReview";const $l=l(((t,a)=>{let{value:n,variant:i="primary",size:r="md",className:o="",disabled:l=!1,ariaLabel:s=de.DEFAULTS.ARIA_LABEL,glass:c}=t;const{progressValue:d,progressStyle:u,progressClasses:h}=(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}),m=e("div",{ref:a,className:h+(c?" c-progress--glass":""),style:u,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":l,children:e("div",{className:de.CLASSES.BAR})});if(c){const t={displacementScale:30,blurAmount:.5,cornerRadius:8,mode:"shader"},a=!0===c?t:{...t,...c};return e($e,{...a,children:m})}return m})),Hl=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}=jo({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()]})})]})};Hl.displayName="River";const Wl=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"})})]})};Wl.displayName="SectionIntro";const Ql=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=ml({slides:r,slidesToShow:s,spaceBetween:d,loop:u,initialSlide:h,direction:m,speed:p,allowTouchMove:g,threshold:v,autoplay:f,onSlideChange:N}),{containerRef:y,wrapperRef:T,allSlides:L,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:L.length*(w+d)-d),[L.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||y,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:T,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:L.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<L.length-1?`${d}px`:0,marginBottom:"vertical"===m&&n<L.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)))})]})}));Ql.displayName="Slider";const Kl=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($e,{...a,children:m})}return m};Kl.displayName="Steps";const Zl=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($e,{...a,children:u})}return u};Zl.displayName="Tab";const jl=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})]})]})]})};jl.displayName="Testimonial";const ql=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}=cl({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:rl(),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(Ke,{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(Ke,{name:"Trash",size:"sm"})})]})},a.id)))})]})};ql.displayName="Todo";const Xl=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($e,{...a,children:h})}return h};Xl.displayName="Toggle";const Jl=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($e,{...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]})})]})};Jl.displayName="Tooltip";const es=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,y]=i(null),[T,L]=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&&(y(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"),L(0);let t=0;const a=setInterval((()=>{t+=5,t<100?(L(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?$.CLASSES.DRAGGING:""} ${n?$.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":T},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:[T,"%"]}),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"),y(null),L(0),I(null),R(null),M(null)},children:e("i",{className:"icon-lux-x"})})]})]})]})})};es.displayName="Upload";const ts=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:$=[.5,.75,1,1.25,1.5,2],subtitles:H,quality:W,ambientMode:Q=!1,glass:K=!1,glassOpacity:Z=1,glassContent:j,...q}=n;const X=r(null),J=r(null),ee=r(null),te=r(null),[ae,ne]=i(8),ie="youtube"===u||h||c&&ll(c),re=h||(ie&&c?ol(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:ye,setQuality:Te,formatTime:Le,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,y]=i(!1),[T,L]=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]),$=d((()=>{v?Y():V()}),[v,V,Y]),H=d((e=>{t.current&&(t.current.currentTime=Math.max(0,Math.min(e,A)))}),[t,A]),W=d((e=>{const a=Math.max(0,Math.min(1,e));t.current&&(t.current.volume=a,_(a),y(0===a),null==u||u(a))}),[t,u]),Q=d((()=>{if(t.current){const e=!C;t.current.muted=e,y(e)}}),[t,C]),K=d((async()=>{if(a.current)try{T?document.exitFullscreen&&await document.exitFullscreen():a.current.requestFullscreen&&await a.current.requestFullscreen()}catch(e){}}),[a,T]),Z=d((async()=>{if(t.current)try{x?document.exitPictureInPicture&&await document.exitPictureInPicture():t.current.requestPictureInPicture&&await t.current.requestPictureInPicture()}catch(e){}}),[t,x]),j=d((e=>{t.current&&Er(p).call(p,e)&&(t.current.playbackRate=e,k(e))}),[t,p]),q=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]),X=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),y(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),y(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;L(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(),$();break;case"ArrowLeft":e.preventDefault(),H(f-10);break;case"ArrowRight":e.preventDefault(),H(f+10);break;case"ArrowUp":e.preventDefault(),W(Math.min(1,N+.1));break;case"ArrowDown":e.preventDefault(),W(Math.max(0,N-.1));break;case"KeyM":e.preventDefault(),Q();break;case"KeyF":e.preventDefault(),K()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[$,H,f,W,N,Q,K,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:T,isPictureInPicture:x,isLoading:w,buffered:O,playbackRate:D,currentQuality:B,showControls:z,play:V,pause:Y,togglePlay:$,seek:H,setVolume:W,toggleMute:Q,toggleFullscreen:K,togglePictureInPicture:Z,setPlaybackRate:j,setQuality:q,formatTime:X,getProgressPercentage:J,getBufferedPercentage:ee}}({videoRef:X,containerRef:J,onPlay:D,onPause:k,onEnded:B,onTimeUpdate:P,onVolumeChange:z,onFullscreenChange:F,onError:U,playbackRates:$,quality:W});!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:X,canvasRef:ee,enabled:Q});const[we,Re]=i(!1),[Oe,Me]=i("quality"),[De,ke]=i((null==H||null===(s=H.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=X.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)}}),[X]);o((()=>{const e=X.current;if(e&&H){const t=()=>{setTimeout((()=>{const e=H.find((e=>e.default));e&&Ve(e.srcLang)}),100)},a=()=>{if(e.textTracks.length>0){const e=H.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)}}}),[H,Ve,X]),o((()=>{const e=()=>{if(ie&&te.current){const e=te.current.getBoundingClientRect();Pe({width:e.width,height:e.height})}else if(X.current){const e=X.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(X.current){const n=X.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,X,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:""} ${Q?ue.CLASSES.AMBIENT:""} ${K?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",...q,children:[Q&&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=>{X&&X.current!==e&&(X.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:H&&H.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})}),K&&e("div",{className:ue.CLASSES.GLASS_OVERLAY,children:e($e,{..."boolean"==typeof K?{}:K,style:{borderRadius:"inherit"},mouseContainer:J,displacementScale:30,blurAmount:0,saturation:100,aberrationIntensity:0,cornerRadius:ae,elasticity:0,children:!j&&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"}})})}),K&&j&&e("div",{className:ue.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:j}),S&&!ie&&t("div",{className:`${ue.CLASSES.CONTROLS} ${ve?ue.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:K?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:Le(le)}),e("span",{children:"/"}),e("span",{children:Le(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:[W&&W.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&&W&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:W.map((t=>e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${(null==ge?void 0:ge.label)===t.label?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Te(t),children:t.label},t.label)))}),"speed"===Oe&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:$.map((e=>t("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${pe===e?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>ye(e),children:[e,"x"]},e)))}),"subtitles"===Oe&&e("div",{className:ue.CLASSES.SETTINGS_OPTIONS,children:H&&H.length>0?t(a,{children:[e("button",{className:`${ue.CLASSES.SETTINGS_OPTION} ${null===De?ue.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ve(null),children:"Off"}),H.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(y,{size:20})}),V&&e("button",{className:ue.CLASSES.CONTROL_BUTTON,onClick:Ge,"aria-label":"Share video",children:e(T,{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?L:x,{size:20})})]})]})]})]})}));ts.displayName="VideoPlayer";var as=Object.freeze({__proto__:null,Accordion:He,AdvancedChart:Wr,AnimatedChart:Qr,AreaChart:Xr,AtomixGlass:$e,AtomixLogo:We,Avatar:Ze,AvatarGroup:je,Badge:Xe,BarChart:eo,Block:tt,Breadcrumb:at,BubbleChart:to,Button:it,Callout:Ar,CandlestickChart:ao,Card:br,Chart:Hr,ChartRenderer:Zr,Checkbox:Vo,ColorModeToggle:vo,Countdown:So,DataTable:To,DatePicker:Ro,DonutChart:no,Dropdown:Mo,EdgePanel:ko,Footer:El,FooterLink:bl,FooterSection:Al,FooterSocialLink:fl,Form:$o,FormGroup:Wo,FunnelChart:io,GaugeChart:ro,HeatmapChart:oo,Hero:Nl,Icon:Ke,Input:Ko,LineChart:qr,List:_l,Messages:Cl,Modal:yl,MultiAxisChart:lo,Nav:Tl,NavItem:Ll,Navbar:xl,Pagination:yo,PhotoViewer:Pl,PieChart:co,Popover:Fl,ProductReview:Yl,Progress:$l,RadarChart:uo,Radio:vl,Rating:Vl,RealTimeChart:ho,River:Hl,ScatterChart:mo,SectionIntro:Wl,Select:gl,SideMenu:Il,SideMenuItem:wl,SideMenuList:Rl,Slider:Ql,Spinner:Ao,Steps:Kl,Tab:Zl,Testimonial:jl,Textarea:Sl,Todo:ql,Toggle:Xl,Tooltip:Jl,TreemapChart:po,Upload:es,VideoPlayer:ts,WaterfallChart:go});const ns=pl,is=sl,rs=Object.freeze({__proto__:null}),os=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: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:K,FOOTER:ve,FORM:X,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:H,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:j,PHOTOVIEWER:{SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},POPOVER:B,PROGRESS:de,RADIO:te,RATING:Q,RIVER:Y,SECTION_INTRO:V,SELECT:ne,SIDE_MENU:W,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:q,TOGGLE:P,TOOLTIP:k,UPLOAD:$,VIDEO_PLAYER:ue,sliderConstants:he}),ls=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})}));ls.displayName="Grid";const ss=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})}));ss.displayName="GridCol";const cs=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})}));cs.displayName="Row";const ds=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[y,T]=i(c),[L,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)}),[y,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=()=>T(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*(y-1))/y;D.current=Array(y).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,y,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,y,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 $=D.current.length>0?Math.max(...D.current):0,H=["o-masonry-grid",s,A?"o-masonry-grid--animate":"",R?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:M,className:H,style:{position:"relative",width:"100%",height:`${$}px`,...C.style},...C,children:F.map(((t,a)=>{const n=L[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)}))})}));ds.displayName="MasonryGrid";const us=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})}));us.displayName="MasonryGridItem";const hs={...as,...Object.freeze({__proto__:null,Container:Je,Grid:ls,GridCol:ss,MasonryGrid:ds,MasonryGridItem:us,Row:cs}),composables:ns,utils:is,constants:os,types:rs};export{He as Accordion,Wr as AdvancedChart,Qr as AnimatedChart,Xr as AreaChart,$e as AtomixGlass,We as AtomixLogo,Ze as Avatar,je as AvatarGroup,Xe as Badge,eo as BarChart,tt as Block,at as Breadcrumb,to as BubbleChart,it as Button,Ar as Callout,ao as CandlestickChart,br as Card,Hr as Chart,Zr as ChartRenderer,Vo as Checkbox,vo as ColorModeToggle,Je as Container,So as Countdown,To as DataTable,Ro as DatePicker,no as DonutChart,Mo as Dropdown,ko as EdgePanel,El as Footer,bl as FooterLink,Al as FooterSection,fl as FooterSocialLink,$o as Form,Wo as FormGroup,io as FunnelChart,ro as GaugeChart,ls as Grid,ss as GridCol,oo as HeatmapChart,Nl as Hero,Ke as Icon,Ko as Input,qr as LineChart,_l as List,ds as MasonryGrid,us as MasonryGridItem,Cl as Messages,yl as Modal,lo as MultiAxisChart,Tl as Nav,Ll as NavItem,xl as Navbar,yo as Pagination,Pl as PhotoViewer,co as PieChart,Fl as Popover,Yl as ProductReview,$l as Progress,uo as RadarChart,vl as Radio,Vl as Rating,ho as RealTimeChart,Hl as River,cs as Row,mo as ScatterChart,Wl as SectionIntro,gl as Select,Il as SideMenu,wl as SideMenuItem,Rl as SideMenuList,Ql as Slider,Ao as Spinner,Kl as Steps,Zl as Tab,jl as Testimonial,Sl as Textarea,ql as Todo,Xl as Toggle,Jl as Tooltip,po as TreemapChart,es as Upload,ts as VideoPlayer,go as WaterfallChart,ns as composables,os as constants,hs as default,rs as types,is as utils};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|