@shohojdhara/atomix 0.3.7 → 0.3.9
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/CHANGELOG.md +19 -1
- package/dist/atomix.css +77 -0
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +77 -0
- package/dist/atomix.min.css.map +1 -1
- package/dist/charts.js.map +1 -1
- package/dist/core.js.map +1 -1
- package/dist/forms.js.map +1 -1
- package/dist/heavy.js.map +1 -1
- package/dist/index.d.ts +578 -515
- package/dist/index.esm.js +3150 -2632
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10485 -9973
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/theme.d.ts +237 -420
- package/dist/theme.js +1616 -1701
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DataTable/DataTable.stories.tsx +238 -0
- package/src/components/DataTable/DataTable.test.tsx +450 -0
- package/src/components/DataTable/DataTable.tsx +384 -61
- package/src/components/DatePicker/DatePicker.tsx +29 -38
- package/src/components/Upload/Upload.tsx +539 -40
- package/src/lib/composables/useDataTable.ts +355 -15
- package/src/lib/composables/useDatePicker.ts +19 -0
- package/src/lib/constants/components.ts +10 -0
- package/src/lib/theme/adapters/cssVariableMapper.ts +29 -14
- package/src/lib/theme/adapters/index.ts +1 -4
- package/src/lib/theme/config/configLoader.ts +53 -35
- package/src/lib/theme/core/composeTheme.ts +22 -30
- package/src/lib/theme/core/createTheme.ts +49 -26
- package/src/lib/theme/core/index.ts +0 -1
- package/src/lib/theme/generators/generateCSSNested.ts +4 -3
- package/src/lib/theme/generators/generateCSSVariables.ts +24 -16
- package/src/lib/theme/index.ts +10 -17
- package/src/lib/theme/runtime/ThemeApplicator.ts +6 -109
- package/src/lib/theme/runtime/ThemeErrorBoundary.tsx +3 -3
- package/src/lib/theme/runtime/ThemeProvider.tsx +205 -64
- package/src/lib/theme/runtime/useTheme.ts +1 -1
- package/src/lib/theme/runtime/useThemeTokens.ts +7 -16
- package/src/lib/theme/test/testTheme.ts +2 -1
- package/src/lib/theme/types.ts +14 -14
- package/src/lib/theme/utils/componentTheming.ts +35 -27
- package/src/lib/theme/utils/domUtils.ts +57 -15
- package/src/lib/theme/utils/injectCSS.ts +0 -1
- package/src/lib/theme/utils/themeHelpers.ts +1 -39
- package/src/lib/theme/utils/themeUtils.ts +1 -170
- package/src/lib/types/components.ts +145 -0
- package/src/lib/utils/dataTableExport.ts +143 -0
- package/src/styles/06-components/_components.data-table.scss +95 -0
- package/src/lib/hooks/useThemeTokens.ts +0 -105
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as r,useRef as o,useEffect as i,memo as s,forwardRef as l,useId as c,useMemo as d,useCallback as u,Children as h,isValidElement as m,cloneElement as p,createContext as g,useContext as f,useImperativeHandle as b,Component as S}from"react";import*as v from"@phosphor-icons/react";import{Pause as E,Play as y,SkipBack as N,SkipForward as A,SpeakerX as x,SpeakerHigh as _,Gear as T,Download as C,Share as L,ArrowsIn as I,ArrowsOut as w}from"@phosphor-icons/react";import{createPortal as O}from"react-dom";const R=["primary","secondary","success","info","warning","error","light","dark"],M=["sm","md","lg"],k={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},D={BUTTON_PREFIX:"btn",ICON_ELEMENT:"icon",LABEL_ELEMENT:"label",SPINNER_ELEMENT:"spinner"},B={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},P={BASE_CLASS:"c-btn-group",CLASSES:{BASE:"c-btn-group"}},z={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"}},U={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"}},F={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},G={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"}},V={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},H={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:"›"}},j={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"]}},Y={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",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},W={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}},K={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"}},Q={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}},q={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"}},X={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"},J={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"}},ee={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"}},te={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"}},ne={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"}},ae={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"}},re={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:"▶"}},oe={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"}},ie={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},se={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"},le={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"},ce={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},de={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"}},ue={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"}},he={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"}},me={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",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},pe={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"}},ge={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",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},fe={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"}},be={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"}},Se={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"}},ve={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"}},Ee={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}},ye={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"}},Ne={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)"}},Ae={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"}},xe={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}},_e={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"}},Te={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},Ce={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"}},Le=Ce,Ie={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"]}},we={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"}},Oe={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"}},Re={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,PHN2ZyB3aWR0aD0iMjcwIiBoZWlnaHQ9IjY5IiB2aWV3Qm94PSIwIDAgMjcwIDY5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxyYWRp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vcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNDA0MDQwIi8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiNjMGMwYzAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0MDQwNDAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3Byb21pbmVudCkiLz48L3N2Zz4="}},Me={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",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",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"}},ke={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:20,BLUR_AMOUNT:1,SATURATION:140,ABERRATION_INTENSITY:2.5,ELASTICITY:.05,CORNER_RADIUS:16,PADDING:"0 0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0},CONSTANTS:{ACTIVATION_ZONE:200,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200}}};function De(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,s]=r(t.defaultOpen||!1),l=n?t.isOpen:a,[c,d]=r(l?"auto":"0px"),u=o(null),h=o(null),m=()=>{if(h.current&&u.current){const e=l?h.current.clientHeight+"px":"0px";u.current.style.setProperty(U.CSS_VARS.PANEL_HEIGHT,e),d(e)}};return i((()=>{m()}),[l]),i((()=>{const e=()=>{l&&m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l]),{state:{isOpen:l,panelHeight:c},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!l):s((e=>!e)))},updatePanelHeight:m,panelRef:u,contentRef:h,generateClassNames:(e="")=>`c-accordion ${l?U.CLASSES.IS_OPEN:""} ${t.disabled?U.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:Be}=ke,Pe=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const n=e.x-t.x,a=e.y-t.y;return Math.sqrt(n*n+a*a)},ze=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},Ue=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/Be.MOUSE_INFLUENCE_DIVISOR;return Math.min(1.5,t)},Fe=e=>"number"!=typeof e||isNaN(e)?Be.MIN_BLUR:Math.max(Be.MIN_BLUR,Math.min(50,e)),Ge=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=Be.MAX_SIZE&&e.height<=Be.MAX_SIZE,Ve=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return Be.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?Be.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?Be.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?Be.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?Be.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const n=parseFloat(t);return isNaN(n)?Be.DEFAULT_CORNER_RADIUS:Math.max(0,n)},He=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?Ve(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=je(e.props.children);if(t>0&&t!==Be.DEFAULT_CORNER_RADIUS)return t}return null},je=e=>{if(!e)return Be.DEFAULT_CORNER_RADIUS;try{const t=a.Children.toArray(e);for(let e=0;e<t.length;e++){const n=t[e];if(a.isValidElement(n)){const e=He(n);if(null!==e)return e}}}catch(t){}return Be.DEFAULT_CORNER_RADIUS},Ye=(e,t,n,a,r)=>{switch(e){case"standard":default:return t;case"polar":return n;case"prominent":return a;case"shader":return r||t}},We=({id:n,displacementScale:a,aberrationIntensity:r,mode:o,shaderMapUrl:i,blurAmount:s})=>e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",suppressHydrationWarning:!0,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:Ye(o,"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wCEAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgHBwcHBwgLCAkJCQkICwsMDAwMDAsNDQ4ODQ0SEhISEhQUFBQUFBQUFBQBBQUFCAgIEAsLEBQODg4UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFP/CABEIAQABAAMBEQACEQEDEQH/xAAxAAEBAQEBAQAAAAAAAAAAAAADAgQIAQYBAQEBAQEBAQAAAAAAAAAAAAMCBAEACAf/2gAMAwEAA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SLpD0h6I0Q0I0A2IoBWBIJIBKBIJoJIJ2R2J0JWBUJ0JUB0XTv479dFZDYiglYigkhEgjZFQjRFQjRFQjQigFYigHYigmgEgmglYlYnQlQlYlQHQlQnQ9P/kf1yVkNiNCNkNiVENiNiViNEViNkVCVgKCViViViSCViSCVgdCViVCViVCdgVCVCdD1D+U/XBWQ2I0I2Q2JUQ2I0JWQ0I2JUQ2JUI2JUI2J0JWJWJWA2R0BWJ0I2JUJ2BUJUJ0P//EABkQAQEBAQEBAAAAAAAAAAAAAAECABEDEP/aAAgBAQABAgB1atWrVq1atWrVq1atWrVq1atWrVq1atWrVq+OrVq1atWrVq1atWrVq1atWrVq1atWrVq1atXxVppppppdWrVq1atWrVq1NNNNNNNNNNNPVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/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Q14e2Tgm5JUotvXOq1gn0NPBKued71nTgrrq47u4DENe/at5CXyBuxYiSwu1pnB8sjED3QIDn0+Oer7plgp4t3Z5tDrTvAt2jP6G5gG/VRvtnPlg2Xj5AmUgMmSoI66Eqp4iDjM9R5Tdp0Hb0KN1duIZ+bmbFGy8oje5GgM6KSbFKvxcUQbwIAJSWPRPUI0qAfsoBeg6wg34beqRT0qDBU6Ea44gLxZ9H58oho4ojVM1s0IcbqGFBmyQ+KVq+Rn9zuTr9ff+q++PaWy9IGkSgG7aYe/ePqBamIBu6xruTznWI5egLDnwxGs4/Ye97bpQhKZJqv7/7GfkgF+rEBGfCVWZCTPnOjwxnPWcyxAqtLMZanXyfSv/Hz46iWQl6ryEc6KdaQ3440BkBh1qeRon4sTqGC2liNQdGdUra0xL+H/kMAsbYr+iHAAAAAElFTkSuQmCC",i),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:a*("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:a*(("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:a*(("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",result:"ABERRATED_BLURRED",stdDeviation:s*r*.05}),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"})]})]})});We.displayName="GlassFilter";const Ke=s(We,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),$e=new Map,Qe=l((({children:n,className:a="",style:s,displacementScale:l=25,blurAmount:u=.0625,saturation:h=180,aberrationIntensity:m=2,mouseOffset:p={x:0,y:0},globalMousePosition:g={x:0,y:0},onMouseEnter:f,onMouseLeave:b,onMouseDown:S,onMouseUp:v,active:E=!1,isHovered:y=!1,isActive:N=!1,overLight:A=!1,cornerRadius:x=0,padding:_="0 0",glassSize:T={width:0,height:0},onClick:C,mode:L="standard",effectiveDisableEffects:I=!1,effectiveReducedMotion:w=!1,shaderVariant:O="liquidGlass",enableLiquidBlur:R=!1,elasticity:M=0,contentRef:k},D)=>{const B=c(),[P]=r((()=>"atomix-glass-filter-"+B.replace(/:/g,"-").replace(/^[^a-z]/i,"atomix-"))),[z,U]=r(""),F=o(null),G=o(null),V=o(null);i((()=>{"shader"===L?Promise.resolve().then((function(){return St})).then((e=>{G.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):G.current=null}),[L]),i((()=>{if("shader"===L&&T&&Ge(T)&&G.current){const e=`${T.width}x${T.height}-${O}`,t=(e=>{const t=$e.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void U(t);V.current&&clearTimeout(V.current);const n=()=>{if(G.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:n}=G.current;F.current?.destroy();const a=n[O]||n.liquidGlass;F.current=new t({width:T.width,height:T.height,fragment:a});const r=()=>{const t=F.current?.updateShader()||"";((e,t)=>{if($e.size>=15){const e=Array.from($e.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&$e.delete(t[0])}$e.set(e,{url:t,timestamp:Date.now()}),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||$e.size})(e,t),U(t)};"undefined"!=typeof requestIdleCallback?requestIdleCallback(r,{timeout:1e3}):setTimeout(r,0)}catch(t){U("")}else V.current=setTimeout(n,100)};V.current=setTimeout(n,300)}else U("");return()=>{V.current&&(clearTimeout(V.current),V.current=null);try{F.current?.destroy()}catch(e){}finally{F.current=null}}}),[L,T,O]);const[H,j]=r(null);i((()=>{if(!D||"function"==typeof D)return;const e=D.current;if(e)try{j(e.getBoundingClientRect())}catch(t){j(null)}}),[D,T]);const Y=d((()=>{const e={baseBlur:u,edgeBlur:1.25*u,centerBlur:1.1*u,flowBlur:1.2*u};if(!R||!H||!g||"number"!=typeof g.x||"number"!=typeof g.y||isNaN(g.x)||isNaN(g.y))return e;try{const e=ze(H),t=Pe(g,e),n=Math.sqrt(H.width*H.width+H.height*H.height)/2,a=Math.min(t/n,1),r=Ue(p),o=u+r*u*.4,i=o*(.8+.6*(1.5*a+.3*r)),s=o*(.3+.4*(.3*(1-a)+.2*r)),l=g.x-e.x,c=g.y-e.y,d=o*(.4+.6*(.5*Math.sin(Math.atan2(c,l)+r*Math.PI)+.5)),h=(y?1.2:1)*(N?1.4:1);return{baseBlur:Fe(o*h),edgeBlur:Fe(i*h),centerBlur:Fe(s*h),flowBlur:Fe(d*h)}}catch(t){return e}}),[R,u,g,p,y,N,H,s,T]),W=d((()=>{try{const e=h+20*(Y.baseBlur||0),t="number"!=typeof Y.baseBlur||isNaN(Y.baseBlur)?0:Y.baseBlur,n="number"!=typeof Y.edgeBlur||isNaN(Y.edgeBlur)?0:Y.edgeBlur,a="number"!=typeof Y.centerBlur||isNaN(Y.centerBlur)?0:Y.centerBlur,r="number"!=typeof Y.flowBlur||isNaN(Y.flowBlur)?0:Y.flowBlur,o=H?H.width*H.height:0;return!R||w||I||o>18e4?{backdropFilter:`blur(${Fe(Math.max(t,.8*n,1.1*a,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}:{backdropFilter:`${[`blur(${t}px)`,`blur(${n}px)`,`blur(${a}px)`,`blur(${r}px)`].join(" ")} saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}}catch(e){return{backdropFilter:`blur(${u}px) saturate(${h}%) contrast(1.05) brightness(1.05)`}}}),[P,Y,h,u,H,w,I,R]),K=d((()=>{try{const e=p&&"number"==typeof p.x&&!isNaN(p.x)?p.x:0,t=p&&"number"==typeof p.y&&!isNaN(p.y)?p.y:0;return{"--atomix-glass-container-width":""+T?.width,"--atomix-glass-container-height":""+T?.height,"--atomix-glass-container-padding":_||"0 0","--atomix-glass-container-radius":("number"!=typeof x||isNaN(x)?0:x)+"px","--atomix-glass-container-backdrop":W?.backdropFilter||"none","--atomix-glass-container-shadow":A?[`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","--atomix-glass-container-shadow-opacity":I?0:1,"--atomix-glass-container-bg":A?`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","--atomix-glass-container-text-shadow":A?"0px 2px 12px rgba(0, 0, 0, 0)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":A?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[T,_,x,W,p,A,I]);return e("div",{ref:D,className:`${ke.CONTAINER_CLASS} ${a} ${E?ke.CLASSES.ACTIVE:""} ${A?ke.CLASSES.OVER_LIGHT:""}`,style:{...s,...K},onClick:C,children:t("div",{className:ke.INNER_CLASS,style:{padding:"var(--atomix-glass-container-padding)",boxShadow:"var(--atomix-glass-container-box-shadow)"},onMouseEnter:f,onMouseLeave:b,onMouseDown:S,onMouseUp:v,children:[t("div",{className:ke.FILTER_CLASS,children:[e(Ke,{blurAmount:u,mode:L,id:P,displacementScale:"number"!=typeof l||isNaN(l)?0:l,aberrationIntensity:"number"!=typeof m||isNaN(m)?0:m,shaderMapUrl:z}),e("div",{className:ke.FILTER_OVERLAY_CLASS,suppressHydrationWarning:!0,style:{filter:`url(#${P})`,backdropFilter:"var(--atomix-glass-container-backdrop)",borderRadius:"var(--atomix-glass-container-radius)"}}),e("div",{className:ke.FILTER_SHADOW_CLASS,style:{boxShadow:"var(--atomix-glass-container-shadow)",opacity:"var(--atomix-glass-container-shadow-opacity)",background:"var(--atomix-glass-container-bg)",borderRadius:"var(--atomix-glass-container-radius)"}})]}),e("div",{ref:k,className:ke.CONTENT_CLASS,style:{position:"relative",textShadow:"var(--atomix-glass-container-text-shadow)",...M>0?{zIndex:100}:{}},children:n})]})})}));Qe.displayName="AtomixGlassContainer";const qe=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},{CONSTANTS:Ze}=ke,Xe=new WeakMap,Je=(e,t,n,a)=>{e&&Xe.set(e,{result:n,timestamp:Date.now(),config:t,threshold:a})};function et({glassRef:e,contentRef:t,cornerRadius:n,globalMousePosition:a,mouseOffset:s,mouseContainer:l,overLight:c=ke.DEFAULTS.OVER_LIGHT,reducedMotion:h=!1,highContrast:m=!1,disableEffects:p=!1,elasticity:g=.05,onClick:f,debugCornerRadius:b=!1,debugOverLight:S=!1,enablePerformanceMonitoring:v=!1,children:E}){const[y,N]=r(!1),[A,x]=r(!1),[_,T]=r({width:270,height:69}),[C,L]=r({x:0,y:0}),[I,w]=r({x:0,y:0}),[O,R]=r(Ze.DEFAULT_CORNER_RADIUS),[M,k]=r(!1),[D,B]=r(!1),[P,z]=r(!1),U=d((()=>Math.max(0,void 0!==n?n:O)),[n,O,b]),F=d((()=>h||M),[h,M]),G=d((()=>m||D),[m,D]),V=d((()=>p||F),[p,F]),H=d((()=>a||C),[a,C]),j=d((()=>s||I),[s,I]);i((()=>{const e=()=>{try{let e=null,n="default";if(t.current){const a=t.current.firstElementChild;if(a){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),n=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(n&&"0px"!==n&&"auto"!==n){const e=Ve(n);return e>0?e:null}return null}catch(t){return null}})(a);null!==t&&t>0&&(e=t,n="DOM element")}}if(null===e){const t=je(E);t>0&&t!==Ze.DEFAULT_CORNER_RADIUS&&(e=t,n="React children")}null!==e&&e>0?R(e):"undefined"==typeof process||process.env}catch(e){"undefined"==typeof process||process.env}};e();const n=setTimeout(e,100);return()=>clearTimeout(n)}),[E,b,t]),i((()=>{if(("auto"===c||"object"==typeof c&&null!==c)&&e.current){const t=e.current,n=((e,t)=>{if(!e)return null;const n=Xe.get(e);return n&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const n=e,a=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const o of r){const e=n[o],t=a[o];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(n.config,t)?(n.timestamp=Date.now(),n.result):null})(t.parentElement,c);if(null!==n)return void z(n);const a=setTimeout((()=>{try{if(!t)return void z(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void z(!1);let n=0,a=0,r=!1,o=t.parentElement,i=0;const s=20,l=10;for(;o&&l>a&&s>i;){try{const e=window.getComputedStyle(o);if(!e){o=o.parentElement,i++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),o=Number(e[1]),i=Number(e[2]);if(!isNaN(t)&&!isNaN(o)&&!isNaN(i)&&isFinite(t)&&isFinite(o)&&isFinite(i)&&t>=0&&255>=t&&o>=0&&255>=o&&i>=0&&255>=i&&(t>10||o>10||i>10)){const e=(.299*t+.587*o+.114*i)/255;!isNaN(e)&&isFinite(e)&&(n+=e,a++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(n+=.5,a++,r=!0)}catch(e){"undefined"==typeof process||process.env}if(!o)break;o=o.parentElement,i++}if(r&&a>0){const e=n/a;if(!isNaN(e)&&isFinite(e)){let n=.7;if("object"==typeof c&&null!==c){const e=c;if(void 0!==e.threshold){const t="number"==typeof e.threshold&&!isNaN(e.threshold)&&isFinite(e.threshold)?e.threshold:.7;n=Math.min(.9,Math.max(.1,t))}}const a=e>n;Je(t.parentElement,c,a,n),z(a)}else{const e=!1,n="object"==typeof c&&null!==c&&c.threshold||.7;Je(t.parentElement,c,e,n),z(e)}}else{const e=!1,n="object"==typeof c&&null!==c&&c.threshold||.7;Je(t.parentElement,c,e,n),z(e)}}catch(n){"undefined"==typeof process||process.env;const e=!1;if(t&&t.parentElement){const n="object"==typeof c&&null!==c&&c.threshold||.7;Je(t.parentElement,c,e,n)}z(e)}}),150);return()=>clearTimeout(a)}if("boolean"==typeof c&&z(!1),"function"==typeof window.matchMedia)try{const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");k(e.matches),B(t.matches);const n=e=>{k(e.matches)},a=e=>{B(e.matches)};return e.addEventListener?(e.addEventListener("change",n),t.addEventListener("change",a)):e.addListener&&(e.addListener(n),t.addListener(a)),()=>{try{e.removeEventListener?(e.removeEventListener("change",n),t.removeEventListener("change",a)):e.removeListener&&(e.removeListener(n),t.removeListener(a))}catch(r){}}}catch(t){return}}),[c,e,S]);const Y=o(null),W=o(null),K=u((t=>{if(a&&s)return;if(V)return;const n=l?.current||e.current;if(!n)return;v&&performance.now();let r=Y.current;if(r&&0!==r.width&&0!==r.height||(r=n.getBoundingClientRect(),Y.current=r),0===r.width||0===r.height)return;const o=ze(r),i={x:(t.x-o.x)/r.width*100,y:(t.y-o.y)/r.height*100};w(i),L(t),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||!v||performance.now()}),[l,e,a,s,V,v]);i((()=>{if(a&&s)return;if(V)return;const t=qe.subscribe(K),n=l?.current||e.current;let r=null;return n&&"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{null!==W.current&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame((()=>{const t=l?.current||e.current;t&&(Y.current=t.getBoundingClientRect()),W.current=null}))})),r.observe(n)),()=>{t(),null!==W.current&&(cancelAnimationFrame(W.current),W.current=null),r&&r.disconnect()}}),[K,l,e,a,s,V]);const $=u((()=>{if(!(H.x&&H.y&&e.current&&Ge(_)))return"scale(1)";const t=e.current.getBoundingClientRect(),n=ze(t),a=H.x-n.x,r=H.y-n.y,o=Math.max(0,Math.abs(a)-_.width/2),i=Math.max(0,Math.abs(r)-_.height/2),s=Pe({x:o,y:i},{x:0,y:0});if(s>Ze.ACTIVATION_ZONE)return"scale(1)";const l=1-s/Ze.ACTIVATION_ZONE,c=Pe(H,n);if(0===c)return"scale(1)";const d=a/c,u=r/c,h=Math.min(c/300,1)*g*l,m=1+Math.abs(d)*h*.3-Math.abs(u)*h*.15,p=1+Math.abs(u)*h*.3-Math.abs(d)*h*.15;return`scaleX(${Math.max(.8,m)}) scaleY(${Math.max(.8,p)})`}),[H,g,_,e]),Q=u((()=>{if(!(H.x&&H.y&&e.current&&Ge(_)))return 0;const t=e.current.getBoundingClientRect(),n=ze(t),a=Math.max(0,Math.abs(H.x-n.x)-_.width/2),r=Math.max(0,Math.abs(H.y-n.y)-_.height/2),o=Pe({x:a,y:r},{x:0,y:0});return o>Ze.ACTIVATION_ZONE?0:1-o/Ze.ACTIVATION_ZONE}),[H,_,e]),q=u((()=>{if(!e.current)return{x:0,y:0};const t=Q(),n=e.current.getBoundingClientRect(),a=ze(n);return{x:(H.x-a.x)*g*.1*t,y:(H.y-a.y)*g*.1*t}}),[H,g,Q,e]),Z=d((()=>V?{x:0,y:0}:q()),[q,V]),X=d((()=>V?"scale(1)":$()),[$,V]),J=d((()=>V?A&&f?"scale(0.98)":"scale(1)":`translate(${Z.x}px, ${Z.y}px) ${A&&f?"scale(0.96)":X}`),[Z,A,f,X,V]);i((()=>{const t=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let n=null,a={width:0,height:0},r=U;const o=(o=!1)=>{null!==n&&cancelAnimationFrame(n),n=requestAnimationFrame((()=>{if(!t(e.current))return void(n=null);const i=e.current.getBoundingClientRect();if(0>=i.width||0>=i.height)return void(n=null);const s={width:Math.round(i.width),height:Math.round(i.height)},l=r!==U,c=Math.abs(s.width-a.width)>1||Math.abs(s.height-a.height)>1;var d;(o||l||c)&&Ge(d=s)&&d.width<=Ze.MAX_SIZE&&d.height<=Ze.MAX_SIZE&&(a=s,r=U,T(s)),n=null}))};let i=null;const s=()=>{i&&clearTimeout(i),i=setTimeout((()=>o(!1)),16)},l=setTimeout((()=>o(!0)),0);let c=null,d=null;if("undefined"!=typeof ResizeObserver&&t(e.current))try{c=new ResizeObserver((t=>{for(const n of t)if(n.target===e.current){e.current&&(Y.current=e.current.getBoundingClientRect()),d&&clearTimeout(d),d=setTimeout((()=>o(!1)),16);break}})),c.observe(e.current)}catch(u){}return window.addEventListener("resize",s,{passive:!0}),()=>{clearTimeout(l),null!==n&&cancelAnimationFrame(n),i&&clearTimeout(i),d&&clearTimeout(d),window.removeEventListener("resize",s),c?.disconnect()}}),[U,e]);const ee=u((()=>"boolean"==typeof c?c:("auto"===c||"object"==typeof c&&null!==c)&&P),[c,P]),te=u(((e,t,n,a)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?a:Math.min(n,Math.max(t,e))),[]),ne=d((()=>{const e=ee(),t=Ue(j),n=y?1.4:1,a=A?1.6:1,r={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*n*a)):0,contrast:Math.min(1.8,Math.max(1,1.4+.3*t)),brightness:Math.min(1.2,Math.max(.7,.85+.15*t)),saturationBoost:Math.min(2,Math.max(1,1.3+.4*t)),shadowIntensity:Math.min(1.5,Math.max(.5,.9+.5*t)),borderOpacity:Math.min(1,Math.max(.3,.7+.3*t))};if("object"==typeof c&&null!==c){const e=c,o=te(e.threshold,.1,1,r.threshold),i=te(e.opacity,.1,1,r.opacity),s=te(e.contrast,.5,2.5,r.contrast),l=te(e.brightness,.5,2,r.brightness),d=te(e.saturationBoost,.5,3,r.saturationBoost),u={...r,threshold:o,opacity:i*n*a,contrast:s+.3*t,brightness:l+.15*t,saturationBoost:d+.4*t};return"undefined"==typeof process||process.env,u}return"undefined"==typeof process||process.env,r}),[c,ee,j,y,A,te,S]),ae=u((()=>N(!0)),[]),re=u((()=>N(!1)),[]),oe=u((()=>x(!0)),[]),ie=u((()=>x(!1)),[]),se=u((e=>{!f||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}),[f]),le=u((e=>{}),[]);return{isHovered:y,isActive:A,glassSize:_,dynamicCornerRadius:O,effectiveCornerRadius:U,effectiveReducedMotion:F,effectiveHighContrast:G,effectiveDisableEffects:V,detectedOverLight:P,globalMousePosition:H,mouseOffset:j,overLightConfig:ne,elasticTranslation:Z,directionalScale:X,transformStyle:J,handleMouseEnter:ae,handleMouseLeave:re,handleMouseDown:oe,handleMouseUp:ie,handleMouseMove:le,handleKeyDown:se}}function tt({children:a,displacementScale:r=ke.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:i=ke.DEFAULTS.BLUR_AMOUNT,saturation:s=ke.DEFAULTS.SATURATION,aberrationIntensity:l=ke.DEFAULTS.ABERRATION_INTENSITY,elasticity:c=ke.DEFAULTS.ELASTICITY,cornerRadius:d,globalMousePosition:u,mouseOffset:h,mouseContainer:m=null,className:p="",padding:g=ke.DEFAULTS.PADDING,overLight:f=ke.DEFAULTS.OVER_LIGHT,style:b={},mode:S=ke.DEFAULTS.MODE,onClick:v,shaderVariant:E="liquidGlass","aria-label":y,"aria-describedby":N,role:A,tabIndex:x,reducedMotion:_=!1,highContrast:T=!1,disableEffects:C=!1,enableLiquidBlur:L=!1,enableBorderEffect:I=!0,enableOverLightLayers:w=ke.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,enablePerformanceMonitoring:O=!1,debugCornerRadius:R=!1,debugOverLight:M=!1}){const k=o(null),D=o(null),{isHovered:B,isActive:P,glassSize:z,effectiveCornerRadius:U,effectiveReducedMotion:F,effectiveHighContrast:G,effectiveDisableEffects:V,overLightConfig:H,globalMousePosition:j,mouseOffset:Y,transformStyle:W,handleMouseEnter:K,handleMouseLeave:$,handleMouseDown:Q,handleMouseUp:q,handleKeyDown:Z}=et({glassRef:k,contentRef:D,cornerRadius:d,globalMousePosition:u,mouseOffset:h,mouseContainer:m,overLight:f,reducedMotion:_,highContrast:T,disableEffects:C,elasticity:c,onClick:v,debugCornerRadius:R,debugOverLight:M,enablePerformanceMonitoring:O,children:a}),X=H.isOverLight,J=w&&X,ee={...b,...0!==c&&!V&&{transform:W}},te=[ke.BASE_CLASS,F&&ke.BASE_CLASS+"--reduced-motion",G&&ke.BASE_CLASS+"--high-contrast",V&&ke.BASE_CLASS+"--disabled-effects",p].filter(Boolean).join(" "),ne={position:b.position||"absolute",top:b.top||0,left:b.left||0},ae={width:"fixed"!==b.position?"100%":b.width?b.width:Math.max(z.width,0),height:"fixed"!==b.position?"100%":b.height?b.height:Math.max(z.height,0)},re=Y.x,oe=Y.y,ie=ke.CONSTANTS.GRADIENT,se=ie.BASE_ANGLE+re*ie.ANGLE_MULTIPLIER,le=Math.max(ie.BORDER_STOP_1.MIN,ie.BORDER_STOP_1.BASE+oe*ie.BORDER_STOP_1.MULTIPLIER),ce=Math.min(ie.BORDER_STOP_2.MAX,ie.BORDER_STOP_2.BASE+oe*ie.BORDER_STOP_2.MULTIPLIER),de=ie.BORDER_OPACITY.BASE_1+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_LOW,ue=ie.BORDER_OPACITY.BASE_2+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_HIGH,he=ie.BORDER_OPACITY.BASE_3+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_LOW,me=ie.BORDER_OPACITY.BASE_4+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_HIGH,pe=ie.CENTER_POSITION+re/ie.HOVER_POSITION.DIVISOR_1,ge=ie.CENTER_POSITION+oe/ie.HOVER_POSITION.DIVISOR_1,fe=ie.CENTER_POSITION+re/ie.HOVER_POSITION.DIVISOR_2,be=ie.CENTER_POSITION+oe/ie.HOVER_POSITION.DIVISOR_2,Se=ie.CENTER_POSITION+re*ie.HOVER_POSITION.MULTIPLIER_3,ve=ie.CENTER_POSITION+oe*ie.HOVER_POSITION.MULTIPLIER_3,Ee=ie.CENTER_POSITION+re*ie.BASE_LAYER_MULTIPLIER,ye=ie.CENTER_POSITION+oe*ie.BASE_LAYER_MULTIPLIER,Ne=H.opacity,Ae={hover1:B||P?.5:0,hover2:P?.5:0,hover3:B?.4:P?.8:0,base:X?Ne||.4:0,over:X?1.1*(Ne||.4):0},xe="255, 255, 255",_e="0, 0, 0",Te={"--atomix-glass-radius":U+"px","--atomix-glass-transform":W||"none","--atomix-glass-position":ne.position,"--atomix-glass-top":"fixed"!==ne.top?ne.top+"px":"0","--atomix-glass-left":"fixed"!==ne.left?ne.left+"px":"0","--atomix-glass-width":"fixed"!==b.position?ae.width:ae.width+"px","--atomix-glass-height":"fixed"!==b.position?ae.height:ae.height+"px","--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.09375rem)","--atomix-glass-blend-mode":X?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${se}deg, rgba(${xe}, 0) 0%, rgba(${xe}, ${de}) ${le}%, rgba(${xe}, ${ue}) ${ce}%, rgba(${xe}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${se}deg, rgba(${xe}, 0) 0%, rgba(${xe}, ${he}) ${le}%, rgba(${xe}, ${me}) ${ce}%, rgba(${xe}, 0) 100%)`,"--atomix-glass-hover-1-opacity":Ae.hover1,"--atomix-glass-hover-1-gradient":X?`radial-gradient(circle at ${pe}% ${ge}%, rgba(${_e}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${_e}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${_e}, 0) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${pe}% ${ge}%, rgba(${xe}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${xe}, 0) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":Ae.hover2,"--atomix-glass-hover-2-gradient":X?`radial-gradient(circle at ${fe}% ${be}%, rgba(${_e}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${_e}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${_e}, 0) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${fe}% ${be}%, rgba(${xe}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${xe}, 0) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":Ae.hover3,"--atomix-glass-hover-3-gradient":X?`radial-gradient(circle at ${Se}% ${ve}%, rgba(${_e}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${_e}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${_e}, 0) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${Se}% ${ve}%, rgba(${xe}, ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${xe}, 0) ${ke.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":Ae.base,"--atomix-glass-base-gradient":X?`linear-gradient(${ke.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${_e}, ${ke.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+re*ke.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${_e}, ${ke.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+oe*ke.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${ke.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${_e}, ${ke.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+Math.abs(re)*ke.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${xe}, ${ke.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":Ae.over,"--atomix-glass-overlay-gradient":X?`radial-gradient(circle at ${Ee}% ${ye}%, rgba(${_e}, ${ke.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+Math.abs(re)*ke.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${_e}, ${ke.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${ke.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${_e}, ${ke.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+Math.abs(oe)*ke.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${xe}, ${ke.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`};return t("div",{className:te,style:Te,role:A||(v?"button":void 0),tabIndex:v?x??0:x,"aria-label":y,"aria-describedby":N,"aria-disabled":!(!v||!V)||!v&&void 0,"aria-pressed":!(!v||!P)||!v&&void 0,onKeyDown:v?Z:void 0,children:[e(Qe,{ref:k,contentRef:D,className:p,style:ee,cornerRadius:U,displacementScale:V?0:"shader"===S?r*ke.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:H.isOverLight?r*ke.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:r,blurAmount:V?0:i,saturation:G?ke.CONSTANTS.SATURATION.HIGH_CONTRAST:H.isOverLight?s*H.saturationBoost:s,aberrationIntensity:V?0:"shader"===S?l*ke.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:l,glassSize:z,padding:g,mouseOffset:V?{x:0,y:0}:Y,globalMousePosition:V?{x:0,y:0}:j,onMouseEnter:K,onMouseLeave:$,onMouseDown:Q,onMouseUp:q,active:P,isHovered:B,isActive:P,overLight:H.isOverLight,onClick:v,mode:S,transform:ee.transform,effectiveDisableEffects:V,effectiveReducedMotion:F,shaderVariant:E,elasticity:c,enableLiquidBlur:L,children:a}),!!v&&t(n,{children:[e("div",{className:ke.HOVER_1_CLASS}),e("div",{className:ke.HOVER_2_CLASS}),e("div",{className:ke.HOVER_3_CLASS})]}),e("div",{className:[ke.BACKGROUND_LAYER_CLASS,ke.BACKGROUND_LAYER_DARK_CLASS,X?ke.BACKGROUND_LAYER_OVER_LIGHT_CLASS:ke.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...ne,height:ae.height,width:ae.width,borderRadius:U+"px",transform:ee.transform}}),e("div",{className:[ke.BACKGROUND_LAYER_CLASS,ke.BACKGROUND_LAYER_BLACK_CLASS,X?ke.BACKGROUND_LAYER_OVER_LIGHT_CLASS:ke.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...ne,height:ae.height,width:ae.width,borderRadius:U+"px",transform:ee.transform}}),J&&t(n,{children:[e("div",{className:ke.BASE_LAYER_CLASS}),e("div",{className:ke.OVERLAY_LAYER_CLASS}),e("div",{className:ke.OVERLAY_HIGHLIGHT_CLASS,style:{opacity:Ae.over*ke.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,background:`radial-gradient(circle at ${ke.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${ke.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${ke.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${ke.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}})]}),I&&t(n,{children:[e("span",{className:ke.BORDER_1_CLASS}),e("span",{className:ke.BORDER_2_CLASS})]})]})}const nt=s((({title:n,children:a,defaultOpen:r=!1,isOpen:o,onOpenChange:i,disabled:s=!1,iconPosition:l="right",icon:d,className:u="",style:h,glass:m})=>{const p=c(),g="accordion-header-"+p,f="accordion-panel-"+p,{state:b,toggle:S,updatePanelHeight:v,panelRef:E,contentRef:y,generateClassNames:N,generateHeaderClassNames:A}=De({defaultOpen:r,disabled:s,iconPosition:l,isOpen:o,onOpenChange:i}),x=e("i",{className:"c-accordion__icon","aria-hidden":"true",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","aria-hidden":"true",focusable:"false",children:e("polyline",{points:"6 9 12 15 18 9"})})}),_=t("div",{className:N(u)+(m?" c-accordion--glass":""),style:h,children:[t("button",{id:g,className:A(),onClick:S,"aria-expanded":b.isOpen,"aria-controls":f,"aria-disabled":s,disabled:s,type:"button",children:[e("span",{className:"c-accordion__title",children:n}),d||x]}),e("div",{id:f,className:U.SELECTORS.PANEL.replace(".",""),ref:E,role:"region","aria-labelledby":g,children:e("div",{className:U.SELECTORS.BODY.replace(".",""),ref:y,children:a})})]});if(m){const t={displacementScale:20,elasticity:0},n=!0===m?t:{...t,...m};return e(tt,{...n,children:_})}return _}));nt.displayName="Accordion";const at=({height:n=24,width:a=24,color:r="currentColor",...o})=>t("svg",{width:a,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})]}),rt=8e-4,ot=4096,it=(e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)return 0;const a=Math.max(0,Math.min(1,(n-e)/(t-e)));return a*a*(3-2*a)},st=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(Math.abs(e),Math.abs(t));if(0===n)return 0;const a=e/n,r=t/n;return n*Math.sqrt(a*a+r*r)},lt=(e,t,n,a,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r)return 0;const o=Math.abs(e)-n+r,i=Math.abs(t)-a+r;return Math.min(Math.max(o,i),0)+st(Math.max(o,0),Math.max(i,0))-r},ct=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),dt=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),ut=(e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)?t:isNaN(t)?0:isNaN(n)?1:Math.max(t,Math.min(n,e)),ht=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},mt=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),pt=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),o=t-Math.floor(t),i=ht(r),s=ht(o),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const n=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return n-Math.floor(n)},c=l(n,a),d=l(n+1,a),u=l(n,a+1),h=c+i*(d-c);return h+s*(u+i*(l(n+1,a+1)-u)-h)},gt=(e,t,n=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(1,Math.min(8,Math.floor(n)));let r=0,o=.5,i=1;for(let s=0;a>s;s++)r+=o*pt(e*i,t*i),i*=2,o*=.5;return r},ft=(e,t,n,a=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(r))return{x:0,y:0};const o=Math.min(.02*n,.1);return{x:(e-a)*o,y:(t-r)*o}},bt={liquidGlass:(e,t)=>{if(!dt(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*rt,o=t&&dt(t)?t.x-.5:0,i=t&&dt(t)?t.y-.5:0,s=st(o,i),l=mt(1-Math.min(2*s,1)),c=gt(12*(n+.5*o)+r,12*(a+.5*i)+.7*r,3)-.5,d=lt(n,a,.4,.3,.35),u=it(.8,0,d-.05),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=st(e,t),r=Math.pow(Math.min(a,10),2)*n;return{x:e*(1+r),y:t*(1+r)}})(n,a,.4*.1),m=1.2*(h.x-n)*u,p=1.2*(h.y-a)*u,g=.018*Math.sin(8*(n+2*o)+2*r),f=.018*Math.cos(8*(a+2*i)+1.5*r),b=(.015*Math.sin(12*(n-o)+12*(a-i)+3*r)+.012*Math.cos(10*(n+o)-10*(a-i)-2*r))*l*s,S=(Math.sin(15*n+r)*Math.cos(15*a-r)*.008+Math.sin(20*n-.5*r)*Math.cos(20*a+.5*r)*.006)*u,v=.85*(g+f+.025*c),E=m+v+b+S,y=p+.8*v+.9*b+S,N=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=st(e,t);if(0===a)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*a*n,y:Math.sin(r)*a*n}})(n,a,.015*u),A=it(0,1,1.15*u),x=n+E+.5*N.x,_=a+y+.5*N.y;return ct(ut(x*A+.5,0,1),ut(_*A+.5,0,1))},appleFluid:(e,t)=>{if(!dt(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*rt*.6,o=t&&dt(t)?t.x-.5:0,i=t&&dt(t)?t.y-.5:0,s=st(o,i),l=mt(1-Math.min(1.5*s,1)),c=gt(10*(n+.3*o)+r,10*(a+.3*i),5)-.5,d=gt(10*(n-.3*o),10*(a-.3*i)+.8*r,5)-.5,u=lt(n,a,.42,.32,.38),h=it(.85,-.1,u),m=Math.sin(6*n+2*r)*Math.cos(4*a-r)*.025,p=Math.cos(4*n-r)*Math.sin(6*a+2*r)*.025,g=Math.atan2(a-i,n-o),f=l*s*.08,b=Math.cos(g+r)*f,S=a+(.035*d+p+Math.sin(g+r)*f)*h;return ct(ut(n+(.035*c+m+b)*h+.5,0,1),ut(S+.5,0,1))},premiumGlass:(e,t)=>{if(!dt(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*rt*.4,o=t&&dt(t)?t.x-.5:0,i=t&&dt(t)?t.y-.5:0,s=st(o,i),l=st(n,a),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(a,n);let u=0,h=0;for(let v=0;3>v;v++){const e=5*(v+1),t=r*(1+.3*v),o=.01/(v+1);u+=Math.sin(n*e+t)*o,h+=Math.cos(a*e-t)*o}const m=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=gt(8*n+r,8*a-r,2)-.5,f=lt(n,a,.43,.33,.36),b=it(.9,-.05,f),S=a+(p+h+.015*g)*b;return ct(ut(n+(m+u+.015*g)*b+.5,0,1),ut(S+.5,0,1))},liquidMetal:(e,t)=>{if(!dt(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*rt*1.2,o=t&&dt(t)?t.x-.5:0,i=t&&dt(t)?t.y-.5:0,s=Math.sin(20*n+4*r)*Math.cos(15*a-3*r)*.02,l=Math.cos(15*n-2*r)*Math.sin(20*a+5*r)*.015,c=.025*gt(25*n+2*r,25*a-2*r,4),d=Math.atan2(a-i,n-o),u=st(n-o,a-i),h=.02*Math.sin(15*u-6*r)*mt(1-Math.min(2*u,1)),m=lt(n,a,.41,.31,.37),p=it(.88,-.08,m),g=n+(s+c+Math.cos(d)*h)*p,f=a+(l+.8*c+Math.sin(d)*h)*p;return ct(ut(g+.5,0,1),ut(f+.5,0,1))},basiBasi:(e,t)=>{if(!dt(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*rt*.5,o=t&&dt(t)?t.x-.5:0,i=t&&dt(t)?t.y-.5:0,s=st(o,i),l=mt(1-Math.min(1.2*s,1)),c=((e,t,n,a=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)?.5:.5*(Math.sin(8*e+2*n)*Math.cos(8*t-2*n)*.5+Math.sin(8*(e+.5)*1.3-2*n*.8)*Math.cos(8*(t-.3)*1.3+2*n*.8)*.3+Math.sin(8*(e-.3)*.7+2*n*1.2)*Math.cos(8*(t+.4)*.7-2*n*1.2)*.2+1)*a)(n,a,r,.8),d=.02*(c-.5),u=Math.atan2(a,n),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const a=st(e,t),r=Math.min(.025*a,1),o=.8*r,i=1*r,s=1.2*r;return{r:{x:Math.cos(n)*o,y:Math.sin(n)*o},g:{x:Math.cos(n)*i,y:Math.sin(n)*i},b:{x:Math.cos(n)*s,y:Math.sin(n)*s}}})(n,a,u),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,f=0;for(let j=0;7>j;j++){const e=ft(n,a,(j+1)/7,o,i),t=gt((n+e.x)*(8+2*j)+r*(.5+.1*j),(a+e.y)*(8+2*j)-r*(.5+.1*j),3)-.5,s=1/(j+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const b=((e,t,n,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(a)?.5:gt(5*e+.5*a,5*t-.5*a,3)*Math.exp(-1)*.5+.5)(n,a,0,r),S=Math.cos(u)*b*.015,v=Math.sin(u)*b*.015,E=((e,t,n,a=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))return 0;const r=Math.max(1,Math.min(8,Math.floor(a)));let o=0,i=1,s=1;for(let l=0;r>l;l++)o+=Math.abs(pt(e*s+n,t*s-n))*i,s*=2,i*=.5;return o})(6*n,6*a,r,6),y=.012*Math.cos(E*Math.PI*2),N=.012*Math.sin(E*Math.PI*2),A=((e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)?.5:.5*(.7*gt(40*e+.3*n,40*t-.3*n,6)+.3*gt(80*e,80*t,4)))(n,a,r),x=.008*(A-.5),_=.008*(A-.5),T=st(n,a),C=.35*Math.pow(Math.min(T,1),1.8)*(1+l*s*.8),L=Math.cos(u)*C,I=Math.sin(u)*C,w=Math.atan2(a-i,n-o),O=st(n-o,a-i),R=l*Math.sin(10*O-3*r)*.025,M=Math.cos(w+2*r)*R,k=Math.sin(w+2*r)*R,D=Math.sin(10*n+5*o+2.5*r)*Math.cos(8*a-2*r)*.018,B=Math.cos(8*n-2*r)*Math.sin(10*a+5*i+2.5*r)*.018,P=(.012*Math.sin(15*Math.min(T,10)-4*r)+.008*Math.cos(20*Math.min(T,10)+3*r))*l,z=Math.cos(u)*P,U=Math.sin(u)*P,F=lt(n,a,.44,.34,.39),G=it(.92,-.12,F),V=it(.85,.1,F),H=a+(1.2*I+.8*p+1.5*f+.9*v+1*N+.6*_+1.3*k+1.1*B+.7*U+.8*d)*G*V*.85;return ct(ut(n+(1.2*L+.8*m+1.5*g+.9*S+1*y+.6*x+1.3*M+1.1*D+.7*z+d)*G*V*.85+.5,0,1),ut(H+.5,0,1))}};var St=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(ot,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(ot,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=ot&&"number"==typeof e.height&&e.height>0&&e.height<=ot&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,n=this.options.height*this.canvasDPI;let a=0;const r=[];for(let l=0;n>l;l++)for(let o=0;t>o;o++){const i={x:o/t,y:l/n},s=this.options.fragment(i,e);let c=s.x*t-o,d=s.y*n-l;const u=Math.min(2*Math.min(o/t,(t-o)/t),2*Math.min(l/n,(n-l)/n));c*=it(0,.2,u),d*=it(0,.2,u),a=Math.max(a,Math.abs(c),Math.abs(d)),r.push(c,d)}a=Math.max(a,1);const o=this.context.createImageData(t,n),i=o.data;let s=0;for(let e=0;n>e;e++)for(let o=0;t>o;o++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(o,e,t-o-1,n-e-1)/2),u=l*d/a+.5,h=c*d/a+.5,m=4*(e*t+o);i[m]=ut(255*u,0,255),i[m+1]=ut(255*h,0,255),i[m+2]=ut(255*h,0,255),i[m+3]=255}return this.context.putImageData(o,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},fragmentShaders:bt});const vt={xs:16,sm:20,md:24,lg:32,xl:40},Et=({name:t,size:n="md",weight:a="regular",color:r,className:o="",style:i,alt:s})=>{const l=v[t];return l?e("span",{className:`c-icon c-icon--${n} ${o}`,style:i,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof n?vt[n]||24:n,weight:a,color:r,"aria-label":s})}):null};Et.displayName="Icon";const yt=s((({src:t,alt:n="Avatar",initials:a,icon:o,size:i="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:u,glass:h})=>{const[m,p]=r(!1),g=[Se.CLASSES.BASE,"md"!==i&&"c-avatar--"+i,s&&Se.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return e("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:u,children:t&&!m?e("img",{src:t,alt:n,className:"c-avatar__image",onError:()=>{p(!0)}}):e("span",a?{className:"c-avatar__initials",children:a}:o?{className:"c-avatar__icon",children:o}:{className:"c-avatar__icon",children:e(Et,{name:"User",size:"xs"===i?"xs":"sm"===i?"sm":"md"})})})}));yt.displayName="Avatar";const Nt=({children:n,max:a,stacked:r=!1,className:o="",style:i,moreText:s})=>{const l=[ve.CLASSES.BASE,r&&ve.CLASSES.STACKED,o].filter(Boolean).join(" "),c=h.toArray(n).filter((e=>m(e)&&e.type===yt)),d=void 0!==a&&c.length>a,u=d?c.slice(0,a):c,g=c.length-(a||0),f=m(c[0])?c[0].props:null,b=f?.size||"md",S=f?.circle||!1,v=[Se.CLASSES.BASE,ve.CLASSES.MORE,"md"!==b&&"c-avatar--"+b,S&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:l,style:i,children:[u.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null)),d&&e("div",{className:v,children:s||"+"+g})]})};function At(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,className:o=""}=e;return`${F.BASE_CLASS} ${n?`${F.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${F.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${o}`.trim()}}}Nt.displayName="AvatarGroup";const xt=s((({label:n,variant:a="primary",size:r="md",disabled:i=!1,icon:s,className:l="",glass:c,style:d})=>{const{generateBadgeClass:u}=At({variant:a,size:r,disabled:i}),h=o(null),m=u({variant:a,size:r,disabled:i,className:`${l} ${c?"c-badge--glass":""}`.trim()}),p=t("span",{className:m,"aria-disabled":i,ref:h,style:d,children:[s&&e("span",{className:F.ICON_CLASS,children:s}),e("span",{children:n})]});if(c){const t={displacementScale:20,cornerRadius:h.current?.getBoundingClientRect().width?h.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},n=!0===c?t:{...t,...c};return e(tt,{...n,children:p})}return p}));xt.displayName="Badge";const _t=l((({children:t,className:n="",type:a,...r},o)=>{let i="o-container";return a&&(i="o-container-"+a),e("div",{ref:o,className:`${i} ${n}`.trim(),...r,children:t})}));_t.displayName="Container";const Tt=()=>({generateBlockClass:({spacing:e=Oe.SPACING.DEFAULT,background:t="",fullWidth:n=!1,className:a=""})=>{const r=[Oe.BASE_CLASS];if(e&&"none"!==e&&r.push(`${Oe.SPACING_PREFIX}${e}`),t){const e=Oe.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return n&&r.push(Oe.CLASSES.FULL_WIDTH),a&&r.push(a),r.filter(Boolean).join(" ")}}),Ct=l((({children:t,as:n="section",spacing:a="md",container:r={},fullWidth:o=!1,className:i="",style:s,background:l="",...c},d)=>{const{generateBlockClass:u}=Tt(),h=u({spacing:a,background:l,fullWidth:o,className:i});return e(n,{ref:d,className:h,style:s,...c,children:o?t:e(_t,{type:r.type,className:r.className,children:t})})}));Ct.displayName="Block";const Lt=s((({items:a,divider:r,className:o="",ariaLabel:i="Breadcrumb",LinkComponent:s,style:l})=>{const c=[H.CLASSES.BASE,o].filter(Boolean).join(" ");return e("nav",{"aria-label":i,style:l,children:e("ol",{className:c,children:a.map(((r,o)=>{const i=o===a.length-1,l=[H.CLASSES.ITEM,r.active||i?H.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(n,{children:[r.icon&&e("span",{className:"c-breadcrumb__icon",children:r.icon}),r.label]}),d={href:r.href,className:H.CLASSES.LINK,onClick:r.onClick,style:r.style};return e("li",{className:l,style:r.style,children:r.href&&!r.active?e(s||"a",{...d,children:c}):e("span",{className:H.CLASSES.LINK,children:c})},o)}))})})}));function It(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,loading:!1,fullWidth:!1,block:!1,active:!1,selected:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,rounded:o=t.rounded,iconOnly:i=!1,glass:s=t.glass,loading:l=t.loading,fullWidth:c=t.fullWidth,block:d=t.block,active:u=t.active,selected:h=t.selected,className:m=""}=e,p="md"===a?"":"c-btn--"+a,g=i?"c-btn--icon":"",f=o?"c-btn--rounded":"",b=r?"c-btn--disabled":"",S=s?"c-btn--glass":"",v=l?B.CLASSES.LOADING:"",E=c?B.CLASSES.FULL_WIDTH:"",y=d?B.CLASSES.BLOCK:"",N=u?B.CLASSES.ACTIVE:"",A=h?B.CLASSES.SELECTED:"";return[B.BASE_CLASS,"c-btn--"+n,p,g,f,b,S,v,E,y,N,A,m].filter(Boolean).join(" ")},handleClick:e=>n=>{t.disabled||t.loading||!e||e(n)}}}function wt(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:r=t.fullscreen,className:o=""}=e,i="c-spinner";return`${i} ${n?`${i}--${n}`:""} ${"md"!==a?`${i}--${a}`:""} ${r?i+"--fullscreen":""} ${o}`.trim()}}}Lt.displayName="Breadcrumb";const Ot=s((({size:t="md",variant:n="primary",fullscreen:a=!1,className:r="",style:o,glass:i})=>{const{generateSpinnerClass:s}=wt({size:t,variant:n,fullscreen:a}),l=s({size:t,variant:n,fullscreen:a,className:`${r} ${i?"c-spinner--glass":""}`.trim()}),c=e("div",{className:l,style:o,role:"status",children:e("span",{className:X.VISUALLY_HIDDEN,children:"Loading..."})});if(i){const t={displacementScale:20,blurAmount:1,cornerRadius:999,mode:"shader"},n=!0===i?t:{...t,...i};return e(tt,{...n,children:c})}return c}));Ot.displayName="Spinner";class Rt{static setPrefix(e){this.prefix=e}static getPrefix(){return this.prefix}static camelToKebab(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}static kebabToCamel(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}static cssVar(e){return`--${this.prefix}-${this.camelToKebab(e)}`}static bemClass(e,t,n){let a="c-"+e;return t&&(a+="__"+t),n&&(a+="--"+n),a}static variantClass(e,t){return`c-${e}--${t}`}static sizeClass(e,t){return`c-${e}--${t}`}static stateClass(e,t){return`c-${e}--${t}`}static utilityClass(e){return"u-"+e}static layoutClass(e){return"l-"+e}static objectClass(e){return"o-"+e}}Rt.prefix="atomix";const Mt=a.memo(l((({label:a,children:r,onClick:o,variant:i="primary",size:s="md",disabled:l=!1,loading:c=!1,loadingText:d,icon:h,iconName:m,iconSize:p="sm",iconPosition:g="start",iconOnly:f=!1,rounded:b=!1,fullWidth:S=!1,block:v=!1,active:E=!1,selected:y=!1,type:N="button",className:A="",as:x="button",href:_,target:T,glass:C,onHover:L,onFocus:I,onBlur:w,ariaLabel:O,ariaDescribedBy:R,ariaExpanded:M,ariaControls:k,tabIndex:P,style:z,LinkComponent:U,...F},G)=>{const V=l||c,H=!(!_||V),j=m?e(Et,{name:m,size:p}):h;It({variant:i,size:s,disabled:V,rounded:b,glass:C,loading:c,fullWidth:S,block:v,active:E,selected:y});const Y=[B.BASE_CLASS,Rt.variantClass(D.BUTTON_PREFIX,i),"md"!==s?Rt.sizeClass(D.BUTTON_PREFIX,s):"",f?Rt.stateClass(D.BUTTON_PREFIX,D.ICON_ELEMENT):"",b?Rt.stateClass(D.BUTTON_PREFIX,"rounded"):"",V?Rt.stateClass(D.BUTTON_PREFIX,"disabled"):"",C?Rt.stateClass(D.BUTTON_PREFIX,"glass"):"",c?B.CLASSES.LOADING:"",S?B.CLASSES.FULL_WIDTH:"",v?B.CLASSES.BLOCK:"",E?B.CLASSES.ACTIVE:"",y?B.CLASSES.SELECTED:"",A].filter(Boolean).join(" "),W=u((e=>{V?e.preventDefault():o?.(e)}),[V,o]),K=u((e=>{V||L?.(e)}),[V,L]),$=u((e=>{V||I?.(e)}),[V,I]),Q=u((e=>{V||w?.(e)}),[V,w]),q=c&&d?d:a||r,Z="sm"===s?"sm":"lg"===s?"md":"sm",X=t(n,{children:[c&&e("span",{className:Rt.bemClass(D.BUTTON_PREFIX,D.SPINNER_ELEMENT),"aria-hidden":"true",children:e(Ot,{size:Z,variant:"link"===i||"string"==typeof i&&i.startsWith("outline-")?"primary":"danger"===i?"error":i})}),j&&!c&&e("span",{className:Rt.bemClass(D.BUTTON_PREFIX,D.ICON_ELEMENT),"aria-hidden":"true",children:j}),!f&&q&&e("span",{className:Rt.bemClass(D.BUTTON_PREFIX,D.LABEL_ELEMENT),children:q})]}),J={ref:G,className:Y,type:"button"!==x||H?void 0:N,onClick:W,onMouseEnter:L?K:void 0,onFocus:I?$:void 0,onBlur:w?Q:void 0,disabled:V&&"button"===x&&!H,"aria-disabled":V,"aria-busy":c,"aria-label":O||(f?a||r:void 0),"aria-describedby":R,"aria-expanded":M,"aria-controls":k,tabIndex:void 0!==P?P:V?-1:0,style:z,...F},ee={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},te=!0===C?ee:{...ee,...C};if(H){const{ref:t,...n}=J,a={...n,type:void 0,disabled:void 0};if(U){const t=U,n={...a,ref:G,href:_,target:T,rel:"_blank"===T?"noopener noreferrer":void 0},r=e(t,{...n,children:X});return C?e(tt,{...te,children:r}):r}const r=e("a",{...a,ref:G,href:_,target:T,rel:"_blank"===T?"noopener noreferrer":void 0,children:X});return C?e(tt,{...te,children:r}):r}const ne=e(x,{...J,children:X});return C?e(tt,{...te,children:ne}):ne})));Mt.displayName="Button";const kt=({children:t,className:n="",style:a,"aria-label":r,role:o="group"})=>{const i=[P.CLASSES.BASE,n].filter(Boolean).join(" "),s=h.toArray(t).filter((e=>m(e)&&e.type===Mt));return e("div",{className:i,style:a,role:o,"aria-label":r,children:s.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null))})};kt.displayName="ButtonGroup";var Dt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pt=function(e){try{return!!e()}catch(t){return!0}},zt=!Pt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ut=zt,Ft=Function.prototype,Gt=Ft.call,Vt=Ut&&Ft.bind.bind(Gt,Gt),Ht=Ut?Vt:function(e){return function(){return Gt.apply(e,arguments)}},jt=Ht({}.isPrototypeOf),Yt=function(e){return e&&e.Math===Math&&e},Wt=Yt("object"==typeof globalThis&&globalThis)||Yt("object"==typeof window&&window)||Yt("object"==typeof self&&self)||Yt("object"==typeof Dt&&Dt)||Yt("object"==typeof Dt&&Dt)||function(){return this}()||Function("return this")(),Kt=zt,$t=Function.prototype,Qt=$t.apply,qt=$t.call,Zt="object"==typeof Reflect&&Reflect.apply||(Kt?qt.bind(Qt):function(){return qt.apply(Qt,arguments)}),Xt=Ht,Jt=Xt({}.toString),en=Xt("".slice),tn=function(e){return en(Jt(e),8,-1)},nn=tn,an=Ht,rn=function(e){if("Function"===nn(e))return an(e)},on="object"==typeof document&&document.all,sn=void 0===on&&void 0!==on?function(e){return"function"==typeof e||e===on}:function(e){return"function"==typeof e},ln={},cn=!Pt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),dn=zt,un=Function.prototype.call,hn=dn?un.bind(un):function(){return un.apply(un,arguments)},mn={},pn={}.propertyIsEnumerable,gn=Object.getOwnPropertyDescriptor,fn=gn&&!pn.call({1:2},1);mn.f=fn?function(e){var t=gn(this,e);return!!t&&t.enumerable}:pn;var bn,Sn,vn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},En=Pt,yn=tn,Nn=Object,An=Ht("".split),xn=En((function(){return!Nn("z").propertyIsEnumerable(0)}))?function(e){return"String"===yn(e)?An(e,""):Nn(e)}:Nn,_n=function(e){return null==e},Tn=_n,Cn=TypeError,Ln=function(e){if(Tn(e))throw new Cn("Can't call method on "+e);return e},In=xn,wn=Ln,On=function(e){return In(wn(e))},Rn=sn,Mn=function(e){return"object"==typeof e?null!==e:Rn(e)},kn={},Dn=kn,Bn=Wt,Pn=sn,zn=function(e){return Pn(e)?e:void 0},Un=Wt.navigator,Fn=Un&&Un.userAgent,Gn=Fn?Fn+"":"",Vn=Wt,Hn=Gn,jn=Vn.process,Yn=Vn.Deno,Wn=jn&&jn.versions||Yn&&Yn.version,Kn=Wn&&Wn.v8;Kn&&(Sn=(bn=Kn.split("."))[0]>0&&4>bn[0]?1:+(bn[0]+bn[1])),!Sn&&Hn&&((bn=Hn.match(/Edge\/(\d+)/))&&74>bn[1]||(bn=Hn.match(/Chrome\/(\d+)/))&&(Sn=+bn[1]));var $n=Sn,Qn=$n,qn=Pt,Zn=Wt.String,Xn=!!Object.getOwnPropertySymbols&&!qn((function(){var e=Symbol("symbol detection");return!Zn(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qn&&41>Qn})),Jn=Xn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ea=sn,ta=jt,na=Object,aa=Jn?function(e){return"symbol"==typeof e}:function(e){var t=function(e,t){return 2>arguments.length?zn(Dn[e])||zn(Bn[e]):Dn[e]&&Dn[e][t]||Bn[e]&&Bn[e][t]}("Symbol");return ea(t)&&ta(t.prototype,na(e))},ra=String,oa=sn,ia=TypeError,sa=function(e){if(oa(e))return e;throw new ia(function(e){try{return ra(e)}catch(t){return"Object"}}(e)+" is not a function")},la=sa,ca=_n,da=hn,ua=sn,ha=Mn,ma=TypeError,pa={exports:{}},ga=Wt,fa=Object.defineProperty,ba=Wt,Sa="__core-js_shared__",va=pa.exports=ba[Sa]||function(e,t){try{fa(ga,e,{value:t,configurable:!0,writable:!0})}catch(n){ga[e]=t}return t}(Sa,{});(va.versions||(va.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 Ea=pa.exports,ya=Ln,Na=Object,Aa=function(e){return Na(ya(e))},xa=Aa,_a=Ht({}.hasOwnProperty),Ta=Object.hasOwn||function(e,t){return _a(xa(e),t)},Ca=Ht,La=0,Ia=Math.random(),wa=Ca(1.1.toString),Oa=Ta,Ra=Xn,Ma=Jn,ka=Wt.Symbol,Da=Ea["wks"]||(Ea.wks={}),Ba=Ma?ka.for||ka:ka&&ka.withoutSetter||function(e){return"Symbol("+(void 0===e?"":e)+")_"+wa(++La+Ia,36)},Pa=function(e){return Oa(Da,e)||(Da[e]=Ra&&Oa(ka,e)?ka[e]:Ba("Symbol."+e)),Da[e]},za=hn,Ua=Mn,Fa=aa,Ga=TypeError,Va=Pa("toPrimitive"),Ha=aa,ja=function(e){var t=function(e,t){if(!Ua(e)||Fa(e))return e;var n,a,r=(a=e[Va],ca(a)?void 0:la(a));if(r){if(void 0===t&&(t="default"),n=za(r,e,t),!Ua(n)||Fa(n))return n;throw new Ga("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&ua(n=e.toString)&&!ha(a=da(n,e)))return a;if(ua(n=e.valueOf)&&!ha(a=da(n,e)))return a;if("string"!==t&&ua(n=e.toString)&&!ha(a=da(n,e)))return a;throw new ma("Can't convert object to primitive value")}(e,t)}(e,"string");return Ha(t)?t:t+""},Ya=Mn,Wa=Wt.document,Ka=Ya(Wa)&&Ya(Wa.createElement),$a=!cn&&!Pt((function(){return 7!==Object.defineProperty(Ka?Wa.createElement("div"):{},"a",{get:function(){return 7}}).a})),Qa=cn,qa=hn,Za=mn,Xa=vn,Ja=On,er=ja,tr=Ta,nr=$a,ar=Object.getOwnPropertyDescriptor;ln.f=Qa?ar:function(e,t){if(e=Ja(e),t=er(t),nr)try{return ar(e,t)}catch(n){}if(tr(e,t))return Xa(!qa(Za.f,e,t),e[t])};var rr=Pt,or=sn,ir=/#|\.prototype\./,sr=function(e,t){var n=cr[lr(e)];return n===ur||n!==dr&&(or(t)?rr(t):!!t)},lr=sr.normalize=function(e){return(e+"").replace(ir,".").toLowerCase()},cr=sr.data={},dr=sr.NATIVE="N",ur=sr.POLYFILL="P",hr=sr,mr=sa,pr=zt,gr=rn(rn.bind),fr={},br=cn&&Pt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Sr=Mn,vr=String,Er=TypeError,yr=cn,Nr=$a,Ar=br,xr=function(e){if(Sr(e))return e;throw new Er(vr(e)+" is not an object")},_r=ja,Tr=TypeError,Cr=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,Ir="enumerable",wr="configurable",Or="writable";fr.f=yr?Ar?function(e,t,n){if(xr(e),t=_r(t),xr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Or in n&&!n[Or]){var a=Lr(e,t);a&&a[Or]&&(e[t]=n.value,n={configurable:wr in n?n[wr]:a[wr],enumerable:Ir in n?n[Ir]:a[Ir],writable:!1})}return Cr(e,t,n)}:Cr:function(e,t,n){if(xr(e),t=_r(t),xr(n),Nr)try{return Cr(e,t,n)}catch(a){}if("get"in n||"set"in n)throw new Tr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Rr=fr,Mr=vn,kr=cn?function(e,t,n){return Rr.f(e,t,Mr(1,n))}:function(e,t,n){return e[t]=n,e},Dr=Wt,Br=Zt,Pr=rn,zr=sn,Ur=ln.f,Fr=hr,Gr=kn,Vr=function(e,t){return mr(e),void 0===t?e:pr?gr(e,t):function(){return e.apply(t,arguments)}},Hr=kr,jr=Ta,Yr=function(e){var t=function(n,a,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,a)}return new e(n,a,r)}return Br(e,this,arguments)};return t.prototype=e.prototype,t},Wr=function(e,t){var n,a,r,o,i,s,l,c,d,u=e.target,h=e.global,m=e.stat,p=e.proto,g=h?Dr:m?Dr[u]:Dr[u]&&Dr[u].prototype,f=h?Gr:Gr[u]||Hr(Gr,u,{})[u],b=f.prototype;for(o in t)a=!(n=Fr(h?o:u+(m?".":"#")+o,e.forced))&&g&&jr(g,o),s=f[o],a&&(l=e.dontCallGetSet?(d=Ur(g,o))&&d.value:g[o]),i=a&&l?l:t[o],(n||p||typeof s!=typeof i)&&(c=e.bind&&a?Vr(i,Dr):e.wrap&&a?Yr(i):p&&zr(i)?Pr(i):i,(e.sham||i&&i.sham||s&&s.sham)&&Hr(c,"sham",!0),Hr(f,o,c),p&&(jr(Gr,r=u+"Prototype")||Hr(Gr,r,{}),Hr(Gr[r],o,i),e.real&&b&&(n||!b[o])&&Hr(b,o,i)))},Kr=Math.ceil,$r=Math.floor,Qr=Math.trunc||function(e){var t=+e;return(t>0?$r:Kr)(t)},qr=function(e){var t=+e;return t!=t||0===t?0:Qr(t)},Zr=qr,Xr=Math.max,Jr=Math.min,eo=qr,to=Math.min,no=function(e){return t=e.length,(n=eo(t))>0?to(n,9007199254740991):0;var t,n},ao=On,ro=no,oo=function(e){return function(t,n,a){var r=ao(t),o=ro(r);if(0===o)return!e&&-1;var i,s=function(e,t){var n=Zr(e);return 0>n?Xr(n+t,0):Jr(n,t)}(a,o);if(e&&n!=n){for(;o>s;)if((i=r[s++])!=i)return!0}else for(;o>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},io=[oo(!0),oo(!1)][0];Wr({target:"Array",proto:!0,forced:Pt((function(){return!1}))},{includes:function(e){return io(this,e,arguments.length>1?arguments[1]:void 0)}});var so=Wt,lo=kn,co=function(e,t){var n=lo[e+"Prototype"],a=n&&n[t];if(a)return a;var r=so[e],o=r&&r.prototype;return o&&o[t]},uo=co("Array","includes"),ho=Mn,mo=tn,po=Pa("match"),go=TypeError,fo={};fo[Pa("toStringTag")]="z";var bo=fo+""=="[object z]",So=sn,vo=tn,Eo=Pa("toStringTag"),yo=Object,No="Arguments"===vo(function(){return arguments}()),Ao=bo?vo:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=yo(e),Eo))?n:No?vo(t):"Object"===(a=vo(t))&&So(t.callee)?"Arguments":a},xo=String,_o=Pa("match"),To=Wr,Co=Ln,Lo=function(e){if("Symbol"===Ao(e))throw new TypeError("Cannot convert a Symbol value to a string");return xo(e)},Io=Ht("".indexOf);To({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[_o]=!1,"/./"[e](t)}catch(a){}}return!1}("includes")},{includes:function(e){return!!~Io(Lo(Co(this)),Lo(function(e){if(function(e){var t;return ho(e)&&(void 0!==(t=e[po])?!!t:"RegExp"===mo(e))}(e))throw new go("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var wo=co("String","includes"),Oo=jt,Ro=uo,Mo=wo,ko=Array.prototype,Do=String.prototype,Bo=Bt((function(e){var t=e.includes;return e===ko||Oo(ko,e)&&t===ko.includes?Ro:"string"==typeof e||e===Do||Oo(Do,e)&&t===Do.includes?Mo:t}));const Po=({title:a,children:r,icon:o,variant:i="primary",onClose:s,actions:l,oneLine:c=!1,toast:d=!1,glass:u,className:h,style:m,...p})=>{const{generateCalloutClass:g,handleClose:f}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,oneLine:a=t.oneLine,toast:r=t.toast,glass:o=t.glass,className:i=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${o?"c-callout--glass":""} ${i}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:i,oneLine:c,toast:d,glass:u,className:h,style:m}),b=()=>{var e,t;const n={role:"region"};return d?(n.role="alert",n["aria-live"]="polite"):Bo(e=["warning","error"]).call(e,i)?(n.role="alert",n["aria-live"]="assertive"):Bo(t=["info","success"]).call(t,i)&&(n.role="status",n["aria-live"]="polite"),n},S=t(n,{children:[t("div",{className:"c-callout__content",children:[o&&e("div",{className:"c-callout__icon",children:o}),t("div",{className:"c-callout__message",children:[a&&e("div",{className:"c-callout__title",children:a}),r&&e("div",{className:"c-callout__text",children:r})]})]}),l&&e("div",{className:"c-callout__actions",children:l}),s&&e("button",{className:"c-callout__close-btn",onClick:f(s),"aria-label":"Close",children:e(Et,{name:"X",size:"md"})})]});if(u){const t={displacementScale:30,cornerRadius:8,elasticity:0},n=!0===u?t:{...t,...u};return e("div",{className:g({variant:i,oneLine:c,toast:d,glass:u,className:h}),...b(),...p,style:m,children:e(tt,{...n,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:n.cornerRadius},children:S})})})}return e("div",{className:g({variant:i,oneLine:c,toast:d,glass:u,className:h}),...b(),...p,style:m,children:S})};Po.displayName="Callout";const zo=a.memo(l((({size:a="md",variant:r="",appearance:o="filled",elevation:i="none",hoverable:s=!1,hoverElevation:l="md",row:c=!1,flat:h=!1,active:m=!1,disabled:p=!1,loading:g=!1,selected:f=!1,interactive:b=!1,header:S,image:v,imageAlt:E="",title:y,text:N,actions:A,icon:x,footer:_,children:T,onClick:C,onHover:L,onFocus:I,href:w,target:O,glass:R,role:M,ariaLabel:k,ariaDescribedBy:D,tabIndex:B,className:P="",style:z,...U},F)=>{const G=!!(C||w||b),V=p||g,H=d((()=>[ge.CLASSES.BASE,"sm"===a?ge.CLASSES.SM:"","md"===a?ge.CLASSES.MD:"","lg"===a?ge.CLASSES.LG:"",r?"c-card--"+r:"","filled"===o?ge.CLASSES.FILLED:"","outlined"===o?ge.CLASSES.OUTLINED:"","ghost"===o?ge.CLASSES.GHOST:"","elevated"===o?ge.CLASSES.ELEVATED:"","none"===i?ge.CLASSES.ELEVATION_NONE:"","sm"===i?ge.CLASSES.ELEVATION_SM:"","md"===i?ge.CLASSES.ELEVATION_MD:"","lg"===i?ge.CLASSES.ELEVATION_LG:"","xl"===i?ge.CLASSES.ELEVATION_XL:"",s?"c-card--hoverable":"",s&&l?"c-card--hover-elevation-"+l:"",c?ge.CLASSES.ROW:"",h?ge.CLASSES.FLAT:"",m?ge.CLASSES.ACTIVE:"",p?ge.CLASSES.DISABLED:"",g?ge.CLASSES.LOADING:"",f?ge.CLASSES.SELECTED:"",b||G?ge.CLASSES.INTERACTIVE:"",R?ge.CLASSES.GLASS:"",P].filter(Boolean).join(" ")),[a,r,o,i,s,l,c,h,m,p,g,f,b,G,R,P]),j=d((()=>M||(w?"link":G?"button":"article")),[M,w,G]),Y=u((e=>{V?e.preventDefault():C?.(e)}),[V,C]),W=u((e=>{V?e.preventDefault():!G||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C&&C(e))}),[V,G,C]),K=u((e=>{V||L?.(e)}),[V,L]),$=u((e=>{V||I?.(e)}),[V,I]),Q=d((()=>void 0!==B?B:V?-1:G?0:void 0),[B,V,G]),q=d((()=>t(n,{children:[g&&e("div",{className:"c-card__loading","aria-label":"Loading",children:e("div",{className:"c-card__spinner"})}),(v||x||S)&&t("div",{className:ge.SELECTORS.HEADER.substring(1),children:[S,v&&e("img",{src:v,alt:E,className:ge.SELECTORS.IMAGE.substring(1),loading:"lazy"}),x&&e("div",{className:ge.SELECTORS.ICON.substring(1),children:x})]}),t("div",{className:ge.SELECTORS.BODY.substring(1),children:[y&&e("h3",{className:ge.SELECTORS.TITLE.substring(1),children:y}),N&&e("p",{className:ge.SELECTORS.TEXT.substring(1),children:N}),T]}),A&&e("div",{className:ge.SELECTORS.ACTIONS.substring(1),children:A}),_&&e("div",{className:ge.SELECTORS.FOOTER.substring(1),children:_})]})),[g,v,E,x,S,y,N,T,A,_]),Z={className:H,style:z,role:j,"aria-label":k,"aria-describedby":D,"aria-disabled":!!V||void 0,tabIndex:Q,onClick:G?Y:void 0,onKeyDown:G?W:void 0,onMouseEnter:L?K:void 0,onFocus:I?$:void 0,...U};if(w&&!V){const t=e("a",{...Z,ref:F,href:w,target:O,rel:"_blank"===O?"noopener noreferrer":void 0,children:q});return R?e(tt,{...!0===R?{}:R,elasticity:0,children:t}):t}const X=e("div",{...Z,ref:F,children:q});return R?e(tt,{...!0===R?{}:R,elasticity:0,children:X}):X})));zo.displayName="Card";const Uo=l((({title:n,subtitle:a,action:r,icon:o,children:i,className:s="",...l},c)=>{const d=`${ge.SELECTORS.HEADER.substring(1)} ${s}`.trim();return t("div",{ref:c,className:d,...l,children:[o&&e("div",{className:ge.SELECTORS.ICON.substring(1),children:o}),(n||a)&&t("div",{children:[n&&e("h3",{className:ge.SELECTORS.TITLE.substring(1),children:n}),a&&e("p",{className:ge.SELECTORS.TEXT.substring(1),children:a})]}),r&&e("div",{className:ge.SELECTORS.ACTIONS.substring(1),children:r}),i]})}));Uo.displayName="CardHeader";const Fo=l((({scrollable:t=!1,maxHeight:n,children:a,className:r="",style:o,...i},s)=>{const l=`${ge.SELECTORS.BODY.substring(1)} ${t?"c-card__body--scrollable":""} ${r}`.trim(),c={...o,...t&&n?{maxHeight:"number"==typeof n?n+"px":n,overflowY:"auto"}:{}};return e("div",{ref:s,className:l,style:c,...i,children:a})}));Fo.displayName="CardBody";const Go=l((({align:t,children:n,className:a="",style:r,...o},i)=>{const s=`${ge.SELECTORS.FOOTER.substring(1)} ${t?"c-card__footer--align-"+t:""} ${a}`.trim();return e("div",{ref:i,className:s,style:r,...o,children:n})}));Go.displayName="CardFooter",zo.Header=Uo,zo.Body=Fo,zo.Footer=Go;const Vo=(e={})=>{const{elevationEffect:t=!1,elevationClass:n=ge.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:i="click",focusEffect:s=!1,clickable:l=!1,onClick:c}=e,d=o(null),h=o(null),m=o(null),[p,g]=r(!1),[f,b]=r(!1),[S,v]=r(!1),[E,y]=r(!1),N=u((e=>{a&&"click"===i&&g((e=>!e)),c&&c(e)}),[a,i,c]),A=u((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===i&&g((e=>!e)),c&&c(e))}),[a,i,c]),x=u((()=>{y(!0),t&&b(!0),a&&"hover"===i&&g(!0)}),[t,a,i]),_=u((()=>{y(!1),t&&b(!1),a&&"hover"===i&&g(!1)}),[t,a,i]),T=u((()=>{v(!0)}),[]),C=u((()=>{v(!1)}),[]),L=u((()=>({className:[ge.CLASSES.BASE,f?n:"",p?ge.CLASSES.FLIPPED:"",S&&s?ge.CLASSES.FOCUSED:"",l?ge.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:l||a?0:-1,role:l?"button":void 0,onMouseEnter:x,onMouseLeave:_,onFocus:T,onBlur:C,onClick:N,onKeyDown:A})),[f,p,S,n,s,l,x,_,T,C,N,A,a]);return{cardRef:d,frontRef:h,backRef:m,isFlipped:p,isElevated:f,isFocused:S,isHovered:E,handleClick:N,handleKeyDown:A,handleMouseEnter:x,handleMouseLeave:_,handleFocus:T,handleBlur:C,getCardProps:L}},Ho=({elevationClass:t="is-elevated",className:n="",style:a,children:r,onClick:o,...i})=>{const{getCardProps:s}=Vo({elevationEffect:!0,elevationClass:t,clickable:!!o,onClick:o,focusEffect:!0}),l=s();return e("div",{className:`${n} ${l.className}`,ref:l.ref,style:a,tabIndex:l.tabIndex,role:l.role,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,onFocus:l.onFocus,onBlur:l.onBlur,onClick:l.onClick,onKeyDown:l.onKeyDown,children:e(zo,{...i,className:"",onClick:void 0,children:r})})};Ho.displayName="ElevationCard";var jo=sa,Yo=Aa,Wo=xn,Ko=no,$o=TypeError,Qo="Reduce of empty array with no initial value",qo=function(e){return function(t,n,a,r){var o=Yo(t),i=Wo(o),s=Ko(o);if(jo(n),0===s&&2>a)throw new $o(Qo);var l=e?s-1:0,c=e?-1:1;if(2>a)for(;;){if(l in i){r=i[l],l+=c;break}if(l+=c,e?0>l:l>=s)throw new $o(Qo)}for(;e?l>=0:s>l;l+=c)l in i&&(r=n(r,i[l],l,o));return r}},Zo={left:qo(!1),right:qo(!0)},Xo=Pt,Jo=Wt,ei=Gn,ti=tn,ni=function(e){return ei.slice(0,e.length)===e},ai=ni("Bun/")?"BUN":ni("Cloudflare-Workers")?"CLOUDFLARE":ni("Deno/")?"DENO":ni("Node.js/")?"NODE":Jo.Bun&&"string"==typeof Bun.version?"BUN":Jo.Deno&&"object"==typeof Deno.version?"DENO":"process"===ti(Jo.process)?"NODE":Jo.window&&Jo.document?"BROWSER":"REST",ri=Zo.left;Wr({target:"Array",proto:!0,forced:!("NODE"===ai)&&$n>79&&83>$n||!function(){var e=[].reduce;return!!e&&Xo((function(){e.call(null,(function(){return 1}),1)}))}()},{reduce:function(e){var t=arguments.length;return ri(this,e,t,t>1?arguments[1]:void 0)}});var oi=co("Array","reduce"),ii=jt,si=oi,li=Array.prototype,ci=Bt((function(e){var t=e.reduce;return e===li||ii(li,e)&&t===li.reduce?si:t}));function di(e){const[t,n]=r({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}}),a=o(null);i((()=>()=>{a.current&&cancelAnimationFrame(a.current)}),[]);const s=u(((e,t,a,r,o,i)=>{n((n=>({...n,hoveredPoint:{datasetIndex:e,pointIndex:t,x:a,y:r,clientX:o,clientY:i}})))}),[]),l=u((()=>{n((e=>({...e,hoveredPoint:null})))}),[]),c=u(((e,t)=>{n((n=>{const a=n.selectedPoints.some((n=>n.datasetIndex===e&&n.pointIndex===t));return{...n,selectedPoints:a?n.selectedPoints.filter((n=>!(n.datasetIndex===e&&n.pointIndex===t))):[...n.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),d=u(((e,t,a)=>{n((n=>{const r=1-.001*e,o=Math.max(.1,Math.min(10,n.zoomLevel*r)),i=o/n.zoomLevel,s={x:t?t-(t-n.panOffset.x)*i:n.panOffset.x,y:a?a-(a-n.panOffset.y)*i:n.panOffset.y};return{...n,zoomLevel:o,panOffset:s}}))}),[]),h=u(((e,t)=>{n((n=>({...n,panOffset:{x:n.panOffset.x+e,y:n.panOffset.y+t}})))}),[]),m=u(((e,t)=>{n((n=>({...n,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=u((()=>{n((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=u(((e,t)=>{n((n=>({...n,crosshair:{x:e,y:t}})))}),[]),f=u((()=>{n((e=>({...e,crosshair:null})))}),[]),b=u((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a={...n,touchState:{...n.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&n.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,o=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:r,y:o}}}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{...a,touchState:{...a.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return a}))}),[]),S=u((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&n.isDragging&&n.dragStart&&n.panEnabled){const e=t[0].x-a.left,r=t[0].y-a.top,o=n.touchState.touches[0];let i,s;o?(i=e-(o.x-a.left),s=r-(o.y-a.top)):(i=e-n.dragStart.x,s=r-n.dragStart.y);const l=.6,c=i*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...n,panOffset:{x:n.panOffset.x+c,y:n.panOffset.y+d},touchState:{...n.touchState,touches:t}}:{...n,touchState:{...n.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&n.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(n.touchState.lastDistance>0){const r=e/n.touchState.lastDistance,o=Math.max(.1,Math.min(10,n.zoomLevel*r)),i=(t[0].x+t[1].x)/2-a.left,s=(t[0].y+t[1].y)/2-a.top,l=o/n.zoomLevel,c={x:i-(i-n.panOffset.x)*l,y:s-(s-n.panOffset.y)*l};return{...n,zoomLevel:o,panOffset:c,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),v=u((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{if(0===t.length)return{...n,isDragging:!1,dragStart:null,touchState:{...n.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&n.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,o=t[0].y-a.top;return{...n,dragStart:{x:r,y:o},touchState:{...n.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{...n,touchState:{...n.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),E=u((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),y=u((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),N=u((e=>{"pen"===e.pointerType&&n((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),A=u(((e,t=Ie.DEFAULT_WIDTH,n=Ie.DEFAULT_HEIGHT,a={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;const o=e.flatMap((e=>e.data));if(0===o.length)return null;const i=Math.min(...o.map((e=>e.value))),s=Math.max(...o.map((e=>e.value))),l=s-i||1,c=t-a.left-a.right,d=n-a.top-a.bottom;return{xScale:(e,t=o.length)=>t>1?a.left+e/(t-1)*c:a.left+c/2,yScale:e=>a.top+d-(e-i)/l*d,minValue:i,maxValue:s,valueRange:l,innerWidth:c,innerHeight:d,width:t,height:n,padding:a}}),[]),x=u((e=>{if(0>=e)return[];const t=[];for(let n=0;e>n;n++){const e=n%Ie.DEFAULT_COLORS.length;t.push(Ie.DEFAULT_COLORS[e])}return t}),[]),_=o(null);return{interactionState:t,setInteractionState:n,handlePointHover:s,handlePointLeave:l,handlePointClick:c,handleZoom:d,handlePan:h,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:f,handleTouchStart:b,handleTouchMove:S,handleTouchEnd:v,handlePointerDown:E,handlePointerMove:y,handlePointerUp:N,calculateScales:A,getChartColors:x,svgRef:_}}const ui=s(l((({chartType:n="line",groups:a=[],enableDefaults:s=!0,defaults:l={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:c=["png","svg","csv"],size:d="md",position:h="top",onRefresh:m,onExport:p,onFullscreen:g,onSettings:f,onZoomIn:b,onZoomOut:S,onZoomReset:v,onPanToggle:E,onReset:y,onGridToggle:N,onLegendToggle:A,onTooltipsToggle:x,onAnimationsToggle:_,state:T={},className:C="",...L},I)=>{const[w,O]=r(!1),[R,M]=r(!1),k=o(null),D=o(null),B=o(null),P=o(null),z=a&&a.length>0?{refresh:l.refresh??!0,export:l.export??!0,fullscreen:l.fullscreen??!0,settings:l.settings??!0,zoom:a.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:a.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:a.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:l.grid??!0,legend:l.legend??!0,tooltips:l.tooltips??!0,animations:l.animations??!0}:l;i((()=>{const e=e=>{k.current&&!k.current.contains(e.target)&&B.current&&!B.current.contains(e.target)&&O(!1),D.current&&!D.current.contains(e.target)&&P.current&&!P.current.contains(e.target)&&M(!1)};if(w||R)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[w,R]),i((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&z.refresh&&m&&(e.preventDefault(),m()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&z.export&&p&&(e.preventDefault(),O(!w)),"F11"===e.key&&z.fullscreen&&g&&(e.preventDefault(),g(!T.isFullscreen))," "===e.key&&z.pan&&E&&(e.preventDefault(),E(!T.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!z.reset||(e.preventDefault(),v?.(),y?.()),"+"!==e.key&&"="!==e.key||z.zoom&&b&&(e.preventDefault(),b()),"-"!==e.key&&"_"!==e.key||z.zoom&&S&&(e.preventDefault(),S()),"Escape"===e.key&&(O(!1),M(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[z,m,p,g,E,v,y,b,S,T,w]);const U=u((()=>{const e=[];return z.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:T.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),z.export&&p&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>O(!w),disabled:T.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[z,m,p,T,w]),F=u((()=>{const e=[];return z.zoom&&(b||S)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>b?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>S?.(),tooltip:"Zoom out (-)",shortcut:"-"}),z.pan&&E&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>E?.(!T.panEnabled),active:T.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),z.reset&&(v||y)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{v?.(),y?.()},tooltip:"Reset view (R)",shortcut:"R"}),z.fullscreen&&g&&e.push({id:"fullscreen",label:T.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:T.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>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}]:[]}),[z,b,S,E,v,y,g,T]),G=u((()=>{const e=[];return z.grid&&N&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>N(!T.showGrid),active:T.showGrid,tooltip:"Toggle grid lines"}),z.legend&&A&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>A(!T.showLegend),active:T.showLegend,tooltip:"Toggle legend"}),z.tooltips&&x&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>x(!T.showTooltips),active:T.showTooltips,tooltip:"Toggle tooltips"}),z.animations&&_&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>_(!T.animationsEnabled),active:T.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[z,N,A,x,_,T]),V=u((()=>{const e=[];return z.settings&&f&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>M(!R),active:R,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[z,f,R]),H=a&&a.length>0?a:s?[...U(),...F(),...G(),...V()]:[],j=n=>{const a="export"===n.id?B:"settings"===n.id?P:null;return t("button",{ref:a,className:`${Ie.ACTION_CLASS} ${n.variant?`${Ie.ACTION_CLASS}--${n.variant}`:""} ${n.active?"is-active":""}`,onClick:()=>{if(n.onClick)n.onClick();else if("export"===n.id&&p)O(!w);else if("settings"===n.id&&f)M(!R);else switch(n.id){case"zoom-in":b?.();break;case"zoom-out":S?.();break;case"pan":E?.(!T.panEnabled);break;case"reset":v?.(),y?.();break;case"fullscreen":g?.(!T.isFullscreen);break;case"refresh":m?.()}},disabled:n.disabled,title:n.tooltip,type:"button","aria-label":n.label,"aria-pressed":n.active?"true":"false","aria-expanded":"export"===n.id?w:"settings"===n.id?R:void 0,children:[e(Et,{name:n.icon,size:"sm"}),"lg"===d&&e("span",{className:Ie.ACTION_CLASS+"-label",children:n.label})]},n.id)},Y=`${Ie.TOOLBAR_CLASS} ${Ie.TOOLBAR_CLASS}--${d} ${Ie.TOOLBAR_CLASS}--${h} ${C}`.trim();return e("div",{ref:I,className:Y,...L,children:H.map(((a,r)=>t("div",{className:Ie.TOOLBAR_CLASS+"-group",children:[a.separator&&r>0&&e("div",{className:Ie.TOOLBAR_CLASS+"-separator"}),a.label&&"lg"===d&&e("span",{className:Ie.TOOLBAR_CLASS+"-group-label",children:a.label}),t("div",{className:Ie.TOOLBAR_CLASS+"-actions",children:[a.actions.map(j),a.actions.some((e=>"export"===e.id))&&(w&&p?t("div",{ref:k,className:""+Ie.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[e("div",{className:Ie.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),c.map((t=>e("button",{className:""+Ie.EXPORT_OPTION_CLASS,onClick:()=>{p(t),O(!1)},disabled:T.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+t.toUpperCase(),children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(R?t("div",{ref:D,className:""+Ie.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[e("div",{className:Ie.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t("div",{className:Ie.SETTINGS_MENU_CLASS+"-content",children:[z.grid&&N&&e("div",{className:Ie.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ie.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.showGrid??!1,onChange:e=>N(e.target.checked),"aria-label":"Toggle grid lines"}),e("span",{className:Ie.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),z.legend&&A&&e("div",{className:Ie.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ie.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.showLegend??!1,onChange:e=>A(e.target.checked),"aria-label":"Toggle legend"}),e("span",{className:Ie.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),z.tooltips&&x&&e("div",{className:Ie.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ie.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.showTooltips??!1,onChange:e=>x(e.target.checked),"aria-label":"Toggle tooltips"}),e("span",{className:Ie.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),z.animations&&_&&e("div",{className:Ie.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Ie.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.animationsEnabled??!1,onChange:e=>_(e.target.checked),"aria-label":"Toggle animations"}),e("span",{className:Ie.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==T.zoomLevel&&t("div",{className:`${Ie.SETTINGS_MENU_CLASS}-item ${Ie.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Ie.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t("span",{className:Ie.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(T.zoomLevel||1)),"%"]})]}),t("div",{className:`${Ie.SETTINGS_MENU_CLASS}-item ${Ie.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Ie.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),e("span",{className:Ie.SETTINGS_MENU_CLASS+"-value",children:n})]})]})]}):null)]})]},a.id)))})})));ui.displayName="ChartToolbar";const hi=g(null),mi=s(l((({children:n,type:a="line",size:s="md",variant:l="primary",title:c,subtitle:h,loading:m=!1,error:p,className:g="","aria-label":f,onFullscreen:b,onExport:S,onRefresh:v,showToolbar:E=!1,enableFullscreen:y=!1,enableExport:N=!1,enableRefresh:A=!1,exportFormats:x=["png","svg","csv"],datasets:_,config:T,toolbarConfig:C,customToolbarActions:L,customToolbarGroups:I,data:w,showLegend:O,interactive:R,fullscreen:M,onDataPointClick:k,onLegendItemClick:D,glass:B,...P},z)=>{const[U,F]=r(!1),[G,V]=r(!1),H=o(null),[j,Y]=r(1),[W,K]=r({x:0,y:0}),[$,Q]=r(!1),q=u((e=>{F(e),b?.(e)}),[b]),Z=u((()=>{Y((e=>Math.min(1.2*e,5)))}),[]),X=u((()=>{Y((e=>Math.max(e/1.2,.2)))}),[]),J=u((()=>{Y(1),K({x:0,y:0})}),[]),ee=u((e=>{Q(e)}),[]),te=u((()=>{Y(1),K({x:0,y:0}),Q(!1)}),[]),ne=d((()=>({onRefresh:v,onExport:S,onFullscreen:q,onZoomIn:Z,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te})),[v,S,q,Z,X,J,ee,te]),{state:ae,handlers:re,toolbarGroups:oe}=function(e,t={},n={}){const[a,o]=r({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:s=!0,defaults:l={},exportFormats:c=["png","svg","csv"],customActions:h=[],customGroups:m=[]}=t,p=u((()=>{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=d((()=>({...p(),...l})),[p,l]),f={onRefresh:u((()=>{o((e=>({...e,isRefreshing:!0}))),n.onRefresh?.(),setTimeout((()=>{o((e=>({...e,isRefreshing:!1})))}),1e3)}),[n.onRefresh]),onExport:u((async e=>{o((e=>({...e,isExporting:!0})));try{await(n.onExport?.(e))}finally{o((e=>({...e,isExporting:!1})))}}),[n.onExport]),onFullscreen:u((e=>{o((t=>({...t,isFullscreen:e}))),n.onFullscreen?.(e)}),[n.onFullscreen]),onZoomIn:u((()=>{o((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),n.onZoomIn?.()}),[n.onZoomIn]),onZoomOut:u((()=>{o((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),n.onZoomOut?.()}),[n.onZoomOut]),onZoomReset:u((()=>{o((e=>({...e,zoomLevel:1}))),n.onZoomReset?.()}),[n.onZoomReset]),onPanToggle:u((e=>{o((t=>({...t,panEnabled:e}))),n.onPanToggle?.(e)}),[n.onPanToggle]),onReset:u((()=>{o((e=>({...e,zoomLevel:1,panEnabled:!1}))),n.onReset?.()}),[n.onReset]),onGridToggle:u((e=>{o((t=>({...t,showGrid:e}))),n.onGridToggle?.(e)}),[n.onGridToggle]),onLegendToggle:u((e=>{o((t=>({...t,showLegend:e}))),n.onLegendToggle?.(e)}),[n.onLegendToggle]),onTooltipsToggle:u((e=>{o((t=>({...t,showTooltips:e}))),n.onTooltipsToggle?.(e)}),[n.onTooltipsToggle]),onAnimationsToggle:u((e=>{o((t=>({...t,animationsEnabled:e}))),n.onAnimationsToggle?.(e)}),[n.onAnimationsToggle]),onSettings:u((()=>{}),[])},b=u((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:f.onRefresh,disabled:a.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>f.onExport("png"),disabled:a.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const n=[];g.zoom&&n.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:f.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:f.onZoomOut,tooltip:"Zoom out"}),g.pan&&n.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f.onPanToggle(!a.panEnabled),active:a.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&n.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:f.onReset,tooltip:"Reset view"}),g.fullscreen&&n.push({id:"fullscreen",label:a.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:a.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f.onFullscreen(!a.isFullscreen),variant:"success",tooltip:(a.isFullscreen?"Exit":"Enter")+" fullscreen"}),n.length>0&&e.push({id:"view-actions",label:"View",actions:n,separator:!0});const r=[];if(g.grid&&r.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>f.onGridToggle(!a.showGrid),active:a.showGrid,tooltip:"Toggle grid"}),g.legend&&r.push({id:"legend",label:"Legend",icon:"List",onClick:()=>f.onLegendToggle(!a.showLegend),active:a.showLegend,tooltip:"Toggle legend"}),g.tooltips&&r.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>f.onTooltipsToggle(!a.showTooltips),active:a.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&r.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>f.onAnimationsToggle(!a.animationsEnabled),active:a.animationsEnabled,tooltip:"Toggle animations"}),r.length>0&&e.push({id:"display-actions",label:"Display",actions:r,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:f.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,a,f,h,m]);return i((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),f.onRefresh());break;case"e":g.export&&(e.preventDefault(),f.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),f.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),f.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),f.onReset());break;case" ":g.pan&&(e.preventDefault(),f.onPanToggle(!a.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,a,f]),{state:a,setState:o,handlers:f,toolbarGroups:b(),config:{enableDefaults:s,defaults:g,exportFormats:c}}}(a,{enableDefaults:E,defaults:{refresh:A,export:N,fullscreen:y,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:x},ne);di(),i((()=>{Y(ae.zoomLevel)}),[ae.zoomLevel]),i((()=>{Q(ae.panEnabled)}),[ae.panEnabled]),i((()=>{ae.zoomLevel}),[j,ae.zoomLevel]);const ie=pi({type:a,size:s,variant:l,loading:m,error:p,className:g,interactive:R,panEnabled:$});i((()=>{F(ae.isFullscreen),V(ae.isExporting)}),[ae.isFullscreen,ae.isExporting]);const se=`${ie}${U?" "+Ie.CLASSES.FULLSCREEN:""}${B?" c-chart--glass":""}`,le=d((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,enableLiquidBlur:!1,enableBorderEffect:!0,mode:"standard",mouseContainer:H,reducedMotion:!1})),[]),ce=d((()=>B?!0===B?le:{...le,...B}:null),[B,le]),de=d((()=>ce?.cornerRadius||void 0),[ce?.cornerRadius]),ue=d((()=>({zoomLevel:j,panOffset:W,panEnabled:$,onZoomIn:Z,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,setZoomLevel:Y,setPanOffset:K,setPanEnabled:Q,toolbarState:{showTooltips:ae.showTooltips,showLegend:ae.showLegend,animationsEnabled:ae.animationsEnabled,showGrid:ae.showGrid}})),[j,W,$,Z,X,J,ee,te,Q,ae.showTooltips,ae.showLegend,ae.animationsEnabled,ae.showGrid]),he=t("div",{ref:H,className:se,"aria-label":f||a+" chart",role:"img",tabIndex:0,...P,children:[(c||h||E)&&t("div",{className:Ie.HEADER_CLASS+" u-d-flex u-justify-between u-align-items-start u-gap-4",children:[t("div",{className:Ie.HEADER_CONTENT_CLASS+" u-flex-1",children:[c&&e("h3",{className:Ie.TITLE_CLASS+" u-mb-1",children:c}),h&&e("p",{className:Ie.SUBTITLE_CLASS+" u-mb-0",children:h})]}),(()=>{if(!E)return null;const t=!oe||0===oe.length;return e(ui,{chartType:a,groups:oe,defaults:{refresh:A,export:N,fullscreen:y,zoom:void 0!==ae.zoomLevel,pan:void 0!==ae.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:x,state:{isFullscreen:ae.isFullscreen,isExporting:ae.isExporting,isRefreshing:ae.isRefreshing,zoomLevel:j,panEnabled:$,showGrid:ae.showGrid,showLegend:ae.showLegend,showTooltips:ae.showTooltips,animationsEnabled:ae.animationsEnabled},...t?{onRefresh:re.onRefresh,onExport:re.onExport,onFullscreen:re.onFullscreen,onZoomIn:Z,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,onSettings:re.onSettings,onGridToggle:re.onGridToggle,onLegendToggle:re.onLegendToggle,onTooltipsToggle:re.onTooltipsToggle,onAnimationsToggle:re.onAnimationsToggle}:{}})})()]}),t("div",{className:Ie.CONTENT_CLASS,children:[m&&t("div",{className:Ie.LOADING_CLASS,children:[e("div",{className:Ie.LOADING_SPINNER_CLASS}),e("span",{className:Ie.LOADING_TEXT_CLASS,children:ae.isExporting?"Exporting chart...":ae.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:Ie.ERROR_CLASS,children:[e("div",{className:Ie.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:Ie.ERROR_CONTENT_CLASS,children:[e("div",{className:Ie.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:Ie.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!n&&t("div",{className:Ie.EMPTY_CLASS,children:[e("div",{className:Ie.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:Ie.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:Ie.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&n&&e("div",{className:Ie.CANVAS_CLASS,children:n})]})]}),me=ce?e(tt,{...ce,cornerRadius:de,style:{width:"100%",height:"100%",...ce.style},children:he}):he;return e(hi.Provider,{value:ue,children:e("div",{ref:z,style:{width:"100%",height:"100%"},children:me})})}))),pi=({type:e,size:t,variant:n,loading:a,error:r,className:o,interactive:i,panEnabled:s})=>{const l=[Ie.ROOT_CLASS];if(e){const t=e.toUpperCase(),n=Ie.CLASSES[t]||`${Ie.TYPE_PREFIX}${e}`;l.push(n)}if(t){const e=t.toUpperCase(),n=Ie.CLASSES[e]||`${Ie.SIZE_PREFIX}${t}`;l.push(n)}if(n){const e=n.toUpperCase(),t=Ie.CLASSES[e]||`${Ie.VARIANT_PREFIX}${n}`;l.push(t)}return(i||s)&&l.push(Ie.CLASSES.INTERACTIVE),a&&l.push(Ie.LOADING_STATE_CLASS),r&&l.push(Ie.ERROR_STATE_CLASS),o&&l.push(o),l.join(" ")};mi.displayName="Chart";const gi=s(l((({datasets:a=[],config:s,width:l=Ie.DEFAULT_WIDTH,height:c=Ie.DEFAULT_HEIGHT,onDataPointClick:h,interactive:m=!0,enableRealTime:p=!1,enableAccessibility:g=!0,enablePerformanceOptimization:b=!0,renderContent:S},v)=>{const E=f(hi),{calculateScales:y,getChartColors:N}=di(),{processedData:A,isProcessing:x}=function(e,t){const[n,a]=r(e),[o,s]=r(!1),{enableDecimation:l=!1,maxDataPoints:c=1e3,enableRealTime:d=!1,realTimeInterval:h=1e3}=t||{},m=u(((e,t)=>{if(!l||!e.length)return e;const n=e[0]?.data?.length||0;if(t>=n)return e;const a=Math.ceil(n/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%a==0))||[]})))}),[l]),p=u(((e,t)=>{const n=[];for(let r=0;r<e.length;r++)if(t-1>r)n.push(null);else{var a;const o=ci(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t),0);n.push(o/t)}return n}),[]),g=u((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=ci(e).call(e,((e,t,n)=>e+n),0),a=ci(e).call(e,((e,t)=>e+t),0),r=(t*ci(e).call(e,((e,t,n)=>e+n*t),0)-n*a)/(t*ci(e).call(e,((e,t,n)=>e+n*n),0)-n*n),o=(a-r*n)/t;return e.map(((e,t)=>r*t+o))}),[]);return i((()=>{s(!0),(async()=>{let t=[...e];l&&c&&(t=m(t,c)),a(t),s(!1)})()}),[e,m,l,c]),i((()=>{if(!d)return;const e=setInterval((()=>{a((e=>[...e]))}),h);return()=>clearInterval(e)}),[d,h]),{processedData:n,isProcessing:o,decimateData:m,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:a}}(a,{enableRealTime:p,enableDecimation:b,maxDataPoints:1e3}),{isOptimizing:_,memoizedScales:T}=function(e,t){const{enableVirtualization:n=!1,enableMemoization:a=!0,debounceMs:s=100}=t||{},[l,c]=r(!1),h=o(null),m=d((()=>a?e.map((e=>{const t=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],n=t.length>0?t:[0];return{label:e.label,dataLength:e.data?.length||0,minValue:Math.min(...n),maxValue:Math.max(...n)}})):null),[e,a]),p=u((e=>{h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{e(),c(!1)}),s),c(!0)}),[s]),g=u(((t,a,r)=>{if(!n)return{start:0,end:e[0]?.data?.length||0};const o=Math.floor(t/a),i=Math.min(o+Math.ceil(r/a)+1,e[0]?.data?.length||0);return{start:Math.max(0,o-1),end:i}}),[n,e]);return i((()=>()=>{h.current&&clearTimeout(h.current)}),[]),{isOptimizing:l,memoizedScales:m,debouncedUpdate:p,getVisibleRange:g}}(A,{enableVirtualization:!1,enableMemoization:b,debounceMs:100}),{announcement:C,focusedPoint:L}=function(e,t){const{enableKeyboardNavigation:n=!0,enableScreenReader:a=!0,announceDataChanges:o=!0}=t||{},[s,l]=r({datasetIndex:0,pointIndex:0}),[c,d]=r(""),h=u(((t,a)=>{if(!n||!e.length)return;const r=e.length-1,o=(e[s.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),l((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),l((e=>({...e,pointIndex:Math.min(o,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),l((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),l((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),l((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),l((e=>({...e,pointIndex:o})));break;case"Enter":case" ":t.preventDefault(),a?.(s.datasetIndex,s.pointIndex)}}),[n,e,s]),m=u((e=>{a&&(d(e),setTimeout((()=>d("")),1e3))}),[a]);i((()=>{if(!o||!e.length)return;const t=ci(e).call(e,((e,t)=>e+(t.data?.length||0)),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,o,m]);const p=u((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const n=e.data?.length||0,a=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],r=a.length>0?Math.min(...a):0,o=a.length>0?Math.max(...a):0;return`Dataset ${t+1}: ${e.label}, ${n} points, range ${r} to ${o}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:s,announcement:c,handleKeyDown:h,announceData:m,getAccessibleDescription:p,setFocusedPoint:l}}(A,{enableScreenReader:g,enableKeyboardNavigation:g,announceDataChanges:g}),I=o({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[w,O]=r(null),R=o(null),M=o(null),[k,D]=r(!1),[B,P]=r({width:0,height:0});i((()=>{const e=M.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(P({width:Math.floor(t.width),height:Math.floor(t.height)}),D(!0))};t();const n=requestAnimationFrame((()=>{t()})),a=new ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t.contentRect;e>0&&n>0&&(P({width:Math.floor(e),height:Math.floor(n)}),D(!0))}}));return a.observe(e),()=>{cancelAnimationFrame(n),a.disconnect()}}),[]),i((()=>{l===Ie.DEFAULT_WIDTH&&c===Ie.DEFAULT_HEIGHT||(P({width:l,height:c}),D(!0))}),[l,c]);const z=u(((e,t,n,a,r,o)=>{O({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:o})}),[]),U=u((()=>{O(null)}),[]),F=o(null),G=u((e=>{m&&E&&E.panEnabled&&I.current.isDragging&&(F.current||(F.current=requestAnimationFrame((()=>{const t=R.current;if(!t)return void(F.current=null);const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top,o=a-I.current.dragStart.x,i=r-I.current.dragStart.y;E.setPanOffset({x:I.current.lastPan.x+o,y:I.current.lastPan.y+i}),F.current=null}))))}),[m,E]),V=u((e=>{if(!m||!E||!E.panEnabled)return;const t=R.current;if(!t)return;const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top;I.current.isDragging=!0,I.current.dragStart={x:a,y:r},I.current.lastPan={...E.panOffset}}),[m,E]),H=u((()=>{I.current.isDragging=!1}),[]),j=d((()=>({onDataPointClick:h,onPointHover:z,onPointLeave:U,onMouseMove:G,onMouseDown:V,onMouseUp:H,onWheel:()=>{}})),[h,z,U,G,V,H]),Y=d((()=>({announcement:C,focusedPoint:L,getAccessibleDescription:()=>"Chart description"})),[C,L]),W=d((()=>E?`translate(${E.panOffset.x}px, ${E.panOffset.y}px) scale(${E.zoomLevel})`:""),[E?.panOffset.x,E?.panOffset.y,E?.zoomLevel]),K=d((()=>{if(!k||0===B.width||0===B.height)return null;const e=y(A,B.width,B.height,void 0,s);if(!e)return null;const t=N(A.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:A.map(((e,n)=>({...e,color:e.color||t[n]})))}}),[A,s,B.width,B.height,k,y,N]);if(i((()=>()=>{F.current&&cancelAnimationFrame(F.current)}),[]),i((()=>{const e=R.current;if(!e||!m||!E)return;const t=e=>{if(void 0===E.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,n=Math.max(.2,Math.min(5,E.zoomLevel+t));E.setZoomLevel(n)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[m,E]),_)return t("div",{className:`${Ie.CONTENT_CLASS} ${Ie.LOADING_CLASS}`,children:[e("div",{className:Ie.LOADING_SPINNER_CLASS}),e("span",{className:Ie.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!k||0===B.width||0===B.height)return e("div",{ref:M,className:Ie.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!K)return null;const $=B.width,Q=B.height;return t(n,{children:[e("div",{ref:M,className:Ie.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t("svg",{ref:R,width:$,height:Q,viewBox:`0 0 ${$} ${Q}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:W,transformOrigin:"center center",willChange:E?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:G,onMouseDown:V,onMouseUp:H,onMouseLeave:H,children:[t("g",{className:"c-chart__grid-group",children:[K.datasets[0]?.data.map(((t,n)=>e("line",{x1:K.scales.xScale(n,K.datasets[0]?.data.length),y1:0,x2:K.scales.xScale(n,K.datasets[0]?.data.length),y2:Q,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+n))),Array.from({length:5}).map(((t,n)=>{const a=K.scales.minValue+(K.scales.maxValue-K.scales.minValue)*(n/4);return e("line",{x1:0,y1:K.scales.yScale(a),x2:$,y2:K.scales.yScale(a),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+n)}))]}),S({scales:K.scales,colors:K.colors,datasets:K.datasets,interactionState:{hoveredIndex:w?.pointIndex??null,selectedIndex:null},handlers:j,accessibility:Y,hoveredPoint:w,toolbarState:E?{showTooltips:E.toolbarState?.showTooltips,showLegend:E.toolbarState?.showLegend,animationsEnabled:E.toolbarState?.animationsEnabled,showGrid:E.toolbarState?.showGrid}:void 0,config:s}),m&&E?.panEnabled&&t("g",{className:"c-chart__crosshair",children:[e("line",{x1:0,y1:Q/2,x2:$,y2:Q/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),e("line",{x1:$/2,y1:0,x2:$/2,y2:Q,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),e("div",{"aria-live":"polite",className:"u-visually-hidden",children:C})]})})));gi.displayName="ChartRenderer";const fi=s(l((({type:t,datasets:n=[],config:a={},renderContent:r,interactive:o=!0,enableRealTime:i=!1,enableAccessibility:s=!0,enablePerformanceOptimization:l=!0,onDataPointClick:c,...d},h)=>{const m=u((e=>r(e)),[r]);return e(mi,{ref:h,type:t,datasets:n,config:a,...d,children:e(gi,{datasets:n,config:a,interactive:o,enableRealTime:i,enableAccessibility:s,enablePerformanceOptimization:l,onDataPointClick:c,renderContent:m})})})));fi.displayName="BaseChart";const bi=s(l((({datasets:t=[],config:n={},chartType:a="line",particleEffects:r,onDataPointClick:s,...l},c)=>{const d=o(0),h=o(0),m=o([]);i((()=>{const e=t=>{h.current=t,d.current=requestAnimationFrame(e)};return d.current=requestAnimationFrame(e),()=>{d.current&&cancelAnimationFrame(d.current)}}),[]);const p=u((({scales:t,colors:n,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:c})=>{if(!o.length)return null;const d=40,u=t.width-80,p=t.height-80,g=[];if(o.forEach(((t,r)=>{const o=t.color||n[r%n.length];switch(a){case"bar":t.data.forEach(((n,a)=>{const s=u/t.data.length*.8,l=d+a*(u/t.data.length)+(u/t.data.length-s)/2,c=n.value/100*p,m=d+p-c;g.push(e("rect",{x:l,y:m,width:s,height:c,fill:o,style:{transform:`scaleY(${.1*Math.sin(.01*h.current+.2*a)+.9})`,transformOrigin:"bottom"},onClick:()=>i.onDataPointClick?.(n,r,a)},`bar-${r}-${a}`))}));break;default:{const n=t.data.map(((e,n)=>({x:d+n/(t.data.length-1)*u,y:d+p-e.value/100*p})));if(n.length>0){const s="M "+n.map((e=>`${e.x},${e.y}`)).join(" L ");if("area"===a){const t=`${s} L ${d+u},${d+p} L 40,${d+p} Z`;g.push(e("path",{d:t,fill:o,fillOpacity:"0.3",style:{transform:`translateY(${2*Math.sin(.01*h.current)}px)`}},"area-"+r))}g.push(e("path",{d:s,stroke:o,fill:"none",className:"c-chart__data-line",style:{transform:`translateY(${2*Math.sin(.01*h.current)}px)`}},"line-"+r)),n.forEach(((n,a)=>{g.push(e("circle",{cx:n.x,cy:n.y,r:"4",fill:o,style:{transform:`scale(${1+.2*Math.sin(.01*h.current+a)})`},onClick:()=>i.onDataPointClick?.(t.data[a],r,a)},`point-${r}-${a}`))}))}break}}})),r?.enabled)for(let a=0;a<r.count;a++){const t=m.current[a];t&&g.push(e("circle",{cx:t.x,cy:t.y,r:t.size,fill:t.color,style:{opacity:t.life}},"particle-"+a))}return e("g",{children:g})}),[a,r]);return e(fi,{ref:c,type:"line",datasets:t,config:n,renderContent:p,onDataPointClick:s,...l})})));bi.displayName="AnimatedChart";const Si=s((({dataPoint:a,datasetLabel:s,datasetColor:l,position:c,visible:d,customRenderer:u})=>{const h=o(null),[m,p]=r(c);return i((()=>{if(!d||!h.current)return;const e=h.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;let a=c.x,r=c.y;a=a+e.width>t-16?c.x-e.width-12:c.x+12,r=r+e.height>n-16?c.y-e.height-12:c.y-e.height/2,a=Math.max(16,Math.min(a,t-e.width-16)),r=Math.max(16,Math.min(r,n-e.height-16)),p({x:a,y:r})}),[c,d]),d&&a?O(e("div",{ref:h,className:"c-chart__tooltip",style:{left:m.x+"px",top:m.y+"px",opacity:d?1:0,visibility:d?"visible":"hidden",transition:"opacity 0.2s ease, transform 0.2s ease",transform:"translateZ(0)",position:"fixed",zIndex:1e3,pointerEvents:"none"},children:u?u(a):t(n,{children:[e("div",{className:"c-chart__tooltip-title",children:a.label}),t("div",{className:"c-chart__tooltip-content",children:[s&&t("div",{className:"c-chart__tooltip-dataset",children:[l&&e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:l}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[s,":"]}),e("span",{className:"c-chart__tooltip-value",children:a.value})]}),a.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(a.metadata).map((([n,a])=>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:a+""})]},n)))})]})]})}),document.body):null}));Si.displayName="ChartTooltip";const vi=s(l((({datasets:a=[],config:r={},areaOptions:o={},onDataPointClick:i,...s},l)=>{const c={showArea:!0,fillOpacity:.3,useGradient:!0,...o};return e(fi,{ref:l,type:"area",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:d})=>{if(!o.length)return null;const u=l?.showTooltips??d?.showTooltips??!0;return t(n,{children:[o.map(((n,o)=>{const l=n.color||r[o],d=n.data||[];if(0===d.length)return null;const u=d.map(((e,t)=>({x:a.xScale(t,d.length),y:a.yScale(e.value)}))),h=`M ${u.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${u[u.length-1]?.x},${a.height} L ${u[0]?.x},${a.height} Z`;return t("g",{children:[e("path",{d:h,fill:l,fillOpacity:c.fillOpacity||.3,className:"c-chart__area-fill"}),d.map(((t,n)=>{const r=a.xScale(n,d.length),c=a.yScale(t.value),u=s?.datasetIndex===o&&s?.pointIndex===n;return e("circle",{cx:r,cy:c,r:u?6:4,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__area-point "+(u?"c-chart__area-point--hovered":""),onClick:()=>i.onDataPointClick?.(t,o,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(o,n,r,c,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave,style:{cursor:"pointer"}},"point-"+n)}))]},"dataset-"+o)})),u&&s&&e(Si,{dataPoint:o[s.datasetIndex]?.data?.[s.pointIndex]??{label:"",value:0,color:""},datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,...s})})));function Ei(e,t={}){const[n,a]=r(null),[o,i]=r(0),[s,l]=r(!1),c=u(((e,n,a,r={top:20,right:30,bottom:40,left:50},o=!1)=>{if(!e.length)return[];const i=n-r.left-r.right,s=a-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),u=Math.min(0,...d),h=Math.max(...d)-u,m=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let b,S,v,E;if(o){const e=s/l,n=e*(1-(t.groupPadding||.2));E=t.stacked?n:n/c,S=r.top+g*e+(e-n)/2,t.stacked||(S+=d*E*(1+(t.barPadding||.05))),b=r.left,v=(f-u)/h*i,t.stacked&&d>0?(b=r.left+(p[g]-u)/h*i,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=i/l,n=e*(1-(t.groupPadding||.2));if(v=t.stacked?n:n/c,b=r.left+g*e+(e-n)/2,t.stacked||(b+=d*v*(1+(t.barPadding||.05))),E=(f-u)/h*s,S=a-r.bottom-E,t.stacked&&d>0){const e=(p[g]-u)/h*s;S=a-r.bottom-e-E,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(o?v:E)<t.minBarHeight&&(o?v=t.minBarHeight:(E=t.minBarHeight,S=a-r.bottom-E)),t.maxBarWidth&&(o?E:v)>t.maxBarWidth)if(o)E=t.maxBarWidth,S=r.top+g*(s/l)+(s/l-E)/2;else{v=t.maxBarWidth;const e=(n-r.left-r.right)/l;b=r.left+g*e+(e-v)/2}m.push({x:Math.max(b,0),y:Math.max(S,0),width:Math.max(v,0),height:Math.max(E,0),value:f,datasetIndex:d,pointIndex:g})}))})),m}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),d=u((()=>{if(!t.enableAnimations)return;l(!0),i(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);i(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):l(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),h=u(((e,t,n,r,o,i)=>{a({datasetIndex:e,pointIndex:t,chartX:n,chartY:r,clientX:o,clientY:i})}),[]),m=u((()=>{a(null)}),[]),p=u((e=>t.useGradients?e.map(((e,t)=>{const n=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:n,opacity:.8},{offset:"100%",color:n,opacity:.4}]}})):[]),[t.useGradients]),g=u((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t.valueFormatter]);return{hoveredBar:n,animationProgress:o,isAnimating:s,calculateBarDimensions:c,generateGradients:p,getDataLabelPosition:u(((e,n=!1)=>{const{x:a,y:r,width:o,height:i}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:a+o/2,y:r+i/2};case"outside":return{x:n?a+o+5:a+o/2,y:n?r+i/2:r-5}}}),[t.dataLabelPosition]),handleBarHover:h,handleBarLeave:m,startAnimation:d,formatValue:g,setHoveredBar:a,setAnimationProgress:i,setIsAnimating:l}}vi.displayName="AreaChart";const yi=s(l((({datasets:a=[],config:r={},barOptions:o={},horizontal:i=!1,onDataPointClick:s,...l},c)=>{const{calculateBarDimensions:d,handleBarHover:u,handleBarLeave:h,hoveredBar:m,formatValue:p}=Ei(0,o);return e(fi,{ref:c,type:"bar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:h})=>{if(!s.length)return null;const m=u?.showTooltips??h?.showTooltips??!0,g=d(s,a.width,a.height,a.padding,i);return t(n,{children:[g.map(((n,a)=>{const i=s[n.datasetIndex];if(!i)return null;const d=i.data?.[n.pointIndex],u=i.color||r[n.datasetIndex],h=c?.datasetIndex===n.datasetIndex&&c?.pointIndex===n.pointIndex;return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:u,className:"c-chart__bar "+(h?"c-chart__bar--hovered":""),onClick:()=>d&&l.onDataPointClick?.(d,n.datasetIndex,n.pointIndex),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(n.datasetIndex,n.pointIndex,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),o.showValues&&e("text",{x:n.x+n.width/2,y:n.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:p(n.value)})]},"bar-"+a)})),m&&c&&e(Si,{dataPoint:s[c.datasetIndex]?.data?.[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));yi.displayName="BarChart";const Ni=s(l((({bubbleData:a=[],config:r={},bubbleOptions:o={},onDataPointClick:i,...s},l)=>{const{minBubbleSize:c=5,maxBubbleSize:d=50,bubbleOpacity:u=.7,showLabels:h=!0,labelPosition:m="center",enableAnimations:p=!0,animationDuration:g=1e3,showSizeLegend:f=!0,sizeLegendTitle:b="Size",colorScheme:S=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:v=!1}=o;return e(fi,{ref:l,type:"bubble",datasets:[{label:"Bubbles",data:a}],config:r,renderContent:({scales:r,colors:o,datasets:i,handlers:s,hoveredPoint:l,toolbarState:f,config:b})=>{if(!a.length)return null;const E=f?.showTooltips??b?.showTooltips??!0,y=a.map((e=>e.size)),N=Math.min(...y),A=Math.max(...y)-N||1,x=a.map(((n,a)=>{const o=c+(n.size-N)/A*(d-c),i=r.padding.left+n.x/100*r.innerWidth,f=r.padding.top+r.innerHeight-n.y/100*r.innerHeight;let b=n.color;if(!b)if(v){const e=Math.floor((S.length-1)*((n.size-N)/A));b=S[e]}else b=S[a%S.length];return t("g",{children:[e("circle",{cx:i,cy:f,r:o,fill:b,opacity:u,className:"c-chart__bubble "+(l?.pointIndex===a?"c-chart__bubble--hovered":""),style:p?{transition:`all ${g}ms ease`}:{},onClick:()=>s.onDataPointClick?.(n,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,i,f,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),h&&e("text",{x:i,y:f,textAnchor:"middle",dominantBaseline:"center"===m?"middle":"top"===m?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:n.label})]},"bubble-"+a)}));return t(n,{children:[x,E&&l&&l.pointIndex<a.length&&a[l.pointIndex]&&e(Si,{dataPoint:a[l.pointIndex],datasetLabel:"Bubbles",datasetColor:a[l.pointIndex]?.color||S[l.pointIndex%S.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Ni.displayName="BubbleChart";const Ai=s(l((({candlestickData:a=[],config:r={},candlestickOptions:o={},onDataPointClick:i,...s},l)=>{const{showVolume:c=!0,volumeHeightRatio:d=.2,upColor:u="var(--atomix-success-bg-subtle)",downColor:h="var(--atomix-error-bg-subtle)",wickColor:m="var(--atomix-brand-border-subtle)",borderColor:p="var(--atomix-primary-border-subtle)",showMovingAverages:g=!1,movingAveragePeriods:f=[7,21],movingAverageColors:b=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:S="short",dateFormatter:v,showGrid:E=!0,gridColor:y="var(--atomix-brand-text-emphasis)",showTooltips:N=!0}=o;return e(fi,{ref:l,type:"candlestick",datasets:[{label:"Candlestick Data",data:a.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:r,renderContent:({scales:r,colors:i,datasets:s,handlers:l,hoveredPoint:S,toolbarState:v,config:N})=>{if(!a.length)return null;const A=v?.showTooltips??N?.showTooltips??o.showTooltips??!0,x=40,_=r.width-80,T=r.height-80,C=c?T*d:0,L=T-C,I=a.map((e=>e.high)),w=a.map((e=>e.low)),O=Math.min(...w),R=Math.max(...I),M=R-O||1,k=a.map((e=>e.volume||0)),D=Math.max(...k)||1,B=[];if(E){for(let n=0;5>=n;n++){const t=x+n/5*L;B.push(e("line",{x1:x,y1:t,x2:x+_,y2:t,stroke:y,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+n))}const t=Math.max(1,Math.floor(a.length/10));for(let n=0;n<a.length;n+=t){const t=x+n/(a.length-1)*_;B.push(e("line",{x1:t,y1:x,x2:t,y2:x+L,stroke:y,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+n))}}const P=a.map(((n,r)=>{const o=n.close<n.open?h:u,i=x+r/(a.length-1)*_,s=x+(R-n.high)/M*L,c=x+(R-n.low)/M*L,d=x+(R-n.open)/M*L,g=x+(R-n.close)/M*L,f=Math.min(d,g),b=Math.abs(d-g),S=Math.max(1,_/a.length*.8);return t("g",{children:[e("line",{x1:i,y1:s,x2:i,y2:c,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-wick"}),e("rect",{x:i-S/2,y:f,width:S,height:b||1,fill:o,stroke:p,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,r,i,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave,onClick:()=>l.onDataPointClick?.(n,0,r)})]},"candle-"+r)})),z=[];if(c){const t=x+L+20;a.forEach(((n,r)=>{if(!n.volume)return;const o=n.close<n.open?h:u,i=x+r/(a.length-1)*_,s=n.volume/D*(C-20),l=Math.max(1,_/a.length*.6);z.push(e("rect",{x:i-l/2,y:t+C-s,width:l,height:s,fill:o,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const U=[];return g&&f.forEach(((t,n)=>{const r=((e,t)=>{const n=[];for(let r=0;r<e.length;r++){var a;if(t-1>r){n.push(NaN);continue}const o=ci(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.close),0);n.push(o/t)}return n})(a,t),o=b?.[n]||"var(--atomix-warning)",i=r.map(((e,t)=>isNaN(e)?null:{x:x+t/(a.length-1)*_,y:x+(R-e)/M*L})).filter(Boolean);if(i.length>1){const n="M "+i.map((e=>`${e.x},${e.y}`)).join(" L ");U.push(e("path",{d:n,stroke:o,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+t))}})),t(n,{children:[B,P,z,U,A&&S&&a[S.pointIndex]&&e(Si,{dataPoint:a[S.pointIndex],datasetLabel:"Candlestick",position:{x:S.clientX,y:S.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Ai.displayName="CandlestickChart";const xi=s(l((({datasets:a=[],config:r={},pieOptions:o={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:i={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:s,...l},c)=>{const u=a.length>0?a[0]:{label:"",data:[]},h=d((()=>{if(!u?.data?.length)return null;const e=u?.data?.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[u]);return e(fi,{ref:c,type:"donut",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:d,config:m})=>{var p;if(!h)return null;const g=a.width,f=a.height,b=Math.min(g,f)/2*.8,S=b*(i.innerRadiusRatio??.6),v=g/2,E=f/2,y=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],N=u?.color?[u.color]:u?.data?.map(((e,t)=>y[t%y.length]))||y,A=ci(p=h.validDataPoints).call(p,((e,t)=>e+t.value),0),x=(o.padAngle||1)*Math.PI/180;let _=(o.startAngle||0)*Math.PI/180;const T=h.validDataPoints.map(((e,t)=>{const n=e.value/A*(2*Math.PI)-x,a=_,r=_+n,o=(a+r)/2,i=.75*b,s=v+Math.cos(o)*i,l=E+Math.sin(o)*i,c=v+S*Math.cos(a),d=E+S*Math.sin(a),u=n>Math.PI?1:0,h=[`M ${c} ${d}`,`L ${v+b*Math.cos(a)} ${E+b*Math.sin(a)}`,`A ${b} ${b} 0 ${u} 1 ${v+b*Math.cos(r)} ${E+b*Math.sin(r)}`,`L ${v+S*Math.cos(r)} ${E+S*Math.sin(r)}`,`A ${S} ${S} 0 ${u} 0 ${c} ${d}`,"Z"].join(" ");return _=r+x,{path:h,color:e.color||N[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/A*100}})),C=d?.showTooltips??m?.showTooltips??!0;return t(n,{children:[T.map(((n,a)=>{const r=c?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__donut-slice "+(r?"c-chart__donut-slice--hovered":""),onClick:()=>l.onDataPointClick?.(n.dataPoint,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),o.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:n.dataPoint.label}),o.showPercentages&&t("text",{x:n.labelPosition.x,y:n.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[n.percentage.toFixed(1),"%"]})]},"slice-"+a)})),i.showTotal&&t("g",{children:[e("text",{x:v,y:E-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:i.centerLabel}),e("text",{x:v,y:E+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==i.centerValue?i.centerValue:A.toLocaleString()})]}),C&&c&&c.pointIndex<T.length&&T[c.pointIndex]&&e(Si,{dataPoint:T[c.pointIndex].dataPoint,datasetLabel:u?.label,datasetColor:T[c.pointIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));xi.displayName="DonutChart";const _i=s(l((({funnelData:a=[],config:r={},funnelOptions:o={},onDataPointClick:i,...s},l)=>{const{direction:c="vertical",showLabels:d=!0,showValues:u=!0,showPercentages:h=!1,labelPosition:m="outside",neckWidth:p=.3,neckHeight:g=.2,segmentGap:f=2,colorScheme:b=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:S=!0,animate:v=!0,animationDuration:E=1e3,animationDelay:y=200,valueFormatter:N=e=>e.toLocaleString(),showConversionRates:A=!0,conversionRatePosition:x="between",proportional:_=!0,minSegmentRatio:T=.1}=o;return e(fi,{ref:l,type:"funnel",datasets:[{label:"Funnel Data",data:a}],config:r,renderContent:({scales:r,colors:o,datasets:i,handlers:s,hoveredPoint:l,toolbarState:m,config:g})=>{if(!a.length)return null;const S=m?.showTooltips??g?.showTooltips??!0,C=r.width-120,L=r.height-120,I=Math.max(...a.map((e=>e.value))),w=a.map(((e,t)=>{const n=e.value/I*100,r=t>0&&a[t-1]?e.value/a[t-1].value*100:100;return{...e,percentage:n,conversionRate:r,index:t}})),O=[];if("vertical"===c){const n=(L-(a.length-1)*f)/a.length;w.forEach(((r,o)=>{const i=60+o*(n+f);let l;if(_){const e=Math.max(r.percentage/100,T);l=C*e}else{const e=Math.max(1-o/(a.length-1)*(1-p),T);l=C*e}const c=60+(C-l)/2;let m=r.color||b[o%b.length];const g=w[o+1];let S;if(g)if(_){const e=Math.max(g.percentage/100,T);S=C*e}else{const e=Math.max(1-(o+1)/(a.length-1)*(1-p),T);S=C*e}else S=l*p;const L=60+(C-S)/2,I=i+n,R=`\n M ${c} ${i}\n L ${c+l} ${i}\n L ${L+S} ${I}\n L ${L} ${I}\n Z\n `;O.push(t("g",{children:[e("path",{d:R,fill:m,className:"c-chart__funnel-segment",style:{transition:v?`all ${E}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${o*y}ms`:"none"},onClick:()=>s.onDataPointClick?.(r,0,o)}),(d||u||h)&&t("text",{x:c+l/2,y:i+n/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[d&&r.label,u&&e("tspan",{x:c+l/2,dy:"1.2em",children:N(r.value)}),h&&t("tspan",{x:c+l/2,dy:"1.2em",children:[r.percentage.toFixed(1),"%"]})]})]},"segment-"+o)),A&&g&&"between"===x&&O.push(t("text",{x:c+l/2,y:i+n+f/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",r.conversionRate.toFixed(1),"%"]},"conversion-"+o))}))}return t(n,{children:[e("g",{children:O}),S&&l&&a[l.pointIndex]&&e(Si,{dataPoint:a[l.pointIndex],datasetLabel:"Funnel Data",datasetColor:a[l.pointIndex]?.color||o[l.pointIndex%o.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s})})));_i.displayName="FunnelChart";const Ti=s(l((({value:n,min:a=0,max:r=100,config:o={},gaugeOptions:i={},onDataPointClick:s,...l},c)=>{const{startAngle:d=180,endAngle:u=0,thickness:h=.2,showNeedle:m=!0,needleColor:p="var(--atomix-brand-text-emphasis)",showValue:g=!0,valueFormatter:f=e=>e.toFixed(1),showMinMaxLabels:b=!0,showTicks:S=!0,majorTicks:v=5,minorTicks:E=4,colorZones:y=[],animate:N=!0,animationDuration:A=1e3,animationEasing:x="easeOutCubic",useGradient:_=!1,label:T="",labelPosition:C="bottom"}=i;return e(fi,{ref:c,type:"gauge",datasets:[{label:"Gauge Value",data:[{label:"Value",value:n}]}],config:o,renderContent:({scales:o,colors:i,datasets:s,handlers:l,hoveredPoint:c,toolbarState:_,config:L})=>{const I=o.width,w=_?.animationsEnabled??L?.animate??N,O=o.height,R=I/2,M=O/2,k=Math.min(I,O)/2*.9,D=-d*Math.PI/180,B=-u*Math.PI/180,P=B-D,z=Math.min(Math.max(n,a),r),U=D+(z-a)/(r-a)*P,F=(e,t,n,a,r,o)=>{const i=n*(1-o),s=e+n*Math.cos(a),l=t+n*Math.sin(a),c=e+n*Math.cos(r),d=t+n*Math.sin(r),u=e+i*Math.cos(r),h=t+i*Math.sin(r),m=e+i*Math.cos(a),p=t+i*Math.sin(a),g=Math.abs(r-a)>Math.PI?1:0,f=r>a?1:0;return`M ${s} ${l} \n A ${n} ${n} 0 ${g} ${f} ${c} ${d}\n L ${u} ${h}\n A ${i} ${i} 0 ${g} ${1-f} ${m} ${p}\n Z`},G=[];for(const t of y){const n=D+(t.from-a)/(r-a)*P,o=D+(t.to-a)/(r-a)*P;G.push(e("path",{d:F(R,M,k,n,o,h),fill:t.color},`zone-${t.from}-${t.to}`))}const V=[];if(S){for(let t=0;v>=t;t++){const n=a+t/v*(r-a),o=D+t/v*P,i=.95*k,s=.05*k,l=R+i*Math.cos(o),c=M+i*Math.sin(o),d=R+(i-s)*Math.cos(o),u=M+(i-s)*Math.sin(o);if(V.push(e("line",{x1:l,y1:c,x2:d,y2:u,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+t)),b){const a=R+(i-s-10)*Math.cos(o),r=M+(i-s-10)*Math.sin(o);V.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:n},"label-"+t))}}for(let t=0;v*E>t;t++){const n=D+t/(v*E)*P,a=.95*k,r=.025*k,o=R+a*Math.cos(n),i=M+a*Math.sin(n),s=R+(a-r)*Math.cos(n),l=M+(a-r)*Math.sin(n);V.push(e("line",{x1:o,y1:i,x2:s,y2:l,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+t))}}const H=m?t("g",{children:[e("line",{x1:R,y1:M,x2:R+.8*k*Math.cos(U),y2:M+.8*k*Math.sin(U),stroke:p,strokeWidth:"3",strokeLinecap:"round"}),e("circle",{cx:R,cy:M,r:"8",fill:p})]}):null,j=g?e("text",{x:R,y:M+10,textAnchor:"middle",fontSize:"24",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:f(z)}):null,Y=T?e("text",{x:R,y:"top"===C?M-.7*k:M+.7*k,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:T}):null;return t("g",{children:[e("path",{d:F(R,M,k,D,B,h),fill:"var(--atomix-secondary-bg-subtle)"}),G,e("path",{d:F(R,M,k,D,U,h),fill:"var(--atomix-brand-bg-subtle)",style:{transition:w?`all ${A}ms ${x}`:"none"}}),V,H,j,Y]})},onDataPointClick:s,...l})})));Ti.displayName="GaugeChart";const Ci={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},Li=s(l((({data:a=[],config:o={},colorScale:i={scheme:"viridis",steps:9},cellConfig:s={width:40,height:40,spacing:2,borderRadius:4,showLabels:!1},showColorLegend:l=!0,showGrid:c=!0,onDataPointClick:h,...m},p)=>{const[g,f]=r(null),b=d((()=>{if(!a.length)return{matrix:[],xLabels:[],yLabels:[]};const e=Array.from(new Set(a.map((e=>e.x)))).sort(),t=Array.from(new Set(a.map((e=>e.y)))).sort(),n=[];return t.forEach((t=>{const r=[];e.forEach((e=>{const n=a.find((n=>n.x===e&&n.y===t));r.push(n||null)})),n.push(r)})),{matrix:n,xLabels:e,yLabels:t}}),[a]),S=u((e=>{if(!b.matrix.length)return"var(--atomix-secondary-bg-subtle)";let t,n=i.min,r=i.max;if(void 0===n||void 0===r){const e=a.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===n&&(n=Math.min(...e)),void 0===r&&(r=Math.max(...e))}if("custom"===i.scheme&&i.colors)t=i.colors;else{const e=i.scheme;t=Ci[e]||Ci.viridis}const o=i.steps||t.length,s=r-n;return 0===s?t[0]:t[Math.floor(Math.min(Math.floor((e-n)/s*o),o-1)/o*(t.length-1))]}),[b,i,a]),v=[{label:"Heatmap Data",data:a.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return e(fi,{ref:p,type:"heatmap",datasets:v,config:o,renderContent:({scales:a,colors:r,datasets:o,handlers:c,hoveredPoint:d,toolbarState:u,config:h})=>{const{matrix:m,xLabels:p,yLabels:v}=b,E=u?.showTooltips??h?.showTooltips??!0;if(!m.length)return null;const y=s.width||40,N=s.height||40,A=s.spacing||2,x=s.borderRadius||4;return p.length,v.length,t(n,{children:[t("g",{children:[e("defs",{children:l&&(()=>{const t=Ci[i.scheme]||Ci.viridis;return t&&0!==t.length?e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:t.map(((n,a)=>e("stop",{offset:a/(t.length-1)*100+"%",stopColor:n},a)))}):null})()}),m.map(((n,a)=>n.map(((n,r)=>{if(!n)return null;const o=100+r*(y+A),i=50+a*(N+A),l=S(n.value),d=g===n;return t("g",{children:[e("rect",{x:o,y:i,width:y,height:N,rx:x,ry:x,fill:l,className:"c-chart__heatmap-cell "+(d?"c-chart__heatmap-cell--hovered":""),style:{transition:"all 0.2s ease",transform:d?"scale(1.05)":"scale(1)",transformOrigin:"center"},onClick:()=>{n&&c.onDataPointClick?.({...n,label:n.label||`${n.x}, ${n.y}`,value:n.value},a,r)},onMouseEnter:e=>{f(n)},onMouseLeave:()=>f(null)}),s.showLabels&&n.label&&e("text",{x:o+y/2,y:i+N/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:n.label})]},`cell-${a}-${r}`)})))),p.map(((t,n)=>{const a=100+n*(y+A)+y/2,r=50+m.length*(N+A)+20;return e("text",{x:a,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"x-label-"+n)})),v.map(((t,n)=>e("text",{x:80,y:50+n*(N+A)+N/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"y-label-"+n))),l&&t("g",{transform:"translate(600, 100)",children:[e("rect",{x:"0",y:"0",width:"20",height:"200",fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid"}),e("text",{x:"-10",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),e("text",{x:"25",y:"5",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),e("text",{x:"25",y:"200",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),E&&d&&o[d.datasetIndex]?.data?.[d.pointIndex]&&e(Si,{dataPoint:o[d.datasetIndex].data[d.pointIndex],datasetLabel:o[d.datasetIndex]?.label,datasetColor:o[d.datasetIndex]?.color||r[d.datasetIndex%r.length],position:{x:d.clientX,y:d.clientY},visible:!0})]})},onDataPointClick:h,...m})})));function Ii(e,t={}){const[n,a]=r(1),[o,i]=r({x:0,y:0}),[s,l]=r(null),c=u(((e,t)=>{const n=[];for(let r=t-1;r<e.length;r++){var a;const o=ci(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.value),0)/t,i=e[r];i&&n.push({label:i.label,value:o,color:"rgba(255, 255, 255, 0.5)"})}return n}),[]),h=u((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=ci(e).call(e,((e,t,n)=>e+n),0),a=ci(e).call(e,((e,t)=>e+t.value),0),r=(t*ci(e).call(e,((e,t,n)=>e+n*t.value),0)-n*a)/(t*ci(e).call(e,((e,t,n)=>e+n*n),0)-n*n),o=(a-r*n)/t;return e.map(((e,t)=>({label:e.label,value:r*t+o,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=u(((e,t=.4)=>{if(2>e.length)return"";const n=e.map(((n,a)=>{if(0===a||a===e.length-1)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const r=e[a-1],o=e[a+1];if(!r||!o)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const i=o.x-r.x,s=o.y-r.y;return{cp1x:n.x-i*t,cp1y:n.y-s*t,cp2x:n.x+i*t,cp2y:n.y+s*t}})),a=e[0];if(!a)return"";let r=`M ${a.x},${a.y}`;for(let o=1;o<e.length;o++){const t=n[o-1],a=n[o],i=e[o];t&&a&&i&&(r+=` C ${t.cp2x},${t.cp2y} ${a.cp1x},${a.cp1y} ${i.x},${i.y}`)}return r}),[]),p=u(((e,r,o)=>{if(!t.enableZoom)return;const s=Math.max(.1,Math.min(10,n*(e>0?.9:1.1)));a(s);const l=s/n;i((e=>({x:r-(r-e.x)*l,y:o-(o-e.y)*l})))}),[n,t.enableZoom]),g=u(((e,n)=>{t.enablePan&&i((t=>({x:t.x+e,y:t.y+n})))}),[t.enablePan]),f=u((()=>{a(1),i({x:0,y:0})}),[]),b=u(((e,t,n,a,r,o)=>{l({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:o})}),[]),S=u((()=>{l(null)}),[]),v=d((()=>e.map((e=>{const n={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(n.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:c(e.data,t)})))),t.showTrendLines&&(n.trendLine=h(e.data)),n}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,c,h]);return{zoomLevel:n,panOffset:o,hoveredPoint:s,processedDatasets:v,handleZoom:p,handlePan:g,resetView:f,handlePointHover:b,handlePointLeave:S,calculateMovingAverage:c,calculateTrendLine:h,generateSmoothPath:m,setZoomLevel:a,setPanOffset:i,setHoveredPoint:l}}Li.displayName="HeatmapChart";const wi=s(l((({datasets:a=[],config:r={},lineOptions:o={},onDataPointClick:i,onRealTimeUpdate:s,onZoomChange:l,onPanChange:c,onBrushSelection:d,...u},h)=>{const m={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...o},{processedDatasets:p,generateSmoothPath:g,calculateMovingAverage:f,handlePointHover:b,handlePointLeave:S,hoveredPoint:v}=Ii(a,m);return e(fi,{ref:h,type:"line",datasets:p,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:c})=>{if(!o.length)return null;const d=l?.showTooltips??c?.showTooltips??!0;return l?.animationsEnabled??c?.animate??m.smooth,t(n,{children:[o.map(((n,o)=>{const l=n.color||r[o],c=n.data?.length||0;if(0===c)return null;const d=n.data?.map(((e,t)=>({x:a.xScale(t,c),y:a.yScale(e.value)})))||[],u=m.smooth?g(d):"M "+d.map((e=>`${e.x},${e.y}`)).join(" L ");return t("g",{children:[m.showArea&&e("path",{d:`${u} L ${d[d.length-1]?.x||0},${a.yScale(0)} L ${d[0]?.x||0},${a.yScale(0)} Z`,fill:l,fillOpacity:m.fillOpacity||.3,className:"c-chart__area-path"}),e("path",{d:u,stroke:l,strokeWidth:m.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),m.showDataPoints&&n.data?.map(((n,r)=>{const d=a.xScale(r,c),u=a.yScale(n.value),h=s?.datasetIndex===o&&s?.pointIndex===r;return t("g",{children:[e("circle",{cx:d,cy:u,r:h?1.5*m.pointRadius:m.pointRadius,fill:l,stroke:"white",strokeWidth:h?2:1,className:"c-chart__data-point "+(h?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(o,r,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave,onClick:()=>i.onDataPointClick?.(n,o,r),style:{cursor:"pointer"}}),m.showPointLabels&&e("text",{x:d,y:u-15,textAnchor:"middle",fontSize:"12",fill:l,className:"c-chart__point-label",children:n.value})]},"point-"+r)}))]},"dataset-"+o)})),d&&s&&o[s.datasetIndex]?.data?.[s.pointIndex]&&e(Si,{dataPoint:o[s.datasetIndex].data[s.pointIndex],datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,interactive:!0,enableAccessibility:!0,...u})})));wi.displayName="LineChart";const Oi=s(l((({datasets:n=[],config:a={},yAxes:r=[],xAxes:o=[],multiAxisOptions:i={},onDataPointClick:s,...l},c)=>{const{showLegend:d=!0,legendPosition:u="top",syncAxes:h=!1,axisPadding:m=20,showTooltips:p=!0,tooltipPosition:g="nearest",interpolation:f="linear",showArea:b=!1,areaOpacity:S=.3,showDataPoints:v=!0,pointRadius:E=4,spanGaps:y=!1}=i;return e(fi,{ref:c,type:"line",datasets:n,config:a,renderContent:({scales:a,colors:i,datasets:s,handlers:l,hoveredPoint:c,toolbarState:h,config:m})=>{if(!n.length)return null;const p=h?.showGrid??!0,g=60,f=a.width-120,y=a.height-120,N=r.length?r:[{id:"y-axis-1",position:"left",label:"Y Axis"}],A=o.length?o:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],x={};n.forEach(((e,t)=>{const n=e.yAxisId||N[0]?.id||"y-axis-1";x[n]||(x[n]=[]),x[n].push({...e,index:t})}));const _={};Object.entries(x).forEach((([e,t])=>{const n=t.flatMap((e=>e.data.map((e=>e.value)))),a=Math.min(...n),r=Math.max(...n),o=r-a||1;_[e]={min:a,max:r,scale:y/o}}));const T=[];if(p)for(let t=0;5>=t;t++){const n=g+t/5*y;T.push(e("line",{x1:g,y1:n,x2:g+f,y2:n,className:"c-chart__grid"},"grid-"+t))}if(n.forEach(((t,n)=>{const a=t.yAxisId||N[0]?.id||"y-axis-1",r=_[a],o=t.color||i[n%i.length],s=t.data.map(((e,n)=>({x:g+n/(t.data.length-1)*f,y:r?g+y-(e.value-r.min)*r.scale:0})));let c="";if(s.length>0&&(c="M "+s.map((e=>`${e.x},${e.y}`)).join(" L ")),b&&c){const t=`${c} L ${g+f},${g+y} L 60,${g+y} Z`;T.push(e("path",{d:t,fill:o,fillOpacity:S},"area-"+n))}T.push(e("path",{d:c,stroke:o,fill:"none",className:"c-chart__data-line"},"line-"+n)),v&&s.forEach(((a,r)=>{const i=t.data[r];i&&T.push(e("circle",{cx:a.x,cy:a.y,r:E,fill:o,onClick:()=>l.onDataPointClick?.(i,n,r)},`point-${n}-${r}`))}))})),N.forEach((t=>{T.push(e("line",{x1:g,y1:g,x2:g,y2:g+y,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+t.id))})),A.forEach((t=>{T.push(e("line",{x1:g,y1:g+y,x2:g+f,y2:g+y,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+t.id))})),d){const r="top"===u?20:a.height-30;n.forEach(((a,o)=>{const s=a.color||i[o%i.length],l=g+o*f/n.length;T.push(t("g",{children:[e("rect",{x:l,y:r,width:"12",height:"12",fill:s,className:"c-chart__legend-item-color"}),e("text",{x:l+16,y:r+10,className:"c-chart__legend-item-text",children:a.label})]},"legend-"+o))}))}return e("g",{children:T})},onDataPointClick:s,...l})})));function Ri(e,t={}){const[n,a]=r(null),[o,i]=r(new Set),[s,l]=r(0),[c,h]=r(!1),m=d((()=>{const n=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return n.length?t.sortByValue?[...n].sort(((e,t)=>t.value-e.value)):n:[]}),[e,t.sortByValue]),p=d((()=>ci(m).call(m,((e,t)=>e+t.value),0)),[m]),g=d((()=>{if(!m.length||0>=p)return[];const e=400,n=200,a=150,r=a*(t.innerRadius||0),o=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let i=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return m.map(((t,l)=>{const c=t.value/p,d=2*c*Math.PI-s,u=i+d,h=i+d/2,m=e+a*Math.cos(i),g=n+a*Math.sin(i),f=e+a*Math.cos(u),b=n+a*Math.sin(u),S=d>Math.PI?1:0;let v;v=r>0?[`M ${m},${g}`,`A 150,150 0 ${S},1 ${f},${b}`,`L ${e+r*Math.cos(u)},${n+r*Math.sin(u)}`,`A ${r},${r} 0 ${S},0 ${e+r*Math.cos(i)},${n+r*Math.sin(i)}`,"Z"].join(" "):["M 400,200",`L ${m},${g}`,`A 150,150 0 ${S},1 ${f},${b}`,"Z"].join(" ");const E=(a+r)/2||105,y=e+E*Math.cos(h),N=n+E*Math.sin(h),A={dataPoint:t,index:l,startAngle:i,endAngle:u,midAngle:h,color:t.color||o[l%o.length],percentage:100*c,value:t.value,label:t.label,path:v,labelPosition:{x:y,y:N}};return i=u+s,A}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),f=u((()=>{if(!t.enableAnimations)return;h(!0),l(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);l(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):h(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),b=u(((e,t,n)=>{a(e)}),[]),S=u((()=>{a(null)}),[]),v=u((e=>{t.enableSelection&&i((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}),[t.enableSelection]),E=u((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const n=[];return!1!==t.showLabels&&n.push(e.label),t.showPercentages&&n.push(Math.round(e.percentage)+"%"),t.showValues&&n.push(e.value.toString()),n.join(" - ")}),[t.labelFormatter,t.showLabels,t.showPercentages,t.showValues]),y=u(((e,n)=>n&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),N=u((e=>o.has(e)),[o]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:n,selectedSlices:o,animationProgress:s,isAnimating:c,handleSliceHover:b,handleSliceLeave:S,handleSliceClick:v,startAnimation:f,formatLabel:E,getSliceTransform:y,isSliceSelected:N,setHoveredSlice:a,setSelectedSlices:i,setAnimationProgress:l,setIsAnimating:h}}Oi.displayName="MultiAxisChart";const Mi=s(l((({datasets:a=[],config:r={},pieOptions:o={},onDataPointClick:i,...s},l)=>{const c=a[0]?.data||[],{slices:d,handleSliceHover:u,handleSliceLeave:h,handleSliceClick:m,formatLabel:p,hoveredSlice:g,selectedSlices:f}=Ri(c,o);return e(fi,{ref:l,type:"pie",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:s,hoveredPoint:l,toolbarState:u,config:h})=>{if(!d.length)return null;const g=a.width,f=a.height,b=g/2,S=f/2,v=Math.min(g,f)/2*.8,E=d.map((e=>{const t=b+v*Math.cos(e.startAngle),n=S+v*Math.sin(e.startAngle),a=b+v*Math.cos(e.endAngle),r=S+v*Math.sin(e.endAngle),o=e.endAngle-e.startAngle,i=[`M ${b},${S}`,`L ${t},${n}`,`A ${v},${v} 0 ${o>Math.PI?1:0},1 ${a},${r}`,"Z"].join(" "),s=.7*v,l=b+s*Math.cos(e.midAngle),c=S+s*Math.sin(e.midAngle);return{...e,path:i,labelPosition:{x:l,y:c}}})),y=u?.showTooltips??h?.showTooltips??!0;return t(n,{children:[E.map(((n,a)=>{const r=l?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{m(a),s.onDataPointClick?.(n.dataPoint,0,a)},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),o.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:p(n)})]},"slice-"+a)})),y&&l&&c[l.pointIndex]&&e(Si,{dataPoint:c[l.pointIndex],datasetLabel:i[0]?.label,datasetColor:d[l.pointIndex]?.color,position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Mi.displayName="PieChart";const ki=s(l((({datasets:a=[],config:r={},radarOptions:o={},onDataPointClick:i,...s},l)=>{const{gridLevels:c=5,showGrid:d=!0,showAxisLabels:u=!0,fillArea:h=!0,fillOpacity:m=.3,showDataPoints:p=!0,pointRadius:g=4,lineWidth:f=2,smooth:b=!1,scaleType:S="linear",scaleMin:v=0,scaleMax:E}=o;return e(fi,{ref:l,type:"radar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:S})=>{if(!o.length)return null;const y=l?.showTooltips??S?.showTooltips??!0,N=a.width/2,A=a.height/2,x=.8*Math.min(N,A),_=o[0];if(!_)return null;const T=_.data||[],C=2*Math.PI/T.length;let L=v,I=E;if(void 0===L||void 0===I){const e=o.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===L&&(L=Math.min(v,...e)),void 0===I&&(I=Math.max(E||0,...e))}const w=I-L,O=[];if(d){for(let t=1;c>=t;t++){const n=x*t/c;O.push(e("circle",{cx:N,cy:A,r:n,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+t))}for(let t=0;t<T.length;t++){const n=t*C-Math.PI/2,a=N+x*Math.cos(n),r=A+x*Math.sin(n);O.push(e("line",{x1:N,y1:A,x2:a,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+t))}}const R=[];if(u)for(let t=0;t<T.length;t++){const n=t*C-Math.PI/2,a=N+(x+20)*Math.cos(n),r=A+(x+20)*Math.sin(n);R.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:T[t]?.label},"label-"+t))}const M=o.map(((n,a)=>{const o=n.color||r[a%r.length],l=[];for(let e=0;e<n.data?.length;e++){const t=n.data[e]?.value||0,a=x*(w>0?(t-L)/w:0),r=e*C-Math.PI/2,o=N+a*Math.cos(r),i=A+a*Math.sin(r);l.push({x:o,y:i,value:t,point:n.data[e]})}if(0===l.length||!l[0])return null;let c="";if(b&&l.length>2){c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}else{c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}return t("g",{children:[h&&e("path",{d:c,fill:o,fillOpacity:m,className:"c-chart__radar-area"}),e("path",{d:c,fill:"none",stroke:o,strokeWidth:f,className:"c-chart__radar-line"}),p&&l.map(((t,n)=>{const r=s?.datasetIndex===a&&s?.pointIndex===n;return e("g",{children:e("circle",{cx:t.x,cy:t.y,r:r?1.5*g:g,fill:o,className:"c-chart__radar-point "+(r?"c-chart__radar-point--hovered":""),onClick:()=>{t.point&&i.onDataPointClick?.(t.point,a,n)},onMouseEnter:e=>{const r=e.currentTarget.getBoundingClientRect();i.onPointHover(a,n,t.x,t.y,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:i.onPointLeave})},`point-${a}-${n}`)}))]},"dataset-"+a)}));return t(n,{children:[t("g",{children:[O,M,R]}),y&&s&&o[s.datasetIndex]?.data?.[s.pointIndex]&&e(Si,{dataPoint:o[s.datasetIndex].data[s.pointIndex],datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,...s})})));ki.displayName="RadarChart";const Di=s(l((({datasets:a=[],config:r={},scatterOptions:o={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:i,...s},l)=>e(fi,{ref:l,type:"scatter",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:s,hoveredPoint:l,toolbarState:c,config:d})=>{if(!i.length)return null;const u=c?.showTooltips??d?.showTooltips??!0,h=[];return i.forEach(((n,i)=>{const l=n.color||r[i%r.length];n.data?.forEach(((r,c)=>{const d=void 0!==r.x?a.padding.left+r.x/100*a.innerWidth:a.xScale(c,n.data?.length),u=void 0!==r.y?a.padding.top+a.innerHeight-r.y/100*a.innerHeight:a.yScale(r.value);h.push(t("g",{children:[e("circle",{cx:d,cy:u,r:r.size||o.pointRadius||4,fill:r.color||l,className:"c-chart__scatter-point",onClick:()=>s.onDataPointClick?.(r,i,c),onMouseEnter:e=>{if(o.enableHoverEffects){const t=Math.max(0,1.5*(r.size||o.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();s.onPointHover(i,c,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(o.enableHoverEffects){const t=Math.max(0,r.size||o.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}s.onPointLeave()}}),o.showLabels&&r.label&&e("text",{x:d,y:u-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(r.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${i}-${c}`))}))})),t(n,{children:[h,u&&l&&i[l.datasetIndex]?.data?.[l.pointIndex]&&e(Si,{dataPoint:i[l.datasetIndex].data[l.pointIndex],datasetLabel:i[l.datasetIndex]?.label,datasetColor:i[l.datasetIndex]?.color||r[l.datasetIndex],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s}))));Di.displayName="ScatterChart";const Bi=s(l((({data:a=[],algorithm:o="squarified",colorConfig:i={scheme:"category"},labelConfig:s={showLabels:!0,minSize:1e3,fontSize:12,textColor:"white"},onDataPointClick:l,config:c={},...h},m)=>{const[p,g]=r(null),[f,b]=r(null);r({x:0,y:0}),d((()=>{if(!a.length)return null;const e=new Map;a.forEach((t=>e.set(t.id,t)));const t=[],n=new Set,r=e=>{if(n.has(e.id))return e;n.add(e.id);const t=a.filter((t=>t.parent===e.id));var o;return t.length>0&&(e.children=t.map((e=>r(e))),e.value=ci(o=e.children).call(o,((e,t)=>e+t.value),0)),e};return a.forEach((n=>{n.parent&&e.has(n.parent)||t.push(r(n))})),1===t.length?t[0]:{id:"root",label:"Root",value:ci(t).call(t,((e,t)=>e+t.value),0),children:t}}),[a]);const S=u(((e,t,n)=>{if(e.color)return e.color;const{scheme:r,palette:o}=i,s=o||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(r){case"category":default:return s[n%s.length];case"depth":{const e=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return e[Math.min(t,e.length-1)]}case"value":if(a.length>0){const t=Math.max(...a.map((e=>e.value))),n=Math.min(...a.map((e=>e.value))),r=(e.value-n)/(t-n);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return s[0]}}),[i,a]),v=u(((e,t,n,a,r)=>{if(0===e.length)return;const o=ci(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const o=e[0];return void(o&&(o.x=t,o.y=n,o.width=a,o.height=r))}const i=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...i],d=t,u=n,h=a,m=r;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=ci(l).call(l,((e,t)=>e+t.value),0),n=t/o;let a,r;m>h?(a=h,r=m*n):(a=h*n,r=m);let i=!1;if(c.length>0){const e=c[0];if(!e)break;const n=[...l,e],d=ci(n).call(n,((e,t)=>e+t.value),0),u=d/o;let p,g;m>h?(p=h,g=m*u):(p=h*u,g=m),i=Math.max(...l.filter((e=>e)).map((e=>{const n=e.value/t;return s({width:m>h?a*n:a,height:m>h?r:r*n})})))>=Math.max(...n.filter((e=>e)).map((e=>{const t=e.value/d;return s({width:m>h?p*t:p,height:m>h?g:g*t})})))}if(!i){let e=d,n=u;l.forEach((o=>{const i=o.value/t;m>h?(o.x=e,o.y=n,o.width=h*i,o.height=r,e+=o.width):(o.x=e,o.y=n,o.width=a,o.height=m*i,n+=o.height)})),m>h?(u+=r,m-=r):(d+=a,h-=a),l=[]}}}),[]);return e(fi,{ref:m,type:"treemap",datasets:[{label:"Treemap Data",data:a}],config:c,renderContent:({scales:r,colors:i,datasets:l,handlers:c,hoveredPoint:d})=>{if(!a.length)return null;const u=r.width-40,h=r.height-40,m=a.filter((e=>!e.children||0===e.children.length));if(!m.length)return null;const E=ci(m).call(m,((e,t)=>e+t.value),0),y=m.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:S(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===o&&E>0)v(y,20,20,u,h);else{const e=Math.ceil(Math.sqrt(m.length)),t=Math.ceil(m.length/e),n=u/e,a=h/t;y.forEach(((t,r)=>{const o=r%e,i=Math.floor(r/e);t.x=20+o*n,t.y=20+i*a,t.width=n,t.height=a}))}return e(n,{children:y.map((n=>{const a=p===n,r=f===n,o=n.width*n.height,i=s.showLabels&&o>=(s.minSize||1e3);return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:n.color,className:`c-chart__treemap-node ${a?"c-chart__treemap-node--hovered":""} ${r?"c-chart__treemap-node--selected":""}`,onClick:()=>{b(n),c.onDataPointClick?.(n.originalData,0,0)},onMouseEnter:e=>{g(n);const t=e.currentTarget.getBoundingClientRect();c.onPointHover(0,0,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:()=>{g(null),c.onPointLeave()}}),i&&e("text",{x:n.x+n.width/2,y:n.y+n.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:s.fontSize,fill:s.textColor},children:n.label})]},n.id)}))})},onDataPointClick:l,interactive:!0,...h})})));Bi.displayName="TreemapChart";const Pi=s(l((({waterfallData:t=[],config:n={},waterfallOptions:a={},onDataPointClick:r,...o},i)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:u="top",colors:h={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:m=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:b=1e3,animationDelay:S=100,valueFormatter:v=e=>e.toLocaleString(),showBaseline:E=!0,baselineColor:y="var(--atomix-gray-2)"}=a;return e(fi,{ref:i,type:"waterfall",datasets:[{label:"Waterfall Data",data:t}],config:n,renderContent:({scales:n,colors:a,datasets:r,handlers:o,hoveredPoint:i,toolbarState:b,config:N})=>{if(!t.length)return null;const A=b?.animationsEnabled??N?.animate??f,x=60,_=n.width-120,T=n.height-120;let C=0;const L=t.map(((e,t)=>{const n="total"===e.type||"subtotal"===e.type?0:C;let a;return"total"===e.type||"subtotal"===e.type?(a=e.value,C=e.value):(a=C+e.value,C=a),{...e,startValue:n,endValue:a,cumulativeValue:C,index:t}})),I=L.flatMap((e=>[e.startValue,e.endValue])),w=Math.min(0,...I),O=Math.max(...I)-w,R=_/t.length*m,M=_/t.length,k=e=>x+e*M+M/2,D=e=>x+T-(e-w)/O*T,B=[];if(E){const t=D(0);B.push(e("line",{x1:x,y1:t,x2:n.width-x,y2:t,stroke:y,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(L.forEach(((t,n)=>{const a=k(n),r=Math.min(D(t.startValue),D(t.endValue)),i=Math.max(D(t.startValue),D(t.endValue)),m=i-r;let p=t.color;if(p||(p="total"===t.type?h.total:"subtotal"===t.type?h.subtotal:0>t.value?h.negative:h.positive),B.push(e("rect",{x:a-R/2,y:r,width:R,height:Math.max(m,2),fill:p,className:"c-chart__waterfall-bar "+(A?"c-chart__waterfall-bar--animated":""),style:{animationDelay:A?n*S+"ms":"0ms"},onClick:()=>o.onDataPointClick?.(t,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(0,n,a,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave},"bar-"+n)),d){let o=r,s=t.value;o="center"===u?r+m/2:"bottom"===u?i+15:r-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),B.push(e("text",{x:a,y:o,textAnchor:"middle",dominantBaseline:"center"===u?"middle":"auto",className:"c-chart__waterfall-value "+("center"===u?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:v(s)},"value-"+n))}if(s&&n<L.length-1){const r=L[n+1];if(r){const o=D(t.endValue),i=D(r.startValue),s=k(n+1);if(Math.abs(t.endValue-r.startValue)>.01){const t="dashed"===c?"5,5":"dotted"===c?"2,2":"none";B.push(e("line",{x1:a+R/2,y1:o,x2:s-R/2,y2:i,stroke:l,strokeDasharray:t,className:"c-chart__waterfall-connector"},"connector-"+n))}}}})),p){const t=L.map(((e,t)=>({x:k(t),y:D(e.cumulativeValue)}))),n="M "+t.map((e=>`${e.x},${e.y}`)).join(" L ");B.push(e("path",{d:n,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,n)=>{B.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+n))}))}return B.push(e("line",{x1:x,y1:n.height-x,x2:n.width-x,y2:n.height-x,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),B.push(e("line",{x1:x,y1:x,x2:x,y2:n.height-x,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),L.forEach(((t,a)=>{const r=x+a*M+M/2;B.push(e("text",{x:r,y:n.height-x+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${n.height-x+20})`,children:t.label},"x-label-"+a))})),e("g",{children:B})},onDataPointClick:r,...o})})));Pi.displayName="WaterfallChart";const zi={sm:16,md:24,lg:32},Ui=({className:t="",style:n,value:a,defaultValue:o="light",onChange:s,lightIcon:l,darkIcon:c,size:d="md",disabled:h=!1,storageKey:m="atomix-color-mode",dataAttribute:p="data-atomix-color-mode",disableStorage:g=!1,disableSystemPreference:f=!1,"aria-label":b,showTooltip:S=!0})=>{const v=void 0!==a,[E,y]=r(o),N=v?a:E;i((()=>{if(!v&&"undefined"!=typeof window){if(!g)try{const e=localStorage.getItem(m);if("light"===e||"dark"===e)return void y(e)}catch(e){}!f&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&y("dark")}}),[v,g,f,m]),i((()=>{if("undefined"==typeof window)return;const e="dark"===N?"dark":"light";if(document.body.setAttribute(p,e),!g)try{localStorage.setItem(m,e)}catch(t){}}),[N,p,g,m]),i((()=>{if(v||f||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(g)y(e.matches?"dark":"light");else try{localStorage.getItem(m)||y(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[v,f,g,m]);const A=u((()=>{if(h)return;const e="light"===N?"dark":"light";v||y(e),s?.(e)}),[h,N,v,s]),x=zi[d],_="light"===N?"dark":"light",T=b||`Switch to ${_} mode`,C=S?`Switch to ${_} mode`:void 0,L=e("svg",{viewBox:"0 0 24 24",width:x,height:x,fill:"currentColor","aria-hidden":"true",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"})}),I=e("svg",{viewBox:"0 0 24 24",width:x,height:x,fill:"currentColor","aria-hidden":"true",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"})});return e("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${d} ${h?"c-color-mode-toggle--disabled":""} ${t}`,onClick:A,disabled:h,"aria-label":T,"aria-pressed":"dark"===N,title:C,style:n,children:"light"===N?l||L:c||I})};Ui.displayName="ColorModeToggle";const Fi=l((({target:n,show:o=["days","hours","minutes","seconds"],separator:s=":",focused:l=!1,className:c="",style:d,onComplete:u},h)=>{const m="string"==typeof n?new Date(n):n,[p,g]=r((()=>new Date)),[f,b]=r(!1);i((()=>{if(f)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[f]);const S=m.getTime()-p.getTime(),{days:v,hours:E,minutes:y,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);i((()=>{S>0||f||(b(!0),u&&u())}),[S,f,u]);const A=[];return Bo(o).call(o,"days")&&A.push({label:"Days",value:v}),Bo(o).call(o,"hours")&&A.push({label:"Hours",value:E}),Bo(o).call(o,"minutes")&&A.push({label:"Minutes",value:y}),Bo(o).call(o,"seconds")&&A.push({label:"Seconds",value:N}),e("div",{ref:h,className:`c-countdown${l?" c-countdown--focused":""} ${c}`.trim(),style:d,children:A.map(((n,r)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:(n.value+"").padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),r<A.length-1&&e("span",{className:"c-countdown__separator",children:s})]},n.label)))})}));function Gi({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:o=10,onSort:s,initialSortConfig:l}){const[c,h]=r(l||null),[m,p]=r(1),[g,f]=r(""),b=u((e=>{if(!n)return;let t="asc";c&&c.key===e&&"asc"===c.direction&&(t="desc");const a={key:e,direction:t};h(a),s&&s(a)}),[n,c,s]),S=u((t=>{1>t||t>Math.ceil(e.length/o)||p(t)}),[e.length,o]),v=u((e=>{f(e),p(1)}),[]),E=d((()=>{if(!g)return e;const n=g.toLowerCase();return e.filter((e=>t.some((t=>{var a;const r=e[t.key];return null!=r&&Bo(a=(r+"").toLowerCase()).call(a,n)}))))}),[e,t,g]),y=d((()=>c&&n?[...E].sort(((e,t)=>{const n=e[c.key],a=t[c.key];return null==n?"asc"===c.direction?-1:1:null==a?"asc"===c.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===c.direction?n.localeCompare(a):a.localeCompare(n):"asc"===c.direction?n>a?1:-1:n>a?-1:1})):E),[E,c,n]),N=d((()=>{if(!a)return y;const e=(m-1)*o;return y.slice(e,e+o)}),[y,a,m,o]),A=d((()=>a?Math.max(1,Math.ceil(y.length/o)):1),[y.length,a,o]);return i((()=>{p(1)}),[e]),i((()=>{m>A&&p(Math.max(1,A))}),[m,A]),{displayData:N,sortConfig:c,currentPage:m,totalPages:A,handleSort:b,handlePageChange:S,handleSearch:v}}Fi.displayName="Countdown";const Vi="...",Hi=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),ji=({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=d((()=>{if(n+5>=t)return Hi(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),o=a>2,i=t-2>r,s=t;if(!o&&i)return[...Hi(1,3+2*n),Vi,t];if(o&&!i){let e=Hi(t-(3+2*n)+1,t);return[1,Vi,...e]}if(o&&i){let e=Hi(a,r);return[1,Vi,...e,Vi,s]}return[]}),[t,n,e]),o=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:o,nextPage:()=>{o(e+1)},prevPage:()=>{o(e-1)},firstPage:()=>{o(1)},lastPage:()=>{o(t)},DOTS:Vi}},Yi=s((({type:t,onClick:n,disabled:a,label:r,iconName:o})=>e("li",{className:`c-pagination__item c-pagination__item--${t} ${a?"is-disabled":""}`,"aria-disabled":a,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:a,"aria-label":r,children:e(Et,{name:o,size:"sm","aria-hidden":"true"})})}))),Wi=s((({currentPage:n=ce.currentPage,totalPages:a=ce.totalPages,onPageChange:o,siblingCount:i=ce.siblingCount,showFirstLastButtons:s=ce.showFirstLastButtons,showPrevNextButtons:l=ce.showPrevNextButtons,showSearch:c=!1,searchPlaceholder:d="Go to page",size:u=ce.size,className:h="",style:m,ariaLabel:p="Pagination",glass:g})=>{const{paginationRange:f,goToPage:b,nextPage:S,prevPage:v,firstPage:E,lastPage:y}=ji({currentPage:n,totalPages:a,siblingCount:i,onPageChange:o}),[N,A]=r(""),[x,_]=r("");if(0===n||2>f.length)return null;const T=t("nav",{className:`c-pagination c-pagination--${u} ${h}`,style:m,"aria-label":p,children:[t("ul",{className:"c-pagination__items",children:[s&&e(Yi,{type:"first",onClick:E,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),l&&e(Yi,{type:"prev",onClick:v,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),f.map(((t,a)=>{if(t===Vi)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+a);const r=t===n;return e("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>b(t),"aria-label":"Page "+t,"aria-current":r?"page":void 0,children:t})},t)})),l&&e(Yi,{type:"next",onClick:S,disabled:n===a,label:"Go to next page",iconName:"CaretRight"}),s&&e(Yi,{type:"last",onClick:y,disabled:n===a,label:"Go to last page",iconName:"SkipForward"})]}),c&&t("form",{className:"c-pagination__search",onSubmit:e=>{e.preventDefault(),_("");const t=parseInt(N,10);isNaN(t)?_("Please enter a valid page number"):1>t||t>a?_("Page must be between 1 and "+a):t!==n?(b(t),A("")):_("You are already on this page")},"aria-label":"Jump to page",children:[t("div",{className:"c-pagination__search-wrapper",children:[t("label",{htmlFor:"pagination-search-"+n,className:"c-pagination__search-label",children:[e("span",{className:"c-pagination__search-label-text",children:"Go to page:"}),e("input",{id:"pagination-search-"+n,type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"c-pagination__search-input "+(x?"is-error":""),placeholder:d,value:N,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(A(t),_(""))},"aria-label":"Page number","aria-invalid":x?"true":"false","aria-describedby":x?"pagination-error-"+n:void 0})]}),e("button",{type:"submit",className:"c-pagination__search-button","aria-label":"Go to page",children:e(Et,{name:"ArrowRight",size:"sm","aria-hidden":"true"})})]}),x&&e("div",{id:"pagination-error-"+n,className:"c-pagination__search-error",role:"alert",children:x})]})]});if(g){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===g?t:{...t,...g};return e(tt,{...n,children:T})}return T}));Wi.displayName="Pagination",Yi.displayName="PaginationNavButton";const Ki=s((({data:n,columns:a,className:r,style:i,sortable:s=!1,filterable:l=!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:f,onSort:b,...S})=>{const v=o(null),{displayData:E,sortConfig:y,currentPage:N,totalPages:A,handleSort:x,handlePageChange:_,handleSearch:T}=Gi({data:n,columns:a,sortable:s,paginated:c,pageSize:d,onSort:b}),C=[se.base,u&&se.striped,h&&se.bordered,m&&se.dense,p&&se.loading,r].filter(Boolean).join(" ");return t("div",{className:se.container,style:i,...S,children:[l?e("div",{className:se.toolbar,children:e("div",{className:se.search,children:e("input",{type:"text",placeholder:"Search...",className:se.searchInput+" c-input",onChange:e=>T(e.target.value),"aria-label":"Search table"})})}):null,e("div",{className:se.tableWrapper,children:t("table",{ref:v,className:C,children:[e("thead",{className:se.header,children:e("tr",{children:a.map(((n,a)=>e("th",{className:`${se.headerCell} ${!1!==n.sortable&&s?se.sortable:""}`,onClick:()=>!1!==n.sortable&&s?x(n.key):null,"aria-sort":y?.key===n.key?"asc"===y.direction?"ascending":"descending":void 0,children:t("div",{className:se.headerContent,children:[e("span",{children:n.title}),!1!==n.sortable&&s&&e("span",{className:se.sortIcon,children:y?.key===n.key?"asc"===y.direction?e(Et,{name:"CaretUp",size:"sm"}):e(Et,{name:"CaretDown",size:"sm"}):null})]})},"header-"+a)))})}),p?e("tbody",{children:e("tr",{children:e("td",{colSpan:a.length,className:se.loadingCell,children:e("div",{className:se.loadingIndicator,children:e(Ot,{size:"md",variant:"primary"})})})})}):0===E.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:a.length,className:se.emptyCell,children:g})})}):e("tbody",{children:E.map(((t,n)=>e("tr",{className:se.row,onClick:f?()=>f(t):void 0,tabIndex:f?0:void 0,role:f?"button":void 0,children:a.map(((a,r)=>e("td",{className:se.cell,children:a.render?a.render(t[a.key],t):t[a.key]},`cell-${n}-${r}`)))},"row-"+n)))})]})}),c&&A>1?e("div",{className:se.pagination,children:e(Wi,{currentPage:N,totalPages:A,onPageChange:_,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})}));function $i(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function Qi(e,t){return new Date(e,t+1,0).getDate()}function qi(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function Zi({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:h,inline:m=!1}={}){const[p,g]=r(m),[f,b]=r(e?qi(e,c):""),[S,v]=r(a&&s?`${qi(a,c)} - ${qi(s,c)}`:a?qi(a,c)+" - Select end date":""),[E,y]=r(e||a||new Date),[N,A]=r("days"),[x,_]=r(!a||a&&s?"start":"end"),T=o(null),C=o(null),L=new Date,I=E.getMonth(),w=E.getFullYear(),O=Qi(w,I),R=new Date(w,I,1).getDay();i((()=>{"single"===n?b(e?qi(e,c):""):(v(a&&s?`${qi(a,c)} - ${qi(s,c)}`:a?qi(a,c)+" - Select end date":""),_(!a||a&&s?"start":"end"))}),[e,a,s,c,n]);const M=u((e=>{const r=new Date(w,I,e);if(!(d&&d>r||h&&r>h))if("single"===n)t&&t(r),b(qi(r,c)),m||g(!1);else if("start"===x)l&&l({startDate:r,endDate:null}),v(qi(r,c)+" - Select end date"),_("end");else{if(!a)return;a>r?(l&&l({startDate:r,endDate:a}),v(`${qi(r,c)} - ${qi(a,c)}`)):(l&&l({startDate:a,endDate:r}),v(`${qi(a,c)} - ${qi(r,c)}`)),m||g(!1),_("start")}}),[w,I,d,h,t,l,c,m,n,x,a]),k=u((()=>{y(new Date(w,I-1,1))}),[w,I]),D=u((()=>{y(new Date(w,I+1,1))}),[w,I]),B=u((()=>{y(new Date(w-1,I,1))}),[w,I]),P=u((()=>{y(new Date(w+1,I,1))}),[w,I]),z=u((()=>{A("months")}),[]),U=u((()=>{A("years")}),[]),F=u((e=>{y(new Date(w,e,1)),A("days")}),[w]),G=u((e=>{y(new Date(e,I,1)),A("months")}),[I]),V=u((()=>{const e=new Date;y(e),"single"===n?M(e.getDate()):y(new Date)}),[M,n]),H=u((()=>{"single"===n?(b(""),t&&t(null)):(v(""),_("start"),l&&l({startDate:null,endDate:null}))}),[t,l,n]),j=u((e=>{if("single"===n){b(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),y(n))}else{v(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),n=t[1]?.trim();if(!e||!n)return;const a=new Date(e);if(isNaN(a.getTime())||y(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||l&&l({startDate:t,endDate:a})}}}}),[t,l,n]),Y=u((()=>{m||g(!0)}),[m]),W=u((e=>{T.current&&!T.current.contains(e.target)&&C.current&&!C.current.contains(e.target)&&g(!1)}),[]);i((()=>(p&&!m?document.addEventListener("mousedown",W):document.removeEventListener("mousedown",W),()=>{document.removeEventListener("mousedown",W)})),[p,W,m]);const K=u((()=>{const e=[],t=Qi(0===I?w-1:w,0===I?11:I-1);for(let a=R-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 a=1;O>=a;a++)e.push({day:a,month:I,year:w,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===I?0:I+1,year:11===I?w+1:w,isCurrentMonth:!1});return e}),[O,R,I,w]),$=u((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:$i(t)});return e}),[]),Q=u((()=>{const e=[],t=w-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[w]),q=u(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),d,h)),[d,h]),Z=u(((t,r,o)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===r&&e.getDate()===o;if(!a&&!s)return!1;if(a&&!s)return a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===o;if(a&&s){const e=a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===o,n=s.getFullYear()===t&&s.getMonth()===r&&s.getDate()===o;return e||n}return!1}),[e,n,a,s]),X=u(((e,t,r)=>{if("range"!==n||!a||!s)return!1;const o=new Date(e,t,r);return o>a&&s>o}),[n,a,s]),J=u(((e,t,n)=>L.getFullYear()===e&&L.getMonth()===t&&L.getDate()===n),[L]),ee=u((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:f,rangeInputValue:S,viewDate:E,viewMode:N,currentMonth:I,currentYear:w,selectionMode:n,rangeSelectionState:x,datePickerRef:T,inputRef:C,startDate:a,endDate:s,setIsOpen:g,handleDateSelect:M,handlePrevMonth:k,handleNextMonth:D,handlePrevYear:B,handleNextYear:P,handleTodayClick:V,handleClear:H,handleInputChange:j,handleInputFocus:Y,switchToMonthView:z,switchToYearView:U,selectMonth:F,selectYear:G,generateDays:K,generateMonths:$,generateYears:Q,isDateSelectable:q,isDateSelected:Z,isDateInSelectedRange:X,isToday:J,getWeekNumber:ee}}Ki.displayName="DataTable";const Xi=l((({value:a,onChange:r,selectionMode:o="single",startDate:i,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,placeholder:h="Select date...",disabled:m=!1,readOnly:p=!1,clearable:g=!0,showTodayButton:f=!0,showWeekNumbers:S=!1,inline:v=!1,id:E,name:y,className:N="",placement:A="bottom-start",inputClassName:x="",size:_="md",style:T,glass:C,...L},I)=>{const{isOpen:w,inputValue:O,rangeInputValue:R,viewMode:M,currentMonth:k,currentYear:D,selectionMode:B,rangeSelectionState:P,datePickerRef:z,inputRef:U,startDate:F,endDate:G,setIsOpen:V,handleInputChange:H,handleInputFocus:j,handleClear:Y,handleDateSelect:W,handleTodayClick:K,handlePrevMonth:$,handleNextMonth:Q,handlePrevYear:q,handleNextYear:Z,switchToMonthView:X,switchToYearView:J,selectMonth:ee,selectYear:te,generateDays:ne,generateMonths:ae,generateYears:re,isDateSelectable:oe,isDateSelected:ie,isDateInSelectedRange:se,isToday:le,getWeekNumber:ce}=Zi({value:a,onChange:r,selectionMode:o,startDate:i,endDate:s,onRangeChange:l,minDate:d,maxDate:u,format:c,inline:v});b(I,(()=>({open:()=>V(!0),close:()=>V(!1),clear:Y,focus:()=>U.current?.focus()})));const de=`c-datepicker ${N} ${v?"c-datepicker--inline":""}`.trim(),ue=`c-datepicker__input c-input c-input--${_} ${x}`.trim(),he=E||"datepicker-"+Math.random().toString(36).substring(2,9),me=he+"-calendar",pe="single"===o?O:R,ge=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",fe=()=>{},be=()=>{},Se=()=>{},ve=()=>t(n,{children:[t("div",{className:"c-datepicker__header",children:["days"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:q,"aria-label":"Previous year",children:e(Et,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:$,"aria-label":"Previous month",children:e(Et,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:X,"aria-label":`${ge(k)} ${D}`,children:[ge(k)," ",D]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:Q,"aria-label":"Next month",children:e(Et,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:Z,"aria-label":"Next year",children:e(Et,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:q,"aria-label":"Previous year",children:e(Et,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Year "+D,children:D}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:Z,"aria-label":"Next year",children:e(Et,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:fe,"aria-label":"Previous decade",children:e(Et,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:Se,children:[re()[0]," - ",re()[re().length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:be,"aria-label":"Next decade",children:e(Et,{name:"CaretDoubleRight",size:"sm"})})]})]}),t("div",{className:"c-datepicker__body",children:["days"===M&&t(n,{children:[t("div",{className:"c-datepicker__weekdays"+(S?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[S&&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"+(S?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],n=ne();for(let a=0;a<n.length;a++){const r=n[a];if(!r)continue;const o=new Date(r.year,r.month,r.day),i=oe(r.year,r.month,r.day),s=ie(r.year,r.month,r.day),l=le(r.year,r.month,r.day),c=se(r.year,r.month,r.day);if(S&&a%7==0){const n=ce(o);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:n},"weeknumber-"+Math.floor(a/7)))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${i?"":"c-datepicker__day--disabled"}`,onClick:()=>i&&W(r.day),disabled:!i,tabIndex:r.isCurrentMonth?0:-1,"aria-label":o.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+a))}return t})()})]}),"months"===M&&e("div",{className:"c-datepicker__months",role:"grid",children:ae().map(((t,n)=>{const r=a&&a.getMonth()===t.month&&a.getFullYear()===D;return e("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>ee(t.month),"aria-selected":r?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===M&&e("div",{className:"c-datepicker__years",role:"grid",children:re().map(((t,n)=>{const r=a&&a.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>te(t),"aria-selected":r?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===M&&t("div",{className:"c-datepicker__footer",children:["range"===o&&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"]}),f&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:K,"aria-label":"Go to today",children:"Today"}),!v&&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,style:T,...L,children:[!v&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:he,name:y,ref:U,type:"text",className:ue,placeholder:"single"===o?h:"start"===P?"Select start date...":F?qi(F,c)+" - Select end date...":"Select date range...",value:pe,onChange:H,onFocus:j,disabled:m,readOnly:p,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":me}),g&&pe&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:e(Et,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(Et,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(w||v)&&e(n,{children:e("div",C?{id:me,className:`c-datepicker__calendar c-datepicker__calendar--${A} c-datepicker__calendar--glass`,role:"dialog","aria-modal":v?void 0:"true","aria-label":"Date picker",children:e(tt,{...!0===C?{displacementScale:20}:C,children:e("div",{className:"c-datepicker__glass-content",children:ve()})})}:{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+A,role:"dialog","aria-modal":v?void 0:"true","aria-label":"Date picker",children:ve()})})]})}));Xi.displayName="DatePicker";const Ji=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),es=s((({children:n,href:a,active:r=!1,disabled:o=!1,icon:i,onClick:s,className:l="",LinkComponent:c,...d})=>{const{close:u}=f(Ji),h=e=>{o?e.preventDefault():(s&&s(e),u())},m=["c-dropdown__menu-item",r?"is-active":"",o?"is-disabled":"",l].filter(Boolean).join(" "),p={href:a,className:m,onClick:h,role:"menuitem",tabIndex:0,...d};return e("li",a&&!o?{children:t(c||"a",{...p,children:[i&&e("span",{className:"c-dropdown__menu-item-icon",children:i}),n]})}:{children:t("button",{type:"button",className:m,onClick:h,disabled:o,role:"menuitem",tabIndex:0,...d,children:[i&&e("span",{className:"c-dropdown__menu-item-icon",children:i}),n]})})})),ts=s((({className:t=""})=>e("li",{className:"c-dropdown__divider "+t,role:"separator"}))),ns=s((({children:t,className:n=""})=>e("li",{className:"c-dropdown__header "+n,children:t}))),as=s((({children:n,menu:a,placement:s="bottom-start",trigger:l="click",offset:c=Ne.DEFAULTS.OFFSET,isOpen:d,onOpenChange:h,closeOnClickOutside:m=!0,closeOnEscape:p=!0,maxHeight:g,minWidth:f=Ne.DEFAULTS.MIN_WIDTH,variant:b,className:S="",style:v,glass:E,...y})=>{const[N,A]=r(!1),x=void 0!==d,_=x?d:N,T=o(null),C=o(null),L=o(null),I=o("dropdown-"+Math.random().toString(36).substring(2,9)).current,w=u((e=>{x||A(e),h&&h(e)}),[x,h]),O=u((()=>w(!_)),[_,w]),R=u((()=>{w(!1),setTimeout((()=>{C.current?.focus()}),0)}),[w]);i((()=>{if(!_||!m)return;const e=e=>{T.current&&!T.current.contains(e.target)&&R()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[_,m,R]),i((()=>{if(!_||!p)return;const e=e=>{"Escape"===e.key&&R()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[_,p,R]);const M=u((e=>{if(!L.current)return;const t=L.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),k=u((e=>{"click"===l&&(e.preventDefault(),e.stopPropagation(),O())}),[l,O]),D=u((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||_?"Escape"===e.key&&_&&(e.preventDefault(),R()):(e.preventDefault(),w(!0),"ArrowDown"===e.key&&L.current&&setTimeout((()=>{const e=L.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[_,w,R]),B=u((()=>{"hover"===l&&w(!0)}),[l,w]),P=["c-dropdown","click"===l?"c-dropdown--onclick":"",b?"c-dropdown--"+b:"",_?"is-open":"",E?"c-dropdown--glass":"",S].filter(Boolean).join(" "),z={};g&&(z.maxHeight=g),void 0!==f&&(z.minWidth="number"==typeof f?f+"px":f);const U=e("div",{className:"c-dropdown__menu-inner",style:z,children:e(Ji.Provider,{value:{isOpen:_,close:R,id:I,trigger:l},children:e("ul",{className:"c-dropdown__menu "+(E?"c-dropdown__menu--glass":""),children:a})})});return t("div",{ref:T,className:P,style:v,onMouseEnter:"hover"===l?B:void 0,...y,children:[e("div",{ref:C,className:"c-dropdown__toggle",onClick:k,onKeyDown:D,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":I,tabIndex:0,children:n}),e("div",{ref:L,id:I,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${_?"is-open":""} ${E?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!_,onKeyDown:M,children:E?(()=>{const t={displacementScale:20,elasticity:0},n=!0===E?t:{...t,...E};return e(tt,{...n,children:U})})():U})]})}));function rs(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,glass:void 0,...e},[n,a]=r(t.isOpen||!1),s=o(null),l=o(null),c=u((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;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]=n+"px",document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=u((()=>{if("push"!==t.mode)return;const{position:e}=t;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]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),h=u(((e=!1)=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:n}=t;if("none"!==n)if(e){s.current.classList.add("is-fade-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),ie.ANIMATION_DURATION)}else{s.current.classList.add("is-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),ie.ANIMATION_DURATION)}e?(s.current.style.opacity="1",s.current.style.transform=""):s.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=u(((e=!1)=>{if(s.current){const{position:n,mode:r}=t;if("none"!==r)if(e){s.current.classList.add("is-fade-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),ie.ANIMATION_DURATION)}else{s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),ie.ANIMATION_DURATION)}e?(s.current.style.opacity="0",s.current.style.transform=""):s.current.style.transform=n?ie.TRANSFORM_VALUES[n]:"","push"===t.mode&&d(),setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===r?0:ie.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=u((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&m()}),[m,t.closeOnEscape,n]),g=u((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&m()}),[m,t.closeOnBackdropClick]);return i((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[n,p,t.closeOnEscape]),i((()=>{if(s.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(s.current.style.transform=ie.TRANSFORM_VALUES[e],t.glass&&(s.current.style.opacity="0"))}}),[t.mode,t.position,t.glass,n]),i((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?h(!!t.glass):m(!!t.glass))}),[t.isOpen,m,n,h,t.glass]),{isOpen:n,containerRef:s,backdropRef:l,generateEdgePanelClass:e=>{const{position:a=t.position,className:r="",isOpen:o}=e,i=ie.CLASSES.BASE;return`${i} ${a?`${i}--${a}`:""} ${o??n?ie.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:h,closePanel:m,handleBackdropClick:g}}as.displayName="Dropdown",es.displayName="DropdownItem",ts.displayName="DropdownDivider",ns.displayName="DropdownHeader";const os=({title:a,children:r,position:i="start",mode:s="slide",isOpen:l=!1,onOpenChange:c,backdrop:d=!0,closeOnBackdropClick:u=!0,closeOnEscape:h=!0,className:m="",style:p,glass:g})=>{const{isOpen:f,containerRef:b,backdropRef:S,generateEdgePanelClass:v,closePanel:E,handleBackdropClick:y}=rs({position:i,mode:s,isOpen:l,onOpenChange:c,backdrop:d,closeOnBackdropClick:u,closeOnEscape:h,glass:g}),N=o(null),A=v({position:i,isOpen:l,className:g?m+" c-edge-panel--glass":m});if(!f&&!1===l)return null;const x={elasticity:0},_=!0===g?x:{...x,...g},T=t(n,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:a}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>E(),"aria-label":"Close panel",children:e(Et,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:r})]});return t("div",{className:A,"data-position":i,"data-mode":s,style:p,children:[d&&e("div",{ref:S,className:"c-edge-panel__backdrop",onClick:y}),e("div",{ref:b,className:"c-edge-panel__container",children:g?e(tt,{..._,className:"c-edge-panel__glass-wrapper",style:{position:"fixed",width:N.current?.offsetWidth,height:N.current?.offsetHeight,top:b.current?.offsetTop,left:b.current?.offsetLeft,bottom:b.current?.style.bottom,right:b.current?.style.right},children:e("div",{ref:N,className:"c-edge-panel__glass-content",style:{borderRadius:b.current?.style.borderRadius},children:T})}):T})]})};function is(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=o(null);return i((()=>{n.current&&(n.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,indeterminate:o=t.indeterminate,className:i=""}=e;let s="";return a?s="is-error":r&&(s="is-valid"),`c-checkbox ${s} ${n?"is-disabled":""} ${o?"c-checkbox--mixed":""} ${i}`.trim()},checkboxRef:n}}os.displayName="EdgePanel";const ss=s((({label:n,checked:a=!1,onChange:r,className:o="",style:i,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:f,glass:b})=>{const{generateCheckboxClass:S,checkboxRef:v}=is({indeterminate:p,disabled:s,invalid:h,valid:m}),E=S({className:`${o} ${b?"c-checkbox--glass":""}`.trim(),disabled:s,invalid:h,valid:m,indeterminate:p}),y=t("div",{className:E,style:i,children:[e("input",{ref:v,type:"checkbox",className:"c-checkbox__input",checked:a,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":n?void 0:g,"aria-describedby":f,"aria-invalid":h}),n&&e("label",{className:"c-checkbox__label",htmlFor:c,children:n})]});if(b){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===b?t:{...t,...b};return e(tt,{...n,children:y})}return y}));function ls(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,r=n?ue.CLASSES.DISABLED:"";return`${ue.CLASSES.BASE} ${r} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}ss.displayName="Checkbox";const cs=({children:t,onSubmit:n,onReset:a,className:r="",style:o,disabled:i=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"})=>{const{generateFormClass:h,handleSubmit:m,handleReset:p}=ls({disabled:i}),g=h({className:r,disabled:i});return e("form",{id:s,className:g,style:o,onSubmit:m(n),onReset:p(a),method:l,encType:c,noValidate:d,autoComplete:u,children:t})};function ds(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:i=""}=e,s="md"===n?"":"sm"===n?he.CLASSES.SMALL:he.CLASSES.LARGE,l=r?he.CLASSES.INVALID:o?he.CLASSES.VALID:"",c=a?he.CLASSES.DISABLED:"";return`${he.CLASSES.BASE} ${s} ${l} ${c} ${i}`.trim()}}}cs.displayName="Form";const us=({children:n,label:a,helperText:r,htmlFor:o,className:i="",style:s,disabled:l=!1,required:c=!1,invalid:d=!1,valid:u=!1,size:h="md"})=>{const{generateFormGroupClass:m}=ds({size:h,disabled:l,invalid:d,valid:u}),p=m({className:i,disabled:l,invalid:d,valid:u,size:h});return t("div",{className:p,style:s,children:[a&&t("label",{className:"c-form-group__label",htmlFor:o,children:[a,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 hs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:o=t.invalid,valid:i=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?me.CLASSES.SMALL:me.CLASSES.LARGE,d=a?"c-input--"+a:"",u="textarea"===l?"c-input--textarea":"";let h="";o?h=me.CLASSES.INVALID:i&&(h=me.CLASSES.VALID);const m=r?me.CLASSES.DISABLED:"";return`${me.CLASSES.BASE} ${c} ${d} ${u} ${h} ${m} ${s}`.trim()},generateWrapperClass:t=>{const{className:n=""}=t,{prefixIcon:a=!1,suffixIcon:r=!1,clearable:o=!1,showCounter:i=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[me.ELEMENTS.WRAPPER];return a&&c.push(me.CLASSES.PREFIX_ICON),(r||o||s)&&c.push(me.CLASSES.SUFFIX_ICON),o&&c.push(me.CLASSES.CLEARABLE),i&&c.push(me.CLASSES.WITH_COUNTER),s&&c.push(me.CLASSES.PASSWORD_TOGGLE),l&&c.push(me.CLASSES.FULL_WIDTH),n&&c.push(n),c.filter(Boolean).join(" ")}}}us.displayName="FormGroup";const ms=s(l((({type:t="text",value:n,onChange:a,onBlur:r,onFocus:o,placeholder:i,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:u=!1,id:h,name:m,autoComplete:p,autoFocus:g=!1,size:f="md",variant:b,invalid:S=!1,valid:v=!1,maxLength:E,minLength:y,pattern:N,min:A,max:x,step:_,ariaLabel:T,ariaDescribedBy:C,glass:L},I)=>{const{generateInputClass:w}=hs({size:f,variant:b,disabled:c,invalid:S,valid:v}),O=w({className:`${s} ${L?"c-input--glass":""}`.trim(),size:f,variant:b,disabled:c,invalid:S,valid:v,type:t}),R=e("input",{ref:I,type:t,className:O,value:n,onChange:a,onBlur:r,onFocus:o,placeholder:i,disabled:c,required:d,readOnly:u,id:h,name:m,autoComplete:p,autoFocus:g,maxLength:E,minLength:y,pattern:N,min:A,max:x,step:_,"aria-label":T,"aria-describedby":C,"aria-invalid":S,style:L?{...l}:l});if(L){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},n=!0===L?t:{...t,...L};return e(tt,{...n,children:R})}return R})));function ps(e){const t=o(null),n=o(null),s=o(null),l={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},c=!!l.backgroundSlider,h=function(e){const{slides:t,autoplay:n,loop:s=!0,transition:l="fade",transitionDuration:c=1e3}=e,[h,m]=r(0),[p,g]=r(!1),f=o(null),b=o(!1),S=d((()=>t.map((()=>a.createRef()))),[t.length]),v=d((()=>t.map((()=>a.createRef()))),[t.length]),E=u((e=>{if(e===h||p)return;if(0>e||e>=t.length)return;g(!0),m(e);const n=v[e]?.current,a=t[e];n&&a&&"video"===a.type&&!1!==(a.videoOptions||{}).autoplay&&n.play().catch((()=>{}));const r=v[h]?.current,o=t[h];r&&o&&"video"===o.type&&r.pause(),setTimeout((()=>{g(!1)}),c)}),[h,p,t,v,c]),y=u((()=>{if(0===t.length)return;let e;e=s?(h+1)%t.length:Math.min(h+1,t.length-1),E(e)}),[h,t.length,s,E]),N=u((()=>{b.current=!0,f.current&&(clearInterval(f.current),f.current=null)}),[]),A=u((()=>{if(b.current&&n&&t.length>1){b.current=!1;const e="object"==typeof n?n.delay:3e3;f.current||(f.current=setInterval((()=>{b.current||p||y()}),e))}}),[n,t.length,y,p]);return i((()=>{if(!n||1>=t.length)return;const e="object"==typeof n?n.delay:3e3;return"object"==typeof n&&n.pauseOnHover,f.current&&(clearInterval(f.current),f.current=null),b.current||(f.current=setInterval((()=>{b.current||p||y()}),e)),()=>{f.current&&(clearInterval(f.current),f.current=null)}}),[n,t.length,y,p]),i((()=>{if(t.length>0&&"video"===t[h]?.type){const e=v[h]?.current;e&&!1!==(t[h].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[h,t,v]),i((()=>()=>{f.current&&(clearInterval(f.current),f.current=null)}),[]),{currentIndex:h,isTransitioning:p,slideRefs:S,videoRefs:v,handleSlideTransition:E,pauseAutoplay:N,resumeAutoplay:A}}(l.backgroundSlider||{slides:[],autoplay:{delay:5e3,pauseOnHover:!0}}),m=c&&l.backgroundSlider?h:void 0,p=!!c||!!l.backgroundImageSrc||!!l.videoBackground,g=!!l.imageSrc,f=g&&"center"!==l.alignment,b=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const a=()=>{const t=window.pageYOffset*n,a=e.querySelector(Y.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};s.current=a,window.addEventListener("scroll",a),a()},S=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(Y.SELECTORS.BG);t&&(t.style.transform=""),s.current&&(window.removeEventListener("scroll",s.current),s.current=null)};return i((()=>{const e=t.current;return e&&l.parallax&&p&&!c&&b(e,l.parallaxIntensity),()=>{e&&s.current&&S(e)}}),[l.parallax,l.parallaxIntensity,p,c]),{generateHeroClassNames:(e="")=>{const t=[Y.SELECTORS.HERO.replace(".","")];return"center"===l.alignment?t.push(Y.CLASSES.CENTER):"right"===l.alignment?t.push(Y.CLASSES.RIGHT):"left"===l.alignment&&t.push(Y.CLASSES.LEFT),l.fullViewportHeight&&t.push(Y.CLASSES.FULL_VH),l.parallax&&t.push("c-hero--parallax"),l.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=l.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===l.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=l.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:p,hasForegroundImage:g,useGridLayout:f,heroRef:t,videoRef:n,applyParallaxEffect:b,removeParallaxEffect:S,backgroundSlider:m,hasBackgroundSlider:c}}function gs(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[ee.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(ee.CLASSES.CENTER),t.breakout&&n.push(ee.CLASSES.BREAKOUT),t.reverse&&n.push(ee.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>ee.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>ee.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function fs(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=r(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:o=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${o}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function bs(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function Ss(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:r=t.active,disabled:o=t.disabled,className:i=""}=e;return`c-nav__item ${n&&!a?ae.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?ae.CLASSES.ACTIVE:""} ${o?ae.CLASSES.DISABLED:""} ${i}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?ae.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function vs(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:r=""}=e,o=a?ae.SELECTORS.MEGA_MENU.replace(".",""):ae.SELECTORS.DROPDOWN_MENU.replace(".","");let i="";return"center"===n?i=o+"--center":"end"===n&&(i=o+"--end"),`${o} ${i} ${r}`.trim()},isInFixedBottomNavbar:n,getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}function Es(e){const t={collapsible:!0,collapsibleDesktop:!1,defaultCollapsedDesktop:!1,isOpen:!1,...e},[n,a]=r(void 0!==t.defaultCollapsedDesktop?!t.defaultCollapsedDesktop:t.isOpen||!1),s=o(null),l=o(null),c=o(null);i((()=>{void 0!==t.isOpen?a(t.isOpen):void 0!==t.defaultCollapsedDesktop&&a(!t.defaultCollapsedDesktop)}),[t.isOpen,t.defaultCollapsedDesktop]),i((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop,a=void 0!==t.isOpen?t.isOpen:n;if(e&&s.current&&l.current){const e=setTimeout((()=>{s.current&&l.current&&(s.current.style.height=a?l.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&s.current&&(s.current.style.height="auto")}),[]),i((()=>{const e=()=>{if(768>window.innerWidth?t.collapsible:t.collapsibleDesktop){if(s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:n;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}}else s.current&&(s.current.style.height="auto")},a=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}}),[t.collapsible,t.collapsibleDesktop,t.isOpen,t.onToggle,n]),i((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop;if(e&&s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:n;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}else!e&&s.current&&(s.current.style.height="auto")}),[t.isOpen,n,t.collapsible,t.collapsibleDesktop]);const d=()=>{if(t.disabled)return;const e=void 0!==t.isOpen?!t.isOpen:!n;"function"==typeof t.onToggle?t.onToggle(e):a(e)},u=()=>void 0!==t.isOpen?t.isOpen:n;return{defaultProps:t,isOpenState:u(),wrapperRef:s,innerRef:l,sideMenuRef:c,generateSideMenuClass:e=>{const{className:t="",isOpen:n=!1}=e,a=n?re.CLASSES.IS_OPEN:"";return`${re.CLASSES.BASE} ${a} ${t}`.trim()},generateWrapperClass:()=>re.CLASSES.WRAPPER,handleToggle:d,handleDesktopCollapse:()=>{d()},getCurrentOpenState:u}}function ys(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:n=t.disabled,className:a=""}=t,r=e?re.CLASSES.ACTIVE:"",o=n?re.CLASSES.DISABLED:"";return`${re.CLASSES.LINK} ${r} ${o} ${a}`.trim()},handleClick:e=>n=>{t.disabled?n.preventDefault():e&&e(n)}}}function Ns(e,t={}){const n={},{prefix:a="atomix",separator:r="-"}=t;return Object.entries(e).forEach((([e,t])=>{const o=(e.startsWith("$")?e.slice(1):e).replace(/_/g,r);n[`--${a}${r}${o}`]=t+""})),n}function As(e,t=document.documentElement){Object.entries(e).forEach((([e,n])=>{t.style.setProperty(e,n+"")}))}function xs(e,t=document.documentElement){e.forEach((e=>{t.style.removeProperty(e)}))}function _s(e,t=document.documentElement){return getComputedStyle(t).getPropertyValue(e).trim()||null}function Ts(e){var t;return ci(t=Object.entries(e)).call(t,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}function Cs(...e){return ci(e).call(e,((e,t)=>(t&&Object.assign(e,t),e)),{})}function Ls(e){return/^--[a-z0-9-]+$/.test(e)}function Is(e,t="atomix"){const n=RegExp(`^--${t}-([a-z0-9]+)-`),a=e.match(n);return a?a[1]??null:null}function ws(...e){return e.filter(Boolean).join(" ")}function Os(e,t){return t?{...e,className:ws(e.className,t.className),style:{...e.style,...t.style}}:e}function Rs(e,t){return e?{...Ts(e),...t}:t||{}}function Ms(e,t){const{className:n,style:a,cssVars:r,parts:o}=t,i=r?Ts(r):{};return{...e,className:ws(e.className,n),style:{...i,...e.style,...a}}}function ks(e,t){return e?.[t]}function Ds(e,t,n){return{...n,className:ws(e,t?.className),style:{...t?.style,...n?.style}}}function Bs(e){return!!(e.parts||e.cssVars||e.slots)}function Ps(e,t){return"undefined"==typeof process||"development"!==process.env?.NODE_ENV?{}:{"data-component":e,...t&&{"data-variant":t}}}function zs(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Us(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}function Fs(e){if(!Us(e))return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/.*[?&]v=([^&\n?#]+)/];for(const n of t){const t=e.match(n);if(t&&t[1])return t[1]}return null}function Gs(e){const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e,r=document.createElement("link");return r.rel="preload",r.as="font",r.href=t,r.type="font/"+n,r.crossOrigin=a,r}function Vs(e){return e.map(Gs)}function Hs(e){return e.map((e=>{const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e;return`<link rel="preload" as="font" href="${t}" type="font/${n}" crossorigin="${a}">`}))}ms.displayName="Input";const js=[{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-regular.woff2",weight:400,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold.woff2",weight:700,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-italic.woff2",weight:400,style:"italic",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold-italic.woff2",weight:700,style:"italic",format:"woff2"}];var Ys=Object.freeze({__proto__:null,DEFAULT_ATOMIX_FONTS:js,applyPartStyles:Os,createCSSVarStyle:Rs,createDebugAttrs:Ps,createFontPreloadLink:Gs,createPartProps:Ds,extractYouTubeId:Fs,generateFontPreloadTags:Hs,generateUUID:zs,getPartStyles:ks,hasCustomization:Bs,isYouTubeUrl:Us,mergeClassNames:ws,mergeComponentProps:Ms,preloadFonts:Vs});function Ws(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=r(t.items||[]),[o,i]=r(""),s=e=>{if(!e.trim())return null;const t={id:zs(),text:e.trim(),completed:!1};return a((e=>[...e,t])),i(""),t};return{items:n,inputText:o,setInputText:i,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!o.trim())return;const n=s(o);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e,o="md"===n?"":"c-todo--"+n,i=r?"c-todo--disabled":"";return`${de.CLASSES.BASE} ${o} ${i} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?de.CLASSES.COMPLETED:"";return`${de.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function Ks(e){const{glassSize:t={width:270,height:69},elasticity:n=.15,mouseContainer:a,globalMousePos:s,mouseOffset:l}=e,d=c(),h=o(null),[m,p]=r(!1),[g,f]=r(!1),[b,S]=r(t),[v,E]=r({x:0,y:0}),[y,N]=r({x:0,y:0}),A=s||v,x=l||y,_=u((e=>{const t=a?.current||h.current;if(!t)return;const n=t.getBoundingClientRect(),r=n.left+n.width/2,o=n.top+n.height/2;N({x:(e.clientX-r)/n.width*100,y:(e.clientY-o)/n.height*100}),E({x:e.clientX,y:e.clientY})}),[a]);i((()=>{if(s&&l)return;const e=a?.current||h.current;return e?(e.addEventListener("mousemove",_),()=>e.removeEventListener("mousemove",_)):void 0}),[_,a,s,l]);const T=u((()=>{if(!A.x||!A.y||!h.current)return"scale(1)";const e=h.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,r=b.width,o=b.height,i=A.x-t,s=A.y-a,l=Math.max(0,Math.abs(i)-r/2),c=Math.max(0,Math.abs(s)-o/2),d=Math.sqrt(l*l+c*c);if(d>200)return"scale(1)";const u=1-d/200,m=Math.sqrt(i*i+s*s);if(0===m)return"scale(1)";const p=i/m,g=s/m,f=Math.min(m/300,1)*n*u,S=1+Math.abs(p)*f*.3-Math.abs(g)*f*.15,v=1+Math.abs(g)*f*.3-Math.abs(p)*f*.15;return`scaleX(${Math.max(.8,S)}) scaleY(${Math.max(.8,v)})`}),[A,n,b]),C=u((()=>{if(!h.current)return{x:0,y:0};const e=h.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,r=b.width,o=b.height,i=Math.max(0,Math.abs(A.x-t)-r/2),s=Math.max(0,Math.abs(A.y-a)-o/2),l=Math.sqrt(i*i+s*s),c=l>200?0:1-l/200;return{x:(A.x-t)*n*.1*c,y:(A.y-a)*n*.1*c}}),[A,n,b]);i((()=>{const e=()=>{if(h.current){const e=h.current.getBoundingClientRect();S({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const L=u((()=>{p(!0)}),[]),I=u((()=>{p(!1)}),[]),w=u((()=>{f(!0)}),[]),O=u((()=>{f(!1)}),[]);return{filterId:d,glassRef:h,isHovered:m,isActive:g,currentGlassSize:b,globalMousePos:A,mouseOffset:x,calculateDirectionalScale:T,calculateElasticTranslation:C,handleMouseEnter:L,handleMouseLeave:I,handleMouseDown:w,handleMouseUp:O}}function $s(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,className:o=""}=e;let i="";a?i=pe.CLASSES.INVALID:r&&(i=pe.CLASSES.VALID);const s=n?pe.CLASSES.DISABLED:"";return`${pe.CLASSES.BASE} ${i} ${s} ${o}`.trim()}}}function Qs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:i=""}=e,s="md"===n?"":"sm"===n?fe.CLASSES.SMALL:fe.CLASSES.LARGE;let l="";r?l=fe.CLASSES.INVALID:o&&(l=fe.CLASSES.VALID);const c=a?fe.CLASSES.DISABLED:"";return`${fe.CLASSES.BASE} ${s} ${l} ${c} ${i}`.trim()}}}function qs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:o=t.invalid,valid:i=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?be.CLASSES.SMALL:be.CLASSES.LARGE,c=a?"c-input--"+a:"";let d="";o?d=be.CLASSES.INVALID:i&&(d=be.CLASSES.VALID);const u=r?be.CLASSES.DISABLED:"";return`${be.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}function Zs(e){return{defaultOptions:{items:[],divider:H.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[H.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[H.CLASSES.ITEM,e.active||t?H.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}function Xs({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[o,s]=r(!1),l=void 0!==e,c=l?!!e:o;i((()=>{l&&s(!!e)}),[e,l]);const d=u((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),h=u((()=>{d(!0)}),[d]),m=u((()=>{d(!1)}),[d]),p=u((()=>{d(!c)}),[c,d]);return{isOpen:c,open:h,close:m,toggle:p}}function Js(e){const{slides:t,slidesToShow:n=1,spaceBetween:a=0,loop:s=!1,initialSlide:l=0,direction:c="horizontal",speed:h=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:f}=e,b=o(null),S=o(null),v=o(!1),E=o(null),[y,N]=r(!1),[A,x]=r(l),[_,T]=r(0),[C,L]=r(!1),[I,w]=r(0),[O,R]=r(!1),[M,k]=r(0),[D,B]=r(0),P=d((()=>0===I?0:(I-a*(n-1))/n),[I,a,n]),z=d((()=>s&&0!==t.length?[...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),[t,s]),U=t.length,F=d((()=>0===P?0:-_*P+D),[P,_,D]);i((()=>{if(!g)return E.current&&(clearInterval(E.current),E.current=null),void N(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:a=3e3,pauseOnMouseEnter:r=!1,disableOnInteraction:o=!1,reverseDirection:i=!1}=e;E.current&&clearInterval(E.current),E.current=setInterval((()=>{x((e=>{if(C)return e;let a;if(o&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),a=s?(e+1)%t.length:Math.min(e+1,t.length-n),i){const n=s?0===e?t.length-1:e-1:Math.max(e-1,0);return T(s?t.length+n:n),L(!0),B(0),setTimeout((()=>{L(!1),f?.(n)}),h),n}return T(s?t.length+a:a),L(!0),B(0),setTimeout((()=>{L(!1),f?.(a),s&&a>=2*t.length&&(v.current=!0,T(t.length+a),setTimeout((()=>{v.current=!1}),0))}),h),a}))}),a),N(!0);let l=null;const c=()=>{E.current&&(clearInterval(E.current),E.current=null,N(!1))},d=()=>{E.current&&clearInterval(E.current),E.current=setInterval((()=>{x((e=>{if(C)return e;let a;return a=s?(e+1)%t.length:Math.min(e+1,t.length-n),T(s?t.length+a:a),L(!0),B(0),setTimeout((()=>{L(!1),f?.(a),s&&(a<2*t.length||(v.current=!0,T(t.length+a),setTimeout((()=>{v.current=!1}),0)))}),h),a}))}),a),N(!0)};return r&&b.current&&(l=b.current,l.addEventListener("mouseenter",c),l.addEventListener("mouseleave",d)),()=>{E.current&&(clearInterval(E.current),E.current=null),l&&(l.removeEventListener("mouseenter",c),l.removeEventListener("mouseleave",d)),N(!1)}}),[g,t.length,s,n,C,h,f,v]),i((()=>{T(s?t.length+l:l)}),[s,t.length,l]),i((()=>{const e=()=>{if(b.current){const e="horizontal"===c?b.current.offsetWidth:b.current.offsetHeight;w(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c]);const G=u((()=>{if(!C)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),s){const e=(A+1)%t.length,n=_+1;x(e),T(n),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e),n<2*t.length||(v.current=!0,T(t.length+e),setTimeout((()=>{v.current=!1}),0))}),h)}else{const e=Math.min(A+1,t.length-n);x(e),T(e),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e)}),h)}}),[A,_,t.length,n,s,C,h,f,z.length,U,g]),V=u((()=>{if(!C)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),s){const e=0===A?t.length-1:A-1,n=_-1;x(e),T(n),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e),n<t.length&&(v.current=!0,T(t.length+e),setTimeout((()=>{v.current=!1}),0))}),h)}else{const e=Math.max(A-1,0);x(e),T(e),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e)}),h)}}),[A,_,t.length,s,C,h,f,z.length,U,g]),H=u((e=>{C||e===A||(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),L(!0),B(0),x(e),T(s?t.length+e:e),setTimeout((()=>{L(!1),f?.(e)}),h))}),[A,C,h,f,s,U,g]),j=u((e=>{if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1));const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;k(t),R(!0),B(0)}),[m,c,g]),Y=u((e=>{if(!O||!m)return;const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,n=M-t;Math.abs(n)>10&&(e.preventDefault(),B(.5*-n))}),[O,M,m,c]),W=u((e=>{if(!O||!m)return;const t="horizontal"===c?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,n=M-t;R(!1),B(0),Math.abs(n)>p&&(n>0?G():V())}),[O,M,p,G,V,m,c]),K=s||A<t.length-n,$=s||A>0;return{activeIndex:A,realIndex:A,previousIndex:A,isBeginning:!s&&0===A,isEnd:!s&&A>=t.length-n,progress:t.length>0?A/(t.length-1):0,autoplayRunning:y,transitioning:C,touching:O,translate:F,slidesPerView:n,slidesCount:t.length,isLocked:!1,destroyed:!1,size:I,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:K,allowSlidePrev:$,allowTouchMove:m,animating:C,enabled:!0,initialized:!0,slideNext:G,slidePrev:V,goToSlide:H,canSlideNext:K,canSlidePrev:$,containerRef:b,wrapperRef:S,handleTouchStart:j,handleTouchMove:Y,handleTouchEnd:W,allSlides:z,translateValue:F,slideWidth:P,currentSlidesToShow:n,loopedSlides:U,repositioningRef:v}}function el(e){const t=d((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),n=d((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),n=Math.min(...e),a=Math.max(...e),r=ci(e).call(e,((e,t)=>e+t),0);return{min:n,max:a,total:r,average:r/e.length}}),[t]);return{data:t,stats:n,isEmpty:0===t.length}}function tl(e,t=400,n=300){return d((()=>{const a={top:20,right:20,bottom:40,left:40},r=t-a.left-a.right,o=n-a.top-a.bottom;if(!e.length)return{xScale:()=>a.left,yScale:()=>a.top+o,minValue:0,maxValue:0,valueRange:0,innerWidth:r,innerHeight:o,width:t,height:n,padding:a};const i=e.map((e=>e.value)),s=Math.min(0,...i),l=Math.max(...i),c=l-s||1;return{xScale:t=>a.left+t/Math.max(e.length-1,1)*r,yScale:e=>a.top+o-(e-s)/c*o,minValue:s,maxValue:l,valueRange:c,innerWidth:r,innerHeight:o,width:t,height:n,padding:a}}),[e,t,n])}function nl(){const[e,t]=r({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:u((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:u((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:u((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}}var al=Object.freeze({__proto__:null,DOTS:Vi,useAccordion:De,useAtomixGlass:et,useBadge:At,useBarChart:Ei,useBlock:Tt,useBreadcrumb:Zs,useButton:It,useCard:Vo,useChartData:el,useChartInteraction:nl,useChartScale:tl,useCheckbox:is,useDataTable:Gi,useEdgePanel:rs,useForm:ls,useFormGroup:ds,useGlassContainer:Ks,useHero:ps,useInput:hs,useLineChart:Ii,useModal:Xs,useNav:bs,useNavDropdown:vs,useNavItem:Ss,useNavbar:fs,usePagination:ji,usePieChart:Ri,useRadio:$s,useRiver:gs,useSelect:Qs,useSideMenu:Es,useSideMenuItem:ys,useSlider:Js,useSpinner:wt,useTextarea:qs,useTodo:Ws});const rl=s((({options:n=[],value:a,onChange:s,onBlur:l,onFocus:c,placeholder:d="Select an option",className:u="",style:h,disabled:m=!1,required:p=!1,id:g,name:f,size:b="md",invalid:S=!1,valid:v=!1,multiple:E=!1,ariaLabel:y,ariaDescribedBy:N,glass:A})=>{const{generateSelectClass:x}=Qs({size:b,disabled:m,invalid:S,valid:v}),_=x({className:`${u} ${A?"c-select--glass":""}`.trim(),size:b,disabled:m,invalid:S,valid:v}),[T,C]=r(!1),[L,I]=r(d),w=o(null),O=o(null),R=o(null),M=o(null);i((()=>{if(a){const e=n.find((e=>e.value===a));e&&I(e.label)}else I(d)}),[a,n,d]),i((()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&(C(!1),R.current&&(R.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const k=t("div",{className:`${_} ${T?fe.CLASSES.IS_OPEN:""}`,ref:w,style:h,"aria-expanded":T,children:[t("select",{ref:M,value:a,onChange:s,onBlur:l,onFocus:c,disabled:m,required:p,id:g,name:f,multiple:E,"aria-label":y,"aria-describedby":N,"aria-invalid":S,style:{display:"none"},children:[d&&e("option",{value:"",disabled:!0,children:d}),n.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:fe.CLASSES.SELECTED,onClick:()=>{m||(!T&&R.current&&O.current?R.current.style.height=O.current.clientHeight+"px":R.current&&(R.current.style.height="0px"),C(!T))},"aria-disabled":m,children:L}),e("i",{className:`${fe.CLASSES.ICON_CARET} ${fe.CLASSES.TOGGLE_ICON}`}),e("div",{className:fe.CLASSES.SELECT_BODY,ref:R,style:{height:0},children:e("div",{className:fe.CLASSES.SELECT_PANEL,ref:O,children:e("ul",{className:fe.CLASSES.SELECT_ITEMS,children:n.map(((n,r)=>e("li",{className:fe.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&(e=>{if(I(e.label),C(!1),R.current&&(R.current.style.height="0px"),M.current&&(M.current.value=e.value),s){const t={target:{name:f,value:e.value}};s(t)}})(n),children:t("label",{htmlFor:"SelectItem"+r,className:"c-checkbox",children:[e("input",{type:"checkbox",id:"SelectItem"+r,className:"c-checkbox__input c-select__item-input",checked:a===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value)))})})})]});if(A){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},n=!0===A?t:{...t,...A};return e(tt,{...n,children:k})}return k}));rl.displayName="Select";const ol=s((({label:n,checked:a=!1,onChange:r,className:o="",style:i,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,ariaLabel:p,ariaDescribedBy:g,glass:f})=>{const{generateRadioClass:b}=$s({disabled:s,invalid:h,valid:m}),S=b({className:`${o} ${f?"c-radio--glass":""}`.trim(),disabled:s,invalid:h,valid:m}),v=t("div",{className:S,style:i,children:[e("input",{type:"radio",className:"c-radio__input",checked:a,onChange:r,disabled:s,required:l,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(f){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===f?t:{...t,...f};return e(tt,{...n,children:v})}return v}));ol.displayName="Radio";const il=s(l((({value:t,onChange:n,onBlur:a,onFocus:r,placeholder:o,className:i="",style:s,disabled:l=!1,required:c=!1,readOnly:d=!1,id:u,name:h,rows:m=4,cols:p,maxLength:g,minLength:f,size:b="md",variant:S,invalid:v=!1,valid:E=!1,autoFocus:y=!1,ariaLabel:N,ariaDescribedBy:A,glass:x},_)=>{const{generateTextareaClass:T}=qs({size:b,variant:S,disabled:l,invalid:v,valid:E}),C=T({className:`${i} ${x?"c-input--glass":""}`.trim(),size:b,variant:S,disabled:l,invalid:v,valid:E}),L=e("textarea",{ref:_,className:C,value:t,onChange:n,onBlur:a,onFocus:r,placeholder:o,disabled:l,required:c,readOnly:d,id:u,name:h,rows:m,cols:p,maxLength:g,minLength:f,autoFocus:y,"aria-label":N,"aria-describedby":A,"aria-invalid":v,style:x?{...s}:s});if(x){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,cornerRadius:8,mode:"shader"},n=!0===x?t:{...t,...x};return e(tt,{...n,children:L})}return L})));il.displayName="Textarea";const sl=l((({platform:n,url:a,icon:r,label:o,size:i="md",variant:s="default",disabled:l=!1,className:c="",...d},u)=>{const h=["c-footer__social-link","c-footer__social-link--"+n,"c-footer__social-link--"+i,"c-footer__social-link--"+s,l&&"c-footer__social-link--disabled",c].filter(Boolean).join(" "),m=o||"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))(n);return t("a",{ref:u,href:l?void 0:a,className:h,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":l,...d,children:[e("span",{className:"c-footer__social-link-icon",children:r||(t=>{const n={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"}[t];return e(Et,n?{name:n}:{name:"Link"})})(n)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));sl.displayName="FooterSocialLink";const ll=l((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:o,direction:i,wrap:s,...l},c)=>{const d=["o-grid"];return a&&d.push("u-justify-content-"+a),r&&d.push("u-align-items-"+r),o&&d.push("o-grid--no-gutters"),i&&d.push("u-flex-direction-"+i),s&&d.push("u-flex-wrap-"+s),n&&d.push(n),e("div",{ref:c,className:d.join(" "),...l,children:t})}));ll.displayName="Grid";const cl=l((({children:t,className:n="",xs:a,sm:r,md:o,lg:i,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:u,offsetLg:h,offsetXl:m,offsetXxl:p,grow:g,shrink:f,basis:b,align:S,...v},E)=>{const y=a||r||o||i||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],N=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?y.push("o-grid__col--auto"):y.push("o-grid__col--"+e):"auto"===e?y.push(`o-grid__col--${t}-auto`):y.push(`o-grid__col--${t}-${e}`)):y.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return N(a,"xs"),N(r,"sm"),N(o,"md"),N(i,"lg"),N(s,"xl"),N(l,"xxl"),c&&y.push("o-grid__offset--"+c),d&&y.push("o-grid__offset--sm-"+d),u&&y.push("o-grid__offset--md-"+u),h&&y.push("o-grid__offset--lg-"+h),m&&y.push("o-grid__offset--xl-"+m),p&&y.push("o-grid__offset--xxl-"+p),void 0!==g&&y.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&y.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),b&&y.push("u-flex-basis-"+b),S&&y.push("u-align-self-"+S),n&&y.push(n),e("div",{ref:E,className:y.join(" "),...v,children:t})}));cl.displayName="GridCol";const dl=l((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:o,...i},s)=>{const l=["o-grid"];return a&&l.push("u-justify-content-"+a),r&&l.push("u-align-items-"+r),o&&l.push("o-grid--no-gutters"),n&&l.push(n),e("div",{ref:s,className:l.join(" "),...i,children:t})}));dl.displayName="Row";const ul=l((({brand:n,brandLogo:r,brandDescription:o,copyright:i,layout:s="columns",variant:l="primary",size:c="md",showNewsletter:d=!1,newsletterTitle:u="Stay Updated",newsletterDescription:h="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:m="Enter your email",newsletterButtonText:p="Subscribe",onNewsletterSubmit:g,socialLinks:f=[],showBackToTop:b=!1,backToTopText:S="Back to Top",onBackToTop:v,showDivider:E=!0,sticky:y=!1,children:N,className:A="",disabled:x=!1,glass:_,...T},C)=>{const{footerClass:L,containerClass:I,brandClass:w,sectionsClass:O,bottomClass:R,handleNewsletterSubmit:M,handleBackToTop:k,socialLinks:D}=function(e={}){const{layout:t=Me.DEFAULTS.LAYOUT,variant:n=Me.DEFAULTS.VARIANT,size:a=Me.DEFAULTS.SIZE,sticky:r=Me.DEFAULTS.STICKY,showNewsletter:o=Me.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:i=Me.DEFAULTS.SHOW_BACK_TO_TOP,socialLinks:s=[],onNewsletterSubmit:l,onBackToTop:c,className:d=""}=e;return{footerClass:[Me.CLASSES.BASE,Me.CLASSES[t.toUpperCase()]||Me.CLASSES.COLUMNS,"c-footer--"+n,Me.CLASSES[a.toUpperCase()]||Me.CLASSES.MD,r&&Me.CLASSES.STICKY,o&&"c-footer--with-newsletter",d].filter(Boolean).join(" "),containerClass:Me.CLASSES.CONTAINER,brandClass:Me.CLASSES.BRAND,sectionsClass:[Me.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" "),bottomClass:Me.CLASSES.BOTTOM,handleNewsletterSubmit:e=>{l&&l(e)},handleBackToTop:()=>{c?c():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:s,showNewsletter:o}}({layout:s,variant:l,size:c,sticky:y,showNewsletter:d,showBackToTop:b,socialLinks:f,onNewsletterSubmit:g,onBackToTop:v,className:A}),B=(()=>{switch(s){case"columns":default:return{brand:4,content:d?4:8,newsletter:d?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:d?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:d?9:0};case"wide":return{brand:3,content:6,newsletter:d?3:0}}})(),P=e=>{const t="columns"===s||"sidebar"===s||"wide"===s?B[e]:12;return"flexible"===s&&"auto"===B[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:t}},z=t("div",{className:I,children:[t(ll,{className:O,alignItems:"start",justifyContent:"centered"===s?"center":void 0,children:[(n||r||o)&&t(cl,{...P("brand"),className:w,children:[r&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof r?e("img",{src:r,alt:"Brand Logo"}):r}),n&&e("div",{className:"c-footer__brand-name",children:"string"==typeof n?e("h3",{children:n}):n}),o&&e("div",{className:"c-footer__brand-description",children:o}),f.length>0&&e("div",{className:"c-footer__social","data-testid":"footer-social-links",children:f.map(((t,n)=>e(sl,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:c},`${t.platform}-${n}`)))})]}),N&&e(cl,{...P("content"),className:"c-footer__content",children:e(ll,{className:"c-footer__sections",alignItems:"centered"===s||"stacked"===s?"center":void 0,children:a.Children.map(N,(e=>a.isValidElement(e)?a.cloneElement(e,{showNewsletter:d}):e))})}),d&&t(cl,{...P("newsletter"),className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:u}),h&&e("p",{className:"c-footer__newsletter-description",children:h}),e(cs,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&M(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(ms,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:m,required:!0}),e(Mt,{type:"submit",className:"c-footer__newsletter-button",children:p})]})})]})]}),(i||b)&&t("div",{className:R,children:[i&&e("div",{className:"c-footer__copyright",children:i}),b&&t(Mt,{variant:"ghost",className:"c-footer__back-to-top",onClick:k,disabled:x,"aria-label":S,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:S})]})]})]});return e("footer",{ref:C,className:L+" c-footer "+(_?"c-footer--glass":""),...T,children:_?e(tt,{..._,elasticity:0,children:e("div",{className:"c-footer__glass",children:z})}):z})}));ul.displayName="Footer";const hl=l((({children:t,className:n="",xs:s=1,sm:l,md:c,lg:d,xl:p,xxl:g,gap:f=16,animate:S=!0,imagesLoaded:v=!0,onLayoutComplete:E,onImageLoad:y,...N},A)=>{const[x,_]=r(s),[T,C]=r([]),[L,I]=r(!1),[w,O]=r(!1),R=o(null),M=o([]),k=o(0),D=o(0),B=o(new Map);i((()=>{O(!!v)}),[x,v]),b(A,(()=>R.current));const P=u((()=>{const e=window.innerWidth;return 1400>e||void 0===g?1200>e||void 0===p?992>e||void 0===d?768>e||void 0===c?576>e||void 0===l?s:l:c:d:p:g}),[s,l,c,d,p,g]);i((()=>{const e=()=>_(P());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[P]);const[z,U]=r([]);i((()=>{const e=[];h.forEach(t,((t,n)=>{m(t)&&e.push({id:t.key?.toString()||"masonry-item-"+n,element:t,position:null,ref:a.createRef()})})),U(e)}),[t]);const F=u((e=>{if(!B.current.get(e)){if(B.current.set(e,!0),k.current+=1,R.current&&v){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((()=>{V()}))})),y?.(k.current,D.current),k.current>=D.current&&D.current>0&&(I(!0),O(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{V(),O(!1)}))})),E?.())}}),[y,E,v]),G=u((()=>{if(!v||!R.current)return;B.current.clear(),k.current=0;const e=R.current.querySelectorAll("img");return D.current=e.length,0===e.length?(I(!0),O(!1),void E?.()):(O(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)F(e);else{const n=()=>F(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[v,F,E]),V=u((()=>{if(!R.current||0===z.length)return;const e=(R.current.offsetWidth-f*(x-1))/x;M.current=Array(x).fill(0);const t=[];z.forEach(((n,a)=>{if(n.ref.current){const r=M.current.indexOf(Math.min(...M.current)),o=r*(e+f),i=M.current[r]??0,s=n.ref.current.offsetHeight;M.current[r]=i+s+f,t[a]={left:o,top:i,width:e,height:s}}})),C(t)}),[z,x,f]);i((()=>{if(!R.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>V()))}));return t.observe(R.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[V]),a.useLayoutEffect((()=>v?G():(V(),I(!0),void O(!1))),[z,x,V,v,G]),a.useEffect((()=>{const e=[];return z.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[z,V]);const H=M.current.length>0?Math.max(...M.current):0,j=["o-masonry-grid",n,S?"o-masonry-grid--animate":"",w?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:R,className:j,style:{position:"relative",width:"100%",height:H+"px",...N.style},...N,children:z.map(((t,n)=>{const a=T[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:a.left+"px",top:a.top+"px",width:a.width+"px",opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));hl.displayName="MasonryGrid";const ml=l((({children:t,className:n="",...a},r)=>{const o=["o-masonry-grid__item-inner"];return n&&o.push(n),e("div",{ref:r,className:o.join(" "),...a,children:t})}));ml.displayName="MasonryGridItem";var pl=Object.freeze({__proto__:null,Container:_t,Grid:ll,GridCol:cl,MasonryGrid:hl,MasonryGridItem:ml,Row:dl});const gl=l((({title:n,icon:r,collapsible:o=!1,defaultCollapsed:i=!1,showNewsletter:s=!1,children:l,className:c="",...d},u)=>{const[h,m]=a.useState(i),p=["c-footer__section",o&&"c-footer__section--collapsible",h&&"c-footer__section--collapsed",c].filter(Boolean).join(" ");return e(cl,{xs:12,md:s?6:3,className:"c-footer__section-col",children:t("div",{ref:u,className:p,...d,children:[n&&e("div",{className:"c-footer__section-header",children:o?t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{o&&m(!h)},"aria-expanded":!h,"aria-controls":"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"),children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:n}),e("span",{className:"c-footer__section-chevron",children:h?"▼":"▲"})]}):t("div",{className:"c-footer__section-header-content",children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:n})]})}),e("div",{className:"c-footer__section-content",id:n?"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"):void 0,style:{display:o&&h?"none":"flex"},children:l})]})})}));gl.displayName="FooterSection";const fl=l((({href:n,icon:a,external:r=!1,active:o=!1,disabled:i=!1,onClick:s,children:l,className:c="",LinkComponent:d,...u},h)=>{const m={className:["c-footer__link",o&&"c-footer__link--active",i&&"c-footer__link--disabled",c].filter(Boolean).join(" "),onClick:i?void 0:s,"aria-disabled":i,...r&&{target:"_blank",rel:"noopener noreferrer"},...u};if(d){const o=d,s={ref:h,...n&&!i?{to:n}:{},...m};return t(o,{...s,children:[a&&e("span",{className:"c-footer__link-icon",children:a}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]})}return t("a",{ref:h,href:i?void 0:n,...m,children:[a&&e("span",{className:"c-footer__link-icon",children:a}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]})}));fl.displayName="FooterLink";const bl=({title:a,subtitle:r,text:o,imageSrc:i,imageAlt:s="Hero image",alignment:l="left",backgroundImageSrc:c,showOverlay:d=!0,fullViewportHeight:u=!1,actions:h,imageColSize:m=7,contentColSize:p=5,contentWidth:g,className:f="",style:b,parallax:S=!1,parallaxIntensity:v=.5,videoBackground:E,children:y,glass:N,videoOptions:A={autoplay:!0,loop:!0,muted:!0},backgroundSlider:x})=>{const{generateHeroClassNames:_,generateImageColClass:T,generateContentColClass:C,hasBackgroundImage:L,hasForegroundImage:I,useGridLayout:w,heroRef:O,videoRef:R,backgroundSlider:M,hasBackgroundSlider:k}=ps({alignment:l,imageColSize:m,contentColSize:p,imageSrc:i,backgroundImageSrc:c,showOverlay:d,fullViewportHeight:u,contentWidth:g,parallax:S,parallaxIntensity:v,videoBackground:E,backgroundSlider:x}),D={...g?{"--atomix-hero-content-width":g}:{},...b},B=()=>{if(!E)return null;const{autoplay:n,loop:a,muted:r,posterUrl:o}=A;return t("video",{ref:R,className:"c-hero__video",autoPlay:n,loop:a,muted:r,playsInline:!0,poster:o,children:[e("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},P=()=>{const n=t("div",{className:Y.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:Y.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:Y.SELECTORS.TITLE.replace(".",""),children:a}),o&&e("p",{className:Y.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:Y.SELECTORS.ACTIONS.replace(".",""),children:h})]});return!1===N?n:N?e("div",!0===N?{className:Y.SELECTORS.CONTENT.replace(".",""),children:e(tt,{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:Y.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:Y.SELECTORS.TITLE.replace(".",""),children:a}),o&&e("p",{className:Y.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:Y.SELECTORS.ACTIONS.replace(".",""),children:h})]})})}:{className:Y.SELECTORS.CONTENT.replace(".",""),children:e(tt,{...N,children:t("div",{className:"u-p-4",children:[r&&e("p",{className:Y.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:Y.SELECTORS.TITLE.replace(".",""),children:a}),o&&e("p",{className:Y.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:Y.SELECTORS.ACTIONS.replace(".",""),children:h})]})})}):n},z=()=>I?e("div","center"===l?{className:Y.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:i,alt:s,className:Y.SELECTORS.IMAGE.replace(".","")})}:{className:T(),children:e("img",{src:i,alt:s,className:Y.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:O,className:_(f),style:D,"data-parallax":S?"true":void 0,"data-parallax-intensity":S?v:void 0,children:[(()=>{if(k&&x&&M){const{slides:n,transition:a="fade",transitionDuration:r=1e3}=x,{currentIndex:o,slideRefs:i,videoRefs:s}=M;let l=Y.CLASSES.SLIDER_FADE;return"slide"===a?l=Y.CLASSES.SLIDER_SLIDE:"custom"===a&&(l=Y.CLASSES.SLIDER_CUSTOM),t("div",{className:`${Y.SELECTORS.SLIDER.replace(".","")} ${l}`,style:{"--slider-transition-duration":r+"ms"},onMouseEnter:()=>{x.autoplay?.pauseOnHover&&M.pauseAutoplay()},onMouseLeave:()=>{x.autoplay?.pauseOnHover&&M.resumeAutoplay()},children:[n.map(((n,a)=>{const r=a===o,l=i[a],c=s[a];return e("div",{ref:l,className:`${Y.SELECTORS.SLIDER_ITEM.replace(".","")} ${r?Y.CLASSES.SLIDER_ITEM_ACTIVE:""}`,children:"image"===n.type?e("img",{src:n.src,alt:n.alt||"Background slide",className:Y.SELECTORS.BG_IMAGE.replace(".","")}):t("video",{ref:c,className:"c-hero__video",autoPlay:!1!==n.videoOptions?.autoplay,loop:!1!==n.videoOptions?.loop,muted:!1!==n.videoOptions?.muted,playsInline:!0,poster:n.videoOptions?.posterUrl,children:[e("source",{src:n.src,type:"video/"+(n.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},a)})),d&&e("div",{className:Y.SELECTORS.OVERLAY.replace(".","")})]})}return L||E?t("div",{className:Y.SELECTORS.BG.replace(".",""),children:[c&&e("img",{src:c,alt:"Background",className:Y.SELECTORS.BG_IMAGE.replace(".","")}),B(),d&&e("div",{className:Y.SELECTORS.OVERLAY.replace(".","")})]}):null})(),e("div",{className:Y.SELECTORS.CONTAINER.replace(".","")+" o-container",children:y?e("div",{className:Y.SELECTORS.GRID.replace(".",""),children:y}):w?e("div",{className:Y.SELECTORS.GRID.replace(".","")+" o-grid",children:t(n,"left"===l?{children:[e("div",{className:C(),children:P()}),z()]}:{children:[z(),e("div",{className:C(),children:P()})]})}):t(n,{children:[P(),z()]})})]})};bl.displayName="Hero";const Sl=s((({children:t,variant:n="default",className:r="",style:o,...i})=>{var s;const l=[G.BASE_CLASS,"default"!==n&&"c-list--"+n,r].filter(Boolean).join(" "),c=Bo(s=["number","text"]).call(s,n)?"ol":"ul";return e(c,{className:l,style:o,...i,children:a.Children.map(t,(t=>e("li",{className:"c-list__item",children:t})))})}));Sl.displayName="List";const vl=({children:t,className:n="",style:r,variant:o="default"})=>{const i=[V.BASE_CLASS,n].filter(Boolean).join(" "),s=a.Children.toArray(t).filter((e=>a.isValidElement(e)&&e.type===Sl));return e("div",{className:i,style:r,children:s.map(((e,t)=>{const n=e.props;return a.cloneElement(e,{key:t,variant:n?.variant??o})}))})};vl.displayName="ListGroup";const El=({messages:a=[],otherAvatar:o,selfAvatar:i,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",style:h,bodyHeight:m,disabled:p=!1,id:g,glass:f})=>{const{inputValue:b,handleInputChange:S,handleSubmit:v,handleKeyDown:E}=(({onSendMessage:e}={})=>{const[t,n]=r(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}})({onSendMessage:c}),y=g||"messages-"+Math.random().toString(36).substr(2,9),N=y+"-input",A={displacementScale:150,cornerRadius:12,elasticity:0,aberrationIntensity:2},x=`${ye.CLASSES.BASE} ${f?"c-messages--glass":""} ${p?"is-disabled":""} ${u}`,_=t(n,{children:[e("div",{className:ye.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${ye.CLASSES.CONTENT} ${n.isSelf?ye.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(yt,{src:n.isSelf?i:o,size:"xl",circle:!0,className:ye.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":(s||"Other person")+"'s avatar"}),t("div",{className:ye.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:ye.CLASSES.NAME,children:s}),n.text&&t("div",{className:ye.CLASSES.TEXT,children:[n.text,e("span",{className:ye.CLASSES.TIME,"aria-label":"Sent at "+n.time,children:n.time})]}),n.image&&e("img",{className:ye.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:ye.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:ye.CLASSES.FILE_ICON,children:e(Et,{name:"File","aria-hidden":"true"})}),t("div",{className:ye.CLASSES.FILE_DETAILS,children:[e("div",{className:ye.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:ye.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:ye.CLASSES.FORM,onSubmit:v,"aria-label":"Message input form",children:[t("div",{className:ye.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:N,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:N,type:"text",className:ye.CLASSES.INPUT,placeholder:d,value:b,onChange:S,onKeyDown:E,disabled:p,"aria-label":"Message input"}),t("div",{className:ye.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:ye.CLASSES.OPTION,"aria-label":"Attach file",disabled:p,children:e(Et,{name:"PaperclipHorizontal","aria-hidden":"true",className:ye.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:ye.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(Et,{name:"Image","aria-hidden":"true",className:ye.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:ye.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(Et,{name:"Link","aria-hidden":"true",className:ye.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:ye.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(Et,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(f){const t=!0===f?A:{...A,...f};return e("div",{className:x,style:{"--atomix-messages-width":l,...h},id:y,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e(tt,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.cornerRadius},children:_})})})}return e("div",{className:x,style:{"--atomix-messages-width":l,...h},id:y,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:_})};El.displayName="Messages";const yl=s((({children:n,isOpen:a=!1,onOpenChange:s,onClose:l,onOpen:c,title:d,subtitle:h,size:m="md",backdrop:p=!0,keyboard:g=!0,className:f="",style:b,closeButton:S=!0,footer:v,glass:E,...y})=>{const N=o(null),A=o(null),x=o(null),{isOpen:_,open:T,close:C}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[o,s]=r(!1),l=void 0!==e,c=l?!!e:o;i((()=>{l&&s(!!e)}),[e,l]);const d=u((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),h=u((()=>{d(!0)}),[d]),m=u((()=>{d(!1)}),[d]),p=u((()=>{d(!c)}),[c,d]);return{isOpen:c,open:h,close:m,toggle:p}}({isOpen:a,onOpenChange:s,onClose:l,onOpen:c});i((()=>{if(!g)return;const e=e=>{"Escape"===e.key&&_&&C()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,C,g]);const L=["c-modal",_?Ee.CLASSES.IS_OPEN:"",m?"c-modal--"+m:"",E?"c-modal--glass":"",f].filter(Boolean).join(" "),I=t("div",{className:"c-modal__content",children:[(d||S)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[d&&e("h3",{className:"c-modal__title",children:d}),h&&e("p",{className:"c-modal__sub",children:h})]}),S&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:C,"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}),v&&e("div",{className:"c-modal__footer",children:v})]});return t("div",{ref:N,className:L,style:{display:_?"block":"none",...b},role:"dialog","aria-modal":"true","aria-hidden":!_,...y,children:[e("div",{ref:x,className:"c-modal__backdrop",onClick:e=>{p&&e.target===e.currentTarget&&C()}}),e("div",{ref:A,className:"c-modal__dialog",children:E?(()=>{const t={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},n=!0===E?t:{...t,...E};return e(tt,{...n,children:I})})():I})]})}));yl.displayName="Modal";const Nl=l((({children:t,alignment:n="start",variant:r="default",className:o="",disabled:i=!1,glass:s},l)=>{const{generateNavClass:c}=bs({alignment:n,variant:r}),d=c({alignment:n,variant:r,className:o}),u=e("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))});if(s){const t={displacementScale:60,blurAmount:1.5,cornerRadius:8,mode:"shader"},n=!0===s?t:{...t,...s};return e(tt,{...n,children:u})}return u}));Nl.displayName="Nav";const Al=l((({children:n,dropdown:s=!1,megaMenu:l=!1,active:c=!1,href:d,onClick:u,className:h="",disabled:m=!1,"aria-expanded":p,LinkComponent:g},f)=>{const{generateNavItemClass:b,generateNavLinkClass:S,handleClick:v}=Ss({dropdown:s,megaMenu:l,active:c,disabled:m}),[E,y]=r(!1),N=o(null);i((()=>{if(!s&&!l||!E)return;const e=e=>{N.current&&!N.current.contains(e.target)&&(768>window.innerWidth||y(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[s,l,E]),i((()=>{if(!s&&!l)return;const e=()=>{window.innerWidth>=768&&E&&y(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,l,E]);const A=b({dropdown:s,megaMenu:l,active:c,disabled:m,className:h})+(E?" is-active":""),x=S(c,m,s||l?"c-nav__dropdown-toggle":""),_=a.Children.toArray(n),T=void 0!==p?p:E,C={ref:N,href:d||"#",className:x,onClick:s||l?e=>{(s||l)&&(e.preventDefault(),y(!E))}:v(u),"aria-disabled":m,"aria-expanded":s||l?T:void 0,"aria-current":!c||s||l?void 0:"page"};return t("li",{ref:f,className:A,role:"menuitem","aria-haspopup":s||l,children:[e(g||"a",{...C,children:s||l?_[0]:n}),(s||l)&&_.length>1&&_[1]]})}));Al.displayName="NavItem";const xl=l((({brand:n,children:a,variant:s,position:l="static",containerWidth:c,collapsible:d=!0,expanded:u,onToggle:h,className:m="",style:p,disabled:g=!1,backdrop:f=!1,closeOnOutsideClick:b=!0,closeOnEscape:S=!0,ariaLabel:v="Main navigation",id:E,glass:y},N)=>{const{generateNavbarClass:A,generateContainerStyle:x,generateCollapseClass:_}=fs({position:l,collapsible:d,expanded:u,onToggle:h}),[T,C]=r(u||!1),L=o(null);i((()=>{void 0!==u&&C(u)}),[u]),i((()=>{const e=()=>{window.innerWidth>=768&&d&&("function"==typeof h?u&&h(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[d,u,h]);const I=A({position:l,variant:s,collapsible:d,className:m}),w=x(c),O=_(T),R=t("div",{className:"c-navbar__container",style:w,children:[n&&("string"==typeof n?e("a",{href:"/",className:"c-navbar__brand",children:n}):e("div",{className:"c-navbar__brand",children:n})),d&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(g)return;const e=!T;"function"==typeof h?h(e):C(e)},"aria-expanded":T,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:g,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:O,ref:L,children:a})]});if(y){const t={displacementScale:30,blurAmount:2,cornerRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},n=!0===y?t:{...t,...y};return e(tt,{...n,style:{..."fixed"===l&&{position:"fixed"},left:0,right:0,top:0,zIndex:1e3},children:e("nav",{ref:N,className:I+" c-navbar--glass","aria-label":v,id:E,style:p,children:R})})}return e("nav",{ref:N,className:I,"aria-label":v,id:E,style:p,children:R})}));function _l(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Tl(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{_l(e,n),_l(t,n)}),[e,t])}xl.displayName="Navbar";const Cl=l((({children:t,className:n=""},r)=>e("ul",{ref:r,className:("c-side-menu__list "+n).trim(),role:"list",children:a.Children.map(t,((t,n)=>a.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},n):t))})));Cl.displayName="SideMenuList";const Ll=l((({children:n,href:a,onClick:r,active:o=!1,disabled:i=!1,icon:s,className:l="",target:c,rel:d,LinkComponent:u},h)=>{const{LinkComponent:m}=wl(),p=u??m,{generateSideMenuItemClass:g,handleClick:f}=ys({active:o,disabled:i,className:l}),b=g();if(a){if(p){const l={ref:h,className:b,onClick:i?e=>{e.preventDefault()}:r,"aria-disabled":i,"aria-current":o?"page":void 0,target:c,rel:d,tabIndex:i?-1:0,...i?{}:{href:a,to:a}};return t(p,{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}const l={ref:h,href:i?void 0:a,className:b,onClick:f(r),"aria-disabled":i,"aria-current":o?"page":void 0,target:c,rel:d,tabIndex:i?-1:0};return t("a",{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}return t("button",{ref:h,type:"button",className:b,onClick:f(r),disabled:i,"aria-current":o?"page":void 0,tabIndex:i?-1:0,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}));Ll.displayName="SideMenuItem";const Il=g({}),wl=()=>f(Il),Ol=l((({title:a,children:s,menuItems:l=[],isOpen:c,onToggle:d,collapsible:u=!0,collapsibleDesktop:h=!1,defaultCollapsedDesktop:m=!1,className:p="",style:g,disabled:f=!1,toggleIcon:b,id:S,glass:v,LinkComponent:E},y)=>{const{isOpenState:N,wrapperRef:A,innerRef:x,sideMenuRef:_,generateSideMenuClass:T,generateWrapperClass:C,handleToggle:L}=Es({isOpen:c,onToggle:d,collapsible:u,collapsibleDesktop:h,defaultCollapsedDesktop:m,disabled:f}),[I,w]=r((()=>"undefined"!=typeof window&&768>window.innerWidth)),[O,R]=r((()=>{const e={};return l?.forEach(((t,n)=>{e[n]=!0})),e})),M=o({}),k=o({}),D=o(l?.length??0);i((()=>{const e=()=>{w(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),i((()=>{const e=l?.length??0;D.current!==e&&(D.current=e,R((e=>{const t={};return l?.forEach(((n,a)=>{t[a]=e[a]??!0})),t})),Object.keys(M.current).forEach((t=>{const n=Number(t);e>n||(delete M.current[n],delete k.current[n])})))}),[l?.length]);const B=(e,t)=>{const n=M.current[e],a=k.current[e];n&&a&&(n.style.height=t?a.scrollHeight+"px":"0px")};i((()=>{if(!l?.length)return;const e=setTimeout((()=>{l.forEach(((e,t)=>{const n=O[t]??!0;B(t,n)}))}),0);return()=>clearTimeout(e)}),[l?.length]),i((()=>{if(!l?.length)return;const e=[];return Object.keys(O).forEach((t=>{const n=Number(t),a=O[n]??!0,r=requestAnimationFrame((()=>{B(n,a)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[O,l?.length]);const P=Tl(_,y),z=T({className:p,isOpen:N}),U=C(),F=e(Et,{name:"CaretRight",size:"xs"}),G=I&&u||!I&&h,V=a&&!G,H=t(n,{children:[a&&G&&t("div",{className:"c-side-menu__toggler",onClick:L,role:"button",tabIndex:f?-1:0,"aria-expanded":N,"aria-controls":S?S+"-content":void 0,"aria-disabled":f,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),L())},children:[e("span",{className:"c-side-menu__title",children:a}),e("span",{className:"c-side-menu__toggler-icon",children:b||F})]}),V&&e("h3",{className:"c-side-menu__title",children:a}),e("div",{ref:A,className:U,id:S?S+"-content":void 0,"aria-hidden":!!G&&!N,children:e(Il.Provider,{value:{LinkComponent:E},children:t("div",{ref:x,className:"c-side-menu__inner",children:[s,l?.map(((n,a)=>{const r=O[a]??!0,o=n.items&&n.items.length>0,i=o&&!f,s=()=>{i&&R((e=>({...e,[a]:!e[a]})))};return t("div",{className:"c-side-menu__item",children:[n.title&&t("div",{className:["c-side-menu__toggler",i&&"c-side-menu__toggler--nested",r&&"is-open"].filter(Boolean).join(" "),onClick:i?s:void 0,role:i?"button":void 0,tabIndex:i&&!f?0:void 0,"aria-expanded":i?r:void 0,"aria-disabled":f,onKeyDown:i?e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),s())}:void 0,children:[e("span",{className:"c-side-menu__title",children:n.title}),i&&e("span",{className:"c-side-menu__toggler-icon",children:n.toggleIcon||e(Et,{name:"CaretRight",size:"xs"})})]}),o&&e("div",{ref:e=>{M.current[a]=e},className:"c-side-menu__nested-wrapper",children:e("div",{ref:e=>{k.current[a]=e},className:"c-side-menu__nested-inner",children:e(Cl,{children:n.items?.map(((t,n)=>e(Ll,{href:t.href,onClick:t.onClick,active:t.active,disabled:t.disabled,icon:t.icon,LinkComponent:E,children:t.title},n)))})})})]},a)}))]})})})]});if(v){const t={displacementScale:70,blurAmount:2,cornerRadius:12,mode:"shader"},n=!0===v?t:{...t,...v};return e(tt,{...n,children:e("div",{ref:P,className:z+" c-side-menu--glass",id:S,style:g,children:H})})}return e("div",{ref:P,className:z,id:S,style:g,children:H})}));Ol.displayName="SideMenu";const Rl=l((({children:t,className:n="",style:r,disabled:o=!1},i)=>e("div",{ref:i,className:"c-menu "+n,style:r,children:e("ul",{className:"c-menu__list",role:"menu",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))})})));Rl.displayName="Menu";const Ml=l((({children:n,href:a="#",icon:r,active:o=!1,disabled:i=!1,onClick:s,className:l=""},c)=>e("li",{ref:c,className:`c-menu__item ${o?"is-active":""} ${i?"is-disabled":""} ${l}`,role:"menuitem",children:t("a",{href:a,className:"c-menu__link",onClick:e=>{i?e.preventDefault():s&&s()},"aria-disabled":i,"aria-current":o?"page":void 0,children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(Et,{name:kl(r.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):e("i",{className:"c-menu__icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__icon",children:r})),n]})})));Ml.displayName="MenuItem";const kl=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),Dl=l((({className:t=""},n)=>e("li",{ref:n,className:"c-menu__divider "+t,role:"separator"})));Dl.displayName="MenuDivider";const Bl=l((({children:t,className:n="",style:r,disabled:o=!1},i)=>e("div",{ref:i,className:"c-menu c-menu--mega "+n,style:r,children:e("div",{className:"c-menu__container",children:e("div",{className:"c-menu__grid o-grid",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))})})})));Bl.displayName="MegaMenu";const Pl=l((({title:n,icon:r,children:o,width:i="auto",className:s="",disabled:l=!1},c)=>t("div",{ref:c,className:`o-grid__col o-grid__col--${i} ${s}`,children:[(n||r)&&t("div",{className:"c-menu__header",children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(Et,{name:kl(r.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):e("i",{className:"c-menu__header-icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__header-icon",children:r})),n&&e("div",{className:"c-menu__header-title",children:n})]}),e("ul",{className:"c-menu__subitems-list",role:"menu",children:a.Children.map(o,(t=>{if(a.isValidElement(t)){const n=t.props;return e("li",{className:"c-menu__subitem",role:"menuitem",children:a.cloneElement(t,{...n,disabled:!!l||n?.disabled})})}return null}))})]})));Pl.displayName="MegaMenuColumn";const zl=l((({href:t,children:n,className:a="",disabled:r=!1,onClick:o},i)=>e("a",{ref:i,href:t,className:`c-menu__subitem-link ${r?"is-disabled":""} ${a}`,onClick:e=>{r?e.preventDefault():o&&o()},"aria-disabled":r,children:n})));zl.displayName="MegaMenuLink";const Ul=l((({title:a,children:s,alignment:l="start",megaMenu:c=!1,className:d="",style:u,disabled:h=!1},m)=>{const{generateDropdownMenuClass:p,getIconName:g}=vs({alignment:l,megaMenu:c}),[f,b]=r(!1),S=o(null),v=p({alignment:l,megaMenu:c,className:d}),E=g(c);i((()=>{if(!f)return;const e=e=>{768>window.innerWidth||!S.current||S.current.contains(e.target)||b(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f]),i((()=>{if(!f)return;const e=e=>{"Escape"===e.key&&b(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f]);const y=t(n,{children:[a,e(Et,{name:E,size:"sm",className:"c-nav__icon"})]}),N=e("div",{className:v,ref:S,"aria-hidden":!f,children:s});return t(Al,{dropdown:!c,megaMenu:c,disabled:h,className:f?"is-active":"",href:"#",onClick:()=>{h||b(!f)},"aria-expanded":f,style:u,children:[y,N]})}));Ul.displayName="NavDropdown";const Fl=({currentIndex:n,imagesLength:a,onZoomOut:r,onResetZoom:o,onZoomIn:i,onToggleFullscreen:s,onClose:l,isFullscreen:c,zoomLevel:d,onRotate:u,onDownload:h,onShare:m,showInfo:p,onToggleInfo:g,currentImage:f})=>t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(xt,{label:`${n+1} / ${a}`,variant:"primary",size:"sm"}),f?.title&&e("h3",{className:"c-photo-viewer__image-title",children:f.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:.1>=d,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(Et,{name:"Minus",size:"sm"})}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:1===d,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(Et,{name:"MagnifyingGlass",size:"sm"})}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,disabled:d>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(Et,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(Et,{name:"ArrowsClockwise",size:"sm"})}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(Et,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(Et,{name:"Share",size:"sm"})}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:g,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(p?"is-active":""),icon:e(Et,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":c?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(Et,{name:c?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(Et,{name:"X",size:"sm"})})]})]}),Gl=({show:a,onPrev:r,onNext:o,currentIndex:s,imagesLength:l,enableKeyboardNav:c,onClose:d})=>(i((()=>{if(!c)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&o(),"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,r,o,d]),a?t(n,{children:[e(Mt,{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(Et,{name:"CaretLeft",size:"md"})}),e(Mt,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:o,disabled:s===l-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(Et,{name:"CaretRight",size:"md"})})]}):null),Vl=({imageRef:t,containerRef:n,src:a,alt:s,zoomLevel:l,dragPosition:c,isDragging:d,rotationAngle:u,isTransitioning:h=!1,onMouseDown:m,onMouseMove:p,onMouseUp:g,onWheel:f,onTouchStart:b,onTouchMove:S,onTouchEnd:v,onDoubleClick:E})=>{const y=o(null),N=n||y,[A,x]=r(!1);return i((()=>(x(!0),()=>x(!1))),[]),i((()=>{const e=N.current;if(!e)return;const t=t=>{A&&e&&f&&f(t)},n=t=>{A&&e&&b&&b(t)},a=t=>{A&&e&&S&&S(t)},r=t=>{A&&e&&v&&v(t)};return A&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[A,f,b,S,v,N]),e("div",{ref:N,className:"c-photo-viewer__image-container "+(h?"is-transitioning":""),style:{cursor:d?"grabbing":l>1?"grab":"default",opacity:h?.7:1,touchAction:"none"},onMouseDown:m,onMouseMove:p,onMouseUp:g,onMouseLeave:g,onDoubleClick:e=>{A&&E&&E(e)},children:e("img",{ref:t,src:a,alt:s,className:"c-photo-viewer__image",style:{transform:`scale(${l}) translate(${c.x}px, ${c.y}px) rotate(${u}deg)`,transition:d?"none":h?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:d?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Hl=({images:n,currentIndex:a,goToImage:r})=>n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((n,o)=>{const i=n.thumbnail||n.src,s=o===a;return e(Mt,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(s?"is-active":""),onClick:()=>r(o),"aria-label":`View image ${o+1}${n.title?": "+n.title:""}`,"aria-current":s,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:i,alt:n.alt||"Thumbnail "+(o+1),className:"c-photo-viewer__thumbnail-img"}),s&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},o)}))})}):null,jl=({show:n,image:a,onClose:r})=>n&&a?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(Mt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(Et,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[a.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:a.title})}),a.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:a.description})}),(a.date||a.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[a.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(Et,{name:"Calendar",size:14}),e("span",{children:a.date})]}),a.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(Et,{name:"User",size:14}),e("span",{children:a.author})]})]})}),a.tags&&a.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:a.tags.map(((t,n)=>e(xt,{label:t,variant:"secondary",size:"sm"},n)))})]})]})]}):null,Yl=({images:n,startIndex:a=0,className:s="",disabled:l=!1,enableKeyboardNavigation:c=!0,enableGestures:h=!0,enableFullscreen:m=!0,thumbnailPosition:p="bottom",onImageChange:g,onClose:f})=>{const{currentIndex:b,zoomLevel:S,imagePosition:v,isDragging:E,isFullscreen:y,rotationAngle:N,showInfo:A,imageRef:x,containerRef:_,isTransitioning:T,setZoomLevel:C,setImagePosition:L,setIsDragging:I,setIsFullscreen:w,setRotationAngle:O,setShowInfo:R,closeModal:M,goToPrevious:k,goToNext:D,setCurrentIndex:B,handleMouseDown:P,handleMouseMove:z,handleMouseUp:U,handleWheel:F,handleTouchStart:G,handleTouchMove:V,handleTouchEnd:H,handleDoubleClick:j,resetImageState:Y}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:s})=>{const[l,c]=r(t),[d,h]=r(!1),[m,p]=r(!1),[g,f]=r({x:0,y:0}),[b,S]=r(!1),[v,E]=r(!1),[y,N]=r({}),[A,x]=r(!1),[_,T]=r(!1),[C,L]=r({velocity:0,timestamp:0}),I=o(null),w=o(null),O=o([]),R=o(null),M=o(null),k=o(0),D=o(null),B=u(((e,t)=>{if(!_||!I.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=I.current,a=w.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,o=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const i=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/o;let h,m;i/s>u?(m=Math.min(.9*s,o),h=m*u):(h=Math.min(.9*i,r),m=h/u);const p=(h*d+m*c)*e,g=Math.max(0,((h*c+m*d)*e-i)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(i){return{minX:0,maxX:0,minY:0,maxY:0}}}),[_]),P=u(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);i((()=>(T(!0),0>t||t>=e.length?c(0):c(t),()=>T(!1))),[e,t]),i((()=>{d?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[d]),i((()=>{d&&N((e=>e[l]?e:{...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[d,l]),i((()=>{a&&a(l)}),[l,a]),i((()=>{const e=I.current,t=w.current,n=()=>{_&&e&&t&&N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=B(t.zoomLevel,t.rotation),a=P(t.position,n);return{...e,[l]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&_))return e&&t&&_?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[l,B,P,_]),i((()=>{const e=()=>{_&&I.current&&w.current&&N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=B(t.zoomLevel,t.rotation),a=P(t.position,n);return{...e,[l]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l,B,P,_]);const z=u((()=>{h(!0)}),[]),U=u((()=>{h(!1),s&&s()}),[s]),F=u((()=>{l>0&&(x(!0),setTimeout((()=>{c((e=>e-1)),x(!1)}),150))}),[l]),G=u((()=>{l<e.length-1&&(x(!0),setTimeout((()=>{c((e=>e+1)),x(!1)}),150))}),[l,e.length]),V=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,r=Math.max(.1,Math.min(5,a)),o=B(r,n.rotation),i=P(n.position,o);return{...t,[l]:{...n,zoomLevel:r,bounds:o,position:i}}}))}),[_,l,B,P]),H=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,r=P(a,n.bounds);return{...t,[l]:{...n,position:r}}}))}),[l,P]),j=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,r=B(n.zoomLevel,a),o=P(n.position,r);return{...t,[l]:{...n,rotation:a,bounds:r,position:o}}}))}),[_,l,B,P]),Y=u((e=>{var t;if(!_||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(Bo(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),o=e.ctrlKey&&r,i=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&i&&r,c=!e.ctrlKey&&!i&&r,d=!r;let u,h=!1;if(o)u=-.02*e.deltaY,h=!0;else if(s){if(1>=a.zoomLevel)return t;u=-.003*e.deltaY,h=!0}else c?(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;let g;k.current=m,o&&100>p&&(L({velocity:Math.abs(u)/p,timestamp:m}),D.current&&clearTimeout(D.current),D.current=setTimeout((()=>{const e=()=>{L((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(u>0?1:-1);return N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const r=B(n,t.rotation),o=P(t.position,r);return{...e,[l]:{...t,zoomLevel:n,bounds:r,position:o}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=n.getBoundingClientRect()}catch(A){return t}if(!g||0===g.width||0===g.height)return t;const f=g.width/2,b=g.height/2,S=e.clientX-g.left-f,v=e.clientY-g.top-b,E=a.zoomLevel,y=Math.max(.1,Math.min(5,E+u));if(y!==E){const e=y/E,n=B(y,a.rotation),r={x:a.position.x+S*(1-e)*.5,y:a.position.y+v*(1-e)*.5},o=P(r,n);return{...t,[l]:{...a,zoomLevel:y,bounds:n,position:o}}}return t}))}}),[_,l,B,P]),W=u((e=>{if(!_||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&N((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return n}if(!r||0===r.width||0===r.height)return n;const o=r.width/2,i=r.height/2,s=e.clientX-r.left-o,c=e.clientY-r.top-i;let d,u={x:0,y:0};1.5>a.zoomLevel?(d=2,u={x:.5*-s,y:.5*-c}):3>a.zoomLevel?(d=4,u={x:.75*-s,y:.75*-c}):(d=1,u={x:0,y:0});const h=B(d,a.rotation),m=P(u,h);return{...n,[l]:{...a,zoomLevel:d,bounds:h,position:m}}}))}),[_,l,B,P]),K=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),p(!0),f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[l]),$=u((e=>{m&&N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.min(1,1/n.zoomLevel),r=(e.clientX-g.x)*a,o=(e.clientY-g.y)*a,i=P({x:r,y:o},n.bounds);return{...t,[l]:{...n,position:i}}}))}),[m,g,l,P]),Q=u((()=>{p(!1)}),[]),q=u((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}))),N((e=>{const n=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1){p(!0);const e=t[0];e&&f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})}else if(2===t.length){const e=t[0],n=t[1];if(e&&n){const t=e.clientX-n.clientX,a=e.clientY-n.clientY;R.current=Math.sqrt(t*t+a*a),M.current={x:(e.clientX+n.clientX)/2,y:(e.clientY+n.clientY)/2}}}return e}))}),[n,l]),Z=u((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),N((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};a.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,o=0,i=null;if(1===t.length&&m&&a.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/a.zoomLevel);r={x:(e.clientX-g.x)*t,y:(e.clientY-g.y)*t}}if(r){const e=P(r,a.bounds);return{...n,[l]:{...a,position:e}}}}else if(2===t.length&&null!==R.current){const r=t[0],c=t[1];if(r&&c){const t=r.clientX-c.clientX,d=r.clientY-c.clientY,u=Math.sqrt(t*t+d*d);o=.005*(u-R.current),R.current=u,i={x:(r.clientX+c.clientX)/2,y:(r.clientY+c.clientY)/2};const h=a.zoomLevel,m=Math.max(.1,Math.min(5,h+o));if(m!==h&&M.current&&i){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return n}if(!t||0===t.width||0===t.height)return n;const r=t.width/2,o=t.height/2,c=i.x-t.left-r,d=i.y-t.top-o,u=m/h,p=B(m,a.rotation),g={x:a.position.x+c*(1-u)*.5,y:a.position.y+d*(1-u)*.5},f=P(g,p);return M.current=i,{...n,[l]:{...a,zoomLevel:m,bounds:p,position:f}}}i&&(M.current=i)}}return n}))}),[_,n,m,g,l,P,B]),X=u((()=>{p(!1),R.current=null,M.current=null}),[]),J=y[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:l,isModalOpen:d,zoomLevel:J.zoomLevel,imagePosition:J.position,isDragging:m,isFullscreen:b,rotationAngle:J.rotation,showInfo:v,imageRef:I,containerRef:w,isTransitioning:A,setCurrentIndex:c,setZoomLevel:V,setImagePosition:H,setIsDragging:p,setIsFullscreen:S,setRotationAngle:j,setShowInfo:E,openModal:z,closeModal:U,goToPrevious:F,goToNext:G,handleWheel:Y,handleMouseDown:K,handleMouseMove:$,handleMouseUp:Q,handleTouchStart:q,handleTouchMove:Z,handleTouchEnd:X,handleDoubleClick:W,resetImageState:()=>{N((e=>({...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:a,enableGestures:h,onImageChange:g,onClose:f||(()=>{})}),W=d((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),K=W[b],$=d((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+p,E?"c-photo-viewer--dragging":"",y?"c-photo-viewer--fullscreen":"",A?"c-photo-viewer--info-open":"",l?"is-disabled":"",s].filter(Boolean).join(" ")),[E,y,A,l,p,s]);return i((()=>{const e=()=>{w(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[w]),i((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:$,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(Fl,{currentIndex:b,imagesLength:n.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(m){if(y)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}w(!y)}},onClose:f||M,isFullscreen:y,zoomLevel:S,onRotate:()=>{O((e=>(e+90)%360))},onDownload:()=>{if(!K?.src)return;const e=document.createElement("a");e.href=K.src;const t=(K.title||"image-"+(b+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&K?.src)try{await navigator.share({title:K.title||"Shared Image",text:K.description||"Check out this image",url:K.src})}catch(e){}},showInfo:A,onToggleInfo:()=>R(!A),currentImage:K}),t("div",{className:"c-photo-viewer__content",children:[e(Gl,{show:n.length>1,onPrev:k,onNext:D,currentIndex:b,imagesLength:n.length,enableKeyboardNav:c,onClose:f||M}),K?.src&&e(Vl,{imageRef:x,containerRef:_,src:K.src,alt:K?.alt||"Image "+(b+1),zoomLevel:S,dragPosition:v,isDragging:E,rotationAngle:N,isTransitioning:T,onMouseDown:P,onMouseMove:z,onMouseUp:U,onWheel:F,onTouchStart:G,onTouchMove:V,onTouchEnd:H,onDoubleClick:j})]}),"none"!==p&&e(Hl,{images:W,currentIndex:b,goToImage:B}),e(jl,{show:A,image:K,onClose:()=>R(!1)})]})]}):null};Yl.displayName="PhotoViewer";const Wl=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Kl=({content:n,position:a="top",trigger:s="click",className:l="",style:c,delay:d=0,offset:u=12,defaultOpen:h=!1,isOpen:m,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:f=!0,id:b,children:S,glass:v})=>{const{isOpen:E,setIsOpen:y,triggerRef:N,popoverRef:A,arrowRef:x,popoverId:_,currentPosition:T,updatePosition:C}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:s=!1,isOpen:l,onOpenChange:c,closeOnClickOutside:d=!0,closeOnEscape:u=!0,id:h})=>{const[m,p]=r(s),[g,f]=r("auto"===e?"top":e),b=o(null),S=o(null),v=o(null),E=o(null),y=h||"popover-"+Math.random().toString(36).slice(2,11),N=void 0!==l,A=N?l:m,x=e=>{N||p(e),c&&c(e)};i((()=>{if("hover"!==t||!b.current||!S.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{x(!0)}),a):x(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{S.current?.matches(":hover")||x(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},o=()=>{x(!1)};return b.current.addEventListener("mouseenter",e),b.current.addEventListener("mouseleave",n),S.current.addEventListener("mouseenter",r),S.current.addEventListener("mouseleave",o),()=>{b.current&&(b.current.removeEventListener("mouseenter",e),b.current.removeEventListener("mouseleave",n)),S.current&&(S.current.removeEventListener("mouseenter",r),S.current.removeEventListener("mouseleave",o)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,A]);const _=t=>{if(!b.current||!S.current)return;const a=b.current.getBoundingClientRect(),r=S.current.getBoundingClientRect(),o=window.innerWidth,i=window.innerHeight,s=50>a.top||a.bottom>i-50||50>a.left||a.right>o-50;if("scroll"===t?.type&&!s)return;const l=a.top,c=i-a.bottom,d=a.left,u=o-a.right;let h="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),h=e[0]?.position}else("top"===e&&l<r.height+n&&c>=r.height+n||"bottom"===e&&c<r.height+n&&l>=r.height+n||"left"===e&&d<r.width+n&&u>=r.width+n||"right"===e&&u<r.width+n&&d>=r.width+n)&&(h={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);f(h);let m=0,p=0;switch(h){case"top":m=a.top-r.height-n,p=a.left+a.width/2-r.width/2;break;case"bottom":m=a.bottom+n,p=a.left+a.width/2-r.width/2;break;case"left":m=a.top+a.height/2-r.height/2,p=a.left-r.width-n;break;case"right":m=a.top+a.height/2-r.height/2,p=a.right+n}0>p?p=5:p+r.width>o&&(p=o-r.width-5),0>m?m=5:m+r.height>i&&(m=i-r.height-5);const g=m+window.scrollY,v=p+window.scrollX;S.current.style.position="absolute",S.current.style.top=g+"px",S.current.style.left=v+"px"};return i((()=>{if(!A||!b.current||!S.current)return;_(),window.addEventListener("resize",_);let e=null;const t=t=>{e||(e=setTimeout((()=>{_(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{_()}),500);return()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[A,e,n]),i((()=>{if(!A||!d)return;const e=e=>{S.current&&!S.current.contains(e.target)&&b.current&&!b.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[A,d]),i((()=>{if(!A||!u)return;const e=e=>{"Escape"===e.key&&x(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[A,u]),i((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:A,setIsOpen:x,triggerRef:b,popoverRef:S,arrowRef:v,popoverId:y,currentPosition:g,updatePosition:_}})({position:a,trigger:s,offset:u,delay:d,defaultOpen:h,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:f,id:b});return t(Wl.Provider,{value:{isOpen:E,setIsOpen:y,triggerRef:N,popoverId:_,triggerType:s},children:[S,"undefined"!=typeof document&&O(t("div",{ref:A,className:`c-popover c-popover--${T} ${E?K.CLASSES.IS_OPEN:""} ${v?"c-popover--glass":""} ${l}`,style:c,id:_,role:"tooltip","aria-hidden":!E,children:[v?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===v?t:{...t,...v};return e(tt,{...a,style:c,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:x,className:"c-popover__arrow"})]}),document.body)]})};l((({children:e,trigger:t},n)=>{const{isOpen:r,setIsOpen:o,triggerRef:i,popoverId:s,triggerType:l}=a.useContext(Wl),c=t||l,d=a.Children.only(e),u={ref:n||i,"aria-describedby":s,"aria-expanded":r};return"click"===c?u.onClick=()=>{o(!r)}:"hover"===c&&(u.onMouseEnter=()=>{o(!0)},u.onMouseLeave=()=>{o(!1)}),a.cloneElement(d,u)})).displayName="PopoverTrigger",Kl.displayName="Popover";const $l=l((({value:n=0,defaultValue:a,maxValue:s=5,allowHalf:l=!1,readOnly:c=!1,size:d="md",color:h,onChange:m,className:p="",style:g,label:f,id:b,useVanillaJS:S=!1,glass:v,...E},y)=>{const N=o(null),A=o(null),{currentValue:x,hoverValue:_,focusedIndex:T,setHoverValue:C,setFocused:L,handleKeyDown:I}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:o})=>{const i=void 0!==o,[s,l]=r(e),[c,d]=r(null),[h,m]=r(null),p=i?e:s,g=u((e=>{a||d(e)}),[a]),f=u((()=>{a||d(null)}),[a]),b=u((e=>{a||(i||l(e),o?.(e))}),[a,o,i]),S=u(((e,r)=>{if(a)return;const s=n?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+s),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-s),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=r,e.preventDefault();break;default:return}c!==p&&(i||l(c),o?.(c))}),[p,t,n,a,o,i]);return{currentValue:p,hoverValue:c,focusedIndex:h,handleMouseEnter:g,handleMouseLeave:f,handleClick:b,handleKeyDown:S,setFocused:m,setHoverValue:d,isControlled:i}})({value:void 0!==n?n:a,maxValue:s,allowHalf:l,readOnly:c,onChange:m}),w=Tl(N,y),O=u(((e,t)=>{if(!c)if(l){const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,r=e.clientX<a;C(Math.max(.5,r?t-.5:t))}else C(t)}),[c,l,C]),R=u(((e,t)=>{if(c||!l)return;const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,r=e.clientX<a;C(Math.max(.5,r?t-.5:t))}),[c,l,C]),M=u((()=>{c||C(null)}),[c,C]),k=u(((e,t)=>{if(c)return;let n=t;if(l){const a=e.currentTarget.getBoundingClientRect(),r=a.left+a.width/2;n=e.clientX<r?t-.5:t,n=Math.max(.5,n)}m?.(n)}),[c,m,l]);i((()=>{if(S&&"undefined"!=typeof window&&N.current)return()=>{A.current&&A.current.destroy()}}),[S,n,a,s,l,c,d,h,m]),i((()=>{S&&A.current&&A.current.updateOptions({value:void 0!==n?n:a,maxValue:s,allowHalf:l,readOnly:c,size:d,color:h})}),[S,n,a,s,l,c,d,h]);const D=["c-rating","sm"===d?oe.CLASSES.SMALL:"","lg"===d?oe.CLASSES.LARGE:"",h?"c-rating--"+h:"",p].filter(Boolean).join(" ");if(S)return e("div",{className:D,ref:w,id:b,...E});const B=null!==_?_:x,P=e("div",{className:D,ref:w,id:b,style:g,"data-readonly":c?"true":"false",onMouseLeave:M,role:c?"img":"radiogroup","aria-label":f||`Rating: ${x} out of ${s} stars`,...E,children:(()=>{const n=[],a=l?Math.floor(2*B)/2:Math.round(B),r=b||"rating-"+Math.random().toString(36).substring(2,9);for(let o=1;s>=o;o++){const i=l&&o-.5===a,d=["c-rating__star",o>Math.floor(a)?"":oe.CLASSES.FULL,i?oe.CLASSES.HALF:"",h?"c-rating__star--"+h:"",T===o?"c-rating__star--focused":""].filter(Boolean).join(" "),u=`${r}-star-${o}`;n.push(e("div",{id:u,className:d,"data-value":o,role:c?"presentation":"button",tabIndex:c?-1:0,"aria-label":`${o} ${1===o?"star":"stars"}`,"aria-checked":a>=o,"aria-setsize":s,"aria-posinset":o,onClick:e=>k(e,o),onMouseEnter:e=>O(e,o),onMouseMove:e=>R(e,o),onFocus:()=>L(o),onBlur:()=>L(null),onKeyDown:e=>I(e,o),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-${r}-${o})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${r}-${o}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},o))}return n})()});if(v){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===v?t:{...t,...v};return e(tt,{...n,children:P})}return P}));$l.displayName="Rating";const Ql=({productName:n,productImage:a,initialRating:s=0,maxRating:l=5,allowHalf:c=!0,ratingColor:d="warning",onSubmit:u,className:h="",style:m})=>{const[p,g]=r(s),[f,b]=r(""),[S,v]=r(!1),E=o(null),y=o(null);i((()=>{if("undefined"!=typeof window&&E.current)return()=>{y.current&&y.current.destroy()}}),[n,a,s,l,c,d,u]);const N=e=>{e.preventDefault(),u&&u(p,f),v(!0)},A=["c-product-review",h].filter(Boolean).join(" ");return S?e("div",{className:A,ref:E,style:m,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(Mt,{variant:"secondary",label:"Write another review",onClick:()=>{v(!1),g(0),b("")}})]})}):t("div",{className:A,ref:E,style:m,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),a&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:a,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($l,{value:p,onChange:g,allowHalf:c,maxValue:l,size:"lg",color:d}),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:f,onChange:e=>b(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(Mt,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};Ql.displayName="ProductReview";const ql=s(l((({value:t,variant:n="primary",size:a="md",className:r="",style:o,disabled:i=!1,ariaLabel:s=Ae.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:u,progressClasses:h}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[o,t?`${o}--${t}`:"",n?`${o}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:t,variant:n,size:a,className:r}),m=e("div",{ref:c,className:h+(l?" c-progress--glass":""),style:{...u,...o},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":i,children:e("div",{className:Ae.CLASSES.BAR})});if(l){const t={displacementScale:30,blurAmount:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(tt,{...n,children:m})}return m})));ql.displayName="Progress";const Zl=({title:n,text:a,actions:r,imageSrc:o,imageAlt:i="Image",center:s=!1,breakout:l=!1,reverse:c=!1,contentColumns:d,backgroundImageSrc:u,showOverlay:h=!0,contentWidth:m,className:p="",style:g})=>{const{generateRiverClassNames:f,generateContentClass:b,generateVisualClass:S,hasBackgroundImage:v,hasForegroundImage:E,textContent:y}=gs({title:n,text:a,imageSrc:o,imageAlt:i,center:s,breakout:l,reverse:c,backgroundImageSrc:u,showOverlay:h,contentWidth:m}),N={...m?{[ee.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...g},A=()=>v?t("div",{className:ee.SELECTORS.BG.replace(".",""),children:[e("img",{src:u,alt:"Background",className:ee.SELECTORS.BG_IMAGE.replace(".","")}),h&&e("div",{className:ee.SELECTORS.OVERLAY.replace(".","")})]}):null,x=()=>E?e("div",{className:S(),children:e("div",{className:ee.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:o,alt:i,className:ee.SELECTORS.IMAGE.replace(".","")})})}):null;return d&&d.length>0?t("div",{className:f(p),style:N,children:[A(),e("div",{className:ee.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:ee.SELECTORS.ROW.replace(".",""),children:[!c&&x(),t("div",{className:b(),children:[d.map(((t,n)=>e("div",{className:`${ee.SELECTORS.CONTENT_COL.replace(".","")} ${ee.SELECTORS["CONTENT_COL_"+t.type.toUpperCase()].replace(".","")}`,children:t.content},n))),r&&e("div",{className:ee.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&x()]})})]}):t("div",{className:f(p),style:N,children:[A(),e("div",{className:ee.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:ee.SELECTORS.ROW.replace(".",""),children:[!c&&x(),t("div",{className:b(),children:[n&&e("h2",{className:ee.SELECTORS.TITLE.replace(".",""),children:n}),y.map(((t,n)=>e("p",{className:ee.SELECTORS.TEXT.replace(".",""),children:t},n))),r&&e("div",{className:ee.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&x()]})})]})};Zl.displayName="River";const Xl=({title:n,label:a,text:r,actions:s,alignment:l="left",backgroundImageSrc:c,showOverlay:d=!1,imageSrc:u,imageAlt:h="Section image",size:m="md",skeleton:p=!1,className:g="",style:f})=>{const b=o(null),S=o(null);i((()=>{if("undefined"!=typeof window&&b.current)return()=>{S.current&&S.current.destroy()}}),[l,c,d,m,p]);const v=["c-sectionintro","center"===l?J.CLASSES.CENTER:"","sm"===m?J.CLASSES.SMALL:"","lg"===m?J.CLASSES.LARGE:"",c?"c-sectionintro--has-bg":"",g].filter(Boolean).join(" ");return p?e("div",{className:v,ref:b,style:f,children:t("div",{className:"c-sectionintro__container",children:[a&&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"})}),r&&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"})}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t("div",{className:v,ref:b,style:f,children:[c?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:c,alt:"Background",className:"c-sectionintro__bg-image"}),d&&e("div",{className:"c-sectionintro__overlay"})]}):null,a&&e("div",{className:"c-sectionintro__label",children:a}),e("h2",{className:"c-sectionintro__title",children:n}),r&&e("div",{className:"c-sectionintro__text",children:r}),s&&e("div",{className:"c-sectionintro__actions",children:s}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:u,alt:h,className:"c-sectionintro__image"})})]})};Xl.displayName="SectionIntro";const Jl=l(((n,a)=>{const{slides:r=[],height:o=300,width:i="100%",slidesToShow:s=1,spaceBetween:l=0,loop:c=!1,initialSlide:u=0,direction:h="horizontal",speed:m=300,allowTouchMove:p=!0,threshold:g=50,grabCursor:f=!0,autoplay:b,navigation:S,pagination:v,className:E,style:y,onSlideChange:N,...A}=n,x=Js({slides:r||[],slidesToShow:s,spaceBetween:l,loop:c,initialSlide:u,direction:h,speed:m,allowTouchMove:p,threshold:g,autoplay:b,onSlideChange:N}),{containerRef:_,wrapperRef:T,allSlides:C,realIndex:L,translateValue:I,slideWidth:w,transitioning:O,touching:R,slideNext:M,slidePrev:k,goToSlide:D,canSlideNext:B,canSlidePrev:P,handleTouchStart:z,handleTouchMove:U,handleTouchEnd:F,loopedSlides:G}=x,V=d((()=>0===w?0:C.length*(w+l)-l),[C.length,w,l]);if(!r||0===r.length)return e("div",{className:"c-slider c-slider--empty",style:{height:o,width:i,...y},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const H=["c-slider","vertical"===h&&"c-slider--vertical",f&&"c-slider--grab-cursor",R&&"c-slider--grabbing",c&&"c-slider--loop",E].filter(Boolean).join(" ");return t("div",{ref:a||_,className:H,style:{height:"number"==typeof o?o+"px":o,width:"number"==typeof i?i+"px":i,overflow:"hidden",position:"relative",cursor:f&&!R?"grab":R?"grabbing":"default",...y},onTouchStart:z,onTouchMove:U,onTouchEnd:F,onMouseDown:z,onMouseMove:U,onMouseUp:F,onMouseLeave:F,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(${I}px)`:`translateY(${I}px)`,transition:O&&!x.repositioningRef?.current?`transform ${m}ms ease-out`:"none",willChange:"transform"},children:C.map(((n,a)=>t("div",{className:["c-slider__slide",(c?a%r.length===L:a===L)&&"c-slider__slide--active",n.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===h?"100%":w+"px",height:"vertical"===h?w+"px":"100%",flexShrink:0,marginRight:"horizontal"===h&&a<C.length-1?l+"px":0,marginBottom:"vertical"===h&&a<C.length-1?l+"px":0},children:[n.video?e("video",{src:n.video.src,poster:n.video.poster,autoPlay:n.video.autoplay,loop:n.video.loop,muted:n.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):n.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${n.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:n.content}):n.image?e("img",{src:n.image,alt:n.alt||n.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):n.content,(n.title||n.description)&&t("div",{className:"c-slider__slide-content",children:[n.title&&e("h3",{children:n.title}),n.description&&e("p",{children:n.description})]})]},n.id||a)))}),S&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:k,disabled:!P,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:M,disabled:!B,"aria-label":"Next slide"})]}),v&&e("div",{className:"c-slider__pagination",children:r.map(((t,n)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(n===L?"c-slider__pagination-bullet--active":""),onClick:()=>D(n),"aria-label":"Go to slide "+(n+1)},n)))})]})}));Jl.displayName="Slider";const ec=({items:n,activeIndex:a=0,vertical:o=!1,onStepChange:s,className:l="",style:c,glass:d})=>{const[u,h]=r(a);i((()=>{u!==a&&h(a)}),[a]);const m=e("div",{className:`c-steps ${o?q.CLASSES.VERTICAL:""} ${l}`,style:c,role:"navigation","aria-label":"Steps",children:n.map(((n,a)=>t("div",{className:`c-steps__item ${a>u?"":q.CLASSES.ACTIVE} ${u>a?q.CLASSES.COMPLETED:""}`,"aria-current":a===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:n.number}),e("div",{className:"c-steps__text",children:n.text}),n.content&&e("div",{className:"c-steps__custom-content",children:n.content})]})]},"step-"+a)))});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===d?t:{...t,...d};return e(tt,{...n,children:m})}return m};ec.displayName="Steps";const tc=s((({items:n,activeIndex:a=Q.DEFAULTS.ACTIVE_INDEX,onTabChange:o,className:i="",style:s,glass:l})=>{const[c,d]=r(a),u=t("div",{className:"c-tabs js-atomix-tab "+i,style:s,children:[e("ul",{className:"c-tabs__nav",children:n.map(((t,n)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:"c-tabs__nav-btn "+(n===c?Q.CLASSES.ACTIVE:""),onClick:()=>(e=>{d(e),o&&o(e)})(n),"data-tabindex":n,role:"tab","aria-selected":n===c,"aria-controls":"tab-panel-"+n,children:t.label})},"tab-nav-"+n)))}),e("div",{className:"c-tabs__panels",children:n.map(((t,n)=>e("div",{className:"c-tabs__panel "+(n===c?Q.CLASSES.ACTIVE:""),"data-tabindex":n,id:"tab-panel-"+n,role:"tabpanel","aria-labelledby":"tab-nav-"+n,style:{height:n===c?"auto":"0px",opacity:n===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-"+n)))})]});if(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(tt,{...n,children:u})}return u}));tc.displayName="Tabs";const nc=({quote:n,author:a,size:r="",skeleton:s=!1,className:l="",style:c})=>{const d=o(null),u=o(null);i((()=>{if("undefined"!=typeof window&&d.current)return()=>{u.current&&u.current.destroy()}}),[r,s]);const h=["c-testimonial","sm"===r?Z.CLASSES.SMALL:"","lg"===r?Z.CLASSES.LARGE:"",l].filter(Boolean).join(" ");return t("div",s?{className:h,ref:d,style:c,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,style:c,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),a&&t("div",{className:"c-testimonial__author",children:[a.avatarSrc&&e("img",{src:a.avatarSrc,alt:a.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:a.name}),e("p",{className:"c-testimonial__author-role",children:a.role})]})]})]})};nc.displayName="Testimonial";const ac=({items:n=[],title:a="Todo List",onAddTodo:o,onToggleTodo:s,onDeleteTodo:l,size:c="md",placeholder:d="Add a new todo",showCompleted:u=!0,className:h="",style:m,disabled:p=!1})=>{const{inputText:g,setInputText:f,addTodo:b,generateTodoClasses:S,generateItemClasses:v}=Ws({items:n,title:a,size:c,placeholder:d,showCompleted:u,disabled:p}),[E,y]=r(n);i((()=>{y(n)}),[n]);const N=u?E:E.filter((e=>!e.completed)),A=S({size:c,className:h,disabled:p});return t("div",{className:A,style:m,children:[a&&e("h2",{className:"c-todo__title",children:a}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:zs(),text:g.trim(),completed:!1};y((e=>[...e,t])),o&&o(g),f("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:d,value:g,onChange:e=>f(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(Et,{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((n=>e("li",{className:v(n),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:n.completed,onChange:()=>(e=>{p||(y((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),s&&s(e))})(n.id),disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(y((t=>t.filter((t=>t.id!==e)))),l&&l(e))})(n.id),disabled:p,"aria-label":`Delete "${n.text}"`,children:e(Et,{name:"Trash",size:"sm"})})]})},n.id)))})]})};ac.displayName="Todo";const rc=({initialOn:t=!1,onToggleOn:n,onToggleOff:a,disabled:o=!1,className:i="",style:s,glass:l})=>{const[c,d]=r(t),u=()=>{if(o)return;const e=!c;d(e),e?n&&n():a&&a()},h=e("div",{className:`c-toggle ${c?$.CLASSES.IS_ON:""} ${o?"is-disabled":""} ${i}`,style:s,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(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(tt,{...n,children:h})}return h};rc.displayName="Toggle";const oc=s((({content:n,children:a,position:s=W.DEFAULTS.POSITION,trigger:l=W.DEFAULTS.TRIGGER,className:c="",style:d,delay:h=W.DEFAULTS.DELAY,offset:m=W.DEFAULTS.OFFSET,glass:p})=>{const{isVisible:g,isPositioned:f,tooltipId:b,triggerRef:S,tooltipRef:v,tooltipStyle:E,arrowStyle:y,triggerProps:N,wrapperProps:A}=(({position:e="top",trigger:t="hover",offset:n=10,delay:a=200})=>{const[s,l]=r(!1),[c,d]=r(!1),[h,m]=r({}),[p,g]=r({}),f=o(null),b=o(null),S=o(null),v="tooltip-"+Math.random().toString(36).slice(2,11),E=u((()=>{f.current&&clearTimeout(f.current),a>0?f.current=setTimeout((()=>{l(!0)}),a):l(!0)}),[a]),y=u((()=>{f.current&&clearTimeout(f.current),l(!1),d(!1)}),[]),N=u((()=>{s?y():E()}),[s,E,y]),A=u((()=>{if(!b.current||!S.current)return;const t=b.current.getBoundingClientRect(),a=S.current.getBoundingClientRect(),r=b.current.parentElement;if(!r)return;const o=r.getBoundingClientRect(),i=(e=>{const t=getComputedStyle(e).getPropertyValue("--atomix-tooltip-arrow-size").trim();if(!t)return 8;const n=t.match(/([\d.]+)rem/);if(n?.[1])return 16*parseFloat(n[1]);const a=t.match(/([\d.]+)px/);return a?.[1]?parseFloat(a[1]):8})(S.current),s=((e,t,n,a,r,o)=>{const i=n.width||0,s=n.height||0,l=t.width,c=t.height,d={"--atomix-tooltip-offset":r+"px"},u={};switch(e){case"top":d.top=t.top-a.top-s-r+"px",d.left=t.left-a.left+l/2-i/2+"px",u.bottom=o/-2+"px",u.left=i/2-o/2+"px";break;case"bottom":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+l/2-i/2+"px",u.top=o/-2+"px",u.left=i/2-o/2+"px";break;case"left":d.right=a.right-t.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.right=o/-2+"px",u.top=s/2-o/2+"px";break;case"right":d.left=t.right-a.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.left=o/-2+"px",u.top=s/2-o/2+"px";break;case"top-left":d.bottom=a.bottom-t.top+r+"px",d.left=t.left-a.left+"px",u.bottom=o/-2+"px",u.left=o+"px";break;case"top-right":d.bottom=a.bottom-t.top+r+"px",d.right=a.right-t.right+"px",u.bottom=o/-2+"px",u.right=o+"px";break;case"bottom-left":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+"px",u.top=o/-2+"px",u.left=o+"px";break;case"bottom-right":d.top=t.bottom-a.top+r+"px",d.right=a.right-t.right+"px",u.top=o/-2+"px",u.right=o+"px"}return{tooltip:d,arrow:u}})(e,t,a,o,n,i);m(s.tooltip),g(s.arrow),d(!0)}),[e,n]);i((()=>{if(!s||!b.current||!S.current)return;const e=requestAnimationFrame((()=>{A()})),t=()=>{A()};return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}}),[s,A]);const x={"aria-describedby":s?v:void 0},_={};return"hover"===t?(_.onMouseEnter=E,_.onMouseLeave=y,x.onFocus=E,x.onBlur=y):"click"===t&&(x.onClick=N),{isVisible:s,isPositioned:c,tooltipId:v,triggerRef:b,tooltipRef:S,tooltipStyle:h,arrowStyle:p,showTooltip:E,hideTooltip:y,toggleTooltip:N,triggerProps:x,wrapperProps:_}})({position:s,trigger:l,offset:m,delay:h});return t("div",{className:"u-position-relative u-d-inline-block",style:d,...A,children:[e("div",{ref:S,className:`${W.SELECTORS.TRIGGER.substring(1)}${c?" "+c:""}`,...N,children:a}),g&&e("div",{ref:v,id:b,role:"tooltip",className:`c-tooltip ${W.SELECTORS.TOOLTIP.substring(1)} ${{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"}[s]||"c-tooltip--top"} ${p?"c-tooltip--glass":""}`,"data-tooltip-position":s,"data-tooltip-trigger":l,style:{...E,...f?{}:{left:"-9999px",top:"-9999px"}},children:(()=>{const a=t("div",{className:`c-tooltip__content ${W.SELECTORS.CONTENT.substring(1)} ${g&&f&&"is-active"}`,children:[e("span",{className:W.SELECTORS.ARROW.substring(1),style:y}),n]});if(p){const t={displacementScale:100,blurAmount:3},n=!0===p?t:{...t,...p};return e(tt,{...n,children:a})}return a})()})]})}));oc.displayName="Tooltip";const ic=({disabled:n=!1,size:a="md",maxSizeInMB:i=5,acceptedFileTypes:s=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:l=!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: ${i}MB`,icon:m=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:p,onFileUpload:g,onFileUploadComplete:f,onFileUploadError:b,className:S="",style:v})=>{const E=o(null),[y,N]=r("idle"),[A,x]=r(!1),[_,T]=r(null),[C,L]=r(0),[I,w]=r(null),[O,R]=r(null),[M,k]=r(null),D=o(0),B=()=>{E.current&&!n&&E.current.click()},P=e=>{if(!e.length)return;const t=(l?e:[e[0]]).filter((e=>void 0!==e&&z(e)));t.length&&p&&p(t),t.length&&(T(t[0]||null),t[0]&&U(t[0]))},z=e=>{const t=1024*i*1024;return e.size>t?(N("error"),R(`File too large. Maximum size is ${i}MB.`),!1):!(s?.length&&!s.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t}))&&(N("error"),R("File type not supported."),1))},U=e=>{N("loading"),L(0);let t=0;const n=setInterval((()=>{t+=5,100>t?(L(t),w(Math.ceil((100-t)/5)+" seconds left"),g&&g(e,t)):(clearInterval(n),N("success"),k("Upload successful"),f&&f(e))}),500)},F=["c-upload","md"!==a&&"c-upload--"+a,A&&te.CLASSES.DRAGGING,n&&te.CLASSES.DISABLED,"loading"===y&&"c-upload--loading","success"===y&&"c-upload--success","error"===y&&"c-upload--error",S].filter(Boolean).join(" ");return t("div",{className:F,style:v,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||(D.current++,1===D.current&&x(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(D.current--,0===D.current&&x(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),n)return;if(D.current=0,x(!1),!e.dataTransfer.files?.length)return;const t=Array.from(e.dataTransfer.files);P(t)},children:[t("div",{className:"c-upload__inner",role:"button",tabIndex:n?-1:0,"aria-label":`${c}. ${d}. ${h}`,"aria-disabled":n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n||(e.preventDefault(),B())},children:[e("input",{type:"file",ref:E,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);P(t)},disabled:n,accept:s.join(","),multiple:l,"aria-hidden":"true"}),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:B,disabled:n,children:u}),e("p",{className:"c-upload__helper-text",children:h})]}),"idle"!==y&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":C},children:[_&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:_.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[C,"%"]}),e("div",{className:"c-upload__loader-time",children:I})]})]}),("loading"===y||"error"===y||"success"===y)&&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",onClick:()=>{N("idle"),T(null),L(0),w(null),R(null),k(null)},"aria-label":"Close upload progress",children:e("i",{className:"icon-lux-x"})})]})]})]})};ic.displayName="Upload";const sc=l((({src:a,type:s="video",youtubeId:l,poster:c,autoplay:d=!1,loop:h=!1,muted:m=!1,controls:p=!0,preload:g="metadata",width:f,height:b,aspectRatio:S="16:9",className:v="",onPlay:O,onPause:R,onEnded:M,onTimeUpdate:k,onVolumeChange:D,onFullscreenChange:B,onError:P,showDownload:z=!1,showShare:U=!1,showSettings:F=!0,playbackRates:G=[.5,.75,1,1.25,1.5,2],subtitles:V,quality:H,ambientMode:j=!1,glass:Y=!1,glassOpacity:W=1,glassContent:K,style:$,...Q},q)=>{const Z=o(null),X=o(null),J=o(null),ee=o(null),[te,ne]=r(8),ae="youtube"===s||l||a&&Us(a),re=l||(ae&&a?Fs(a):null),{isPlaying:oe,currentTime:ie,duration:se,volume:le,isMuted:ce,isFullscreen:de,isLoading:ue,playbackRate:he,currentQuality:me,showControls:pe,play:ge,pause:fe,togglePlay:be,seek:Se,setVolume:ve,toggleMute:Ee,toggleFullscreen:ye,togglePictureInPicture:Ne,setPlaybackRate:Ae,setQuality:xe,formatTime:Te,getProgressPercentage:Ce,getBufferedPercentage:Le}=function({videoRef:e,containerRef:t,onPlay:n,onPause:a,onEnded:s,onTimeUpdate:l,onVolumeChange:c,onFullscreenChange:d,onError:h,playbackRates:m=[.5,.75,1,1.25,1.5,2],quality:p}){const[g,f]=r(!1),[b,S]=r(0),[v,E]=r(0),[y,N]=r(1),[A,x]=r(!1),[_,T]=r(!1),[C,L]=r(!1),[I,w]=r(!1),[O,R]=r(0),[M,k]=r(1),[D,B]=r(p?.[0]||null),[P,z]=r(!0),U=o(null),F=u((()=>{U.current&&clearTimeout(U.current),z(!0);const e=setTimeout((()=>{g&&z(!1)}),3e3);U.current=e}),[g]),G=u((async()=>{if(e.current)try{await e.current.play(),f(!0),n?.()}catch(t){h?.(t),f(!1)}}),[e,n,h]),V=u((()=>{e.current&&(e.current.pause(),f(!1),a?.())}),[e,a]),H=u((()=>{g?V():G()}),[g,G,V]),j=u((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,v)))}),[e,v]),Y=u((t=>{const n=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=n,N(n),x(0===n),c?.(n))}),[e,c]),W=u((()=>{if(e.current){const t=!A;e.current.muted=t,x(t)}}),[e,A]),K=u((async()=>{if(t.current)try{_?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,_]),$=u((async()=>{if(e.current)try{C?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,C]),Q=u((t=>{e.current&&Bo(m).call(m,t)&&(e.current.playbackRate=t,k(t))}),[e,m]),q=u((t=>{if(e.current&&p){const n=e.current.currentTime,a=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=n,a&&e.current.play(),B(t))}}),[e,p]),Z=u((e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),a=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${n}:${a.toString().padStart(2,"0")}`}),[]),X=u((()=>v>0?b/v*100:0),[b,v]),J=u((()=>v>0?O/v*100:0),[O,v]);i((()=>{const t=e.current;if(!t)return;const r=()=>w(!0),o=()=>w(!1),i=()=>{E(t.duration),N(t.volume),x(t.muted)},d=()=>{S(t.currentTime),l?.(t.currentTime)},u=()=>{t.buffered.length>0&&R(t.buffered.end(t.buffered.length-1))},m=()=>{f(!0),n?.()},p=()=>{f(!1),a?.()},g=()=>{f(!1),s?.()},b=()=>{N(t.volume),x(t.muted),c?.(t.volume)},v=e=>{w(!1),h?.(e)},y=()=>L(!0),A=()=>L(!1);return t.addEventListener("loadstart",r),t.addEventListener("canplay",o),t.addEventListener("loadedmetadata",i),t.addEventListener("timeupdate",d),t.addEventListener("progress",u),t.addEventListener("play",m),t.addEventListener("pause",p),t.addEventListener("ended",g),t.addEventListener("volumechange",b),t.addEventListener("error",v),t.addEventListener("enterpictureinpicture",y),t.addEventListener("leavepictureinpicture",A),()=>{t.removeEventListener("loadstart",r),t.removeEventListener("canplay",o),t.removeEventListener("loadedmetadata",i),t.removeEventListener("timeupdate",d),t.removeEventListener("progress",u),t.removeEventListener("play",m),t.removeEventListener("pause",p),t.removeEventListener("ended",g),t.removeEventListener("volumechange",b),t.removeEventListener("error",v),t.removeEventListener("enterpictureinpicture",y),t.removeEventListener("leavepictureinpicture",A)}}),[e,n,a,s,l,c,h]),i((()=>{const e=()=>{const e=!!document.fullscreenElement;T(e),d?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[d]);const ee=u((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),j(b-10);break;case"ArrowRight":e.preventDefault(),j(b+10);break;case"ArrowUp":e.preventDefault(),Y(Math.min(1,y+.1));break;case"ArrowDown":e.preventDefault(),Y(Math.max(0,y-.1));break;case"KeyM":e.preventDefault(),W();break;case"KeyF":e.preventDefault(),K()}}),[H,j,b,Y,y,W,K,t]);i((()=>(document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee))),[ee]);const te=u((()=>F()),[F]),ne=u((()=>{U.current&&clearTimeout(U.current),g&&z(!1)}),[g]);return i((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",te),e.addEventListener("mouseleave",ne),()=>{e.removeEventListener("mousemove",te),e.removeEventListener("mouseleave",ne),U.current&&clearTimeout(U.current)}}),[t,te,ne]),{isPlaying:g,currentTime:b,duration:v,volume:y,isMuted:A,isFullscreen:_,isPictureInPicture:C,isLoading:I,buffered:O,playbackRate:M,currentQuality:D,showControls:P,play:G,pause:V,togglePlay:H,seek:j,setVolume:Y,toggleMute:W,toggleFullscreen:K,togglePictureInPicture:$,setPlaybackRate:Q,setQuality:q,formatTime:Z,getProgressPercentage:X,getBufferedPercentage:J}}({videoRef:Z,containerRef:X,onPlay:O,onPause:R,onEnded:M,onTimeUpdate:k,onVolumeChange:D,onFullscreenChange:B,onError:P,playbackRates:G,quality:H});!function({videoRef:e,canvasRef:t,enabled:n,blur:a=60,opacity:r=.6,scale:s=1.2}){const l=o(60);i((()=>{if(!n||!e.current||!t.current)return;const o=e.current,i=t.current,c=i.getContext("2d");if(!c)return;const d=()=>{if(!o||!i||!c)return;const e=o.getBoundingClientRect();i.width=e.width*s,i.height=e.height*s,c.filter=`blur(${a}px)`,c.globalAlpha=r;try{c.drawImage(o,0,0,i.width,i.height)}catch(t){}n&&(l.current=requestAnimationFrame(d))},u=()=>{n&&d()},h=()=>{l.current&&cancelAnimationFrame(l.current)};return o.addEventListener("play",u),o.addEventListener("pause",h),o.addEventListener("ended",h),o.paused||u(),()=>{o.removeEventListener("play",u),o.removeEventListener("pause",h),o.removeEventListener("ended",h),l.current&&cancelAnimationFrame(l.current)}}),[n,a,r,s,e,t])}({videoRef:Z,canvasRef:J,enabled:j});const[Ie,we]=r(!1),[Oe,Re]=r("quality"),[Me,ke]=r(V?.find((e=>e.default))?.srcLang||null),[De,Be]=r({width:0,height:0}),Pe=u((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;Se(n*se)}),[se,Se]),ze=u((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;ve(n)}),[ve]),Ue=u((()=>{if(a){const e=document.createElement("a");e.href=a,e.download="video",e.click()}}),[a]),Fe=u((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Ge=u((e=>{const t=Z.current;if(t){const n=t.textTracks;for(let e=0;e<n.length;e++){const t=n[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<n.length;t++){const a=n[t];if(a&&a.language===e){a.mode="showing";break}}ke(e)}}),[Z]);i((()=>{const e=Z.current;if(e&&V){const t=()=>{setTimeout((()=>{const e=V.find((e=>e.default));e&&Ge(e.srcLang)}),100)},n=()=>{if(e.textTracks.length>0){const e=V.find((e=>e.default));e&&Ge(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",n),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",n)}}}),[V,Ge,Z]),i((()=>{const e=()=>{if(ae&&ee.current){const e=ee.current.getBoundingClientRect();Be({width:e.width,height:e.height})}else if(Z.current){const e=Z.current.getBoundingClientRect();Be({width:e.width,height:e.height})}},t=setTimeout(e,100),n=new ResizeObserver(e);if(ae&&ee.current){const a=ee.current;n.observe(a);const r=()=>e();return a.addEventListener("load",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("load",r)}}if(Z.current){const a=Z.current;n.observe(a);const r=()=>e();return a.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),n.disconnect(),window.removeEventListener("resize",e)}}),[ae,Z,ee]);const Ve=u((()=>{X.current&&X.current.focus()}),[]);i((()=>{const e=()=>{if(!X.current)return;const e=window.getComputedStyle(X.current),t=e.borderRadius||e.borderTopLeftRadius,n=parseFloat(t);isNaN(n)||ne(n)};e();let t=null;return"undefined"!=typeof ResizeObserver&&X.current&&(t=new ResizeObserver(e),t.observe(X.current)),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t&&X.current&&(t.unobserve(X.current),t.disconnect())}}),[]);const He=u((e=>{switch(e.key){case" ":case"k":e.preventDefault(),be();break;case"ArrowLeft":e.preventDefault(),Se(ie-10);break;case"ArrowRight":e.preventDefault(),Se(ie+10);break;case"ArrowUp":e.preventDefault(),ve(Math.min(1,le+.1));break;case"ArrowDown":e.preventDefault(),ve(Math.max(0,le-.1));break;case"m":e.preventDefault(),Ee();break;case"f":e.preventDefault(),ye()}}),[be,ie,Se,le,ve,Ee,ye]);return t("div",{ref:X,className:`${_e.CLASSES.BASE} ${ae?_e.CLASSES.YOUTUBE:""} ${j?_e.CLASSES.AMBIENT:""} ${Y?_e.CLASSES.GLASS:""} ${v}`,style:{width:f,height:b,aspectRatio:S?S.replace(":","/"):void 0,...$},tabIndex:0,onClick:Ve,onKeyDown:He,role:"application","aria-label":"Video player",...Q,children:[j&&e("canvas",{ref:J,className:_e.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ae&&re?e("iframe",{ref:ee,className:_e.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:d?"1":"0",loop:h?"1":"0",mute:m?"1":"0",controls:p?"1":"0",modestbranding:"1",rel:"0",...h&&{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=>{Z&&Z.current!==e&&(Z.current=e),"function"==typeof q?q(e):q&&q.current!==e&&(q.current=e)},className:_e.CLASSES.VIDEO,src:a,poster:c,autoPlay:d,loop:h,muted:m,preload:g,controls:!1,crossOrigin:"anonymous",children:V&&V.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),ue&&e("div",{className:_e.CLASSES.LOADING,children:e("div",{className:_e.CLASSES.SPINNER})}),Y&&e("div",{className:_e.CLASSES.GLASS_OVERLAY,children:e(tt,{..."boolean"==typeof Y?{}:Y,mouseContainer:X,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!K&&e("div",{style:{width:De.width>0?De.width+"px":"100%",height:De.height>0?De.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),Y&&K&&e("div",{className:_e.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:K}),p&&!ae&&t("div",{className:`${_e.CLASSES.CONTROLS} ${pe?_e.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:Y?3:"auto"},children:[e("div",{className:_e.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:_e.CLASSES.PROGRESS_BAR,onClick:Pe,children:[e("div",{className:_e.CLASSES.PROGRESS_BUFFERED,style:{width:Le()+"%"}}),e("div",{className:_e.CLASSES.PROGRESS_PLAYED,style:{width:Ce()+"%"}}),e("div",{className:_e.CLASSES.PROGRESS_THUMB,style:{left:Ce()+"%"}})]})}),t("div",{className:_e.CLASSES.CONTROLS_ROW,children:[t("div",{className:_e.CLASSES.CONTROLS_LEFT,children:[e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:be,"aria-label":oe?"Pause":"Play",children:e(oe?E:y,{size:20})}),e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:()=>Se(ie-10),"aria-label":"Skip back 10 seconds",children:e(N,{size:20})}),e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:()=>Se(ie+10),"aria-label":"Skip forward 10 seconds",children:e(A,{size:20})}),t("div",{className:_e.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:Ee,"aria-label":ce?"Unmute":"Mute",children:e(ce||0===le?x:_,{size:20})}),e("div",{className:_e.CLASSES.VOLUME_SLIDER,children:e("div",{className:_e.CLASSES.VOLUME_BAR,onClick:ze,children:e("div",{className:_e.CLASSES.VOLUME_FILL,style:{width:100*le+"%"}})})})]}),t("div",{className:_e.CLASSES.TIME_DISPLAY,children:[e("span",{children:Te(ie)}),e("span",{children:"/"}),e("span",{children:Te(se)})]})]}),t("div",{className:_e.CLASSES.CONTROLS_RIGHT,children:[F&&t("div",{className:_e.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:()=>we(!Ie),"aria-label":"Settings",children:e(T,{size:20})}),Ie&&t("div",{className:_e.CLASSES.SETTINGS_MENU,children:[t("div",{className:_e.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${_e.CLASSES.SETTINGS_TAB} ${"quality"===Oe?_e.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Re("quality"),children:"Quality"}),e("button",{className:`${_e.CLASSES.SETTINGS_TAB} ${"speed"===Oe?_e.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Re("speed"),children:"Speed"}),e("button",{className:`${_e.CLASSES.SETTINGS_TAB} ${"subtitles"===Oe?_e.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Re("subtitles"),children:"Subtitles"})]}),t("div",{className:_e.CLASSES.SETTINGS_CONTENT,children:["quality"===Oe&&H&&e("div",{className:_e.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${_e.CLASSES.SETTINGS_OPTION} ${me?.label===t.label?_e.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>xe(t),children:t.label},t.label)))}),"speed"===Oe&&e("div",{className:_e.CLASSES.SETTINGS_OPTIONS,children:G.map((e=>t("button",{className:`${_e.CLASSES.SETTINGS_OPTION} ${he===e?_e.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ae(e),children:[e,"x"]},e)))}),"subtitles"===Oe&&e("div",{className:_e.CLASSES.SETTINGS_OPTIONS,children:V&&V.length>0?t(n,{children:[e("button",{className:`${_e.CLASSES.SETTINGS_OPTION} ${null===Me?_e.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ge(null),children:"Off"}),V.map((t=>e("button",{className:`${_e.CLASSES.SETTINGS_OPTION} ${Me===t.srcLang?_e.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ge(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:_e.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),z&&e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Download video",children:e(C,{size:20})}),U&&e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:Fe,"aria-label":"Share video",children:e(L,{size:20})}),e("button",{className:_e.CLASSES.CONTROL_BUTTON,onClick:Ne,"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:_e.CLASSES.CONTROL_BUTTON,onClick:ye,"aria-label":de?"Exit fullscreen":"Enter fullscreen",children:e(de?I:w,{size:20})})]})]})]})]})}));sc.displayName="VideoPlayer";var lc=Object.freeze({__proto__:null,Accordion:nt,AnimatedChart:bi,AreaChart:vi,AtomixGlass:tt,AtomixLogo:at,Avatar:yt,AvatarGroup:Nt,Badge:xt,BarChart:yi,Block:Ct,Breadcrumb:Lt,BubbleChart:Ni,Button:Mt,ButtonGroup:kt,Callout:Po,CandlestickChart:Ai,Card:zo,Chart:mi,ChartRenderer:gi,Checkbox:ss,ColorModeToggle:Ui,Countdown:Fi,DataTable:Ki,DatePicker:Xi,DonutChart:xi,Dropdown:as,EdgePanel:os,ElevationCard:Ho,Footer:ul,FooterLink:fl,FooterSection:gl,FooterSocialLink:sl,Form:cs,FormGroup:us,FunnelChart:_i,GaugeChart:Ti,HeatmapChart:Li,Hero:bl,Icon:Et,Input:ms,LineChart:wi,List:Sl,ListGroup:vl,MegaMenu:Bl,MegaMenuColumn:Pl,MegaMenuLink:zl,Menu:Rl,MenuDivider:Dl,MenuItem:Ml,Messages:El,Modal:yl,MultiAxisChart:Oi,Nav:Nl,NavDropdown:Ul,NavItem:Al,Navbar:xl,Pagination:Wi,PhotoViewer:Yl,PieChart:Mi,Popover:Kl,ProductReview:Ql,Progress:ql,RadarChart:ki,Radio:ol,Rating:$l,River:Zl,ScatterChart:Di,SectionIntro:Xl,Select:rl,SideMenu:Ol,SideMenuItem:Ll,SideMenuList:Cl,Slider:Jl,Spinner:Ot,Steps:ec,Tabs:tc,Testimonial:nc,Textarea:il,Todo:ac,Toggle:rc,Tooltip:oc,TreemapChart:Bi,Upload:ic,VideoPlayer:sc,WaterfallChart:Pi}),cc=Object.freeze({__proto__:null}),dc=Object.freeze({__proto__:null,ACCORDION:U,ATOMIX_GLASS:ke,AVATAR:Se,AVATAR_GROUP:ve,BADGE:F,BLOCK:Oe,BREADCRUMB:H,BUTTON:B,BUTTON_GROUP:P,CALLOUT:z,CARD:ge,CHART:Ie,CLASS_PREFIX:k,CODE_SNIPPET:we,COUNTDOWN:j,DATA_TABLE_CLASSES:se,DATA_TABLE_SELECTORS:le,DATEPICKER:xe,DROPDOWN:Ne,EDGE_PANEL:ie,FOOTER:Me,FORM:ue,FORM_GROUP:he,GLASS_CONTAINER:Re,HERO:Y,INPUT:me,LIST:G,LIST_GROUP:V,MESSAGES:ye,MODAL:Ee,NAV:ae,NAVBAR:ne,PAGINATION_DEFAULTS:ce,PHOTOVIEWER:Te,POPOVER:K,PROGRESS:Ae,RADIO:pe,RATING:oe,RIVER:ee,SECTION_INTRO:J,SELECT:fe,SIDE_MENU:re,SIZES:M,SLIDER:Le,SPINNER:X,STEPS:q,TAB:Q,TESTIMONIAL:Z,TEXTAREA:be,THEME_COLORS:R,THEME_NAMING:D,TODO:de,TOGGLE:$,TOOLTIP:W,UPLOAD:te,VIDEO_PLAYER:_e,sliderConstants:Ce});const uc={primary:"#7c3aed",secondary:"#f3f4f6",success:"#22c55e",info:"#3b82f6",warning:"#eab308",error:"#ef4444",light:"#f9fafb",dark:"#1f2937","primary-rgb":"124, 58, 237","secondary-rgb":"243, 244, 246","success-rgb":"34, 197, 94","info-rgb":"59, 130, 246","warning-rgb":"234, 179, 8","error-rgb":"239, 68, 68","light-rgb":"249, 250, 251","dark-rgb":"31, 41, 55","gray-1":"#f9fafb","gray-2":"#f3f4f6","gray-3":"#e5e7eb","gray-4":"#d1d5db","gray-5":"#9ca3af","gray-6":"#6b7280","gray-7":"#4b5563","gray-8":"#374151","gray-9":"#1f2937","gray-10":"#111827","primary-1":"#f2e8fd","primary-2":"#e4d0fa","primary-3":"#d0b2f5","primary-4":"#b88cef","primary-5":"#9c63e9","primary-6":"#7c3aed","primary-7":"#6425ca","primary-8":"#501ba6","primary-9":"#3c1583","primary-10":"#2a0e60","red-1":"#fef2f2","red-2":"#fee2e2","red-3":"#fecaca","red-4":"#fca5a5","red-5":"#f87171","red-6":"#ef4444","red-7":"#dc2626","red-8":"#b91c1c","red-9":"#991b1b","red-10":"#7f1d1d","green-1":"#f0fdf4","green-2":"#dcfce7","green-3":"#bbf7d0","green-4":"#86efac","green-5":"#4ade80","green-6":"#22c55e","green-7":"#16a34a","green-8":"#15803d","green-9":"#166534","green-10":"#14532d","blue-1":"#eff6ff","blue-2":"#dbeafe","blue-3":"#bfdbfe","blue-4":"#93c5fd","blue-5":"#60a5fa","blue-6":"#3b82f6","blue-7":"#2563eb","blue-8":"#1d4ed8","blue-9":"#1e40af","blue-10":"#1e3a8a","yellow-1":"#fefce8","yellow-2":"#fef9c3","yellow-3":"#fef08a","yellow-4":"#fde047","yellow-5":"#facc15","yellow-6":"#eab308","yellow-7":"#ca8a04","yellow-8":"#a16207","yellow-9":"#854d0e","yellow-10":"#713f12","primary-text-emphasis":"#111827","secondary-text-emphasis":"#374151","tertiary-text-emphasis":"#6b7280","disabled-text-emphasis":"#9ca3af","invert-text-emphasis":"#111827","brand-text-emphasis":"#7c3aed","error-text-emphasis":"#ef4444","success-text-emphasis":"#22c55e","warning-text-emphasis":"#eab308","info-text-emphasis":"#3b82f6","light-text-emphasis":"#f9fafb","dark-text-emphasis":"#1f2937","primary-bg-subtle":"#ffffff","secondary-bg-subtle":"#e5e7eb","tertiary-bg-subtle":"#d1d5db","invert-bg-subtle":"#111827","brand-bg-subtle":"#e4d0fa","error-bg-subtle":"#fee2e2","success-bg-subtle":"#dcfce7","warning-bg-subtle":"#fef9c3","info-bg-subtle":"#dbeafe","light-bg-subtle":"#f3f4f6","dark-bg-subtle":"#1f2937","primary-border-subtle":"#e5e7eb","secondary-border-subtle":"#111827","success-border-subtle":"#22c55e","error-border-subtle":"#ef4444","warning-border-subtle":"#eab308","info-border-subtle":"#3b82f6","brand-border-subtle":"#7c3aed","light-border-subtle":"#f9fafb","dark-border-subtle":"#1f2937","primary-hover":"#7c3aed","secondary-hover":"#e5e7eb","light-hover":"#f3f4f6","dark-hover":"#4b5563","error-hover":"#b91c1c","success-hover":"#15803d","warning-hover":"#a16207","info-hover":"#1d4ed8","primary-gradient":"linear-gradient(135deg, #e4d0fa, #d0b2f5, #b88cef)","secondary-gradient":"linear-gradient(135deg, #f3f4f6, #e5e7eb, #d1d5db)","light-gradient":"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","dark-gradient":"linear-gradient(135deg, #4b5563, #1f2937, #000000)","success-gradient":"linear-gradient(135deg, #dcfce7, #86efac, #4ade80)","info-gradient":"linear-gradient(135deg, #dbeafe, #bfdbfe, #60a5fa)","warning-gradient":"linear-gradient(135deg, #fef9c3, #fef08a, #facc15)","error-gradient":"linear-gradient(135deg, #fef2f2, #fee2e2, #fecaca)",gradient:"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","font-sans-serif":'"Roboto", sans-serif',"font-monospace":'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"body-font-family":'"Roboto", sans-serif',"body-font-size":"1rem","body-font-weight":"400","body-line-height":"1.2","body-color":"#111827","body-bg":"#ffffff","heading-color":"#111827","font-size-xl":"1.5rem","font-size-2xl":"2rem","display-1":"4rem","font-weight-light":"300","font-weight-normal":"400","font-weight-medium":"500","font-weight-semibold":"600","font-weight-bold":"700","font-weight-heavy":"800","font-weight-black":"900","line-height-base":"1.2","line-height-sm":"1.43","line-height-lg":"1.56","letter-spacing-h1":"-1px","letter-spacing-h2":"-1px","letter-spacing-h3":"-1px","letter-spacing-h4":"-0.5px","letter-spacing-h5":"-0.5px","letter-spacing-h6":"-0.5px","link-color":"#7c3aed","link-color-rgb":"124, 58, 237","link-decoration":"none","link-hover-color":"rgb(85.3674418605, 18.2930232558, 200.2069767442)","link-hover-color-rgb":"85.3674418605, 18.2930232558, 200.2069767442","highlight-bg":"#fef08a","code-color":"#f87171","border-width":"1px","border-style":"solid","border-color":"#e5e7eb","border-color-translucent":"rgba(229, 231, 235, 0.175)","border-radius":"0.5rem","border-radius-sm":"0.25rem","border-radius-lg":"0.625rem","border-radius-xl":"0.75rem","border-radius-xxl":"1rem","border-radius-2xl":"var(--atomix-border-radius-xxl)","border-radius-3xl":"1.5rem","border-radius-4xl":"2rem","border-radius-pill":"50rem","box-shadow":"0 8px 16px rgba(0, 0, 0, 0.15)","box-shadow-xs":"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)","box-shadow-sm":"0 2px 4px rgba(0, 0, 0, 0.075)","box-shadow-lg":"0 16px 48px rgba(0, 0, 0, 0.175)","box-shadow-xl":"0px 16px 64px -8px rgba(45, 54, 67, 0.14)","box-shadow-inset":"inset 0 1px 2px rgba(0, 0, 0, 0.075)","focus-border-color":"#9c63e9","focus-ring-width":"3px","focus-ring-offset":"2px","focus-ring-opacity":"0.25","form-valid-color":"#22c55e","form-valid-border-color":"#22c55e","form-invalid-color":"#ef4444","form-invalid-border-color":"#ef4444","spacing-0":"0rem","spacing-1":"0.25rem","spacing-px-6":"0.375rem","spacing-2":"0.5rem","spacing-px-10":"0.625rem","spacing-3":"0.75rem","spacing-px-14":"0.875rem","spacing-4":"1rem","spacing-5":"1.25rem","spacing-px-22":"1.375rem","spacing-6":"1.5rem","spacing-7":"1.75rem","spacing-px-30":"1.875rem","spacing-8":"2rem","spacing-9":"2.25rem","spacing-10":"2.5rem","spacing-11":"2.75rem","spacing-12":"3rem","spacing-14":"3.5rem","spacing-16":"4rem","spacing-20":"5rem","spacing-24":"6rem","spacing-28":"7rem","spacing-32":"8rem","spacing-36":"9rem","spacing-40":"10rem","spacing-44":"11rem","spacing-48":"12rem","spacing-52":"13rem","spacing-56":"14rem","spacing-60":"15rem","spacing-64":"16rem","spacing-72":"18rem","spacing-80":"20rem","spacing-90":"22.5rem","spacing-200":"50rem","transition-duration-fast":"0.15s","transition-duration-base":"0.3s","transition-duration-slow":"0.5s","transition-duration-slower":"0.7s","easing-base":"cubic-bezier(0.23, 1, 0.32, 1)","easing-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","easing-ease-out":"cubic-bezier(0, 0, 0.2, 1)","easing-ease-in":"cubic-bezier(0.4, 0, 1, 1)","easing-ease-linear":"linear","transition-fast":"all 0.15s cubic-bezier(0.23, 1, 0.32, 1)","transition-base":"all 0.3s cubic-bezier(0.23, 1, 0.32, 1)","transition-slow":"all 0.5s cubic-bezier(0.23, 1, 0.32, 1)","z-n1":"-1","z-0":"0","z-1":"1","z-2":"2","z-3":"3","z-4":"4","z-5":"5","z-dropdown":"1000","z-sticky":"1020","z-fixed":"1030","z-modal":"1040","z-popover":"1050","z-tooltip":"1060","z-drawer":"1070","breakpoint-xs":"0","breakpoint-sm":"576px","breakpoint-md":"768px","breakpoint-lg":"992px","breakpoint-xl":"1200px","breakpoint-xxl":"1440px"};function hc(e){return{...uc,...e}}function mc(e,t={}){const{selector:n=":root",prefix:a="atomix"}=t;return`${n} {\n${Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>` --${a}-${e}: ${t};`)).join("\n")}\n}`}function pc(e,t,n="atomix"){return mc(e,{selector:t,prefix:n})}function gc(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function fc(e,t,n){const a=e=>Math.round(Math.max(0,Math.min(255,e))).toString(16).padStart(2,"0");return`#${a(e??0)}${a(t??0)}${a(n??0)}`}function bc(e){const t=gc(e);if(!t)return 0;const{r:n,g:a,b:r}=t,[o,i,s]=[n??0,a??0,r??0].map((e=>{const t=e/255;return t>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92}));return.2126*(o??0)+.7152*(i??0)+.0722*(s??0)}function Sc(e,t){const n=bc(e),a=bc(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function vc(e,t=3){const n=Sc("#FFFFFF",e),a=Sc("#000000",e);return t>n?t>a&&n>a?"#FFFFFF":"#000000":"#FFFFFF"}function Ec(e,t=.2){const n=gc(e);if(!n)return e;const{r:a,g:r,b:o}=n,i=e=>Math.min(255,Math.round(e+(255-e)*t));return fc(i(a),i(r),i(o))}function yc(e,t=.2){const n=gc(e);if(!n)return e;const{r:a,g:r,b:o}=n,i=e=>Math.max(0,Math.round(e*(1-t)));return fc(i(a),i(r),i(o))}function Nc(e,t){const n=gc(e);if(!n)return e;const{r:a,g:r,b:o}=n;return`rgba(${a}, ${r}, ${o}, ${Math.max(0,Math.min(1,t))})`}function Ac(e){const t={};if(e.palette){if(e.palette.primary&&(t.primary=e.palette.primary.main,e.palette.primary.light&&(t["primary-3"]=e.palette.primary.light),e.palette.primary.dark&&(t["primary-9"]=e.palette.primary.dark),e.palette.primary.main)){const n=gc(e.palette.primary.main);n&&(t["primary-rgb"]=`${n.r}, ${n.g}, ${n.b}`)}if(e.palette.secondary){t.secondary=e.palette.secondary.main,e.palette.secondary.light&&(t["gray-1"]=e.palette.secondary.light),e.palette.secondary.dark&&(t["gray-3"]=e.palette.secondary.dark);const n=gc(e.palette.secondary.main);n&&(t["secondary-rgb"]=`${n.r}, ${n.g}, ${n.b}`)}if(e.palette.error){t.error=e.palette.error.main,t["red-6"]=e.palette.error.main,e.palette.error.light&&(t["red-4"]=e.palette.error.light),e.palette.error.dark&&(t["red-9"]=e.palette.error.dark);const n=gc(e.palette.error.main);n&&(t["error-rgb"]=`${n.r}, ${n.g}, ${n.b}`)}if(e.palette.success){t.success=e.palette.success.main,t["green-6"]=e.palette.success.main,e.palette.success.light&&(t["green-4"]=e.palette.success.light),e.palette.success.dark&&(t["green-9"]=e.palette.success.dark);const n=gc(e.palette.success.main);n&&(t["success-rgb"]=`${n.r}, ${n.g}, ${n.b}`)}if(e.palette.warning){t.warning=e.palette.warning.main,t["yellow-6"]=e.palette.warning.main,e.palette.warning.light&&(t["yellow-4"]=e.palette.warning.light),e.palette.warning.dark&&(t["yellow-9"]=e.palette.warning.dark);const n=gc(e.palette.warning.main);n&&(t["warning-rgb"]=`${n.r}, ${n.g}, ${n.b}`)}if(e.palette.info){t.info=e.palette.info.main,t["blue-6"]=e.palette.info.main,e.palette.info.light&&(t["blue-4"]=e.palette.info.light),e.palette.info.dark&&(t["blue-9"]=e.palette.info.dark);const n=gc(e.palette.info.main);n&&(t["info-rgb"]=`${n.r}, ${n.g}, ${n.b}`)}e.palette.background&&(t["body-bg"]=e.palette.background.default,t["primary-bg-subtle"]=e.palette.background.default,t["secondary-bg-subtle"]=e.palette.background.paper,t["tertiary-bg-subtle"]=e.palette.background.subtle),e.palette.text&&(t["body-color"]=e.palette.text.primary,t["heading-color"]=e.palette.text.primary,t["primary-text-emphasis"]=e.palette.text.primary,t["secondary-text-emphasis"]=e.palette.text.secondary,t["disabled-text-emphasis"]=e.palette.text.disabled)}if(e.typography&&(t["body-font-family"]=e.typography.fontFamily,t["font-sans-serif"]=e.typography.fontFamily,t["body-font-size"]=e.typography.fontSize+"px",t["body-font-weight"]=e.typography.fontWeightRegular+"",t["font-weight-light"]=e.typography.fontWeightLight+"",t["font-weight-normal"]=e.typography.fontWeightRegular+"",t["font-weight-medium"]=e.typography.fontWeightMedium+"",t["font-weight-semibold"]=e.typography.fontWeightSemiBold+"",t["font-weight-bold"]=e.typography.fontWeightBold+"",e.typography.h1?.lineHeight&&(t["line-height-base"]=e.typography.h1.lineHeight+"")),e.spacing&&"object"==typeof e.spacing&&!("__isSpacingFunction"in e.spacing)){const n=e.spacing;Object.entries(n).forEach((([e,n])=>{t["spacing-"+e]=n+""}))}return e.borderRadius&&Object.entries(e.borderRadius).forEach((([e,n])=>{t["sm"===e?"border-radius-sm":"md"===e?"border-radius":"lg"===e?"border-radius-lg":"xl"===e?"border-radius-xl":"xxl"===e?"border-radius-xxl":"border-radius-"+e]=n+""})),e.shadows&&Object.entries(e.shadows).forEach((([e,n])=>{t["xs"===e?"box-shadow-xs":"sm"===e?"box-shadow-sm":"md"===e?"box-shadow":"lg"===e?"box-shadow-lg":"xl"===e?"box-shadow-xl":"box-shadow-"+e]=n+""})),e.zIndex&&Object.entries(e.zIndex).forEach((([e,n])=>{t["z-"+e]=n+""})),e.transitions&&(e.transitions.duration&&Object.entries(e.transitions.duration).forEach((([e,n])=>{t["transition-duration-"+e]=n+""})),e.transitions.easing&&Object.entries(e.transitions.easing).forEach((([e,n])=>{t["easing-"+e]=n+""}))),e.breakpoints?.values&&Object.entries(e.breakpoints.values).forEach((([e,n])=>{t["breakpoint-"+e]=n+""})),e.cssVars&&Object.entries(e.cssVars).forEach((([e,n])=>{const a=e.replace(/^--atomix-/,"").replace(/^--/,"");t[a]=n+""})),t}function xc(e){const t={};return Object.entries(e).forEach((([e,n])=>{void 0!==n&&(t["--atomix-"+e]=n+"")})),t}function _c(e){return hc(Ac(e))}function Tc(e){return{name:"Design Tokens Theme",cssVars:xc(e),__isJSTheme:!0}}function Cc(e,t){let n;if(e)n=function(e){return!0===e?.__isJSTheme||e?.palette&&e?.typography}(e)?Ac(e):e;else{if("undefined"!=typeof window)throw Error("createTheme: No input provided and config loading is not available in browser environment. Please provide tokens explicitly or use Node.js/SSR environment.");let e,a;try{const r=require("../config/configLoader"),i=require("../../config/loader");if(e=r.loadThemeFromConfigSync,a=i.loadAtomixConfig,n=e(),!t?.prefix)try{const e=a({configPath:"atomix.config.ts",required:!1});t={...t,prefix:e?.prefix||"atomix"}}catch(o){t={...t,prefix:"atomix"}}}catch(o){throw Error("createTheme: No input provided and config loading is not available in this environment. Please provide tokens explicitly.")}}const a=hc(n),r=t?.prefix??"atomix";return mc(a,{...t,prefix:r})}function Lc(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function Ic(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...n]=e,a={...t};for(const r of n)if(r)for(const e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const t=a[e],n=r[e];Lc(t)&&Lc(n)?a[e]=Ic(t,n):a[e]=n}return a}function wc(...e){return Ic({},...e)}function Oc(e,t){return Uc(wc(e.__isJSTheme?{...e}:e,t))}const Rc={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},Mc={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},kc={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},Dc={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},Bc={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},Pc={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function zc(e){return"string"==typeof e?{main:e,light:Ec(e),dark:yc(e),contrastText:vc(e)}:{main:e.main||"#000000",light:e.light||Ec(e.main||"#000000"),dark:e.dark||yc(e.main||"#000000"),contrastText:e.contrastText||vc(e.main||"#000000")}}function Uc(...e){const t=ci(e).call(e,((e,t)=>Ic(e,t)),{}),n={primary:zc(t.palette?.primary||Rc.primary),secondary:zc(t.palette?.secondary||Rc.secondary),error:zc(t.palette?.error||Rc.error),warning:zc(t.palette?.warning||Rc.warning),info:zc(t.palette?.info||Rc.info),success:zc(t.palette?.success||Rc.success),...t.palette?.light&&{light:zc(t.palette.light)},...t.palette?.dark&&{dark:zc(t.palette.dark)},background:{default:t.palette?.background?.default||Rc.background.default,subtle:t.palette?.background?.subtle||Rc.background.subtle},text:{primary:t.palette?.text?.primary||Rc.text.primary,secondary:t.palette?.text?.secondary||Rc.text.secondary,disabled:t.palette?.text?.disabled||Rc.text.disabled}},a=Ic({...Mc},t.typography||{}),r=function(e=4){return"function"==typeof e?e:"number"==typeof e?(...t)=>0===t.length?"0px":t.map((t=>t*e+"px")).join(" "):Array.isArray(e)?(...t)=>0===t.length?"0px":t.map((t=>(e[t]||t)+"px")).join(" "):(...e)=>0===e.length?"0px":e.map((e=>4*e+"px")).join(" ")}(t.spacing),o=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},n=e?.unit||"px";return{values:t,unit:n,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${n})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${n})`,between:(e,a)=>{const r="number"==typeof e?e:t[e]??0,o="number"==typeof a?a:t[a]??0;return`@media (min-width:${r}${n}) and (max-width:${o-.05}${n})`}}}(t.breakpoints),i=Ic({...kc},t.shadows||{}),s=Ic({...Dc},t.transitions||{}),l=Ic({...Bc},t.zIndex||{}),c=Ic({...Pc},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||n.primary.main,features:t.features,dependencies:t.dependencies,palette:n,typography:a,spacing:r,breakpoints:o,shadows:i,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}function Fc(){return{}}function Gc(e,t,n){e[t]=n}function Vc(e,t){const n=t in e;return delete e[t],n}function Hc(e,t){return t in e}function jc(e,t){return e[t]}function Yc(e){return Object.values(e)}function Wc(e){return Object.keys(e)}function Kc(e){Object.keys(e).forEach((t=>delete e[t]))}function $c(e){return Object.keys(e).length}function Qc(){return"undefined"!=typeof document}function qc(e,t="atomix-theme"){if(!Qc())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme","true"),document.head.appendChild(n)),n.textContent=e}function Zc(e="atomix-theme"){if(!Qc())return;const t=document.getElementById(e);t&&t.remove()}function Xc(e="atomix-theme"){return!!Qc()&&null!==document.getElementById(e)}"undefined"!=typeof process&&process.env;const Jc=()=>"undefined"!=typeof window&&"undefined"!=typeof document,ed=()=>!Jc(),td=(e,t="/themes",n=!1,a=null)=>{if(!nd(e))throw Error(`Invalid theme name: "${e}". Theme names must be lowercase alphanumeric with hyphens.`);const r=`${e}${n?".min.css":".css"}`;return a?`${a.replace(/[<>"']/g,"")}/${r}`:`${t.replace(/\/$/,"").replace(/[<>"']/g,"")}/${r.replace(/^\//,"")}`},nd=e=>!(!e||"string"!=typeof e)&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e);function ad(e,t="",n={}){for(const a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;const r=e[a],o=t?`${t}-${a}`:a;if(r&&"object"==typeof r&&!Array.isArray(r)){if("function"==typeof r)continue;ad(r,o,n)}else"string"!=typeof r&&"number"!=typeof r||(n[o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=r+"")}return n}function rd(e,t,n){const a={};if(!gc(e))return a;for(let r=1;10>=r;r++){let o;o=6>r?Ec(e,(6-r)/5*.8):6===r?e:yc(e,(r-6)/4*.6),a[`${t}-${n}-${r}`]=o}return a}function od(e,t={}){const{selector:n=":root",inject:a=!1,styleId:r="atomix-theme-variables",prefix:o="atomix"}=t,i={};if(Object.assign(i,function(e,t){const n={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){n[`${t}-${a}`]=r.main;const e=gc(r.main);if(e&&(n[`${t}-${a}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),"light"!==a&&"dark"!==a){const e=rd(r.main,t,a);Object.assign(n,e)}else n[`${t}-${a}-main`]=r.main,r.light&&(n[`${t}-${a}-light`]=r.light),r.dark&&(n[`${t}-${a}-dark`]=r.dark);r.dark&&(n[`${t}-${a}-hover`]=r.dark),n[`${t}-${a}-text-emphasis`]=function(e,t=.15){return bc(e)>.5?yc(e,t):Ec(e,t)}(r.main,.15),n[`${t}-${a}-bg-subtle`]=Nc(r.main,.1),n[`${t}-${a}-border-subtle`]=Nc(r.main,.2)}})),e.text?.primary){const a=rd(e.text.primary,t,"gray");Object.assign(n,a)}if(e.error&&"object"==typeof e.error&&e.error.main){const a=rd(e.error.main,t,"red");Object.assign(n,a)}if(e.success&&"object"==typeof e.success&&e.success.main){const a=rd(e.success.main,t,"green");Object.assign(n,a)}if(e.info&&"object"==typeof e.info&&e.info.main){const a=rd(e.info.main,t,"blue");Object.assign(n,a)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const a=rd(e.warning.main,t,"yellow");Object.assign(n,a)}if(e.background&&(n[t+"-body-bg"]=e.background.default,e.background.default&&(n[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(n[t+"-secondary-bg-subtle"]=e.background.paper,n[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(n[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(n[t+"-brand-bg-subtle"]=Nc(e.primary.main,.1))),e.text&&(n[t+"-body-color"]=e.text.primary,e.text.primary&&(n[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(n[t+"-secondary-text-emphasis"]=e.text.secondary,n[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(n[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(n[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(n[t+"-brand-text-emphasis"]=e.primary.main,n[t+"-brand-border-subtle"]=Nc(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(n[t+"-light-border-subtle"]=Nc(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(n[t+"-dark-border-subtle"]=Nc(e.dark.main,.2)),e.text&&(n[t+"-heading-color"]=e.text.primary),e.primary){n[t+"-link-color"]=e.primary.main;const a=gc(e.primary.main);a&&(n[t+"-link-color-rgb"]=`${a.r}, ${a.g}, ${a.b}`),n[t+"-link-hover-color"]=e.primary.dark||yc(e.primary.main,.1);const r=gc(e.primary.dark||yc(e.primary.main,.1));r&&(n[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),n[t+"-link-decoration"]="none"}if(e.text&&(n[t+"-border-color"]=Nc(e.text.primary,.1),n[t+"-border-color-translucent"]=Nc(e.text.primary,.15)),e.primary&&(n[t+"-focus-border-color"]=e.primary.main),e.success&&(n[t+"-form-valid-color"]=e.success.main,n[t+"-form-valid-border-color"]=Nc(e.success.main,.3)),e.error&&(n[t+"-form-invalid-color"]=e.error.main,n[t+"-form-invalid-border-color"]=Nc(e.error.main,.3)),e.warning?n[t+"-highlight-bg"]=Nc(e.warning.main,.2):n[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(n[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){const e=Ec(r.main,.6),o=Ec(r.main,.3),i=r.main;n[`${t}-${a}-gradient`]=`linear-gradient(135deg, ${e}, ${o}, ${i})`}})),e.text?.primary){const a=Ec(e.text.primary,.8),r=Ec(e.text.primary,.6),o=Ec(e.text.primary,.4);n[t+"-gradient"]=`linear-gradient(135deg, ${a}, ${r}, ${o})`}return n}(e.palette,o)),Object.assign(i,function(e,t){const n={};n[t+"-body-font-family"]=e.fontFamily,n[t+"-font-sans-serif"]=e.fontFamily,n[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const a=e.fontSize||16;n[t+"-root-font-size"]=a+"px";const r=e.fontSize;n[t+"-body-font-size"]=r+"px",n[t+"-body-font-weight"]=e.fontWeightRegular+"",n[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",n[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",n[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",n[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",n[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(n[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(n[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const o="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");n[t+"-body-line-height"]=o+"",n[t+"-line-height-base"]=o+"",n[t+"-line-height-sm"]="1.43",n[t+"-line-height-lg"]="1.56";const i=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,u=2*r;if(n[t+"-font-size-xs"]=i+"px",n[t+"-font-size-sm"]=s+"px",n[t+"-font-size-md"]=l+"px",n[t+"-font-size-lg"]=c+"px",n[t+"-font-size-xl"]=d+"px",n[t+"-font-size-2xl"]=u+"px","display1"in e){const a=e.display1;n[t+"-display-1"]="string"==typeof a?a:a+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((a=>{const r=e[a];r?.letterSpacing&&(n[`${t}-letter-spacing-${a}`]=r.letterSpacing+"")})),n}(e.typography,o)),Object.assign(i,function(e,t){const n={};return e.md&&(n[t+"-box-shadow"]=e.md),e.xs&&(n[t+"-box-shadow-xs"]=e.xs),e.sm&&(n[t+"-box-shadow-sm"]=e.sm),e.lg&&(n[t+"-box-shadow-lg"]=e.lg),e.xl&&(n[t+"-box-shadow-xl"]=e.xl),e.inset?n[t+"-box-shadow-inset"]=e.inset:e.sm&&(n[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),n}(e.shadows,o)),Object.assign(i,function(e,t){const n={},a=e.duration.shortest||150,r=e.duration.standard||300,o=e.duration.complex||500,i=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return n[t+"-transition-duration-fast"]=a/1e3+"s",n[t+"-transition-duration-base"]=r/1e3+"s",n[t+"-transition-duration-slow"]=o/1e3+"s",n[t+"-transition-duration-slower"]="0.7s",n[t+"-easing-base"]=i,n[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",n[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",n[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",n[t+"-easing-ease-linear"]="linear",n[t+"-transition-fast"]=`all ${a/1e3}s ${i}`,n[t+"-transition-base"]=`all ${r/1e3}s ${i}`,n[t+"-transition-slow"]=`all ${o/1e3}s ${i}`,n}(e.transitions,o)),Object.assign(i,function(e,t){const n={};return n[t+"-z-n1"]="-1",n[t+"-z-0"]="0",n[t+"-z-1"]="1",n[t+"-z-2"]="2",n[t+"-z-3"]="3",n[t+"-z-4"]="4",n[t+"-z-5"]="5",e.mobileStepper&&(n[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(n[t+"-z-sticky"]=e.appBar+""),n[t+"-z-fixed"]="1030",e.modal&&(n[t+"-z-modal"]=e.modal+""),e.speedDial&&(n[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(n[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(n[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(n[t+"-z-snackbar"]=e.snackbar+""),n}(e.zIndex,o)),Object.assign(i,function(e,t){const n={};return Object.entries(e.values).forEach((([a,r])=>{n[`${t}-breakpoint-${a}`]=`${r}${e.unit}`})),n}(e.breakpoints,o)),Object.assign(i,function(e,t){const n={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([a,r])=>{const o=e(r),i=o.match(/([\d.]+)px/);if(i&&i[1]){const e=parseFloat(i[1])/16;n[`${t}-spacing-${a}`]=e+"rem"}else n[`${t}-spacing-${a}`]=o})),n}(e.spacing,o)),Object.assign(i,function(e,t){const n={};return n[t+"-border-width"]="1px",n[t+"-border-style"]="solid",!n[t+"-border-color"]&&e.text&&(n[t+"-border-color"]=Nc(e.text.primary,.1)),n}(e.palette,o)),Object.assign(i,function(e,t){const n={},a=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return n[t+"-border-radius"]=a(e.base,"0.5rem"),n[t+"-border-radius-sm"]=a(e.sm,"0.25rem"),n[t+"-border-radius-lg"]=a(e.lg,"0.625rem"),n[t+"-border-radius-xl"]=a(e.xl,"0.75rem"),n[t+"-border-radius-xxl"]=a(e.xxl,"1rem"),n[t+"-border-radius-3xl"]=a(e["3xl"],"1.5rem"),n[t+"-border-radius-4xl"]=a(e["4xl"],"2rem"),n[t+"-border-radius-pill"]=a(e.pill,"50rem"),n}(e.borderRadius,o)),Object.assign(i,function(e,t){const n={};return n[t+"-focus-ring-width"]="3px",n[t+"-focus-ring-offset"]="2px",n[t+"-focus-ring-opacity"]="0.25",n}(e.palette,o)),e.custom&&Object.keys(e.custom).length>0){const t=ad(e.custom,o+"-custom");Object.assign(i,t)}const s=`${n} {\n${Object.entries(i).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return a&&Jc()&&function(e,t="atomix-theme-variables"){if(!Jc())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(n)),n.textContent=e}(s,r),s}function id(e,t,n){let a=e;return t&&(a+="__"+t),n&&Object.entries(n).forEach((([e,t])=>{t&&(a+="--"+e,"string"==typeof t&&t!==e&&(a+="-"+t))})),a}function sd(e,t={}){const{prefix:n="atomix",component:a,variant:r,state:o}=t,i=[n];return a&&i.push(a),r&&i.push(r),o&&i.push(o),i.push(e),"--"+i.join("-")}function ld(e){const t={};for(const[n,a]of Object.entries(e))t[n]="object"==typeof a&&null!==a?ld(a):a;return t}function cd(e){return e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))}function dd(e,t="atomix"){return`--${t}-${e.split(".").map((e=>cd(e))).join("-")}`}function ud(e,t,n,a){const r=["atomix",e];return n&&r.push(n),a&&r.push(a),r.push(t),`var(${"--"+r.join("-")}, var(${"--atomix-"+t}, initial))`}function hd(e,t,n,a){const r={},o=["atomix",e];n&&o.push(n),a&&o.push(a);const i=o.join("-");if(t.palette&&(r[`--${i}-color`]=t.palette.primary?.main||"#7c3aed",r[`--${i}-color-hover`]=t.palette.primary?.dark||"#5b21b6",r[`--${i}-color-active`]=t.palette.primary?.main||"#7c3aed",r[`--${i}-color-disabled`]=t.palette.text?.disabled||"#9ca3af"),t.typography&&(r[`--${i}-font-family`]=t.typography.fontFamily||"Inter, sans-serif",r[`--${i}-font-size`]=t.typography.fontSize?t.typography.fontSize+"px":"16px"),t.spacing){const e="function"==typeof t.spacing?t.spacing:e=>8*e;r[`--${i}-spacing-unit`]=e(1)+"px",r[`--${i}-spacing-sm`]=e(.5)+"px",r[`--${i}-spacing-md`]=e(1)+"px",r[`--${i}-spacing-lg`]=e(2)+"px"}return r}function md(e,t={},n,a,r){return r?{...hd(e,r,n,a),...t}:t}function pd(e,t,n,a){return a=>ud(e,a,t,n)}function gd(e){if("undefined"!=typeof window)throw Error("loadThemeFromConfigSync: Not available in browser environment. Config loading requires Node.js/SSR environment.");let t;try{const{loadAtomixConfig:e}=require("../../config/loader");t=e}catch(a){if(!1!==e?.required)throw Error("Config loader module not available");return hc({})}const n=t({configPath:e?.configPath||"atomix.config.ts",required:!1!==e?.required});return n?.theme?bd(n.theme)?_c(n.theme):hc(n.theme):hc({})}async function fd(e){if("undefined"!=typeof window)throw Error("loadThemeFromConfig: Not available in browser environment. Config loading requires Node.js/SSR environment.");const{loadAtomixConfig:t}=await import("./lib/config/loader"),n=await t({configPath:e?.configPath||"atomix.config.ts",required:!1!==e?.required});return n?.theme?bd(n.theme)?_c(n.theme):hc(n.theme):hc({})}function bd(e){return"object"==typeof e&&null!==e}const Sd=g(null);Sd.displayName="ThemeContext";const vd=({children:t,defaultTheme:n,themes:a={},basePath:s="/themes",cdnPath:l=null,useMinified:c=!1,storageKey:h="atomix-theme",dataAttribute:m="data-theme",enablePersistence:p=!0,onThemeChange:g,onError:f})=>{const b=o(g),S=o(f);i((()=>{b.current=g,S.current=f}),[g,f]);const v=u((e=>{b.current?.(e)}),[]),E=u(((e,t)=>{S.current?.(e,t)}),[]),y=d((()=>({getItem:e=>{if(ed())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!ed())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!ed())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(ed())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}})),[]),N=d((()=>{if(p&&y.isAvailable()){const e=y.getItem(h);if(e)return e}if(null!=n)return n;if("undefined"==typeof window)try{const{loadThemeFromConfigSync:e}=require("../config/configLoader"),t=e();if(t&&Object.keys(t).length>0)return"config-theme"}catch(I){}return"default"}),[n,p,h]),[A,x]=r((()=>N)),[_,T]=r(null),[C,L]=r(!1),[I,w]=r(null),O=o(new Set),R=o({});i((()=>{ed()||((e,t)=>{ed()||(document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))})(A+"",m)}),[A,m]),i((()=>{p&&y.isAvailable()&&y.setItem(h,A+"")}),[A,h,p]);const M=u((async(e,t)=>{L(!0),w(null);try{let t,n=null;if("string"==typeof e?t=e:function(e){return"object"==typeof e&&null!==e&&"__isJSTheme"in e&&!0===e.__isJSTheme}(e)?(n=e,t="js-theme",T(n)):t="tokens-theme","string"==typeof e&&a[e]){if(R.current[e])return await R.current[e],x(e),T(null),void v(e);const t=new Promise((async(t,n)=>{try{if(!a[e])throw Error("Theme metadata not found for theme: "+e);{const n=td(e,s,c,l);Zc("theme-"+A),await qc(n,"theme-"+e),O.current.add(e),x(e),T(null),v(e),t()}}catch(r){const t=r instanceof Error?r:Error(r+"");w(t),E(t,e+""),n(t)}}));R.current[e]=t,await t}else n?(x(t),T(n),v(n)):(x(t),T(null),v(t))}catch(n){const t=n instanceof Error?n:Error(n+"");w(t),E(t,e+"")}finally{L(!1)}}),[a,A,v,E,s,c,l]),k=u((e=>O.current.has(e)),[]),D=u((async e=>{if(a[e]&&!k(e)){L(!0);try{const t=td(e,s,c,l);await fetch(t),O.current.add(e)}catch(t){const n=t instanceof Error?t:Error(t+"");w(n),E(n,e)}finally{L(!1)}}}),[a,k,E,s,c,l]),B=d((()=>({})),[]),P=d((()=>({theme:"string"==typeof A?A:"js-theme",activeTheme:_,setTheme:M,availableThemes:Object.entries(a).map((([e,t])=>({...t}))),isLoading:C,error:I,isThemeLoaded:k,preloadTheme:D,themeManager:B})),[A,_,M,a,C,I,k,D,B]);return e(Sd.Provider,{value:P,children:t})};function Ed(){const e=f(Sd);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTheme:e.activeTheme,setTheme:e.setTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}}function yd(){const{theme:e,activeTheme:t}=Ed(),n=u(((e,t)=>{if("undefined"==typeof window)return t||"";const n="--atomix-"+e;return getComputedStyle(document.documentElement).getPropertyValue(n).trim()||t||""}),[]),a=u(((e,n)=>{var a;return t&&ci(a=e.split(".")).call(a,((e,t)=>e?.[t]),t)||n}),[t]);return{theme:e,activeTheme:t,getToken:n,getThemeValue:a,colors:{primary:n("primary","#3b82f6"),secondary:n("secondary","#10b981"),error:n("error","#ef4444"),success:n("success","#22c55e"),warning:n("warning","#eab308"),info:n("info","#3b82f6"),light:n("light","#f9fafb"),dark:n("dark","#111827")},spacing:{1:n("spacing-1","0.25rem"),2:n("spacing-2","0.5rem"),3:n("spacing-3","0.75rem"),4:n("spacing-4","1rem"),5:n("spacing-5","1.25rem"),6:n("spacing-6","1.5rem"),8:n("spacing-8","2rem"),10:n("spacing-10","2.5rem"),12:n("spacing-12","3rem"),16:n("spacing-16","4rem"),20:n("spacing-20","5rem")},borderRadius:{sm:n("border-radius-sm","0.25rem"),md:n("border-radius-md","0.5rem"),lg:n("border-radius-lg","0.75rem"),xl:n("border-radius-xl","1rem"),full:n("border-radius-full","9999px")},typography:{fontFamily:{sans:n("font-sans-serif","Inter, system-ui, sans-serif"),serif:n("font-serif","Georgia, serif"),mono:n("font-monospace","Fira Code, monospace")},fontSize:{xs:n("font-size-xs","0.75rem"),sm:n("font-size-sm","0.875rem"),md:n("font-size-md","1rem"),lg:n("font-size-lg","1.125rem"),xl:n("font-size-xl","1.25rem"),"2xl":n("font-size-2xl","1.5rem"),"3xl":n("font-size-3xl","1.875rem"),"4xl":n("font-size-4xl","2.25rem")},fontWeight:{light:n("font-weight-light","300"),normal:n("font-weight-normal","400"),medium:n("font-weight-medium","500"),semibold:n("font-weight-semibold","600"),bold:n("font-weight-bold","700")}},shadows:{sm:n("box-shadow-sm","0 1px 2px 0 rgba(0, 0, 0, 0.05)"),md:n("box-shadow-md","0 4px 6px -1px rgba(0, 0, 0, 0.1)"),lg:n("box-shadow-lg","0 10px 15px -3px rgba(0, 0, 0, 0.1)"),xl:n("box-shadow-xl","0 20px 25px -5px rgba(0, 0, 0, 0.1)"),inset:n("box-shadow-inset","inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)")},transitions:{fast:n("transition-fast","150ms"),base:n("transition-base","200ms"),slow:n("transition-slow","300ms")}}}var Nd,Ad;!function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(Nd||(Nd={}));class xd extends Error{constructor(e,t=Nd.UNKNOWN_ERROR,n){super(e),this.name="ThemeError",this.code=t,this.context=n,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,xd)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(Ad||(Ad={}));class _d{constructor(e={}){this.config={level:e.level??("undefined"!=typeof process&&"production"===process.env?.NODE_ENV?Ad.WARN:Ad.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,n){if(this.config.level<Ad.ERROR)return;const a=t instanceof xd?t:new xd(e,Nd.UNKNOWN_ERROR,n);this.config.enableConsole,this.config.onError?.(a,n)}warn(e,t){this.config.level<Ad.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<Ad.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<Ad.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let Td=null;function Cd(){return Td||(Td=new _d),Td}const Ld=({error:n,errorInfo:a})=>{const r=n instanceof xd,o=r?n.code:Nd.UNKNOWN_ERROR,i=r?n.context:void 0;return t("div",{style:{padding:"2rem",margin:"1rem",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa",color:"#333"},role:"alert",children:[e("h2",{style:{marginTop:0,color:"#d32f2f"},children:"Theme Error"}),t("p",{children:[e("strong",{children:"Error:"})," ",n.message]}),r&&t("p",{children:[e("strong",{children:"Error Code:"})," ",o]}),i&&Object.keys(i).length>0&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Error Context"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto"},children:JSON.stringify(i,null,2)})]}),("undefined"==typeof process||"development"===process.env?.NODE_ENV)&&a&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Stack Trace (Development Only)"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto",fontSize:"0.875rem"},children:a.componentStack})]}),e("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Reload Page"})]})};class Id extends S{constructor(e){super(e),this.logger=Cd(),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const n=e instanceof xd?e:new xd(e.message,Nd.UNKNOWN_ERROR,{componentStack:t.componentStack});if(this.logger.error("Theme error boundary caught an error",n,{componentStack:t.componentStack,errorBoundary:"ThemeErrorBoundary"}),this.setState({error:e,errorInfo:t}),this.props.onError)try{this.props.onError(e,t)}catch(a){this.logger.error("Error in onError callback",a instanceof Error?a:Error(a+""),{originalError:e.message})}}componentDidUpdate(e){this.props.resetOnPropsChange&&this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError&&this.state.error&&this.state.errorInfo?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):e(Ld,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}class wd{constructor(e=document.documentElement){this.styleId="atomix-theme-applicator",this.root=e}applyTheme(e){this.clearAppliedVars(),this.isDesignTokens(e)?this.applyDesignTokens(e):qc(Cc(e,{selector:":root",prefix:"atomix"}),this.styleId),!this.isDesignTokens(e)&&e.components&&this.applyComponentOverrides(e.components)}applyDesignTokens(e){qc(Cc(e,{selector:":root",prefix:"atomix"}),this.styleId)}isDesignTokens(e){return null!==e&&"object"==typeof e&&!("palette"in e)&&!("typography"in e)&&!("__isJSTheme"in e)}applyGlobalCSSVars(e){Object.entries(e).forEach((([e,t])=>{this.root.style.setProperty(e,t+"")}))}applyComponentOverrides(e){Object.entries(e).forEach((([e,t])=>{t&&this.applyComponentOverride(e,t)}))}applyComponentOverride(e,t){const n={},a=e.toLowerCase();t.cssVars&&Object.entries(t.cssVars).forEach((([e,t])=>{const r=e.startsWith("--")?e:`--atomix-${a}-${e}`;n[r]=t})),t.parts&&Object.entries(t.parts).forEach((([e,t])=>{t.cssVars&&Object.entries(t.cssVars).forEach((([t,r])=>{const o=t.startsWith("--")?t:`--atomix-${a}-${e}-${t}`;n[o]=r}))})),t.variants&&Object.entries(t.variants).forEach((([e,t])=>{t.cssVars&&Object.entries(t.cssVars).forEach((([t,r])=>{const o=t.startsWith("--")?t:`--atomix-${a}-${e}-${t}`;n[o]=r}))})),this.applyGlobalCSSVars(n)}clearAppliedVars(){Zc(this.styleId)}removeTheme(){this.clearAppliedVars(),Zc(this.styleId)}updateCSSVars(e){this.applyGlobalCSSVars(e)}}let Od=null;function Rd(){return Od||(Od=new wd),Od}function Md(e){Rd().applyTheme(e)}const kd={mobile:{width:375,height:667,label:"Mobile (375px)"},tablet:{width:768,height:1024,label:"Tablet (768px)"},desktop:{width:1280,height:720,label:"Desktop (1280px)"},custom:{width:1280,height:720,label:"Custom"}},Dd=({theme:a,showDetails:o=!0,showPalette:s=!0,showTypography:l=!0,showSpacing:c=!1,children:u,className:h,style:m})=>{const[p,g]=r(""),[f,b]=r(!1),[S,v]=r("desktop"),[E,y]=r(1280),[N,A]=r(720),[x,_]=r({}),T=d((()=>"custom"===S?{width:E,height:N}:kd[S]),[S,E,N]),C=d((()=>f?{...a,palette:{...a.palette,background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.8)",disabled:"rgba(255, 255, 255, 0.5)"}}}:a),[a,f]);i((()=>{const e=od(C,{selector:":root",prefix:"atomix-preview"});g(e)}),[C]);const L=e=>{(e=>{_((t=>({...t,[e]:!t[e]})))})(e),setTimeout((()=>{_((t=>{const n={...t};return delete n[e],n}))}),200)};return t("div",{className:"atomix-theme-preview "+(h||""),style:m,children:[t("div",{className:"preview-controls",children:[t("div",{className:"control-group",children:[e("label",{children:"Viewport:"}),t("select",{value:S,onChange:e=>v(e.target.value),children:[e("option",{value:"mobile",children:"Mobile (375px)"}),e("option",{value:"tablet",children:"Tablet (768px)"}),e("option",{value:"desktop",children:"Desktop (1280px)"}),e("option",{value:"custom",children:"Custom"})]})]}),"custom"===S&&t(n,{children:[t("div",{className:"control-group",children:[e("label",{children:"Width:"}),e("input",{type:"number",value:E,onChange:e=>y(parseInt(e.target.value)||1280),min:"320",max:"3840"})]}),t("div",{className:"control-group",children:[e("label",{children:"Height:"}),e("input",{type:"number",value:N,onChange:e=>A(parseInt(e.target.value)||720),min:"240",max:"2160"})]})]}),e("div",{className:"control-group",children:t("label",{children:[e("input",{type:"checkbox",checked:f,onChange:e=>b(e.target.checked)}),"Dark Mode"]})})]}),t("div",{className:"viewport-wrapper",style:{width:T.width+"px",height:T.height+"px",maxWidth:"100%"},children:[e("style",{children:p}),o&&t("div",{className:"theme-details",children:[e("h2",{children:C.name}),C.description&&e("p",{children:C.description}),C.author&&t("p",{children:[e("strong",{children:"Author:"})," ",C.author]}),C.version&&t("p",{children:[e("strong",{children:"Version:"})," ",C.version]}),C.status&&t("p",{children:[e("strong",{children:"Status:"})," ",C.status]}),C.tags&&C.tags.length>0&&t("p",{children:[e("strong",{children:"Tags:"})," ",C.tags.join(", ")]})]}),s&&t("div",{className:"theme-palette",children:[e("h3",{children:"Color Palette"}),e("div",{className:"color-grid",children:["primary","secondary","error","warning","info","success"].map((n=>{const a=C.palette[n];return a&&"object"==typeof a&&"main"in a?t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a.main}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a.main})]})]},n):null}))}),e("h4",{children:"Background"}),e("div",{className:"color-grid",children:Object.entries(C.palette.background).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))}),e("h4",{children:"Text"}),e("div",{className:"color-grid",children:Object.entries(C.palette.text).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))})]}),l&&t("div",{className:"theme-typography",children:[e("h3",{children:"Typography"}),t("div",{className:"typography-info",children:[t("p",{children:[e("strong",{children:"Font Family:"})," ",e("code",{children:C.typography.fontFamily})]}),t("p",{children:[e("strong",{children:"Base Font Size:"})," ",t("code",{children:[C.typography.fontSize,"px"]})]})]}),t("div",{className:"typography-samples",children:[e("h1",{style:{fontSize:C.typography.h1.fontSize,fontWeight:C.typography.h1.fontWeight,lineHeight:C.typography.h1.lineHeight},children:"Heading 1"}),e("h2",{style:{fontSize:C.typography.h2.fontSize,fontWeight:C.typography.h2.fontWeight,lineHeight:C.typography.h2.lineHeight},children:"Heading 2"}),e("h3",{style:{fontSize:C.typography.h3.fontSize,fontWeight:C.typography.h3.fontWeight,lineHeight:C.typography.h3.lineHeight},children:"Heading 3"}),e("p",{style:{fontSize:C.typography.body1.fontSize,fontWeight:C.typography.body1.fontWeight,lineHeight:C.typography.body1.lineHeight},children:"Body 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit."}),e("p",{style:{fontSize:C.typography.body2.fontSize,fontWeight:C.typography.body2.fontWeight,lineHeight:C.typography.body2.lineHeight},children:"Body 2: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})]})]}),c&&t("div",{className:"theme-spacing",children:[e("h3",{children:"Spacing"}),e("div",{className:"spacing-samples",children:[1,2,3,4,6,8,12].map((n=>t("div",{className:"spacing-item",children:[e("div",{className:"spacing-box",style:{width:C.spacing(n),height:C.spacing(n),backgroundColor:C.palette.primary.main}}),t("code",{children:[n," = ",C.spacing(n)]})]},n)))})]}),t("div",{className:"theme-components",children:[e("h3",{children:"Sample Components"}),t("div",{className:"component-group",children:[e("h4",{children:"Buttons"}),t("div",{className:"button-group",children:[e("button",{className:"interactive-button "+(x["btn-primary"]?"active":""),onClick:()=>L("btn-primary"),onMouseEnter:()=>_((e=>({...e,"btn-primary-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["btn-primary-hover"],t})),style:{backgroundColor:x["btn-primary-hover"]&&C.palette.primary.dark||C.palette.primary.main,color:C.palette.primary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:x["btn-primary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Primary Button"}),e("button",{className:"interactive-button "+(x["btn-secondary"]?"active":""),onClick:()=>L("btn-secondary"),onMouseEnter:()=>_((e=>({...e,"btn-secondary-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["btn-secondary-hover"],t})),style:{backgroundColor:x["btn-secondary-hover"]&&C.palette.secondary.dark||C.palette.secondary.main,color:C.palette.secondary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:x["btn-secondary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Secondary Button"}),e("button",{className:"interactive-button "+(x["btn-outline"]?"active":""),onClick:()=>L("btn-outline"),onMouseEnter:()=>_((e=>({...e,"btn-outline-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["btn-outline-hover"],t})),onFocus:()=>_((e=>({...e,"btn-outline-focus":!0}))),onBlur:()=>_((e=>{const t={...e};return delete t["btn-outline-focus"],t})),style:{backgroundColor:"transparent",color:C.palette.primary.main,border:"2px solid "+(x["btn-outline-focus"]&&C.palette.primary.dark||C.palette.primary.main),padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:x["btn-outline"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease",outline:x["btn-outline-focus"]?"2px solid "+C.palette.primary.main:"none",outlineOffset:"2px"},children:"Outline Button"})]})]}),t("div",{className:"component-group",children:[e("h4",{children:"Card"}),t("div",{className:"interactive-card",onMouseEnter:()=>_((e=>({...e,"card-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["card-hover"],t})),style:{backgroundColor:C.palette.background.subtle,border:"1px solid "+C.palette.text.disabled,borderRadius:C.borderRadius.lg,padding:C.spacing(3),boxShadow:x["card-hover"]?C.shadows.lg:C.shadows.md,maxWidth:"300px",transition:"all 0.2s ease",cursor:"pointer"},children:[e("h5",{style:{margin:0,marginBottom:C.spacing(1)},children:"Card Title"}),e("p",{style:{margin:0,color:C.palette.text.secondary,fontSize:C.typography.body2.fontSize},children:"This is a sample card component showing how the theme colors and spacing work together."})]})]})]}),u&&t("div",{className:"theme-custom",children:[e("h3",{children:"Custom Components"}),u]})]}),e("style",{children:`\n .atomix-theme-preview {\n padding: 24px;\n font-family: ${C.typography.fontFamily};\n color: ${C.palette.text.primary};\n background-color: ${C.palette.background.default};\n }\n\n .preview-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n padding: 16px;\n background: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.md};\n margin-bottom: 24px;\n flex-wrap: wrap;\n }\n\n .control-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .control-group label {\n font-size: 14px;\n color: ${C.palette.text.secondary};\n }\n\n .control-group select,\n .control-group input[type="number"] {\n padding: 6px 12px;\n border: 1px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.base};\n font-size: 14px;\n background: ${C.palette.background.default};\n color: ${C.palette.text.primary};\n }\n\n .control-group input[type="checkbox"] {\n margin-right: 4px;\n }\n\n .viewport-wrapper {\n border: 2px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.lg};\n overflow: auto;\n background: ${C.palette.background.default};\n margin: 0 auto;\n box-shadow: ${C.shadows.lg};\n }\n\n .theme-details {\n margin-bottom: 32px;\n padding: 16px;\n background-color: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.lg};\n }\n\n .theme-palette,\n .theme-typography,\n .theme-spacing,\n .theme-components {\n margin-bottom: 32px;\n padding: 16px;\n }\n\n .color-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 16px;\n }\n\n .color-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .color-swatch {\n width: 40px;\n height: 40px;\n border-radius: ${C.borderRadius.base};\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .color-info {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .color-info code {\n font-size: 12px;\n color: ${C.palette.text.secondary};\n }\n\n .typography-samples {\n margin-top: 16px;\n }\n\n .typography-samples > * {\n margin: 8px 0;\n }\n\n .spacing-samples {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n margin-top: 16px;\n }\n\n .spacing-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n }\n\n .spacing-box {\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .component-group {\n margin-bottom: 24px;\n }\n\n .button-group {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .interactive-button {\n transition: all 0.2s ease;\n }\n\n .interactive-button:focus-visible {\n outline: 2px solid ${C.palette.primary.main};\n outline-offset: 2px;\n }\n\n .interactive-card {\n transition: all 0.2s ease;\n }\n\n h3 {\n color: ${C.palette.text.primary};\n border-bottom: 2px solid ${C.palette.primary.main};\n padding-bottom: 8px;\n }\n\n h4 {\n color: ${C.palette.text.primary};\n margin-top: 24px;\n margin-bottom: 12px;\n }\n `})]})};class Bd{validate(e,t){const n=[],a=[],r=[],o=this.validatePalette(e.palette,t);n.push(...o.errors),a.push(...o.warnings),r.push(...o.a11yIssues);const i=this.validateTypography(e.typography);n.push(...i.errors),a.push(...i.warnings);const s=this.validateSpacing(e.spacing);n.push(...s.errors),a.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);n.push(...l.errors),a.push(...l.warnings);const c=this.validateTransitions(e.transitions);n.push(...c.errors),a.push(...c.warnings);const d=this.validateZIndex(e.zIndex);n.push(...d.errors),a.push(...d.warnings);const u=this.validateBorderRadius(e.borderRadius);n.push(...u.errors),a.push(...u.warnings);const h=this.validateCustom(e.custom);return n.push(...h.errors),a.push(...h.warnings),{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validatePalette(e,t){const n=[],a=[],r=[],o=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(o>t){const i={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${o})`,property:"palette.primary",value:e.primary.main};r.push(i),3>t?n.push(i.message):a.push(i.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(o>t){const i={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${o})`,property:"palette.text.primary",value:e.text.primary};r.push(i),3>t?n.push(i.message):a.push(i.message)}}const i=["primary","secondary","error","warning","info","success"];for(const s of i){const t=e[s];t&&(this.isValidColor(t.main)||n.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validateTypography(e){const t=[],n=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&n.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(n){t.push("Spacing function error: "+(n instanceof Error?n.message:n+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],n=[];if(e.values){const a=["xs","sm","md","lg","xl"];for(const n of a)"number"!=typeof e.values[n]&&t.push(`Breakpoint ${n} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],a=r[e-1];if(null!=t&&null!=a&&a>=t){n.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}checkContrast(e,t){try{return Sc(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],n=[],a=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};if(e.duration){const a=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of a){const a=e.duration[r];void 0!==a&&("number"!=typeof a||0>a?t.push(`Transition duration ${r} must be a non-negative number`):a>1e4&&n.push(`Transition duration ${r} (${a}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const a=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const o of a){const a=e.easing[o];void 0!==a&&("string"!=typeof a?t.push(`Transition easing ${o} must be a string`):r.test(a)||n.push(`Transition easing ${o} may not be a valid CSS easing function: ${a}`))}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateZIndex(e){const t=[],n=[],a=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[o,i]of Object.entries(e))void 0!==i&&("number"!=typeof i?t.push(`Z-index ${o} must be a number, got ${typeof i}`):0>i?t.push(`Z-index ${o} must be non-negative, got ${i}`):i>1e4&&n.push(`Z-index ${o} (${i}) exceeds recommended maximum (10000)`));for(let o=0;o<r.length;o++)for(let e=o+1;e<r.length;e++){const t=r[o],a=r[e];if(!t||!a)continue;const[i,s]=t,[l,c]=a,d=Math.abs(s-c);10>d&&d>0&&n.push(`Z-index values ${i} (${s}) and ${l} (${c}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateBorderRadius(e){const t=[],n=[],a=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const o of r){const a=e[o];if(void 0!==a){let e;if("number"==typeof a)e=a;else{if("string"!=typeof a){t.push(`Border radius ${o} must be a number or string, got ${typeof a}`);continue}{const n=a.match(/^([\d.]+)(px|rem|em|%)?$/);if(!n){t.push(`Border radius ${o} has invalid format: ${a}`);continue}const[,r]=n;if(!r){t.push(`Border radius ${o} has invalid numeric value: ${a}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${o} must be non-negative, got ${e}`):e>1e3&&n.push(`Border radius ${o} (${a}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateCustom(e){const t=[],n=[],a=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:n,a11yIssues:a};const r=new WeakSet;let o=0;const i=(e,t="custom")=>{if(o>10)n.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))n.push("Circular reference detected in custom property path: "+t);else{r.add(e),o++;try{for(const[a,r]of Object.entries(e)){const e=`${t}.${a}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(a)||n.push(`Custom property name "${a}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||i(r,e)}}finally{o--,r.delete(e)}}};return i(e),{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}}const Pd=({theme:n,showValidation:a=!0,showCSSVariables:s=!0,showStructure:l=!0,className:c,style:h})=>{const[m,p]=r("overview"),[g,f]=r(new Set(["palette"])),[b,S]=r(""),[v,E]=r(""),[y,N]=r(null),A=o();i((()=>(A.current&&clearTimeout(A.current),A.current=setTimeout((()=>{E(b)}),300),()=>{A.current&&clearTimeout(A.current)})),[b]);const x=d((()=>{if(!a)return null;try{return(new Bd).validate(n)}catch(e){return{valid:!1,errors:["Failed to validate theme: "+(e instanceof Error?e.message:e+"")],warnings:[],a11yIssues:[]}}}),[n,a]),_=d((()=>{if(!s)return"";try{return od(n,{selector:":root",prefix:"atomix"})}catch(e){return`/* Error generating CSS variables: ${e instanceof Error?e.message:e+""} */`}}),[n,s]),T=d((()=>{const e=[],t=(n,a="",r=0)=>{if(10>=r)if(null!=n)if("object"!=typeof n||Array.isArray(n)){const t=a.toLowerCase(),r=v.toLowerCase(),o=!v||Bo(t).call(t,r);e.push({path:a,value:n,matches:o})}else Object.entries(n).forEach((([n,o])=>{if("__isJSTheme"===n)return;const i=a?`${a}.${n}`:n,s=i.toLowerCase(),l=v.toLowerCase(),c=!v||Bo(s).call(s,l);if("object"!=typeof o||null===o||Array.isArray(o)){const t="string"==typeof o?o.toLowerCase():(o+"").toLowerCase(),n=!v||Bo(t).call(t,l);e.push({path:i,value:o,matches:c||n})}else e.push({path:i,value:null,matches:c}),t(o,i,r+1)}));else e.push({path:a,value:n,matches:!1})};return t(n),e}),[n,v]),C=u((async e=>{try{await navigator.clipboard.writeText(e),N(e),setTimeout((()=>N(null)),2e3)}catch(t){const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select();try{document.execCommand("copy"),N(e),setTimeout((()=>N(null)),2e3)}catch{}document.body.removeChild(n)}}),[]),L=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,I=(n,a=0,r="")=>null==n?e("span",{className:"value-null",children:"null"}):"string"==typeof n?t("span",{className:"value-string",children:['"',L(n,v),'"']}):"number"==typeof n?e("span",{className:"value-number",children:n}):"boolean"==typeof n?e("span",{className:"value-boolean",children:n+""}):"function"==typeof n?e("span",{className:"value-function",children:"function"}):Array.isArray(n)?t("div",{className:"value-array",children:["[",n.map(((e,o)=>t("div",{className:"array-item",children:[I(e,a+1,`${r}[${o}]`),o<n.length-1&&","]},o))),"]"]}):"object"==typeof n?t("div",{className:"value-object",style:{marginLeft:16*a},children:["{",Object.entries(n).map((([n,o])=>{const i=r?`${r}.${n}`:n;return t("div",{className:"object-property",children:[t("span",{className:"property-key clickable",onClick:()=>C(i),title:"Click to copy: "+i,children:[L(n,v),":"]})," ",I(o,a+1,i),y===i&&e("span",{className:"copy-feedback",children:"✓ Copied!"})]},n)})),"}"]}):e("span",{children:n+""});return t("div",{className:"atomix-theme-inspector "+(c||""),style:h,children:[t("div",{className:"inspector-tabs",children:[e("button",{className:"tab "+("overview"===m?"active":""),onClick:()=>p("overview"),children:"Overview"}),a&&t("button",{className:"tab "+("validation"===m?"active":""),onClick:()=>p("validation"),children:["Validation",x&&!x.valid&&e("span",{className:"tab-badge error",children:x.errors.length})]}),s&&e("button",{className:"tab "+("css"===m?"active":""),onClick:()=>p("css"),children:"CSS Variables"}),l&&e("button",{className:"tab "+("structure"===m?"active":""),onClick:()=>p("structure"),children:"Structure"})]}),t("div",{className:"inspector-content",children:["overview"===m&&t("div",{className:"inspector-overview",children:[t("div",{className:"theme-metadata",children:[e("h3",{children:"Theme Information"}),e("table",{children:t("tbody",{children:[t("tr",{children:[e("td",{children:e("strong",{children:"Name:"})}),e("td",{children:n.name})]}),n.description&&t("tr",{children:[e("td",{children:e("strong",{children:"Description:"})}),e("td",{children:n.description})]}),n.author&&t("tr",{children:[e("td",{children:e("strong",{children:"Author:"})}),e("td",{children:n.author})]}),n.version&&t("tr",{children:[e("td",{children:e("strong",{children:"Version:"})}),e("td",{children:n.version})]}),n.status&&t("tr",{children:[e("td",{children:e("strong",{children:"Status:"})}),e("td",{children:e("span",{className:"status-badge status-"+n.status,children:n.status})})]}),t("tr",{children:[e("td",{children:e("strong",{children:"Dark Mode:"})}),e("td",{children:n.supportsDarkMode?"Yes":"No"})]}),n.tags&&n.tags.length>0&&t("tr",{children:[e("td",{children:e("strong",{children:"Tags:"})}),e("td",{children:n.tags.map((t=>e("span",{className:"tag",children:t},t)))})]})]})})]}),t("div",{className:"theme-stats",children:[e("h3",{children:"Statistics"}),t("div",{className:"stats-grid",children:[t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.palette).length}),e("div",{className:"stat-label",children:"Palette Colors"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.typography).length}),e("div",{className:"stat-label",children:"Typography Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.shadows).length}),e("div",{className:"stat-label",children:"Shadow Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.custom).length}),e("div",{className:"stat-label",children:"Custom Properties"})]})]})]})]}),"validation"===m&&(x?t("div",{className:"inspector-validation",children:[e("div",{className:"validation-status "+(x.valid?"valid":"invalid"),children:x.valid?"✅ Theme is valid":"❌ Theme has issues"}),x.errors.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Errors"}),e("ul",{className:"validation-list error-list",children:x.errors.map(((t,n)=>e("li",{children:t},n)))})]}),x.warnings.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Warnings"}),e("ul",{className:"validation-list warning-list",children:x.warnings.map(((t,n)=>e("li",{children:t},n)))})]}),x.a11yIssues.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Accessibility Issues"}),e("ul",{className:"validation-list a11y-list",children:x.a11yIssues.map(((n,a)=>t("li",{className:"a11y-"+n.severity,children:[t("strong",{children:[n.type,":"]})," ",n.message,n.property&&e("code",{children:n.property})]},a)))})]})]}):null),"css"===m&&t("div",{className:"inspector-css",children:[t("div",{className:"css-header",children:[e("h3",{children:"Generated CSS Variables"}),e("button",{onClick:()=>navigator.clipboard?.writeText(_),className:"copy-button",children:"Copy to Clipboard"})]}),e("pre",{className:"css-code",children:e("code",{children:_})})]}),"structure"===m&&(()=>{const a=v?T.filter((e=>e.matches)):T;return t("div",{className:"inspector-structure",children:[t("div",{className:"structure-header-controls",children:[e("h3",{children:"Theme Structure"}),t("div",{className:"search-controls",children:[e("input",{type:"text",placeholder:"Search properties...",value:b,onChange:e=>S(e.target.value),className:"search-input"}),b&&e("button",{className:"clear-search",onClick:()=>S(""),title:"Clear search",children:"×"}),v&&t("span",{className:"search-results-count",children:[a.length," result",1!==a.length?"s":""]})]})]}),v&&0===a.length&&t("div",{className:"no-results",children:['No properties found matching "',v,'"']}),e("div",{className:"structure-tree",children:Object.entries(n).map((([n,a])=>{if("__isJSTheme"===n)return null;const r=g.has(n),o="object"==typeof a&&null!==a&&!Array.isArray(a),i=!v||T.some((e=>e.path.startsWith(n)&&e.matches));return v&&!i?null:t("div",{className:"structure-node",children:[t("div",{className:"structure-header",onClick:()=>o&&(e=>{const t=new Set(g);t.has(e)?t.delete(e):t.add(e),f(t)})(n),children:[o&&e("span",{className:"expand-icon "+(r?"expanded":""),children:"▶"}),e("span",{className:"property-name clickable",onClick:e=>{e.stopPropagation(),C(n)},title:"Click to copy: "+n,children:L(n,v)}),y===n&&e("span",{className:"copy-feedback",children:"✓ Copied!"}),e("span",{className:"property-type",children:Array.isArray(a)?"array":typeof a})]}),o&&r&&e("div",{className:"structure-children",children:I(a,0,n)}),!o&&e("div",{className:"structure-value",children:I(a,0,n)})]},n)}))})]})})()]}),e("style",{children:"\n .atomix-theme-inspector {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .inspector-tabs {\n display: flex;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .tab {\n padding: 12px 16px;\n border: none;\n background: none;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n position: relative;\n }\n\n .tab:hover {\n background: #e0e0e0;\n }\n\n .tab.active {\n background: white;\n border-bottom-color: #2196f3;\n }\n\n .tab-badge {\n position: absolute;\n top: 4px;\n right: 4px;\n background: #f44336;\n color: white;\n border-radius: 10px;\n padding: 2px 6px;\n font-size: 10px;\n min-width: 16px;\n text-align: center;\n }\n\n .inspector-content {\n padding: 16px;\n max-height: 600px;\n overflow-y: auto;\n }\n\n .theme-metadata table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .theme-metadata td {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n vertical-align: top;\n }\n\n .status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n .status-stable { background: #e8f5e8; color: #2e7d32; }\n .status-beta { background: #fff3e0; color: #f57c00; }\n .status-experimental { background: #fce4ec; color: #c2185b; }\n .status-deprecated { background: #ffebee; color: #d32f2f; }\n\n .tag {\n display: inline-block;\n background: #e3f2fd;\n color: #1976d2;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n margin-right: 4px;\n }\n\n .stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-top: 16px;\n }\n\n .stat-item {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-value {\n font-size: 24px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .validation-status {\n padding: 12px;\n border-radius: 8px;\n margin-bottom: 16px;\n font-weight: bold;\n }\n\n .validation-status.valid {\n background: #e8f5e8;\n color: #2e7d32;\n }\n\n .validation-status.invalid {\n background: #ffebee;\n color: #d32f2f;\n }\n\n .validation-list {\n margin: 0;\n padding-left: 20px;\n }\n\n .validation-list li {\n margin-bottom: 8px;\n }\n\n .error-list li { color: #d32f2f; }\n .warning-list li { color: #f57c00; }\n .a11y-list li { color: #7b1fa2; }\n\n .css-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .copy-button {\n padding: 8px 16px;\n background: #2196f3;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .copy-button:hover {\n background: #1976d2;\n }\n\n .css-code {\n background: #f5f5f5;\n padding: 16px;\n border-radius: 8px;\n overflow-x: auto;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.4;\n }\n\n .structure-header-controls {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .structure-header-controls h3 {\n margin: 0;\n }\n\n .search-controls {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .search-results-count {\n font-size: 12px;\n color: #666;\n padding: 4px 8px;\n background: #f5f5f5;\n border-radius: 4px;\n }\n\n .no-results {\n padding: 24px;\n text-align: center;\n color: #666;\n font-style: italic;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .structure-node {\n margin-bottom: 8px;\n }\n\n .structure-header {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n }\n\n .structure-header:hover {\n background: #f0f0f0;\n }\n\n .expand-icon {\n transition: transform 0.2s;\n font-size: 12px;\n }\n\n .expand-icon.expanded {\n transform: rotate(90deg);\n }\n\n .property-name {\n font-weight: bold;\n color: #1976d2;\n }\n\n .property-name.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-name.clickable:hover {\n color: #0d47a1;\n }\n\n .copy-feedback {\n font-size: 12px;\n color: #4caf50;\n margin-left: 8px;\n font-weight: normal;\n }\n\n .property-type {\n font-size: 12px;\n color: #666;\n background: #f0f0f0;\n padding: 2px 6px;\n border-radius: 4px;\n }\n\n .structure-children,\n .structure-value {\n margin-left: 24px;\n margin-top: 8px;\n }\n\n .value-string { color: #388e3c; }\n .value-number { color: #1976d2; }\n .value-boolean { color: #7b1fa2; }\n .value-null { color: #666; font-style: italic; }\n .value-function { color: #f57c00; font-style: italic; }\n\n .value-object {\n font-family: monospace;\n font-size: 12px;\n }\n\n .object-property {\n margin-left: 16px;\n }\n\n .property-key {\n color: #1976d2;\n font-weight: bold;\n }\n\n .property-key.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-key.clickable:hover {\n color: #0d47a1;\n }\n "})]})},zd=({themeA:a,themeB:s,showOnlyDifferences:l=!1,className:c,style:u})=>{const[h,m]=r(""),[p,g]=r(""),[f,b]=r("all"),[S,v]=r("all"),E=o();i((()=>(E.current&&clearTimeout(E.current),E.current=setTimeout((()=>{g(h)}),300),()=>{E.current&&clearTimeout(E.current)})),[h]);const y=d((()=>{const e=[],t=e=>e.split(".")[0]||"other",n=(a,r,o="")=>{const i=new Set([...Object.keys(a||{}),...Object.keys(r||{})]);for(const s of i){if("__isJSTheme"===s)continue;const i=o?`${o}.${s}`:s,l=a?.[s],c=r?.[s];void 0===l&&void 0!==c?e.push({path:i,valueA:void 0,valueB:c,type:"added",category:t(i)}):void 0!==l&&void 0===c?e.push({path:i,valueA:l,valueB:void 0,type:"removed",category:t(i)}):"object"!=typeof l||"object"!=typeof c||Array.isArray(l)||Array.isArray(c)?JSON.stringify(l)!==JSON.stringify(c)&&e.push({path:i,valueA:l,valueB:c,type:"changed",category:t(i)}):n(l,c,i)}};return n(a,s),e}),[a,s]),N=d((()=>{let e=y;if("all"!==f&&(e=e.filter((e=>e.type===f))),"all"!==S&&(e=e.filter((e=>e.category===S))),p){const t=p.toLowerCase();e=e.filter((e=>{var n,a,r;return Bo(n=e.path.toLowerCase()).call(n,t)||Bo(a=(e.valueA+"").toLowerCase()).call(a,t)||Bo(r=(e.valueB+"").toLowerCase()).call(r,t)}))}return e}),[y,f,S,p]),A=d((()=>{const e=new Set(y.map((e=>e.category)).filter(Boolean));return Array.from(e).sort()}),[y]),x=e=>void 0===e?"undefined":null===e?"null":"string"==typeof e?`"${e}"`:"object"==typeof e?JSON.stringify(e,null,2):e+"",_=e=>{switch(e){case"added":return"#4caf50";case"removed":return"#f44336";case"changed":return"#ff9800";default:return"#666"}},T=e=>{switch(e){case"added":return"rgba(76, 175, 80, 0.1)";case"removed":return"rgba(244, 67, 54, 0.1)";case"changed":return"rgba(255, 152, 0, 0.1)";default:return"transparent"}},C=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,L=d((()=>({total:y.length,added:y.filter((e=>"added"===e.type)).length,removed:y.filter((e=>"removed"===e.type)).length,changed:y.filter((e=>"changed"===e.type)).length,filtered:N.length})),[y,N]);return t("div",{className:"atomix-theme-comparator "+(c||""),style:u,children:[t("div",{className:"comparator-header",children:[t("div",{className:"theme-column",children:[e("h3",{children:a.name}),a.version&&t("span",{className:"version",children:["v",a.version]})]}),e("div",{className:"vs-divider",children:"VS"}),t("div",{className:"theme-column",children:[e("h3",{children:s.name}),s.version&&t("span",{className:"version",children:["v",s.version]})]})]}),t("div",{className:"filter-controls",children:[t("div",{className:"filter-group",children:[e("label",{children:"Search:"}),e("input",{type:"text",placeholder:"Search differences...",value:h,onChange:e=>m(e.target.value),className:"search-input"}),h&&e("button",{className:"clear-search",onClick:()=>m(""),title:"Clear search",children:"×"})]}),t("div",{className:"filter-group",children:[e("label",{children:"Type:"}),t("select",{value:f,onChange:e=>b(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Types"}),e("option",{value:"added",children:"Added"}),e("option",{value:"removed",children:"Removed"}),e("option",{value:"changed",children:"Changed"})]})]}),A.length>0&&t("div",{className:"filter-group",children:[e("label",{children:"Category:"}),t("select",{value:S,onChange:e=>v(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Categories"}),A.map((t=>e("option",{value:t,children:t},t)))]})]}),(h||"all"!==f||"all"!==S)&&e("button",{className:"clear-filters",onClick:()=>{m(""),b("all"),v("all")},children:"Clear Filters"})]}),t("div",{className:"comparator-stats",children:[t("div",{className:"stat",children:[e("span",{className:"stat-value",children:L.total}),e("span",{className:"stat-label",children:"Total Differences"})]}),t("div",{className:"stat stat-added",children:[e("span",{className:"stat-value",style:{color:"#4caf50"},children:L.added}),e("span",{className:"stat-label",children:"Added"})]}),t("div",{className:"stat stat-removed",children:[e("span",{className:"stat-value",style:{color:"#f44336"},children:L.removed}),e("span",{className:"stat-label",children:"Removed"})]}),t("div",{className:"stat stat-changed",children:[e("span",{className:"stat-value",style:{color:"#ff9800"},children:L.changed}),e("span",{className:"stat-label",children:"Changed"})]}),L.filtered!==L.total&&t("div",{className:"stat stat-filtered",children:[e("span",{className:"stat-value",style:{color:"#2196f3"},children:L.filtered}),e("span",{className:"stat-label",children:"Filtered"})]})]}),0===N.length?e("div",{className:"no-differences",children:0===y.length?e(n,{children:"✅ Themes are identical"}):e(n,{children:"No differences match your filters. Try adjusting your search or filters."})}):t("div",{className:"differences-list",children:[t("h4",{children:["Differences (",N.length,")"]}),N.map(((n,r)=>t("div",{className:"difference-item difference-"+n.type,style:{backgroundColor:T(n.type)},children:[t("div",{className:"difference-header",children:[e("span",{className:"difference-type",style:{backgroundColor:_(n.type)},children:n.type}),e("code",{className:"difference-path",children:C(n.path,p)}),n.category&&e("span",{className:"difference-category",children:n.category})]}),t("div",{className:"difference-values",children:[t("div",{className:"value-column value-"+("added"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:a.name}),e("pre",{className:"value-content",children:"added"===n.type?e("span",{className:"value-empty",children:"—"}):C(x(n.valueA),p)})]}),e("div",{className:"value-divider",children:"→"}),t("div",{className:"value-column value-"+("removed"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:s.name}),e("pre",{className:"value-content",children:"removed"===n.type?e("span",{className:"value-empty",children:"—"}):C(x(n.valueB),p)})]})]})]},r)))]}),e("style",{children:"\n .atomix-theme-comparator {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n padding: 24px;\n }\n\n .comparator-header {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 24px;\n align-items: center;\n margin-bottom: 24px;\n padding-bottom: 24px;\n border-bottom: 2px solid #e0e0e0;\n }\n\n .theme-column {\n text-align: center;\n }\n\n .theme-column h3 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .version {\n display: inline-block;\n margin-top: 4px;\n padding: 2px 8px;\n background: #e3f2fd;\n color: #1976d2;\n border-radius: 4px;\n font-size: 12px;\n }\n\n .vs-divider {\n font-weight: bold;\n font-size: 24px;\n color: #666;\n }\n\n .filter-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n margin-bottom: 24px;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n flex-wrap: wrap;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .filter-group label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .clear-filters {\n padding: 8px 16px;\n background: #666;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n }\n\n .clear-filters:hover {\n background: #555;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .comparator-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n }\n\n .stat {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-added {\n border-left: 4px solid #4caf50;\n }\n\n .stat-removed {\n border-left: 4px solid #f44336;\n }\n\n .stat-changed {\n border-left: 4px solid #ff9800;\n }\n\n .stat-filtered {\n border-left: 4px solid #2196f3;\n }\n\n .stat-value {\n display: block;\n font-size: 32px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n display: block;\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .no-differences {\n text-align: center;\n padding: 48px;\n font-size: 18px;\n color: #4caf50;\n background: #e8f5e9;\n border-radius: 8px;\n }\n\n .differences-list h4 {\n margin: 0 0 16px 0;\n font-size: 18px;\n color: #333;\n }\n\n .difference-item {\n margin-bottom: 16px;\n border: 2px solid;\n border-radius: 8px;\n overflow: hidden;\n transition: all 0.2s ease;\n }\n\n .difference-added {\n border-color: #4caf50;\n }\n\n .difference-removed {\n border-color: #f44336;\n }\n\n .difference-changed {\n border-color: #ff9800;\n }\n\n .difference-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background: rgba(0, 0, 0, 0.05);\n }\n\n .difference-type {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: bold;\n color: white;\n text-transform: uppercase;\n }\n\n .difference-path {\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n color: #1976d2;\n flex: 1;\n }\n\n .difference-category {\n font-size: 11px;\n padding: 2px 6px;\n background: rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n color: #666;\n text-transform: uppercase;\n }\n\n .difference-values {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 16px;\n padding: 16px;\n align-items: start;\n }\n\n .value-column {\n min-width: 0;\n }\n\n .value-column.value-empty {\n opacity: 0.5;\n }\n\n .value-label {\n font-size: 12px;\n font-weight: bold;\n color: #666;\n margin-bottom: 8px;\n }\n\n .value-content {\n margin: 0;\n padding: 12px;\n background: rgba(255, 255, 255, 0.7);\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n overflow-x: auto;\n white-space: pre-wrap;\n word-break: break-all;\n }\n\n .value-empty {\n color: #999;\n font-style: italic;\n }\n\n .value-divider {\n font-size: 20px;\n color: #666;\n align-self: center;\n }\n "})]})};function Ud(e={}){const{maxHistorySize:t=50,initialState:n}=e,[a,s]=r(n),l=o([n]),c=o(0),[d,h]=r(!1),[m,p]=r(!1),g=u((()=>{h(c.current>0),p(c.current<l.current.length-1)}),[]),f=u((e=>{c.current<l.current.length-1&&(l.current=l.current.slice(0,c.current+1)),l.current.push(e),c.current=l.current.length-1,l.current.length>t&&(l.current.shift(),c.current--),s(e),g()}),[t,g]),b=u((()=>{if(c.current>0){c.current--;const e=l.current[c.current];s(e),g()}}),[g]),S=u((()=>{if(c.current<l.current.length-1){c.current++;const e=l.current[c.current];s(e),g()}}),[g]),v=u((()=>{const e=l.current[c.current];l.current=[e],c.current=0,g()}),[g]),E=u((()=>({currentIndex:c.current,totalEntries:l.current.length})),[]);return i((()=>{g()}),[g]),{state:a,setState:f,undo:b,redo:S,canUndo:d,canRedo:m,clearHistory:v,getHistoryStats:E}}function Fd(e,t){if(e=e.trim(),"hex"===t&&e.startsWith("#"))return e;if("rgb"===t&&e.startsWith("rgb("))return e;if("rgba"===t&&e.startsWith("rgba("))return e;if("hsl"===t&&e.startsWith("hsl("))return e;if("hsla"===t&&e.startsWith("hsla("))return e;const n=document.createElement("div");n.style.color=e,document.body.appendChild(n);const a=window.getComputedStyle(n).color;document.body.removeChild(n);const r=a.match(/\d+/g);if(!r||3>r.length)return e;const o=parseInt(r[0],10),i=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[o,i,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${o}, ${i}, ${s})`;case"rgba":return`rgba(${o}, ${i}, ${s}, ${l})`;case"hsl":case"hsla":const n=function(e,t,n){const a=Math.max(e/=255,t/=255,n/=255),r=Math.min(e,t,n);let o=0,i=0;const s=(a+r)/2;if(a!==r){const l=a-r;switch(i=s>.5?l/(2-a-r):l/(a+r),a){case e:o=((t-n)/l+(n>t?6:0))/6;break;case t:o=((n-e)/l+2)/6;break;case n:o=((e-t)/l+4)/6}}return{h:Math.round(360*o),s:Math.round(100*i),l:Math.round(100*s)}}(o,i,s);return"hsl"===t?`hsl(${n.h}, ${n.s}%, ${n.l}%)`:`hsla(${n.h}, ${n.s}%, ${n.l}%, ${l})`;default:return e}}const Gd=({initialTheme:n,onChange:a,className:s,style:l})=>{const{state:c,setState:d,undo:h,redo:m,canUndo:p,canRedo:g}=Ud({initialState:n,maxHistorySize:50}),[f,b]=r(JSON.stringify(n,null,2)),[S,v]=r(null),[E,y]=r("visual"),[N,A]=r("hex"),[x,_]=r(50),[T,C]=r(!1),L=o(null),I=o(null);i((()=>{const e=localStorage.getItem("atomix-editor-layout");if(e){const t=parseFloat(e);!isNaN(t)&&t>0&&100>t&&_(t)}}),[]),i((()=>{localStorage.setItem("atomix-editor-layout",x.toString())}),[x]);const w=u(((e,t=!0)=>{t?d(e):b(JSON.stringify(e,null,2)),a?.(e),v(null)}),[a,d]);i((()=>{b(JSON.stringify(c,null,2))}),[c]);const O=u((e=>{b(e);try{const t=Uc(JSON.parse(e));w(t,!1)}catch(t){v(t instanceof Error?t.message:"Invalid JSON")}}),[w]),R=o();i((()=>{if(!S){try{const e=Uc(JSON.parse(f));R.current&&clearTimeout(R.current),R.current=setTimeout((()=>{d(e)}),1e3)}catch{}return()=>{R.current&&clearTimeout(R.current)}}}),[f,S,d]);const M=u(((e,t)=>{const n={...c},a=e.split(".");let r=n;for(let i=0;i<a.length-1;i++){const e=a[i];e&&!r[e]&&(r[e]={}),e&&(r=r[e])}const o=a[a.length-1];o&&(r[o]=t),w(Uc(n))}),[c,w]),k=u((()=>{const e=JSON.stringify(c,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),n=c.name.toLowerCase().replace(/\s+/g,"-")+"-theme.json",a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download",n),a.click()}),[c]),D=u((()=>{navigator.clipboard?.writeText(f)}),[f]);i((()=>{const e=e=>{const t=0>navigator.platform.toUpperCase().indexOf("MAC")?e.ctrlKey:e.metaKey;t&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),p&&h()):t&&("y"===e.key||"z"===e.key&&e.shiftKey)?(e.preventDefault(),g&&m()):t&&"s"===e.key?(e.preventDefault(),k()):t&&"/"===e.key?(e.preventDefault(),y((e=>"visual"===e?"json":"visual"))):"Escape"===e.key&&v(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[p,g,h,m,k]);const B=u((e=>{e.preventDefault(),C(!0)}),[]);i((()=>{if(!T)return;const e=e=>{if(!L.current||!I.current)return;const t=L.current.parentElement;if(!t)return;const n=t.getBoundingClientRect(),a=(e.clientX-n.left)/n.width*100;_(Math.max(20,Math.min(80,a)))},t=()=>{C(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[T]);const P=u((e=>Fd(e,N)),[N]);return t("div",{className:"atomix-theme-live-editor "+(s||""),style:l,children:[t("div",{className:"editor-header",children:[e("h2",{children:"Live Theme Editor"}),t("div",{className:"editor-controls",children:[t("div",{className:"history-controls",children:[e("button",{className:"history-button",onClick:h,disabled:!p,title:"Undo (Ctrl+Z)",children:"↶ Undo"}),e("button",{className:"history-button",onClick:m,disabled:!g,title:"Redo (Ctrl+Shift+Z)",children:"↷ Redo"})]}),t("div",{className:"mode-controls",children:[e("button",{className:"mode-button "+("visual"===E?"active":""),onClick:()=>y("visual"),title:"Visual Editor (Ctrl+/)",children:"Visual"}),e("button",{className:"mode-button "+("json"===E?"active":""),onClick:()=>y("json"),title:"JSON Editor (Ctrl+/)",children:"JSON"})]}),t("div",{className:"action-controls",children:[e("button",{className:"export-button",onClick:k,title:"Export (Ctrl+S)",children:"Export"}),e("button",{className:"copy-button",onClick:D,title:"Copy JSON",children:"Copy JSON"})]})]})]}),t("div",{className:"editor-content",ref:L,children:[e("div",{className:"editor-panel",style:{width:x+"%"},children:t("div","visual"===E?{className:"visual-editor",children:[t("div",{className:"editor-section",children:[e("h3",{children:"Colors"}),t("div",{className:"color-format-selector",children:[e("label",{children:"Color Format:"}),t("select",{value:N,onChange:e=>A(e.target.value),children:[e("option",{value:"hex",children:"HEX"}),e("option",{value:"rgb",children:"RGB"}),e("option",{value:"rgba",children:"RGBA"}),e("option",{value:"hsl",children:"HSL"}),e("option",{value:"hsla",children:"HSLA"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Primary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:c.palette.primary.main,onChange:e=>M("palette.primary.main",e.target.value)}),e("input",{type:"text",value:P(c.palette.primary.main),onChange:e=>{const t=Fd(e.target.value,"hex");M("palette.primary.main",t)},placeholder:"#7AFFD7"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Secondary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:c.palette.secondary.main,onChange:e=>M("palette.secondary.main",e.target.value)}),e("input",{type:"text",value:P(c.palette.secondary.main),onChange:e=>{const t=Fd(e.target.value,"hex");M("palette.secondary.main",t)},placeholder:"#FF5733"})]})]}),e("h3",{children:"Background"}),t("div",{className:"editor-field",children:[e("label",{children:"Default Background"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:c.palette.background.default,onChange:e=>M("palette.background.default",e.target.value)}),e("input",{type:"text",value:P(c.palette.background.default),onChange:e=>{const t=Fd(e.target.value,"hex");M("palette.background.default",t)}})]})]})]}),t("div",{className:"editor-section",children:[e("h3",{children:"Typography"}),t("div",{className:"editor-field",children:[e("label",{children:"Font Family"}),e("input",{type:"text",value:c.typography.fontFamily,onChange:e=>M("typography.fontFamily",e.target.value),placeholder:"Inter, sans-serif"})]}),t("div",{className:"editor-field",children:[e("label",{children:"Base Font Size (px)"}),e("input",{type:"number",value:c.typography.fontSize,onChange:e=>M("typography.fontSize",parseInt(e.target.value)),min:"10",max:"24"})]})]})]}:{className:"json-editor",children:[e("textarea",{value:f,onChange:e=>O(e.target.value),spellCheck:!1}),S&&t("div",{className:"error-message",children:["❌ ",S,e("button",{className:"error-dismiss",onClick:()=>v(null),children:"×"})]})]})}),e("div",{className:"resizer "+(T?"resizing":""),onMouseDown:B}),t("div",{className:"preview-panel",ref:I,style:{width:100-x+"%"},children:[e("h3",{children:"Live Preview"}),e(Dd,{theme:c,showDetails:!1,showPalette:!0,showTypography:!0})]})]}),e("style",{children:"\n .atomix-theme-live-editor {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .editor-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .editor-header h2 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .editor-controls {\n display: flex;\n gap: 12px;\n align-items: center;\n }\n\n .history-controls,\n .mode-controls,\n .action-controls {\n display: flex;\n gap: 8px;\n }\n\n .history-button,\n .mode-button,\n .export-button,\n .copy-button {\n padding: 8px 16px;\n border: 1px solid #e0e0e0;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n transition: all 0.2s;\n }\n\n .history-button:hover:not(:disabled),\n .mode-button:hover,\n .export-button:hover,\n .copy-button:hover {\n background: #f5f5f5;\n }\n\n .history-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .mode-button.active {\n background: #2196f3;\n color: white;\n border-color: #2196f3;\n }\n\n .export-button {\n background: #4caf50;\n color: white;\n border-color: #4caf50;\n }\n\n .copy-button {\n background: #ff9800;\n color: white;\n border-color: #ff9800;\n }\n\n .editor-content {\n display: flex;\n position: relative;\n min-height: 600px;\n }\n\n .editor-panel,\n .preview-panel {\n overflow-y: auto;\n padding: 24px;\n }\n\n .resizer {\n width: 4px;\n background: #e0e0e0;\n cursor: col-resize;\n position: relative;\n flex-shrink: 0;\n transition: background 0.2s;\n }\n\n .resizer:hover,\n .resizer.resizing {\n background: #2196f3;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n left: -2px;\n right: -2px;\n top: 0;\n bottom: 0;\n }\n\n .editor-panel h3,\n .preview-panel h3 {\n margin: 0 0 16px 0;\n font-size: 16px;\n color: #333;\n border-bottom: 2px solid #2196f3;\n padding-bottom: 8px;\n }\n\n .visual-editor {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n\n .editor-section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .color-format-selector {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .color-format-selector label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-format-selector select {\n padding: 6px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .editor-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .editor-field label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .editor-field input[type=\"text\"],\n .editor-field input[type=\"number\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .json-editor {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .json-editor textarea {\n flex: 1;\n padding: 16px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.5;\n resize: none;\n }\n\n .error-message {\n padding: 12px;\n background: #ffebee;\n color: #d32f2f;\n border-radius: 4px;\n margin-top: 8px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .error-dismiss {\n background: none;\n border: none;\n color: #d32f2f;\n font-size: 20px;\n cursor: pointer;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .error-dismiss:hover {\n background: rgba(211, 47, 47, 0.1);\n border-radius: 50%;\n }\n\n .preview-panel {\n border-left: 1px solid #e0e0e0;\n }\n "})]})};function Vd(e){return e?_c(e):null}function Hd(e){if(!e||"object"!=typeof e)return!1;const t=e;if("palette"in t||"typography"in t||"__isJSTheme"in t)return!1;const n=Object.keys(t);return 0!==n.length&&n.some((e=>/^[a-z]+(-[a-z0-9]+)*$/.test(e)&&"string"==typeof t[e]))}function jd(e){return!(!e||"object"!=typeof e)&&("__isJSTheme"in e||"palette"in e&&"typography"in e)}const Yd=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),Wd={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class Kd{constructor(e={}){this.listeners=new Set,this.config={...Wd,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&Yd.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){if("undefined"==typeof navigator)return"en";const e=((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-");return e[0]?e[0].toLowerCase():"en"}isRTLLocale(e){return Yd.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,n=document.body;t.setAttribute("dir",e),n?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),n?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(n){Cd().error("Error in RTL direction change listener",n instanceof Error?n:Error(n+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}function $d(e,t="atomix-theme"){qc(e,t)}function Qd(e="atomix-theme"){Zc(e)}async function qd(e,t){await async function(e,t){if("undefined"!=typeof window)throw Error("saveCSSFile can only be used in Node.js environment. Use injectCSS() for browser environments.");const n=await import("fs/promises"),a=(await import("path")).dirname(t);await n.mkdir(a,{recursive:!0}),await n.writeFile(t,e,"utf8")}(e,t)}const Zd={"--atomix-button-bg":"background-color","--atomix-button-color":"text color","--atomix-button-padding-x":"horizontal padding","--atomix-button-padding-y":"vertical padding","--atomix-button-border-radius":"border radius","--atomix-button-border-width":"border width","--atomix-button-border-color":"border color","--atomix-button-font-size":"font size","--atomix-button-font-weight":"font weight","--atomix-button-font-family":"font family","--atomix-button-line-height":"line height","--atomix-button-min-width":"minimum width","--atomix-button-min-height":"minimum height","--atomix-button-transition":"transition","--atomix-button-hover-bg":"hover background","--atomix-button-hover-color":"hover text color","--atomix-button-hover-border-color":"hover border color","--atomix-button-active-bg":"active background","--atomix-button-active-color":"active text color","--atomix-button-focus-ring-color":"focus ring color","--atomix-button-focus-ring-width":"focus ring width","--atomix-button-disabled-opacity":"disabled opacity","--atomix-button-disabled-bg":"disabled background","--atomix-button-icon-size":"icon size","--atomix-button-icon-gap":"icon spacing","--atomix-button-spinner-size":"spinner size","--atomix-button-label-font-weight":"label font weight"},Xd={"--atomix-card-bg":"background color","--atomix-card-color":"text color","--atomix-card-padding":"padding","--atomix-card-border-radius":"border radius","--atomix-card-border-width":"border width","--atomix-card-border-color":"border color","--atomix-card-box-shadow":"box shadow","--atomix-card-width":"width","--atomix-card-max-width":"maximum width","--atomix-card-hover-bg":"hover background","--atomix-card-hover-shadow":"hover shadow","--atomix-card-hover-transform":"hover transform","--atomix-card-header-padding":"header padding","--atomix-card-header-bg":"header background","--atomix-card-header-border-bottom":"header border bottom","--atomix-card-body-padding":"body padding","--atomix-card-body-font-size":"body font size","--atomix-card-footer-padding":"footer padding","--atomix-card-footer-bg":"footer background","--atomix-card-footer-border-top":"footer border top","--atomix-card-title-font-size":"title font size","--atomix-card-title-font-weight":"title font weight","--atomix-card-title-color":"title color","--atomix-card-title-margin-bottom":"title margin bottom","--atomix-card-image-border-radius":"image border radius","--atomix-card-image-max-height":"image max height"},Jd={"--atomix-input-bg":"background color","--atomix-input-color":"text color","--atomix-input-padding-x":"horizontal padding","--atomix-input-padding-y":"vertical padding","--atomix-input-border-radius":"border radius","--atomix-input-border-width":"border width","--atomix-input-border-color":"border color","--atomix-input-font-size":"font size","--atomix-input-font-family":"font family","--atomix-input-line-height":"line height","--atomix-input-height":"height","--atomix-input-placeholder-color":"placeholder color","--atomix-input-hover-border-color":"hover border color","--atomix-input-focus-border-color":"focus border color","--atomix-input-focus-ring-color":"focus ring color","--atomix-input-focus-ring-width":"focus ring width","--atomix-input-disabled-bg":"disabled background","--atomix-input-disabled-opacity":"disabled opacity","--atomix-input-invalid-border-color":"invalid border color","--atomix-input-valid-border-color":"valid border color"},eu={"--atomix-modal-bg":"background color","--atomix-modal-color":"text color","--atomix-modal-padding":"padding","--atomix-modal-border-radius":"border radius","--atomix-modal-box-shadow":"box shadow","--atomix-modal-width":"width","--atomix-modal-max-width":"maximum width","--atomix-modal-max-height":"maximum height","--atomix-modal-backdrop-bg":"backdrop background","--atomix-modal-backdrop-opacity":"backdrop opacity","--atomix-modal-backdrop-blur":"backdrop blur","--atomix-modal-header-padding":"header padding","--atomix-modal-header-border-bottom":"header border bottom","--atomix-modal-title-font-size":"title font size","--atomix-modal-title-font-weight":"title font weight","--atomix-modal-body-padding":"body padding","--atomix-modal-body-font-size":"body font size","--atomix-modal-footer-padding":"footer padding","--atomix-modal-footer-border-top":"footer border top","--atomix-modal-footer-gap":"footer button gap","--atomix-modal-close-size":"close button size","--atomix-modal-close-color":"close button color","--atomix-modal-close-hover-color":"close button hover color"},tu={"--atomix-dropdown-bg":"background color","--atomix-dropdown-color":"text color","--atomix-dropdown-border-radius":"border radius","--atomix-dropdown-border-width":"border width","--atomix-dropdown-border-color":"border color","--atomix-dropdown-box-shadow":"box shadow","--atomix-dropdown-min-width":"minimum width","--atomix-dropdown-max-height":"maximum height","--atomix-dropdown-padding":"padding","--atomix-dropdown-item-padding":"item padding","--atomix-dropdown-item-font-size":"item font size","--atomix-dropdown-item-hover-bg":"item hover background","--atomix-dropdown-item-hover-color":"item hover color","--atomix-dropdown-item-active-bg":"item active background","--atomix-dropdown-item-active-color":"item active color","--atomix-dropdown-item-disabled-opacity":"item disabled opacity","--atomix-dropdown-divider-color":"divider color","--atomix-dropdown-divider-margin":"divider margin","--atomix-dropdown-header-padding":"header padding","--atomix-dropdown-header-font-size":"header font size","--atomix-dropdown-header-font-weight":"header font weight","--atomix-dropdown-header-color":"header color"},nu={"--atomix-badge-bg":"background color","--atomix-badge-color":"text color","--atomix-badge-padding-x":"horizontal padding","--atomix-badge-padding-y":"vertical padding","--atomix-badge-border-radius":"border radius","--atomix-badge-font-size":"font size","--atomix-badge-font-weight":"font weight","--atomix-badge-line-height":"line height","--atomix-badge-icon-size":"icon size","--atomix-badge-icon-gap":"icon spacing"},au={"--atomix-tabs-bg":"background color","--atomix-tabs-border-color":"border color","--atomix-tabs-border-width":"border width","--atomix-tabs-nav-gap":"nav gap","--atomix-tabs-nav-padding":"nav padding","--atomix-tabs-btn-padding-x":"button horizontal padding","--atomix-tabs-btn-padding-y":"button vertical padding","--atomix-tabs-btn-color":"button color","--atomix-tabs-btn-font-size":"button font size","--atomix-tabs-btn-font-weight":"button font weight","--atomix-tabs-btn-hover-color":"button hover color","--atomix-tabs-btn-active-color":"button active color","--atomix-tabs-btn-active-border-color":"button active border color","--atomix-tabs-btn-active-border-width":"button active border width","--atomix-tabs-panel-padding":"panel padding","--atomix-tabs-panel-bg":"panel background"},ru={"--atomix-progress-bg":"background color","--atomix-progress-height":"height","--atomix-progress-border-radius":"border radius","--atomix-progress-bar-bg":"bar background","--atomix-progress-bar-transition":"bar transition"},ou={"--atomix-tooltip-bg":"background color","--atomix-tooltip-color":"text color","--atomix-tooltip-padding-x":"horizontal padding","--atomix-tooltip-padding-y":"vertical padding","--atomix-tooltip-border-radius":"border radius","--atomix-tooltip-font-size":"font size","--atomix-tooltip-max-width":"maximum width","--atomix-tooltip-box-shadow":"box shadow","--atomix-tooltip-z-index":"z-index","--atomix-tooltip-arrow-size":"arrow size","--atomix-tooltip-arrow-color":"arrow color"},iu={"--atomix-checkbox-size":"checkbox size","--atomix-checkbox-bg":"background color","--atomix-checkbox-border-color":"border color","--atomix-checkbox-border-width":"border width","--atomix-checkbox-border-radius":"border radius","--atomix-checkbox-transition":"transition","--atomix-checkbox-checked-bg":"checked background","--atomix-checkbox-checked-border-color":"checked border color","--atomix-checkbox-hover-border-color":"hover border color","--atomix-checkbox-focus-ring-color":"focus ring color","--atomix-checkbox-focus-ring-width":"focus ring width","--atomix-checkbox-disabled-opacity":"disabled opacity","--atomix-checkbox-invalid-border-color":"invalid border color","--atomix-checkbox-icon-size":"icon size","--atomix-checkbox-icon-color":"icon color","--atomix-checkbox-label-gap":"label spacing","--atomix-checkbox-label-font-size":"label font size","--atomix-checkbox-label-color":"label color"},su={"--atomix-radio-size":"radio size","--atomix-radio-bg":"background color","--atomix-radio-border-color":"border color","--atomix-radio-border-width":"border width","--atomix-radio-transition":"transition","--atomix-radio-checked-bg":"checked background","--atomix-radio-checked-border-color":"checked border color","--atomix-radio-hover-border-color":"hover border color","--atomix-radio-focus-ring-color":"focus ring color","--atomix-radio-focus-ring-width":"focus ring width","--atomix-radio-disabled-opacity":"disabled opacity","--atomix-radio-invalid-border-color":"invalid border color","--atomix-radio-dot-size":"dot size","--atomix-radio-dot-color":"dot color","--atomix-radio-label-gap":"label spacing","--atomix-radio-label-font-size":"label font size","--atomix-radio-label-color":"label color"},lu={Button:Zd,Card:Xd,Input:Jd,Modal:eu,Dropdown:tu,Badge:nu,Tabs:au,Progress:ru,Tooltip:ou,Checkbox:iu,Radio:su};function cu(e){return lu[e]}function du(e,t){if(e||t)return e?t?{className:[e.className,t.className].filter(Boolean).join(" "),style:{...e.style,...t.style}}:e:t}function uu(t,n,r){if(!t)return r;if(a.isValidElement(t)||"string"==typeof t||"number"==typeof t)return t;if("object"==typeof t&&null!==t){const a=t;if(a.render&&"function"==typeof a.render)return a.render(n);if(a.component){const t=a.component;return e(t,{...n})}if(void 0!==a.children)return a.children}return r}function hu(e){return"object"==typeof e&&null!==e&&("render"in e||"component"in e||"children"in e)}function mu(...e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:ci(t).call(t,((e,t)=>({...e,...t})))}function pu(t="div"){return function({slot:a,children:r,...o}){const i=o;return a?e(n,{children:uu(a,i,r)}):e(t,"string"==typeof t?{...o,children:r}:{...i,children:r})}}function gu(e){return e}function fu(e,t,n){return a.useMemo((()=>uu(e,t,n)),[e,t,n])}function bu(e,t){const{theme:n}=Ed(),a=d((()=>Cs(n?.components?.[e]?.cssVars||{},t.cssVars||{})),[n,e,t.cssVars]),r=d((()=>{const a=n?.components?.[e]?.parts||{},r=t.parts||{},o={};return new Set([...Object.keys(a),...Object.keys(r)]).forEach((e=>{o[e]=du(a[e],r[e])})),o}),[n,e,t.parts]),o=d((()=>[n?.components?.[e]?.className||"",t.className||""].filter(Boolean).join(" ")),[n,e,t.className]),i=d((()=>({...t.style})),[t.style]),s=d((()=>{var e;return ci(e=Object.entries(a)).call(e,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}),[a]);return{cssVars:a,parts:r,className:o,style:i,cssVarStyle:s}}function Su(e){const{theme:t}=Ed();return d((()=>t?.components?.[e]?.defaultProps||{}),[t,e])}function vu(e,t){return d((()=>({...e,...t})),[e,t])}function Eu(e,t){var n;return{...ci(n=Object.entries(e)).call(n,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{}),...t}}function yu(e={}){const{configPath:t="atomix.config.ts",required:n=!1}=e,a={prefix:"atomix",theme:{extend:{}}};if("undefined"!=typeof window){if(n)throw Error("loadAtomixConfig: Not available in browser environment. Config loading requires Node.js/SSR environment.");return a}try{const e=require(t),n=e.default||e;if(n&&"object"==typeof n)return n;throw Error("Invalid config format")}catch(r){if(n)throw Error(`Failed to load config from ${t}: ${r.message}`);return a}}function Nu(){if("undefined"!=typeof window||"undefined"==typeof process||!process.cwd)return null;try{const e=(()=>{if("undefined"==typeof require)return null;try{const e=["fs","path"];return{fs:require(e[0]),path:require(e[1])}}catch{return null}})();if(!e)return null;const{fs:t,path:n}=e,a=process.cwd(),r=[n.join(a,"atomix.config.ts"),n.join(a,"atomix.config.js"),n.join(a,"atomix.config.mjs")];for(const o of r)if(t.existsSync(o))return o}catch(e){return null}return null}function Au(e){return e}const xu=al,_u=Ys,Tu=cc,Cu=dc,Lu=Object.freeze({__proto__:null,RTLManager:Kd,ThemeApplicator:wd,ThemeComparator:zd,ThemeContext:Sd,ThemeErrorBoundary:Id,ThemeInspector:Pd,ThemeLiveEditor:Gd,ThemePreview:Dd,ThemeProvider:vd,ThemeValidator:Bd,applyCSSVariables:As,applyComponentTheme:md,applyTheme:Md,camelToKebab:cd,clearThemes:Kc,createDesignTokensFromTheme:_c,createTheme:Cc,createThemeObject:Uc,createThemeRegistry:Fc,createTokens:hc,cssVarsToStyle:Ts,deepMerge:Ic,defaultTokens:uc,designTokensToCSSVars:xc,designTokensToTheme:Tc,extendTheme:Oc,extractComponentName:Is,generateCSSVariableName:sd,generateCSSVariables:mc,generateCSSVariablesForSelector:pc,generateClassName:id,generateComponentCSSVars:hd,getAllThemes:Yc,getCSSVariable:_s,getComponentThemeValue:ud,getDesignTokensFromTheme:Vd,getTheme:jc,getThemeApplicator:Rd,getThemeCount:$c,getThemeIds:Wc,hasTheme:Hc,injectCSS:qc,injectTheme:$d,isCSSInjected:Xc,isDesignTokens:Hd,isThemeObject:jd,isValidCSSVariableName:Ls,loadThemeFromConfig:fd,loadThemeFromConfigSync:gd,mapSCSSTokensToCSSVars:Ns,mergeCSSVars:Cs,mergeTheme:wc,normalizeThemeTokens:ld,registerTheme:Gc,removeCSS:Zc,removeCSSVariables:xs,removeTheme:Qd,saveTheme:qd,themePropertyToCSSVar:dd,themeToDesignTokens:Ac,unregisterTheme:Vc,useComponentTheme:pd,useHistory:Ud,useTheme:Ed,useThemeTokens:yd});function Iu(e,t,n){return Uc({name:e,palette:{primary:{main:t},secondary:n?{main:n}:void 0}})}function wu(e){return Oc(e,{name:e.name+" Dark",palette:{mode:"dark",background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)"}}})}function Ou(e){const t=[];return e.name||t.push("Theme must have a name"),e.palette||t.push("Theme must have a palette"),e.palette&&!e.palette.primary&&t.push("Theme palette must have a primary color"),{valid:0===t.length,errors:t}}function Ru(e,t=":root"){return od(e,{selector:t,prefix:"atomix"})}function Mu(e){return{name:e.name||"Custom Theme",description:e.description,author:e.author,version:e.version||"1.0.0",tags:e.tags||[],supportsDarkMode:"dark"===e.palette?.mode,status:"stable",color:e.palette?.primary?.main||"#7AFFD7"}}function ku(e){var t;return"dark"===e.palette?.mode||!0===e.supportsDarkMode||!!(null==(t=e.a11y?.modes)?void 0:Function.call.bind(Bo(t),t))?.("dark")}function Du(e){return JSON.stringify(e,null,2)}function Bu(e){try{return JSON.parse(e)}catch(t){throw Error("Invalid theme JSON")}}const Pu={...lc,...pl,composables:xu,utils:_u,constants:Cu,types:Tu};export{U as ACCORDION,ke as ATOMIX_GLASS,Se as AVATAR,ve as AVATAR_GROUP,nt as Accordion,bi as AnimatedChart,vi as AreaChart,tt as AtomixGlass,at as AtomixLogo,yt as Avatar,Nt as AvatarGroup,F as BADGE,nu as BADGE_CSS_VARS,Oe as BLOCK,H as BREADCRUMB,B as BUTTON,Zd as BUTTON_CSS_VARS,P as BUTTON_GROUP,xt as Badge,yi as BarChart,Ct as Block,Lt as Breadcrumb,Ni as BubbleChart,Mt as Button,kt as ButtonGroup,z as CALLOUT,ge as CARD,Xd as CARD_CSS_VARS,Ie as CHART,iu as CHECKBOX_CSS_VARS,k as CLASS_PREFIX,we as CODE_SNIPPET,lu as COMPONENT_CSS_VARS,j as COUNTDOWN,Po as Callout,Ai as CandlestickChart,zo as Card,mi as Chart,gi as ChartRenderer,ss as Checkbox,Ui as ColorModeToggle,_t as Container,Fi as Countdown,se as DATA_TABLE_CLASSES,le as DATA_TABLE_SELECTORS,xe as DATEPICKER,js as DEFAULT_ATOMIX_FONTS,Vi as DOTS,Ne as DROPDOWN,tu as DROPDOWN_CSS_VARS,Ki as DataTable,Xi as DatePicker,xi as DonutChart,as as Dropdown,ie as EDGE_PANEL,os as EdgePanel,Ho as ElevationCard,Me as FOOTER,ue as FORM,he as FORM_GROUP,ul as Footer,fl as FooterLink,gl as FooterSection,sl as FooterSocialLink,cs as Form,us as FormGroup,_i as FunnelChart,Re as GLASS_CONTAINER,Ti as GaugeChart,ll as Grid,cl as GridCol,Y as HERO,Li as HeatmapChart,bl as Hero,me as INPUT,Jd as INPUT_CSS_VARS,Et as Icon,ms as Input,G as LIST,V as LIST_GROUP,wi as LineChart,Sl as List,vl as ListGroup,ye as MESSAGES,Ee as MODAL,eu as MODAL_CSS_VARS,hl as MasonryGrid,ml as MasonryGridItem,Bl as MegaMenu,Pl as MegaMenuColumn,zl as MegaMenuLink,Rl as Menu,Dl as MenuDivider,Ml as MenuItem,El as Messages,yl as Modal,Oi as MultiAxisChart,ae as NAV,ne as NAVBAR,Nl as Nav,Ul as NavDropdown,Al as NavItem,xl as Navbar,ce as PAGINATION_DEFAULTS,Te as PHOTOVIEWER,K as POPOVER,Ae as PROGRESS,ru as PROGRESS_CSS_VARS,Wi as Pagination,Yl as PhotoViewer,Mi as PieChart,Kl as Popover,Ql as ProductReview,ql as Progress,pe as RADIO,su as RADIO_CSS_VARS,oe as RATING,ee as RIVER,Kd as RTLManager,ki as RadarChart,ol as Radio,$l as Rating,Zl as River,dl as Row,J as SECTION_INTRO,fe as SELECT,re as SIDE_MENU,M as SIZES,Le as SLIDER,X as SPINNER,q as STEPS,Di as ScatterChart,Xl as SectionIntro,rl as Select,Ol as SideMenu,Ll as SideMenuItem,Cl as SideMenuList,Jl as Slider,Ot as Spinner,ec as Steps,Q as TAB,au as TABS_CSS_VARS,Z as TESTIMONIAL,be as TEXTAREA,R as THEME_COLORS,D as THEME_NAMING,de as TODO,$ as TOGGLE,W as TOOLTIP,ou as TOOLTIP_CSS_VARS,tc as Tabs,nc as Testimonial,il as Textarea,wd as ThemeApplicator,zd as ThemeComparator,Sd as ThemeContext,Id as ThemeErrorBoundary,Pd as ThemeInspector,Gd as ThemeLiveEditor,Dd as ThemePreview,vd as ThemeProvider,Bd as ThemeValidator,ac as Todo,rc as Toggle,oc as Tooltip,Bi as TreemapChart,te as UPLOAD,ic as Upload,_e as VIDEO_PLAYER,sc as VideoPlayer,Pi as WaterfallChart,As as applyCSSVariables,Eu as applyCSSVarsToStyle,md as applyComponentTheme,Os as applyPartStyles,Md as applyTheme,cd as camelToKebab,Kc as clearThemes,xu as composables,Cu as constants,Rs as createCSSVarStyle,wu as createDarkVariant,Ps as createDebugAttrs,_c as createDesignTokensFromTheme,Gs as createFontPreloadLink,Ds as createPartProps,pu as createSlotComponent,gu as createSlotProps,Cc as createTheme,Uc as createThemeObject,Fc as createThemeRegistry,hc as createTokens,Ts as cssVarsToStyle,Ic as deepMerge,Pu as default,uc as defaultTokens,Au as defineConfig,xc as designTokensToCSSVars,Tc as designTokensToTheme,Du as exportTheme,Oc as extendTheme,Is as extractComponentName,Fs as extractYouTubeId,sd as generateCSSVariableName,mc as generateCSSVariables,pc as generateCSSVariablesForSelector,id as generateClassName,hd as generateComponentCSSVars,Hs as generateFontPreloadTags,zs as generateUUID,Yc as getAllThemes,_s as getCSSVariable,cu as getComponentCSSVars,ud as getComponentThemeValue,Vd as getDesignTokensFromTheme,ks as getPartStyles,jc as getTheme,Rd as getThemeApplicator,$c as getThemeCount,Wc as getThemeIds,Mu as getThemeMetadata,Bs as hasCustomization,Hc as hasTheme,Bu as importTheme,qc as injectCSS,$d as injectTheme,Xc as isCSSInjected,Hd as isDesignTokens,hu as isSlot,jd as isThemeObject,Ls as isValidCSSVariableName,Us as isYouTubeUrl,yu as loadAtomixConfig,fd as loadThemeFromConfig,gd as loadThemeFromConfigSync,Ns as mapSCSSTokensToCSSVars,Cs as mergeCSSVars,ws as mergeClassNames,Ms as mergeComponentProps,du as mergePartStyles,mu as mergeSlots,wc as mergeTheme,ld as normalizeThemeTokens,Vs as preloadFonts,Iu as quickTheme,Gc as registerTheme,Zc as removeCSS,xs as removeCSSVariables,Qd as removeTheme,uu as renderSlot,Nu as resolveConfigPath,qd as saveTheme,Ce as sliderConstants,ku as supportsDarkMode,Lu as theme,dd as themePropertyToCSSVar,Ru as themeToCSS,Ac as themeToDesignTokens,Tu as types,Vc as unregisterTheme,De as useAccordion,et as useAtomixGlass,At as useBadge,Ei as useBarChart,Tt as useBlock,Zs as useBreadcrumb,It as useButton,Vo as useCard,el as useChartData,nl as useChartInteraction,tl as useChartScale,is as useCheckbox,bu as useComponentCustomization,Su as useComponentDefaultProps,pd as useComponentTheme,Gi as useDataTable,rs as useEdgePanel,ls as useForm,ds as useFormGroup,Ks as useGlassContainer,ps as useHero,Ud as useHistory,hs as useInput,Ii as useLineChart,vu as useMergedProps,Xs as useModal,bs as useNav,vs as useNavDropdown,Ss as useNavItem,fs as useNavbar,ji as usePagination,Ri as usePieChart,$s as useRadio,gs as useRiver,Qs as useSelect,Es as useSideMenu,ys as useSideMenuItem,Js as useSlider,fu as useSlot,wt as useSpinner,qs as useTextarea,Ed as useTheme,yd as useThemeTokens,Ws as useTodo,_u as utils,Ou as validateTheme};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as r,useRef as o,useEffect as i,memo as s,forwardRef as l,useId as c,useMemo as d,useCallback as u,Children as h,isValidElement as m,cloneElement as p,createContext as g,useContext as f,useImperativeHandle as b,Component as S}from"react";import*as v from"@phosphor-icons/react";import{Pause as E,Play as y,SkipBack as N,SkipForward as A,SpeakerX as x,SpeakerHigh as _,Gear as T,Download as C,Share as L,ArrowsIn as I,ArrowsOut as w}from"@phosphor-icons/react";import{createPortal as O}from"react-dom";import{loadAtomixConfig as R}from"./lib/config/loader";const M=["primary","secondary","success","info","warning","error","light","dark"],k=["sm","md","lg"],D={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},B={BUTTON_PREFIX:"btn",ICON_ELEMENT:"icon",LABEL_ELEMENT:"label",SPINNER_ELEMENT:"spinner"},P={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},z={BASE_CLASS:"c-btn-group",CLASSES:{BASE:"c-btn-group"}},U={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"}},F={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"}},G={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},V={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"}},H={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},j={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:"›"}},Y={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"]}},W={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",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},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}},$={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}},Q={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},q={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}},Z={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"}},X={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"}},J={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"},ee={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"}},te={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"}},ne={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"}},ae={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"}},re={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"}},oe={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:"▶"}},ie={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"}},se={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},le={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",headerActions:"c-data-table__header-actions",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",rowSelected:"c-data-table__row--selected",cell:"c-data-table__cell",selectionCell:"c-data-table__cell--selection",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",toolbarLeft:"c-data-table-toolbar__left",toolbarRight:"c-data-table-toolbar__right",search:"c-data-table-search",searchInput:"c-data-table-search__input",columnFilter:"c-data-table__column-filter",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",stickyHeader:"c-data-table--sticky-header",dragging:"c-data-table__header-cell--dragging",dragOver:"c-data-table__header-cell--drag-over",resizeHandle:"c-data-table__resize-handle",open:"is-open"},ce={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"},de={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},ue={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"}},he={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"}},me={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"}},pe={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",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},ge={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"}},fe={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",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},be={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"}},Se={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"}},ve={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"}},Ee={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"}},ye={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}},Ne={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"}},Ae={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)"}},xe={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"}},_e={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}},Te={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"}},Ce={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},Le={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"}},Ie=Le,we={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"]}},Oe={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"}},Re={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"}},Me={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="}},ke={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",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",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"}},De={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:20,BLUR_AMOUNT:1,SATURATION:140,ABERRATION_INTENSITY:2.5,ELASTICITY:.05,CORNER_RADIUS:16,PADDING:"0 0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0},CONSTANTS:{ACTIVATION_ZONE:200,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200}}};function Be(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,s]=r(t.defaultOpen||!1),l=n?t.isOpen:a,[c,d]=r(l?"auto":"0px"),u=o(null),h=o(null),m=()=>{if(h.current&&u.current){const e=l?h.current.clientHeight+"px":"0px";u.current.style.setProperty(F.CSS_VARS.PANEL_HEIGHT,e),d(e)}};return i((()=>{m()}),[l]),i((()=>{const e=()=>{l&&m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l]),{state:{isOpen:l,panelHeight:c},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!l):s((e=>!e)))},updatePanelHeight:m,panelRef:u,contentRef:h,generateClassNames:(e="")=>`c-accordion ${l?F.CLASSES.IS_OPEN:""} ${t.disabled?F.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:Pe}=De,ze=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const n=e.x-t.x,a=e.y-t.y;return Math.sqrt(n*n+a*a)},Ue=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},Fe=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/Pe.MOUSE_INFLUENCE_DIVISOR;return Math.min(1.5,t)},Ge=e=>"number"!=typeof e||isNaN(e)?Pe.MIN_BLUR:Math.max(Pe.MIN_BLUR,Math.min(50,e)),Ve=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=Pe.MAX_SIZE&&e.height<=Pe.MAX_SIZE,He=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return Pe.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?Pe.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?Pe.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?Pe.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?Pe.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const n=parseFloat(t);return isNaN(n)?Pe.DEFAULT_CORNER_RADIUS:Math.max(0,n)},je=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?He(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=Ye(e.props.children);if(t>0&&t!==Pe.DEFAULT_CORNER_RADIUS)return t}return null},Ye=e=>{if(!e)return Pe.DEFAULT_CORNER_RADIUS;try{const t=a.Children.toArray(e);for(let e=0;e<t.length;e++){const n=t[e];if(a.isValidElement(n)){const e=je(n);if(null!==e)return e}}}catch(t){}return Pe.DEFAULT_CORNER_RADIUS},We=(e,t,n,a,r)=>{switch(e){case"standard":default:return t;case"polar":return n;case"prominent":return a;case"shader":return r||t}},Ke=({id:n,displacementScale:a,aberrationIntensity:r,mode:o,shaderMapUrl:i,blurAmount:s})=>e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",suppressHydrationWarning:!0,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:We(o,"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wCEAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgHBwcHBwgLCAkJCQkICwsMDAwMDAsNDQ4ODQ0SEhISEhQUFBQUFBQUFBQBBQUFCAgIEAsLEBQODg4UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFP/CABEIAQABAAMBEQACEQEDEQH/xAAxAAEBAQEBAQAAAAAAAAAAAAADAgQIAQYBAQEBAQEBAQAAAAAAAAAAAAMCBAEACAf/2gAMAwEAAhADEAAAAPjPor6kOgOiKhKgKhKgOhKhOhKxKgKhOgKhKhKgKxOhKhOgKhKhKgKwKhKgKgKwG841nns9J/nn2KVCdCdCVAVCVCVAdCVCdiVAVidCVAVCVAdiVCVCdAVCVCVAVCVAVAViVZxsBrPPY6R/NvsY6E6ErEqAqE6ErAqE6E7E7ErA0ErArAqAqEuiVAXRLol0S6J0JUBWBUI0BXnG88djpH81+xjoToSoSoCoTsSoYQTsTsTQSsCsCsCsCsCoC6A0JeAuiXSLwn0SoioCoCoBsBrPFH0j+a/Yx0J0JUJUJ2BUMIR2MIRoBoJIBXnJAK840BUA0BdAegXhLpF4S8R+IuiVgVANAV546fSH5r9jHRHQFQlYxYnZQgnYwhQokgEgEmckzjecazlYD3O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PVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wCEAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx8BBwcHDQwNGBAQGBoVERUaHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fH//CABEIAQABAAMBEQACEQEDEQH/xAAxAAADAQEBAAAAAAAAAAAAAAABAgMABAcBAAMBAQEBAAAAAAAAAAAAAAIDBAEABQb/2gAMAwEAAhADEAAAAPG/tfu93bu3bs7d27t3bu2du7d27h3bs3du7d27t3bc3du7d27tvbu3du7d27T3E+2du05u7tm7O2cM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AAgBAgEDPwAAH//EABsRAAMBAQEBAQAAAAAAAAAAAAABAhEDEDAg/9oACAEDAQECAPzmZmZnx3d3d3fjmZmZ8d3d3d+OZmZmfHd3d3fjmZmZmfDd3d3d9Qhe5mZmZ4xjGP3d3d3dEIQhCEZmZmZjGMYxjGbu7u6IQhCEIXmZhmMYxjGMYzd3d3UIQhCEIQlmZhjGMYxjGMfu7uoQhCEIQhLMzMGmMYxjGMZu7uppoQhCEIQklmZjTGMYxjGMbb3d1NCEIQhCEISzMxpjGMYxjGMb3d1NCEIkQhCEkszGmMYyihjGMbb3d1NCESSIkQhJLMxppjGUUUMYxtvd1NNNCJJESIQklmY0xjKKKKKGMbb3dTTTRJJJJJIhJLMxpjGUUUUUUMbb3dTTQiSSSSSRCSWZjTTGUUUUUUMbb3dTTRJJJJJJJIklmY0xjKKKKKKKG293U005JJJJJJJEkksaaaaoooooooobbb3U05JJJJJJJJEkksaaZRRRRRRRRQ223uppySSSSSSSSIQkNNMoooooooooptt7qackkkkkEEkiEksGmqKKLLKLKKKbbe6mnJJJBBBBJJKSSxpplFFFllllFFNtvdTTkkkggggkklJZjTTVFFFlllllFDbe6mnLkggggggkkSzGmUUUUWWWWWUUU291NOSSCCCCCCSRLMaaZRRRZZZZZRRTb3U5ckkEEEEEEkpLMaaaoossssssop0291OXJBBBBBBBBKSzGmMossssssssp0291OXJBBBzOZBBBKlZjTVFFllllllllOm3upy5cEEHM5kEEEqVmNNUUWWWWdCyyynTb1NOXLggg5nMggglSvGmUqLLOhZ0LLLKdNm6nLgggg5nMggglSsxpqlRZZ0Oh0OhZZTpt7qcuHBzOZzOZzOZBKleNNUUWWdDodDodCynQxmy5cEHM5n/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAABVXElEQVR4nO19aZasPKxkuE5toffS+1/YR/8AS6GQZAxZd3qvffJQtjEe5AgNQGaN//N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h1qeRon4sTqGC2liNQdGdUra0xL+H/kMAsbYr+iHAAAAAElFTkSuQmCC",i),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:a*("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:a*(("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:a*(("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",result:"ABERRATED_BLURRED",stdDeviation:s*r*.05}),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"})]})]})});Ke.displayName="GlassFilter";const $e=s(Ke,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),Qe=new Map,qe=l((({children:n,className:a="",style:s,displacementScale:l=25,blurAmount:u=.0625,saturation:h=180,aberrationIntensity:m=2,mouseOffset:p={x:0,y:0},globalMousePosition:g={x:0,y:0},onMouseEnter:f,onMouseLeave:b,onMouseDown:S,onMouseUp:v,active:E=!1,isHovered:y=!1,isActive:N=!1,overLight:A=!1,cornerRadius:x=0,padding:_="0 0",glassSize:T={width:0,height:0},onClick:C,mode:L="standard",effectiveDisableEffects:I=!1,effectiveReducedMotion:w=!1,shaderVariant:O="liquidGlass",enableLiquidBlur:R=!1,elasticity:M=0,contentRef:k},D)=>{const B=c(),[P]=r((()=>"atomix-glass-filter-"+B.replace(/:/g,"-").replace(/^[^a-z]/i,"atomix-"))),[z,U]=r(""),F=o(null),G=o(null),V=o(null);i((()=>{"shader"===L?Promise.resolve().then((function(){return vt})).then((e=>{G.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):G.current=null}),[L]),i((()=>{if("shader"===L&&T&&Ve(T)&&G.current){const e=`${T.width}x${T.height}-${O}`,t=(e=>{const t=Qe.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void U(t);V.current&&clearTimeout(V.current);const n=()=>{if(G.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:n}=G.current;F.current?.destroy();const a=n[O]||n.liquidGlass;F.current=new t({width:T.width,height:T.height,fragment:a});const r=()=>{const t=F.current?.updateShader()||"";((e,t)=>{if(Qe.size>=15){const e=Array.from(Qe.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&Qe.delete(t[0])}Qe.set(e,{url:t,timestamp:Date.now()}),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||Qe.size})(e,t),U(t)};"undefined"!=typeof requestIdleCallback?requestIdleCallback(r,{timeout:1e3}):setTimeout(r,0)}catch(t){U("")}else V.current=setTimeout(n,100)};V.current=setTimeout(n,300)}else U("");return()=>{V.current&&(clearTimeout(V.current),V.current=null);try{F.current?.destroy()}catch(e){}finally{F.current=null}}}),[L,T,O]);const[H,j]=r(null);i((()=>{if(!D||"function"==typeof D)return;const e=D.current;if(e)try{j(e.getBoundingClientRect())}catch(t){j(null)}}),[D,T]);const Y=d((()=>{const e={baseBlur:u,edgeBlur:1.25*u,centerBlur:1.1*u,flowBlur:1.2*u};if(!R||!H||!g||"number"!=typeof g.x||"number"!=typeof g.y||isNaN(g.x)||isNaN(g.y))return e;try{const e=Ue(H),t=ze(g,e),n=Math.sqrt(H.width*H.width+H.height*H.height)/2,a=Math.min(t/n,1),r=Fe(p),o=u+r*u*.4,i=o*(.8+.6*(1.5*a+.3*r)),s=o*(.3+.4*(.3*(1-a)+.2*r)),l=g.x-e.x,c=g.y-e.y,d=o*(.4+.6*(.5*Math.sin(Math.atan2(c,l)+r*Math.PI)+.5)),h=(y?1.2:1)*(N?1.4:1);return{baseBlur:Ge(o*h),edgeBlur:Ge(i*h),centerBlur:Ge(s*h),flowBlur:Ge(d*h)}}catch(t){return e}}),[R,u,g,p,y,N,H,s,T]),W=d((()=>{try{const e=h+20*(Y.baseBlur||0),t="number"!=typeof Y.baseBlur||isNaN(Y.baseBlur)?0:Y.baseBlur,n="number"!=typeof Y.edgeBlur||isNaN(Y.edgeBlur)?0:Y.edgeBlur,a="number"!=typeof Y.centerBlur||isNaN(Y.centerBlur)?0:Y.centerBlur,r="number"!=typeof Y.flowBlur||isNaN(Y.flowBlur)?0:Y.flowBlur,o=H?H.width*H.height:0;return!R||w||I||o>18e4?{backdropFilter:`blur(${Ge(Math.max(t,.8*n,1.1*a,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}:{backdropFilter:`${[`blur(${t}px)`,`blur(${n}px)`,`blur(${a}px)`,`blur(${r}px)`].join(" ")} saturate(${Math.min(e,200)}%) contrast(1.05) brightness(1.05)`}}catch(e){return{backdropFilter:`blur(${u}px) saturate(${h}%) contrast(1.05) brightness(1.05)`}}}),[P,Y,h,u,H,w,I,R]),K=d((()=>{try{const e=p&&"number"==typeof p.x&&!isNaN(p.x)?p.x:0,t=p&&"number"==typeof p.y&&!isNaN(p.y)?p.y:0;return{"--atomix-glass-container-width":""+T?.width,"--atomix-glass-container-height":""+T?.height,"--atomix-glass-container-padding":_||"0 0","--atomix-glass-container-radius":("number"!=typeof x||isNaN(x)?0:x)+"px","--atomix-glass-container-backdrop":W?.backdropFilter||"none","--atomix-glass-container-shadow":A?[`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","--atomix-glass-container-shadow-opacity":I?0:1,"--atomix-glass-container-bg":A?`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","--atomix-glass-container-text-shadow":A?"0px 2px 12px rgba(0, 0, 0, 0)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":A?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[T,_,x,W,p,A,I]);return e("div",{ref:D,className:`${De.CONTAINER_CLASS} ${a} ${E?De.CLASSES.ACTIVE:""} ${A?De.CLASSES.OVER_LIGHT:""}`,style:{...s,...K},onClick:C,children:t("div",{className:De.INNER_CLASS,style:{padding:"var(--atomix-glass-container-padding)",boxShadow:"var(--atomix-glass-container-box-shadow)"},onMouseEnter:f,onMouseLeave:b,onMouseDown:S,onMouseUp:v,children:[t("div",{className:De.FILTER_CLASS,children:[e($e,{blurAmount:u,mode:L,id:P,displacementScale:"number"!=typeof l||isNaN(l)?0:l,aberrationIntensity:"number"!=typeof m||isNaN(m)?0:m,shaderMapUrl:z}),e("div",{className:De.FILTER_OVERLAY_CLASS,suppressHydrationWarning:!0,style:{filter:`url(#${P})`,backdropFilter:"var(--atomix-glass-container-backdrop)",borderRadius:"var(--atomix-glass-container-radius)"}}),e("div",{className:De.FILTER_SHADOW_CLASS,style:{boxShadow:"var(--atomix-glass-container-shadow)",opacity:"var(--atomix-glass-container-shadow-opacity)",background:"var(--atomix-glass-container-bg)",borderRadius:"var(--atomix-glass-container-radius)"}})]}),e("div",{ref:k,className:De.CONTENT_CLASS,style:{position:"relative",textShadow:"var(--atomix-glass-container-text-shadow)",...M>0?{zIndex:100}:{}},children:n})]})})}));qe.displayName="AtomixGlassContainer";const Ze=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},{CONSTANTS:Xe}=De,Je=new WeakMap,et=(e,t,n,a)=>{e&&Je.set(e,{result:n,timestamp:Date.now(),config:t,threshold:a})};function tt({glassRef:e,contentRef:t,cornerRadius:n,globalMousePosition:a,mouseOffset:s,mouseContainer:l,overLight:c=De.DEFAULTS.OVER_LIGHT,reducedMotion:h=!1,highContrast:m=!1,disableEffects:p=!1,elasticity:g=.05,onClick:f,debugCornerRadius:b=!1,debugOverLight:S=!1,enablePerformanceMonitoring:v=!1,children:E}){const[y,N]=r(!1),[A,x]=r(!1),[_,T]=r({width:270,height:69}),[C,L]=r({x:0,y:0}),[I,w]=r({x:0,y:0}),[O,R]=r(Xe.DEFAULT_CORNER_RADIUS),[M,k]=r(!1),[D,B]=r(!1),[P,z]=r(!1),U=d((()=>Math.max(0,void 0!==n?n:O)),[n,O,b]),F=d((()=>h||M),[h,M]),G=d((()=>m||D),[m,D]),V=d((()=>p||F),[p,F]),H=d((()=>a||C),[a,C]),j=d((()=>s||I),[s,I]);i((()=>{const e=()=>{try{let e=null,n="default";if(t.current){const a=t.current.firstElementChild;if(a){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),n=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(n&&"0px"!==n&&"auto"!==n){const e=He(n);return e>0?e:null}return null}catch(t){return null}})(a);null!==t&&t>0&&(e=t,n="DOM element")}}if(null===e){const t=Ye(E);t>0&&t!==Xe.DEFAULT_CORNER_RADIUS&&(e=t,n="React children")}null!==e&&e>0?R(e):"undefined"==typeof process||process.env}catch(e){"undefined"==typeof process||process.env}};e();const n=setTimeout(e,100);return()=>clearTimeout(n)}),[E,b,t]),i((()=>{if(("auto"===c||"object"==typeof c&&null!==c)&&e.current){const t=e.current,n=((e,t)=>{if(!e)return null;const n=Je.get(e);return n&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const n=e,a=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const o of r){const e=n[o],t=a[o];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(n.config,t)?(n.timestamp=Date.now(),n.result):null})(t.parentElement,c);if(null!==n)return void z(n);const a=setTimeout((()=>{try{if(!t)return void z(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void z(!1);let n=0,a=0,r=!1,o=t.parentElement,i=0;const s=20,l=10;for(;o&&l>a&&s>i;){try{const e=window.getComputedStyle(o);if(!e){o=o.parentElement,i++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),o=Number(e[1]),i=Number(e[2]);if(!isNaN(t)&&!isNaN(o)&&!isNaN(i)&&isFinite(t)&&isFinite(o)&&isFinite(i)&&t>=0&&255>=t&&o>=0&&255>=o&&i>=0&&255>=i&&(t>10||o>10||i>10)){const e=(.299*t+.587*o+.114*i)/255;!isNaN(e)&&isFinite(e)&&(n+=e,a++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(n+=.5,a++,r=!0)}catch(e){"undefined"==typeof process||process.env}if(!o)break;o=o.parentElement,i++}if(r&&a>0){const e=n/a;if(!isNaN(e)&&isFinite(e)){let n=.7;if("object"==typeof c&&null!==c){const e=c;if(void 0!==e.threshold){const t="number"==typeof e.threshold&&!isNaN(e.threshold)&&isFinite(e.threshold)?e.threshold:.7;n=Math.min(.9,Math.max(.1,t))}}const a=e>n;et(t.parentElement,c,a,n),z(a)}else{const e=!1,n="object"==typeof c&&null!==c&&c.threshold||.7;et(t.parentElement,c,e,n),z(e)}}else{const e=!1,n="object"==typeof c&&null!==c&&c.threshold||.7;et(t.parentElement,c,e,n),z(e)}}catch(n){"undefined"==typeof process||process.env;const e=!1;if(t&&t.parentElement){const n="object"==typeof c&&null!==c&&c.threshold||.7;et(t.parentElement,c,e,n)}z(e)}}),150);return()=>clearTimeout(a)}if("boolean"==typeof c&&z(!1),"function"==typeof window.matchMedia)try{const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");k(e.matches),B(t.matches);const n=e=>{k(e.matches)},a=e=>{B(e.matches)};return e.addEventListener?(e.addEventListener("change",n),t.addEventListener("change",a)):e.addListener&&(e.addListener(n),t.addListener(a)),()=>{try{e.removeEventListener?(e.removeEventListener("change",n),t.removeEventListener("change",a)):e.removeListener&&(e.removeListener(n),t.removeListener(a))}catch(r){}}}catch(t){return}}),[c,e,S]);const Y=o(null),W=o(null),K=u((t=>{if(a&&s)return;if(V)return;const n=l?.current||e.current;if(!n)return;v&&performance.now();let r=Y.current;if(r&&0!==r.width&&0!==r.height||(r=n.getBoundingClientRect(),Y.current=r),0===r.width||0===r.height)return;const o=Ue(r),i={x:(t.x-o.x)/r.width*100,y:(t.y-o.y)/r.height*100};w(i),L(t),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||!v||performance.now()}),[l,e,a,s,V,v]);i((()=>{if(a&&s)return;if(V)return;const t=Ze.subscribe(K),n=l?.current||e.current;let r=null;return n&&"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{null!==W.current&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame((()=>{const t=l?.current||e.current;t&&(Y.current=t.getBoundingClientRect()),W.current=null}))})),r.observe(n)),()=>{t(),null!==W.current&&(cancelAnimationFrame(W.current),W.current=null),r&&r.disconnect()}}),[K,l,e,a,s,V]);const $=u((()=>{if(!(H.x&&H.y&&e.current&&Ve(_)))return"scale(1)";const t=e.current.getBoundingClientRect(),n=Ue(t),a=H.x-n.x,r=H.y-n.y,o=Math.max(0,Math.abs(a)-_.width/2),i=Math.max(0,Math.abs(r)-_.height/2),s=ze({x:o,y:i},{x:0,y:0});if(s>Xe.ACTIVATION_ZONE)return"scale(1)";const l=1-s/Xe.ACTIVATION_ZONE,c=ze(H,n);if(0===c)return"scale(1)";const d=a/c,u=r/c,h=Math.min(c/300,1)*g*l,m=1+Math.abs(d)*h*.3-Math.abs(u)*h*.15,p=1+Math.abs(u)*h*.3-Math.abs(d)*h*.15;return`scaleX(${Math.max(.8,m)}) scaleY(${Math.max(.8,p)})`}),[H,g,_,e]),Q=u((()=>{if(!(H.x&&H.y&&e.current&&Ve(_)))return 0;const t=e.current.getBoundingClientRect(),n=Ue(t),a=Math.max(0,Math.abs(H.x-n.x)-_.width/2),r=Math.max(0,Math.abs(H.y-n.y)-_.height/2),o=ze({x:a,y:r},{x:0,y:0});return o>Xe.ACTIVATION_ZONE?0:1-o/Xe.ACTIVATION_ZONE}),[H,_,e]),q=u((()=>{if(!e.current)return{x:0,y:0};const t=Q(),n=e.current.getBoundingClientRect(),a=Ue(n);return{x:(H.x-a.x)*g*.1*t,y:(H.y-a.y)*g*.1*t}}),[H,g,Q,e]),Z=d((()=>V?{x:0,y:0}:q()),[q,V]),X=d((()=>V?"scale(1)":$()),[$,V]),J=d((()=>V?A&&f?"scale(0.98)":"scale(1)":`translate(${Z.x}px, ${Z.y}px) ${A&&f?"scale(0.96)":X}`),[Z,A,f,X,V]);i((()=>{const t=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let n=null,a={width:0,height:0},r=U;const o=(o=!1)=>{null!==n&&cancelAnimationFrame(n),n=requestAnimationFrame((()=>{if(!t(e.current))return void(n=null);const i=e.current.getBoundingClientRect();if(0>=i.width||0>=i.height)return void(n=null);const s={width:Math.round(i.width),height:Math.round(i.height)},l=r!==U,c=Math.abs(s.width-a.width)>1||Math.abs(s.height-a.height)>1;var d;(o||l||c)&&Ve(d=s)&&d.width<=Xe.MAX_SIZE&&d.height<=Xe.MAX_SIZE&&(a=s,r=U,T(s)),n=null}))};let i=null;const s=()=>{i&&clearTimeout(i),i=setTimeout((()=>o(!1)),16)},l=setTimeout((()=>o(!0)),0);let c=null,d=null;if("undefined"!=typeof ResizeObserver&&t(e.current))try{c=new ResizeObserver((t=>{for(const n of t)if(n.target===e.current){e.current&&(Y.current=e.current.getBoundingClientRect()),d&&clearTimeout(d),d=setTimeout((()=>o(!1)),16);break}})),c.observe(e.current)}catch(u){}return window.addEventListener("resize",s,{passive:!0}),()=>{clearTimeout(l),null!==n&&cancelAnimationFrame(n),i&&clearTimeout(i),d&&clearTimeout(d),window.removeEventListener("resize",s),c?.disconnect()}}),[U,e]);const ee=u((()=>"boolean"==typeof c?c:("auto"===c||"object"==typeof c&&null!==c)&&P),[c,P]),te=u(((e,t,n,a)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?a:Math.min(n,Math.max(t,e))),[]),ne=d((()=>{const e=ee(),t=Fe(j),n=y?1.4:1,a=A?1.6:1,r={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*n*a)):0,contrast:Math.min(1.8,Math.max(1,1.4+.3*t)),brightness:Math.min(1.2,Math.max(.7,.85+.15*t)),saturationBoost:Math.min(2,Math.max(1,1.3+.4*t)),shadowIntensity:Math.min(1.5,Math.max(.5,.9+.5*t)),borderOpacity:Math.min(1,Math.max(.3,.7+.3*t))};if("object"==typeof c&&null!==c){const e=c,o=te(e.threshold,.1,1,r.threshold),i=te(e.opacity,.1,1,r.opacity),s=te(e.contrast,.5,2.5,r.contrast),l=te(e.brightness,.5,2,r.brightness),d=te(e.saturationBoost,.5,3,r.saturationBoost),u={...r,threshold:o,opacity:i*n*a,contrast:s+.3*t,brightness:l+.15*t,saturationBoost:d+.4*t};return"undefined"==typeof process||process.env,u}return"undefined"==typeof process||process.env,r}),[c,ee,j,y,A,te,S]),ae=u((()=>N(!0)),[]),re=u((()=>N(!1)),[]),oe=u((()=>x(!0)),[]),ie=u((()=>x(!1)),[]),se=u((e=>{!f||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}),[f]),le=u((e=>{}),[]);return{isHovered:y,isActive:A,glassSize:_,dynamicCornerRadius:O,effectiveCornerRadius:U,effectiveReducedMotion:F,effectiveHighContrast:G,effectiveDisableEffects:V,detectedOverLight:P,globalMousePosition:H,mouseOffset:j,overLightConfig:ne,elasticTranslation:Z,directionalScale:X,transformStyle:J,handleMouseEnter:ae,handleMouseLeave:re,handleMouseDown:oe,handleMouseUp:ie,handleMouseMove:le,handleKeyDown:se}}function nt({children:a,displacementScale:r=De.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:i=De.DEFAULTS.BLUR_AMOUNT,saturation:s=De.DEFAULTS.SATURATION,aberrationIntensity:l=De.DEFAULTS.ABERRATION_INTENSITY,elasticity:c=De.DEFAULTS.ELASTICITY,cornerRadius:d,globalMousePosition:u,mouseOffset:h,mouseContainer:m=null,className:p="",padding:g=De.DEFAULTS.PADDING,overLight:f=De.DEFAULTS.OVER_LIGHT,style:b={},mode:S=De.DEFAULTS.MODE,onClick:v,shaderVariant:E="liquidGlass","aria-label":y,"aria-describedby":N,role:A,tabIndex:x,reducedMotion:_=!1,highContrast:T=!1,disableEffects:C=!1,enableLiquidBlur:L=!1,enableBorderEffect:I=!0,enableOverLightLayers:w=De.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,enablePerformanceMonitoring:O=!1,debugCornerRadius:R=!1,debugOverLight:M=!1}){const k=o(null),D=o(null),{isHovered:B,isActive:P,glassSize:z,effectiveCornerRadius:U,effectiveReducedMotion:F,effectiveHighContrast:G,effectiveDisableEffects:V,overLightConfig:H,globalMousePosition:j,mouseOffset:Y,transformStyle:W,handleMouseEnter:K,handleMouseLeave:$,handleMouseDown:Q,handleMouseUp:q,handleKeyDown:Z}=tt({glassRef:k,contentRef:D,cornerRadius:d,globalMousePosition:u,mouseOffset:h,mouseContainer:m,overLight:f,reducedMotion:_,highContrast:T,disableEffects:C,elasticity:c,onClick:v,debugCornerRadius:R,debugOverLight:M,enablePerformanceMonitoring:O,children:a}),X=H.isOverLight,J=w&&X,ee={...b,...0!==c&&!V&&{transform:W}},te=[De.BASE_CLASS,F&&De.BASE_CLASS+"--reduced-motion",G&&De.BASE_CLASS+"--high-contrast",V&&De.BASE_CLASS+"--disabled-effects",p].filter(Boolean).join(" "),ne={position:b.position||"absolute",top:b.top||0,left:b.left||0},ae={width:"fixed"!==b.position?"100%":b.width?b.width:Math.max(z.width,0),height:"fixed"!==b.position?"100%":b.height?b.height:Math.max(z.height,0)},re=Y.x,oe=Y.y,ie=De.CONSTANTS.GRADIENT,se=ie.BASE_ANGLE+re*ie.ANGLE_MULTIPLIER,le=Math.max(ie.BORDER_STOP_1.MIN,ie.BORDER_STOP_1.BASE+oe*ie.BORDER_STOP_1.MULTIPLIER),ce=Math.min(ie.BORDER_STOP_2.MAX,ie.BORDER_STOP_2.BASE+oe*ie.BORDER_STOP_2.MULTIPLIER),de=ie.BORDER_OPACITY.BASE_1+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_LOW,ue=ie.BORDER_OPACITY.BASE_2+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_HIGH,he=ie.BORDER_OPACITY.BASE_3+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_LOW,me=ie.BORDER_OPACITY.BASE_4+Math.abs(re)*ie.BORDER_OPACITY.MULTIPLIER_HIGH,pe=ie.CENTER_POSITION+re/ie.HOVER_POSITION.DIVISOR_1,ge=ie.CENTER_POSITION+oe/ie.HOVER_POSITION.DIVISOR_1,fe=ie.CENTER_POSITION+re/ie.HOVER_POSITION.DIVISOR_2,be=ie.CENTER_POSITION+oe/ie.HOVER_POSITION.DIVISOR_2,Se=ie.CENTER_POSITION+re*ie.HOVER_POSITION.MULTIPLIER_3,ve=ie.CENTER_POSITION+oe*ie.HOVER_POSITION.MULTIPLIER_3,Ee=ie.CENTER_POSITION+re*ie.BASE_LAYER_MULTIPLIER,ye=ie.CENTER_POSITION+oe*ie.BASE_LAYER_MULTIPLIER,Ne=H.opacity,Ae={hover1:B||P?.5:0,hover2:P?.5:0,hover3:B?.4:P?.8:0,base:X?Ne||.4:0,over:X?1.1*(Ne||.4):0},xe="255, 255, 255",_e="0, 0, 0",Te={"--atomix-glass-radius":U+"px","--atomix-glass-transform":W||"none","--atomix-glass-position":ne.position,"--atomix-glass-top":"fixed"!==ne.top?ne.top+"px":"0","--atomix-glass-left":"fixed"!==ne.left?ne.left+"px":"0","--atomix-glass-width":"fixed"!==b.position?ae.width:ae.width+"px","--atomix-glass-height":"fixed"!==b.position?ae.height:ae.height+"px","--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.09375rem)","--atomix-glass-blend-mode":X?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${se}deg, rgba(${xe}, 0) 0%, rgba(${xe}, ${de}) ${le}%, rgba(${xe}, ${ue}) ${ce}%, rgba(${xe}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${se}deg, rgba(${xe}, 0) 0%, rgba(${xe}, ${he}) ${le}%, rgba(${xe}, ${me}) ${ce}%, rgba(${xe}, 0) 100%)`,"--atomix-glass-hover-1-opacity":Ae.hover1,"--atomix-glass-hover-1-gradient":X?`radial-gradient(circle at ${pe}% ${ge}%, rgba(${_e}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${_e}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${_e}, 0) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${pe}% ${ge}%, rgba(${xe}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${xe}, 0) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":Ae.hover2,"--atomix-glass-hover-2-gradient":X?`radial-gradient(circle at ${fe}% ${be}%, rgba(${_e}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${_e}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${_e}, 0) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${fe}% ${be}%, rgba(${xe}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${xe}, 0) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":Ae.hover3,"--atomix-glass-hover-3-gradient":X?`radial-gradient(circle at ${Se}% ${ve}%, rgba(${_e}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${_e}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${_e}, 0) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${Se}% ${ve}%, rgba(${xe}, ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${xe}, 0) ${De.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":Ae.base,"--atomix-glass-base-gradient":X?`linear-gradient(${De.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${_e}, ${De.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+re*De.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${_e}, ${De.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+oe*De.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${De.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${_e}, ${De.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+Math.abs(re)*De.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${xe}, ${De.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":Ae.over,"--atomix-glass-overlay-gradient":X?`radial-gradient(circle at ${Ee}% ${ye}%, rgba(${_e}, ${De.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+Math.abs(re)*De.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${_e}, ${De.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${De.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${_e}, ${De.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+Math.abs(oe)*De.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${xe}, ${De.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`};return t("div",{className:te,style:Te,role:A||(v?"button":void 0),tabIndex:v?x??0:x,"aria-label":y,"aria-describedby":N,"aria-disabled":!(!v||!V)||!v&&void 0,"aria-pressed":!(!v||!P)||!v&&void 0,onKeyDown:v?Z:void 0,children:[e(qe,{ref:k,contentRef:D,className:p,style:ee,cornerRadius:U,displacementScale:V?0:"shader"===S?r*De.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:H.isOverLight?r*De.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:r,blurAmount:V?0:i,saturation:G?De.CONSTANTS.SATURATION.HIGH_CONTRAST:H.isOverLight?s*H.saturationBoost:s,aberrationIntensity:V?0:"shader"===S?l*De.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:l,glassSize:z,padding:g,mouseOffset:V?{x:0,y:0}:Y,globalMousePosition:V?{x:0,y:0}:j,onMouseEnter:K,onMouseLeave:$,onMouseDown:Q,onMouseUp:q,active:P,isHovered:B,isActive:P,overLight:H.isOverLight,onClick:v,mode:S,transform:ee.transform,effectiveDisableEffects:V,effectiveReducedMotion:F,shaderVariant:E,elasticity:c,enableLiquidBlur:L,children:a}),!!v&&t(n,{children:[e("div",{className:De.HOVER_1_CLASS}),e("div",{className:De.HOVER_2_CLASS}),e("div",{className:De.HOVER_3_CLASS})]}),e("div",{className:[De.BACKGROUND_LAYER_CLASS,De.BACKGROUND_LAYER_DARK_CLASS,X?De.BACKGROUND_LAYER_OVER_LIGHT_CLASS:De.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...ne,height:ae.height,width:ae.width,borderRadius:U+"px",transform:ee.transform}}),e("div",{className:[De.BACKGROUND_LAYER_CLASS,De.BACKGROUND_LAYER_BLACK_CLASS,X?De.BACKGROUND_LAYER_OVER_LIGHT_CLASS:De.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" "),style:{...ne,height:ae.height,width:ae.width,borderRadius:U+"px",transform:ee.transform}}),J&&t(n,{children:[e("div",{className:De.BASE_LAYER_CLASS}),e("div",{className:De.OVERLAY_LAYER_CLASS}),e("div",{className:De.OVERLAY_HIGHLIGHT_CLASS,style:{opacity:Ae.over*De.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,background:`radial-gradient(circle at ${De.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${De.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${De.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${De.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}})]}),I&&t(n,{children:[e("span",{className:De.BORDER_1_CLASS}),e("span",{className:De.BORDER_2_CLASS})]})]})}const at=s((({title:n,children:a,defaultOpen:r=!1,isOpen:o,onOpenChange:i,disabled:s=!1,iconPosition:l="right",icon:d,className:u="",style:h,glass:m})=>{const p=c(),g="accordion-header-"+p,f="accordion-panel-"+p,{state:b,toggle:S,updatePanelHeight:v,panelRef:E,contentRef:y,generateClassNames:N,generateHeaderClassNames:A}=Be({defaultOpen:r,disabled:s,iconPosition:l,isOpen:o,onOpenChange:i}),x=e("i",{className:"c-accordion__icon","aria-hidden":"true",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","aria-hidden":"true",focusable:"false",children:e("polyline",{points:"6 9 12 15 18 9"})})}),_=t("div",{className:N(u)+(m?" c-accordion--glass":""),style:h,children:[t("button",{id:g,className:A(),onClick:S,"aria-expanded":b.isOpen,"aria-controls":f,"aria-disabled":s,disabled:s,type:"button",children:[e("span",{className:"c-accordion__title",children:n}),d||x]}),e("div",{id:f,className:F.SELECTORS.PANEL.replace(".",""),ref:E,role:"region","aria-labelledby":g,children:e("div",{className:F.SELECTORS.BODY.replace(".",""),ref:y,children:a})})]});if(m){const t={displacementScale:20,elasticity:0},n=!0===m?t:{...t,...m};return e(nt,{...n,children:_})}return _}));at.displayName="Accordion";const rt=({height:n=24,width:a=24,color:r="currentColor",...o})=>t("svg",{width:a,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})]}),ot=8e-4,it=4096,st=(e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)return 0;const a=Math.max(0,Math.min(1,(n-e)/(t-e)));return a*a*(3-2*a)},lt=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(Math.abs(e),Math.abs(t));if(0===n)return 0;const a=e/n,r=t/n;return n*Math.sqrt(a*a+r*r)},ct=(e,t,n,a,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r)return 0;const o=Math.abs(e)-n+r,i=Math.abs(t)-a+r;return Math.min(Math.max(o,i),0)+lt(Math.max(o,0),Math.max(i,0))-r},dt=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),ut=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),ht=(e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)?t:isNaN(t)?0:isNaN(n)?1:Math.max(t,Math.min(n,e)),mt=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},pt=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),gt=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),o=t-Math.floor(t),i=mt(r),s=mt(o),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const n=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return n-Math.floor(n)},c=l(n,a),d=l(n+1,a),u=l(n,a+1),h=c+i*(d-c);return h+s*(u+i*(l(n+1,a+1)-u)-h)},ft=(e,t,n=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(1,Math.min(8,Math.floor(n)));let r=0,o=.5,i=1;for(let s=0;a>s;s++)r+=o*gt(e*i,t*i),i*=2,o*=.5;return r},bt=(e,t,n,a=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(r))return{x:0,y:0};const o=Math.min(.02*n,.1);return{x:(e-a)*o,y:(t-r)*o}},St={liquidGlass:(e,t)=>{if(!ut(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*ot,o=t&&ut(t)?t.x-.5:0,i=t&&ut(t)?t.y-.5:0,s=lt(o,i),l=pt(1-Math.min(2*s,1)),c=ft(12*(n+.5*o)+r,12*(a+.5*i)+.7*r,3)-.5,d=ct(n,a,.4,.3,.35),u=st(.8,0,d-.05),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=lt(e,t),r=Math.pow(Math.min(a,10),2)*n;return{x:e*(1+r),y:t*(1+r)}})(n,a,.4*.1),m=1.2*(h.x-n)*u,p=1.2*(h.y-a)*u,g=.018*Math.sin(8*(n+2*o)+2*r),f=.018*Math.cos(8*(a+2*i)+1.5*r),b=(.015*Math.sin(12*(n-o)+12*(a-i)+3*r)+.012*Math.cos(10*(n+o)-10*(a-i)-2*r))*l*s,S=(Math.sin(15*n+r)*Math.cos(15*a-r)*.008+Math.sin(20*n-.5*r)*Math.cos(20*a+.5*r)*.006)*u,v=.85*(g+f+.025*c),E=m+v+b+S,y=p+.8*v+.9*b+S,N=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=lt(e,t);if(0===a)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*a*n,y:Math.sin(r)*a*n}})(n,a,.015*u),A=st(0,1,1.15*u),x=n+E+.5*N.x,_=a+y+.5*N.y;return dt(ht(x*A+.5,0,1),ht(_*A+.5,0,1))},appleFluid:(e,t)=>{if(!ut(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*ot*.6,o=t&&ut(t)?t.x-.5:0,i=t&&ut(t)?t.y-.5:0,s=lt(o,i),l=pt(1-Math.min(1.5*s,1)),c=ft(10*(n+.3*o)+r,10*(a+.3*i),5)-.5,d=ft(10*(n-.3*o),10*(a-.3*i)+.8*r,5)-.5,u=ct(n,a,.42,.32,.38),h=st(.85,-.1,u),m=Math.sin(6*n+2*r)*Math.cos(4*a-r)*.025,p=Math.cos(4*n-r)*Math.sin(6*a+2*r)*.025,g=Math.atan2(a-i,n-o),f=l*s*.08,b=Math.cos(g+r)*f,S=a+(.035*d+p+Math.sin(g+r)*f)*h;return dt(ht(n+(.035*c+m+b)*h+.5,0,1),ht(S+.5,0,1))},premiumGlass:(e,t)=>{if(!ut(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*ot*.4,o=t&&ut(t)?t.x-.5:0,i=t&&ut(t)?t.y-.5:0,s=lt(o,i),l=lt(n,a),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(a,n);let u=0,h=0;for(let v=0;3>v;v++){const e=5*(v+1),t=r*(1+.3*v),o=.01/(v+1);u+=Math.sin(n*e+t)*o,h+=Math.cos(a*e-t)*o}const m=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=ft(8*n+r,8*a-r,2)-.5,f=ct(n,a,.43,.33,.36),b=st(.9,-.05,f),S=a+(p+h+.015*g)*b;return dt(ht(n+(m+u+.015*g)*b+.5,0,1),ht(S+.5,0,1))},liquidMetal:(e,t)=>{if(!ut(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*ot*1.2,o=t&&ut(t)?t.x-.5:0,i=t&&ut(t)?t.y-.5:0,s=Math.sin(20*n+4*r)*Math.cos(15*a-3*r)*.02,l=Math.cos(15*n-2*r)*Math.sin(20*a+5*r)*.015,c=.025*ft(25*n+2*r,25*a-2*r,4),d=Math.atan2(a-i,n-o),u=lt(n-o,a-i),h=.02*Math.sin(15*u-6*r)*pt(1-Math.min(2*u,1)),m=ct(n,a,.41,.31,.37),p=st(.88,-.08,m),g=n+(s+c+Math.cos(d)*h)*p,f=a+(l+.8*c+Math.sin(d)*h)*p;return dt(ht(g+.5,0,1),ht(f+.5,0,1))},basiBasi:(e,t)=>{if(!ut(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*ot*.5,o=t&&ut(t)?t.x-.5:0,i=t&&ut(t)?t.y-.5:0,s=lt(o,i),l=pt(1-Math.min(1.2*s,1)),c=((e,t,n,a=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)?.5:.5*(Math.sin(8*e+2*n)*Math.cos(8*t-2*n)*.5+Math.sin(8*(e+.5)*1.3-2*n*.8)*Math.cos(8*(t-.3)*1.3+2*n*.8)*.3+Math.sin(8*(e-.3)*.7+2*n*1.2)*Math.cos(8*(t+.4)*.7-2*n*1.2)*.2+1)*a)(n,a,r,.8),d=.02*(c-.5),u=Math.atan2(a,n),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const a=lt(e,t),r=Math.min(.025*a,1),o=.8*r,i=1*r,s=1.2*r;return{r:{x:Math.cos(n)*o,y:Math.sin(n)*o},g:{x:Math.cos(n)*i,y:Math.sin(n)*i},b:{x:Math.cos(n)*s,y:Math.sin(n)*s}}})(n,a,u),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,f=0;for(let j=0;7>j;j++){const e=bt(n,a,(j+1)/7,o,i),t=ft((n+e.x)*(8+2*j)+r*(.5+.1*j),(a+e.y)*(8+2*j)-r*(.5+.1*j),3)-.5,s=1/(j+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const b=((e,t,n,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(a)?.5:ft(5*e+.5*a,5*t-.5*a,3)*Math.exp(-1)*.5+.5)(n,a,0,r),S=Math.cos(u)*b*.015,v=Math.sin(u)*b*.015,E=((e,t,n,a=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))return 0;const r=Math.max(1,Math.min(8,Math.floor(a)));let o=0,i=1,s=1;for(let l=0;r>l;l++)o+=Math.abs(gt(e*s+n,t*s-n))*i,s*=2,i*=.5;return o})(6*n,6*a,r,6),y=.012*Math.cos(E*Math.PI*2),N=.012*Math.sin(E*Math.PI*2),A=((e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)?.5:.5*(.7*ft(40*e+.3*n,40*t-.3*n,6)+.3*ft(80*e,80*t,4)))(n,a,r),x=.008*(A-.5),_=.008*(A-.5),T=lt(n,a),C=.35*Math.pow(Math.min(T,1),1.8)*(1+l*s*.8),L=Math.cos(u)*C,I=Math.sin(u)*C,w=Math.atan2(a-i,n-o),O=lt(n-o,a-i),R=l*Math.sin(10*O-3*r)*.025,M=Math.cos(w+2*r)*R,k=Math.sin(w+2*r)*R,D=Math.sin(10*n+5*o+2.5*r)*Math.cos(8*a-2*r)*.018,B=Math.cos(8*n-2*r)*Math.sin(10*a+5*i+2.5*r)*.018,P=(.012*Math.sin(15*Math.min(T,10)-4*r)+.008*Math.cos(20*Math.min(T,10)+3*r))*l,z=Math.cos(u)*P,U=Math.sin(u)*P,F=ct(n,a,.44,.34,.39),G=st(.92,-.12,F),V=st(.85,.1,F),H=a+(1.2*I+.8*p+1.5*f+.9*v+1*N+.6*_+1.3*k+1.1*B+.7*U+.8*d)*G*V*.85;return dt(ht(n+(1.2*L+.8*m+1.5*g+.9*S+1*y+.6*x+1.3*M+1.1*D+.7*z+d)*G*V*.85+.5,0,1),ht(H+.5,0,1))}};var vt=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(it,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(it,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=it&&"number"==typeof e.height&&e.height>0&&e.height<=it&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,n=this.options.height*this.canvasDPI;let a=0;const r=[];for(let l=0;n>l;l++)for(let o=0;t>o;o++){const i={x:o/t,y:l/n},s=this.options.fragment(i,e);let c=s.x*t-o,d=s.y*n-l;const u=Math.min(2*Math.min(o/t,(t-o)/t),2*Math.min(l/n,(n-l)/n));c*=st(0,.2,u),d*=st(0,.2,u),a=Math.max(a,Math.abs(c),Math.abs(d)),r.push(c,d)}a=Math.max(a,1);const o=this.context.createImageData(t,n),i=o.data;let s=0;for(let e=0;n>e;e++)for(let o=0;t>o;o++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(o,e,t-o-1,n-e-1)/2),u=l*d/a+.5,h=c*d/a+.5,m=4*(e*t+o);i[m]=ht(255*u,0,255),i[m+1]=ht(255*h,0,255),i[m+2]=ht(255*h,0,255),i[m+3]=255}return this.context.putImageData(o,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},fragmentShaders:St});const Et={xs:16,sm:20,md:24,lg:32,xl:40},yt=({name:t,size:n="md",weight:a="regular",color:r,className:o="",style:i,alt:s})=>{const l=v[t];return l?e("span",{className:`c-icon c-icon--${n} ${o}`,style:i,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof n?Et[n]||24:n,weight:a,color:r,"aria-label":s})}):null};yt.displayName="Icon";const Nt=s((({src:t,alt:n="Avatar",initials:a,icon:o,size:i="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:u,glass:h})=>{const[m,p]=r(!1),g=[ve.CLASSES.BASE,"md"!==i&&"c-avatar--"+i,s&&ve.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return e("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:u,children:t&&!m?e("img",{src:t,alt:n,className:"c-avatar__image",onError:()=>{p(!0)}}):e("span",a?{className:"c-avatar__initials",children:a}:o?{className:"c-avatar__icon",children:o}:{className:"c-avatar__icon",children:e(yt,{name:"User",size:"xs"===i?"xs":"sm"===i?"sm":"md"})})})}));Nt.displayName="Avatar";const At=({children:n,max:a,stacked:r=!1,className:o="",style:i,moreText:s})=>{const l=[Ee.CLASSES.BASE,r&&Ee.CLASSES.STACKED,o].filter(Boolean).join(" "),c=h.toArray(n).filter((e=>m(e)&&e.type===Nt)),d=void 0!==a&&c.length>a,u=d?c.slice(0,a):c,g=c.length-(a||0),f=m(c[0])?c[0].props:null,b=f?.size||"md",S=f?.circle||!1,v=[ve.CLASSES.BASE,Ee.CLASSES.MORE,"md"!==b&&"c-avatar--"+b,S&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:l,style:i,children:[u.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null)),d&&e("div",{className:v,children:s||"+"+g})]})};function xt(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,className:o=""}=e;return`${G.BASE_CLASS} ${n?`${G.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${G.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${o}`.trim()}}}At.displayName="AvatarGroup";const _t=s((({label:n,variant:a="primary",size:r="md",disabled:i=!1,icon:s,className:l="",glass:c,style:d})=>{const{generateBadgeClass:u}=xt({variant:a,size:r,disabled:i}),h=o(null),m=u({variant:a,size:r,disabled:i,className:`${l} ${c?"c-badge--glass":""}`.trim()}),p=t("span",{className:m,"aria-disabled":i,ref:h,style:d,children:[s&&e("span",{className:G.ICON_CLASS,children:s}),e("span",{children:n})]});if(c){const t={displacementScale:20,cornerRadius:h.current?.getBoundingClientRect().width?h.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},n=!0===c?t:{...t,...c};return e(nt,{...n,children:p})}return p}));_t.displayName="Badge";const Tt=l((({children:t,className:n="",type:a,...r},o)=>{let i="o-container";return a&&(i="o-container-"+a),e("div",{ref:o,className:`${i} ${n}`.trim(),...r,children:t})}));Tt.displayName="Container";const Ct=()=>({generateBlockClass:({spacing:e=Re.SPACING.DEFAULT,background:t="",fullWidth:n=!1,className:a=""})=>{const r=[Re.BASE_CLASS];if(e&&"none"!==e&&r.push(`${Re.SPACING_PREFIX}${e}`),t){const e=Re.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return n&&r.push(Re.CLASSES.FULL_WIDTH),a&&r.push(a),r.filter(Boolean).join(" ")}}),Lt=l((({children:t,as:n="section",spacing:a="md",container:r={},fullWidth:o=!1,className:i="",style:s,background:l="",...c},d)=>{const{generateBlockClass:u}=Ct(),h=u({spacing:a,background:l,fullWidth:o,className:i});return e(n,{ref:d,className:h,style:s,...c,children:o?t:e(Tt,{type:r.type,className:r.className,children:t})})}));Lt.displayName="Block";const It=s((({items:a,divider:r,className:o="",ariaLabel:i="Breadcrumb",LinkComponent:s,style:l})=>{const c=[j.CLASSES.BASE,o].filter(Boolean).join(" ");return e("nav",{"aria-label":i,style:l,children:e("ol",{className:c,children:a.map(((r,o)=>{const i=o===a.length-1,l=[j.CLASSES.ITEM,r.active||i?j.CLASSES.ACTIVE:""].filter(Boolean).join(" "),c=t(n,{children:[r.icon&&e("span",{className:"c-breadcrumb__icon",children:r.icon}),r.label]}),d={href:r.href,className:j.CLASSES.LINK,onClick:r.onClick,style:r.style};return e("li",{className:l,style:r.style,children:r.href&&!r.active?e(s||"a",{...d,children:c}):e("span",{className:j.CLASSES.LINK,children:c})},o)}))})})}));function wt(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,loading:!1,fullWidth:!1,block:!1,active:!1,selected:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,rounded:o=t.rounded,iconOnly:i=!1,glass:s=t.glass,loading:l=t.loading,fullWidth:c=t.fullWidth,block:d=t.block,active:u=t.active,selected:h=t.selected,className:m=""}=e,p="md"===a?"":"c-btn--"+a,g=i?"c-btn--icon":"",f=o?"c-btn--rounded":"",b=r?"c-btn--disabled":"",S=s?"c-btn--glass":"",v=l?P.CLASSES.LOADING:"",E=c?P.CLASSES.FULL_WIDTH:"",y=d?P.CLASSES.BLOCK:"",N=u?P.CLASSES.ACTIVE:"",A=h?P.CLASSES.SELECTED:"";return[P.BASE_CLASS,"c-btn--"+n,p,g,f,b,S,v,E,y,N,A,m].filter(Boolean).join(" ")},handleClick:e=>n=>{t.disabled||t.loading||!e||e(n)}}}function Ot(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:r=t.fullscreen,className:o=""}=e,i="c-spinner";return`${i} ${n?`${i}--${n}`:""} ${"md"!==a?`${i}--${a}`:""} ${r?i+"--fullscreen":""} ${o}`.trim()}}}It.displayName="Breadcrumb";const Rt=s((({size:t="md",variant:n="primary",fullscreen:a=!1,className:r="",style:o,glass:i})=>{const{generateSpinnerClass:s}=Ot({size:t,variant:n,fullscreen:a}),l=s({size:t,variant:n,fullscreen:a,className:`${r} ${i?"c-spinner--glass":""}`.trim()}),c=e("div",{className:l,style:o,role:"status",children:e("span",{className:J.VISUALLY_HIDDEN,children:"Loading..."})});if(i){const t={displacementScale:20,blurAmount:1,cornerRadius:999,mode:"shader"},n=!0===i?t:{...t,...i};return e(nt,{...n,children:c})}return c}));Rt.displayName="Spinner";class Mt{static setPrefix(e){this.prefix=e}static getPrefix(){return this.prefix}static camelToKebab(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}static kebabToCamel(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}static cssVar(e){return`--${this.prefix}-${this.camelToKebab(e)}`}static bemClass(e,t,n){let a="c-"+e;return t&&(a+="__"+t),n&&(a+="--"+n),a}static variantClass(e,t){return`c-${e}--${t}`}static sizeClass(e,t){return`c-${e}--${t}`}static stateClass(e,t){return`c-${e}--${t}`}static utilityClass(e){return"u-"+e}static layoutClass(e){return"l-"+e}static objectClass(e){return"o-"+e}}Mt.prefix="atomix";const kt=a.memo(l((({label:a,children:r,onClick:o,variant:i="primary",size:s="md",disabled:l=!1,loading:c=!1,loadingText:d,icon:h,iconName:m,iconSize:p="sm",iconPosition:g="start",iconOnly:f=!1,rounded:b=!1,fullWidth:S=!1,block:v=!1,active:E=!1,selected:y=!1,type:N="button",className:A="",as:x="button",href:_,target:T,glass:C,onHover:L,onFocus:I,onBlur:w,ariaLabel:O,ariaDescribedBy:R,ariaExpanded:M,ariaControls:k,tabIndex:D,style:z,LinkComponent:U,...F},G)=>{const V=l||c,H=!(!_||V),j=m?e(yt,{name:m,size:p}):h;wt({variant:i,size:s,disabled:V,rounded:b,glass:C,loading:c,fullWidth:S,block:v,active:E,selected:y});const Y=[P.BASE_CLASS,Mt.variantClass(B.BUTTON_PREFIX,i),"md"!==s?Mt.sizeClass(B.BUTTON_PREFIX,s):"",f?Mt.stateClass(B.BUTTON_PREFIX,B.ICON_ELEMENT):"",b?Mt.stateClass(B.BUTTON_PREFIX,"rounded"):"",V?Mt.stateClass(B.BUTTON_PREFIX,"disabled"):"",C?Mt.stateClass(B.BUTTON_PREFIX,"glass"):"",c?P.CLASSES.LOADING:"",S?P.CLASSES.FULL_WIDTH:"",v?P.CLASSES.BLOCK:"",E?P.CLASSES.ACTIVE:"",y?P.CLASSES.SELECTED:"",A].filter(Boolean).join(" "),W=u((e=>{V?e.preventDefault():o?.(e)}),[V,o]),K=u((e=>{V||L?.(e)}),[V,L]),$=u((e=>{V||I?.(e)}),[V,I]),Q=u((e=>{V||w?.(e)}),[V,w]),q=c&&d?d:a||r,Z="sm"===s?"sm":"lg"===s?"md":"sm",X=t(n,{children:[c&&e("span",{className:Mt.bemClass(B.BUTTON_PREFIX,B.SPINNER_ELEMENT),"aria-hidden":"true",children:e(Rt,{size:Z,variant:"link"===i||"string"==typeof i&&i.startsWith("outline-")?"primary":"danger"===i?"error":i})}),j&&!c&&e("span",{className:Mt.bemClass(B.BUTTON_PREFIX,B.ICON_ELEMENT),"aria-hidden":"true",children:j}),!f&&q&&e("span",{className:Mt.bemClass(B.BUTTON_PREFIX,B.LABEL_ELEMENT),children:q})]}),J={ref:G,className:Y,type:"button"!==x||H?void 0:N,onClick:W,onMouseEnter:L?K:void 0,onFocus:I?$:void 0,onBlur:w?Q:void 0,disabled:V&&"button"===x&&!H,"aria-disabled":V,"aria-busy":c,"aria-label":O||(f?a||r:void 0),"aria-describedby":R,"aria-expanded":M,"aria-controls":k,tabIndex:void 0!==D?D:V?-1:0,style:z,...F},ee={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},te=!0===C?ee:{...ee,...C};if(H){const{ref:t,...n}=J,a={...n,type:void 0,disabled:void 0};if(U){const t=U,n={...a,ref:G,href:_,target:T,rel:"_blank"===T?"noopener noreferrer":void 0},r=e(t,{...n,children:X});return C?e(nt,{...te,children:r}):r}const r=e("a",{...a,ref:G,href:_,target:T,rel:"_blank"===T?"noopener noreferrer":void 0,children:X});return C?e(nt,{...te,children:r}):r}const ne=e(x,{...J,children:X});return C?e(nt,{...te,children:ne}):ne})));kt.displayName="Button";const Dt=({children:t,className:n="",style:a,"aria-label":r,role:o="group"})=>{const i=[z.CLASSES.BASE,n].filter(Boolean).join(" "),s=h.toArray(t).filter((e=>m(e)&&e.type===kt));return e("div",{className:i,style:a,role:o,"aria-label":r,children:s.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null))})};Dt.displayName="ButtonGroup";var Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt=function(e){try{return!!e()}catch(t){return!0}},Ut=!zt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ft=Ut,Gt=Function.prototype,Vt=Gt.call,Ht=Ft&&Gt.bind.bind(Vt,Vt),jt=Ft?Ht:function(e){return function(){return Vt.apply(e,arguments)}},Yt=jt({}.isPrototypeOf),Wt=function(e){return e&&e.Math===Math&&e},Kt=Wt("object"==typeof globalThis&&globalThis)||Wt("object"==typeof window&&window)||Wt("object"==typeof self&&self)||Wt("object"==typeof Bt&&Bt)||Wt("object"==typeof Bt&&Bt)||function(){return this}()||Function("return this")(),$t=Ut,Qt=Function.prototype,qt=Qt.apply,Zt=Qt.call,Xt="object"==typeof Reflect&&Reflect.apply||($t?Zt.bind(qt):function(){return Zt.apply(qt,arguments)}),Jt=jt,en=Jt({}.toString),tn=Jt("".slice),nn=function(e){return tn(en(e),8,-1)},an=nn,rn=jt,on=function(e){if("Function"===an(e))return rn(e)},sn="object"==typeof document&&document.all,ln=void 0===sn&&void 0!==sn?function(e){return"function"==typeof e||e===sn}:function(e){return"function"==typeof e},cn={},dn=!zt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),un=Ut,hn=Function.prototype.call,mn=un?hn.bind(hn):function(){return hn.apply(hn,arguments)},pn={},gn={}.propertyIsEnumerable,fn=Object.getOwnPropertyDescriptor,bn=fn&&!gn.call({1:2},1);pn.f=bn?function(e){var t=fn(this,e);return!!t&&t.enumerable}:gn;var Sn,vn,En=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},yn=zt,Nn=nn,An=Object,xn=jt("".split),_n=yn((function(){return!An("z").propertyIsEnumerable(0)}))?function(e){return"String"===Nn(e)?xn(e,""):An(e)}:An,Tn=function(e){return null==e},Cn=Tn,Ln=TypeError,In=function(e){if(Cn(e))throw new Ln("Can't call method on "+e);return e},wn=_n,On=In,Rn=function(e){return wn(On(e))},Mn=ln,kn=function(e){return"object"==typeof e?null!==e:Mn(e)},Dn={},Bn=Dn,Pn=Kt,zn=ln,Un=function(e){return zn(e)?e:void 0},Fn=Kt.navigator,Gn=Fn&&Fn.userAgent,Vn=Gn?Gn+"":"",Hn=Kt,jn=Vn,Yn=Hn.process,Wn=Hn.Deno,Kn=Yn&&Yn.versions||Wn&&Wn.version,$n=Kn&&Kn.v8;$n&&(vn=(Sn=$n.split("."))[0]>0&&4>Sn[0]?1:+(Sn[0]+Sn[1])),!vn&&jn&&((Sn=jn.match(/Edge\/(\d+)/))&&74>Sn[1]||(Sn=jn.match(/Chrome\/(\d+)/))&&(vn=+Sn[1]));var Qn=vn,qn=Qn,Zn=zt,Xn=Kt.String,Jn=!!Object.getOwnPropertySymbols&&!Zn((function(){var e=Symbol("symbol detection");return!Xn(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qn&&41>qn})),ea=Jn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ta=ln,na=Yt,aa=Object,ra=ea?function(e){return"symbol"==typeof e}:function(e){var t=function(e,t){return 2>arguments.length?Un(Bn[e])||Un(Pn[e]):Bn[e]&&Bn[e][t]||Pn[e]&&Pn[e][t]}("Symbol");return ta(t)&&na(t.prototype,aa(e))},oa=String,ia=ln,sa=TypeError,la=function(e){if(ia(e))return e;throw new sa(function(e){try{return oa(e)}catch(t){return"Object"}}(e)+" is not a function")},ca=la,da=Tn,ua=mn,ha=ln,ma=kn,pa=TypeError,ga={exports:{}},fa=Kt,ba=Object.defineProperty,Sa=Kt,va="__core-js_shared__",Ea=ga.exports=Sa[va]||function(e,t){try{ba(fa,e,{value:t,configurable:!0,writable:!0})}catch(n){fa[e]=t}return t}(va,{});(Ea.versions||(Ea.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 ya=ga.exports,Na=In,Aa=Object,xa=function(e){return Aa(Na(e))},_a=xa,Ta=jt({}.hasOwnProperty),Ca=Object.hasOwn||function(e,t){return Ta(_a(e),t)},La=jt,Ia=0,wa=Math.random(),Oa=La(1.1.toString),Ra=Ca,Ma=Jn,ka=ea,Da=Kt.Symbol,Ba=ya["wks"]||(ya.wks={}),Pa=ka?Da.for||Da:Da&&Da.withoutSetter||function(e){return"Symbol("+(void 0===e?"":e)+")_"+Oa(++Ia+wa,36)},za=function(e){return Ra(Ba,e)||(Ba[e]=Ma&&Ra(Da,e)?Da[e]:Pa("Symbol."+e)),Ba[e]},Ua=mn,Fa=kn,Ga=ra,Va=TypeError,Ha=za("toPrimitive"),ja=ra,Ya=function(e){var t=function(e,t){if(!Fa(e)||Ga(e))return e;var n,a,r=(a=e[Ha],da(a)?void 0:ca(a));if(r){if(void 0===t&&(t="default"),n=Ua(r,e,t),!Fa(n)||Ga(n))return n;throw new Va("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&ha(n=e.toString)&&!ma(a=ua(n,e)))return a;if(ha(n=e.valueOf)&&!ma(a=ua(n,e)))return a;if("string"!==t&&ha(n=e.toString)&&!ma(a=ua(n,e)))return a;throw new pa("Can't convert object to primitive value")}(e,t)}(e,"string");return ja(t)?t:t+""},Wa=kn,Ka=Kt.document,$a=Wa(Ka)&&Wa(Ka.createElement),Qa=!dn&&!zt((function(){return 7!==Object.defineProperty($a?Ka.createElement("div"):{},"a",{get:function(){return 7}}).a})),qa=dn,Za=mn,Xa=pn,Ja=En,er=Rn,tr=Ya,nr=Ca,ar=Qa,rr=Object.getOwnPropertyDescriptor;cn.f=qa?rr:function(e,t){if(e=er(e),t=tr(t),ar)try{return rr(e,t)}catch(n){}if(nr(e,t))return Ja(!Za(Xa.f,e,t),e[t])};var or=zt,ir=ln,sr=/#|\.prototype\./,lr=function(e,t){var n=dr[cr(e)];return n===hr||n!==ur&&(ir(t)?or(t):!!t)},cr=lr.normalize=function(e){return(e+"").replace(sr,".").toLowerCase()},dr=lr.data={},ur=lr.NATIVE="N",hr=lr.POLYFILL="P",mr=lr,pr=la,gr=Ut,fr=on(on.bind),br={},Sr=dn&&zt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),vr=kn,Er=String,yr=TypeError,Nr=dn,Ar=Qa,xr=Sr,_r=function(e){if(vr(e))return e;throw new yr(Er(e)+" is not an object")},Tr=Ya,Cr=TypeError,Lr=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,wr="enumerable",Or="configurable",Rr="writable";br.f=Nr?xr?function(e,t,n){if(_r(e),t=Tr(t),_r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Rr in n&&!n[Rr]){var a=Ir(e,t);a&&a[Rr]&&(e[t]=n.value,n={configurable:Or in n?n[Or]:a[Or],enumerable:wr in n?n[wr]:a[wr],writable:!1})}return Lr(e,t,n)}:Lr:function(e,t,n){if(_r(e),t=Tr(t),_r(n),Ar)try{return Lr(e,t,n)}catch(a){}if("get"in n||"set"in n)throw new Cr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Mr=br,kr=En,Dr=dn?function(e,t,n){return Mr.f(e,t,kr(1,n))}:function(e,t,n){return e[t]=n,e},Br=Kt,Pr=Xt,zr=on,Ur=ln,Fr=cn.f,Gr=mr,Vr=Dn,Hr=function(e,t){return pr(e),void 0===t?e:gr?fr(e,t):function(){return e.apply(t,arguments)}},jr=Dr,Yr=Ca,Wr=function(e){var t=function(n,a,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,a)}return new e(n,a,r)}return Pr(e,this,arguments)};return t.prototype=e.prototype,t},Kr=function(e,t){var n,a,r,o,i,s,l,c,d,u=e.target,h=e.global,m=e.stat,p=e.proto,g=h?Br:m?Br[u]:Br[u]&&Br[u].prototype,f=h?Vr:Vr[u]||jr(Vr,u,{})[u],b=f.prototype;for(o in t)a=!(n=Gr(h?o:u+(m?".":"#")+o,e.forced))&&g&&Yr(g,o),s=f[o],a&&(l=e.dontCallGetSet?(d=Fr(g,o))&&d.value:g[o]),i=a&&l?l:t[o],(n||p||typeof s!=typeof i)&&(c=e.bind&&a?Hr(i,Br):e.wrap&&a?Wr(i):p&&Ur(i)?zr(i):i,(e.sham||i&&i.sham||s&&s.sham)&&jr(c,"sham",!0),jr(f,o,c),p&&(Yr(Vr,r=u+"Prototype")||jr(Vr,r,{}),jr(Vr[r],o,i),e.real&&b&&(n||!b[o])&&jr(b,o,i)))},$r=Math.ceil,Qr=Math.floor,qr=Math.trunc||function(e){var t=+e;return(t>0?Qr:$r)(t)},Zr=function(e){var t=+e;return t!=t||0===t?0:qr(t)},Xr=Zr,Jr=Math.max,eo=Math.min,to=Zr,no=Math.min,ao=function(e){return t=e.length,(n=to(t))>0?no(n,9007199254740991):0;var t,n},ro=Rn,oo=ao,io=function(e){return function(t,n,a){var r=ro(t),o=oo(r);if(0===o)return!e&&-1;var i,s=function(e,t){var n=Xr(e);return 0>n?Jr(n+t,0):eo(n,t)}(a,o);if(e&&n!=n){for(;o>s;)if((i=r[s++])!=i)return!0}else for(;o>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},so=[io(!0),io(!1)][0];Kr({target:"Array",proto:!0,forced:zt((function(){return!1}))},{includes:function(e){return so(this,e,arguments.length>1?arguments[1]:void 0)}});var lo=Kt,co=Dn,uo=function(e,t){var n=co[e+"Prototype"],a=n&&n[t];if(a)return a;var r=lo[e],o=r&&r.prototype;return o&&o[t]},ho=uo("Array","includes"),mo=kn,po=nn,go=za("match"),fo=TypeError,bo={};bo[za("toStringTag")]="z";var So=bo+""=="[object z]",vo=ln,Eo=nn,yo=za("toStringTag"),No=Object,Ao="Arguments"===Eo(function(){return arguments}()),xo=So?Eo:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=No(e),yo))?n:Ao?Eo(t):"Object"===(a=Eo(t))&&vo(t.callee)?"Arguments":a},_o=String,To=za("match"),Co=Kr,Lo=In,Io=function(e){if("Symbol"===xo(e))throw new TypeError("Cannot convert a Symbol value to a string");return _o(e)},wo=jt("".indexOf);Co({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[To]=!1,"/./"[e](t)}catch(a){}}return!1}("includes")},{includes:function(e){return!!~wo(Io(Lo(this)),Io(function(e){if(function(e){var t;return mo(e)&&(void 0!==(t=e[go])?!!t:"RegExp"===po(e))}(e))throw new fo("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var Oo=uo("String","includes"),Ro=Yt,Mo=ho,ko=Oo,Do=Array.prototype,Bo=String.prototype,Po=Pt((function(e){var t=e.includes;return e===Do||Ro(Do,e)&&t===Do.includes?Mo:"string"==typeof e||e===Bo||Ro(Bo,e)&&t===Bo.includes?ko:t}));const zo=({title:a,children:r,icon:o,variant:i="primary",onClose:s,actions:l,oneLine:c=!1,toast:d=!1,glass:u,className:h,style:m,...p})=>{const{generateCalloutClass:g,handleClose:f}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,oneLine:a=t.oneLine,toast:r=t.toast,glass:o=t.glass,className:i=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${o?"c-callout--glass":""} ${i}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:i,oneLine:c,toast:d,glass:u,className:h,style:m}),b=()=>{var e,t;const n={role:"region"};return d?(n.role="alert",n["aria-live"]="polite"):Po(e=["warning","error"]).call(e,i)?(n.role="alert",n["aria-live"]="assertive"):Po(t=["info","success"]).call(t,i)&&(n.role="status",n["aria-live"]="polite"),n},S=t(n,{children:[t("div",{className:"c-callout__content",children:[o&&e("div",{className:"c-callout__icon",children:o}),t("div",{className:"c-callout__message",children:[a&&e("div",{className:"c-callout__title",children:a}),r&&e("div",{className:"c-callout__text",children:r})]})]}),l&&e("div",{className:"c-callout__actions",children:l}),s&&e("button",{className:"c-callout__close-btn",onClick:f(s),"aria-label":"Close",children:e(yt,{name:"X",size:"md"})})]});if(u){const t={displacementScale:30,cornerRadius:8,elasticity:0},n=!0===u?t:{...t,...u};return e("div",{className:g({variant:i,oneLine:c,toast:d,glass:u,className:h}),...b(),...p,style:m,children:e(nt,{...n,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:n.cornerRadius},children:S})})})}return e("div",{className:g({variant:i,oneLine:c,toast:d,glass:u,className:h}),...b(),...p,style:m,children:S})};zo.displayName="Callout";const Uo=a.memo(l((({size:a="md",variant:r="",appearance:o="filled",elevation:i="none",hoverable:s=!1,hoverElevation:l="md",row:c=!1,flat:h=!1,active:m=!1,disabled:p=!1,loading:g=!1,selected:f=!1,interactive:b=!1,header:S,image:v,imageAlt:E="",title:y,text:N,actions:A,icon:x,footer:_,children:T,onClick:C,onHover:L,onFocus:I,href:w,target:O,glass:R,role:M,ariaLabel:k,ariaDescribedBy:D,tabIndex:B,className:P="",style:z,...U},F)=>{const G=!!(C||w||b),V=p||g,H=d((()=>[fe.CLASSES.BASE,"sm"===a?fe.CLASSES.SM:"","md"===a?fe.CLASSES.MD:"","lg"===a?fe.CLASSES.LG:"",r?"c-card--"+r:"","filled"===o?fe.CLASSES.FILLED:"","outlined"===o?fe.CLASSES.OUTLINED:"","ghost"===o?fe.CLASSES.GHOST:"","elevated"===o?fe.CLASSES.ELEVATED:"","none"===i?fe.CLASSES.ELEVATION_NONE:"","sm"===i?fe.CLASSES.ELEVATION_SM:"","md"===i?fe.CLASSES.ELEVATION_MD:"","lg"===i?fe.CLASSES.ELEVATION_LG:"","xl"===i?fe.CLASSES.ELEVATION_XL:"",s?"c-card--hoverable":"",s&&l?"c-card--hover-elevation-"+l:"",c?fe.CLASSES.ROW:"",h?fe.CLASSES.FLAT:"",m?fe.CLASSES.ACTIVE:"",p?fe.CLASSES.DISABLED:"",g?fe.CLASSES.LOADING:"",f?fe.CLASSES.SELECTED:"",b||G?fe.CLASSES.INTERACTIVE:"",R?fe.CLASSES.GLASS:"",P].filter(Boolean).join(" ")),[a,r,o,i,s,l,c,h,m,p,g,f,b,G,R,P]),j=d((()=>M||(w?"link":G?"button":"article")),[M,w,G]),Y=u((e=>{V?e.preventDefault():C?.(e)}),[V,C]),W=u((e=>{V?e.preventDefault():!G||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C&&C(e))}),[V,G,C]),K=u((e=>{V||L?.(e)}),[V,L]),$=u((e=>{V||I?.(e)}),[V,I]),Q=d((()=>void 0!==B?B:V?-1:G?0:void 0),[B,V,G]),q=d((()=>t(n,{children:[g&&e("div",{className:"c-card__loading","aria-label":"Loading",children:e("div",{className:"c-card__spinner"})}),(v||x||S)&&t("div",{className:fe.SELECTORS.HEADER.substring(1),children:[S,v&&e("img",{src:v,alt:E,className:fe.SELECTORS.IMAGE.substring(1),loading:"lazy"}),x&&e("div",{className:fe.SELECTORS.ICON.substring(1),children:x})]}),t("div",{className:fe.SELECTORS.BODY.substring(1),children:[y&&e("h3",{className:fe.SELECTORS.TITLE.substring(1),children:y}),N&&e("p",{className:fe.SELECTORS.TEXT.substring(1),children:N}),T]}),A&&e("div",{className:fe.SELECTORS.ACTIONS.substring(1),children:A}),_&&e("div",{className:fe.SELECTORS.FOOTER.substring(1),children:_})]})),[g,v,E,x,S,y,N,T,A,_]),Z={className:H,style:z,role:j,"aria-label":k,"aria-describedby":D,"aria-disabled":!!V||void 0,tabIndex:Q,onClick:G?Y:void 0,onKeyDown:G?W:void 0,onMouseEnter:L?K:void 0,onFocus:I?$:void 0,...U};if(w&&!V){const t=e("a",{...Z,ref:F,href:w,target:O,rel:"_blank"===O?"noopener noreferrer":void 0,children:q});return R?e(nt,{...!0===R?{}:R,elasticity:0,children:t}):t}const X=e("div",{...Z,ref:F,children:q});return R?e(nt,{...!0===R?{}:R,elasticity:0,children:X}):X})));Uo.displayName="Card";const Fo=l((({title:n,subtitle:a,action:r,icon:o,children:i,className:s="",...l},c)=>{const d=`${fe.SELECTORS.HEADER.substring(1)} ${s}`.trim();return t("div",{ref:c,className:d,...l,children:[o&&e("div",{className:fe.SELECTORS.ICON.substring(1),children:o}),(n||a)&&t("div",{children:[n&&e("h3",{className:fe.SELECTORS.TITLE.substring(1),children:n}),a&&e("p",{className:fe.SELECTORS.TEXT.substring(1),children:a})]}),r&&e("div",{className:fe.SELECTORS.ACTIONS.substring(1),children:r}),i]})}));Fo.displayName="CardHeader";const Go=l((({scrollable:t=!1,maxHeight:n,children:a,className:r="",style:o,...i},s)=>{const l=`${fe.SELECTORS.BODY.substring(1)} ${t?"c-card__body--scrollable":""} ${r}`.trim(),c={...o,...t&&n?{maxHeight:"number"==typeof n?n+"px":n,overflowY:"auto"}:{}};return e("div",{ref:s,className:l,style:c,...i,children:a})}));Go.displayName="CardBody";const Vo=l((({align:t,children:n,className:a="",style:r,...o},i)=>{const s=`${fe.SELECTORS.FOOTER.substring(1)} ${t?"c-card__footer--align-"+t:""} ${a}`.trim();return e("div",{ref:i,className:s,style:r,...o,children:n})}));Vo.displayName="CardFooter",Uo.Header=Fo,Uo.Body=Go,Uo.Footer=Vo;const Ho=(e={})=>{const{elevationEffect:t=!1,elevationClass:n=fe.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:i="click",focusEffect:s=!1,clickable:l=!1,onClick:c}=e,d=o(null),h=o(null),m=o(null),[p,g]=r(!1),[f,b]=r(!1),[S,v]=r(!1),[E,y]=r(!1),N=u((e=>{a&&"click"===i&&g((e=>!e)),c&&c(e)}),[a,i,c]),A=u((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===i&&g((e=>!e)),c&&c(e))}),[a,i,c]),x=u((()=>{y(!0),t&&b(!0),a&&"hover"===i&&g(!0)}),[t,a,i]),_=u((()=>{y(!1),t&&b(!1),a&&"hover"===i&&g(!1)}),[t,a,i]),T=u((()=>{v(!0)}),[]),C=u((()=>{v(!1)}),[]),L=u((()=>({className:[fe.CLASSES.BASE,f?n:"",p?fe.CLASSES.FLIPPED:"",S&&s?fe.CLASSES.FOCUSED:"",l?fe.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:d,tabxwIndex:l||a?0:-1,role:l?"button":void 0,onMouseEnter:x,onMouseLeave:_,onFocus:T,onBlur:C,onClick:N,onKeyDown:A})),[f,p,S,n,s,l,x,_,T,C,N,A,a]);return{cardRef:d,frontRef:h,backRef:m,isFlipped:p,isElevated:f,isFocused:S,isHovered:E,handleClick:N,handleKeyDown:A,handleMouseEnter:x,handleMouseLeave:_,handleFocus:T,handleBlur:C,getCardProps:L}},jo=({elevationClass:t="is-elevated",className:n="",style:a,children:r,onClick:o,...i})=>{const{getCardProps:s}=Ho({elevationEffect:!0,elevationClass:t,clickable:!!o,onClick:o,focusEffect:!0}),l=s();return e("div",{className:`${n} ${l.className}`,ref:l.ref,style:a,tabIndex:l.tabIndex,role:l.role,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,onFocus:l.onFocus,onBlur:l.onBlur,onClick:l.onClick,onKeyDown:l.onKeyDown,children:e(Uo,{...i,className:"",onClick:void 0,children:r})})};jo.displayName="ElevationCard";var Yo=la,Wo=xa,Ko=_n,$o=ao,Qo=TypeError,qo="Reduce of empty array with no initial value",Zo=function(e){return function(t,n,a,r){var o=Wo(t),i=Ko(o),s=$o(o);if(Yo(n),0===s&&2>a)throw new Qo(qo);var l=e?s-1:0,c=e?-1:1;if(2>a)for(;;){if(l in i){r=i[l],l+=c;break}if(l+=c,e?0>l:l>=s)throw new Qo(qo)}for(;e?l>=0:s>l;l+=c)l in i&&(r=n(r,i[l],l,o));return r}},Xo={left:Zo(!1),right:Zo(!0)},Jo=zt,ei=Kt,ti=Vn,ni=nn,ai=function(e){return ti.slice(0,e.length)===e},ri=ai("Bun/")?"BUN":ai("Cloudflare-Workers")?"CLOUDFLARE":ai("Deno/")?"DENO":ai("Node.js/")?"NODE":ei.Bun&&"string"==typeof Bun.version?"BUN":ei.Deno&&"object"==typeof Deno.version?"DENO":"process"===ni(ei.process)?"NODE":ei.window&&ei.document?"BROWSER":"REST",oi=Xo.left;Kr({target:"Array",proto:!0,forced:!("NODE"===ri)&&Qn>79&&83>Qn||!function(){var e=[].reduce;return!!e&&Jo((function(){e.call(null,(function(){return 1}),1)}))}()},{reduce:function(e){var t=arguments.length;return oi(this,e,t,t>1?arguments[1]:void 0)}});var ii=uo("Array","reduce"),si=Yt,li=ii,ci=Array.prototype,di=Pt((function(e){var t=e.reduce;return e===ci||si(ci,e)&&t===ci.reduce?li:t}));function ui(e){const[t,n]=r({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}}),a=o(null);i((()=>()=>{a.current&&cancelAnimationFrame(a.current)}),[]);const s=u(((e,t,a,r,o,i)=>{n((n=>({...n,hoveredPoint:{datasetIndex:e,pointIndex:t,x:a,y:r,clientX:o,clientY:i}})))}),[]),l=u((()=>{n((e=>({...e,hoveredPoint:null})))}),[]),c=u(((e,t)=>{n((n=>{const a=n.selectedPoints.some((n=>n.datasetIndex===e&&n.pointIndex===t));return{...n,selectedPoints:a?n.selectedPoints.filter((n=>!(n.datasetIndex===e&&n.pointIndex===t))):[...n.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),d=u(((e,t,a)=>{n((n=>{const r=1-.001*e,o=Math.max(.1,Math.min(10,n.zoomLevel*r)),i=o/n.zoomLevel,s={x:t?t-(t-n.panOffset.x)*i:n.panOffset.x,y:a?a-(a-n.panOffset.y)*i:n.panOffset.y};return{...n,zoomLevel:o,panOffset:s}}))}),[]),h=u(((e,t)=>{n((n=>({...n,panOffset:{x:n.panOffset.x+e,y:n.panOffset.y+t}})))}),[]),m=u(((e,t)=>{n((n=>({...n,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=u((()=>{n((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=u(((e,t)=>{n((n=>({...n,crosshair:{x:e,y:t}})))}),[]),f=u((()=>{n((e=>({...e,crosshair:null})))}),[]),b=u((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a={...n,touchState:{...n.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&n.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,o=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:r,y:o}}}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{...a,touchState:{...a.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return a}))}),[]),S=u((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&n.isDragging&&n.dragStart&&n.panEnabled){const e=t[0].x-a.left,r=t[0].y-a.top,o=n.touchState.touches[0];let i,s;o?(i=e-(o.x-a.left),s=r-(o.y-a.top)):(i=e-n.dragStart.x,s=r-n.dragStart.y);const l=.6,c=i*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...n,panOffset:{x:n.panOffset.x+c,y:n.panOffset.y+d},touchState:{...n.touchState,touches:t}}:{...n,touchState:{...n.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&n.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(n.touchState.lastDistance>0){const r=e/n.touchState.lastDistance,o=Math.max(.1,Math.min(10,n.zoomLevel*r)),i=(t[0].x+t[1].x)/2-a.left,s=(t[0].y+t[1].y)/2-a.top,l=o/n.zoomLevel,c={x:i-(i-n.panOffset.x)*l,y:s-(s-n.panOffset.y)*l};return{...n,zoomLevel:o,panOffset:c,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),v=u((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{if(0===t.length)return{...n,isDragging:!1,dragStart:null,touchState:{...n.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&n.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,o=t[0].y-a.top;return{...n,dragStart:{x:r,y:o},touchState:{...n.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{...n,touchState:{...n.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),E=u((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),y=u((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),N=u((e=>{"pen"===e.pointerType&&n((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),A=u(((e,t=we.DEFAULT_WIDTH,n=we.DEFAULT_HEIGHT,a={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;const o=e.flatMap((e=>e.data));if(0===o.length)return null;const i=Math.min(...o.map((e=>e.value))),s=Math.max(...o.map((e=>e.value))),l=s-i||1,c=t-a.left-a.right,d=n-a.top-a.bottom;return{xScale:(e,t=o.length)=>t>1?a.left+e/(t-1)*c:a.left+c/2,yScale:e=>a.top+d-(e-i)/l*d,minValue:i,maxValue:s,valueRange:l,innerWidth:c,innerHeight:d,width:t,height:n,padding:a}}),[]),x=u((e=>{if(0>=e)return[];const t=[];for(let n=0;e>n;n++){const e=n%we.DEFAULT_COLORS.length;t.push(we.DEFAULT_COLORS[e])}return t}),[]),_=o(null);return{interactionState:t,setInteractionState:n,handlePointHover:s,handlePointLeave:l,handlePointClick:c,handleZoom:d,handlePan:h,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:f,handleTouchStart:b,handleTouchMove:S,handleTouchEnd:v,handlePointerDown:E,handlePointerMove:y,handlePointerUp:N,calculateScales:A,getChartColors:x,svgRef:_}}const hi=s(l((({chartType:n="line",groups:a=[],enableDefaults:s=!0,defaults:l={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:c=["png","svg","csv"],size:d="md",position:h="top",onRefresh:m,onExport:p,onFullscreen:g,onSettings:f,onZoomIn:b,onZoomOut:S,onZoomReset:v,onPanToggle:E,onReset:y,onGridToggle:N,onLegendToggle:A,onTooltipsToggle:x,onAnimationsToggle:_,state:T={},className:C="",...L},I)=>{const[w,O]=r(!1),[R,M]=r(!1),k=o(null),D=o(null),B=o(null),P=o(null),z=a&&a.length>0?{refresh:l.refresh??!0,export:l.export??!0,fullscreen:l.fullscreen??!0,settings:l.settings??!0,zoom:a.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:a.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:a.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:l.grid??!0,legend:l.legend??!0,tooltips:l.tooltips??!0,animations:l.animations??!0}:l;i((()=>{const e=e=>{k.current&&!k.current.contains(e.target)&&B.current&&!B.current.contains(e.target)&&O(!1),D.current&&!D.current.contains(e.target)&&P.current&&!P.current.contains(e.target)&&M(!1)};if(w||R)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[w,R]),i((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&z.refresh&&m&&(e.preventDefault(),m()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&z.export&&p&&(e.preventDefault(),O(!w)),"F11"===e.key&&z.fullscreen&&g&&(e.preventDefault(),g(!T.isFullscreen))," "===e.key&&z.pan&&E&&(e.preventDefault(),E(!T.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!z.reset||(e.preventDefault(),v?.(),y?.()),"+"!==e.key&&"="!==e.key||z.zoom&&b&&(e.preventDefault(),b()),"-"!==e.key&&"_"!==e.key||z.zoom&&S&&(e.preventDefault(),S()),"Escape"===e.key&&(O(!1),M(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[z,m,p,g,E,v,y,b,S,T,w]);const U=u((()=>{const e=[];return z.refresh&&m&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:m,disabled:T.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),z.export&&p&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>O(!w),disabled:T.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[z,m,p,T,w]),F=u((()=>{const e=[];return z.zoom&&(b||S)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>b?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>S?.(),tooltip:"Zoom out (-)",shortcut:"-"}),z.pan&&E&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>E?.(!T.panEnabled),active:T.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),z.reset&&(v||y)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{v?.(),y?.()},tooltip:"Reset view (R)",shortcut:"R"}),z.fullscreen&&g&&e.push({id:"fullscreen",label:T.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:T.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>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}]:[]}),[z,b,S,E,v,y,g,T]),G=u((()=>{const e=[];return z.grid&&N&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>N(!T.showGrid),active:T.showGrid,tooltip:"Toggle grid lines"}),z.legend&&A&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>A(!T.showLegend),active:T.showLegend,tooltip:"Toggle legend"}),z.tooltips&&x&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>x(!T.showTooltips),active:T.showTooltips,tooltip:"Toggle tooltips"}),z.animations&&_&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>_(!T.animationsEnabled),active:T.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[z,N,A,x,_,T]),V=u((()=>{const e=[];return z.settings&&f&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>M(!R),active:R,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[z,f,R]),H=a&&a.length>0?a:s?[...U(),...F(),...G(),...V()]:[],j=n=>{const a="export"===n.id?B:"settings"===n.id?P:null;return t("button",{ref:a,className:`${we.ACTION_CLASS} ${n.variant?`${we.ACTION_CLASS}--${n.variant}`:""} ${n.active?"is-active":""}`,onClick:()=>{if(n.onClick)n.onClick();else if("export"===n.id&&p)O(!w);else if("settings"===n.id&&f)M(!R);else switch(n.id){case"zoom-in":b?.();break;case"zoom-out":S?.();break;case"pan":E?.(!T.panEnabled);break;case"reset":v?.(),y?.();break;case"fullscreen":g?.(!T.isFullscreen);break;case"refresh":m?.()}},disabled:n.disabled,title:n.tooltip,type:"button","aria-label":n.label,"aria-pressed":n.active?"true":"false","aria-expanded":"export"===n.id?w:"settings"===n.id?R:void 0,children:[e(yt,{name:n.icon,size:"sm"}),"lg"===d&&e("span",{className:we.ACTION_CLASS+"-label",children:n.label})]},n.id)},Y=`${we.TOOLBAR_CLASS} ${we.TOOLBAR_CLASS}--${d} ${we.TOOLBAR_CLASS}--${h} ${C}`.trim();return e("div",{ref:I,className:Y,...L,children:H.map(((a,r)=>t("div",{className:we.TOOLBAR_CLASS+"-group",children:[a.separator&&r>0&&e("div",{className:we.TOOLBAR_CLASS+"-separator"}),a.label&&"lg"===d&&e("span",{className:we.TOOLBAR_CLASS+"-group-label",children:a.label}),t("div",{className:we.TOOLBAR_CLASS+"-actions",children:[a.actions.map(j),a.actions.some((e=>"export"===e.id))&&(w&&p?t("div",{ref:k,className:""+we.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[e("div",{className:we.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),c.map((t=>e("button",{className:""+we.EXPORT_OPTION_CLASS,onClick:()=>{p(t),O(!1)},disabled:T.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+t.toUpperCase(),children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(R?t("div",{ref:D,className:""+we.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[e("div",{className:we.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t("div",{className:we.SETTINGS_MENU_CLASS+"-content",children:[z.grid&&N&&e("div",{className:we.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:we.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.showGrid??!1,onChange:e=>N(e.target.checked),"aria-label":"Toggle grid lines"}),e("span",{className:we.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),z.legend&&A&&e("div",{className:we.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:we.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.showLegend??!1,onChange:e=>A(e.target.checked),"aria-label":"Toggle legend"}),e("span",{className:we.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),z.tooltips&&x&&e("div",{className:we.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:we.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.showTooltips??!1,onChange:e=>x(e.target.checked),"aria-label":"Toggle tooltips"}),e("span",{className:we.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),z.animations&&_&&e("div",{className:we.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:we.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:T.animationsEnabled??!1,onChange:e=>_(e.target.checked),"aria-label":"Toggle animations"}),e("span",{className:we.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==T.zoomLevel&&t("div",{className:`${we.SETTINGS_MENU_CLASS}-item ${we.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:we.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t("span",{className:we.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(T.zoomLevel||1)),"%"]})]}),t("div",{className:`${we.SETTINGS_MENU_CLASS}-item ${we.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:we.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),e("span",{className:we.SETTINGS_MENU_CLASS+"-value",children:n})]})]})]}):null)]})]},a.id)))})})));hi.displayName="ChartToolbar";const mi=g(null),pi=s(l((({children:n,type:a="line",size:s="md",variant:l="primary",title:c,subtitle:h,loading:m=!1,error:p,className:g="","aria-label":f,onFullscreen:b,onExport:S,onRefresh:v,showToolbar:E=!1,enableFullscreen:y=!1,enableExport:N=!1,enableRefresh:A=!1,exportFormats:x=["png","svg","csv"],datasets:_,config:T,toolbarConfig:C,customToolbarActions:L,customToolbarGroups:I,data:w,showLegend:O,interactive:R,fullscreen:M,onDataPointClick:k,onLegendItemClick:D,glass:B,...P},z)=>{const[U,F]=r(!1),[G,V]=r(!1),H=o(null),[j,Y]=r(1),[W,K]=r({x:0,y:0}),[$,Q]=r(!1),q=u((e=>{F(e),b?.(e)}),[b]),Z=u((()=>{Y((e=>Math.min(1.2*e,5)))}),[]),X=u((()=>{Y((e=>Math.max(e/1.2,.2)))}),[]),J=u((()=>{Y(1),K({x:0,y:0})}),[]),ee=u((e=>{Q(e)}),[]),te=u((()=>{Y(1),K({x:0,y:0}),Q(!1)}),[]),ne=d((()=>({onRefresh:v,onExport:S,onFullscreen:q,onZoomIn:Z,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te})),[v,S,q,Z,X,J,ee,te]),{state:ae,handlers:re,toolbarGroups:oe}=function(e,t={},n={}){const[a,o]=r({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:s=!0,defaults:l={},exportFormats:c=["png","svg","csv"],customActions:h=[],customGroups:m=[]}=t,p=u((()=>{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=d((()=>({...p(),...l})),[p,l]),f={onRefresh:u((()=>{o((e=>({...e,isRefreshing:!0}))),n.onRefresh?.(),setTimeout((()=>{o((e=>({...e,isRefreshing:!1})))}),1e3)}),[n.onRefresh]),onExport:u((async e=>{o((e=>({...e,isExporting:!0})));try{await(n.onExport?.(e))}finally{o((e=>({...e,isExporting:!1})))}}),[n.onExport]),onFullscreen:u((e=>{o((t=>({...t,isFullscreen:e}))),n.onFullscreen?.(e)}),[n.onFullscreen]),onZoomIn:u((()=>{o((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),n.onZoomIn?.()}),[n.onZoomIn]),onZoomOut:u((()=>{o((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),n.onZoomOut?.()}),[n.onZoomOut]),onZoomReset:u((()=>{o((e=>({...e,zoomLevel:1}))),n.onZoomReset?.()}),[n.onZoomReset]),onPanToggle:u((e=>{o((t=>({...t,panEnabled:e}))),n.onPanToggle?.(e)}),[n.onPanToggle]),onReset:u((()=>{o((e=>({...e,zoomLevel:1,panEnabled:!1}))),n.onReset?.()}),[n.onReset]),onGridToggle:u((e=>{o((t=>({...t,showGrid:e}))),n.onGridToggle?.(e)}),[n.onGridToggle]),onLegendToggle:u((e=>{o((t=>({...t,showLegend:e}))),n.onLegendToggle?.(e)}),[n.onLegendToggle]),onTooltipsToggle:u((e=>{o((t=>({...t,showTooltips:e}))),n.onTooltipsToggle?.(e)}),[n.onTooltipsToggle]),onAnimationsToggle:u((e=>{o((t=>({...t,animationsEnabled:e}))),n.onAnimationsToggle?.(e)}),[n.onAnimationsToggle]),onSettings:u((()=>{}),[])},b=u((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:f.onRefresh,disabled:a.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>f.onExport("png"),disabled:a.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const n=[];g.zoom&&n.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:f.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:f.onZoomOut,tooltip:"Zoom out"}),g.pan&&n.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f.onPanToggle(!a.panEnabled),active:a.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&n.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:f.onReset,tooltip:"Reset view"}),g.fullscreen&&n.push({id:"fullscreen",label:a.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:a.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f.onFullscreen(!a.isFullscreen),variant:"success",tooltip:(a.isFullscreen?"Exit":"Enter")+" fullscreen"}),n.length>0&&e.push({id:"view-actions",label:"View",actions:n,separator:!0});const r=[];if(g.grid&&r.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>f.onGridToggle(!a.showGrid),active:a.showGrid,tooltip:"Toggle grid"}),g.legend&&r.push({id:"legend",label:"Legend",icon:"List",onClick:()=>f.onLegendToggle(!a.showLegend),active:a.showLegend,tooltip:"Toggle legend"}),g.tooltips&&r.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>f.onTooltipsToggle(!a.showTooltips),active:a.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&r.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>f.onAnimationsToggle(!a.animationsEnabled),active:a.animationsEnabled,tooltip:"Toggle animations"}),r.length>0&&e.push({id:"display-actions",label:"Display",actions:r,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:f.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,a,f,h,m]);return i((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),f.onRefresh());break;case"e":g.export&&(e.preventDefault(),f.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),f.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),f.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),f.onReset());break;case" ":g.pan&&(e.preventDefault(),f.onPanToggle(!a.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,a,f]),{state:a,setState:o,handlers:f,toolbarGroups:b(),config:{enableDefaults:s,defaults:g,exportFormats:c}}}(a,{enableDefaults:E,defaults:{refresh:A,export:N,fullscreen:y,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:x},ne);ui(),i((()=>{Y(ae.zoomLevel)}),[ae.zoomLevel]),i((()=>{Q(ae.panEnabled)}),[ae.panEnabled]),i((()=>{ae.zoomLevel}),[j,ae.zoomLevel]);const ie=gi({type:a,size:s,variant:l,loading:m,error:p,className:g,interactive:R,panEnabled:$});i((()=>{F(ae.isFullscreen),V(ae.isExporting)}),[ae.isFullscreen,ae.isExporting]);const se=`${ie}${U?" "+we.CLASSES.FULLSCREEN:""}${B?" c-chart--glass":""}`,le=d((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,enableLiquidBlur:!1,enableBorderEffect:!0,mode:"standard",mouseContainer:H,reducedMotion:!1})),[]),ce=d((()=>B?!0===B?le:{...le,...B}:null),[B,le]),de=d((()=>ce?.cornerRadius||void 0),[ce?.cornerRadius]),ue=d((()=>({zoomLevel:j,panOffset:W,panEnabled:$,onZoomIn:Z,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,setZoomLevel:Y,setPanOffset:K,setPanEnabled:Q,toolbarState:{showTooltips:ae.showTooltips,showLegend:ae.showLegend,animationsEnabled:ae.animationsEnabled,showGrid:ae.showGrid}})),[j,W,$,Z,X,J,ee,te,Q,ae.showTooltips,ae.showLegend,ae.animationsEnabled,ae.showGrid]),he=t("div",{ref:H,className:se,"aria-label":f||a+" chart",role:"img",tabIndex:0,...P,children:[(c||h||E)&&t("div",{className:we.HEADER_CLASS+" u-d-flex u-justify-between u-align-items-start u-gap-4",children:[t("div",{className:we.HEADER_CONTENT_CLASS+" u-flex-1",children:[c&&e("h3",{className:we.TITLE_CLASS+" u-mb-1",children:c}),h&&e("p",{className:we.SUBTITLE_CLASS+" u-mb-0",children:h})]}),(()=>{if(!E)return null;const t=!oe||0===oe.length;return e(hi,{chartType:a,groups:oe,defaults:{refresh:A,export:N,fullscreen:y,zoom:void 0!==ae.zoomLevel,pan:void 0!==ae.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:x,state:{isFullscreen:ae.isFullscreen,isExporting:ae.isExporting,isRefreshing:ae.isRefreshing,zoomLevel:j,panEnabled:$,showGrid:ae.showGrid,showLegend:ae.showLegend,showTooltips:ae.showTooltips,animationsEnabled:ae.animationsEnabled},...t?{onRefresh:re.onRefresh,onExport:re.onExport,onFullscreen:re.onFullscreen,onZoomIn:Z,onZoomOut:X,onZoomReset:J,onPanToggle:ee,onReset:te,onSettings:re.onSettings,onGridToggle:re.onGridToggle,onLegendToggle:re.onLegendToggle,onTooltipsToggle:re.onTooltipsToggle,onAnimationsToggle:re.onAnimationsToggle}:{}})})()]}),t("div",{className:we.CONTENT_CLASS,children:[m&&t("div",{className:we.LOADING_CLASS,children:[e("div",{className:we.LOADING_SPINNER_CLASS}),e("span",{className:we.LOADING_TEXT_CLASS,children:ae.isExporting?"Exporting chart...":ae.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:we.ERROR_CLASS,children:[e("div",{className:we.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:we.ERROR_CONTENT_CLASS,children:[e("div",{className:we.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:we.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!n&&t("div",{className:we.EMPTY_CLASS,children:[e("div",{className:we.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:we.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:we.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&n&&e("div",{className:we.CANVAS_CLASS,children:n})]})]}),me=ce?e(nt,{...ce,cornerRadius:de,style:{width:"100%",height:"100%",...ce.style},children:he}):he;return e(mi.Provider,{value:ue,children:e("div",{ref:z,style:{width:"100%",height:"100%"},children:me})})}))),gi=({type:e,size:t,variant:n,loading:a,error:r,className:o,interactive:i,panEnabled:s})=>{const l=[we.ROOT_CLASS];if(e){const t=e.toUpperCase(),n=we.CLASSES[t]||`${we.TYPE_PREFIX}${e}`;l.push(n)}if(t){const e=t.toUpperCase(),n=we.CLASSES[e]||`${we.SIZE_PREFIX}${t}`;l.push(n)}if(n){const e=n.toUpperCase(),t=we.CLASSES[e]||`${we.VARIANT_PREFIX}${n}`;l.push(t)}return(i||s)&&l.push(we.CLASSES.INTERACTIVE),a&&l.push(we.LOADING_STATE_CLASS),r&&l.push(we.ERROR_STATE_CLASS),o&&l.push(o),l.join(" ")};pi.displayName="Chart";const fi=s(l((({datasets:a=[],config:s,width:l=we.DEFAULT_WIDTH,height:c=we.DEFAULT_HEIGHT,onDataPointClick:h,interactive:m=!0,enableRealTime:p=!1,enableAccessibility:g=!0,enablePerformanceOptimization:b=!0,renderContent:S},v)=>{const E=f(mi),{calculateScales:y,getChartColors:N}=ui(),{processedData:A,isProcessing:x}=function(e,t){const[n,a]=r(e),[o,s]=r(!1),{enableDecimation:l=!1,maxDataPoints:c=1e3,enableRealTime:d=!1,realTimeInterval:h=1e3}=t||{},m=u(((e,t)=>{if(!l||!e.length)return e;const n=e[0]?.data?.length||0;if(t>=n)return e;const a=Math.ceil(n/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%a==0))||[]})))}),[l]),p=u(((e,t)=>{const n=[];for(let r=0;r<e.length;r++)if(t-1>r)n.push(null);else{var a;const o=di(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t),0);n.push(o/t)}return n}),[]),g=u((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=di(e).call(e,((e,t,n)=>e+n),0),a=di(e).call(e,((e,t)=>e+t),0),r=(t*di(e).call(e,((e,t,n)=>e+n*t),0)-n*a)/(t*di(e).call(e,((e,t,n)=>e+n*n),0)-n*n),o=(a-r*n)/t;return e.map(((e,t)=>r*t+o))}),[]);return i((()=>{s(!0),(async()=>{let t=[...e];l&&c&&(t=m(t,c)),a(t),s(!1)})()}),[e,m,l,c]),i((()=>{if(!d)return;const e=setInterval((()=>{a((e=>[...e]))}),h);return()=>clearInterval(e)}),[d,h]),{processedData:n,isProcessing:o,decimateData:m,calculateMovingAverage:p,calculateTrendLine:g,setProcessedData:a}}(a,{enableRealTime:p,enableDecimation:b,maxDataPoints:1e3}),{isOptimizing:_,memoizedScales:T}=function(e,t){const{enableVirtualization:n=!1,enableMemoization:a=!0,debounceMs:s=100}=t||{},[l,c]=r(!1),h=o(null),m=d((()=>a?e.map((e=>{const t=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],n=t.length>0?t:[0];return{label:e.label,dataLength:e.data?.length||0,minValue:Math.min(...n),maxValue:Math.max(...n)}})):null),[e,a]),p=u((e=>{h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{e(),c(!1)}),s),c(!0)}),[s]),g=u(((t,a,r)=>{if(!n)return{start:0,end:e[0]?.data?.length||0};const o=Math.floor(t/a),i=Math.min(o+Math.ceil(r/a)+1,e[0]?.data?.length||0);return{start:Math.max(0,o-1),end:i}}),[n,e]);return i((()=>()=>{h.current&&clearTimeout(h.current)}),[]),{isOptimizing:l,memoizedScales:m,debouncedUpdate:p,getVisibleRange:g}}(A,{enableVirtualization:!1,enableMemoization:b,debounceMs:100}),{announcement:C,focusedPoint:L}=function(e,t){const{enableKeyboardNavigation:n=!0,enableScreenReader:a=!0,announceDataChanges:o=!0}=t||{},[s,l]=r({datasetIndex:0,pointIndex:0}),[c,d]=r(""),h=u(((t,a)=>{if(!n||!e.length)return;const r=e.length-1,o=(e[s.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),l((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),l((e=>({...e,pointIndex:Math.min(o,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),l((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),l((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),l((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),l((e=>({...e,pointIndex:o})));break;case"Enter":case" ":t.preventDefault(),a?.(s.datasetIndex,s.pointIndex)}}),[n,e,s]),m=u((e=>{a&&(d(e),setTimeout((()=>d("")),1e3))}),[a]);i((()=>{if(!o||!e.length)return;const t=di(e).call(e,((e,t)=>e+(t.data?.length||0)),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,o,m]);const p=u((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const n=e.data?.length||0,a=e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[],r=a.length>0?Math.min(...a):0,o=a.length>0?Math.max(...a):0;return`Dataset ${t+1}: ${e.label}, ${n} points, range ${r} to ${o}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:s,announcement:c,handleKeyDown:h,announceData:m,getAccessibleDescription:p,setFocusedPoint:l}}(A,{enableScreenReader:g,enableKeyboardNavigation:g,announceDataChanges:g}),I=o({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[w,O]=r(null),R=o(null),M=o(null),[k,D]=r(!1),[B,P]=r({width:0,height:0});i((()=>{const e=M.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(P({width:Math.floor(t.width),height:Math.floor(t.height)}),D(!0))};t();const n=requestAnimationFrame((()=>{t()})),a=new ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t.contentRect;e>0&&n>0&&(P({width:Math.floor(e),height:Math.floor(n)}),D(!0))}}));return a.observe(e),()=>{cancelAnimationFrame(n),a.disconnect()}}),[]),i((()=>{l===we.DEFAULT_WIDTH&&c===we.DEFAULT_HEIGHT||(P({width:l,height:c}),D(!0))}),[l,c]);const z=u(((e,t,n,a,r,o)=>{O({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:o})}),[]),U=u((()=>{O(null)}),[]),F=o(null),G=u((e=>{m&&E&&E.panEnabled&&I.current.isDragging&&(F.current||(F.current=requestAnimationFrame((()=>{const t=R.current;if(!t)return void(F.current=null);const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top,o=a-I.current.dragStart.x,i=r-I.current.dragStart.y;E.setPanOffset({x:I.current.lastPan.x+o,y:I.current.lastPan.y+i}),F.current=null}))))}),[m,E]),V=u((e=>{if(!m||!E||!E.panEnabled)return;const t=R.current;if(!t)return;const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top;I.current.isDragging=!0,I.current.dragStart={x:a,y:r},I.current.lastPan={...E.panOffset}}),[m,E]),H=u((()=>{I.current.isDragging=!1}),[]),j=d((()=>({onDataPointClick:h,onPointHover:z,onPointLeave:U,onMouseMove:G,onMouseDown:V,onMouseUp:H,onWheel:()=>{}})),[h,z,U,G,V,H]),Y=d((()=>({announcement:C,focusedPoint:L,getAccessibleDescription:()=>"Chart description"})),[C,L]),W=d((()=>E?`translate(${E.panOffset.x}px, ${E.panOffset.y}px) scale(${E.zoomLevel})`:""),[E?.panOffset.x,E?.panOffset.y,E?.zoomLevel]),K=d((()=>{if(!k||0===B.width||0===B.height)return null;const e=y(A,B.width,B.height,void 0,s);if(!e)return null;const t=N(A.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:A.map(((e,n)=>({...e,color:e.color||t[n]})))}}),[A,s,B.width,B.height,k,y,N]);if(i((()=>()=>{F.current&&cancelAnimationFrame(F.current)}),[]),i((()=>{const e=R.current;if(!e||!m||!E)return;const t=e=>{if(void 0===E.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,n=Math.max(.2,Math.min(5,E.zoomLevel+t));E.setZoomLevel(n)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[m,E]),_)return t("div",{className:`${we.CONTENT_CLASS} ${we.LOADING_CLASS}`,children:[e("div",{className:we.LOADING_SPINNER_CLASS}),e("span",{className:we.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!k||0===B.width||0===B.height)return e("div",{ref:M,className:we.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!K)return null;const $=B.width,Q=B.height;return t(n,{children:[e("div",{ref:M,className:we.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t("svg",{ref:R,width:$,height:Q,viewBox:`0 0 ${$} ${Q}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:W,transformOrigin:"center center",willChange:E?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:G,onMouseDown:V,onMouseUp:H,onMouseLeave:H,children:[t("g",{className:"c-chart__grid-group",children:[K.datasets[0]?.data.map(((t,n)=>e("line",{x1:K.scales.xScale(n,K.datasets[0]?.data.length),y1:0,x2:K.scales.xScale(n,K.datasets[0]?.data.length),y2:Q,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+n))),Array.from({length:5}).map(((t,n)=>{const a=K.scales.minValue+(K.scales.maxValue-K.scales.minValue)*(n/4);return e("line",{x1:0,y1:K.scales.yScale(a),x2:$,y2:K.scales.yScale(a),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+n)}))]}),S({scales:K.scales,colors:K.colors,datasets:K.datasets,interactionState:{hoveredIndex:w?.pointIndex??null,selectedIndex:null},handlers:j,accessibility:Y,hoveredPoint:w,toolbarState:E?{showTooltips:E.toolbarState?.showTooltips,showLegend:E.toolbarState?.showLegend,animationsEnabled:E.toolbarState?.animationsEnabled,showGrid:E.toolbarState?.showGrid}:void 0,config:s}),m&&E?.panEnabled&&t("g",{className:"c-chart__crosshair",children:[e("line",{x1:0,y1:Q/2,x2:$,y2:Q/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),e("line",{x1:$/2,y1:0,x2:$/2,y2:Q,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),e("div",{"aria-live":"polite",className:"u-visually-hidden",children:C})]})})));fi.displayName="ChartRenderer";const bi=s(l((({type:t,datasets:n=[],config:a={},renderContent:r,interactive:o=!0,enableRealTime:i=!1,enableAccessibility:s=!0,enablePerformanceOptimization:l=!0,onDataPointClick:c,...d},h)=>{const m=u((e=>r(e)),[r]);return e(pi,{ref:h,type:t,datasets:n,config:a,...d,children:e(fi,{datasets:n,config:a,interactive:o,enableRealTime:i,enableAccessibility:s,enablePerformanceOptimization:l,onDataPointClick:c,renderContent:m})})})));bi.displayName="BaseChart";const Si=s(l((({datasets:t=[],config:n={},chartType:a="line",particleEffects:r,onDataPointClick:s,...l},c)=>{const d=o(0),h=o(0),m=o([]);i((()=>{const e=t=>{h.current=t,d.current=requestAnimationFrame(e)};return d.current=requestAnimationFrame(e),()=>{d.current&&cancelAnimationFrame(d.current)}}),[]);const p=u((({scales:t,colors:n,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:c})=>{if(!o.length)return null;const d=40,u=t.width-80,p=t.height-80,g=[];if(o.forEach(((t,r)=>{const o=t.color||n[r%n.length];switch(a){case"bar":t.data.forEach(((n,a)=>{const s=u/t.data.length*.8,l=d+a*(u/t.data.length)+(u/t.data.length-s)/2,c=n.value/100*p,m=d+p-c;g.push(e("rect",{x:l,y:m,width:s,height:c,fill:o,style:{transform:`scaleY(${.1*Math.sin(.01*h.current+.2*a)+.9})`,transformOrigin:"bottom"},onClick:()=>i.onDataPointClick?.(n,r,a)},`bar-${r}-${a}`))}));break;default:{const n=t.data.map(((e,n)=>({x:d+n/(t.data.length-1)*u,y:d+p-e.value/100*p})));if(n.length>0){const s="M "+n.map((e=>`${e.x},${e.y}`)).join(" L ");if("area"===a){const t=`${s} L ${d+u},${d+p} L 40,${d+p} Z`;g.push(e("path",{d:t,fill:o,fillOpacity:"0.3",style:{transform:`translateY(${2*Math.sin(.01*h.current)}px)`}},"area-"+r))}g.push(e("path",{d:s,stroke:o,fill:"none",className:"c-chart__data-line",style:{transform:`translateY(${2*Math.sin(.01*h.current)}px)`}},"line-"+r)),n.forEach(((n,a)=>{g.push(e("circle",{cx:n.x,cy:n.y,r:"4",fill:o,style:{transform:`scale(${1+.2*Math.sin(.01*h.current+a)})`},onClick:()=>i.onDataPointClick?.(t.data[a],r,a)},`point-${r}-${a}`))}))}break}}})),r?.enabled)for(let a=0;a<r.count;a++){const t=m.current[a];t&&g.push(e("circle",{cx:t.x,cy:t.y,r:t.size,fill:t.color,style:{opacity:t.life}},"particle-"+a))}return e("g",{children:g})}),[a,r]);return e(bi,{ref:c,type:"line",datasets:t,config:n,renderContent:p,onDataPointClick:s,...l})})));Si.displayName="AnimatedChart";const vi=s((({dataPoint:a,datasetLabel:s,datasetColor:l,position:c,visible:d,customRenderer:u})=>{const h=o(null),[m,p]=r(c);return i((()=>{if(!d||!h.current)return;const e=h.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;let a=c.x,r=c.y;a=a+e.width>t-16?c.x-e.width-12:c.x+12,r=r+e.height>n-16?c.y-e.height-12:c.y-e.height/2,a=Math.max(16,Math.min(a,t-e.width-16)),r=Math.max(16,Math.min(r,n-e.height-16)),p({x:a,y:r})}),[c,d]),d&&a?O(e("div",{ref:h,className:"c-chart__tooltip",style:{left:m.x+"px",top:m.y+"px",opacity:d?1:0,visibility:d?"visible":"hidden",transition:"opacity 0.2s ease, transform 0.2s ease",transform:"translateZ(0)",position:"fixed",zIndex:1e3,pointerEvents:"none"},children:u?u(a):t(n,{children:[e("div",{className:"c-chart__tooltip-title",children:a.label}),t("div",{className:"c-chart__tooltip-content",children:[s&&t("div",{className:"c-chart__tooltip-dataset",children:[l&&e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:l}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[s,":"]}),e("span",{className:"c-chart__tooltip-value",children:a.value})]}),a.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(a.metadata).map((([n,a])=>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:a+""})]},n)))})]})]})}),document.body):null}));vi.displayName="ChartTooltip";const Ei=s(l((({datasets:a=[],config:r={},areaOptions:o={},onDataPointClick:i,...s},l)=>{const c={showArea:!0,fillOpacity:.3,useGradient:!0,...o};return e(bi,{ref:l,type:"area",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:d})=>{if(!o.length)return null;const u=l?.showTooltips??d?.showTooltips??!0;return t(n,{children:[o.map(((n,o)=>{const l=n.color||r[o],d=n.data||[];if(0===d.length)return null;const u=d.map(((e,t)=>({x:a.xScale(t,d.length),y:a.yScale(e.value)}))),h=`M ${u.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${u[u.length-1]?.x},${a.height} L ${u[0]?.x},${a.height} Z`;return t("g",{children:[e("path",{d:h,fill:l,fillOpacity:c.fillOpacity||.3,className:"c-chart__area-fill"}),d.map(((t,n)=>{const r=a.xScale(n,d.length),c=a.yScale(t.value),u=s?.datasetIndex===o&&s?.pointIndex===n;return e("circle",{cx:r,cy:c,r:u?6:4,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__area-point "+(u?"c-chart__area-point--hovered":""),onClick:()=>i.onDataPointClick?.(t,o,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(o,n,r,c,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave,style:{cursor:"pointer"}},"point-"+n)}))]},"dataset-"+o)})),u&&s&&e(vi,{dataPoint:o[s.datasetIndex]?.data?.[s.pointIndex]??{label:"",value:0,color:""},datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,...s})})));function yi(e,t={}){const[n,a]=r(null),[o,i]=r(0),[s,l]=r(!1),c=u(((e,n,a,r={top:20,right:30,bottom:40,left:50},o=!1)=>{if(!e.length)return[];const i=n-r.left-r.right,s=a-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),u=Math.min(0,...d),h=Math.max(...d)-u,m=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let b,S,v,E;if(o){const e=s/l,n=e*(1-(t.groupPadding||.2));E=t.stacked?n:n/c,S=r.top+g*e+(e-n)/2,t.stacked||(S+=d*E*(1+(t.barPadding||.05))),b=r.left,v=(f-u)/h*i,t.stacked&&d>0?(b=r.left+(p[g]-u)/h*i,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=i/l,n=e*(1-(t.groupPadding||.2));if(v=t.stacked?n:n/c,b=r.left+g*e+(e-n)/2,t.stacked||(b+=d*v*(1+(t.barPadding||.05))),E=(f-u)/h*s,S=a-r.bottom-E,t.stacked&&d>0){const e=(p[g]-u)/h*s;S=a-r.bottom-e-E,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(o?v:E)<t.minBarHeight&&(o?v=t.minBarHeight:(E=t.minBarHeight,S=a-r.bottom-E)),t.maxBarWidth&&(o?E:v)>t.maxBarWidth)if(o)E=t.maxBarWidth,S=r.top+g*(s/l)+(s/l-E)/2;else{v=t.maxBarWidth;const e=(n-r.left-r.right)/l;b=r.left+g*e+(e-v)/2}m.push({x:Math.max(b,0),y:Math.max(S,0),width:Math.max(v,0),height:Math.max(E,0),value:f,datasetIndex:d,pointIndex:g})}))})),m}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),d=u((()=>{if(!t.enableAnimations)return;l(!0),i(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);i(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):l(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),h=u(((e,t,n,r,o,i)=>{a({datasetIndex:e,pointIndex:t,chartX:n,chartY:r,clientX:o,clientY:i})}),[]),m=u((()=>{a(null)}),[]),p=u((e=>t.useGradients?e.map(((e,t)=>{const n=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:n,opacity:.8},{offset:"100%",color:n,opacity:.4}]}})):[]),[t.useGradients]),g=u((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t.valueFormatter]);return{hoveredBar:n,animationProgress:o,isAnimating:s,calculateBarDimensions:c,generateGradients:p,getDataLabelPosition:u(((e,n=!1)=>{const{x:a,y:r,width:o,height:i}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:a+o/2,y:r+i/2};case"outside":return{x:n?a+o+5:a+o/2,y:n?r+i/2:r-5}}}),[t.dataLabelPosition]),handleBarHover:h,handleBarLeave:m,startAnimation:d,formatValue:g,setHoveredBar:a,setAnimationProgress:i,setIsAnimating:l}}Ei.displayName="AreaChart";const Ni=s(l((({datasets:a=[],config:r={},barOptions:o={},horizontal:i=!1,onDataPointClick:s,...l},c)=>{const{calculateBarDimensions:d,handleBarHover:u,handleBarLeave:h,hoveredBar:m,formatValue:p}=yi(0,o);return e(bi,{ref:c,type:"bar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:h})=>{if(!s.length)return null;const m=u?.showTooltips??h?.showTooltips??!0,g=d(s,a.width,a.height,a.padding,i);return t(n,{children:[g.map(((n,a)=>{const i=s[n.datasetIndex];if(!i)return null;const d=i.data?.[n.pointIndex],u=i.color||r[n.datasetIndex],h=c?.datasetIndex===n.datasetIndex&&c?.pointIndex===n.pointIndex;return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:u,className:"c-chart__bar "+(h?"c-chart__bar--hovered":""),onClick:()=>d&&l.onDataPointClick?.(d,n.datasetIndex,n.pointIndex),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(n.datasetIndex,n.pointIndex,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),o.showValues&&e("text",{x:n.x+n.width/2,y:n.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:p(n.value)})]},"bar-"+a)})),m&&c&&e(vi,{dataPoint:s[c.datasetIndex]?.data?.[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));Ni.displayName="BarChart";const Ai=s(l((({bubbleData:a=[],config:r={},bubbleOptions:o={},onDataPointClick:i,...s},l)=>{const{minBubbleSize:c=5,maxBubbleSize:d=50,bubbleOpacity:u=.7,showLabels:h=!0,labelPosition:m="center",enableAnimations:p=!0,animationDuration:g=1e3,showSizeLegend:f=!0,sizeLegendTitle:b="Size",colorScheme:S=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:v=!1}=o;return e(bi,{ref:l,type:"bubble",datasets:[{label:"Bubbles",data:a}],config:r,renderContent:({scales:r,colors:o,datasets:i,handlers:s,hoveredPoint:l,toolbarState:f,config:b})=>{if(!a.length)return null;const E=f?.showTooltips??b?.showTooltips??!0,y=a.map((e=>e.size)),N=Math.min(...y),A=Math.max(...y)-N||1,x=a.map(((n,a)=>{const o=c+(n.size-N)/A*(d-c),i=r.padding.left+n.x/100*r.innerWidth,f=r.padding.top+r.innerHeight-n.y/100*r.innerHeight;let b=n.color;if(!b)if(v){const e=Math.floor((S.length-1)*((n.size-N)/A));b=S[e]}else b=S[a%S.length];return t("g",{children:[e("circle",{cx:i,cy:f,r:o,fill:b,opacity:u,className:"c-chart__bubble "+(l?.pointIndex===a?"c-chart__bubble--hovered":""),style:p?{transition:`all ${g}ms ease`}:{},onClick:()=>s.onDataPointClick?.(n,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,i,f,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),h&&e("text",{x:i,y:f,textAnchor:"middle",dominantBaseline:"center"===m?"middle":"top"===m?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:n.label})]},"bubble-"+a)}));return t(n,{children:[x,E&&l&&l.pointIndex<a.length&&a[l.pointIndex]&&e(vi,{dataPoint:a[l.pointIndex],datasetLabel:"Bubbles",datasetColor:a[l.pointIndex]?.color||S[l.pointIndex%S.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Ai.displayName="BubbleChart";const xi=s(l((({candlestickData:a=[],config:r={},candlestickOptions:o={},onDataPointClick:i,...s},l)=>{const{showVolume:c=!0,volumeHeightRatio:d=.2,upColor:u="var(--atomix-success-bg-subtle)",downColor:h="var(--atomix-error-bg-subtle)",wickColor:m="var(--atomix-brand-border-subtle)",borderColor:p="var(--atomix-primary-border-subtle)",showMovingAverages:g=!1,movingAveragePeriods:f=[7,21],movingAverageColors:b=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:S="short",dateFormatter:v,showGrid:E=!0,gridColor:y="var(--atomix-brand-text-emphasis)",showTooltips:N=!0}=o;return e(bi,{ref:l,type:"candlestick",datasets:[{label:"Candlestick Data",data:a.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:r,renderContent:({scales:r,colors:i,datasets:s,handlers:l,hoveredPoint:S,toolbarState:v,config:N})=>{if(!a.length)return null;const A=v?.showTooltips??N?.showTooltips??o.showTooltips??!0,x=40,_=r.width-80,T=r.height-80,C=c?T*d:0,L=T-C,I=a.map((e=>e.high)),w=a.map((e=>e.low)),O=Math.min(...w),R=Math.max(...I),M=R-O||1,k=a.map((e=>e.volume||0)),D=Math.max(...k)||1,B=[];if(E){for(let n=0;5>=n;n++){const t=x+n/5*L;B.push(e("line",{x1:x,y1:t,x2:x+_,y2:t,stroke:y,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+n))}const t=Math.max(1,Math.floor(a.length/10));for(let n=0;n<a.length;n+=t){const t=x+n/(a.length-1)*_;B.push(e("line",{x1:t,y1:x,x2:t,y2:x+L,stroke:y,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+n))}}const P=a.map(((n,r)=>{const o=n.close<n.open?h:u,i=x+r/(a.length-1)*_,s=x+(R-n.high)/M*L,c=x+(R-n.low)/M*L,d=x+(R-n.open)/M*L,g=x+(R-n.close)/M*L,f=Math.min(d,g),b=Math.abs(d-g),S=Math.max(1,_/a.length*.8);return t("g",{children:[e("line",{x1:i,y1:s,x2:i,y2:c,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-wick"}),e("rect",{x:i-S/2,y:f,width:S,height:b||1,fill:o,stroke:p,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,r,i,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave,onClick:()=>l.onDataPointClick?.(n,0,r)})]},"candle-"+r)})),z=[];if(c){const t=x+L+20;a.forEach(((n,r)=>{if(!n.volume)return;const o=n.close<n.open?h:u,i=x+r/(a.length-1)*_,s=n.volume/D*(C-20),l=Math.max(1,_/a.length*.6);z.push(e("rect",{x:i-l/2,y:t+C-s,width:l,height:s,fill:o,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const U=[];return g&&f.forEach(((t,n)=>{const r=((e,t)=>{const n=[];for(let r=0;r<e.length;r++){var a;if(t-1>r){n.push(NaN);continue}const o=di(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.close),0);n.push(o/t)}return n})(a,t),o=b?.[n]||"var(--atomix-warning)",i=r.map(((e,t)=>isNaN(e)?null:{x:x+t/(a.length-1)*_,y:x+(R-e)/M*L})).filter(Boolean);if(i.length>1){const n="M "+i.map((e=>`${e.x},${e.y}`)).join(" L ");U.push(e("path",{d:n,stroke:o,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+t))}})),t(n,{children:[B,P,z,U,A&&S&&a[S.pointIndex]&&e(vi,{dataPoint:a[S.pointIndex],datasetLabel:"Candlestick",position:{x:S.clientX,y:S.clientY},visible:!0})]})},onDataPointClick:i,...s})})));xi.displayName="CandlestickChart";const _i=s(l((({datasets:a=[],config:r={},pieOptions:o={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:i={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:s,...l},c)=>{const u=a.length>0?a[0]:{label:"",data:[]},h=d((()=>{if(!u?.data?.length)return null;const e=u?.data?.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[u]);return e(bi,{ref:c,type:"donut",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:d,config:m})=>{var p;if(!h)return null;const g=a.width,f=a.height,b=Math.min(g,f)/2*.8,S=b*(i.innerRadiusRatio??.6),v=g/2,E=f/2,y=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],N=u?.color?[u.color]:u?.data?.map(((e,t)=>y[t%y.length]))||y,A=di(p=h.validDataPoints).call(p,((e,t)=>e+t.value),0),x=(o.padAngle||1)*Math.PI/180;let _=(o.startAngle||0)*Math.PI/180;const T=h.validDataPoints.map(((e,t)=>{const n=e.value/A*(2*Math.PI)-x,a=_,r=_+n,o=(a+r)/2,i=.75*b,s=v+Math.cos(o)*i,l=E+Math.sin(o)*i,c=v+S*Math.cos(a),d=E+S*Math.sin(a),u=n>Math.PI?1:0,h=[`M ${c} ${d}`,`L ${v+b*Math.cos(a)} ${E+b*Math.sin(a)}`,`A ${b} ${b} 0 ${u} 1 ${v+b*Math.cos(r)} ${E+b*Math.sin(r)}`,`L ${v+S*Math.cos(r)} ${E+S*Math.sin(r)}`,`A ${S} ${S} 0 ${u} 0 ${c} ${d}`,"Z"].join(" ");return _=r+x,{path:h,color:e.color||N[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/A*100}})),C=d?.showTooltips??m?.showTooltips??!0;return t(n,{children:[T.map(((n,a)=>{const r=c?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__donut-slice "+(r?"c-chart__donut-slice--hovered":""),onClick:()=>l.onDataPointClick?.(n.dataPoint,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),o.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:n.dataPoint.label}),o.showPercentages&&t("text",{x:n.labelPosition.x,y:n.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[n.percentage.toFixed(1),"%"]})]},"slice-"+a)})),i.showTotal&&t("g",{children:[e("text",{x:v,y:E-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:i.centerLabel}),e("text",{x:v,y:E+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==i.centerValue?i.centerValue:A.toLocaleString()})]}),C&&c&&c.pointIndex<T.length&&T[c.pointIndex]&&e(vi,{dataPoint:T[c.pointIndex].dataPoint,datasetLabel:u?.label,datasetColor:T[c.pointIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));_i.displayName="DonutChart";const Ti=s(l((({funnelData:a=[],config:r={},funnelOptions:o={},onDataPointClick:i,...s},l)=>{const{direction:c="vertical",showLabels:d=!0,showValues:u=!0,showPercentages:h=!1,labelPosition:m="outside",neckWidth:p=.3,neckHeight:g=.2,segmentGap:f=2,colorScheme:b=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:S=!0,animate:v=!0,animationDuration:E=1e3,animationDelay:y=200,valueFormatter:N=e=>e.toLocaleString(),showConversionRates:A=!0,conversionRatePosition:x="between",proportional:_=!0,minSegmentRatio:T=.1}=o;return e(bi,{ref:l,type:"funnel",datasets:[{label:"Funnel Data",data:a}],config:r,renderContent:({scales:r,colors:o,datasets:i,handlers:s,hoveredPoint:l,toolbarState:m,config:g})=>{if(!a.length)return null;const S=m?.showTooltips??g?.showTooltips??!0,C=r.width-120,L=r.height-120,I=Math.max(...a.map((e=>e.value))),w=a.map(((e,t)=>{const n=e.value/I*100,r=t>0&&a[t-1]?e.value/a[t-1].value*100:100;return{...e,percentage:n,conversionRate:r,index:t}})),O=[];if("vertical"===c){const n=(L-(a.length-1)*f)/a.length;w.forEach(((r,o)=>{const i=60+o*(n+f);let l;if(_){const e=Math.max(r.percentage/100,T);l=C*e}else{const e=Math.max(1-o/(a.length-1)*(1-p),T);l=C*e}const c=60+(C-l)/2;let m=r.color||b[o%b.length];const g=w[o+1];let S;if(g)if(_){const e=Math.max(g.percentage/100,T);S=C*e}else{const e=Math.max(1-(o+1)/(a.length-1)*(1-p),T);S=C*e}else S=l*p;const L=60+(C-S)/2,I=i+n,R=`\n M ${c} ${i}\n L ${c+l} ${i}\n L ${L+S} ${I}\n L ${L} ${I}\n Z\n `;O.push(t("g",{children:[e("path",{d:R,fill:m,className:"c-chart__funnel-segment",style:{transition:v?`all ${E}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${o*y}ms`:"none"},onClick:()=>s.onDataPointClick?.(r,0,o)}),(d||u||h)&&t("text",{x:c+l/2,y:i+n/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[d&&r.label,u&&e("tspan",{x:c+l/2,dy:"1.2em",children:N(r.value)}),h&&t("tspan",{x:c+l/2,dy:"1.2em",children:[r.percentage.toFixed(1),"%"]})]})]},"segment-"+o)),A&&g&&"between"===x&&O.push(t("text",{x:c+l/2,y:i+n+f/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",r.conversionRate.toFixed(1),"%"]},"conversion-"+o))}))}return t(n,{children:[e("g",{children:O}),S&&l&&a[l.pointIndex]&&e(vi,{dataPoint:a[l.pointIndex],datasetLabel:"Funnel Data",datasetColor:a[l.pointIndex]?.color||o[l.pointIndex%o.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Ti.displayName="FunnelChart";const Ci=s(l((({value:n,min:a=0,max:r=100,config:o={},gaugeOptions:i={},onDataPointClick:s,...l},c)=>{const{startAngle:d=180,endAngle:u=0,thickness:h=.2,showNeedle:m=!0,needleColor:p="var(--atomix-brand-text-emphasis)",showValue:g=!0,valueFormatter:f=e=>e.toFixed(1),showMinMaxLabels:b=!0,showTicks:S=!0,majorTicks:v=5,minorTicks:E=4,colorZones:y=[],animate:N=!0,animationDuration:A=1e3,animationEasing:x="easeOutCubic",useGradient:_=!1,label:T="",labelPosition:C="bottom"}=i;return e(bi,{ref:c,type:"gauge",datasets:[{label:"Gauge Value",data:[{label:"Value",value:n}]}],config:o,renderContent:({scales:o,colors:i,datasets:s,handlers:l,hoveredPoint:c,toolbarState:_,config:L})=>{const I=o.width,w=_?.animationsEnabled??L?.animate??N,O=o.height,R=I/2,M=O/2,k=Math.min(I,O)/2*.9,D=-d*Math.PI/180,B=-u*Math.PI/180,P=B-D,z=Math.min(Math.max(n,a),r),U=D+(z-a)/(r-a)*P,F=(e,t,n,a,r,o)=>{const i=n*(1-o),s=e+n*Math.cos(a),l=t+n*Math.sin(a),c=e+n*Math.cos(r),d=t+n*Math.sin(r),u=e+i*Math.cos(r),h=t+i*Math.sin(r),m=e+i*Math.cos(a),p=t+i*Math.sin(a),g=Math.abs(r-a)>Math.PI?1:0,f=r>a?1:0;return`M ${s} ${l} \n A ${n} ${n} 0 ${g} ${f} ${c} ${d}\n L ${u} ${h}\n A ${i} ${i} 0 ${g} ${1-f} ${m} ${p}\n Z`},G=[];for(const t of y){const n=D+(t.from-a)/(r-a)*P,o=D+(t.to-a)/(r-a)*P;G.push(e("path",{d:F(R,M,k,n,o,h),fill:t.color},`zone-${t.from}-${t.to}`))}const V=[];if(S){for(let t=0;v>=t;t++){const n=a+t/v*(r-a),o=D+t/v*P,i=.95*k,s=.05*k,l=R+i*Math.cos(o),c=M+i*Math.sin(o),d=R+(i-s)*Math.cos(o),u=M+(i-s)*Math.sin(o);if(V.push(e("line",{x1:l,y1:c,x2:d,y2:u,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+t)),b){const a=R+(i-s-10)*Math.cos(o),r=M+(i-s-10)*Math.sin(o);V.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:n},"label-"+t))}}for(let t=0;v*E>t;t++){const n=D+t/(v*E)*P,a=.95*k,r=.025*k,o=R+a*Math.cos(n),i=M+a*Math.sin(n),s=R+(a-r)*Math.cos(n),l=M+(a-r)*Math.sin(n);V.push(e("line",{x1:o,y1:i,x2:s,y2:l,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+t))}}const H=m?t("g",{children:[e("line",{x1:R,y1:M,x2:R+.8*k*Math.cos(U),y2:M+.8*k*Math.sin(U),stroke:p,strokeWidth:"3",strokeLinecap:"round"}),e("circle",{cx:R,cy:M,r:"8",fill:p})]}):null,j=g?e("text",{x:R,y:M+10,textAnchor:"middle",fontSize:"24",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:f(z)}):null,Y=T?e("text",{x:R,y:"top"===C?M-.7*k:M+.7*k,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:T}):null;return t("g",{children:[e("path",{d:F(R,M,k,D,B,h),fill:"var(--atomix-secondary-bg-subtle)"}),G,e("path",{d:F(R,M,k,D,U,h),fill:"var(--atomix-brand-bg-subtle)",style:{transition:w?`all ${A}ms ${x}`:"none"}}),V,H,j,Y]})},onDataPointClick:s,...l})})));Ci.displayName="GaugeChart";const Li={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},Ii=s(l((({data:a=[],config:o={},colorScale:i={scheme:"viridis",steps:9},cellConfig:s={width:40,height:40,spacing:2,borderRadius:4,showLabels:!1},showColorLegend:l=!0,showGrid:c=!0,onDataPointClick:h,...m},p)=>{const[g,f]=r(null),b=d((()=>{if(!a.length)return{matrix:[],xLabels:[],yLabels:[]};const e=Array.from(new Set(a.map((e=>e.x)))).sort(),t=Array.from(new Set(a.map((e=>e.y)))).sort(),n=[];return t.forEach((t=>{const r=[];e.forEach((e=>{const n=a.find((n=>n.x===e&&n.y===t));r.push(n||null)})),n.push(r)})),{matrix:n,xLabels:e,yLabels:t}}),[a]),S=u((e=>{if(!b.matrix.length)return"var(--atomix-secondary-bg-subtle)";let t,n=i.min,r=i.max;if(void 0===n||void 0===r){const e=a.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===n&&(n=Math.min(...e)),void 0===r&&(r=Math.max(...e))}if("custom"===i.scheme&&i.colors)t=i.colors;else{const e=i.scheme;t=Li[e]||Li.viridis}const o=i.steps||t.length,s=r-n;return 0===s?t[0]:t[Math.floor(Math.min(Math.floor((e-n)/s*o),o-1)/o*(t.length-1))]}),[b,i,a]),v=[{label:"Heatmap Data",data:a.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return e(bi,{ref:p,type:"heatmap",datasets:v,config:o,renderContent:({scales:a,colors:r,datasets:o,handlers:c,hoveredPoint:d,toolbarState:u,config:h})=>{const{matrix:m,xLabels:p,yLabels:v}=b,E=u?.showTooltips??h?.showTooltips??!0;if(!m.length)return null;const y=s.width||40,N=s.height||40,A=s.spacing||2,x=s.borderRadius||4;return p.length,v.length,t(n,{children:[t("g",{children:[e("defs",{children:l&&(()=>{const t=Li[i.scheme]||Li.viridis;return t&&0!==t.length?e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:t.map(((n,a)=>e("stop",{offset:a/(t.length-1)*100+"%",stopColor:n},a)))}):null})()}),m.map(((n,a)=>n.map(((n,r)=>{if(!n)return null;const o=100+r*(y+A),i=50+a*(N+A),l=S(n.value),d=g===n;return t("g",{children:[e("rect",{x:o,y:i,width:y,height:N,rx:x,ry:x,fill:l,className:"c-chart__heatmap-cell "+(d?"c-chart__heatmap-cell--hovered":""),style:{transition:"all 0.2s ease",transform:d?"scale(1.05)":"scale(1)",transformOrigin:"center"},onClick:()=>{n&&c.onDataPointClick?.({...n,label:n.label||`${n.x}, ${n.y}`,value:n.value},a,r)},onMouseEnter:e=>{f(n)},onMouseLeave:()=>f(null)}),s.showLabels&&n.label&&e("text",{x:o+y/2,y:i+N/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:n.label})]},`cell-${a}-${r}`)})))),p.map(((t,n)=>{const a=100+n*(y+A)+y/2,r=50+m.length*(N+A)+20;return e("text",{x:a,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"x-label-"+n)})),v.map(((t,n)=>e("text",{x:80,y:50+n*(N+A)+N/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"y-label-"+n))),l&&t("g",{transform:"translate(600, 100)",children:[e("rect",{x:"0",y:"0",width:"20",height:"200",fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid"}),e("text",{x:"-10",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),e("text",{x:"25",y:"5",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),e("text",{x:"25",y:"200",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),E&&d&&o[d.datasetIndex]?.data?.[d.pointIndex]&&e(vi,{dataPoint:o[d.datasetIndex].data[d.pointIndex],datasetLabel:o[d.datasetIndex]?.label,datasetColor:o[d.datasetIndex]?.color||r[d.datasetIndex%r.length],position:{x:d.clientX,y:d.clientY},visible:!0})]})},onDataPointClick:h,...m})})));function wi(e,t={}){const[n,a]=r(1),[o,i]=r({x:0,y:0}),[s,l]=r(null),c=u(((e,t)=>{const n=[];for(let r=t-1;r<e.length;r++){var a;const o=di(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.value),0)/t,i=e[r];i&&n.push({label:i.label,value:o,color:"rgba(255, 255, 255, 0.5)"})}return n}),[]),h=u((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=di(e).call(e,((e,t,n)=>e+n),0),a=di(e).call(e,((e,t)=>e+t.value),0),r=(t*di(e).call(e,((e,t,n)=>e+n*t.value),0)-n*a)/(t*di(e).call(e,((e,t,n)=>e+n*n),0)-n*n),o=(a-r*n)/t;return e.map(((e,t)=>({label:e.label,value:r*t+o,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=u(((e,t=.4)=>{if(2>e.length)return"";const n=e.map(((n,a)=>{if(0===a||a===e.length-1)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const r=e[a-1],o=e[a+1];if(!r||!o)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const i=o.x-r.x,s=o.y-r.y;return{cp1x:n.x-i*t,cp1y:n.y-s*t,cp2x:n.x+i*t,cp2y:n.y+s*t}})),a=e[0];if(!a)return"";let r=`M ${a.x},${a.y}`;for(let o=1;o<e.length;o++){const t=n[o-1],a=n[o],i=e[o];t&&a&&i&&(r+=` C ${t.cp2x},${t.cp2y} ${a.cp1x},${a.cp1y} ${i.x},${i.y}`)}return r}),[]),p=u(((e,r,o)=>{if(!t.enableZoom)return;const s=Math.max(.1,Math.min(10,n*(e>0?.9:1.1)));a(s);const l=s/n;i((e=>({x:r-(r-e.x)*l,y:o-(o-e.y)*l})))}),[n,t.enableZoom]),g=u(((e,n)=>{t.enablePan&&i((t=>({x:t.x+e,y:t.y+n})))}),[t.enablePan]),f=u((()=>{a(1),i({x:0,y:0})}),[]),b=u(((e,t,n,a,r,o)=>{l({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:o})}),[]),S=u((()=>{l(null)}),[]),v=d((()=>e.map((e=>{const n={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(n.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:c(e.data,t)})))),t.showTrendLines&&(n.trendLine=h(e.data)),n}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,c,h]);return{zoomLevel:n,panOffset:o,hoveredPoint:s,processedDatasets:v,handleZoom:p,handlePan:g,resetView:f,handlePointHover:b,handlePointLeave:S,calculateMovingAverage:c,calculateTrendLine:h,generateSmoothPath:m,setZoomLevel:a,setPanOffset:i,setHoveredPoint:l}}Ii.displayName="HeatmapChart";const Oi=s(l((({datasets:a=[],config:r={},lineOptions:o={},onDataPointClick:i,onRealTimeUpdate:s,onZoomChange:l,onPanChange:c,onBrushSelection:d,...u},h)=>{const m={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...o},{processedDatasets:p,generateSmoothPath:g,calculateMovingAverage:f,handlePointHover:b,handlePointLeave:S,hoveredPoint:v}=wi(a,m);return e(bi,{ref:h,type:"line",datasets:p,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:c})=>{if(!o.length)return null;const d=l?.showTooltips??c?.showTooltips??!0;return l?.animationsEnabled??c?.animate??m.smooth,t(n,{children:[o.map(((n,o)=>{const l=n.color||r[o],c=n.data?.length||0;if(0===c)return null;const d=n.data?.map(((e,t)=>({x:a.xScale(t,c),y:a.yScale(e.value)})))||[],u=m.smooth?g(d):"M "+d.map((e=>`${e.x},${e.y}`)).join(" L ");return t("g",{children:[m.showArea&&e("path",{d:`${u} L ${d[d.length-1]?.x||0},${a.yScale(0)} L ${d[0]?.x||0},${a.yScale(0)} Z`,fill:l,fillOpacity:m.fillOpacity||.3,className:"c-chart__area-path"}),e("path",{d:u,stroke:l,strokeWidth:m.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),m.showDataPoints&&n.data?.map(((n,r)=>{const d=a.xScale(r,c),u=a.yScale(n.value),h=s?.datasetIndex===o&&s?.pointIndex===r;return t("g",{children:[e("circle",{cx:d,cy:u,r:h?1.5*m.pointRadius:m.pointRadius,fill:l,stroke:"white",strokeWidth:h?2:1,className:"c-chart__data-point "+(h?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(o,r,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave,onClick:()=>i.onDataPointClick?.(n,o,r),style:{cursor:"pointer"}}),m.showPointLabels&&e("text",{x:d,y:u-15,textAnchor:"middle",fontSize:"12",fill:l,className:"c-chart__point-label",children:n.value})]},"point-"+r)}))]},"dataset-"+o)})),d&&s&&o[s.datasetIndex]?.data?.[s.pointIndex]&&e(vi,{dataPoint:o[s.datasetIndex].data[s.pointIndex],datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,interactive:!0,enableAccessibility:!0,...u})})));Oi.displayName="LineChart";const Ri=s(l((({datasets:n=[],config:a={},yAxes:r=[],xAxes:o=[],multiAxisOptions:i={},onDataPointClick:s,...l},c)=>{const{showLegend:d=!0,legendPosition:u="top",syncAxes:h=!1,axisPadding:m=20,showTooltips:p=!0,tooltipPosition:g="nearest",interpolation:f="linear",showArea:b=!1,areaOpacity:S=.3,showDataPoints:v=!0,pointRadius:E=4,spanGaps:y=!1}=i;return e(bi,{ref:c,type:"line",datasets:n,config:a,renderContent:({scales:a,colors:i,datasets:s,handlers:l,hoveredPoint:c,toolbarState:h,config:m})=>{if(!n.length)return null;const p=h?.showGrid??!0,g=60,f=a.width-120,y=a.height-120,N=r.length?r:[{id:"y-axis-1",position:"left",label:"Y Axis"}],A=o.length?o:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],x={};n.forEach(((e,t)=>{const n=e.yAxisId||N[0]?.id||"y-axis-1";x[n]||(x[n]=[]),x[n].push({...e,index:t})}));const _={};Object.entries(x).forEach((([e,t])=>{const n=t.flatMap((e=>e.data.map((e=>e.value)))),a=Math.min(...n),r=Math.max(...n),o=r-a||1;_[e]={min:a,max:r,scale:y/o}}));const T=[];if(p)for(let t=0;5>=t;t++){const n=g+t/5*y;T.push(e("line",{x1:g,y1:n,x2:g+f,y2:n,className:"c-chart__grid"},"grid-"+t))}if(n.forEach(((t,n)=>{const a=t.yAxisId||N[0]?.id||"y-axis-1",r=_[a],o=t.color||i[n%i.length],s=t.data.map(((e,n)=>({x:g+n/(t.data.length-1)*f,y:r?g+y-(e.value-r.min)*r.scale:0})));let c="";if(s.length>0&&(c="M "+s.map((e=>`${e.x},${e.y}`)).join(" L ")),b&&c){const t=`${c} L ${g+f},${g+y} L 60,${g+y} Z`;T.push(e("path",{d:t,fill:o,fillOpacity:S},"area-"+n))}T.push(e("path",{d:c,stroke:o,fill:"none",className:"c-chart__data-line"},"line-"+n)),v&&s.forEach(((a,r)=>{const i=t.data[r];i&&T.push(e("circle",{cx:a.x,cy:a.y,r:E,fill:o,onClick:()=>l.onDataPointClick?.(i,n,r)},`point-${n}-${r}`))}))})),N.forEach((t=>{T.push(e("line",{x1:g,y1:g,x2:g,y2:g+y,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+t.id))})),A.forEach((t=>{T.push(e("line",{x1:g,y1:g+y,x2:g+f,y2:g+y,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+t.id))})),d){const r="top"===u?20:a.height-30;n.forEach(((a,o)=>{const s=a.color||i[o%i.length],l=g+o*f/n.length;T.push(t("g",{children:[e("rect",{x:l,y:r,width:"12",height:"12",fill:s,className:"c-chart__legend-item-color"}),e("text",{x:l+16,y:r+10,className:"c-chart__legend-item-text",children:a.label})]},"legend-"+o))}))}return e("g",{children:T})},onDataPointClick:s,...l})})));function Mi(e,t={}){const[n,a]=r(null),[o,i]=r(new Set),[s,l]=r(0),[c,h]=r(!1),m=d((()=>{const n=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return n.length?t.sortByValue?[...n].sort(((e,t)=>t.value-e.value)):n:[]}),[e,t.sortByValue]),p=d((()=>di(m).call(m,((e,t)=>e+t.value),0)),[m]),g=d((()=>{if(!m.length||0>=p)return[];const e=400,n=200,a=150,r=a*(t.innerRadius||0),o=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let i=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return m.map(((t,l)=>{const c=t.value/p,d=2*c*Math.PI-s,u=i+d,h=i+d/2,m=e+a*Math.cos(i),g=n+a*Math.sin(i),f=e+a*Math.cos(u),b=n+a*Math.sin(u),S=d>Math.PI?1:0;let v;v=r>0?[`M ${m},${g}`,`A 150,150 0 ${S},1 ${f},${b}`,`L ${e+r*Math.cos(u)},${n+r*Math.sin(u)}`,`A ${r},${r} 0 ${S},0 ${e+r*Math.cos(i)},${n+r*Math.sin(i)}`,"Z"].join(" "):["M 400,200",`L ${m},${g}`,`A 150,150 0 ${S},1 ${f},${b}`,"Z"].join(" ");const E=(a+r)/2||105,y=e+E*Math.cos(h),N=n+E*Math.sin(h),A={dataPoint:t,index:l,startAngle:i,endAngle:u,midAngle:h,color:t.color||o[l%o.length],percentage:100*c,value:t.value,label:t.label,path:v,labelPosition:{x:y,y:N}};return i=u+s,A}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),f=u((()=>{if(!t.enableAnimations)return;h(!0),l(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);l(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):h(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),b=u(((e,t,n)=>{a(e)}),[]),S=u((()=>{a(null)}),[]),v=u((e=>{t.enableSelection&&i((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}),[t.enableSelection]),E=u((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const n=[];return!1!==t.showLabels&&n.push(e.label),t.showPercentages&&n.push(Math.round(e.percentage)+"%"),t.showValues&&n.push(e.value.toString()),n.join(" - ")}),[t.labelFormatter,t.showLabels,t.showPercentages,t.showValues]),y=u(((e,n)=>n&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),N=u((e=>o.has(e)),[o]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:n,selectedSlices:o,animationProgress:s,isAnimating:c,handleSliceHover:b,handleSliceLeave:S,handleSliceClick:v,startAnimation:f,formatLabel:E,getSliceTransform:y,isSliceSelected:N,setHoveredSlice:a,setSelectedSlices:i,setAnimationProgress:l,setIsAnimating:h}}Ri.displayName="MultiAxisChart";const ki=s(l((({datasets:a=[],config:r={},pieOptions:o={},onDataPointClick:i,...s},l)=>{const c=a[0]?.data||[],{slices:d,handleSliceHover:u,handleSliceLeave:h,handleSliceClick:m,formatLabel:p,hoveredSlice:g,selectedSlices:f}=Mi(c,o);return e(bi,{ref:l,type:"pie",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:s,hoveredPoint:l,toolbarState:u,config:h})=>{if(!d.length)return null;const g=a.width,f=a.height,b=g/2,S=f/2,v=Math.min(g,f)/2*.8,E=d.map((e=>{const t=b+v*Math.cos(e.startAngle),n=S+v*Math.sin(e.startAngle),a=b+v*Math.cos(e.endAngle),r=S+v*Math.sin(e.endAngle),o=e.endAngle-e.startAngle,i=[`M ${b},${S}`,`L ${t},${n}`,`A ${v},${v} 0 ${o>Math.PI?1:0},1 ${a},${r}`,"Z"].join(" "),s=.7*v,l=b+s*Math.cos(e.midAngle),c=S+s*Math.sin(e.midAngle);return{...e,path:i,labelPosition:{x:l,y:c}}})),y=u?.showTooltips??h?.showTooltips??!0;return t(n,{children:[E.map(((n,a)=>{const r=l?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{m(a),s.onDataPointClick?.(n.dataPoint,0,a)},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),o.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:p(n)})]},"slice-"+a)})),y&&l&&c[l.pointIndex]&&e(vi,{dataPoint:c[l.pointIndex],datasetLabel:i[0]?.label,datasetColor:d[l.pointIndex]?.color,position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s})})));ki.displayName="PieChart";const Di=s(l((({datasets:a=[],config:r={},radarOptions:o={},onDataPointClick:i,...s},l)=>{const{gridLevels:c=5,showGrid:d=!0,showAxisLabels:u=!0,fillArea:h=!0,fillOpacity:m=.3,showDataPoints:p=!0,pointRadius:g=4,lineWidth:f=2,smooth:b=!1,scaleType:S="linear",scaleMin:v=0,scaleMax:E}=o;return e(bi,{ref:l,type:"radar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:i,hoveredPoint:s,toolbarState:l,config:S})=>{if(!o.length)return null;const y=l?.showTooltips??S?.showTooltips??!0,N=a.width/2,A=a.height/2,x=.8*Math.min(N,A),_=o[0];if(!_)return null;const T=_.data||[],C=2*Math.PI/T.length;let L=v,I=E;if(void 0===L||void 0===I){const e=o.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===L&&(L=Math.min(v,...e)),void 0===I&&(I=Math.max(E||0,...e))}const w=I-L,O=[];if(d){for(let t=1;c>=t;t++){const n=x*t/c;O.push(e("circle",{cx:N,cy:A,r:n,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+t))}for(let t=0;t<T.length;t++){const n=t*C-Math.PI/2,a=N+x*Math.cos(n),r=A+x*Math.sin(n);O.push(e("line",{x1:N,y1:A,x2:a,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+t))}}const R=[];if(u)for(let t=0;t<T.length;t++){const n=t*C-Math.PI/2,a=N+(x+20)*Math.cos(n),r=A+(x+20)*Math.sin(n);R.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:T[t]?.label},"label-"+t))}const M=o.map(((n,a)=>{const o=n.color||r[a%r.length],l=[];for(let e=0;e<n.data?.length;e++){const t=n.data[e]?.value||0,a=x*(w>0?(t-L)/w:0),r=e*C-Math.PI/2,o=N+a*Math.cos(r),i=A+a*Math.sin(r);l.push({x:o,y:i,value:t,point:n.data[e]})}if(0===l.length||!l[0])return null;let c="";if(b&&l.length>2){c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}else{c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}return t("g",{children:[h&&e("path",{d:c,fill:o,fillOpacity:m,className:"c-chart__radar-area"}),e("path",{d:c,fill:"none",stroke:o,strokeWidth:f,className:"c-chart__radar-line"}),p&&l.map(((t,n)=>{const r=s?.datasetIndex===a&&s?.pointIndex===n;return e("g",{children:e("circle",{cx:t.x,cy:t.y,r:r?1.5*g:g,fill:o,className:"c-chart__radar-point "+(r?"c-chart__radar-point--hovered":""),onClick:()=>{t.point&&i.onDataPointClick?.(t.point,a,n)},onMouseEnter:e=>{const r=e.currentTarget.getBoundingClientRect();i.onPointHover(a,n,t.x,t.y,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:i.onPointLeave})},`point-${a}-${n}`)}))]},"dataset-"+a)}));return t(n,{children:[t("g",{children:[O,M,R]}),y&&s&&o[s.datasetIndex]?.data?.[s.pointIndex]&&e(vi,{dataPoint:o[s.datasetIndex].data[s.pointIndex],datasetLabel:o[s.datasetIndex]?.label,datasetColor:o[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:i,...s})})));Di.displayName="RadarChart";const Bi=s(l((({datasets:a=[],config:r={},scatterOptions:o={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:i,...s},l)=>e(bi,{ref:l,type:"scatter",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:s,hoveredPoint:l,toolbarState:c,config:d})=>{if(!i.length)return null;const u=c?.showTooltips??d?.showTooltips??!0,h=[];return i.forEach(((n,i)=>{const l=n.color||r[i%r.length];n.data?.forEach(((r,c)=>{const d=void 0!==r.x?a.padding.left+r.x/100*a.innerWidth:a.xScale(c,n.data?.length),u=void 0!==r.y?a.padding.top+a.innerHeight-r.y/100*a.innerHeight:a.yScale(r.value);h.push(t("g",{children:[e("circle",{cx:d,cy:u,r:r.size||o.pointRadius||4,fill:r.color||l,className:"c-chart__scatter-point",onClick:()=>s.onDataPointClick?.(r,i,c),onMouseEnter:e=>{if(o.enableHoverEffects){const t=Math.max(0,1.5*(r.size||o.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();s.onPointHover(i,c,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(o.enableHoverEffects){const t=Math.max(0,r.size||o.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}s.onPointLeave()}}),o.showLabels&&r.label&&e("text",{x:d,y:u-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(r.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${i}-${c}`))}))})),t(n,{children:[h,u&&l&&i[l.datasetIndex]?.data?.[l.pointIndex]&&e(vi,{dataPoint:i[l.datasetIndex].data[l.pointIndex],datasetLabel:i[l.datasetIndex]?.label,datasetColor:i[l.datasetIndex]?.color||r[l.datasetIndex],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:i,...s}))));Bi.displayName="ScatterChart";const Pi=s(l((({data:a=[],algorithm:o="squarified",colorConfig:i={scheme:"category"},labelConfig:s={showLabels:!0,minSize:1e3,fontSize:12,textColor:"white"},onDataPointClick:l,config:c={},...h},m)=>{const[p,g]=r(null),[f,b]=r(null);r({x:0,y:0}),d((()=>{if(!a.length)return null;const e=new Map;a.forEach((t=>e.set(t.id,t)));const t=[],n=new Set,r=e=>{if(n.has(e.id))return e;n.add(e.id);const t=a.filter((t=>t.parent===e.id));var o;return t.length>0&&(e.children=t.map((e=>r(e))),e.value=di(o=e.children).call(o,((e,t)=>e+t.value),0)),e};return a.forEach((n=>{n.parent&&e.has(n.parent)||t.push(r(n))})),1===t.length?t[0]:{id:"root",label:"Root",value:di(t).call(t,((e,t)=>e+t.value),0),children:t}}),[a]);const S=u(((e,t,n)=>{if(e.color)return e.color;const{scheme:r,palette:o}=i,s=o||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(r){case"category":default:return s[n%s.length];case"depth":{const e=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return e[Math.min(t,e.length-1)]}case"value":if(a.length>0){const t=Math.max(...a.map((e=>e.value))),n=Math.min(...a.map((e=>e.value))),r=(e.value-n)/(t-n);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return s[0]}}),[i,a]),v=u(((e,t,n,a,r)=>{if(0===e.length)return;const o=di(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const o=e[0];return void(o&&(o.x=t,o.y=n,o.width=a,o.height=r))}const i=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...i],d=t,u=n,h=a,m=r;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=di(l).call(l,((e,t)=>e+t.value),0),n=t/o;let a,r;m>h?(a=h,r=m*n):(a=h*n,r=m);let i=!1;if(c.length>0){const e=c[0];if(!e)break;const n=[...l,e],d=di(n).call(n,((e,t)=>e+t.value),0),u=d/o;let p,g;m>h?(p=h,g=m*u):(p=h*u,g=m),i=Math.max(...l.filter((e=>e)).map((e=>{const n=e.value/t;return s({width:m>h?a*n:a,height:m>h?r:r*n})})))>=Math.max(...n.filter((e=>e)).map((e=>{const t=e.value/d;return s({width:m>h?p*t:p,height:m>h?g:g*t})})))}if(!i){let e=d,n=u;l.forEach((o=>{const i=o.value/t;m>h?(o.x=e,o.y=n,o.width=h*i,o.height=r,e+=o.width):(o.x=e,o.y=n,o.width=a,o.height=m*i,n+=o.height)})),m>h?(u+=r,m-=r):(d+=a,h-=a),l=[]}}}),[]);return e(bi,{ref:m,type:"treemap",datasets:[{label:"Treemap Data",data:a}],config:c,renderContent:({scales:r,colors:i,datasets:l,handlers:c,hoveredPoint:d})=>{if(!a.length)return null;const u=r.width-40,h=r.height-40,m=a.filter((e=>!e.children||0===e.children.length));if(!m.length)return null;const E=di(m).call(m,((e,t)=>e+t.value),0),y=m.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:S(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===o&&E>0)v(y,20,20,u,h);else{const e=Math.ceil(Math.sqrt(m.length)),t=Math.ceil(m.length/e),n=u/e,a=h/t;y.forEach(((t,r)=>{const o=r%e,i=Math.floor(r/e);t.x=20+o*n,t.y=20+i*a,t.width=n,t.height=a}))}return e(n,{children:y.map((n=>{const a=p===n,r=f===n,o=n.width*n.height,i=s.showLabels&&o>=(s.minSize||1e3);return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:n.color,className:`c-chart__treemap-node ${a?"c-chart__treemap-node--hovered":""} ${r?"c-chart__treemap-node--selected":""}`,onClick:()=>{b(n),c.onDataPointClick?.(n.originalData,0,0)},onMouseEnter:e=>{g(n);const t=e.currentTarget.getBoundingClientRect();c.onPointHover(0,0,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:()=>{g(null),c.onPointLeave()}}),i&&e("text",{x:n.x+n.width/2,y:n.y+n.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:s.fontSize,fill:s.textColor},children:n.label})]},n.id)}))})},onDataPointClick:l,interactive:!0,...h})})));Pi.displayName="TreemapChart";const zi=s(l((({waterfallData:t=[],config:n={},waterfallOptions:a={},onDataPointClick:r,...o},i)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:u="top",colors:h={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:m=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:b=1e3,animationDelay:S=100,valueFormatter:v=e=>e.toLocaleString(),showBaseline:E=!0,baselineColor:y="var(--atomix-gray-2)"}=a;return e(bi,{ref:i,type:"waterfall",datasets:[{label:"Waterfall Data",data:t}],config:n,renderContent:({scales:n,colors:a,datasets:r,handlers:o,hoveredPoint:i,toolbarState:b,config:N})=>{if(!t.length)return null;const A=b?.animationsEnabled??N?.animate??f,x=60,_=n.width-120,T=n.height-120;let C=0;const L=t.map(((e,t)=>{const n="total"===e.type||"subtotal"===e.type?0:C;let a;return"total"===e.type||"subtotal"===e.type?(a=e.value,C=e.value):(a=C+e.value,C=a),{...e,startValue:n,endValue:a,cumulativeValue:C,index:t}})),I=L.flatMap((e=>[e.startValue,e.endValue])),w=Math.min(0,...I),O=Math.max(...I)-w,R=_/t.length*m,M=_/t.length,k=e=>x+e*M+M/2,D=e=>x+T-(e-w)/O*T,B=[];if(E){const t=D(0);B.push(e("line",{x1:x,y1:t,x2:n.width-x,y2:t,stroke:y,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(L.forEach(((t,n)=>{const a=k(n),r=Math.min(D(t.startValue),D(t.endValue)),i=Math.max(D(t.startValue),D(t.endValue)),m=i-r;let p=t.color;if(p||(p="total"===t.type?h.total:"subtotal"===t.type?h.subtotal:0>t.value?h.negative:h.positive),B.push(e("rect",{x:a-R/2,y:r,width:R,height:Math.max(m,2),fill:p,className:"c-chart__waterfall-bar "+(A?"c-chart__waterfall-bar--animated":""),style:{animationDelay:A?n*S+"ms":"0ms"},onClick:()=>o.onDataPointClick?.(t,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(0,n,a,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave},"bar-"+n)),d){let o=r,s=t.value;o="center"===u?r+m/2:"bottom"===u?i+15:r-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),B.push(e("text",{x:a,y:o,textAnchor:"middle",dominantBaseline:"center"===u?"middle":"auto",className:"c-chart__waterfall-value "+("center"===u?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:v(s)},"value-"+n))}if(s&&n<L.length-1){const r=L[n+1];if(r){const o=D(t.endValue),i=D(r.startValue),s=k(n+1);if(Math.abs(t.endValue-r.startValue)>.01){const t="dashed"===c?"5,5":"dotted"===c?"2,2":"none";B.push(e("line",{x1:a+R/2,y1:o,x2:s-R/2,y2:i,stroke:l,strokeDasharray:t,className:"c-chart__waterfall-connector"},"connector-"+n))}}}})),p){const t=L.map(((e,t)=>({x:k(t),y:D(e.cumulativeValue)}))),n="M "+t.map((e=>`${e.x},${e.y}`)).join(" L ");B.push(e("path",{d:n,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,n)=>{B.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+n))}))}return B.push(e("line",{x1:x,y1:n.height-x,x2:n.width-x,y2:n.height-x,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),B.push(e("line",{x1:x,y1:x,x2:x,y2:n.height-x,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),L.forEach(((t,a)=>{const r=x+a*M+M/2;B.push(e("text",{x:r,y:n.height-x+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${n.height-x+20})`,children:t.label},"x-label-"+a))})),e("g",{children:B})},onDataPointClick:r,...o})})));zi.displayName="WaterfallChart";const Ui={sm:16,md:24,lg:32},Fi=({className:t="",style:n,value:a,defaultValue:o="light",onChange:s,lightIcon:l,darkIcon:c,size:d="md",disabled:h=!1,storageKey:m="atomix-color-mode",dataAttribute:p="data-atomix-color-mode",disableStorage:g=!1,disableSystemPreference:f=!1,"aria-label":b,showTooltip:S=!0})=>{const v=void 0!==a,[E,y]=r(o),N=v?a:E;i((()=>{if(!v&&"undefined"!=typeof window){if(!g)try{const e=localStorage.getItem(m);if("light"===e||"dark"===e)return void y(e)}catch(e){}!f&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&y("dark")}}),[v,g,f,m]),i((()=>{if("undefined"==typeof window)return;const e="dark"===N?"dark":"light";if(document.body.setAttribute(p,e),!g)try{localStorage.setItem(m,e)}catch(t){}}),[N,p,g,m]),i((()=>{if(v||f||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(g)y(e.matches?"dark":"light");else try{localStorage.getItem(m)||y(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[v,f,g,m]);const A=u((()=>{if(h)return;const e="light"===N?"dark":"light";v||y(e),s?.(e)}),[h,N,v,s]),x=Ui[d],_="light"===N?"dark":"light",T=b||`Switch to ${_} mode`,C=S?`Switch to ${_} mode`:void 0,L=e("svg",{viewBox:"0 0 24 24",width:x,height:x,fill:"currentColor","aria-hidden":"true",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"})}),I=e("svg",{viewBox:"0 0 24 24",width:x,height:x,fill:"currentColor","aria-hidden":"true",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"})});return e("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${d} ${h?"c-color-mode-toggle--disabled":""} ${t}`,onClick:A,disabled:h,"aria-label":T,"aria-pressed":"dark"===N,title:C,style:n,children:"light"===N?l||L:c||I})};Fi.displayName="ColorModeToggle";const Gi=l((({target:n,show:o=["days","hours","minutes","seconds"],separator:s=":",focused:l=!1,className:c="",style:d,onComplete:u},h)=>{const m="string"==typeof n?new Date(n):n,[p,g]=r((()=>new Date)),[f,b]=r(!1);i((()=>{if(f)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[f]);const S=m.getTime()-p.getTime(),{days:v,hours:E,minutes:y,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);i((()=>{S>0||f||(b(!0),u&&u())}),[S,f,u]);const A=[];return Po(o).call(o,"days")&&A.push({label:"Days",value:v}),Po(o).call(o,"hours")&&A.push({label:"Hours",value:E}),Po(o).call(o,"minutes")&&A.push({label:"Minutes",value:y}),Po(o).call(o,"seconds")&&A.push({label:"Seconds",value:N}),e("div",{ref:h,className:`c-countdown${l?" c-countdown--focused":""} ${c}`.trim(),style:d,children:A.map(((n,r)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:(n.value+"").padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),r<A.length-1&&e("span",{className:"c-countdown__separator",children:s})]},n.label)))})}));function Vi(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}function Hi({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:o=10,onSort:s,initialSortConfig:l,selectionMode:c="none",selectedRowIds:h,onSelectionChange:m,rowKey:p,columnFilters:g=!1,reorderable:f=!1,onColumnReorder:b,onColumnVisibilityChange:S}){const[v,E]=r(l||null),[y,N]=r(1),[A,x]=r(""),[_,T]=r([]),C=h??_,[L,I]=r((()=>t.map((e=>e.key)))),[w,O]=r((()=>{const e={};return t.forEach((t=>{e[t.key]=!1!==t.visible})),e})),[R,M]=r({});i((()=>{const e=t.map((e=>e.key)),n=new Set(L),a=new Set(e);e.length===L.length&&e.every((e=>n.has(e)))&&L.every((e=>a.has(e)))||I(e)}),[t]),i((()=>{O((e=>{const n={...e};return t.forEach((e=>{e.key in n||(n[e.key]=!1!==e.visible)})),n}))}),[t]);const k=d((()=>L.map((e=>t.find((t=>t.key===e)))).filter((e=>void 0!==e&&!1!==w[e.key]))),[t,L,w]),D=u((e=>{if(!n)return;let t="asc";v&&v.key===e&&"asc"===v.direction&&(t="desc");const a={key:e,direction:t};E(a),s&&s(a)}),[n,v,s]),B=u((e=>{1>e||N(e)}),[]),P=u((e=>{x(e),N(1)}),[]),z=u(((e,t)=>{M((n=>({...n,[e]:t}))),N(1)}),[]),U=u((()=>{M({}),N(1)}),[]),F=d((()=>{let n=e;if(A){const e=A.toLowerCase();n=n.filter((t=>k.some((n=>{var a;const r=t[n.key];return null!=r&&Po(a=(r+"").toLowerCase()).call(a,e)}))))}return g&&(n=n.filter((e=>Object.entries(R).every((([n,a])=>{var r;if(!a)return!0;const o=t.find((e=>e.key===n));if(!o||!o.filterable)return!0;const i=e[n];return null!=i&&(o.filterFunction?o.filterFunction(i,a):Po(r=(i+"").toLowerCase()).call(r,a.toLowerCase()))}))))),n}),[e,k,A,R,g,t]),G=d((()=>v&&n?[...F].sort(((e,t)=>{const n=e[v.key],a=t[v.key];return null==n?"asc"===v.direction?-1:1:null==a?"asc"===v.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===v.direction?n.localeCompare(a):a.localeCompare(n):"asc"===v.direction?n>a?1:-1:n>a?-1:1})):F),[F,v,n]),V=d((()=>{if(!a)return G;const e=(y-1)*o;return G.slice(e,e+o)}),[G,a,y,o]),H=d((()=>a?Math.max(1,Math.ceil(G.length/o)):1),[G.length,a,o]),j=d((()=>"none"===c||0===C.length?[]:G.filter((e=>Po(C).call(C,Vi(e,p))))),[G,C,c,p]),Y=u(((e,t)=>{if("none"===c)return;let n;if(n="single"===c?t?[e]:[]:t?[...C,e]:C.filter((t=>t!==e)),h||T(n),m){const e=G.filter((e=>Po(n).call(n,Vi(e,p))));m(e,n)}}),[c,C,h,m,G,p]),W=u((e=>{if("multiple"!==c)return;const t=e?V.map((e=>Vi(e,p))):[];if(h||T(t),m){const e=G.filter((e=>Po(t).call(t,Vi(e,p))));m(e,t)}}),[c,V,G,h,m,p]),K=d((()=>"multiple"===c&&0!==V.length&&V.every((e=>Po(C).call(C,Vi(e,p))))),[c,V,C,p]),$=d((()=>{if("multiple"!==c||0===V.length)return!1;const e=V.filter((e=>Po(C).call(C,Vi(e,p)))).length;return e>0&&e<V.length}),[c,V,C,p]),Q=u((e=>{O((t=>{const n={...t,[e]:!t[e]};if(S){const e=Object.entries(n).filter((([,e])=>e)).map((([e])=>e));S(e)}return n}))}),[S]);return u(((e,t)=>{const n=[...L],[a]=n.splice(e,1);a&&(n.splice(t,0,a),I(n),b&&b(n))}),[L,b]),i((()=>{N(1)}),[e]),i((()=>{y>H&&H>0&&N(Math.max(1,H))}),[y,H]),{displayData:V,sortConfig:v,currentPage:y,totalPages:H,handleSort:D,handlePageChange:B,handleSearch:P,selectedRowIds:C,selectedRows:j,handleRowSelect:Y,handleSelectAll:W,isAllSelected:K,isIndeterminate:$,columnOrder:L,visibleColumns:k,columnVisibility:w,handleColumnVisibilityToggle:Q,columnFilterValues:R,handleColumnFilterChange:z,clearColumnFilters:U}}Gi.displayName="Countdown";const ji="...",Yi=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),Wi=({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=d((()=>{if(n+5>=t)return Yi(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),o=a>2,i=t-2>r,s=t;if(!o&&i)return[...Yi(1,3+2*n),ji,t];if(o&&!i){let e=Yi(t-(3+2*n)+1,t);return[1,ji,...e]}if(o&&i){let e=Yi(a,r);return[1,ji,...e,ji,s]}return[]}),[t,n,e]),o=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:o,nextPage:()=>{o(e+1)},prevPage:()=>{o(e-1)},firstPage:()=>{o(1)},lastPage:()=>{o(t)},DOTS:ji}},Ki=s((({type:t,onClick:n,disabled:a,label:r,iconName:o})=>e("li",{className:`c-pagination__item c-pagination__item--${t} ${a?"is-disabled":""}`,"aria-disabled":a,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:a,"aria-label":r,children:e(yt,{name:o,size:"sm","aria-hidden":"true"})})}))),$i=s((({currentPage:n=de.currentPage,totalPages:a=de.totalPages,onPageChange:o,siblingCount:i=de.siblingCount,showFirstLastButtons:s=de.showFirstLastButtons,showPrevNextButtons:l=de.showPrevNextButtons,showSearch:c=!1,searchPlaceholder:d="Go to page",size:u=de.size,className:h="",style:m,ariaLabel:p="Pagination",glass:g})=>{const{paginationRange:f,goToPage:b,nextPage:S,prevPage:v,firstPage:E,lastPage:y}=Wi({currentPage:n,totalPages:a,siblingCount:i,onPageChange:o}),[N,A]=r(""),[x,_]=r("");if(0===n||2>f.length)return null;const T=t("nav",{className:`c-pagination c-pagination--${u} ${h}`,style:m,"aria-label":p,children:[t("ul",{className:"c-pagination__items",children:[s&&e(Ki,{type:"first",onClick:E,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),l&&e(Ki,{type:"prev",onClick:v,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),f.map(((t,a)=>{if(t===ji)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+a);const r=t===n;return e("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>b(t),"aria-label":"Page "+t,"aria-current":r?"page":void 0,children:t})},t)})),l&&e(Ki,{type:"next",onClick:S,disabled:n===a,label:"Go to next page",iconName:"CaretRight"}),s&&e(Ki,{type:"last",onClick:y,disabled:n===a,label:"Go to last page",iconName:"SkipForward"})]}),c&&t("form",{className:"c-pagination__search",onSubmit:e=>{e.preventDefault(),_("");const t=parseInt(N,10);isNaN(t)?_("Please enter a valid page number"):1>t||t>a?_("Page must be between 1 and "+a):t!==n?(b(t),A("")):_("You are already on this page")},"aria-label":"Jump to page",children:[t("div",{className:"c-pagination__search-wrapper",children:[t("label",{htmlFor:"pagination-search-"+n,className:"c-pagination__search-label",children:[e("span",{className:"c-pagination__search-label-text",children:"Go to page:"}),e("input",{id:"pagination-search-"+n,type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"c-pagination__search-input "+(x?"is-error":""),placeholder:d,value:N,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(A(t),_(""))},"aria-label":"Page number","aria-invalid":x?"true":"false","aria-describedby":x?"pagination-error-"+n:void 0})]}),e("button",{type:"submit",className:"c-pagination__search-button","aria-label":"Go to page",children:e(yt,{name:"ArrowRight",size:"sm","aria-hidden":"true"})})]}),x&&e("div",{id:"pagination-error-"+n,className:"c-pagination__search-error",role:"alert",children:x})]})]});if(g){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===g?t:{...t,...g};return e(nt,{...n,children:T})}return T}));function Qi(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=o(null);return i((()=>{n.current&&(n.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,indeterminate:o=t.indeterminate,className:i=""}=e;let s="";return a?s="is-error":r&&(s="is-valid"),`c-checkbox ${s} ${n?"is-disabled":""} ${o?"c-checkbox--mixed":""} ${i}`.trim()},checkboxRef:n}}$i.displayName="Pagination",Ki.displayName="PaginationNavButton";const qi=s((({label:n,checked:a=!1,onChange:r,className:o="",style:i,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,indeterminate:p=!1,ariaLabel:g,ariaDescribedBy:f,glass:b})=>{const{generateCheckboxClass:S,checkboxRef:v}=Qi({indeterminate:p,disabled:s,invalid:h,valid:m}),E=S({className:`${o} ${b?"c-checkbox--glass":""}`.trim(),disabled:s,invalid:h,valid:m,indeterminate:p}),y=t("div",{className:E,style:i,children:[e("input",{ref:v,type:"checkbox",className:"c-checkbox__input",checked:a,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":n?void 0:g,"aria-describedby":f,"aria-invalid":h}),n&&e("label",{className:"c-checkbox__label",htmlFor:c,children:n})]});if(b){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===b?t:{...t,...b};return e(nt,{...n,children:y})}return y}));qi.displayName="Checkbox";const Zi=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),Xi=s((({children:n,href:a,active:r=!1,disabled:o=!1,icon:i,onClick:s,className:l="",LinkComponent:c,...d})=>{const{close:u}=f(Zi),h=e=>{o?e.preventDefault():(s&&s(e),u())},m=["c-dropdown__menu-item",r?"is-active":"",o?"is-disabled":"",l].filter(Boolean).join(" "),p={href:a,className:m,onClick:h,role:"menuitem",tabIndex:0,...d};return e("li",a&&!o?{children:t(c||"a",{...p,children:[i&&e("span",{className:"c-dropdown__menu-item-icon",children:i}),n]})}:{children:t("button",{type:"button",className:m,onClick:h,disabled:o,role:"menuitem",tabIndex:0,...d,children:[i&&e("span",{className:"c-dropdown__menu-item-icon",children:i}),n]})})})),Ji=s((({className:t=""})=>e("li",{className:"c-dropdown__divider "+t,role:"separator"}))),es=s((({children:t,className:n=""})=>e("li",{className:"c-dropdown__header "+n,children:t}))),ts=s((({children:n,menu:a,placement:s="bottom-start",trigger:l="click",offset:c=Ae.DEFAULTS.OFFSET,isOpen:d,onOpenChange:h,closeOnClickOutside:m=!0,closeOnEscape:p=!0,maxHeight:g,minWidth:f=Ae.DEFAULTS.MIN_WIDTH,variant:b,className:S="",style:v,glass:E,...y})=>{const[N,A]=r(!1),x=void 0!==d,_=x?d:N,T=o(null),C=o(null),L=o(null),I=o("dropdown-"+Math.random().toString(36).substring(2,9)).current,w=u((e=>{x||A(e),h&&h(e)}),[x,h]),O=u((()=>w(!_)),[_,w]),R=u((()=>{w(!1),setTimeout((()=>{C.current?.focus()}),0)}),[w]);i((()=>{if(!_||!m)return;const e=e=>{T.current&&!T.current.contains(e.target)&&R()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[_,m,R]),i((()=>{if(!_||!p)return;const e=e=>{"Escape"===e.key&&R()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[_,p,R]);const M=u((e=>{if(!L.current)return;const t=L.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),k=u((e=>{"click"===l&&(e.preventDefault(),e.stopPropagation(),O())}),[l,O]),D=u((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||_?"Escape"===e.key&&_&&(e.preventDefault(),R()):(e.preventDefault(),w(!0),"ArrowDown"===e.key&&L.current&&setTimeout((()=>{const e=L.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[_,w,R]),B=u((()=>{"hover"===l&&w(!0)}),[l,w]),P=["c-dropdown","click"===l?"c-dropdown--onclick":"",b?"c-dropdown--"+b:"",_?"is-open":"",E?"c-dropdown--glass":"",S].filter(Boolean).join(" "),z={};g&&(z.maxHeight=g),void 0!==f&&(z.minWidth="number"==typeof f?f+"px":f);const U=e("div",{className:"c-dropdown__menu-inner",style:z,children:e(Zi.Provider,{value:{isOpen:_,close:R,id:I,trigger:l},children:e("ul",{className:"c-dropdown__menu "+(E?"c-dropdown__menu--glass":""),children:a})})});return t("div",{ref:T,className:P,style:v,onMouseEnter:"hover"===l?B:void 0,...y,children:[e("div",{ref:C,className:"c-dropdown__toggle",onClick:k,onKeyDown:D,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":I,tabIndex:0,children:n}),e("div",{ref:L,id:I,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${s} ${_?"is-open":""} ${E?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!_,onKeyDown:M,children:E?(()=>{const t={displacementScale:20,elasticity:0},n=!0===E?t:{...t,...E};return e(nt,{...n,children:U})})():U})]})}));function ns(e){const t=((e??"")+"").replace(/[\r\n\t]/g," ").replace(/"/g,'""');return/^[=+\-@]/.test(t)?"'"+t:t}ts.displayName="Dropdown",Xi.displayName="DropdownItem",Ji.displayName="DropdownDivider",es.displayName="DropdownHeader";const as=s((({data:a,columns:s,className:l,style:c,sortable:d=!1,filterable:h=!1,paginated:m=!1,pageSize:p=10,striped:g=!1,bordered:f=!1,dense:b=!1,loading:S=!1,emptyMessage:v="No data available",onRowClick:E,onSort:y,selectionMode:N="none",selectedRowIds:A,onSelectionChange:x,rowKey:_,resizable:T=!1,reorderable:C=!1,onColumnReorder:L,showColumnVisibility:I=!1,onColumnVisibilityChange:w,stickyHeader:O=!1,stickyHeaderOffset:R="0px",virtualScrolling:M=!1,estimatedRowHeight:k=50,overscan:D=5,exportable:B=!1,exportFormats:P=["csv","excel","json"],exportFilename:z="data-table",onExport:U,columnFilters:F=!1,...G})=>{const V=o(null),H=o(null),[j,Y]=r(null),[W,K]=r({}),[$,Q]=r(null),[q,Z]=r(null),{displayData:X,sortConfig:J,currentPage:ee,totalPages:te,handleSort:ne,handlePageChange:ae,handleSearch:re,selectedRowIds:oe,selectedRows:ie,handleRowSelect:se,handleSelectAll:ce,isAllSelected:de,isIndeterminate:ue,visibleColumns:he,columnVisibility:me,handleColumnVisibilityToggle:pe,columnFilterValues:ge,handleColumnFilterChange:fe,clearColumnFilters:be}=Hi({data:a,columns:s,sortable:d,paginated:m,pageSize:p,onSort:y,selectionMode:N,selectedRowIds:A,onSelectionChange:x,rowKey:_,columnFilters:F,reorderable:C,onColumnReorder:L,onColumnVisibilityChange:w});i((()=>{const e={};he.forEach((t=>{if(t.width){const n=parseInt(t.width,10);isNaN(n)||(e[t.key]=n)}})),K(e)}),[he]);const Se=u(((e,t)=>{t.preventDefault(),t.stopPropagation(),Y(e);const n=t.clientX,a=W[e]||100,r=t=>{const r=t.clientX-n,o=Math.max(50,a+r);K((t=>({...t,[e]:o})))},o=()=>{Y(null),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)}),[W]),ve=u((e=>{Q(e)}),[]),Ee=u(((e,t)=>{e.preventDefault(),Z(t)}),[]),ye=u(((e,t)=>{if(e.preventDefault(),null!==$&&$!==t&&L){const e=[...he.map((e=>e.key))],[n]=e.splice($,1);e.splice(t,0,n),L(e)}Q(null),Z(null)}),[$,he,L]),Ne=u((e=>{U?U(e,X):function(e,t,n,a){const r=a||"data-table";switch(e){case"csv":!function(e,t,n="data-table.csv"){if(!e.length||!t.length)return;const a=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>{const n=e[t.key];return t.render,n??""})))),o=[a.map((e=>`"${ns(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${ns(e)}"`)).join(",")))].join("\n"),i=new Blob([o],{type:"text/csv;charset=utf-8;"}),s=URL.createObjectURL(i),l=document.createElement("a");l.download=n.endsWith(".csv")?n:n+".csv",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,n,r);break;case"excel":!function(e,t,n="data-table.xlsx"){if(!e.length||!t.length)return;const a=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>e[t.key]??"")))),o=[a.map((e=>`"${ns(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${ns(e)}"`)).join(",")))].join("\n"),i=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=URL.createObjectURL(i),l=document.createElement("a");l.download=n.endsWith(".xlsx")?n:n+".xlsx",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,n,r);break;case"json":!function(e,t="data-table.json"){if(!e.length)return;const n=JSON.stringify(e,null,2),a=new Blob([n],{type:"application/json;charset=utf-8;"}),r=URL.createObjectURL(a),o=document.createElement("a");o.download=t.endsWith(".json")?t:t+".json",o.href=r,o.click(),URL.revokeObjectURL(r)}(t,r)}}(e,X,he,z)}),[X,he,z,U]),Ae=[le.base,g&&le.striped,f&&le.bordered,b&&le.dense,S&&le.loading,O&&le.stickyHeader,l].filter(Boolean).join(" "),xe={...c,...O&&{"--sticky-header-offset":R}};return t("div",{className:le.container,style:xe,...G,children:[h||B||I||F?t("div",{className:le.toolbar,children:[t("div",{className:le.toolbarLeft,children:[h&&e("div",{className:le.search,children:e("input",{type:"text",placeholder:"Search...",className:le.searchInput+" c-input",onChange:e=>re(e.target.value),"aria-label":"Search table"})}),F&&Object.keys(ge).length>0&&e(kt,{size:"sm",variant:"secondary",onClick:be,children:"Clear Filters"})]}),t("div",{className:le.toolbarRight,children:[I&&e(ts,{trigger:"click",placement:"bottom-end",menu:e(n,{children:s.map((n=>e(Xi,{onClick:e=>{e.preventDefault(),e.stopPropagation(),pe(n.key)},children:t("label",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"100%"},children:[e(qi,{checked:!1!==me[n.key],onChange:()=>pe(n.key),onClick:e=>e.stopPropagation()}),e("span",{style:{marginLeft:"0.5rem"},children:n.title})]})},n.key)))}),children:t(kt,{size:"sm",variant:"secondary",children:[e(yt,{name:"Columns",size:"sm"}),"Columns"]})}),B&&e(ts,{trigger:"click",placement:"bottom-end",menu:t(n,{children:[Po(P).call(P,"csv")&&e(Xi,{onClick:()=>Ne("csv"),children:"Export as CSV"}),Po(P).call(P,"excel")&&e(Xi,{onClick:()=>Ne("excel"),children:"Export as Excel"}),Po(P).call(P,"json")&&e(Xi,{onClick:()=>Ne("json"),children:"Export as JSON"})]}),children:t(kt,{size:"sm",variant:"secondary",children:[e(yt,{name:"Download",size:"sm"}),"Export"]})})]})]}):null,e("div",{className:le.tableWrapper,children:t("table",{ref:V,className:Ae,children:[e("thead",{ref:H,className:le.header,style:O?{position:"sticky",top:R,zIndex:10}:void 0,children:t("tr",{children:["none"===N?null:e("th",{className:`${le.headerCell} ${le.selectionCell}`,style:{width:"48px"},children:"multiple"===N&&e(qi,{checked:de,indeterminate:ue,onChange:e=>ce(e.target.checked),"aria-label":"Select all rows"})}),he.map(((n,a)=>{const r=$===a,o=q===a;return t("th",{className:[le.headerCell,!1!==n.sortable&&d?le.sortable:"",r?le.dragging:"",o?le.dragOver:""].filter(Boolean).join(" "),style:{...W[n.key]&&{width:W[n.key]+"px"},...n.width&&!W[n.key]&&{width:n.width}},onClick:()=>!1!==n.sortable&&d?ne(n.key):null,onDragStart:C?()=>ve(a):void 0,onDragOver:C?e=>Ee(e,a):void 0,onDrop:C?e=>ye(e,a):void 0,draggable:C,"aria-sort":J?.key===n.key?"asc"===J.direction?"ascending":"descending":void 0,children:[t("div",{className:le.headerContent,children:[e("span",{children:n.title}),t("div",{className:le.headerActions,children:[!1!==n.sortable&&d&&e("span",{className:le.sortIcon,children:J?.key===n.key?"asc"===J.direction?e(yt,{name:"CaretUp",size:"sm"}):e(yt,{name:"CaretDown",size:"sm"}):null}),F&&!1!==n.filterable&&e("input",{type:"text",className:le.columnFilter,placeholder:"Filter...",value:ge[n.key]||"",onChange:e=>fe(n.key,e.target.value),onClick:e=>e.stopPropagation(),"aria-label":"Filter "+n.title})]})]}),T&&!1!==n.resizable&&e("div",{className:le.resizeHandle,onMouseDown:e=>Se(n.key,e)})]},"header-"+n.key)}))]})}),S?e("tbody",{children:e("tr",{children:e("td",{colSpan:he.length+("none"!==N?1:0),className:le.loadingCell,children:e("div",{className:le.loadingIndicator,children:e(Rt,{size:"md",variant:"primary"})})})})}):0===X.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:he.length+("none"!==N?1:0),className:le.emptyCell,children:v})})}):e("tbody",{children:X.map(((n,a)=>{const r=function(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}(n,_),o=Po(oe).call(oe,r);return t("tr",{className:[le.row,o?le.rowSelected:""].filter(Boolean).join(" "),onClick:E?()=>E(n):void 0,tabIndex:E?0:void 0,role:E?"button":void 0,children:["none"!==N&&e("td",{className:`${le.cell} ${le.selectionCell}`,children:"multiple"===N?e(qi,{checked:o,onChange:e=>se(r,e.target.checked),onClick:e=>e.stopPropagation(),"aria-label":"Select row "+(a+1)}):e("input",{type:"radio",checked:o,onChange:()=>se(r,!0),onClick:e=>e.stopPropagation(),name:"data-table-row-selection","aria-label":"Select row "+(a+1),className:"c-data-table__radio"})}),he.map((t=>e("td",{className:le.cell,style:{...W[t.key]&&{width:W[t.key]+"px"},...t.width&&!W[t.key]&&{width:t.width}},children:t.render?t.render(n[t.key],n):n[t.key]},`cell-${r}-${t.key}`)))]},"row-"+r)}))})]})}),m&&te>1?e("div",{className:le.pagination,children:e($i,{currentPage:ee,totalPages:te,onPageChange:ae,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})}));function rs(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function os(e,t){return new Date(e,t+1,0).getDate()}function is(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function ss({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:h,inline:m=!1}={}){const[p,g]=r(m),[f,b]=r(e?is(e,c):""),[S,v]=r(a&&s?`${is(a,c)} - ${is(s,c)}`:a?is(a,c)+" - Select end date":""),[E,y]=r(e||a||new Date),[N,A]=r("days"),[x,_]=r(!a||a&&s?"start":"end"),T=o(null),C=o(null),L=new Date,I=E.getMonth(),w=E.getFullYear(),O=os(w,I),R=new Date(w,I,1).getDay();i((()=>{"single"===n?b(e?is(e,c):""):(v(a&&s?`${is(a,c)} - ${is(s,c)}`:a?is(a,c)+" - Select end date":""),_(!a||a&&s?"start":"end"))}),[e,a,s,c,n]);const M=u((e=>{const r=new Date(w,I,e);if(!(d&&d>r||h&&r>h))if("single"===n)t&&t(r),b(is(r,c)),m||g(!1);else if("start"===x)l&&l({startDate:r,endDate:null}),v(is(r,c)+" - Select end date"),_("end");else{if(!a)return;a>r?(l&&l({startDate:r,endDate:a}),v(`${is(r,c)} - ${is(a,c)}`)):(l&&l({startDate:a,endDate:r}),v(`${is(a,c)} - ${is(r,c)}`)),m||g(!1),_("start")}}),[w,I,d,h,t,l,c,m,n,x,a]),k=u((()=>{y(new Date(w,I-1,1))}),[w,I]),D=u((()=>{y(new Date(w,I+1,1))}),[w,I]),B=u((()=>{y(new Date(w-1,I,1))}),[w,I]),P=u((()=>{y(new Date(w+1,I,1))}),[w,I]),z=u((()=>{A("months")}),[]),U=u((()=>{A("years")}),[]),F=u((e=>{y(new Date(w,e,1)),A("days")}),[w]),G=u((e=>{y(new Date(e,I,1)),A("months")}),[I]),V=u((()=>{y(new Date(w-12,I,1))}),[w,I]),H=u((()=>{y(new Date(w+12,I,1))}),[w,I]),j=u((()=>{A("days")}),[]),Y=u((()=>{const e=new Date;y(e),"single"===n?M(e.getDate()):y(new Date)}),[M,n]),W=u((()=>{"single"===n?(b(""),t&&t(null)):(v(""),_("start"),l&&l({startDate:null,endDate:null}))}),[t,l,n]),K=u((e=>{if("single"===n){b(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),y(n))}else{v(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),n=t[1]?.trim();if(!e||!n)return;const a=new Date(e);if(isNaN(a.getTime())||y(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||l&&l({startDate:t,endDate:a})}}}}),[t,l,n]),$=u((()=>{m||g(!0)}),[m]),Q=u((e=>{T.current&&!T.current.contains(e.target)&&C.current&&!C.current.contains(e.target)&&g(!1)}),[]);i((()=>(p&&!m?document.addEventListener("mousedown",Q):document.removeEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)})),[p,Q,m]);const q=u((()=>{const e=[],t=os(0===I?w-1:w,0===I?11:I-1);for(let a=R-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 a=1;O>=a;a++)e.push({day:a,month:I,year:w,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===I?0:I+1,year:11===I?w+1:w,isCurrentMonth:!1});return e}),[O,R,I,w]),Z=u((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:rs(t)});return e}),[]),X=u((()=>{const e=[],t=w-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[w]),J=u(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),d,h)),[d,h]),ee=u(((t,r,o)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===r&&e.getDate()===o;if(!a&&!s)return!1;if(a&&!s)return a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===o;if(a&&s){const e=a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===o,n=s.getFullYear()===t&&s.getMonth()===r&&s.getDate()===o;return e||n}return!1}),[e,n,a,s]),te=u(((e,t,r)=>{if("range"!==n||!a||!s)return!1;const o=new Date(e,t,r);return o>a&&s>o}),[n,a,s]),ne=u(((e,t,n)=>L.getFullYear()===e&&L.getMonth()===t&&L.getDate()===n),[L]),ae=u((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:p,inputValue:f,rangeInputValue:S,viewDate:E,viewMode:N,currentMonth:I,currentYear:w,selectionMode:n,rangeSelectionState:x,datePickerRef:T,inputRef:C,startDate:a,endDate:s,setIsOpen:g,handleDateSelect:M,handlePrevMonth:k,handleNextMonth:D,handlePrevYear:B,handleNextYear:P,handleTodayClick:Y,handleClear:W,handleInputChange:K,handleInputFocus:$,switchToMonthView:z,switchToYearView:U,switchToDayView:j,selectMonth:F,selectYear:G,handlePrevDecade:V,handleNextDecade:H,generateDays:q,generateMonths:Z,generateYears:X,isDateSelectable:J,isDateSelected:ee,isDateInSelectedRange:te,isToday:ne,getWeekNumber:ae}}as.displayName="DataTable";const ls=l((({value:a,onChange:r,selectionMode:o="single",startDate:i,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,placeholder:h="Select date...",disabled:m=!1,readOnly:p=!1,clearable:g=!0,showTodayButton:f=!0,showWeekNumbers:S=!1,inline:v=!1,id:E,name:y,className:N="",placement:A="bottom-start",inputClassName:x="",size:_="md",style:T,glass:C,...L},I)=>{const{isOpen:w,inputValue:O,rangeInputValue:R,viewMode:M,currentMonth:k,currentYear:D,selectionMode:B,rangeSelectionState:P,datePickerRef:z,inputRef:U,startDate:F,endDate:G,setIsOpen:V,handleInputChange:H,handleInputFocus:j,handleClear:Y,handleDateSelect:W,handleTodayClick:K,handlePrevMonth:$,handleNextMonth:Q,handlePrevYear:q,handleNextYear:Z,switchToMonthView:X,switchToYearView:J,switchToDayView:ee,selectMonth:te,selectYear:ne,handlePrevDecade:ae,handleNextDecade:re,generateDays:oe,generateMonths:ie,generateYears:se,isDateSelectable:le,isDateSelected:ce,isDateInSelectedRange:de,isToday:ue,getWeekNumber:he}=ss({value:a,onChange:r,selectionMode:o,startDate:i,endDate:s,onRangeChange:l,minDate:d,maxDate:u,format:c,inline:v});b(I,(()=>({open:()=>V(!0),close:()=>V(!1),clear:Y,focus:()=>U.current?.focus()})));const me=`c-datepicker ${N} ${v?"c-datepicker--inline":""}`.trim(),pe=`c-datepicker__input c-input c-input--${_} ${x}`.trim(),ge=E||"datepicker-"+Math.random().toString(36).substring(2,9),fe=ge+"-calendar",be="single"===o?O:R,Se=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",ve=()=>t(n,{children:[t("div",{className:"c-datepicker__header",children:["days"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:q,"aria-label":"Previous year",children:e(yt,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:$,"aria-label":"Previous month",children:e(yt,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:X,"aria-label":`${Se(k)} ${D}`,children:[Se(k)," ",D]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:Q,"aria-label":"Next month",children:e(yt,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:Z,"aria-label":"Next year",children:e(yt,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===M&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:q,"aria-label":"Previous year",children:e(yt,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Year "+D,children:D}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:Z,"aria-label":"Next year",children:e(yt,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===M&&(()=>{const a=se();return t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:ae,"aria-label":"Previous decade",children:e(yt,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:ee,children:[a[0]," - ",a[a.length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:re,"aria-label":"Next decade",children:e(yt,{name:"CaretDoubleRight",size:"sm"})})]})})()]}),t("div",{className:"c-datepicker__body",children:["days"===M&&t(n,{children:[t("div",{className:"c-datepicker__weekdays"+(S?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[S&&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"+(S?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],n=oe();for(let a=0;a<n.length;a++){const r=n[a];if(!r)continue;const o=new Date(r.year,r.month,r.day),i=le(r.year,r.month,r.day),s=ce(r.year,r.month,r.day),l=ue(r.year,r.month,r.day),c=de(r.year,r.month,r.day);if(S&&a%7==0){const n=he(o);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:n},"weeknumber-"+Math.floor(a/7)))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${i?"":"c-datepicker__day--disabled"}`,onClick:()=>i&&W(r.day),disabled:!i,tabIndex:r.isCurrentMonth?0:-1,"aria-label":o.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+a))}return t})()})]}),"months"===M&&e("div",{className:"c-datepicker__months",role:"grid",children:ie().map(((t,n)=>{const r=a&&a.getMonth()===t.month&&a.getFullYear()===D;return e("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>te(t.month),"aria-selected":r?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===M&&e("div",{className:"c-datepicker__years",role:"grid",children:se().map(((t,n)=>{const r=a&&a.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>ne(t),"aria-selected":r?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===M&&t("div",{className:"c-datepicker__footer",children:["range"===o&&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"]}),f&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:K,"aria-label":"Go to today",children:"Today"}),!v&&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:me,ref:z,style:T,...L,children:[!v&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ge,name:y,ref:U,type:"text",className:pe,placeholder:"single"===o?h:"start"===P?"Select start date...":F?is(F,c)+" - Select end date...":"Select date range...",value:be,onChange:H,onFocus:j,disabled:m,readOnly:p,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":fe}),g&&be&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:e(yt,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(yt,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(w||v)&&e(n,{children:e("div",C?{id:fe,className:`c-datepicker__calendar c-datepicker__calendar--${A} c-datepicker__calendar--glass`,role:"dialog","aria-modal":v?void 0:"true","aria-label":"Date picker",children:e(nt,{...!0===C?{displacementScale:20}:C,children:e("div",{className:"c-datepicker__glass-content",children:ve()})})}:{id:fe,className:"c-datepicker__calendar c-datepicker__calendar--"+A,role:"dialog","aria-modal":v?void 0:"true","aria-label":"Date picker",children:ve()})})]})}));function cs(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,glass:void 0,...e},[n,a]=r(t.isOpen||!1),s=o(null),l=o(null),c=u((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;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]=n+"px",document.body.classList.add("is-pushed")}),[t.mode,t.position]),d=u((()=>{if("push"!==t.mode)return;const{position:e}=t;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]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),h=u(((e=!1)=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:n}=t;if("none"!==n)if(e){s.current.classList.add("is-fade-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),se.ANIMATION_DURATION)}else{s.current.classList.add("is-animating"),s.current.offsetHeight;const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),se.ANIMATION_DURATION)}e?(s.current.style.opacity="1",s.current.style.transform=""):s.current.style.transform="translate(0)","push"===t.mode&&c()}t.onOpenChange&&t.onOpenChange(!0)}),[t,c]),m=u(((e=!1)=>{if(s.current){const{position:n,mode:r}=t;if("none"!==r)if(e){s.current.classList.add("is-fade-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),se.ANIMATION_DURATION)}else{s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),se.ANIMATION_DURATION)}e?(s.current.style.opacity="0",s.current.style.transform=""):s.current.style.transform=n?se.TRANSFORM_VALUES[n]:"","push"===t.mode&&d(),setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===r?0:se.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,d]),p=u((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&m()}),[m,t.closeOnEscape,n]),g=u((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&m()}),[m,t.closeOnBackdropClick]);return i((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)})),[n,p,t.closeOnEscape]),i((()=>{if(s.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(s.current.style.transform=se.TRANSFORM_VALUES[e],t.glass&&(s.current.style.opacity="0"))}}),[t.mode,t.position,t.glass,n]),i((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?h(!!t.glass):m(!!t.glass))}),[t.isOpen,m,n,h,t.glass]),{isOpen:n,containerRef:s,backdropRef:l,generateEdgePanelClass:e=>{const{position:a=t.position,className:r="",isOpen:o}=e,i=se.CLASSES.BASE;return`${i} ${a?`${i}--${a}`:""} ${o??n?se.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:h,closePanel:m,handleBackdropClick:g}}ls.displayName="DatePicker";const ds=({title:a,children:r,position:i="start",mode:s="slide",isOpen:l=!1,onOpenChange:c,backdrop:d=!0,closeOnBackdropClick:u=!0,closeOnEscape:h=!0,className:m="",style:p,glass:g})=>{const{isOpen:f,containerRef:b,backdropRef:S,generateEdgePanelClass:v,closePanel:E,handleBackdropClick:y}=cs({position:i,mode:s,isOpen:l,onOpenChange:c,backdrop:d,closeOnBackdropClick:u,closeOnEscape:h,glass:g}),N=o(null),A=v({position:i,isOpen:l,className:g?m+" c-edge-panel--glass":m});if(!f&&!1===l)return null;const x={elasticity:0},_=!0===g?x:{...x,...g},T=t(n,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:a}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>E(),"aria-label":"Close panel",children:e(yt,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:r})]});return t("div",{className:A,"data-position":i,"data-mode":s,style:p,children:[d&&e("div",{ref:S,className:"c-edge-panel__backdrop",onClick:y}),e("div",{ref:b,className:"c-edge-panel__container",children:g?e(nt,{..._,className:"c-edge-panel__glass-wrapper",style:{position:"fixed",width:N.current?.offsetWidth,height:N.current?.offsetHeight,top:b.current?.offsetTop,left:b.current?.offsetLeft,bottom:b.current?.style.bottom,right:b.current?.style.right},children:e("div",{ref:N,className:"c-edge-panel__glass-content",style:{borderRadius:b.current?.style.borderRadius},children:T})}):T})]})};function us(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,r=n?he.CLASSES.DISABLED:"";return`${he.CLASSES.BASE} ${r} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}ds.displayName="EdgePanel";const hs=({children:t,onSubmit:n,onReset:a,className:r="",style:o,disabled:i=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"})=>{const{generateFormClass:h,handleSubmit:m,handleReset:p}=us({disabled:i}),g=h({className:r,disabled:i});return e("form",{id:s,className:g,style:o,onSubmit:m(n),onReset:p(a),method:l,encType:c,noValidate:d,autoComplete:u,children:t})};function ms(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:i=""}=e,s="md"===n?"":"sm"===n?me.CLASSES.SMALL:me.CLASSES.LARGE,l=r?me.CLASSES.INVALID:o?me.CLASSES.VALID:"",c=a?me.CLASSES.DISABLED:"";return`${me.CLASSES.BASE} ${s} ${l} ${c} ${i}`.trim()}}}hs.displayName="Form";const ps=({children:n,label:a,helperText:r,htmlFor:o,className:i="",style:s,disabled:l=!1,required:c=!1,invalid:d=!1,valid:u=!1,size:h="md"})=>{const{generateFormGroupClass:m}=ms({size:h,disabled:l,invalid:d,valid:u}),p=m({className:i,disabled:l,invalid:d,valid:u,size:h});return t("div",{className:p,style:s,children:[a&&t("label",{className:"c-form-group__label",htmlFor:o,children:[a,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 gs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:o=t.invalid,valid:i=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?pe.CLASSES.SMALL:pe.CLASSES.LARGE,d=a?"c-input--"+a:"",u="textarea"===l?"c-input--textarea":"";let h="";o?h=pe.CLASSES.INVALID:i&&(h=pe.CLASSES.VALID);const m=r?pe.CLASSES.DISABLED:"";return`${pe.CLASSES.BASE} ${c} ${d} ${u} ${h} ${m} ${s}`.trim()},generateWrapperClass:t=>{const{className:n=""}=t,{prefixIcon:a=!1,suffixIcon:r=!1,clearable:o=!1,showCounter:i=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[pe.ELEMENTS.WRAPPER];return a&&c.push(pe.CLASSES.PREFIX_ICON),(r||o||s)&&c.push(pe.CLASSES.SUFFIX_ICON),o&&c.push(pe.CLASSES.CLEARABLE),i&&c.push(pe.CLASSES.WITH_COUNTER),s&&c.push(pe.CLASSES.PASSWORD_TOGGLE),l&&c.push(pe.CLASSES.FULL_WIDTH),n&&c.push(n),c.filter(Boolean).join(" ")}}}ps.displayName="FormGroup";const fs=s(l((({type:t="text",value:n,onChange:a,onBlur:r,onFocus:o,placeholder:i,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:u=!1,id:h,name:m,autoComplete:p,autoFocus:g=!1,size:f="md",variant:b,invalid:S=!1,valid:v=!1,maxLength:E,minLength:y,pattern:N,min:A,max:x,step:_,ariaLabel:T,ariaDescribedBy:C,glass:L},I)=>{const{generateInputClass:w}=gs({size:f,variant:b,disabled:c,invalid:S,valid:v}),O=w({className:`${s} ${L?"c-input--glass":""}`.trim(),size:f,variant:b,disabled:c,invalid:S,valid:v,type:t}),R=e("input",{ref:I,type:t,className:O,value:n,onChange:a,onBlur:r,onFocus:o,placeholder:i,disabled:c,required:d,readOnly:u,id:h,name:m,autoComplete:p,autoFocus:g,maxLength:E,minLength:y,pattern:N,min:A,max:x,step:_,"aria-label":T,"aria-describedby":C,"aria-invalid":S,style:L?{...l}:l});if(L){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},n=!0===L?t:{...t,...L};return e(nt,{...n,children:R})}return R})));function bs(e){const t=o(null),n=o(null),s=o(null),l={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},c=!!l.backgroundSlider,h=function(e){const{slides:t,autoplay:n,loop:s=!0,transition:l="fade",transitionDuration:c=1e3}=e,[h,m]=r(0),[p,g]=r(!1),f=o(null),b=o(!1),S=d((()=>t.map((()=>a.createRef()))),[t.length]),v=d((()=>t.map((()=>a.createRef()))),[t.length]),E=u((e=>{if(e===h||p)return;if(0>e||e>=t.length)return;g(!0),m(e);const n=v[e]?.current,a=t[e];n&&a&&"video"===a.type&&!1!==(a.videoOptions||{}).autoplay&&n.play().catch((()=>{}));const r=v[h]?.current,o=t[h];r&&o&&"video"===o.type&&r.pause(),setTimeout((()=>{g(!1)}),c)}),[h,p,t,v,c]),y=u((()=>{if(0===t.length)return;let e;e=s?(h+1)%t.length:Math.min(h+1,t.length-1),E(e)}),[h,t.length,s,E]),N=u((()=>{b.current=!0,f.current&&(clearInterval(f.current),f.current=null)}),[]),A=u((()=>{if(b.current&&n&&t.length>1){b.current=!1;const e="object"==typeof n?n.delay:3e3;f.current||(f.current=setInterval((()=>{b.current||p||y()}),e))}}),[n,t.length,y,p]);return i((()=>{if(!n||1>=t.length)return;const e="object"==typeof n?n.delay:3e3;return"object"==typeof n&&n.pauseOnHover,f.current&&(clearInterval(f.current),f.current=null),b.current||(f.current=setInterval((()=>{b.current||p||y()}),e)),()=>{f.current&&(clearInterval(f.current),f.current=null)}}),[n,t.length,y,p]),i((()=>{if(t.length>0&&"video"===t[h]?.type){const e=v[h]?.current;e&&!1!==(t[h].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[h,t,v]),i((()=>()=>{f.current&&(clearInterval(f.current),f.current=null)}),[]),{currentIndex:h,isTransitioning:p,slideRefs:S,videoRefs:v,handleSlideTransition:E,pauseAutoplay:N,resumeAutoplay:A}}(l.backgroundSlider||{slides:[],autoplay:{delay:5e3,pauseOnHover:!0}}),m=c&&l.backgroundSlider?h:void 0,p=!!c||!!l.backgroundImageSrc||!!l.videoBackground,g=!!l.imageSrc,f=g&&"center"!==l.alignment,b=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const a=()=>{const t=window.pageYOffset*n,a=e.querySelector(W.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};s.current=a,window.addEventListener("scroll",a),a()},S=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(W.SELECTORS.BG);t&&(t.style.transform=""),s.current&&(window.removeEventListener("scroll",s.current),s.current=null)};return i((()=>{const e=t.current;return e&&l.parallax&&p&&!c&&b(e,l.parallaxIntensity),()=>{e&&s.current&&S(e)}}),[l.parallax,l.parallaxIntensity,p,c]),{generateHeroClassNames:(e="")=>{const t=[W.SELECTORS.HERO.replace(".","")];return"center"===l.alignment?t.push(W.CLASSES.CENTER):"right"===l.alignment?t.push(W.CLASSES.RIGHT):"left"===l.alignment&&t.push(W.CLASSES.LEFT),l.fullViewportHeight&&t.push(W.CLASSES.FULL_VH),l.parallax&&t.push("c-hero--parallax"),l.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=l.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===l.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=l.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:p,hasForegroundImage:g,useGridLayout:f,heroRef:t,videoRef:n,applyParallaxEffect:b,removeParallaxEffect:S,backgroundSlider:m,hasBackgroundSlider:c}}function Ss(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[te.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(te.CLASSES.CENTER),t.breakout&&n.push(te.CLASSES.BREAKOUT),t.reverse&&n.push(te.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>te.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>te.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function vs(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=r(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:o=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${o}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function Es(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function ys(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:r=t.active,disabled:o=t.disabled,className:i=""}=e;return`c-nav__item ${n&&!a?re.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?re.CLASSES.ACTIVE:""} ${o?re.CLASSES.DISABLED:""} ${i}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?re.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function Ns(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:r=""}=e,o=a?re.SELECTORS.MEGA_MENU.replace(".",""):re.SELECTORS.DROPDOWN_MENU.replace(".","");let i="";return"center"===n?i=o+"--center":"end"===n&&(i=o+"--end"),`${o} ${i} ${r}`.trim()},isInFixedBottomNavbar:n,getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}function As(e){const t={collapsible:!0,collapsibleDesktop:!1,defaultCollapsedDesktop:!1,isOpen:!1,...e},[n,a]=r(void 0!==t.defaultCollapsedDesktop?!t.defaultCollapsedDesktop:t.isOpen||!1),s=o(null),l=o(null),c=o(null);i((()=>{void 0!==t.isOpen?a(t.isOpen):void 0!==t.defaultCollapsedDesktop&&a(!t.defaultCollapsedDesktop)}),[t.isOpen,t.defaultCollapsedDesktop]),i((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop,a=void 0!==t.isOpen?t.isOpen:n;if(e&&s.current&&l.current){const e=setTimeout((()=>{s.current&&l.current&&(s.current.style.height=a?l.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&s.current&&(s.current.style.height="auto")}),[]),i((()=>{const e=()=>{if(768>window.innerWidth?t.collapsible:t.collapsibleDesktop){if(s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:n;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}}else s.current&&(s.current.style.height="auto")},a=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}}),[t.collapsible,t.collapsibleDesktop,t.isOpen,t.onToggle,n]),i((()=>{const e=768>window.innerWidth?t.collapsible:t.collapsibleDesktop;if(e&&s.current&&l.current){const e=void 0!==t.isOpen?t.isOpen:n;requestAnimationFrame((()=>{s.current&&l.current&&(s.current.style.height=e?l.current.scrollHeight+"px":"0px")}))}else!e&&s.current&&(s.current.style.height="auto")}),[t.isOpen,n,t.collapsible,t.collapsibleDesktop]);const d=()=>{if(t.disabled)return;const e=void 0!==t.isOpen?!t.isOpen:!n;"function"==typeof t.onToggle?t.onToggle(e):a(e)},u=()=>void 0!==t.isOpen?t.isOpen:n;return{defaultProps:t,isOpenState:u(),wrapperRef:s,innerRef:l,sideMenuRef:c,generateSideMenuClass:e=>{const{className:t="",isOpen:n=!1}=e,a=n?oe.CLASSES.IS_OPEN:"";return`${oe.CLASSES.BASE} ${a} ${t}`.trim()},generateWrapperClass:()=>oe.CLASSES.WRAPPER,handleToggle:d,handleDesktopCollapse:()=>{d()},getCurrentOpenState:u}}function xs(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:n=t.disabled,className:a=""}=t,r=e?oe.CLASSES.ACTIVE:"",o=n?oe.CLASSES.DISABLED:"";return`${oe.CLASSES.LINK} ${r} ${o} ${a}`.trim()},handleClick:e=>n=>{t.disabled?n.preventDefault():e&&e(n)}}}function _s(e,t={}){const n={},{prefix:a="atomix",separator:r="-"}=t;return Object.entries(e).forEach((([e,t])=>{const o=(e.startsWith("$")?e.slice(1):e).replace(/_/g,r);n[`--${a}${r}${o}`]=t+""})),n}function Ts(e,t){if("undefined"==typeof window)return;const n=t||document.documentElement;Object.entries(e).forEach((([e,t])=>{n.style.setProperty(e,t+"")}))}function Cs(e,t){if("undefined"==typeof window)return;const n=t||document.documentElement;e.forEach((e=>{n.style.removeProperty(e)}))}function Ls(e,t){if("undefined"==typeof window)return null;const n=t||document.documentElement;return getComputedStyle(n).getPropertyValue(e).trim()||null}function Is(e){var t;return di(t=Object.entries(e)).call(t,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}function ws(...e){return di(e).call(e,((e,t)=>(t&&Object.assign(e,t),e)),{})}function Os(e){return/^--[a-z0-9-]+$/.test(e)}function Rs(e,t="atomix"){const n=RegExp(`^--${t}-([a-z0-9]+)-`),a=e.match(n);return a?a[1]??null:null}function Ms(...e){return e.filter(Boolean).join(" ")}function ks(e,t){return t?{...e,className:Ms(e.className,t.className),style:{...e.style,...t.style}}:e}function Ds(e,t){return e?{...Is(e),...t}:t||{}}function Bs(e,t){const{className:n,style:a,cssVars:r,parts:o}=t,i=r?Is(r):{};return{...e,className:Ms(e.className,n),style:{...i,...e.style,...a}}}function Ps(e,t){return e?.[t]}function zs(e,t,n){return{...n,className:Ms(e,t?.className),style:{...t?.style,...n?.style}}}function Us(e){return!!(e.parts||e.cssVars||e.slots)}function Fs(e,t){return"undefined"==typeof process||"development"!==process.env?.NODE_ENV?{}:{"data-component":e,...t&&{"data-variant":t}}}function Gs(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Vs(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}function Hs(e){if(!Vs(e))return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/.*[?&]v=([^&\n?#]+)/];for(const n of t){const t=e.match(n);if(t&&t[1])return t[1]}return null}function js(e){const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e,r=document.createElement("link");return r.rel="preload",r.as="font",r.href=t,r.type="font/"+n,r.crossOrigin=a,r}function Ys(e){return e.map(js)}function Ws(e){return e.map((e=>{const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e;return`<link rel="preload" as="font" href="${t}" type="font/${n}" crossorigin="${a}">`}))}fs.displayName="Input";const Ks=[{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-regular.woff2",weight:400,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold.woff2",weight:700,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-italic.woff2",weight:400,style:"italic",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold-italic.woff2",weight:700,style:"italic",format:"woff2"}];var $s=Object.freeze({__proto__:null,DEFAULT_ATOMIX_FONTS:Ks,applyPartStyles:ks,createCSSVarStyle:Ds,createDebugAttrs:Fs,createFontPreloadLink:js,createPartProps:zs,extractYouTubeId:Hs,generateFontPreloadTags:Ws,generateUUID:Gs,getPartStyles:Ps,hasCustomization:Us,isYouTubeUrl:Vs,mergeClassNames:Ms,mergeComponentProps:Bs,preloadFonts:Ys});function Qs(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=r(t.items||[]),[o,i]=r(""),s=e=>{if(!e.trim())return null;const t={id:Gs(),text:e.trim(),completed:!1};return a((e=>[...e,t])),i(""),t};return{items:n,inputText:o,setInputText:i,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!o.trim())return;const n=s(o);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e,o="md"===n?"":"c-todo--"+n,i=r?"c-todo--disabled":"";return`${ue.CLASSES.BASE} ${o} ${i} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?ue.CLASSES.COMPLETED:"";return`${ue.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function qs(e){const{glassSize:t={width:270,height:69},elasticity:n=.15,mouseContainer:a,globalMousePos:s,mouseOffset:l}=e,d=c(),h=o(null),[m,p]=r(!1),[g,f]=r(!1),[b,S]=r(t),[v,E]=r({x:0,y:0}),[y,N]=r({x:0,y:0}),A=s||v,x=l||y,_=u((e=>{const t=a?.current||h.current;if(!t)return;const n=t.getBoundingClientRect(),r=n.left+n.width/2,o=n.top+n.height/2;N({x:(e.clientX-r)/n.width*100,y:(e.clientY-o)/n.height*100}),E({x:e.clientX,y:e.clientY})}),[a]);i((()=>{if(s&&l)return;const e=a?.current||h.current;return e?(e.addEventListener("mousemove",_),()=>e.removeEventListener("mousemove",_)):void 0}),[_,a,s,l]);const T=u((()=>{if(!A.x||!A.y||!h.current)return"scale(1)";const e=h.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,r=b.width,o=b.height,i=A.x-t,s=A.y-a,l=Math.max(0,Math.abs(i)-r/2),c=Math.max(0,Math.abs(s)-o/2),d=Math.sqrt(l*l+c*c);if(d>200)return"scale(1)";const u=1-d/200,m=Math.sqrt(i*i+s*s);if(0===m)return"scale(1)";const p=i/m,g=s/m,f=Math.min(m/300,1)*n*u,S=1+Math.abs(p)*f*.3-Math.abs(g)*f*.15,v=1+Math.abs(g)*f*.3-Math.abs(p)*f*.15;return`scaleX(${Math.max(.8,S)}) scaleY(${Math.max(.8,v)})`}),[A,n,b]),C=u((()=>{if(!h.current)return{x:0,y:0};const e=h.current.getBoundingClientRect(),t=e.left+e.width/2,a=e.top+e.height/2,r=b.width,o=b.height,i=Math.max(0,Math.abs(A.x-t)-r/2),s=Math.max(0,Math.abs(A.y-a)-o/2),l=Math.sqrt(i*i+s*s),c=l>200?0:1-l/200;return{x:(A.x-t)*n*.1*c,y:(A.y-a)*n*.1*c}}),[A,n,b]);i((()=>{const e=()=>{if(h.current){const e=h.current.getBoundingClientRect();S({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const L=u((()=>{p(!0)}),[]),I=u((()=>{p(!1)}),[]),w=u((()=>{f(!0)}),[]),O=u((()=>{f(!1)}),[]);return{filterId:d,glassRef:h,isHovered:m,isActive:g,currentGlassSize:b,globalMousePos:A,mouseOffset:x,calculateDirectionalScale:T,calculateElasticTranslation:C,handleMouseEnter:L,handleMouseLeave:I,handleMouseDown:w,handleMouseUp:O}}function Zs(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,className:o=""}=e;let i="";a?i=ge.CLASSES.INVALID:r&&(i=ge.CLASSES.VALID);const s=n?ge.CLASSES.DISABLED:"";return`${ge.CLASSES.BASE} ${i} ${s} ${o}`.trim()}}}function Xs(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:o=t.valid,className:i=""}=e,s="md"===n?"":"sm"===n?be.CLASSES.SMALL:be.CLASSES.LARGE;let l="";r?l=be.CLASSES.INVALID:o&&(l=be.CLASSES.VALID);const c=a?be.CLASSES.DISABLED:"";return`${be.CLASSES.BASE} ${s} ${l} ${c} ${i}`.trim()}}}function Js(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:o=t.invalid,valid:i=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?Se.CLASSES.SMALL:Se.CLASSES.LARGE,c=a?"c-input--"+a:"";let d="";o?d=Se.CLASSES.INVALID:i&&(d=Se.CLASSES.VALID);const u=r?Se.CLASSES.DISABLED:"";return`${Se.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}function el(e){return{defaultOptions:{items:[],divider:j.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[j.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[j.CLASSES.ITEM,e.active||t?j.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}function tl({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[o,s]=r(!1),l=void 0!==e,c=l?!!e:o;i((()=>{l&&s(!!e)}),[e,l]);const d=u((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),h=u((()=>{d(!0)}),[d]),m=u((()=>{d(!1)}),[d]),p=u((()=>{d(!c)}),[c,d]);return{isOpen:c,open:h,close:m,toggle:p}}function nl(e){const{slides:t,slidesToShow:n=1,spaceBetween:a=0,loop:s=!1,initialSlide:l=0,direction:c="horizontal",speed:h=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:f}=e,b=o(null),S=o(null),v=o(!1),E=o(null),[y,N]=r(!1),[A,x]=r(l),[_,T]=r(0),[C,L]=r(!1),[I,w]=r(0),[O,R]=r(!1),[M,k]=r(0),[D,B]=r(0),P=d((()=>0===I?0:(I-a*(n-1))/n),[I,a,n]),z=d((()=>s&&0!==t.length?[...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),[t,s]),U=t.length,F=d((()=>0===P?0:-_*P+D),[P,_,D]);i((()=>{if(!g)return E.current&&(clearInterval(E.current),E.current=null),void N(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:a=3e3,pauseOnMouseEnter:r=!1,disableOnInteraction:o=!1,reverseDirection:i=!1}=e;E.current&&clearInterval(E.current),E.current=setInterval((()=>{x((e=>{if(C)return e;let a;if(o&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),a=s?(e+1)%t.length:Math.min(e+1,t.length-n),i){const n=s?0===e?t.length-1:e-1:Math.max(e-1,0);return T(s?t.length+n:n),L(!0),B(0),setTimeout((()=>{L(!1),f?.(n)}),h),n}return T(s?t.length+a:a),L(!0),B(0),setTimeout((()=>{L(!1),f?.(a),s&&a>=2*t.length&&(v.current=!0,T(t.length+a),setTimeout((()=>{v.current=!1}),0))}),h),a}))}),a),N(!0);let l=null;const c=()=>{E.current&&(clearInterval(E.current),E.current=null,N(!1))},d=()=>{E.current&&clearInterval(E.current),E.current=setInterval((()=>{x((e=>{if(C)return e;let a;return a=s?(e+1)%t.length:Math.min(e+1,t.length-n),T(s?t.length+a:a),L(!0),B(0),setTimeout((()=>{L(!1),f?.(a),s&&(a<2*t.length||(v.current=!0,T(t.length+a),setTimeout((()=>{v.current=!1}),0)))}),h),a}))}),a),N(!0)};return r&&b.current&&(l=b.current,l.addEventListener("mouseenter",c),l.addEventListener("mouseleave",d)),()=>{E.current&&(clearInterval(E.current),E.current=null),l&&(l.removeEventListener("mouseenter",c),l.removeEventListener("mouseleave",d)),N(!1)}}),[g,t.length,s,n,C,h,f,v]),i((()=>{T(s?t.length+l:l)}),[s,t.length,l]),i((()=>{const e=()=>{if(b.current){const e="horizontal"===c?b.current.offsetWidth:b.current.offsetHeight;w(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c]);const G=u((()=>{if(!C)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),s){const e=(A+1)%t.length,n=_+1;x(e),T(n),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e),n<2*t.length||(v.current=!0,T(t.length+e),setTimeout((()=>{v.current=!1}),0))}),h)}else{const e=Math.min(A+1,t.length-n);x(e),T(e),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e)}),h)}}),[A,_,t.length,n,s,C,h,f,z.length,U,g]),V=u((()=>{if(!C)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),s){const e=0===A?t.length-1:A-1,n=_-1;x(e),T(n),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e),n<t.length&&(v.current=!0,T(t.length+e),setTimeout((()=>{v.current=!1}),0))}),h)}else{const e=Math.max(A-1,0);x(e),T(e),L(!0),B(0),setTimeout((()=>{L(!1),f?.(e)}),h)}}),[A,_,t.length,s,C,h,f,z.length,U,g]),H=u((e=>{C||e===A||(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1)),L(!0),B(0),x(e),T(s?t.length+e:e),setTimeout((()=>{L(!1),f?.(e)}),h))}),[A,C,h,f,s,U,g]),j=u((e=>{if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,N(!1));const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;k(t),R(!0),B(0)}),[m,c,g]),Y=u((e=>{if(!O||!m)return;const t="horizontal"===c?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,n=M-t;Math.abs(n)>10&&(e.preventDefault(),B(.5*-n))}),[O,M,m,c]),W=u((e=>{if(!O||!m)return;const t="horizontal"===c?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,n=M-t;R(!1),B(0),Math.abs(n)>p&&(n>0?G():V())}),[O,M,p,G,V,m,c]),K=s||A<t.length-n,$=s||A>0;return{activeIndex:A,realIndex:A,previousIndex:A,isBeginning:!s&&0===A,isEnd:!s&&A>=t.length-n,progress:t.length>0?A/(t.length-1):0,autoplayRunning:y,transitioning:C,touching:O,translate:F,slidesPerView:n,slidesCount:t.length,isLocked:!1,destroyed:!1,size:I,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:K,allowSlidePrev:$,allowTouchMove:m,animating:C,enabled:!0,initialized:!0,slideNext:G,slidePrev:V,goToSlide:H,canSlideNext:K,canSlidePrev:$,containerRef:b,wrapperRef:S,handleTouchStart:j,handleTouchMove:Y,handleTouchEnd:W,allSlides:z,translateValue:F,slideWidth:P,currentSlidesToShow:n,loopedSlides:U,repositioningRef:v}}function al(e){const t=d((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),n=d((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),n=Math.min(...e),a=Math.max(...e),r=di(e).call(e,((e,t)=>e+t),0);return{min:n,max:a,total:r,average:r/e.length}}),[t]);return{data:t,stats:n,isEmpty:0===t.length}}function rl(e,t=400,n=300){return d((()=>{const a={top:20,right:20,bottom:40,left:40},r=t-a.left-a.right,o=n-a.top-a.bottom;if(!e.length)return{xScale:()=>a.left,yScale:()=>a.top+o,minValue:0,maxValue:0,valueRange:0,innerWidth:r,innerHeight:o,width:t,height:n,padding:a};const i=e.map((e=>e.value)),s=Math.min(0,...i),l=Math.max(...i),c=l-s||1;return{xScale:t=>a.left+t/Math.max(e.length-1,1)*r,yScale:e=>a.top+o-(e-s)/c*o,minValue:s,maxValue:l,valueRange:c,innerWidth:r,innerHeight:o,width:t,height:n,padding:a}}),[e,t,n])}function ol(){const[e,t]=r({hoveredIndex:null,selectedIndex:null}),n=u((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),a=u((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]);return{interaction:e,handlePointHover:n,handlePointClick:a,clearInteraction:u((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}}var il=Object.freeze({__proto__:null,DOTS:ji,useAccordion:Be,useAtomixGlass:tt,useBadge:xt,useBarChart:yi,useBlock:Ct,useBreadcrumb:el,useButton:wt,useCard:Ho,useChartData:al,useChartInteraction:ol,useChartScale:rl,useCheckbox:Qi,useDataTable:Hi,useEdgePanel:cs,useForm:us,useFormGroup:ms,useGlassContainer:qs,useHero:bs,useInput:gs,useLineChart:wi,useModal:tl,useNav:Es,useNavDropdown:Ns,useNavItem:ys,useNavbar:vs,usePagination:Wi,usePieChart:Mi,useRadio:Zs,useRiver:Ss,useSelect:Xs,useSideMenu:As,useSideMenuItem:xs,useSlider:nl,useSpinner:Ot,useTextarea:Js,useTodo:Qs});const sl=s((({options:n=[],value:a,onChange:s,onBlur:l,onFocus:c,placeholder:d="Select an option",className:u="",style:h,disabled:m=!1,required:p=!1,id:g,name:f,size:b="md",invalid:S=!1,valid:v=!1,multiple:E=!1,ariaLabel:y,ariaDescribedBy:N,glass:A})=>{const{generateSelectClass:x}=Xs({size:b,disabled:m,invalid:S,valid:v}),_=x({className:`${u} ${A?"c-select--glass":""}`.trim(),size:b,disabled:m,invalid:S,valid:v}),[T,C]=r(!1),[L,I]=r(d),w=o(null),O=o(null),R=o(null),M=o(null);i((()=>{if(a){const e=n.find((e=>e.value===a));e&&I(e.label)}else I(d)}),[a,n,d]),i((()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&(C(!1),R.current&&(R.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const k=t("div",{className:`${_} ${T?be.CLASSES.IS_OPEN:""}`,ref:w,style:h,"aria-expanded":T,children:[t("select",{ref:M,value:a,onChange:s,onBlur:l,onFocus:c,disabled:m,required:p,id:g,name:f,multiple:E,"aria-label":y,"aria-describedby":N,"aria-invalid":S,style:{display:"none"},children:[d&&e("option",{value:"",disabled:!0,children:d}),n.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:be.CLASSES.SELECTED,onClick:()=>{m||(!T&&R.current&&O.current?R.current.style.height=O.current.clientHeight+"px":R.current&&(R.current.style.height="0px"),C(!T))},"aria-disabled":m,children:L}),e("i",{className:`${be.CLASSES.ICON_CARET} ${be.CLASSES.TOGGLE_ICON}`}),e("div",{className:be.CLASSES.SELECT_BODY,ref:R,style:{height:0},children:e("div",{className:be.CLASSES.SELECT_PANEL,ref:O,children:e("ul",{className:be.CLASSES.SELECT_ITEMS,children:n.map(((n,r)=>e("li",{className:be.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&(e=>{if(I(e.label),C(!1),R.current&&(R.current.style.height="0px"),M.current&&(M.current.value=e.value),s){const t={target:{name:f,value:e.value}};s(t)}})(n),children:t("label",{htmlFor:"SelectItem"+r,className:"c-checkbox",children:[e("input",{type:"checkbox",id:"SelectItem"+r,className:"c-checkbox__input c-select__item-input",checked:a===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value)))})})})]});if(A){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,cornerRadius:12,mode:"shader"},n=!0===A?t:{...t,...A};return e(nt,{...n,children:k})}return k}));sl.displayName="Select";const ll=s((({label:n,checked:a=!1,onChange:r,className:o="",style:i,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,ariaLabel:p,ariaDescribedBy:g,glass:f})=>{const{generateRadioClass:b}=Zs({disabled:s,invalid:h,valid:m}),S=b({className:`${o} ${f?"c-radio--glass":""}`.trim(),disabled:s,invalid:h,valid:m}),v=t("div",{className:S,style:i,children:[e("input",{type:"radio",className:"c-radio__input",checked:a,onChange:r,disabled:s,required:l,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(f){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,cornerRadius:6,mode:"shader"},n=!0===f?t:{...t,...f};return e(nt,{...n,children:v})}return v}));ll.displayName="Radio";const cl=s(l((({value:t,onChange:n,onBlur:a,onFocus:r,placeholder:o,className:i="",style:s,disabled:l=!1,required:c=!1,readOnly:d=!1,id:u,name:h,rows:m=4,cols:p,maxLength:g,minLength:f,size:b="md",variant:S,invalid:v=!1,valid:E=!1,autoFocus:y=!1,ariaLabel:N,ariaDescribedBy:A,glass:x},_)=>{const{generateTextareaClass:T}=Js({size:b,variant:S,disabled:l,invalid:v,valid:E}),C=T({className:`${i} ${x?"c-input--glass":""}`.trim(),size:b,variant:S,disabled:l,invalid:v,valid:E}),L=e("textarea",{ref:_,className:C,value:t,onChange:n,onBlur:a,onFocus:r,placeholder:o,disabled:l,required:c,readOnly:d,id:u,name:h,rows:m,cols:p,maxLength:g,minLength:f,autoFocus:y,"aria-label":N,"aria-describedby":A,"aria-invalid":v,style:x?{...s}:s});if(x){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,cornerRadius:8,mode:"shader"},n=!0===x?t:{...t,...x};return e(nt,{...n,children:L})}return L})));cl.displayName="Textarea";const dl=l((({platform:n,url:a,icon:r,label:o,size:i="md",variant:s="default",disabled:l=!1,className:c="",...d},u)=>{const h=["c-footer__social-link","c-footer__social-link--"+n,"c-footer__social-link--"+i,"c-footer__social-link--"+s,l&&"c-footer__social-link--disabled",c].filter(Boolean).join(" "),m=o||"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))(n);return t("a",{ref:u,href:l?void 0:a,className:h,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":l,...d,children:[e("span",{className:"c-footer__social-link-icon",children:r||(t=>{const n={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"}[t];return e(yt,n?{name:n}:{name:"Link"})})(n)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));dl.displayName="FooterSocialLink";const ul=l((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:o,direction:i,wrap:s,...l},c)=>{const d=["o-grid"];return a&&d.push("u-justify-content-"+a),r&&d.push("u-align-items-"+r),o&&d.push("o-grid--no-gutters"),i&&d.push("u-flex-direction-"+i),s&&d.push("u-flex-wrap-"+s),n&&d.push(n),e("div",{ref:c,className:d.join(" "),...l,children:t})}));ul.displayName="Grid";const hl=l((({children:t,className:n="",xs:a,sm:r,md:o,lg:i,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:u,offsetLg:h,offsetXl:m,offsetXxl:p,grow:g,shrink:f,basis:b,align:S,...v},E)=>{const y=a||r||o||i||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],N=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?y.push("o-grid__col--auto"):y.push("o-grid__col--"+e):"auto"===e?y.push(`o-grid__col--${t}-auto`):y.push(`o-grid__col--${t}-${e}`)):y.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return N(a,"xs"),N(r,"sm"),N(o,"md"),N(i,"lg"),N(s,"xl"),N(l,"xxl"),c&&y.push("o-grid__offset--"+c),d&&y.push("o-grid__offset--sm-"+d),u&&y.push("o-grid__offset--md-"+u),h&&y.push("o-grid__offset--lg-"+h),m&&y.push("o-grid__offset--xl-"+m),p&&y.push("o-grid__offset--xxl-"+p),void 0!==g&&y.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&y.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),b&&y.push("u-flex-basis-"+b),S&&y.push("u-align-self-"+S),n&&y.push(n),e("div",{ref:E,className:y.join(" "),...v,children:t})}));hl.displayName="GridCol";const ml=l((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:o,...i},s)=>{const l=["o-grid"];return a&&l.push("u-justify-content-"+a),r&&l.push("u-align-items-"+r),o&&l.push("o-grid--no-gutters"),n&&l.push(n),e("div",{ref:s,className:l.join(" "),...i,children:t})}));ml.displayName="Row";const pl=l((({brand:n,brandLogo:r,brandDescription:o,copyright:i,layout:s="columns",variant:l="primary",size:c="md",showNewsletter:d=!1,newsletterTitle:u="Stay Updated",newsletterDescription:h="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:m="Enter your email",newsletterButtonText:p="Subscribe",onNewsletterSubmit:g,socialLinks:f=[],showBackToTop:b=!1,backToTopText:S="Back to Top",onBackToTop:v,showDivider:E=!0,sticky:y=!1,children:N,className:A="",disabled:x=!1,glass:_,...T},C)=>{const{footerClass:L,containerClass:I,brandClass:w,sectionsClass:O,bottomClass:R,handleNewsletterSubmit:M,handleBackToTop:k,socialLinks:D}=function(e={}){const{layout:t=ke.DEFAULTS.LAYOUT,variant:n=ke.DEFAULTS.VARIANT,size:a=ke.DEFAULTS.SIZE,sticky:r=ke.DEFAULTS.STICKY,showNewsletter:o=ke.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:i=ke.DEFAULTS.SHOW_BACK_TO_TOP,socialLinks:s=[],onNewsletterSubmit:l,onBackToTop:c,className:d=""}=e;return{footerClass:[ke.CLASSES.BASE,ke.CLASSES[t.toUpperCase()]||ke.CLASSES.COLUMNS,"c-footer--"+n,ke.CLASSES[a.toUpperCase()]||ke.CLASSES.MD,r&&ke.CLASSES.STICKY,o&&"c-footer--with-newsletter",d].filter(Boolean).join(" "),containerClass:ke.CLASSES.CONTAINER,brandClass:ke.CLASSES.BRAND,sectionsClass:[ke.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" "),bottomClass:ke.CLASSES.BOTTOM,handleNewsletterSubmit:e=>{l&&l(e)},handleBackToTop:()=>{c?c():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:s,showNewsletter:o}}({layout:s,variant:l,size:c,sticky:y,showNewsletter:d,showBackToTop:b,socialLinks:f,onNewsletterSubmit:g,onBackToTop:v,className:A}),B=(()=>{switch(s){case"columns":default:return{brand:4,content:d?4:8,newsletter:d?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:d?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:d?9:0};case"wide":return{brand:3,content:6,newsletter:d?3:0}}})(),P=e=>{const t="columns"===s||"sidebar"===s||"wide"===s?B[e]:12;return"flexible"===s&&"auto"===B[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:t}},z=t("div",{className:I,children:[t(ul,{className:O,alignItems:"start",justifyContent:"centered"===s?"center":void 0,children:[(n||r||o)&&t(hl,{...P("brand"),className:w,children:[r&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof r?e("img",{src:r,alt:"Brand Logo"}):r}),n&&e("div",{className:"c-footer__brand-name",children:"string"==typeof n?e("h3",{children:n}):n}),o&&e("div",{className:"c-footer__brand-description",children:o}),f.length>0&&e("div",{className:"c-footer__social","data-testid":"footer-social-links",children:f.map(((t,n)=>e(dl,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:c},`${t.platform}-${n}`)))})]}),N&&e(hl,{...P("content"),className:"c-footer__content",children:e(ul,{className:"c-footer__sections",alignItems:"centered"===s||"stacked"===s?"center":void 0,children:a.Children.map(N,(e=>a.isValidElement(e)?a.cloneElement(e,{showNewsletter:d}):e))})}),d&&t(hl,{...P("newsletter"),className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:u}),h&&e("p",{className:"c-footer__newsletter-description",children:h}),e(hs,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&M(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(fs,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:m,required:!0}),e(kt,{type:"submit",className:"c-footer__newsletter-button",children:p})]})})]})]}),(i||b)&&t("div",{className:R,children:[i&&e("div",{className:"c-footer__copyright",children:i}),b&&t(kt,{variant:"ghost",className:"c-footer__back-to-top",onClick:k,disabled:x,"aria-label":S,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:S})]})]})]});return e("footer",{ref:C,className:L+" c-footer "+(_?"c-footer--glass":""),...T,children:_?e(nt,{..._,elasticity:0,children:e("div",{className:"c-footer__glass",children:z})}):z})}));pl.displayName="Footer";const gl=l((({children:t,className:n="",xs:s=1,sm:l,md:c,lg:d,xl:p,xxl:g,gap:f=16,animate:S=!0,imagesLoaded:v=!0,onLayoutComplete:E,onImageLoad:y,...N},A)=>{const[x,_]=r(s),[T,C]=r([]),[L,I]=r(!1),[w,O]=r(!1),R=o(null),M=o([]),k=o(0),D=o(0),B=o(new Map);i((()=>{O(!!v)}),[x,v]),b(A,(()=>R.current));const P=u((()=>{const e=window.innerWidth;return 1400>e||void 0===g?1200>e||void 0===p?992>e||void 0===d?768>e||void 0===c?576>e||void 0===l?s:l:c:d:p:g}),[s,l,c,d,p,g]);i((()=>{const e=()=>_(P());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[P]);const[z,U]=r([]);i((()=>{const e=[];h.forEach(t,((t,n)=>{m(t)&&e.push({id:t.key?.toString()||"masonry-item-"+n,element:t,position:null,ref:a.createRef()})})),U(e)}),[t]);const F=u((e=>{if(!B.current.get(e)){if(B.current.set(e,!0),k.current+=1,R.current&&v){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((()=>{V()}))})),y?.(k.current,D.current),k.current>=D.current&&D.current>0&&(I(!0),O(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{V(),O(!1)}))})),E?.())}}),[y,E,v]),G=u((()=>{if(!v||!R.current)return;B.current.clear(),k.current=0;const e=R.current.querySelectorAll("img");return D.current=e.length,0===e.length?(I(!0),O(!1),void E?.()):(O(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)F(e);else{const n=()=>F(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[v,F,E]),V=u((()=>{if(!R.current||0===z.length)return;const e=(R.current.offsetWidth-f*(x-1))/x;M.current=Array(x).fill(0);const t=[];z.forEach(((n,a)=>{if(n.ref.current){const r=M.current.indexOf(Math.min(...M.current)),o=r*(e+f),i=M.current[r]??0,s=n.ref.current.offsetHeight;M.current[r]=i+s+f,t[a]={left:o,top:i,width:e,height:s}}})),C(t)}),[z,x,f]);i((()=>{if(!R.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>V()))}));return t.observe(R.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[V]),a.useLayoutEffect((()=>v?G():(V(),I(!0),void O(!1))),[z,x,V,v,G]),a.useEffect((()=>{const e=[];return z.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{V()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[z,V]);const H=M.current.length>0?Math.max(...M.current):0,j=["o-masonry-grid",n,S?"o-masonry-grid--animate":"",w?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:R,className:j,style:{position:"relative",width:"100%",height:H+"px",...N.style},...N,children:z.map(((t,n)=>{const a=T[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:a.left+"px",top:a.top+"px",width:a.width+"px",opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));gl.displayName="MasonryGrid";const fl=l((({children:t,className:n="",...a},r)=>{const o=["o-masonry-grid__item-inner"];return n&&o.push(n),e("div",{ref:r,className:o.join(" "),...a,children:t})}));fl.displayName="MasonryGridItem";var bl=Object.freeze({__proto__:null,Container:Tt,Grid:ul,GridCol:hl,MasonryGrid:gl,MasonryGridItem:fl,Row:ml});const Sl=l((({title:n,icon:r,collapsible:o=!1,defaultCollapsed:i=!1,showNewsletter:s=!1,children:l,className:c="",...d},u)=>{const[h,m]=a.useState(i),p=["c-footer__section",o&&"c-footer__section--collapsible",h&&"c-footer__section--collapsed",c].filter(Boolean).join(" ");return e(hl,{xs:12,md:s?6:3,className:"c-footer__section-col",children:t("div",{ref:u,className:p,...d,children:[n&&e("div",{className:"c-footer__section-header",children:o?t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{o&&m(!h)},"aria-expanded":!h,"aria-controls":"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"),children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:n}),e("span",{className:"c-footer__section-chevron",children:h?"▼":"▲"})]}):t("div",{className:"c-footer__section-header-content",children:[r&&e("span",{className:"c-footer__section-icon",children:r}),e("h4",{className:"c-footer__section-title",children:n})]})}),e("div",{className:"c-footer__section-content",id:n?"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"):void 0,style:{display:o&&h?"none":"flex"},children:l})]})})}));Sl.displayName="FooterSection";const vl=l((({href:n,icon:a,external:r=!1,active:o=!1,disabled:i=!1,onClick:s,children:l,className:c="",LinkComponent:d,...u},h)=>{const m={className:["c-footer__link",o&&"c-footer__link--active",i&&"c-footer__link--disabled",c].filter(Boolean).join(" "),onClick:i?void 0:s,"aria-disabled":i,...r&&{target:"_blank",rel:"noopener noreferrer"},...u};if(d){const o=d,s={ref:h,...n&&!i?{to:n}:{},...m};return t(o,{...s,children:[a&&e("span",{className:"c-footer__link-icon",children:a}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]})}return t("a",{ref:h,href:i?void 0:n,...m,children:[a&&e("span",{className:"c-footer__link-icon",children:a}),e("span",{className:"c-footer__link-text",children:l}),r&&e("span",{className:"c-footer__link-external",children:"↗"})]})}));vl.displayName="FooterLink";const El=({title:a,subtitle:r,text:o,imageSrc:i,imageAlt:s="Hero image",alignment:l="left",backgroundImageSrc:c,showOverlay:d=!0,fullViewportHeight:u=!1,actions:h,imageColSize:m=7,contentColSize:p=5,contentWidth:g,className:f="",style:b,parallax:S=!1,parallaxIntensity:v=.5,videoBackground:E,children:y,glass:N,videoOptions:A={autoplay:!0,loop:!0,muted:!0},backgroundSlider:x})=>{const{generateHeroClassNames:_,generateImageColClass:T,generateContentColClass:C,hasBackgroundImage:L,hasForegroundImage:I,useGridLayout:w,heroRef:O,videoRef:R,backgroundSlider:M,hasBackgroundSlider:k}=bs({alignment:l,imageColSize:m,contentColSize:p,imageSrc:i,backgroundImageSrc:c,showOverlay:d,fullViewportHeight:u,contentWidth:g,parallax:S,parallaxIntensity:v,videoBackground:E,backgroundSlider:x}),D={...g?{"--atomix-hero-content-width":g}:{},...b},B=()=>{if(!E)return null;const{autoplay:n,loop:a,muted:r,posterUrl:o}=A;return t("video",{ref:R,className:"c-hero__video",autoPlay:n,loop:a,muted:r,playsInline:!0,poster:o,children:[e("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},P=()=>{const n=t("div",{className:W.SELECTORS.CONTENT.replace(".",""),children:[r&&e("p",{className:W.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:W.SELECTORS.TITLE.replace(".",""),children:a}),o&&e("p",{className:W.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:W.SELECTORS.ACTIONS.replace(".",""),children:h})]});return!1===N?n:N?e("div",!0===N?{className:W.SELECTORS.CONTENT.replace(".",""),children:e(nt,{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:W.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:W.SELECTORS.TITLE.replace(".",""),children:a}),o&&e("p",{className:W.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:W.SELECTORS.ACTIONS.replace(".",""),children:h})]})})}:{className:W.SELECTORS.CONTENT.replace(".",""),children:e(nt,{...N,children:t("div",{className:"u-p-4",children:[r&&e("p",{className:W.SELECTORS.SUBTITLE.replace(".",""),children:r}),e("h1",{className:W.SELECTORS.TITLE.replace(".",""),children:a}),o&&e("p",{className:W.SELECTORS.TEXT.replace(".",""),children:o}),h&&e("div",{className:W.SELECTORS.ACTIONS.replace(".",""),children:h})]})})}):n},z=()=>I?e("div","center"===l?{className:W.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:i,alt:s,className:W.SELECTORS.IMAGE.replace(".","")})}:{className:T(),children:e("img",{src:i,alt:s,className:W.SELECTORS.IMAGE.replace(".","")})}):null;return t("div",{ref:O,className:_(f),style:D,"data-parallax":S?"true":void 0,"data-parallax-intensity":S?v:void 0,children:[(()=>{if(k&&x&&M){const{slides:n,transition:a="fade",transitionDuration:r=1e3}=x,{currentIndex:o,slideRefs:i,videoRefs:s}=M;let l=W.CLASSES.SLIDER_FADE;return"slide"===a?l=W.CLASSES.SLIDER_SLIDE:"custom"===a&&(l=W.CLASSES.SLIDER_CUSTOM),t("div",{className:`${W.SELECTORS.SLIDER.replace(".","")} ${l}`,style:{"--slider-transition-duration":r+"ms"},onMouseEnter:()=>{x.autoplay?.pauseOnHover&&M.pauseAutoplay()},onMouseLeave:()=>{x.autoplay?.pauseOnHover&&M.resumeAutoplay()},children:[n.map(((n,a)=>{const r=a===o,l=i[a],c=s[a];return e("div",{ref:l,className:`${W.SELECTORS.SLIDER_ITEM.replace(".","")} ${r?W.CLASSES.SLIDER_ITEM_ACTIVE:""}`,children:"image"===n.type?e("img",{src:n.src,alt:n.alt||"Background slide",className:W.SELECTORS.BG_IMAGE.replace(".","")}):t("video",{ref:c,className:"c-hero__video",autoPlay:!1!==n.videoOptions?.autoplay,loop:!1!==n.videoOptions?.loop,muted:!1!==n.videoOptions?.muted,playsInline:!0,poster:n.videoOptions?.posterUrl,children:[e("source",{src:n.src,type:"video/"+(n.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},a)})),d&&e("div",{className:W.SELECTORS.OVERLAY.replace(".","")})]})}return L||E?t("div",{className:W.SELECTORS.BG.replace(".",""),children:[c&&e("img",{src:c,alt:"Background",className:W.SELECTORS.BG_IMAGE.replace(".","")}),B(),d&&e("div",{className:W.SELECTORS.OVERLAY.replace(".","")})]}):null})(),e("div",{className:W.SELECTORS.CONTAINER.replace(".","")+" o-container",children:y?e("div",{className:W.SELECTORS.GRID.replace(".",""),children:y}):w?e("div",{className:W.SELECTORS.GRID.replace(".","")+" o-grid",children:t(n,"left"===l?{children:[e("div",{className:C(),children:P()}),z()]}:{children:[z(),e("div",{className:C(),children:P()})]})}):t(n,{children:[P(),z()]})})]})};El.displayName="Hero";const yl=s((({children:t,variant:n="default",className:r="",style:o,...i})=>{var s;const l=[V.BASE_CLASS,"default"!==n&&"c-list--"+n,r].filter(Boolean).join(" "),c=Po(s=["number","text"]).call(s,n)?"ol":"ul";return e(c,{className:l,style:o,...i,children:a.Children.map(t,(t=>e("li",{className:"c-list__item",children:t})))})}));yl.displayName="List";const Nl=({children:t,className:n="",style:r,variant:o="default"})=>{const i=[H.BASE_CLASS,n].filter(Boolean).join(" "),s=a.Children.toArray(t).filter((e=>a.isValidElement(e)&&e.type===yl));return e("div",{className:i,style:r,children:s.map(((e,t)=>{const n=e.props;return a.cloneElement(e,{key:t,variant:n?.variant??o})}))})};Nl.displayName="ListGroup";const Al=({messages:a=[],otherAvatar:o,selfAvatar:i,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",style:h,bodyHeight:m,disabled:p=!1,id:g,glass:f})=>{const{inputValue:b,handleInputChange:S,handleSubmit:v,handleKeyDown:E}=(({onSendMessage:e}={})=>{const[t,n]=r(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}})({onSendMessage:c}),y=g||"messages-"+Math.random().toString(36).substr(2,9),N=y+"-input",A={displacementScale:150,cornerRadius:12,elasticity:0,aberrationIntensity:2},x=`${Ne.CLASSES.BASE} ${f?"c-messages--glass":""} ${p?"is-disabled":""} ${u}`,_=t(n,{children:[e("div",{className:Ne.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${Ne.CLASSES.CONTENT} ${n.isSelf?Ne.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(Nt,{src:n.isSelf?i:o,size:"xl",circle:!0,className:Ne.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":(s||"Other person")+"'s avatar"}),t("div",{className:Ne.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:Ne.CLASSES.NAME,children:s}),n.text&&t("div",{className:Ne.CLASSES.TEXT,children:[n.text,e("span",{className:Ne.CLASSES.TIME,"aria-label":"Sent at "+n.time,children:n.time})]}),n.image&&e("img",{className:Ne.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:Ne.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:Ne.CLASSES.FILE_ICON,children:e(yt,{name:"File","aria-hidden":"true"})}),t("div",{className:Ne.CLASSES.FILE_DETAILS,children:[e("div",{className:Ne.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:Ne.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:Ne.CLASSES.FORM,onSubmit:v,"aria-label":"Message input form",children:[t("div",{className:Ne.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:N,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:N,type:"text",className:Ne.CLASSES.INPUT,placeholder:d,value:b,onChange:S,onKeyDown:E,disabled:p,"aria-label":"Message input"}),t("div",{className:Ne.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:Ne.CLASSES.OPTION,"aria-label":"Attach file",disabled:p,children:e(yt,{name:"PaperclipHorizontal","aria-hidden":"true",className:Ne.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:Ne.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(yt,{name:"Image","aria-hidden":"true",className:Ne.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:Ne.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(yt,{name:"Link","aria-hidden":"true",className:Ne.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:Ne.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(yt,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(f){const t=!0===f?A:{...A,...f};return e("div",{className:x,style:{"--atomix-messages-width":l,...h},id:y,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e(nt,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.cornerRadius},children:_})})})}return e("div",{className:x,style:{"--atomix-messages-width":l,...h},id:y,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:_})};Al.displayName="Messages";const xl=s((({children:n,isOpen:a=!1,onOpenChange:s,onClose:l,onOpen:c,title:d,subtitle:h,size:m="md",backdrop:p=!0,keyboard:g=!0,className:f="",style:b,closeButton:S=!0,footer:v,glass:E,...y})=>{const N=o(null),A=o(null),x=o(null),{isOpen:_,open:T,close:C}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[o,s]=r(!1),l=void 0!==e,c=l?!!e:o;i((()=>{l&&s(!!e)}),[e,l]);const d=u((e=>{l||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[l,t,n,a]),h=u((()=>{d(!0)}),[d]),m=u((()=>{d(!1)}),[d]),p=u((()=>{d(!c)}),[c,d]);return{isOpen:c,open:h,close:m,toggle:p}}({isOpen:a,onOpenChange:s,onClose:l,onOpen:c});i((()=>{if(!g)return;const e=e=>{"Escape"===e.key&&_&&C()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,C,g]);const L=["c-modal",_?ye.CLASSES.IS_OPEN:"",m?"c-modal--"+m:"",E?"c-modal--glass":"",f].filter(Boolean).join(" "),I=t("div",{className:"c-modal__content",children:[(d||S)&&t("div",{className:"c-modal__header",children:[t("div",{className:"c-modal__header-content",children:[d&&e("h3",{className:"c-modal__title",children:d}),h&&e("p",{className:"c-modal__sub",children:h})]}),S&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:C,"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}),v&&e("div",{className:"c-modal__footer",children:v})]});return t("div",{ref:N,className:L,style:{display:_?"block":"none",...b},role:"dialog","aria-modal":"true","aria-hidden":!_,...y,children:[e("div",{ref:x,className:"c-modal__backdrop",onClick:e=>{p&&e.target===e.currentTarget&&C()}}),e("div",{ref:A,className:"c-modal__dialog",children:E?(()=>{const t={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},n=!0===E?t:{...t,...E};return e(nt,{...n,children:I})})():I})]})}));xl.displayName="Modal";const _l=l((({children:t,alignment:n="start",variant:r="default",className:o="",disabled:i=!1,glass:s},l)=>{const{generateNavClass:c}=Es({alignment:n,variant:r}),d=c({alignment:n,variant:r,className:o}),u=e("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))});if(s){const t={displacementScale:60,blurAmount:1.5,cornerRadius:8,mode:"shader"},n=!0===s?t:{...t,...s};return e(nt,{...n,children:u})}return u}));_l.displayName="Nav";const Tl=l((({children:n,dropdown:s=!1,megaMenu:l=!1,active:c=!1,href:d,onClick:u,className:h="",disabled:m=!1,"aria-expanded":p,LinkComponent:g},f)=>{const{generateNavItemClass:b,generateNavLinkClass:S,handleClick:v}=ys({dropdown:s,megaMenu:l,active:c,disabled:m}),[E,y]=r(!1),N=o(null);i((()=>{if(!s&&!l||!E)return;const e=e=>{N.current&&!N.current.contains(e.target)&&(768>window.innerWidth||y(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[s,l,E]),i((()=>{if(!s&&!l)return;const e=()=>{window.innerWidth>=768&&E&&y(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,l,E]);const A=b({dropdown:s,megaMenu:l,active:c,disabled:m,className:h})+(E?" is-active":""),x=S(c,m,s||l?"c-nav__dropdown-toggle":""),_=a.Children.toArray(n),T=void 0!==p?p:E,C={ref:N,href:d||"#",className:x,onClick:s||l?e=>{(s||l)&&(e.preventDefault(),y(!E))}:v(u),"aria-disabled":m,"aria-expanded":s||l?T:void 0,"aria-current":!c||s||l?void 0:"page"};return t("li",{ref:f,className:A,role:"menuitem","aria-haspopup":s||l,children:[e(g||"a",{...C,children:s||l?_[0]:n}),(s||l)&&_.length>1&&_[1]]})}));Tl.displayName="NavItem";const Cl=l((({brand:n,children:a,variant:s,position:l="static",containerWidth:c,collapsible:d=!0,expanded:u,onToggle:h,className:m="",style:p,disabled:g=!1,backdrop:f=!1,closeOnOutsideClick:b=!0,closeOnEscape:S=!0,ariaLabel:v="Main navigation",id:E,glass:y},N)=>{const{generateNavbarClass:A,generateContainerStyle:x,generateCollapseClass:_}=vs({position:l,collapsible:d,expanded:u,onToggle:h}),[T,C]=r(u||!1),L=o(null);i((()=>{void 0!==u&&C(u)}),[u]),i((()=>{const e=()=>{window.innerWidth>=768&&d&&("function"==typeof h?u&&h(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[d,u,h]);const I=A({position:l,variant:s,collapsible:d,className:m}),w=x(c),O=_(T),R=t("div",{className:"c-navbar__container",style:w,children:[n&&("string"==typeof n?e("a",{href:"/",className:"c-navbar__brand",children:n}):e("div",{className:"c-navbar__brand",children:n})),d&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(g)return;const e=!T;"function"==typeof h?h(e):C(e)},"aria-expanded":T,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:g,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:O,ref:L,children:a})]});if(y){const t={displacementScale:30,blurAmount:2,cornerRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},n=!0===y?t:{...t,...y};return e(nt,{...n,style:{..."fixed"===l&&{position:"fixed"},left:0,right:0,top:0,zIndex:1e3},children:e("nav",{ref:N,className:I+" c-navbar--glass","aria-label":v,id:E,style:p,children:R})})}return e("nav",{ref:N,className:I,"aria-label":v,id:E,style:p,children:R})}));function Ll(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Il(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{Ll(e,n),Ll(t,n)}),[e,t])}Cl.displayName="Navbar";const wl=l((({children:t,className:n=""},r)=>e("ul",{ref:r,className:("c-side-menu__list "+n).trim(),role:"list",children:a.Children.map(t,((t,n)=>a.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},n):t))})));wl.displayName="SideMenuList";const Ol=l((({children:n,href:a,onClick:r,active:o=!1,disabled:i=!1,icon:s,className:l="",target:c,rel:d,LinkComponent:u},h)=>{const{LinkComponent:m}=Ml(),p=u??m,{generateSideMenuItemClass:g,handleClick:f}=xs({active:o,disabled:i,className:l}),b=g();if(a){if(p){const l={ref:h,className:b,onClick:i?e=>{e.preventDefault()}:r,"aria-disabled":i,"aria-current":o?"page":void 0,target:c,rel:d,tabIndex:i?-1:0,...i?{}:{href:a,to:a}};return t(p,{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}const l={ref:h,href:i?void 0:a,className:b,onClick:f(r),"aria-disabled":i,"aria-current":o?"page":void 0,target:c,rel:d,tabIndex:i?-1:0};return t("a",{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}return t("button",{ref:h,type:"button",className:b,onClick:f(r),disabled:i,"aria-current":o?"page":void 0,tabIndex:i?-1:0,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}));Ol.displayName="SideMenuItem";const Rl=g({}),Ml=()=>f(Rl),kl=l((({title:a,children:s,menuItems:l=[],isOpen:c,onToggle:d,collapsible:u=!0,collapsibleDesktop:h=!1,defaultCollapsedDesktop:m=!1,className:p="",style:g,disabled:f=!1,toggleIcon:b,id:S,glass:v,LinkComponent:E},y)=>{const{isOpenState:N,wrapperRef:A,innerRef:x,sideMenuRef:_,generateSideMenuClass:T,generateWrapperClass:C,handleToggle:L}=As({isOpen:c,onToggle:d,collapsible:u,collapsibleDesktop:h,defaultCollapsedDesktop:m,disabled:f}),[I,w]=r((()=>"undefined"!=typeof window&&768>window.innerWidth)),[O,R]=r((()=>{const e={};return l?.forEach(((t,n)=>{e[n]=!0})),e})),M=o({}),k=o({}),D=o(l?.length??0);i((()=>{const e=()=>{w(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),i((()=>{const e=l?.length??0;D.current!==e&&(D.current=e,R((e=>{const t={};return l?.forEach(((n,a)=>{t[a]=e[a]??!0})),t})),Object.keys(M.current).forEach((t=>{const n=Number(t);e>n||(delete M.current[n],delete k.current[n])})))}),[l?.length]);const B=(e,t)=>{const n=M.current[e],a=k.current[e];n&&a&&(n.style.height=t?a.scrollHeight+"px":"0px")};i((()=>{if(!l?.length)return;const e=setTimeout((()=>{l.forEach(((e,t)=>{const n=O[t]??!0;B(t,n)}))}),0);return()=>clearTimeout(e)}),[l?.length]),i((()=>{if(!l?.length)return;const e=[];return Object.keys(O).forEach((t=>{const n=Number(t),a=O[n]??!0,r=requestAnimationFrame((()=>{B(n,a)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[O,l?.length]);const P=Il(_,y),z=T({className:p,isOpen:N}),U=C(),F=e(yt,{name:"CaretRight",size:"xs"}),G=I&&u||!I&&h,V=a&&!G,H=t(n,{children:[a&&G&&t("div",{className:"c-side-menu__toggler",onClick:L,role:"button",tabIndex:f?-1:0,"aria-expanded":N,"aria-controls":S?S+"-content":void 0,"aria-disabled":f,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),L())},children:[e("span",{className:"c-side-menu__title",children:a}),e("span",{className:"c-side-menu__toggler-icon",children:b||F})]}),V&&e("h3",{className:"c-side-menu__title",children:a}),e("div",{ref:A,className:U,id:S?S+"-content":void 0,"aria-hidden":!!G&&!N,children:e(Rl.Provider,{value:{LinkComponent:E},children:t("div",{ref:x,className:"c-side-menu__inner",children:[s,l?.map(((n,a)=>{const r=O[a]??!0,o=n.items&&n.items.length>0,i=o&&!f,s=()=>{i&&R((e=>({...e,[a]:!e[a]})))};return t("div",{className:"c-side-menu__item",children:[n.title&&t("div",{className:["c-side-menu__toggler",i&&"c-side-menu__toggler--nested",r&&"is-open"].filter(Boolean).join(" "),onClick:i?s:void 0,role:i?"button":void 0,tabIndex:i&&!f?0:void 0,"aria-expanded":i?r:void 0,"aria-disabled":f,onKeyDown:i?e=>{"Enter"!==e.key&&" "!==e.key||f||(e.preventDefault(),s())}:void 0,children:[e("span",{className:"c-side-menu__title",children:n.title}),i&&e("span",{className:"c-side-menu__toggler-icon",children:n.toggleIcon||e(yt,{name:"CaretRight",size:"xs"})})]}),o&&e("div",{ref:e=>{M.current[a]=e},className:"c-side-menu__nested-wrapper",children:e("div",{ref:e=>{k.current[a]=e},className:"c-side-menu__nested-inner",children:e(wl,{children:n.items?.map(((t,n)=>e(Ol,{href:t.href,onClick:t.onClick,active:t.active,disabled:t.disabled,icon:t.icon,LinkComponent:E,children:t.title},n)))})})})]},a)}))]})})})]});if(v){const t={displacementScale:70,blurAmount:2,cornerRadius:12,mode:"shader"},n=!0===v?t:{...t,...v};return e(nt,{...n,children:e("div",{ref:P,className:z+" c-side-menu--glass",id:S,style:g,children:H})})}return e("div",{ref:P,className:z,id:S,style:g,children:H})}));kl.displayName="SideMenu";const Dl=l((({children:t,className:n="",style:r,disabled:o=!1},i)=>e("div",{ref:i,className:"c-menu "+n,style:r,children:e("ul",{className:"c-menu__list",role:"menu",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))})})));Dl.displayName="Menu";const Bl=l((({children:n,href:a="#",icon:r,active:o=!1,disabled:i=!1,onClick:s,className:l=""},c)=>e("li",{ref:c,className:`c-menu__item ${o?"is-active":""} ${i?"is-disabled":""} ${l}`,role:"menuitem",children:t("a",{href:a,className:"c-menu__link",onClick:e=>{i?e.preventDefault():s&&s()},"aria-disabled":i,"aria-current":o?"page":void 0,children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(yt,{name:Pl(r.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):e("i",{className:"c-menu__icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__icon",children:r})),n]})})));Bl.displayName="MenuItem";const Pl=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),zl=l((({className:t=""},n)=>e("li",{ref:n,className:"c-menu__divider "+t,role:"separator"})));zl.displayName="MenuDivider";const Ul=l((({children:t,className:n="",style:r,disabled:o=!1},i)=>e("div",{ref:i,className:"c-menu c-menu--mega "+n,style:r,children:e("div",{className:"c-menu__container",children:e("div",{className:"c-menu__grid o-grid",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))})})})));Ul.displayName="MegaMenu";const Fl=l((({title:n,icon:r,children:o,width:i="auto",className:s="",disabled:l=!1},c)=>t("div",{ref:c,className:`o-grid__col o-grid__col--${i} ${s}`,children:[(n||r)&&t("div",{className:"c-menu__header",children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(yt,{name:Pl(r.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):e("i",{className:"c-menu__header-icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__header-icon",children:r})),n&&e("div",{className:"c-menu__header-title",children:n})]}),e("ul",{className:"c-menu__subitems-list",role:"menu",children:a.Children.map(o,(t=>{if(a.isValidElement(t)){const n=t.props;return e("li",{className:"c-menu__subitem",role:"menuitem",children:a.cloneElement(t,{...n,disabled:!!l||n?.disabled})})}return null}))})]})));Fl.displayName="MegaMenuColumn";const Gl=l((({href:t,children:n,className:a="",disabled:r=!1,onClick:o},i)=>e("a",{ref:i,href:t,className:`c-menu__subitem-link ${r?"is-disabled":""} ${a}`,onClick:e=>{r?e.preventDefault():o&&o()},"aria-disabled":r,children:n})));Gl.displayName="MegaMenuLink";const Vl=l((({title:a,children:s,alignment:l="start",megaMenu:c=!1,className:d="",style:u,disabled:h=!1},m)=>{const{generateDropdownMenuClass:p,getIconName:g}=Ns({alignment:l,megaMenu:c}),[f,b]=r(!1),S=o(null),v=p({alignment:l,megaMenu:c,className:d}),E=g(c);i((()=>{if(!f)return;const e=e=>{768>window.innerWidth||!S.current||S.current.contains(e.target)||b(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f]),i((()=>{if(!f)return;const e=e=>{"Escape"===e.key&&b(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f]);const y=t(n,{children:[a,e(yt,{name:E,size:"sm",className:"c-nav__icon"})]}),N=e("div",{className:v,ref:S,"aria-hidden":!f,children:s});return t(Tl,{dropdown:!c,megaMenu:c,disabled:h,className:f?"is-active":"",href:"#",onClick:()=>{h||b(!f)},"aria-expanded":f,style:u,children:[y,N]})}));Vl.displayName="NavDropdown";const Hl=({currentIndex:n,imagesLength:a,onZoomOut:r,onResetZoom:o,onZoomIn:i,onToggleFullscreen:s,onClose:l,isFullscreen:c,zoomLevel:d,onRotate:u,onDownload:h,onShare:m,showInfo:p,onToggleInfo:g,currentImage:f})=>t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(_t,{label:`${n+1} / ${a}`,variant:"primary",size:"sm"}),f?.title&&e("h3",{className:"c-photo-viewer__image-title",children:f.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:.1>=d,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(yt,{name:"Minus",size:"sm"})}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:1===d,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(yt,{name:"MagnifyingGlass",size:"sm"})}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,disabled:d>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(yt,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(yt,{name:"ArrowsClockwise",size:"sm"})}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(yt,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(yt,{name:"Share",size:"sm"})}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:g,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(p?"is-active":""),icon:e(yt,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":c?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(yt,{name:c?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(yt,{name:"X",size:"sm"})})]})]}),jl=({show:a,onPrev:r,onNext:o,currentIndex:s,imagesLength:l,enableKeyboardNav:c,onClose:d})=>(i((()=>{if(!c)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&o(),"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,r,o,d]),a?t(n,{children:[e(kt,{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(yt,{name:"CaretLeft",size:"md"})}),e(kt,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:o,disabled:s===l-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(yt,{name:"CaretRight",size:"md"})})]}):null),Yl=({imageRef:t,containerRef:n,src:a,alt:s,zoomLevel:l,dragPosition:c,isDragging:d,rotationAngle:u,isTransitioning:h=!1,onMouseDown:m,onMouseMove:p,onMouseUp:g,onWheel:f,onTouchStart:b,onTouchMove:S,onTouchEnd:v,onDoubleClick:E})=>{const y=o(null),N=n||y,[A,x]=r(!1);return i((()=>(x(!0),()=>x(!1))),[]),i((()=>{const e=N.current;if(!e)return;const t=t=>{A&&e&&f&&f(t)},n=t=>{A&&e&&b&&b(t)},a=t=>{A&&e&&S&&S(t)},r=t=>{A&&e&&v&&v(t)};return A&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[A,f,b,S,v,N]),e("div",{ref:N,className:"c-photo-viewer__image-container "+(h?"is-transitioning":""),style:{cursor:d?"grabbing":l>1?"grab":"default",opacity:h?.7:1,touchAction:"none"},onMouseDown:m,onMouseMove:p,onMouseUp:g,onMouseLeave:g,onDoubleClick:e=>{A&&E&&E(e)},children:e("img",{ref:t,src:a,alt:s,className:"c-photo-viewer__image",style:{transform:`scale(${l}) translate(${c.x}px, ${c.y}px) rotate(${u}deg)`,transition:d?"none":h?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:d?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Wl=({images:n,currentIndex:a,goToImage:r})=>n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((n,o)=>{const i=n.thumbnail||n.src,s=o===a;return e(kt,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(s?"is-active":""),onClick:()=>r(o),"aria-label":`View image ${o+1}${n.title?": "+n.title:""}`,"aria-current":s,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:i,alt:n.alt||"Thumbnail "+(o+1),className:"c-photo-viewer__thumbnail-img"}),s&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},o)}))})}):null,Kl=({show:n,image:a,onClose:r})=>n&&a?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(kt,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(yt,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[a.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:a.title})}),a.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:a.description})}),(a.date||a.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[a.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(yt,{name:"Calendar",size:14}),e("span",{children:a.date})]}),a.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(yt,{name:"User",size:14}),e("span",{children:a.author})]})]})}),a.tags&&a.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:a.tags.map(((t,n)=>e(_t,{label:t,variant:"secondary",size:"sm"},n)))})]})]})]}):null,$l=({images:n,startIndex:a=0,className:s="",disabled:l=!1,enableKeyboardNavigation:c=!0,enableGestures:h=!0,enableFullscreen:m=!0,thumbnailPosition:p="bottom",onImageChange:g,onClose:f})=>{const{currentIndex:b,zoomLevel:S,imagePosition:v,isDragging:E,isFullscreen:y,rotationAngle:N,showInfo:A,imageRef:x,containerRef:_,isTransitioning:T,setZoomLevel:C,setImagePosition:L,setIsDragging:I,setIsFullscreen:w,setRotationAngle:O,setShowInfo:R,closeModal:M,goToPrevious:k,goToNext:D,setCurrentIndex:B,handleMouseDown:P,handleMouseMove:z,handleMouseUp:U,handleWheel:F,handleTouchStart:G,handleTouchMove:V,handleTouchEnd:H,handleDoubleClick:j,resetImageState:Y}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:s})=>{const[l,c]=r(t),[d,h]=r(!1),[m,p]=r(!1),[g,f]=r({x:0,y:0}),[b,S]=r(!1),[v,E]=r(!1),[y,N]=r({}),[A,x]=r(!1),[_,T]=r(!1),[C,L]=r({velocity:0,timestamp:0}),I=o(null),w=o(null),O=o([]),R=o(null),M=o(null),k=o(0),D=o(null),B=u(((e,t)=>{if(!_||!I.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=I.current,a=w.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,o=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const i=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/o;let h,m;i/s>u?(m=Math.min(.9*s,o),h=m*u):(h=Math.min(.9*i,r),m=h/u);const p=(h*d+m*c)*e,g=Math.max(0,((h*c+m*d)*e-i)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(i){return{minX:0,maxX:0,minY:0,maxY:0}}}),[_]),P=u(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);i((()=>(T(!0),0>t||t>=e.length?c(0):c(t),()=>T(!1))),[e,t]),i((()=>{d?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[d]),i((()=>{d&&N((e=>e[l]?e:{...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[d,l]),i((()=>{a&&a(l)}),[l,a]),i((()=>{const e=I.current,t=w.current,n=()=>{_&&e&&t&&N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=B(t.zoomLevel,t.rotation),a=P(t.position,n);return{...e,[l]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&_))return e&&t&&_?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[l,B,P,_]),i((()=>{const e=()=>{_&&I.current&&w.current&&N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=B(t.zoomLevel,t.rotation),a=P(t.position,n);return{...e,[l]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l,B,P,_]);const z=u((()=>{h(!0)}),[]),U=u((()=>{h(!1),s&&s()}),[s]),F=u((()=>{l>0&&(x(!0),setTimeout((()=>{c((e=>e-1)),x(!1)}),150))}),[l]),G=u((()=>{l<e.length-1&&(x(!0),setTimeout((()=>{c((e=>e+1)),x(!1)}),150))}),[l,e.length]),V=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,r=Math.max(.1,Math.min(5,a)),o=B(r,n.rotation),i=P(n.position,o);return{...t,[l]:{...n,zoomLevel:r,bounds:o,position:i}}}))}),[_,l,B,P]),H=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,r=P(a,n.bounds);return{...t,[l]:{...n,position:r}}}))}),[l,P]),j=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,r=B(n.zoomLevel,a),o=P(n.position,r);return{...t,[l]:{...n,rotation:a,bounds:r,position:o}}}))}),[_,l,B,P]),Y=u((e=>{var t;if(!_||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(Po(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}N((t=>{const a=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),o=e.ctrlKey&&r,i=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&i&&r,c=!e.ctrlKey&&!i&&r,d=!r;let u,h=!1;if(o)u=-.02*e.deltaY,h=!0;else if(s){if(1>=a.zoomLevel)return t;u=-.003*e.deltaY,h=!0}else c?(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;let g;k.current=m,o&&100>p&&(L({velocity:Math.abs(u)/p,timestamp:m}),D.current&&clearTimeout(D.current),D.current=setTimeout((()=>{const e=()=>{L((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(u>0?1:-1);return N((e=>{const t=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const r=B(n,t.rotation),o=P(t.position,r);return{...e,[l]:{...t,zoomLevel:n,bounds:r,position:o}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=n.getBoundingClientRect()}catch(A){return t}if(!g||0===g.width||0===g.height)return t;const f=g.width/2,b=g.height/2,S=e.clientX-g.left-f,v=e.clientY-g.top-b,E=a.zoomLevel,y=Math.max(.1,Math.min(5,E+u));if(y!==E){const e=y/E,n=B(y,a.rotation),r={x:a.position.x+S*(1-e)*.5,y:a.position.y+v*(1-e)*.5},o=P(r,n);return{...t,[l]:{...a,zoomLevel:y,bounds:n,position:o}}}return t}))}}),[_,l,B,P]),W=u((e=>{if(!_||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&N((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return n}if(!r||0===r.width||0===r.height)return n;const o=r.width/2,i=r.height/2,s=e.clientX-r.left-o,c=e.clientY-r.top-i;let d,u={x:0,y:0};1.5>a.zoomLevel?(d=2,u={x:.5*-s,y:.5*-c}):3>a.zoomLevel?(d=4,u={x:.75*-s,y:.75*-c}):(d=1,u={x:0,y:0});const h=B(d,a.rotation),m=P(u,h);return{...n,[l]:{...a,zoomLevel:d,bounds:h,position:m}}}))}),[_,l,B,P]),K=u((e=>{N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),p(!0),f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[l]),$=u((e=>{m&&N((t=>{const n=t[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.min(1,1/n.zoomLevel),r=(e.clientX-g.x)*a,o=(e.clientY-g.y)*a,i=P({x:r,y:o},n.bounds);return{...t,[l]:{...n,position:i}}}))}),[m,g,l,P]),Q=u((()=>{p(!1)}),[]),q=u((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}))),N((e=>{const n=e[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1){p(!0);const e=t[0];e&&f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})}else if(2===t.length){const e=t[0],n=t[1];if(e&&n){const t=e.clientX-n.clientX,a=e.clientY-n.clientY;R.current=Math.sqrt(t*t+a*a),M.current={x:(e.clientX+n.clientX)/2,y:(e.clientY+n.clientY)/2}}}return e}))}),[n,l]),Z=u((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),N((n=>{const a=n[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};a.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,o=0,i=null;if(1===t.length&&m&&a.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/a.zoomLevel);r={x:(e.clientX-g.x)*t,y:(e.clientY-g.y)*t}}if(r){const e=P(r,a.bounds);return{...n,[l]:{...a,position:e}}}}else if(2===t.length&&null!==R.current){const r=t[0],c=t[1];if(r&&c){const t=r.clientX-c.clientX,d=r.clientY-c.clientY,u=Math.sqrt(t*t+d*d);o=.005*(u-R.current),R.current=u,i={x:(r.clientX+c.clientX)/2,y:(r.clientY+c.clientY)/2};const h=a.zoomLevel,m=Math.max(.1,Math.min(5,h+o));if(m!==h&&M.current&&i){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return n}if(!t||0===t.width||0===t.height)return n;const r=t.width/2,o=t.height/2,c=i.x-t.left-r,d=i.y-t.top-o,u=m/h,p=B(m,a.rotation),g={x:a.position.x+c*(1-u)*.5,y:a.position.y+d*(1-u)*.5},f=P(g,p);return M.current=i,{...n,[l]:{...a,zoomLevel:m,bounds:p,position:f}}}i&&(M.current=i)}}return n}))}),[_,n,m,g,l,P,B]),X=u((()=>{p(!1),R.current=null,M.current=null}),[]),J=y[l]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:l,isModalOpen:d,zoomLevel:J.zoomLevel,imagePosition:J.position,isDragging:m,isFullscreen:b,rotationAngle:J.rotation,showInfo:v,imageRef:I,containerRef:w,isTransitioning:A,setCurrentIndex:c,setZoomLevel:V,setImagePosition:H,setIsDragging:p,setIsFullscreen:S,setRotationAngle:j,setShowInfo:E,openModal:z,closeModal:U,goToPrevious:F,goToNext:G,handleWheel:Y,handleMouseDown:K,handleMouseMove:$,handleMouseUp:Q,handleTouchStart:q,handleTouchMove:Z,handleTouchEnd:X,handleDoubleClick:W,resetImageState:()=>{N((e=>({...e,[l]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:a,enableGestures:h,onImageChange:g,onClose:f||(()=>{})}),W=d((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),K=W[b],$=d((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+p,E?"c-photo-viewer--dragging":"",y?"c-photo-viewer--fullscreen":"",A?"c-photo-viewer--info-open":"",l?"is-disabled":"",s].filter(Boolean).join(" ")),[E,y,A,l,p,s]);return i((()=>{const e=()=>{w(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[w]),i((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:$,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(Hl,{currentIndex:b,imagesLength:n.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(m){if(y)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}w(!y)}},onClose:f||M,isFullscreen:y,zoomLevel:S,onRotate:()=>{O((e=>(e+90)%360))},onDownload:()=>{if(!K?.src)return;const e=document.createElement("a");e.href=K.src;const t=(K.title||"image-"+(b+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&K?.src)try{await navigator.share({title:K.title||"Shared Image",text:K.description||"Check out this image",url:K.src})}catch(e){}},showInfo:A,onToggleInfo:()=>R(!A),currentImage:K}),t("div",{className:"c-photo-viewer__content",children:[e(jl,{show:n.length>1,onPrev:k,onNext:D,currentIndex:b,imagesLength:n.length,enableKeyboardNav:c,onClose:f||M}),K?.src&&e(Yl,{imageRef:x,containerRef:_,src:K.src,alt:K?.alt||"Image "+(b+1),zoomLevel:S,dragPosition:v,isDragging:E,rotationAngle:N,isTransitioning:T,onMouseDown:P,onMouseMove:z,onMouseUp:U,onWheel:F,onTouchStart:G,onTouchMove:V,onTouchEnd:H,onDoubleClick:j})]}),"none"!==p&&e(Wl,{images:W,currentIndex:b,goToImage:B}),e(Kl,{show:A,image:K,onClose:()=>R(!1)})]})]}):null};$l.displayName="PhotoViewer";const Ql=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),ql=({content:n,position:a="top",trigger:s="click",className:l="",style:c,delay:d=0,offset:u=12,defaultOpen:h=!1,isOpen:m,onOpenChange:p,closeOnClickOutside:g=!0,closeOnEscape:f=!0,id:b,children:S,glass:v})=>{const{isOpen:E,setIsOpen:y,triggerRef:N,popoverRef:A,arrowRef:x,popoverId:_,currentPosition:T,updatePosition:C}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:s=!1,isOpen:l,onOpenChange:c,closeOnClickOutside:d=!0,closeOnEscape:u=!0,id:h})=>{const[m,p]=r(s),[g,f]=r("auto"===e?"top":e),b=o(null),S=o(null),v=o(null),E=o(null),y=h||"popover-"+Math.random().toString(36).slice(2,11),N=void 0!==l,A=N?l:m,x=e=>{N||p(e),c&&c(e)};i((()=>{if("hover"!==t||!b.current||!S.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{x(!0)}),a):x(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{S.current?.matches(":hover")||x(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},o=()=>{x(!1)};return b.current.addEventListener("mouseenter",e),b.current.addEventListener("mouseleave",n),S.current.addEventListener("mouseenter",r),S.current.addEventListener("mouseleave",o),()=>{b.current&&(b.current.removeEventListener("mouseenter",e),b.current.removeEventListener("mouseleave",n)),S.current&&(S.current.removeEventListener("mouseenter",r),S.current.removeEventListener("mouseleave",o)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,A]);const _=t=>{if(!b.current||!S.current)return;const a=b.current.getBoundingClientRect(),r=S.current.getBoundingClientRect(),o=window.innerWidth,i=window.innerHeight,s=50>a.top||a.bottom>i-50||50>a.left||a.right>o-50;if("scroll"===t?.type&&!s)return;const l=a.top,c=i-a.bottom,d=a.left,u=o-a.right;let h="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),h=e[0]?.position}else("top"===e&&l<r.height+n&&c>=r.height+n||"bottom"===e&&c<r.height+n&&l>=r.height+n||"left"===e&&d<r.width+n&&u>=r.width+n||"right"===e&&u<r.width+n&&d>=r.width+n)&&(h={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);f(h);let m=0,p=0;switch(h){case"top":m=a.top-r.height-n,p=a.left+a.width/2-r.width/2;break;case"bottom":m=a.bottom+n,p=a.left+a.width/2-r.width/2;break;case"left":m=a.top+a.height/2-r.height/2,p=a.left-r.width-n;break;case"right":m=a.top+a.height/2-r.height/2,p=a.right+n}0>p?p=5:p+r.width>o&&(p=o-r.width-5),0>m?m=5:m+r.height>i&&(m=i-r.height-5);const g=m+window.scrollY,v=p+window.scrollX;S.current.style.position="absolute",S.current.style.top=g+"px",S.current.style.left=v+"px"};return i((()=>{if(!A||!b.current||!S.current)return;_(),window.addEventListener("resize",_);let e=null;const t=t=>{e||(e=setTimeout((()=>{_(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{_()}),500);return()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[A,e,n]),i((()=>{if(!A||!d)return;const e=e=>{S.current&&!S.current.contains(e.target)&&b.current&&!b.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[A,d]),i((()=>{if(!A||!u)return;const e=e=>{"Escape"===e.key&&x(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[A,u]),i((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:A,setIsOpen:x,triggerRef:b,popoverRef:S,arrowRef:v,popoverId:y,currentPosition:g,updatePosition:_}})({position:a,trigger:s,offset:u,delay:d,defaultOpen:h,isOpen:m,onOpenChange:p,closeOnClickOutside:g,closeOnEscape:f,id:b});return t(Ql.Provider,{value:{isOpen:E,setIsOpen:y,triggerRef:N,popoverId:_,triggerType:s},children:[S,"undefined"!=typeof document&&O(t("div",{ref:A,className:`c-popover c-popover--${T} ${E?$.CLASSES.IS_OPEN:""} ${v?"c-popover--glass":""} ${l}`,style:c,id:_,role:"tooltip","aria-hidden":!E,children:[v?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},a=!0===v?t:{...t,...v};return e(nt,{...a,style:c,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:x,className:"c-popover__arrow"})]}),document.body)]})};l((({children:e,trigger:t},n)=>{const{isOpen:r,setIsOpen:o,triggerRef:i,popoverId:s,triggerType:l}=a.useContext(Ql),c=t||l,d=a.Children.only(e),u={ref:n||i,"aria-describedby":s,"aria-expanded":r};return"click"===c?u.onClick=()=>{o(!r)}:"hover"===c&&(u.onMouseEnter=()=>{o(!0)},u.onMouseLeave=()=>{o(!1)}),a.cloneElement(d,u)})).displayName="PopoverTrigger",ql.displayName="Popover";const Zl=l((({value:n=0,defaultValue:a,maxValue:s=5,allowHalf:l=!1,readOnly:c=!1,size:d="md",color:h,onChange:m,className:p="",style:g,label:f,id:b,useVanillaJS:S=!1,glass:v,...E},y)=>{const N=o(null),A=o(null),{currentValue:x,hoverValue:_,focusedIndex:T,setHoverValue:C,setFocused:L,handleKeyDown:I}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:o})=>{const i=void 0!==o,[s,l]=r(e),[c,d]=r(null),[h,m]=r(null),p=i?e:s,g=u((e=>{a||d(e)}),[a]),f=u((()=>{a||d(null)}),[a]),b=u((e=>{a||(i||l(e),o?.(e))}),[a,o,i]),S=u(((e,r)=>{if(a)return;const s=n?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+s),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-s),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=r,e.preventDefault();break;default:return}c!==p&&(i||l(c),o?.(c))}),[p,t,n,a,o,i]);return{currentValue:p,hoverValue:c,focusedIndex:h,handleMouseEnter:g,handleMouseLeave:f,handleClick:b,handleKeyDown:S,setFocused:m,setHoverValue:d,isControlled:i}})({value:void 0!==n?n:a,maxValue:s,allowHalf:l,readOnly:c,onChange:m}),w=Il(N,y),O=u(((e,t)=>{if(!c)if(l){const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,r=e.clientX<a;C(Math.max(.5,r?t-.5:t))}else C(t)}),[c,l,C]),R=u(((e,t)=>{if(c||!l)return;const n=e.currentTarget.getBoundingClientRect(),a=n.left+n.width/2,r=e.clientX<a;C(Math.max(.5,r?t-.5:t))}),[c,l,C]),M=u((()=>{c||C(null)}),[c,C]),k=u(((e,t)=>{if(c)return;let n=t;if(l){const a=e.currentTarget.getBoundingClientRect(),r=a.left+a.width/2;n=e.clientX<r?t-.5:t,n=Math.max(.5,n)}m?.(n)}),[c,m,l]);i((()=>{if(S&&"undefined"!=typeof window&&N.current)return()=>{A.current&&A.current.destroy()}}),[S,n,a,s,l,c,d,h,m]),i((()=>{S&&A.current&&A.current.updateOptions({value:void 0!==n?n:a,maxValue:s,allowHalf:l,readOnly:c,size:d,color:h})}),[S,n,a,s,l,c,d,h]);const D=["c-rating","sm"===d?ie.CLASSES.SMALL:"","lg"===d?ie.CLASSES.LARGE:"",h?"c-rating--"+h:"",p].filter(Boolean).join(" ");if(S)return e("div",{className:D,ref:w,id:b,...E});const B=null!==_?_:x,P=e("div",{className:D,ref:w,id:b,style:g,"data-readonly":c?"true":"false",onMouseLeave:M,role:c?"img":"radiogroup","aria-label":f||`Rating: ${x} out of ${s} stars`,...E,children:(()=>{const n=[],a=l?Math.floor(2*B)/2:Math.round(B),r=b||"rating-"+Math.random().toString(36).substring(2,9);for(let o=1;s>=o;o++){const i=l&&o-.5===a,d=["c-rating__star",o>Math.floor(a)?"":ie.CLASSES.FULL,i?ie.CLASSES.HALF:"",h?"c-rating__star--"+h:"",T===o?"c-rating__star--focused":""].filter(Boolean).join(" "),u=`${r}-star-${o}`;n.push(e("div",{id:u,className:d,"data-value":o,role:c?"presentation":"button",tabIndex:c?-1:0,"aria-label":`${o} ${1===o?"star":"stars"}`,"aria-checked":a>=o,"aria-setsize":s,"aria-posinset":o,onClick:e=>k(e,o),onMouseEnter:e=>O(e,o),onMouseMove:e=>R(e,o),onFocus:()=>L(o),onBlur:()=>L(null),onKeyDown:e=>I(e,o),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-${r}-${o})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${r}-${o}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},o))}return n})()});if(v){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===v?t:{...t,...v};return e(nt,{...n,children:P})}return P}));Zl.displayName="Rating";const Xl=({productName:n,productImage:a,initialRating:s=0,maxRating:l=5,allowHalf:c=!0,ratingColor:d="warning",onSubmit:u,className:h="",style:m})=>{const[p,g]=r(s),[f,b]=r(""),[S,v]=r(!1),E=o(null),y=o(null);i((()=>{if("undefined"!=typeof window&&E.current)return()=>{y.current&&y.current.destroy()}}),[n,a,s,l,c,d,u]);const N=e=>{e.preventDefault(),u&&u(p,f),v(!0)},A=["c-product-review",h].filter(Boolean).join(" ");return S?e("div",{className:A,ref:E,style:m,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(kt,{variant:"secondary",label:"Write another review",onClick:()=>{v(!1),g(0),b("")}})]})}):t("div",{className:A,ref:E,style:m,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),a&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:a,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(Zl,{value:p,onChange:g,allowHalf:c,maxValue:l,size:"lg",color:d}),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:f,onChange:e=>b(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(kt,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>N(new Event("click"))})})]})]})};Xl.displayName="ProductReview";const Jl=s(l((({value:t,variant:n="primary",size:a="md",className:r="",style:o,disabled:i=!1,ariaLabel:s=xe.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:u,progressClasses:h}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),o="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[o,t?`${o}--${t}`:"",n?`${o}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:t,variant:n,size:a,className:r}),m=e("div",{ref:c,className:h+(l?" c-progress--glass":""),style:{...u,...o},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":i,children:e("div",{className:xe.CLASSES.BAR})});if(l){const t={displacementScale:30,blurAmount:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(nt,{...n,children:m})}return m})));Jl.displayName="Progress";const ec=({title:n,text:a,actions:r,imageSrc:o,imageAlt:i="Image",center:s=!1,breakout:l=!1,reverse:c=!1,contentColumns:d,backgroundImageSrc:u,showOverlay:h=!0,contentWidth:m,className:p="",style:g})=>{const{generateRiverClassNames:f,generateContentClass:b,generateVisualClass:S,hasBackgroundImage:v,hasForegroundImage:E,textContent:y}=Ss({title:n,text:a,imageSrc:o,imageAlt:i,center:s,breakout:l,reverse:c,backgroundImageSrc:u,showOverlay:h,contentWidth:m}),N={...m?{[te.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...g},A=()=>v?t("div",{className:te.SELECTORS.BG.replace(".",""),children:[e("img",{src:u,alt:"Background",className:te.SELECTORS.BG_IMAGE.replace(".","")}),h&&e("div",{className:te.SELECTORS.OVERLAY.replace(".","")})]}):null,x=()=>E?e("div",{className:S(),children:e("div",{className:te.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:o,alt:i,className:te.SELECTORS.IMAGE.replace(".","")})})}):null;return d&&d.length>0?t("div",{className:f(p),style:N,children:[A(),e("div",{className:te.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:te.SELECTORS.ROW.replace(".",""),children:[!c&&x(),t("div",{className:b(),children:[d.map(((t,n)=>e("div",{className:`${te.SELECTORS.CONTENT_COL.replace(".","")} ${te.SELECTORS["CONTENT_COL_"+t.type.toUpperCase()].replace(".","")}`,children:t.content},n))),r&&e("div",{className:te.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&x()]})})]}):t("div",{className:f(p),style:N,children:[A(),e("div",{className:te.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:te.SELECTORS.ROW.replace(".",""),children:[!c&&x(),t("div",{className:b(),children:[n&&e("h2",{className:te.SELECTORS.TITLE.replace(".",""),children:n}),y.map(((t,n)=>e("p",{className:te.SELECTORS.TEXT.replace(".",""),children:t},n))),r&&e("div",{className:te.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&x()]})})]})};ec.displayName="River";const tc=({title:n,label:a,text:r,actions:s,alignment:l="left",backgroundImageSrc:c,showOverlay:d=!1,imageSrc:u,imageAlt:h="Section image",size:m="md",skeleton:p=!1,className:g="",style:f})=>{const b=o(null),S=o(null);i((()=>{if("undefined"!=typeof window&&b.current)return()=>{S.current&&S.current.destroy()}}),[l,c,d,m,p]);const v=["c-sectionintro","center"===l?ee.CLASSES.CENTER:"","sm"===m?ee.CLASSES.SMALL:"","lg"===m?ee.CLASSES.LARGE:"",c?"c-sectionintro--has-bg":"",g].filter(Boolean).join(" ");return p?e("div",{className:v,ref:b,style:f,children:t("div",{className:"c-sectionintro__container",children:[a&&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"})}),r&&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"})}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t("div",{className:v,ref:b,style:f,children:[c?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:c,alt:"Background",className:"c-sectionintro__bg-image"}),d&&e("div",{className:"c-sectionintro__overlay"})]}):null,a&&e("div",{className:"c-sectionintro__label",children:a}),e("h2",{className:"c-sectionintro__title",children:n}),r&&e("div",{className:"c-sectionintro__text",children:r}),s&&e("div",{className:"c-sectionintro__actions",children:s}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:u,alt:h,className:"c-sectionintro__image"})})]})};tc.displayName="SectionIntro";const nc=l(((n,a)=>{const{slides:r=[],height:o=300,width:i="100%",slidesToShow:s=1,spaceBetween:l=0,loop:c=!1,initialSlide:u=0,direction:h="horizontal",speed:m=300,allowTouchMove:p=!0,threshold:g=50,grabCursor:f=!0,autoplay:b,navigation:S,pagination:v,className:E,style:y,onSlideChange:N,...A}=n,x=nl({slides:r||[],slidesToShow:s,spaceBetween:l,loop:c,initialSlide:u,direction:h,speed:m,allowTouchMove:p,threshold:g,autoplay:b,onSlideChange:N}),{containerRef:_,wrapperRef:T,allSlides:C,realIndex:L,translateValue:I,slideWidth:w,transitioning:O,touching:R,slideNext:M,slidePrev:k,goToSlide:D,canSlideNext:B,canSlidePrev:P,handleTouchStart:z,handleTouchMove:U,handleTouchEnd:F,loopedSlides:G}=x,V=d((()=>0===w?0:C.length*(w+l)-l),[C.length,w,l]);if(!r||0===r.length)return e("div",{className:"c-slider c-slider--empty",style:{height:o,width:i,...y},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const H=["c-slider","vertical"===h&&"c-slider--vertical",f&&"c-slider--grab-cursor",R&&"c-slider--grabbing",c&&"c-slider--loop",E].filter(Boolean).join(" ");return t("div",{ref:a||_,className:H,style:{height:"number"==typeof o?o+"px":o,width:"number"==typeof i?i+"px":i,overflow:"hidden",position:"relative",cursor:f&&!R?"grab":R?"grabbing":"default",...y},onTouchStart:z,onTouchMove:U,onTouchEnd:F,onMouseDown:z,onMouseMove:U,onMouseUp:F,onMouseLeave:F,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(${I}px)`:`translateY(${I}px)`,transition:O&&!x.repositioningRef?.current?`transform ${m}ms ease-out`:"none",willChange:"transform"},children:C.map(((n,a)=>t("div",{className:["c-slider__slide",(c?a%r.length===L:a===L)&&"c-slider__slide--active",n.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===h?"100%":w+"px",height:"vertical"===h?w+"px":"100%",flexShrink:0,marginRight:"horizontal"===h&&a<C.length-1?l+"px":0,marginBottom:"vertical"===h&&a<C.length-1?l+"px":0},children:[n.video?e("video",{src:n.video.src,poster:n.video.poster,autoPlay:n.video.autoplay,loop:n.video.loop,muted:n.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):n.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${n.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:n.content}):n.image?e("img",{src:n.image,alt:n.alt||n.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):n.content,(n.title||n.description)&&t("div",{className:"c-slider__slide-content",children:[n.title&&e("h3",{children:n.title}),n.description&&e("p",{children:n.description})]})]},n.id||a)))}),S&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:k,disabled:!P,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:M,disabled:!B,"aria-label":"Next slide"})]}),v&&e("div",{className:"c-slider__pagination",children:r.map(((t,n)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(n===L?"c-slider__pagination-bullet--active":""),onClick:()=>D(n),"aria-label":"Go to slide "+(n+1)},n)))})]})}));nc.displayName="Slider";const ac=({items:n,activeIndex:a=0,vertical:o=!1,onStepChange:s,className:l="",style:c,glass:d})=>{const[u,h]=r(a);i((()=>{u!==a&&h(a)}),[a]);const m=e("div",{className:`c-steps ${o?Z.CLASSES.VERTICAL:""} ${l}`,style:c,role:"navigation","aria-label":"Steps",children:n.map(((n,a)=>t("div",{className:`c-steps__item ${a>u?"":Z.CLASSES.ACTIVE} ${u>a?Z.CLASSES.COMPLETED:""}`,"aria-current":a===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:n.number}),e("div",{className:"c-steps__text",children:n.text}),n.content&&e("div",{className:"c-steps__custom-content",children:n.content})]})]},"step-"+a)))});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===d?t:{...t,...d};return e(nt,{...n,children:m})}return m};ac.displayName="Steps";const rc=s((({items:n,activeIndex:a=q.DEFAULTS.ACTIVE_INDEX,onTabChange:o,className:i="",style:s,glass:l})=>{const[c,d]=r(a),u=t("div",{className:"c-tabs js-atomix-tab "+i,style:s,children:[e("ul",{className:"c-tabs__nav",children:n.map(((t,n)=>e("li",{className:"c-tabs__nav-item",children:e("button",{className:"c-tabs__nav-btn "+(n===c?q.CLASSES.ACTIVE:""),onClick:()=>(e=>{d(e),o&&o(e)})(n),"data-tabindex":n,role:"tab","aria-selected":n===c,"aria-controls":"tab-panel-"+n,children:t.label})},"tab-nav-"+n)))}),e("div",{className:"c-tabs__panels",children:n.map(((t,n)=>e("div",{className:"c-tabs__panel "+(n===c?q.CLASSES.ACTIVE:""),"data-tabindex":n,id:"tab-panel-"+n,role:"tabpanel","aria-labelledby":"tab-nav-"+n,style:{height:n===c?"auto":"0px",opacity:n===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-"+n)))})]});if(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(nt,{...n,children:u})}return u}));rc.displayName="Tabs";const oc=({quote:n,author:a,size:r="",skeleton:s=!1,className:l="",style:c})=>{const d=o(null),u=o(null);i((()=>{if("undefined"!=typeof window&&d.current)return()=>{u.current&&u.current.destroy()}}),[r,s]);const h=["c-testimonial","sm"===r?X.CLASSES.SMALL:"","lg"===r?X.CLASSES.LARGE:"",l].filter(Boolean).join(" ");return t("div",s?{className:h,ref:d,style:c,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,style:c,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),a&&t("div",{className:"c-testimonial__author",children:[a.avatarSrc&&e("img",{src:a.avatarSrc,alt:a.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:a.name}),e("p",{className:"c-testimonial__author-role",children:a.role})]})]})]})};oc.displayName="Testimonial";const ic=({items:n=[],title:a="Todo List",onAddTodo:o,onToggleTodo:s,onDeleteTodo:l,size:c="md",placeholder:d="Add a new todo",showCompleted:u=!0,className:h="",style:m,disabled:p=!1})=>{const{inputText:g,setInputText:f,addTodo:b,generateTodoClasses:S,generateItemClasses:v}=Qs({items:n,title:a,size:c,placeholder:d,showCompleted:u,disabled:p}),[E,y]=r(n);i((()=>{y(n)}),[n]);const N=u?E:E.filter((e=>!e.completed)),A=S({size:c,className:h,disabled:p});return t("div",{className:A,style:m,children:[a&&e("h2",{className:"c-todo__title",children:a}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Gs(),text:g.trim(),completed:!1};y((e=>[...e,t])),o&&o(g),f("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:d,value:g,onChange:e=>f(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(yt,{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((n=>e("li",{className:v(n),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:n.completed,onChange:()=>(e=>{p||(y((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),s&&s(e))})(n.id),disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(y((t=>t.filter((t=>t.id!==e)))),l&&l(e))})(n.id),disabled:p,"aria-label":`Delete "${n.text}"`,children:e(yt,{name:"Trash",size:"sm"})})]})},n.id)))})]})};ic.displayName="Todo";const sc=({initialOn:t=!1,onToggleOn:n,onToggleOff:a,disabled:o=!1,className:i="",style:s,glass:l})=>{const[c,d]=r(t),u=()=>{if(o)return;const e=!c;d(e),e?n&&n():a&&a()},h=e("div",{className:`c-toggle ${c?Q.CLASSES.IS_ON:""} ${o?"is-disabled":""} ${i}`,style:s,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(l){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,cornerRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(nt,{...n,children:h})}return h};sc.displayName="Toggle";const lc=s((({content:n,children:a,position:s=K.DEFAULTS.POSITION,trigger:l=K.DEFAULTS.TRIGGER,className:c="",style:d,delay:h=K.DEFAULTS.DELAY,offset:m=K.DEFAULTS.OFFSET,glass:p})=>{const{isVisible:g,isPositioned:f,tooltipId:b,triggerRef:S,tooltipRef:v,tooltipStyle:E,arrowStyle:y,triggerProps:N,wrapperProps:A}=(({position:e="top",trigger:t="hover",offset:n=10,delay:a=200})=>{const[s,l]=r(!1),[c,d]=r(!1),[h,m]=r({}),[p,g]=r({}),f=o(null),b=o(null),S=o(null),v="tooltip-"+Math.random().toString(36).slice(2,11),E=u((()=>{f.current&&clearTimeout(f.current),a>0?f.current=setTimeout((()=>{l(!0)}),a):l(!0)}),[a]),y=u((()=>{f.current&&clearTimeout(f.current),l(!1),d(!1)}),[]),N=u((()=>{s?y():E()}),[s,E,y]),A=u((()=>{if(!b.current||!S.current)return;const t=b.current.getBoundingClientRect(),a=S.current.getBoundingClientRect(),r=b.current.parentElement;if(!r)return;const o=r.getBoundingClientRect(),i=(e=>{const t=getComputedStyle(e).getPropertyValue("--atomix-tooltip-arrow-size").trim();if(!t)return 8;const n=t.match(/([\d.]+)rem/);if(n?.[1])return 16*parseFloat(n[1]);const a=t.match(/([\d.]+)px/);return a?.[1]?parseFloat(a[1]):8})(S.current),s=((e,t,n,a,r,o)=>{const i=n.width||0,s=n.height||0,l=t.width,c=t.height,d={"--atomix-tooltip-offset":r+"px"},u={};switch(e){case"top":d.top=t.top-a.top-s-r+"px",d.left=t.left-a.left+l/2-i/2+"px",u.bottom=o/-2+"px",u.left=i/2-o/2+"px";break;case"bottom":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+l/2-i/2+"px",u.top=o/-2+"px",u.left=i/2-o/2+"px";break;case"left":d.right=a.right-t.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.right=o/-2+"px",u.top=s/2-o/2+"px";break;case"right":d.left=t.right-a.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.left=o/-2+"px",u.top=s/2-o/2+"px";break;case"top-left":d.bottom=a.bottom-t.top+r+"px",d.left=t.left-a.left+"px",u.bottom=o/-2+"px",u.left=o+"px";break;case"top-right":d.bottom=a.bottom-t.top+r+"px",d.right=a.right-t.right+"px",u.bottom=o/-2+"px",u.right=o+"px";break;case"bottom-left":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+"px",u.top=o/-2+"px",u.left=o+"px";break;case"bottom-right":d.top=t.bottom-a.top+r+"px",d.right=a.right-t.right+"px",u.top=o/-2+"px",u.right=o+"px"}return{tooltip:d,arrow:u}})(e,t,a,o,n,i);m(s.tooltip),g(s.arrow),d(!0)}),[e,n]);i((()=>{if(!s||!b.current||!S.current)return;const e=requestAnimationFrame((()=>{A()})),t=()=>{A()};return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}}),[s,A]);const x={"aria-describedby":s?v:void 0},_={};return"hover"===t?(_.onMouseEnter=E,_.onMouseLeave=y,x.onFocus=E,x.onBlur=y):"click"===t&&(x.onClick=N),{isVisible:s,isPositioned:c,tooltipId:v,triggerRef:b,tooltipRef:S,tooltipStyle:h,arrowStyle:p,showTooltip:E,hideTooltip:y,toggleTooltip:N,triggerProps:x,wrapperProps:_}})({position:s,trigger:l,offset:m,delay:h});return t("div",{className:"u-position-relative u-d-inline-block",style:d,...A,children:[e("div",{ref:S,className:`${K.SELECTORS.TRIGGER.substring(1)}${c?" "+c:""}`,...N,children:a}),g&&e("div",{ref:v,id:b,role:"tooltip",className:`c-tooltip ${K.SELECTORS.TOOLTIP.substring(1)} ${{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"}[s]||"c-tooltip--top"} ${p?"c-tooltip--glass":""}`,"data-tooltip-position":s,"data-tooltip-trigger":l,style:{...E,...f?{}:{left:"-9999px",top:"-9999px"}},children:(()=>{const a=t("div",{className:`c-tooltip__content ${K.SELECTORS.CONTENT.substring(1)} ${g&&f&&"is-active"}`,children:[e("span",{className:K.SELECTORS.ARROW.substring(1),style:y}),n]});if(p){const t={displacementScale:100,blurAmount:3},n=!0===p?t:{...t,...p};return e(nt,{...n,children:a})}return a})()})]})}));lc.displayName="Tooltip";const cc=({disabled:n=!1,size:a="md",maxSizeInMB:s=5,acceptedFileTypes:l=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:c=!1,title:d="Drag and Drop files here",supportedFilesText:h="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:m="Choose File",helperText:p=`Maximum size: ${s}MB`,icon:g=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),uploadEndpoint:f,uploadMethod:b="POST",uploadHeaders:S={},uploadData:v={},chunkSizeInMB:E=0,maxRetries:y=3,retryDelay:N=1e3,autoUpload:A=!0,onFileSelect:x,onFileUpload:_,onFileUploadComplete:T,onFileUploadError:C,onUploadCancel:L,className:I="",style:w})=>{const O=o(null),R=o(null),M=o(null),[k,D]=r("idle"),[B,P]=r(!1),[z,U]=r(null),[F,G]=r(0),[V,H]=r(null),[j,Y]=r(null),[W,K]=r(null),$=o(0),Q=()=>{O.current&&!n&&O.current.click()},q=e=>{if(!e.length)return;const t=(c?e:[e[0]]).filter((e=>void 0!==e&&Z(e)));if(t.length&&x&&x(t),t.length){const e=t[0];e&&(U(e),A&&ee(e))}},Z=e=>{const t=1024*s*1024;return e.size>t?(D("error"),Y(`File too large. Maximum size is ${s}MB.`),!1):!(l?.length&&!l.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t}))&&(D("error"),Y("File type not supported."),1))},X=u(((e,t)=>{if(0>=e||0>=t)return"";const n=t/e*100-t;if(0>=n)return"Almost done...";const a=Math.ceil(n/1e3);return 60>a?`${a} second${1!==a?"s":""} left`:`${Math.floor(a/60)}m ${a%60}s left`}),[]),J=u(((e,t,n,a,r)=>new Promise(((o,i)=>{const s=t*a,l=Math.min(s+a,e.size),c=e.slice(s,l),d=new FormData;d.append("file",c,e.name),d.append("chunkIndex",t.toString()),d.append("totalChunks",n.toString()),d.append("fileName",e.name),d.append("fileSize",e.size.toString()),Object.entries(v).forEach((([e,t])=>{d.append(e,t)}));const u=new XMLHttpRequest;r[t]=u,u.upload.addEventListener("progress",(n=>{if(n.lengthComputable&&R.current){n.loaded,n.total;const r=(t*a+n.loaded)/e.size*100;G(Math.min(r,100));const o=M.current?Date.now()-M.current:0,i=X(r,o);H(i),_&&_(e,r)}})),u.addEventListener("load",(()=>{if(u.status>=200&&300>u.status)try{const e=u.responseText?JSON.parse(u.responseText):{};o(e)}catch{o({})}else i(Error(`Upload failed with status ${u.status}: ${u.statusText}`))})),u.addEventListener("error",(()=>{i(Error("Network error occurred during upload"))})),u.addEventListener("abort",(()=>{i(Error("Upload was cancelled"))})),u.open(b,f),Object.entries(S).forEach((([e,t])=>{u.setRequestHeader(e,t)})),u.send(d)}))),[f,b,S,v,_,X]),ee=u((async(e,t=0)=>{if(f){D("loading"),G(0),Y(null),K(null),M.current=Date.now();try{const a=E>0?1024*E*1024:e.size,r=E>0?Math.ceil(e.size/a):1;if(r>1){const o=[];R.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,chunkXhrs:o};try{const t=[];for(let n=0;r>n;n++){if(!R.current)throw Error("Upload was cancelled");const i=await J(e,n,r,a,o);t.push(i)}D("success"),K("Upload successful"),G(100),H(null),M.current=null,T&&T(e,t),R.current=null}catch(n){throw o.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),n}}else await new Promise(((n,a)=>{const r=new FormData;r.append("file",e),Object.entries(v).forEach((([e,t])=>{r.append(e,t)}));const o=new XMLHttpRequest,i=new AbortController;o.upload.addEventListener("progress",(t=>{if(t.lengthComputable){const n=t.loaded/t.total*100;G(n);const a=M.current?Date.now()-M.current:0,r=X(n,a);H(r),_&&_(e,n)}})),o.addEventListener("load",(()=>{if(o.status>=200&&300>o.status){D("success"),K("Upload successful"),G(100),H(null),M.current=null;try{const t=o.responseText?JSON.parse(o.responseText):{};T&&T(e,t)}catch{T&&T(e)}R.current=null,n()}else a(Error(`Upload failed with status ${o.status}: ${o.statusText}`))})),o.addEventListener("error",(()=>{a(Error("Network error occurred during upload"))})),o.addEventListener("abort",(()=>{D("idle"),G(0),H(null),M.current=null,R.current=null,L&&L(e),a(Error("Upload was cancelled"))})),o.open(b,f),Object.entries(S).forEach((([e,t])=>{o.setRequestHeader(e,t)})),R.current={xhr:o,abortController:i,file:e,retryCount:t},o.send(r)}))}catch(n){const a=n instanceof Error?n.message:"Upload failed";y>t&&!Po(a).call(a,"cancelled")?(D("loading"),Y(`Upload failed. Retrying... (${t+1}/${y})`),setTimeout((()=>{ee(e,t+1)}),N)):(D("error"),Y(a),G(0),H(null),M.current=null,R.current=null,C&&C(e,a))}}else{D("loading"),G(0),M.current=Date.now();let n=0;const a=setInterval((()=>{if(n+=5,100>n){G(n);const t=Date.now()-(M.current||Date.now()),a=X(n,t);H(a),_&&_(e,n)}else clearInterval(a),D("success"),K("Upload successful"),M.current=null,T&&T(e),R.current=null}),500);R.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,intervalId:a}}}),[f,b,S,v,E,y,N,_,T,C,L,J,X]),te=u((()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId),R.current=null),D("idle"),U(null),G(0),H(null),Y(null),K(null),M.current=null}),[]),ae=u((()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId),R.current.abortController.abort(),L&&R.current.file&&L(R.current.file)),R.current=null,te()}),[L,te]);i((()=>()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId))}),[]);const re=["c-upload","md"!==a&&"c-upload--"+a,B&&ne.CLASSES.DRAGGING,n&&ne.CLASSES.DISABLED,"loading"===k&&"c-upload--loading","success"===k&&"c-upload--success","error"===k&&"c-upload--error",I].filter(Boolean).join(" ");return t("div",{className:re,style:w,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||($.current++,1===$.current&&P(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||($.current--,0===$.current&&P(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),n)return;if($.current=0,P(!1),!e.dataTransfer.files?.length)return;const t=Array.from(e.dataTransfer.files);q(t)},children:[t("div",{className:"c-upload__inner",role:"button",tabIndex:n?-1:0,"aria-label":`${d}. ${h}. ${p}`,"aria-disabled":n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n||(e.preventDefault(),Q())},children:[e("input",{type:"file",ref:O,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);q(t)},disabled:n,accept:l.join(","),multiple:c,"aria-hidden":"true"}),e("div",{className:"c-upload__icon",children:g}),e("h3",{className:"c-upload__title",children:d}),e("p",{className:"c-upload__text",children:h}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:Q,disabled:n,children:m}),e("p",{className:"c-upload__helper-text",children:p})]}),"idle"!==k&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":F},children:[z&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:z.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[F,"%"]}),e("div",{className:"c-upload__loader-time",children:V})]})]}),("loading"===k||"error"===k||"success"===k)&&t("div",{className:"c-upload__loader-control",children:["loading"===k&&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"})]})}),"loading"===k&&e("button",{type:"button",className:"c-upload__loader-cancel",onClick:ae,"aria-label":"Cancel upload",children:e("i",{className:"icon-lux-x"})}),("error"===k||"success"===k)&&e("button",{type:"button",className:"c-upload__loader-close",onClick:te,"aria-label":"Close upload progress",children:e("i",{className:"icon-lux-x"})})]}),j&&"error"===k&&t("div",{className:"c-upload__error-message",children:[j,R.current&&R.current.retryCount<y&&e("button",{type:"button",className:"c-upload__retry-btn",onClick:()=>{z&&ee(z,R.current?.retryCount||0)},children:"Retry"})]}),W&&"success"===k&&e("div",{className:"c-upload__success-message",children:W})]})]})};cc.displayName="Upload";const dc=l((({src:a,type:s="video",youtubeId:l,poster:c,autoplay:d=!1,loop:h=!1,muted:m=!1,controls:p=!0,preload:g="metadata",width:f,height:b,aspectRatio:S="16:9",className:v="",onPlay:O,onPause:R,onEnded:M,onTimeUpdate:k,onVolumeChange:D,onFullscreenChange:B,onError:P,showDownload:z=!1,showShare:U=!1,showSettings:F=!0,playbackRates:G=[.5,.75,1,1.25,1.5,2],subtitles:V,quality:H,ambientMode:j=!1,glass:Y=!1,glassOpacity:W=1,glassContent:K,style:$,...Q},q)=>{const Z=o(null),X=o(null),J=o(null),ee=o(null),[te,ne]=r(8),ae="youtube"===s||l||a&&Vs(a),re=l||(ae&&a?Hs(a):null),{isPlaying:oe,currentTime:ie,duration:se,volume:le,isMuted:ce,isFullscreen:de,isLoading:ue,playbackRate:he,currentQuality:me,showControls:pe,play:ge,pause:fe,togglePlay:be,seek:Se,setVolume:ve,toggleMute:Ee,toggleFullscreen:ye,togglePictureInPicture:Ne,setPlaybackRate:Ae,setQuality:xe,formatTime:_e,getProgressPercentage:Ce,getBufferedPercentage:Le}=function({videoRef:e,containerRef:t,onPlay:n,onPause:a,onEnded:s,onTimeUpdate:l,onVolumeChange:c,onFullscreenChange:d,onError:h,playbackRates:m=[.5,.75,1,1.25,1.5,2],quality:p}){const[g,f]=r(!1),[b,S]=r(0),[v,E]=r(0),[y,N]=r(1),[A,x]=r(!1),[_,T]=r(!1),[C,L]=r(!1),[I,w]=r(!1),[O,R]=r(0),[M,k]=r(1),[D,B]=r(p?.[0]||null),[P,z]=r(!0),U=o(null),F=u((()=>{U.current&&clearTimeout(U.current),z(!0);const e=setTimeout((()=>{g&&z(!1)}),3e3);U.current=e}),[g]),G=u((async()=>{if(e.current)try{await e.current.play(),f(!0),n?.()}catch(t){h?.(t),f(!1)}}),[e,n,h]),V=u((()=>{e.current&&(e.current.pause(),f(!1),a?.())}),[e,a]),H=u((()=>{g?V():G()}),[g,G,V]),j=u((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,v)))}),[e,v]),Y=u((t=>{const n=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=n,N(n),x(0===n),c?.(n))}),[e,c]),W=u((()=>{if(e.current){const t=!A;e.current.muted=t,x(t)}}),[e,A]),K=u((async()=>{if(t.current)try{_?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,_]),$=u((async()=>{if(e.current)try{C?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,C]),Q=u((t=>{e.current&&Po(m).call(m,t)&&(e.current.playbackRate=t,k(t))}),[e,m]),q=u((t=>{if(e.current&&p){const n=e.current.currentTime,a=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=n,a&&e.current.play(),B(t))}}),[e,p]),Z=u((e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),a=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${n}:${a.toString().padStart(2,"0")}`}),[]),X=u((()=>v>0?b/v*100:0),[b,v]),J=u((()=>v>0?O/v*100:0),[O,v]);i((()=>{const t=e.current;if(!t)return;const r=()=>w(!0),o=()=>w(!1),i=()=>{E(t.duration),N(t.volume),x(t.muted)},d=()=>{S(t.currentTime),l?.(t.currentTime)},u=()=>{t.buffered.length>0&&R(t.buffered.end(t.buffered.length-1))},m=()=>{f(!0),n?.()},p=()=>{f(!1),a?.()},g=()=>{f(!1),s?.()},b=()=>{N(t.volume),x(t.muted),c?.(t.volume)},v=e=>{w(!1),h?.(e)},y=()=>L(!0),A=()=>L(!1);return t.addEventListener("loadstart",r),t.addEventListener("canplay",o),t.addEventListener("loadedmetadata",i),t.addEventListener("timeupdate",d),t.addEventListener("progress",u),t.addEventListener("play",m),t.addEventListener("pause",p),t.addEventListener("ended",g),t.addEventListener("volumechange",b),t.addEventListener("error",v),t.addEventListener("enterpictureinpicture",y),t.addEventListener("leavepictureinpicture",A),()=>{t.removeEventListener("loadstart",r),t.removeEventListener("canplay",o),t.removeEventListener("loadedmetadata",i),t.removeEventListener("timeupdate",d),t.removeEventListener("progress",u),t.removeEventListener("play",m),t.removeEventListener("pause",p),t.removeEventListener("ended",g),t.removeEventListener("volumechange",b),t.removeEventListener("error",v),t.removeEventListener("enterpictureinpicture",y),t.removeEventListener("leavepictureinpicture",A)}}),[e,n,a,s,l,c,h]),i((()=>{const e=()=>{const e=!!document.fullscreenElement;T(e),d?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[d]);const ee=u((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),j(b-10);break;case"ArrowRight":e.preventDefault(),j(b+10);break;case"ArrowUp":e.preventDefault(),Y(Math.min(1,y+.1));break;case"ArrowDown":e.preventDefault(),Y(Math.max(0,y-.1));break;case"KeyM":e.preventDefault(),W();break;case"KeyF":e.preventDefault(),K()}}),[H,j,b,Y,y,W,K,t]);i((()=>(document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee))),[ee]);const te=u((()=>F()),[F]),ne=u((()=>{U.current&&clearTimeout(U.current),g&&z(!1)}),[g]);return i((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",te),e.addEventListener("mouseleave",ne),()=>{e.removeEventListener("mousemove",te),e.removeEventListener("mouseleave",ne),U.current&&clearTimeout(U.current)}}),[t,te,ne]),{isPlaying:g,currentTime:b,duration:v,volume:y,isMuted:A,isFullscreen:_,isPictureInPicture:C,isLoading:I,buffered:O,playbackRate:M,currentQuality:D,showControls:P,play:G,pause:V,togglePlay:H,seek:j,setVolume:Y,toggleMute:W,toggleFullscreen:K,togglePictureInPicture:$,setPlaybackRate:Q,setQuality:q,formatTime:Z,getProgressPercentage:X,getBufferedPercentage:J}}({videoRef:Z,containerRef:X,onPlay:O,onPause:R,onEnded:M,onTimeUpdate:k,onVolumeChange:D,onFullscreenChange:B,onError:P,playbackRates:G,quality:H});!function({videoRef:e,canvasRef:t,enabled:n,blur:a=60,opacity:r=.6,scale:s=1.2}){const l=o(60);i((()=>{if(!n||!e.current||!t.current)return;const o=e.current,i=t.current,c=i.getContext("2d");if(!c)return;const d=()=>{if(!o||!i||!c)return;const e=o.getBoundingClientRect();i.width=e.width*s,i.height=e.height*s,c.filter=`blur(${a}px)`,c.globalAlpha=r;try{c.drawImage(o,0,0,i.width,i.height)}catch(t){}n&&(l.current=requestAnimationFrame(d))},u=()=>{n&&d()},h=()=>{l.current&&cancelAnimationFrame(l.current)};return o.addEventListener("play",u),o.addEventListener("pause",h),o.addEventListener("ended",h),o.paused||u(),()=>{o.removeEventListener("play",u),o.removeEventListener("pause",h),o.removeEventListener("ended",h),l.current&&cancelAnimationFrame(l.current)}}),[n,a,r,s,e,t])}({videoRef:Z,canvasRef:J,enabled:j});const[Ie,we]=r(!1),[Oe,Re]=r("quality"),[Me,ke]=r(V?.find((e=>e.default))?.srcLang||null),[De,Be]=r({width:0,height:0}),Pe=u((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;Se(n*se)}),[se,Se]),ze=u((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;ve(n)}),[ve]),Ue=u((()=>{if(a){const e=document.createElement("a");e.href=a,e.download="video",e.click()}}),[a]),Fe=u((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Ge=u((e=>{const t=Z.current;if(t){const n=t.textTracks;for(let e=0;e<n.length;e++){const t=n[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<n.length;t++){const a=n[t];if(a&&a.language===e){a.mode="showing";break}}ke(e)}}),[Z]);i((()=>{const e=Z.current;if(e&&V){const t=()=>{setTimeout((()=>{const e=V.find((e=>e.default));e&&Ge(e.srcLang)}),100)},n=()=>{if(e.textTracks.length>0){const e=V.find((e=>e.default));e&&Ge(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",n),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",n)}}}),[V,Ge,Z]),i((()=>{const e=()=>{if(ae&&ee.current){const e=ee.current.getBoundingClientRect();Be({width:e.width,height:e.height})}else if(Z.current){const e=Z.current.getBoundingClientRect();Be({width:e.width,height:e.height})}},t=setTimeout(e,100),n=new ResizeObserver(e);if(ae&&ee.current){const a=ee.current;n.observe(a);const r=()=>e();return a.addEventListener("load",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("load",r)}}if(Z.current){const a=Z.current;n.observe(a);const r=()=>e();return a.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),n.disconnect(),window.removeEventListener("resize",e)}}),[ae,Z,ee]);const Ve=u((()=>{X.current&&X.current.focus()}),[]);i((()=>{const e=()=>{if(!X.current)return;const e=window.getComputedStyle(X.current),t=e.borderRadius||e.borderTopLeftRadius,n=parseFloat(t);isNaN(n)||ne(n)};e();let t=null;return"undefined"!=typeof ResizeObserver&&X.current&&(t=new ResizeObserver(e),t.observe(X.current)),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t&&X.current&&(t.unobserve(X.current),t.disconnect())}}),[]);const He=u((e=>{switch(e.key){case" ":case"k":e.preventDefault(),be();break;case"ArrowLeft":e.preventDefault(),Se(ie-10);break;case"ArrowRight":e.preventDefault(),Se(ie+10);break;case"ArrowUp":e.preventDefault(),ve(Math.min(1,le+.1));break;case"ArrowDown":e.preventDefault(),ve(Math.max(0,le-.1));break;case"m":e.preventDefault(),Ee();break;case"f":e.preventDefault(),ye()}}),[be,ie,Se,le,ve,Ee,ye]);return t("div",{ref:X,className:`${Te.CLASSES.BASE} ${ae?Te.CLASSES.YOUTUBE:""} ${j?Te.CLASSES.AMBIENT:""} ${Y?Te.CLASSES.GLASS:""} ${v}`,style:{width:f,height:b,aspectRatio:S?S.replace(":","/"):void 0,...$},tabIndex:0,onClick:Ve,onKeyDown:He,role:"application","aria-label":"Video player",...Q,children:[j&&e("canvas",{ref:J,className:Te.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ae&&re?e("iframe",{ref:ee,className:Te.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:d?"1":"0",loop:h?"1":"0",mute:m?"1":"0",controls:p?"1":"0",modestbranding:"1",rel:"0",...h&&{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=>{Z&&Z.current!==e&&(Z.current=e),"function"==typeof q?q(e):q&&q.current!==e&&(q.current=e)},className:Te.CLASSES.VIDEO,src:a,poster:c,autoPlay:d,loop:h,muted:m,preload:g,controls:!1,crossOrigin:"anonymous",children:V&&V.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),ue&&e("div",{className:Te.CLASSES.LOADING,children:e("div",{className:Te.CLASSES.SPINNER})}),Y&&e("div",{className:Te.CLASSES.GLASS_OVERLAY,children:e(nt,{..."boolean"==typeof Y?{}:Y,mouseContainer:X,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!K&&e("div",{style:{width:De.width>0?De.width+"px":"100%",height:De.height>0?De.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),Y&&K&&e("div",{className:Te.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:K}),p&&!ae&&t("div",{className:`${Te.CLASSES.CONTROLS} ${pe?Te.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:Y?3:"auto"},children:[e("div",{className:Te.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:Te.CLASSES.PROGRESS_BAR,onClick:Pe,children:[e("div",{className:Te.CLASSES.PROGRESS_BUFFERED,style:{width:Le()+"%"}}),e("div",{className:Te.CLASSES.PROGRESS_PLAYED,style:{width:Ce()+"%"}}),e("div",{className:Te.CLASSES.PROGRESS_THUMB,style:{left:Ce()+"%"}})]})}),t("div",{className:Te.CLASSES.CONTROLS_ROW,children:[t("div",{className:Te.CLASSES.CONTROLS_LEFT,children:[e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:be,"aria-label":oe?"Pause":"Play",children:e(oe?E:y,{size:20})}),e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:()=>Se(ie-10),"aria-label":"Skip back 10 seconds",children:e(N,{size:20})}),e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:()=>Se(ie+10),"aria-label":"Skip forward 10 seconds",children:e(A,{size:20})}),t("div",{className:Te.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:Ee,"aria-label":ce?"Unmute":"Mute",children:e(ce||0===le?x:_,{size:20})}),e("div",{className:Te.CLASSES.VOLUME_SLIDER,children:e("div",{className:Te.CLASSES.VOLUME_BAR,onClick:ze,children:e("div",{className:Te.CLASSES.VOLUME_FILL,style:{width:100*le+"%"}})})})]}),t("div",{className:Te.CLASSES.TIME_DISPLAY,children:[e("span",{children:_e(ie)}),e("span",{children:"/"}),e("span",{children:_e(se)})]})]}),t("div",{className:Te.CLASSES.CONTROLS_RIGHT,children:[F&&t("div",{className:Te.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:()=>we(!Ie),"aria-label":"Settings",children:e(T,{size:20})}),Ie&&t("div",{className:Te.CLASSES.SETTINGS_MENU,children:[t("div",{className:Te.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${Te.CLASSES.SETTINGS_TAB} ${"quality"===Oe?Te.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Re("quality"),children:"Quality"}),e("button",{className:`${Te.CLASSES.SETTINGS_TAB} ${"speed"===Oe?Te.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Re("speed"),children:"Speed"}),e("button",{className:`${Te.CLASSES.SETTINGS_TAB} ${"subtitles"===Oe?Te.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Re("subtitles"),children:"Subtitles"})]}),t("div",{className:Te.CLASSES.SETTINGS_CONTENT,children:["quality"===Oe&&H&&e("div",{className:Te.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${Te.CLASSES.SETTINGS_OPTION} ${me?.label===t.label?Te.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>xe(t),children:t.label},t.label)))}),"speed"===Oe&&e("div",{className:Te.CLASSES.SETTINGS_OPTIONS,children:G.map((e=>t("button",{className:`${Te.CLASSES.SETTINGS_OPTION} ${he===e?Te.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ae(e),children:[e,"x"]},e)))}),"subtitles"===Oe&&e("div",{className:Te.CLASSES.SETTINGS_OPTIONS,children:V&&V.length>0?t(n,{children:[e("button",{className:`${Te.CLASSES.SETTINGS_OPTION} ${null===Me?Te.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ge(null),children:"Off"}),V.map((t=>e("button",{className:`${Te.CLASSES.SETTINGS_OPTION} ${Me===t.srcLang?Te.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ge(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:Te.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),z&&e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Download video",children:e(C,{size:20})}),U&&e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:Fe,"aria-label":"Share video",children:e(L,{size:20})}),e("button",{className:Te.CLASSES.CONTROL_BUTTON,onClick:Ne,"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:Te.CLASSES.CONTROL_BUTTON,onClick:ye,"aria-label":de?"Exit fullscreen":"Enter fullscreen",children:e(de?I:w,{size:20})})]})]})]})]})}));dc.displayName="VideoPlayer";var uc=Object.freeze({__proto__:null,Accordion:at,AnimatedChart:Si,AreaChart:Ei,AtomixGlass:nt,AtomixLogo:rt,Avatar:Nt,AvatarGroup:At,Badge:_t,BarChart:Ni,Block:Lt,Breadcrumb:It,BubbleChart:Ai,Button:kt,ButtonGroup:Dt,Callout:zo,CandlestickChart:xi,Card:Uo,Chart:pi,ChartRenderer:fi,Checkbox:qi,ColorModeToggle:Fi,Countdown:Gi,DataTable:as,DatePicker:ls,DonutChart:_i,Dropdown:ts,EdgePanel:ds,ElevationCard:jo,Footer:pl,FooterLink:vl,FooterSection:Sl,FooterSocialLink:dl,Form:hs,FormGroup:ps,FunnelChart:Ti,GaugeChart:Ci,HeatmapChart:Ii,Hero:El,Icon:yt,Input:fs,LineChart:Oi,List:yl,ListGroup:Nl,MegaMenu:Ul,MegaMenuColumn:Fl,MegaMenuLink:Gl,Menu:Dl,MenuDivider:zl,MenuItem:Bl,Messages:Al,Modal:xl,MultiAxisChart:Ri,Nav:_l,NavDropdown:Vl,NavItem:Tl,Navbar:Cl,Pagination:$i,PhotoViewer:$l,PieChart:ki,Popover:ql,ProductReview:Xl,Progress:Jl,RadarChart:Di,Radio:ll,Rating:Zl,River:ec,ScatterChart:Bi,SectionIntro:tc,Select:sl,SideMenu:kl,SideMenuItem:Ol,SideMenuList:wl,Slider:nc,Spinner:Rt,Steps:ac,Tabs:rc,Testimonial:oc,Textarea:cl,Todo:ic,Toggle:sc,Tooltip:lc,TreemapChart:Pi,Upload:cc,VideoPlayer:dc,WaterfallChart:zi}),hc=Object.freeze({__proto__:null}),mc=Object.freeze({__proto__:null,ACCORDION:F,ATOMIX_GLASS:De,AVATAR:ve,AVATAR_GROUP:Ee,BADGE:G,BLOCK:Re,BREADCRUMB:j,BUTTON:P,BUTTON_GROUP:z,CALLOUT:U,CARD:fe,CHART:we,CLASS_PREFIX:D,CODE_SNIPPET:Oe,COUNTDOWN:Y,DATA_TABLE_CLASSES:le,DATA_TABLE_SELECTORS:ce,DATEPICKER:_e,DROPDOWN:Ae,EDGE_PANEL:se,FOOTER:ke,FORM:he,FORM_GROUP:me,GLASS_CONTAINER:Me,HERO:W,INPUT:pe,LIST:V,LIST_GROUP:H,MESSAGES:Ne,MODAL:ye,NAV:re,NAVBAR:ae,PAGINATION_DEFAULTS:de,PHOTOVIEWER:Ce,POPOVER:$,PROGRESS:xe,RADIO:ge,RATING:ie,RIVER:te,SECTION_INTRO:ee,SELECT:be,SIDE_MENU:oe,SIZES:k,SLIDER:Ie,SPINNER:J,STEPS:Z,TAB:q,TESTIMONIAL:X,TEXTAREA:Se,THEME_COLORS:M,THEME_NAMING:B,TODO:ue,TOGGLE:Q,TOOLTIP:K,UPLOAD:ne,VIDEO_PLAYER:Te,sliderConstants:Le});const pc={primary:"#7c3aed",secondary:"#f3f4f6",success:"#22c55e",info:"#3b82f6",warning:"#eab308",error:"#ef4444",light:"#f9fafb",dark:"#1f2937","primary-rgb":"124, 58, 237","secondary-rgb":"243, 244, 246","success-rgb":"34, 197, 94","info-rgb":"59, 130, 246","warning-rgb":"234, 179, 8","error-rgb":"239, 68, 68","light-rgb":"249, 250, 251","dark-rgb":"31, 41, 55","gray-1":"#f9fafb","gray-2":"#f3f4f6","gray-3":"#e5e7eb","gray-4":"#d1d5db","gray-5":"#9ca3af","gray-6":"#6b7280","gray-7":"#4b5563","gray-8":"#374151","gray-9":"#1f2937","gray-10":"#111827","primary-1":"#f2e8fd","primary-2":"#e4d0fa","primary-3":"#d0b2f5","primary-4":"#b88cef","primary-5":"#9c63e9","primary-6":"#7c3aed","primary-7":"#6425ca","primary-8":"#501ba6","primary-9":"#3c1583","primary-10":"#2a0e60","red-1":"#fef2f2","red-2":"#fee2e2","red-3":"#fecaca","red-4":"#fca5a5","red-5":"#f87171","red-6":"#ef4444","red-7":"#dc2626","red-8":"#b91c1c","red-9":"#991b1b","red-10":"#7f1d1d","green-1":"#f0fdf4","green-2":"#dcfce7","green-3":"#bbf7d0","green-4":"#86efac","green-5":"#4ade80","green-6":"#22c55e","green-7":"#16a34a","green-8":"#15803d","green-9":"#166534","green-10":"#14532d","blue-1":"#eff6ff","blue-2":"#dbeafe","blue-3":"#bfdbfe","blue-4":"#93c5fd","blue-5":"#60a5fa","blue-6":"#3b82f6","blue-7":"#2563eb","blue-8":"#1d4ed8","blue-9":"#1e40af","blue-10":"#1e3a8a","yellow-1":"#fefce8","yellow-2":"#fef9c3","yellow-3":"#fef08a","yellow-4":"#fde047","yellow-5":"#facc15","yellow-6":"#eab308","yellow-7":"#ca8a04","yellow-8":"#a16207","yellow-9":"#854d0e","yellow-10":"#713f12","primary-text-emphasis":"#111827","secondary-text-emphasis":"#374151","tertiary-text-emphasis":"#6b7280","disabled-text-emphasis":"#9ca3af","invert-text-emphasis":"#111827","brand-text-emphasis":"#7c3aed","error-text-emphasis":"#ef4444","success-text-emphasis":"#22c55e","warning-text-emphasis":"#eab308","info-text-emphasis":"#3b82f6","light-text-emphasis":"#f9fafb","dark-text-emphasis":"#1f2937","primary-bg-subtle":"#ffffff","secondary-bg-subtle":"#e5e7eb","tertiary-bg-subtle":"#d1d5db","invert-bg-subtle":"#111827","brand-bg-subtle":"#e4d0fa","error-bg-subtle":"#fee2e2","success-bg-subtle":"#dcfce7","warning-bg-subtle":"#fef9c3","info-bg-subtle":"#dbeafe","light-bg-subtle":"#f3f4f6","dark-bg-subtle":"#1f2937","primary-border-subtle":"#e5e7eb","secondary-border-subtle":"#111827","success-border-subtle":"#22c55e","error-border-subtle":"#ef4444","warning-border-subtle":"#eab308","info-border-subtle":"#3b82f6","brand-border-subtle":"#7c3aed","light-border-subtle":"#f9fafb","dark-border-subtle":"#1f2937","primary-hover":"#7c3aed","secondary-hover":"#e5e7eb","light-hover":"#f3f4f6","dark-hover":"#4b5563","error-hover":"#b91c1c","success-hover":"#15803d","warning-hover":"#a16207","info-hover":"#1d4ed8","primary-gradient":"linear-gradient(135deg, #e4d0fa, #d0b2f5, #b88cef)","secondary-gradient":"linear-gradient(135deg, #f3f4f6, #e5e7eb, #d1d5db)","light-gradient":"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","dark-gradient":"linear-gradient(135deg, #4b5563, #1f2937, #000000)","success-gradient":"linear-gradient(135deg, #dcfce7, #86efac, #4ade80)","info-gradient":"linear-gradient(135deg, #dbeafe, #bfdbfe, #60a5fa)","warning-gradient":"linear-gradient(135deg, #fef9c3, #fef08a, #facc15)","error-gradient":"linear-gradient(135deg, #fef2f2, #fee2e2, #fecaca)",gradient:"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","font-sans-serif":'"Roboto", sans-serif',"font-monospace":'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"body-font-family":'"Roboto", sans-serif',"body-font-size":"1rem","body-font-weight":"400","body-line-height":"1.2","body-color":"#111827","body-bg":"#ffffff","heading-color":"#111827","font-size-xl":"1.5rem","font-size-2xl":"2rem","display-1":"4rem","font-weight-light":"300","font-weight-normal":"400","font-weight-medium":"500","font-weight-semibold":"600","font-weight-bold":"700","font-weight-heavy":"800","font-weight-black":"900","line-height-base":"1.2","line-height-sm":"1.43","line-height-lg":"1.56","letter-spacing-h1":"-1px","letter-spacing-h2":"-1px","letter-spacing-h3":"-1px","letter-spacing-h4":"-0.5px","letter-spacing-h5":"-0.5px","letter-spacing-h6":"-0.5px","link-color":"#7c3aed","link-color-rgb":"124, 58, 237","link-decoration":"none","link-hover-color":"rgb(85.3674418605, 18.2930232558, 200.2069767442)","link-hover-color-rgb":"85.3674418605, 18.2930232558, 200.2069767442","highlight-bg":"#fef08a","code-color":"#f87171","border-width":"1px","border-style":"solid","border-color":"#e5e7eb","border-color-translucent":"rgba(229, 231, 235, 0.175)","border-radius":"0.5rem","border-radius-sm":"0.25rem","border-radius-lg":"0.625rem","border-radius-xl":"0.75rem","border-radius-xxl":"1rem","border-radius-2xl":"var(--atomix-border-radius-xxl)","border-radius-3xl":"1.5rem","border-radius-4xl":"2rem","border-radius-pill":"50rem","box-shadow":"0 8px 16px rgba(0, 0, 0, 0.15)","box-shadow-xs":"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)","box-shadow-sm":"0 2px 4px rgba(0, 0, 0, 0.075)","box-shadow-lg":"0 16px 48px rgba(0, 0, 0, 0.175)","box-shadow-xl":"0px 16px 64px -8px rgba(45, 54, 67, 0.14)","box-shadow-inset":"inset 0 1px 2px rgba(0, 0, 0, 0.075)","focus-border-color":"#9c63e9","focus-ring-width":"3px","focus-ring-offset":"2px","focus-ring-opacity":"0.25","form-valid-color":"#22c55e","form-valid-border-color":"#22c55e","form-invalid-color":"#ef4444","form-invalid-border-color":"#ef4444","spacing-0":"0rem","spacing-1":"0.25rem","spacing-px-6":"0.375rem","spacing-2":"0.5rem","spacing-px-10":"0.625rem","spacing-3":"0.75rem","spacing-px-14":"0.875rem","spacing-4":"1rem","spacing-5":"1.25rem","spacing-px-22":"1.375rem","spacing-6":"1.5rem","spacing-7":"1.75rem","spacing-px-30":"1.875rem","spacing-8":"2rem","spacing-9":"2.25rem","spacing-10":"2.5rem","spacing-11":"2.75rem","spacing-12":"3rem","spacing-14":"3.5rem","spacing-16":"4rem","spacing-20":"5rem","spacing-24":"6rem","spacing-28":"7rem","spacing-32":"8rem","spacing-36":"9rem","spacing-40":"10rem","spacing-44":"11rem","spacing-48":"12rem","spacing-52":"13rem","spacing-56":"14rem","spacing-60":"15rem","spacing-64":"16rem","spacing-72":"18rem","spacing-80":"20rem","spacing-90":"22.5rem","spacing-200":"50rem","transition-duration-fast":"0.15s","transition-duration-base":"0.3s","transition-duration-slow":"0.5s","transition-duration-slower":"0.7s","easing-base":"cubic-bezier(0.23, 1, 0.32, 1)","easing-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","easing-ease-out":"cubic-bezier(0, 0, 0.2, 1)","easing-ease-in":"cubic-bezier(0.4, 0, 1, 1)","easing-ease-linear":"linear","transition-fast":"all 0.15s cubic-bezier(0.23, 1, 0.32, 1)","transition-base":"all 0.3s cubic-bezier(0.23, 1, 0.32, 1)","transition-slow":"all 0.5s cubic-bezier(0.23, 1, 0.32, 1)","z-n1":"-1","z-0":"0","z-1":"1","z-2":"2","z-3":"3","z-4":"4","z-5":"5","z-dropdown":"1000","z-sticky":"1020","z-fixed":"1030","z-modal":"1040","z-popover":"1050","z-tooltip":"1060","z-drawer":"1070","breakpoint-xs":"0","breakpoint-sm":"576px","breakpoint-md":"768px","breakpoint-lg":"992px","breakpoint-xl":"1200px","breakpoint-xxl":"1440px"};function gc(e){return{...pc,...e}}function fc(e,t={}){const{selector:n=":root",prefix:a="atomix"}=t;return`${n} {\n${Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>` --${a}-${e}: ${t};`)).join("\n")}\n}`}function bc(e,t,n="atomix"){return fc(e,{selector:t,prefix:n})}var Sc,vc;!function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(Sc||(Sc={}));class Ec extends Error{constructor(e,t=Sc.UNKNOWN_ERROR,n){super(e),this.name="ThemeError",this.code=t,this.context=n,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,Ec)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(vc||(vc={}));class yc{constructor(e={}){this.config={level:e.level??("undefined"!=typeof process&&"production"===process.env?.NODE_ENV?vc.WARN:vc.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,n){if(this.config.level<vc.ERROR)return;const a=t instanceof Ec?t:new Ec(e,Sc.UNKNOWN_ERROR,n);this.config.enableConsole,this.config.onError?.(a,n)}warn(e,t){this.config.level<vc.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<vc.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<vc.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let Nc=null;function Ac(){return Nc||(Nc=new yc),Nc}function xc(e,t){if(t?.prefix){const e=/^[a-z][a-z0-9-]*$/;if(!e.test(t.prefix))throw new Ec(`Invalid CSS variable prefix: "${t.prefix}". Prefix must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens (e.g., "atomix", "my-app").`,Sc.THEME_VALIDATION_FAILED,{prefix:t.prefix,pattern:e.toString()})}if(t?.selector&&("string"!=typeof t.selector||0===t.selector.trim().length))throw new Ec(`Invalid CSS selector: "${t.selector}". Selector must be a non-empty string (e.g., ":root", ".my-theme").`,Sc.THEME_VALIDATION_FAILED,{selector:t.selector});let n;if(e){if("object"!=typeof e||null===e||Array.isArray(e))throw new Ec(`Invalid tokens input. Expected an object with DesignTokens, but received: ${typeof e}.`,Sc.THEME_VALIDATION_FAILED,{inputType:typeof e});n=e}else{if("undefined"!=typeof window)throw new Ec("No input provided and config loading is not available in browser environment. Please provide tokens explicitly or use Node.js/SSR environment.",Sc.CONFIG_LOAD_FAILED,{environment:"browser"});let e,a;try{const r=require("../config/configLoader"),i=require("../../config/loader");if(e=r.loadThemeFromConfigSync,a=i.loadAtomixConfig,n=e(),!t?.prefix)try{const e=a({configPath:"atomix.config.ts",required:!1});t={...t,prefix:e?.prefix||"atomix"}}catch(o){t={...t,prefix:"atomix"}}}catch(o){throw new Ec("No input provided and config loading is not available in this environment. Please provide tokens explicitly.",Sc.CONFIG_LOAD_FAILED,{error:o instanceof Error?o.message:o+""})}}const a=gc(n),r=t?.prefix??"atomix";return fc(a,{...t,prefix:r})}function _c(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function Tc(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...n]=e,a={...t};for(const r of n)if(r)for(const e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const t=a[e],n=r[e];_c(t)&&_c(n)?a[e]=Tc(t,n):a[e]=n}return a}function Cc(...e){return Tc({},...e)}function Lc(e,t){return Cc(e,t)}function Ic(){return{}}function wc(e,t,n){e[t]=n}function Oc(e,t){const n=t in e;return delete e[t],n}function Rc(e,t){return t in e}function Mc(e,t){return e[t]}function kc(e){return Object.values(e)}function Dc(e){return Object.keys(e)}function Bc(e){Object.keys(e).forEach((t=>delete e[t]))}function Pc(e){return Object.keys(e).length}var zc=Object.freeze({__proto__:null,clearThemes:Bc,createTheme:xc,createThemeRegistry:Ic,deepMerge:Tc,extendTheme:Lc,getAllThemes:kc,getTheme:Mc,getThemeCount:Pc,getThemeIds:Dc,hasTheme:Rc,mergeTheme:Cc,registerTheme:wc,unregisterTheme:Oc});function Uc(){return"undefined"!=typeof document}function Fc(e,t="atomix-theme"){if(!Uc())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme","true"),document.head.appendChild(n)),n.textContent=e}function Gc(e="atomix-theme"){if(!Uc())return;const t=document.getElementById(e);t&&t.remove()}function Vc(e="atomix-theme"){return!!Uc()&&null!==document.getElementById(e)}"undefined"!=typeof process&&process.env;const Hc=()=>"undefined"!=typeof window&&"undefined"!=typeof document,jc=()=>!Hc(),Yc=e=>e.replace(/[<>"']/g,"").replace(/\.\./g,"").replace(/\/+/g,"/").replace(/^\/+|\/+$/g,""),Wc=(e,t="/themes",n=!1,a=null)=>{if(!$c(e))throw new Ec(`Invalid theme name: "${e}". Theme names must be lowercase alphanumeric with hyphens (e.g., "my-theme").`,Sc.INVALID_THEME_NAME,{themeName:e,pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/});const r=`${e}${n?".min.css":".css"}`;return a?`${Yc(a)}/${r}`:`${Yc(t)}/${r.replace(/^\//,"")}`},Kc=(e,t)=>{jc()||(document.body&&document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))},$c=e=>!(!e||"string"!=typeof e)&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e),Qc=()=>({getItem:e=>{if(jc())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!jc())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!jc())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(jc())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}});var qc=Object.freeze({__proto__:null,applyThemeAttributes:Kc,buildThemePath:Wc,createLocalStorageAdapter:Qc,isBrowser:Hc,isServer:jc,isValidThemeName:$c,loadThemeCSS:(e,t)=>jc()?Promise.resolve():new Promise(((n,a)=>{if(document.getElementById(t))return void n();const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=e,r.setAttribute("data-atomix-theme","true"),r.onload=()=>{n()},r.onerror=()=>{r.remove(),a(new Ec(`Failed to load theme CSS from: ${e}. Please check that the file exists and is accessible.`,Sc.THEME_LOAD_FAILED,{fullPath:e,linkId:t}))},document.head.appendChild(r)}))});function Zc(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function Xc(e,t,n){const a=e=>Math.round(Math.max(0,Math.min(255,e))).toString(16).padStart(2,"0");return`#${a(e??0)}${a(t??0)}${a(n??0)}`}function Jc(e){const t=Zc(e);if(!t)return 0;const{r:n,g:a,b:r}=t,[o,i,s]=[n??0,a??0,r??0].map((e=>{const t=e/255;return t>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92}));return.2126*(o??0)+.7152*(i??0)+.0722*(s??0)}function ed(e,t){const n=Jc(e),a=Jc(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function td(e,t=3){const n=ed("#FFFFFF",e),a=ed("#000000",e);return t>n?t>a&&n>a?"#FFFFFF":"#000000":"#FFFFFF"}function nd(e,t=.2){const n=Zc(e);if(!n)return e;const{r:a,g:r,b:o}=n,i=e=>Math.min(255,Math.round(e+(255-e)*t));return Xc(i(a),i(r),i(o))}function ad(e,t=.2){const n=Zc(e);if(!n)return e;const{r:a,g:r,b:o}=n,i=e=>Math.max(0,Math.round(e*(1-t)));return Xc(i(a),i(r),i(o))}function rd(e,t){const n=Zc(e);if(!n)return e;const{r:a,g:r,b:o}=n;return`rgba(${a}, ${r}, ${o}, ${Math.max(0,Math.min(1,t))})`}function od(e,t,n){const a={};if(!Zc(e))return a;for(let r=1;10>=r;r++){let o;o=6>r?nd(e,(6-r)/5*.8):6===r?e:ad(e,(r-6)/4*.6),a[`${t}-${n}-${r}`]=o}return a}function id(e,t={}){const{selector:n=":root",inject:a=!1,styleId:r="atomix-theme-variables",prefix:o="atomix"}=t,i={};if(Object.assign(i,function(e,t){const n={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){n[`${t}-${a}`]=r.main;const e=Zc(r.main);if(e&&(n[`${t}-${a}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),"light"!==a&&"dark"!==a){const e=od(r.main,t,a);Object.assign(n,e)}else n[`${t}-${a}-main`]=r.main,r.light&&(n[`${t}-${a}-light`]=r.light),r.dark&&(n[`${t}-${a}-dark`]=r.dark);r.dark&&(n[`${t}-${a}-hover`]=r.dark),n[`${t}-${a}-text-emphasis`]=function(e,t=.15){return Jc(e)>.5?ad(e,t):nd(e,t)}(r.main,.15),n[`${t}-${a}-bg-subtle`]=rd(r.main,.1),n[`${t}-${a}-border-subtle`]=rd(r.main,.2)}})),e.text?.primary){const a=od(e.text.primary,t,"gray");Object.assign(n,a)}if(e.error&&"object"==typeof e.error&&e.error.main){const a=od(e.error.main,t,"red");Object.assign(n,a)}if(e.success&&"object"==typeof e.success&&e.success.main){const a=od(e.success.main,t,"green");Object.assign(n,a)}if(e.info&&"object"==typeof e.info&&e.info.main){const a=od(e.info.main,t,"blue");Object.assign(n,a)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const a=od(e.warning.main,t,"yellow");Object.assign(n,a)}if(e.background&&(n[t+"-body-bg"]=e.background.default,e.background.default&&(n[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(n[t+"-secondary-bg-subtle"]=e.background.paper,n[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(n[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(n[t+"-brand-bg-subtle"]=rd(e.primary.main,.1))),e.text&&(n[t+"-body-color"]=e.text.primary,e.text.primary&&(n[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(n[t+"-secondary-text-emphasis"]=e.text.secondary,n[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(n[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(n[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(n[t+"-brand-text-emphasis"]=e.primary.main,n[t+"-brand-border-subtle"]=rd(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(n[t+"-light-border-subtle"]=rd(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(n[t+"-dark-border-subtle"]=rd(e.dark.main,.2)),e.text&&(n[t+"-heading-color"]=e.text.primary),e.primary){n[t+"-link-color"]=e.primary.main;const a=Zc(e.primary.main);a&&(n[t+"-link-color-rgb"]=`${a.r}, ${a.g}, ${a.b}`),n[t+"-link-hover-color"]=e.primary.dark||ad(e.primary.main,.1);const r=Zc(e.primary.dark||ad(e.primary.main,.1));r&&(n[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),n[t+"-link-decoration"]="none"}if(e.text&&(n[t+"-border-color"]=rd(e.text.primary,.1),n[t+"-border-color-translucent"]=rd(e.text.primary,.15)),e.primary&&(n[t+"-focus-border-color"]=e.primary.main),e.success&&(n[t+"-form-valid-color"]=e.success.main,n[t+"-form-valid-border-color"]=rd(e.success.main,.3)),e.error&&(n[t+"-form-invalid-color"]=e.error.main,n[t+"-form-invalid-border-color"]=rd(e.error.main,.3)),e.warning?n[t+"-highlight-bg"]=rd(e.warning.main,.2):n[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(n[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){const e=nd(r.main,.6),o=nd(r.main,.3),i=r.main;n[`${t}-${a}-gradient`]=`linear-gradient(135deg, ${e}, ${o}, ${i})`}})),e.text?.primary){const a=nd(e.text.primary,.8),r=nd(e.text.primary,.6),o=nd(e.text.primary,.4);n[t+"-gradient"]=`linear-gradient(135deg, ${a}, ${r}, ${o})`}return n}(e.palette,o)),Object.assign(i,function(e,t){const n={};n[t+"-body-font-family"]=e.fontFamily,n[t+"-font-sans-serif"]=e.fontFamily,n[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const a=e.fontSize||16;n[t+"-root-font-size"]=a+"px";const r=e.fontSize;n[t+"-body-font-size"]=r+"px",n[t+"-body-font-weight"]=e.fontWeightRegular+"",n[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",n[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",n[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",n[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",n[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(n[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(n[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const o="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");n[t+"-body-line-height"]=o+"",n[t+"-line-height-base"]=o+"",n[t+"-line-height-sm"]="1.43",n[t+"-line-height-lg"]="1.56";const i=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,u=2*r;if(n[t+"-font-size-xs"]=i+"px",n[t+"-font-size-sm"]=s+"px",n[t+"-font-size-md"]=l+"px",n[t+"-font-size-lg"]=c+"px",n[t+"-font-size-xl"]=d+"px",n[t+"-font-size-2xl"]=u+"px","display1"in e){const a=e.display1;n[t+"-display-1"]="string"==typeof a?a:a+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((a=>{const r=e[a];r?.letterSpacing&&(n[`${t}-letter-spacing-${a}`]=r.letterSpacing+"")})),n}(e.typography,o)),Object.assign(i,function(e,t){const n={};return e.md&&(n[t+"-box-shadow"]=e.md),e.xs&&(n[t+"-box-shadow-xs"]=e.xs),e.sm&&(n[t+"-box-shadow-sm"]=e.sm),e.lg&&(n[t+"-box-shadow-lg"]=e.lg),e.xl&&(n[t+"-box-shadow-xl"]=e.xl),e.inset?n[t+"-box-shadow-inset"]=e.inset:e.sm&&(n[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),n}(e.shadows,o)),Object.assign(i,function(e,t){const n={},a=e.duration.shortest||150,r=e.duration.standard||300,o=e.duration.complex||500,i=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return n[t+"-transition-duration-fast"]=a/1e3+"s",n[t+"-transition-duration-base"]=r/1e3+"s",n[t+"-transition-duration-slow"]=o/1e3+"s",n[t+"-transition-duration-slower"]="0.7s",n[t+"-easing-base"]=i,n[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",n[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",n[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",n[t+"-easing-ease-linear"]="linear",n[t+"-transition-fast"]=`all ${a/1e3}s ${i}`,n[t+"-transition-base"]=`all ${r/1e3}s ${i}`,n[t+"-transition-slow"]=`all ${o/1e3}s ${i}`,n}(e.transitions,o)),Object.assign(i,function(e,t){const n={};return n[t+"-z-n1"]="-1",n[t+"-z-0"]="0",n[t+"-z-1"]="1",n[t+"-z-2"]="2",n[t+"-z-3"]="3",n[t+"-z-4"]="4",n[t+"-z-5"]="5",e.mobileStepper&&(n[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(n[t+"-z-sticky"]=e.appBar+""),n[t+"-z-fixed"]="1030",e.modal&&(n[t+"-z-modal"]=e.modal+""),e.speedDial&&(n[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(n[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(n[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(n[t+"-z-snackbar"]=e.snackbar+""),n}(e.zIndex,o)),Object.assign(i,function(e,t){const n={};return Object.entries(e.values).forEach((([a,r])=>{n[`${t}-breakpoint-${a}`]=`${r}${e.unit}`})),n}(e.breakpoints,o)),Object.assign(i,function(e,t){const n={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([a,r])=>{const o=e(r),i=o.match(/([\d.]+)px/);if(i&&i[1]){const e=parseFloat(i[1])/16;n[`${t}-spacing-${a}`]=e+"rem"}else n[`${t}-spacing-${a}`]=o})),n}(e.spacing,o)),Object.assign(i,function(e,t){const n={};return n[t+"-border-width"]="1px",n[t+"-border-style"]="solid",!n[t+"-border-color"]&&e.text&&(n[t+"-border-color"]=rd(e.text.primary,.1)),n}(e.palette,o)),Object.assign(i,function(e,t){const n={},a=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return n[t+"-border-radius"]=a(e.base,"0.5rem"),n[t+"-border-radius-sm"]=a(e.sm,"0.25rem"),n[t+"-border-radius-lg"]=a(e.lg,"0.625rem"),n[t+"-border-radius-xl"]=a(e.xl,"0.75rem"),n[t+"-border-radius-xxl"]=a(e.xxl,"1rem"),n[t+"-border-radius-3xl"]=a(e["3xl"],"1.5rem"),n[t+"-border-radius-4xl"]=a(e["4xl"],"2rem"),n[t+"-border-radius-pill"]=a(e.pill,"50rem"),n}(e.borderRadius,o)),Object.assign(i,function(e,t){const n={};return n[t+"-focus-ring-width"]="3px",n[t+"-focus-ring-offset"]="2px",n[t+"-focus-ring-opacity"]="0.25",n}(e.palette,o)),e.custom&&Object.keys(e.custom).length>0){const t=function(e,t="",n={}){const a=[{obj:e,prefix:t}];for(;a.length>0;){const{obj:e,prefix:t}=a.pop();for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=e[r],i=t?`${t}-${r}`:r;if(o&&"object"==typeof o&&!Array.isArray(o)){if("function"==typeof o)continue;a.push({obj:o,prefix:i})}else"string"!=typeof o&&"number"!=typeof o||(n[i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=o+"")}}return n}(e.custom,o+"-custom");Object.assign(i,t)}const s=`${n} {\n${Object.entries(i).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return a&&Hc()&&function(e,t="atomix-theme-variables"){if(!Hc())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(n)),n.textContent=e}(s,r),s}function sd(e,t,n){let a=e;return t&&(a+="__"+t),n&&Object.entries(n).forEach((([e,t])=>{t&&(a+="--"+e,"string"==typeof t&&t!==e&&(a+="-"+t))})),a}function ld(e,t={}){const{prefix:n="atomix",component:a,variant:r,state:o}=t,i=[n];return a&&i.push(a),r&&i.push(r),o&&i.push(o),i.push(e),"--"+i.join("-")}function cd(e){const t={};for(const[n,a]of Object.entries(e))t[n]="object"==typeof a&&null!==a?cd(a):a;return t}function dd(e){return e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))}function ud(e,t="atomix"){return`--${t}-${e.split(".").map((e=>dd(e))).join("-")}`}function hd(e,t,n,a){const r=["atomix",e];return n&&r.push(n),a&&r.push(a),r.push(t),`var(${"--"+r.join("-")}, var(${"--atomix-"+t}, initial))`}function md(e,t,n,a){const r={};if(!t)return r;const o=["atomix",e];n&&o.push(n),a&&o.push(a);const i=o.join("-");return t.primary&&(r[`--${i}-color`]=t.primary),t["primary-9"]&&(r[`--${i}-color-hover`]=t["primary-9"]),t["body-color"]&&(r[`--${i}-color-disabled`]=t["body-color"]),t["body-font-family"]&&(r[`--${i}-font-family`]=t["body-font-family"]),t["body-font-size"]&&(r[`--${i}-font-size`]=t["body-font-size"]),t["spacing-1"]&&(r[`--${i}-spacing-sm`]=t["spacing-1"]),t["spacing-2"]&&(r[`--${i}-spacing-md`]=t["spacing-2"]),t["spacing-4"]&&(r[`--${i}-spacing-lg`]=t["spacing-4"]),r}function pd(e,t={},n,a,r){return r?{...md(e,r,n,a),...t}:t}function gd(e,t,n,a){return a=>hd(e,a,t,n)}function fd(e){if("undefined"!=typeof window)throw Error("loadThemeFromConfigSync: Not available in browser environment. Config loading requires Node.js/SSR environment.");let t;try{t=R({configPath:e?.configPath||"atomix.config.ts",required:!1!==e?.required})}catch(a){if(!1!==e?.required)throw Error("Config loader module not available");return gc({})}if(!t?.theme)return gc({});const n=t.theme;return gc(!n||"object"!=typeof n||"extend"in n||"tokens"in n||"themes"in n?{}:n)}async function bd(e){if("undefined"!=typeof window)throw Error("loadThemeFromConfig: Not available in browser environment. Config loading requires Node.js/SSR environment.");let t;try{t=R({configPath:e?.configPath||"atomix.config.ts",required:!1!==e?.required})}catch(a){if(!1!==e?.required)throw Error("Config loader module not available");return gc({})}if(!t?.theme)return gc({});const n=t.theme;return gc(!n||"object"!=typeof n||"extend"in n||"tokens"in n||"themes"in n?{}:n)}const Sd=g(null);Sd.displayName="ThemeContext";const vd=({children:t,defaultTheme:n,themes:a={},basePath:s="/themes",cdnPath:l=null,useMinified:c=!1,storageKey:h="atomix-theme",dataAttribute:m="data-theme",enablePersistence:p=!0,onThemeChange:g,onError:f})=>{const b=o(g),S=o(f);i((()=>{b.current=g,S.current=f}),[g,f]);const v=u((e=>{b.current?.(e)}),[]),E=u(((e,t)=>{S.current?.(e,t)}),[]),y=d((()=>Qc()),[]),N=d((()=>{if(p&&y.isAvailable()){const e=y.getItem(h);if(e)return e}if(null!=n)return n;if("undefined"==typeof window)try{const{loadThemeFromConfigSync:e}=require("../config/configLoader"),t=e();if(t&&Object.keys(t).length>0)return"config-theme"}catch(I){}return"default"}),[n,p,h]),[A,x]=r((()=>"string"==typeof N?N:"tokens-theme")),[_,T]=r((()=>n&&"string"!=typeof n?gc(n):null)),[C,L]=r(!1),[I,w]=r(null),O=o(new Set),R=o({}),M=o(null);i((()=>{n&&"string"!=typeof n&&_&&!jc()&&Fc(xc(n),"theme-tokens-theme")}),[n,_]),i((()=>{jc()||Kc(A+"",m)}),[A,m]),i((()=>{p&&y.isAvailable()&&y.setItem(h,A+"")}),[A,h,p,y]),i((()=>()=>{M.current&&(M.current.abort(),M.current=null),Object.entries(R.current).forEach((([e,t])=>{})),R.current={}}),[]);const k=u((async(e,t)=>{M.current&&M.current.abort();const n=new AbortController;M.current=n,L(!0),w(null);try{let t;if("string"!=typeof e){if(n.signal.aborted)return;const{createTheme:t}=await Promise.resolve().then((function(){return zc})),a=t(e),r="tokens-theme";if(n.signal.aborted)return;Gc("theme-"+A),Fc(a,"theme-"+r);const o=gc(e);if(n.signal.aborted)return;return T(o),x(r),v(o),void L(!1)}if(t=e,"string"==typeof e&&a[e]){if(R.current[e])try{if(await R.current[e],n.signal.aborted)return;return x(e),T(null),v(e),void L(!1)}catch{}const t=new Promise((async(t,r)=>{try{if(n.signal.aborted)return void t();if(!a[e])throw Error("Theme metadata not found for theme: "+e);{const a=Wc(e,s,c,l);if(n.signal.aborted)return void t();const{loadThemeCSS:r}=await Promise.resolve().then((function(){return qc}));if(await r(a,"theme-"+e),n.signal.aborted)return void t();Gc("theme-"+A),O.current.add(e),x(e),T(null),v(e),t()}}catch(o){if(n.signal.aborted)return void t();const a=o instanceof Error?o:Error(o+"");w(a),E(a,e+""),r(a)}}));R.current[e]=t;try{await t}catch{}setTimeout((()=>{R.current[e]===t&&delete R.current[e]}),1e3)}else{if(n.signal.aborted)return;x(t),T(null),v(t)}}catch(r){if(n.signal.aborted)return;const t=r instanceof Error?r:Error(r+"");w(t),E(t,e+"")}finally{n.signal.aborted||L(!1)}}),[a,A,v,E,s,c,l]),D=u((e=>O.current.has(e)),[]),B=u((async e=>{if(a[e]&&!D(e)){L(!0);try{const t=Wc(e,s,c,l);await fetch(t),O.current.add(e)}catch(t){const n=t instanceof Error?t:Error(t+"");w(n),E(n,e)}finally{L(!1)}}}),[a,D,E,s,c,l]),P=d((()=>({})),[]),z=d((()=>Object.entries(a).map((([e,t])=>({...t,name:e})))),[a]),U=d((()=>({theme:A,activeTokens:_,setTheme:k,availableThemes:z,isLoading:C,error:I,isThemeLoaded:D,preloadTheme:B,themeManager:P})),[A,_,k,z,C,I,D,B,P]);return e(Sd.Provider,{value:U,children:t})};function Ed(){const e=f(Sd);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTokens:e.activeTokens,setTheme:e.setTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}}function yd(){const{theme:e,activeTokens:t}=Ed(),n=u(((e,t)=>{if("undefined"==typeof window)return t||"";const n="--atomix-"+e;return getComputedStyle(document.documentElement).getPropertyValue(n).trim()||t||""}),[]);return{theme:e,activeTokens:t,getToken:n,colors:{primary:n("primary","#3b82f6"),secondary:n("secondary","#10b981"),error:n("error","#ef4444"),success:n("success","#22c55e"),warning:n("warning","#eab308"),info:n("info","#3b82f6"),light:n("light","#f9fafb"),dark:n("dark","#111827")},spacing:{1:n("spacing-1","0.25rem"),2:n("spacing-2","0.5rem"),3:n("spacing-3","0.75rem"),4:n("spacing-4","1rem"),5:n("spacing-5","1.25rem"),6:n("spacing-6","1.5rem"),8:n("spacing-8","2rem"),10:n("spacing-10","2.5rem"),12:n("spacing-12","3rem"),16:n("spacing-16","4rem"),20:n("spacing-20","5rem")},borderRadius:{sm:n("border-radius-sm","0.25rem"),md:n("border-radius-md","0.5rem"),lg:n("border-radius-lg","0.75rem"),xl:n("border-radius-xl","1rem"),full:n("border-radius-full","9999px")},typography:{fontFamily:{sans:n("font-sans-serif","Inter, system-ui, sans-serif"),serif:n("font-serif","Georgia, serif"),mono:n("font-monospace","Fira Code, monospace")},fontSize:{xs:n("font-size-xs","0.75rem"),sm:n("font-size-sm","0.875rem"),md:n("font-size-md","1rem"),lg:n("font-size-lg","1.125rem"),xl:n("font-size-xl","1.25rem"),"2xl":n("font-size-2xl","1.5rem"),"3xl":n("font-size-3xl","1.875rem"),"4xl":n("font-size-4xl","2.25rem")},fontWeight:{light:n("font-weight-light","300"),normal:n("font-weight-normal","400"),medium:n("font-weight-medium","500"),semibold:n("font-weight-semibold","600"),bold:n("font-weight-bold","700")}},shadows:{sm:n("box-shadow-sm","0 1px 2px 0 rgba(0, 0, 0, 0.05)"),md:n("box-shadow-md","0 4px 6px -1px rgba(0, 0, 0, 0.1)"),lg:n("box-shadow-lg","0 10px 15px -3px rgba(0, 0, 0, 0.1)"),xl:n("box-shadow-xl","0 20px 25px -5px rgba(0, 0, 0, 0.1)"),inset:n("box-shadow-inset","inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)")},transitions:{fast:n("transition-fast","150ms"),base:n("transition-base","200ms"),slow:n("transition-slow","300ms")}}}const Nd=({error:n,errorInfo:a})=>{const r=n instanceof Ec,o=r?n.code:Sc.UNKNOWN_ERROR,i=r?n.context:void 0;return t("div",{style:{padding:"2rem",margin:"1rem",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa",color:"#333"},role:"alert",children:[e("h2",{style:{marginTop:0,color:"#d32f2f"},children:"Theme Error"}),t("p",{children:[e("strong",{children:"Error:"})," ",n.message]}),r&&t("p",{children:[e("strong",{children:"Error Code:"})," ",o]}),i&&Object.keys(i).length>0&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Error Context"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto"},children:JSON.stringify(i,null,2)})]}),("undefined"==typeof process||"development"===process.env?.NODE_ENV)&&a&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Stack Trace (Development Only)"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto",fontSize:"0.875rem"},children:a.componentStack})]}),e("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Reload Page"})]})};class Ad extends S{constructor(e){super(e),this.logger=Ac(),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const n=e instanceof Ec?e:new Ec(e.message,Sc.UNKNOWN_ERROR,{componentStack:t.componentStack});if(this.logger.error("Theme error boundary caught an error",n,{componentStack:t.componentStack,errorBoundary:"ThemeErrorBoundary"}),this.setState({error:e,errorInfo:t}),this.props.onError)try{this.props.onError(e,t)}catch(a){this.logger.error("Error in onError callback",a instanceof Error?a:Error(a+""),{originalError:e.message})}}componentDidUpdate(e){this.props.resetOnPropsChange&&this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError&&this.state.error&&this.state.errorInfo?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):e(Nd,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}class xd{constructor(e=document.documentElement){this.styleId="atomix-theme-applicator",this.root=e}applyTheme(e){this.clearAppliedVars(),Fc(xc(e,{selector:":root",prefix:"atomix"}),this.styleId)}applyGlobalCSSVars(e){Object.entries(e).forEach((([e,t])=>{this.root.style.setProperty(e,t+"")}))}clearAppliedVars(){Gc(this.styleId)}removeTheme(){this.clearAppliedVars(),Gc(this.styleId)}updateCSSVars(e){this.applyGlobalCSSVars(e)}}let _d=null;function Td(){return _d||(_d=new xd),_d}function Cd(e){Td().applyTheme(e)}const Ld={mobile:{width:375,height:667,label:"Mobile (375px)"},tablet:{width:768,height:1024,label:"Tablet (768px)"},desktop:{width:1280,height:720,label:"Desktop (1280px)"},custom:{width:1280,height:720,label:"Custom"}},Id=({theme:a,showDetails:o=!0,showPalette:s=!0,showTypography:l=!0,showSpacing:c=!1,children:u,className:h,style:m})=>{const[p,g]=r(""),[f,b]=r(!1),[S,v]=r("desktop"),[E,y]=r(1280),[N,A]=r(720),[x,_]=r({}),T=d((()=>"custom"===S?{width:E,height:N}:Ld[S]),[S,E,N]),C=d((()=>f?{...a,palette:{...a.palette,background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.8)",disabled:"rgba(255, 255, 255, 0.5)"}}}:a),[a,f]);i((()=>{const e=id(C,{selector:":root",prefix:"atomix-preview"});g(e)}),[C]);const L=e=>{(e=>{_((t=>({...t,[e]:!t[e]})))})(e),setTimeout((()=>{_((t=>{const n={...t};return delete n[e],n}))}),200)};return t("div",{className:"atomix-theme-preview "+(h||""),style:m,children:[t("div",{className:"preview-controls",children:[t("div",{className:"control-group",children:[e("label",{children:"Viewport:"}),t("select",{value:S,onChange:e=>v(e.target.value),children:[e("option",{value:"mobile",children:"Mobile (375px)"}),e("option",{value:"tablet",children:"Tablet (768px)"}),e("option",{value:"desktop",children:"Desktop (1280px)"}),e("option",{value:"custom",children:"Custom"})]})]}),"custom"===S&&t(n,{children:[t("div",{className:"control-group",children:[e("label",{children:"Width:"}),e("input",{type:"number",value:E,onChange:e=>y(parseInt(e.target.value)||1280),min:"320",max:"3840"})]}),t("div",{className:"control-group",children:[e("label",{children:"Height:"}),e("input",{type:"number",value:N,onChange:e=>A(parseInt(e.target.value)||720),min:"240",max:"2160"})]})]}),e("div",{className:"control-group",children:t("label",{children:[e("input",{type:"checkbox",checked:f,onChange:e=>b(e.target.checked)}),"Dark Mode"]})})]}),t("div",{className:"viewport-wrapper",style:{width:T.width+"px",height:T.height+"px",maxWidth:"100%"},children:[e("style",{children:p}),o&&t("div",{className:"theme-details",children:[e("h2",{children:C.name}),C.description&&e("p",{children:C.description}),C.author&&t("p",{children:[e("strong",{children:"Author:"})," ",C.author]}),C.version&&t("p",{children:[e("strong",{children:"Version:"})," ",C.version]}),C.status&&t("p",{children:[e("strong",{children:"Status:"})," ",C.status]}),C.tags&&C.tags.length>0&&t("p",{children:[e("strong",{children:"Tags:"})," ",C.tags.join(", ")]})]}),s&&t("div",{className:"theme-palette",children:[e("h3",{children:"Color Palette"}),e("div",{className:"color-grid",children:["primary","secondary","error","warning","info","success"].map((n=>{const a=C.palette[n];return a&&"object"==typeof a&&"main"in a?t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a.main}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a.main})]})]},n):null}))}),e("h4",{children:"Background"}),e("div",{className:"color-grid",children:Object.entries(C.palette.background).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))}),e("h4",{children:"Text"}),e("div",{className:"color-grid",children:Object.entries(C.palette.text).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))})]}),l&&t("div",{className:"theme-typography",children:[e("h3",{children:"Typography"}),t("div",{className:"typography-info",children:[t("p",{children:[e("strong",{children:"Font Family:"})," ",e("code",{children:C.typography.fontFamily})]}),t("p",{children:[e("strong",{children:"Base Font Size:"})," ",t("code",{children:[C.typography.fontSize,"px"]})]})]}),t("div",{className:"typography-samples",children:[e("h1",{style:{fontSize:C.typography.h1.fontSize,fontWeight:C.typography.h1.fontWeight,lineHeight:C.typography.h1.lineHeight},children:"Heading 1"}),e("h2",{style:{fontSize:C.typography.h2.fontSize,fontWeight:C.typography.h2.fontWeight,lineHeight:C.typography.h2.lineHeight},children:"Heading 2"}),e("h3",{style:{fontSize:C.typography.h3.fontSize,fontWeight:C.typography.h3.fontWeight,lineHeight:C.typography.h3.lineHeight},children:"Heading 3"}),e("p",{style:{fontSize:C.typography.body1.fontSize,fontWeight:C.typography.body1.fontWeight,lineHeight:C.typography.body1.lineHeight},children:"Body 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit."}),e("p",{style:{fontSize:C.typography.body2.fontSize,fontWeight:C.typography.body2.fontWeight,lineHeight:C.typography.body2.lineHeight},children:"Body 2: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})]})]}),c&&t("div",{className:"theme-spacing",children:[e("h3",{children:"Spacing"}),e("div",{className:"spacing-samples",children:[1,2,3,4,6,8,12].map((n=>t("div",{className:"spacing-item",children:[e("div",{className:"spacing-box",style:{width:C.spacing(n),height:C.spacing(n),backgroundColor:C.palette.primary.main}}),t("code",{children:[n," = ",C.spacing(n)]})]},n)))})]}),t("div",{className:"theme-components",children:[e("h3",{children:"Sample Components"}),t("div",{className:"component-group",children:[e("h4",{children:"Buttons"}),t("div",{className:"button-group",children:[e("button",{className:"interactive-button "+(x["btn-primary"]?"active":""),onClick:()=>L("btn-primary"),onMouseEnter:()=>_((e=>({...e,"btn-primary-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["btn-primary-hover"],t})),style:{backgroundColor:x["btn-primary-hover"]&&C.palette.primary.dark||C.palette.primary.main,color:C.palette.primary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:x["btn-primary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Primary Button"}),e("button",{className:"interactive-button "+(x["btn-secondary"]?"active":""),onClick:()=>L("btn-secondary"),onMouseEnter:()=>_((e=>({...e,"btn-secondary-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["btn-secondary-hover"],t})),style:{backgroundColor:x["btn-secondary-hover"]&&C.palette.secondary.dark||C.palette.secondary.main,color:C.palette.secondary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:x["btn-secondary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Secondary Button"}),e("button",{className:"interactive-button "+(x["btn-outline"]?"active":""),onClick:()=>L("btn-outline"),onMouseEnter:()=>_((e=>({...e,"btn-outline-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["btn-outline-hover"],t})),onFocus:()=>_((e=>({...e,"btn-outline-focus":!0}))),onBlur:()=>_((e=>{const t={...e};return delete t["btn-outline-focus"],t})),style:{backgroundColor:"transparent",color:C.palette.primary.main,border:"2px solid "+(x["btn-outline-focus"]&&C.palette.primary.dark||C.palette.primary.main),padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:x["btn-outline"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease",outline:x["btn-outline-focus"]?"2px solid "+C.palette.primary.main:"none",outlineOffset:"2px"},children:"Outline Button"})]})]}),t("div",{className:"component-group",children:[e("h4",{children:"Card"}),t("div",{className:"interactive-card",onMouseEnter:()=>_((e=>({...e,"card-hover":!0}))),onMouseLeave:()=>_((e=>{const t={...e};return delete t["card-hover"],t})),style:{backgroundColor:C.palette.background.subtle,border:"1px solid "+C.palette.text.disabled,borderRadius:C.borderRadius.lg,padding:C.spacing(3),boxShadow:x["card-hover"]?C.shadows.lg:C.shadows.md,maxWidth:"300px",transition:"all 0.2s ease",cursor:"pointer"},children:[e("h5",{style:{margin:0,marginBottom:C.spacing(1)},children:"Card Title"}),e("p",{style:{margin:0,color:C.palette.text.secondary,fontSize:C.typography.body2.fontSize},children:"This is a sample card component showing how the theme colors and spacing work together."})]})]})]}),u&&t("div",{className:"theme-custom",children:[e("h3",{children:"Custom Components"}),u]})]}),e("style",{children:`\n .atomix-theme-preview {\n padding: 24px;\n font-family: ${C.typography.fontFamily};\n color: ${C.palette.text.primary};\n background-color: ${C.palette.background.default};\n }\n\n .preview-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n padding: 16px;\n background: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.md};\n margin-bottom: 24px;\n flex-wrap: wrap;\n }\n\n .control-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .control-group label {\n font-size: 14px;\n color: ${C.palette.text.secondary};\n }\n\n .control-group select,\n .control-group input[type="number"] {\n padding: 6px 12px;\n border: 1px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.base};\n font-size: 14px;\n background: ${C.palette.background.default};\n color: ${C.palette.text.primary};\n }\n\n .control-group input[type="checkbox"] {\n margin-right: 4px;\n }\n\n .viewport-wrapper {\n border: 2px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.lg};\n overflow: auto;\n background: ${C.palette.background.default};\n margin: 0 auto;\n box-shadow: ${C.shadows.lg};\n }\n\n .theme-details {\n margin-bottom: 32px;\n padding: 16px;\n background-color: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.lg};\n }\n\n .theme-palette,\n .theme-typography,\n .theme-spacing,\n .theme-components {\n margin-bottom: 32px;\n padding: 16px;\n }\n\n .color-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 16px;\n }\n\n .color-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .color-swatch {\n width: 40px;\n height: 40px;\n border-radius: ${C.borderRadius.base};\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .color-info {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .color-info code {\n font-size: 12px;\n color: ${C.palette.text.secondary};\n }\n\n .typography-samples {\n margin-top: 16px;\n }\n\n .typography-samples > * {\n margin: 8px 0;\n }\n\n .spacing-samples {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n margin-top: 16px;\n }\n\n .spacing-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n }\n\n .spacing-box {\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .component-group {\n margin-bottom: 24px;\n }\n\n .button-group {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .interactive-button {\n transition: all 0.2s ease;\n }\n\n .interactive-button:focus-visible {\n outline: 2px solid ${C.palette.primary.main};\n outline-offset: 2px;\n }\n\n .interactive-card {\n transition: all 0.2s ease;\n }\n\n h3 {\n color: ${C.palette.text.primary};\n border-bottom: 2px solid ${C.palette.primary.main};\n padding-bottom: 8px;\n }\n\n h4 {\n color: ${C.palette.text.primary};\n margin-top: 24px;\n margin-bottom: 12px;\n }\n `})]})};class wd{validate(e,t){const n=[],a=[],r=[],o=this.validatePalette(e.palette,t);n.push(...o.errors),a.push(...o.warnings),r.push(...o.a11yIssues);const i=this.validateTypography(e.typography);n.push(...i.errors),a.push(...i.warnings);const s=this.validateSpacing(e.spacing);n.push(...s.errors),a.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);n.push(...l.errors),a.push(...l.warnings);const c=this.validateTransitions(e.transitions);n.push(...c.errors),a.push(...c.warnings);const d=this.validateZIndex(e.zIndex);n.push(...d.errors),a.push(...d.warnings);const u=this.validateBorderRadius(e.borderRadius);n.push(...u.errors),a.push(...u.warnings);const h=this.validateCustom(e.custom);return n.push(...h.errors),a.push(...h.warnings),{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validatePalette(e,t){const n=[],a=[],r=[],o=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(o>t){const i={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${o})`,property:"palette.primary",value:e.primary.main};r.push(i),3>t?n.push(i.message):a.push(i.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(o>t){const i={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${o})`,property:"palette.text.primary",value:e.text.primary};r.push(i),3>t?n.push(i.message):a.push(i.message)}}const i=["primary","secondary","error","warning","info","success"];for(const s of i){const t=e[s];t&&(this.isValidColor(t.main)||n.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validateTypography(e){const t=[],n=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&n.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(n){t.push("Spacing function error: "+(n instanceof Error?n.message:n+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],n=[];if(e.values){const a=["xs","sm","md","lg","xl"];for(const n of a)"number"!=typeof e.values[n]&&t.push(`Breakpoint ${n} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],a=r[e-1];if(null!=t&&null!=a&&a>=t){n.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}checkContrast(e,t){try{return ed(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],n=[],a=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};if(e.duration){const a=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of a){const a=e.duration[r];void 0!==a&&("number"!=typeof a||0>a?t.push(`Transition duration ${r} must be a non-negative number`):a>1e4&&n.push(`Transition duration ${r} (${a}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const a=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const o of a){const a=e.easing[o];void 0!==a&&("string"!=typeof a?t.push(`Transition easing ${o} must be a string`):r.test(a)||n.push(`Transition easing ${o} may not be a valid CSS easing function: ${a}`))}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateZIndex(e){const t=[],n=[],a=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[o,i]of Object.entries(e))void 0!==i&&("number"!=typeof i?t.push(`Z-index ${o} must be a number, got ${typeof i}`):0>i?t.push(`Z-index ${o} must be non-negative, got ${i}`):i>1e4&&n.push(`Z-index ${o} (${i}) exceeds recommended maximum (10000)`));for(let o=0;o<r.length;o++)for(let e=o+1;e<r.length;e++){const t=r[o],a=r[e];if(!t||!a)continue;const[i,s]=t,[l,c]=a,d=Math.abs(s-c);10>d&&d>0&&n.push(`Z-index values ${i} (${s}) and ${l} (${c}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateBorderRadius(e){const t=[],n=[],a=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const o of r){const a=e[o];if(void 0!==a){let e;if("number"==typeof a)e=a;else{if("string"!=typeof a){t.push(`Border radius ${o} must be a number or string, got ${typeof a}`);continue}{const n=a.match(/^([\d.]+)(px|rem|em|%)?$/);if(!n){t.push(`Border radius ${o} has invalid format: ${a}`);continue}const[,r]=n;if(!r){t.push(`Border radius ${o} has invalid numeric value: ${a}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${o} must be non-negative, got ${e}`):e>1e3&&n.push(`Border radius ${o} (${a}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateCustom(e){const t=[],n=[],a=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:n,a11yIssues:a};const r=new WeakSet;let o=0;const i=(e,t="custom")=>{if(o>10)n.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))n.push("Circular reference detected in custom property path: "+t);else{r.add(e),o++;try{for(const[a,r]of Object.entries(e)){const e=`${t}.${a}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(a)||n.push(`Custom property name "${a}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||i(r,e)}}finally{o--,r.delete(e)}}};return i(e),{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}}const Od=({theme:n,showValidation:a=!0,showCSSVariables:s=!0,showStructure:l=!0,className:c,style:h})=>{const[m,p]=r("overview"),[g,f]=r(new Set(["palette"])),[b,S]=r(""),[v,E]=r(""),[y,N]=r(null),A=o();i((()=>(A.current&&clearTimeout(A.current),A.current=setTimeout((()=>{E(b)}),300),()=>{A.current&&clearTimeout(A.current)})),[b]);const x=d((()=>{if(!a)return null;try{return(new wd).validate(n)}catch(e){return{valid:!1,errors:["Failed to validate theme: "+(e instanceof Error?e.message:e+"")],warnings:[],a11yIssues:[]}}}),[n,a]),_=d((()=>{if(!s)return"";try{return id(n,{selector:":root",prefix:"atomix"})}catch(e){return`/* Error generating CSS variables: ${e instanceof Error?e.message:e+""} */`}}),[n,s]),T=d((()=>{const e=[],t=(n,a="",r=0)=>{if(10>=r)if(null!=n)if("object"!=typeof n||Array.isArray(n)){const t=a.toLowerCase(),r=v.toLowerCase(),o=!v||Po(t).call(t,r);e.push({path:a,value:n,matches:o})}else Object.entries(n).forEach((([n,o])=>{if("__isJSTheme"===n)return;const i=a?`${a}.${n}`:n,s=i.toLowerCase(),l=v.toLowerCase(),c=!v||Po(s).call(s,l);if("object"!=typeof o||null===o||Array.isArray(o)){const t="string"==typeof o?o.toLowerCase():(o+"").toLowerCase(),n=!v||Po(t).call(t,l);e.push({path:i,value:o,matches:c||n})}else e.push({path:i,value:null,matches:c}),t(o,i,r+1)}));else e.push({path:a,value:n,matches:!1})};return t(n),e}),[n,v]),C=u((async e=>{try{await navigator.clipboard.writeText(e),N(e),setTimeout((()=>N(null)),2e3)}catch(t){const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select();try{document.execCommand("copy"),N(e),setTimeout((()=>N(null)),2e3)}catch{}document.body.removeChild(n)}}),[]),L=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,I=(n,a=0,r="")=>null==n?e("span",{className:"value-null",children:"null"}):"string"==typeof n?t("span",{className:"value-string",children:['"',L(n,v),'"']}):"number"==typeof n?e("span",{className:"value-number",children:n}):"boolean"==typeof n?e("span",{className:"value-boolean",children:n+""}):"function"==typeof n?e("span",{className:"value-function",children:"function"}):Array.isArray(n)?t("div",{className:"value-array",children:["[",n.map(((e,o)=>t("div",{className:"array-item",children:[I(e,a+1,`${r}[${o}]`),o<n.length-1&&","]},o))),"]"]}):"object"==typeof n?t("div",{className:"value-object",style:{marginLeft:16*a},children:["{",Object.entries(n).map((([n,o])=>{const i=r?`${r}.${n}`:n;return t("div",{className:"object-property",children:[t("span",{className:"property-key clickable",onClick:()=>C(i),title:"Click to copy: "+i,children:[L(n,v),":"]})," ",I(o,a+1,i),y===i&&e("span",{className:"copy-feedback",children:"✓ Copied!"})]},n)})),"}"]}):e("span",{children:n+""});return t("div",{className:"atomix-theme-inspector "+(c||""),style:h,children:[t("div",{className:"inspector-tabs",children:[e("button",{className:"tab "+("overview"===m?"active":""),onClick:()=>p("overview"),children:"Overview"}),a&&t("button",{className:"tab "+("validation"===m?"active":""),onClick:()=>p("validation"),children:["Validation",x&&!x.valid&&e("span",{className:"tab-badge error",children:x.errors.length})]}),s&&e("button",{className:"tab "+("css"===m?"active":""),onClick:()=>p("css"),children:"CSS Variables"}),l&&e("button",{className:"tab "+("structure"===m?"active":""),onClick:()=>p("structure"),children:"Structure"})]}),t("div",{className:"inspector-content",children:["overview"===m&&t("div",{className:"inspector-overview",children:[t("div",{className:"theme-metadata",children:[e("h3",{children:"Theme Information"}),e("table",{children:t("tbody",{children:[t("tr",{children:[e("td",{children:e("strong",{children:"Name:"})}),e("td",{children:n.name})]}),n.description&&t("tr",{children:[e("td",{children:e("strong",{children:"Description:"})}),e("td",{children:n.description})]}),n.author&&t("tr",{children:[e("td",{children:e("strong",{children:"Author:"})}),e("td",{children:n.author})]}),n.version&&t("tr",{children:[e("td",{children:e("strong",{children:"Version:"})}),e("td",{children:n.version})]}),n.status&&t("tr",{children:[e("td",{children:e("strong",{children:"Status:"})}),e("td",{children:e("span",{className:"status-badge status-"+n.status,children:n.status})})]}),t("tr",{children:[e("td",{children:e("strong",{children:"Dark Mode:"})}),e("td",{children:n.supportsDarkMode?"Yes":"No"})]}),n.tags&&n.tags.length>0&&t("tr",{children:[e("td",{children:e("strong",{children:"Tags:"})}),e("td",{children:n.tags.map((t=>e("span",{className:"tag",children:t},t)))})]})]})})]}),t("div",{className:"theme-stats",children:[e("h3",{children:"Statistics"}),t("div",{className:"stats-grid",children:[t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.palette).length}),e("div",{className:"stat-label",children:"Palette Colors"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.typography).length}),e("div",{className:"stat-label",children:"Typography Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.shadows).length}),e("div",{className:"stat-label",children:"Shadow Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.custom).length}),e("div",{className:"stat-label",children:"Custom Properties"})]})]})]})]}),"validation"===m&&(x?t("div",{className:"inspector-validation",children:[e("div",{className:"validation-status "+(x.valid?"valid":"invalid"),children:x.valid?"✅ Theme is valid":"❌ Theme has issues"}),x.errors.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Errors"}),e("ul",{className:"validation-list error-list",children:x.errors.map(((t,n)=>e("li",{children:t},n)))})]}),x.warnings.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Warnings"}),e("ul",{className:"validation-list warning-list",children:x.warnings.map(((t,n)=>e("li",{children:t},n)))})]}),x.a11yIssues.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Accessibility Issues"}),e("ul",{className:"validation-list a11y-list",children:x.a11yIssues.map(((n,a)=>t("li",{className:"a11y-"+n.severity,children:[t("strong",{children:[n.type,":"]})," ",n.message,n.property&&e("code",{children:n.property})]},a)))})]})]}):null),"css"===m&&t("div",{className:"inspector-css",children:[t("div",{className:"css-header",children:[e("h3",{children:"Generated CSS Variables"}),e("button",{onClick:()=>navigator.clipboard?.writeText(_),className:"copy-button",children:"Copy to Clipboard"})]}),e("pre",{className:"css-code",children:e("code",{children:_})})]}),"structure"===m&&(()=>{const a=v?T.filter((e=>e.matches)):T;return t("div",{className:"inspector-structure",children:[t("div",{className:"structure-header-controls",children:[e("h3",{children:"Theme Structure"}),t("div",{className:"search-controls",children:[e("input",{type:"text",placeholder:"Search properties...",value:b,onChange:e=>S(e.target.value),className:"search-input"}),b&&e("button",{className:"clear-search",onClick:()=>S(""),title:"Clear search",children:"×"}),v&&t("span",{className:"search-results-count",children:[a.length," result",1!==a.length?"s":""]})]})]}),v&&0===a.length&&t("div",{className:"no-results",children:['No properties found matching "',v,'"']}),e("div",{className:"structure-tree",children:Object.entries(n).map((([n,a])=>{if("__isJSTheme"===n)return null;const r=g.has(n),o="object"==typeof a&&null!==a&&!Array.isArray(a),i=!v||T.some((e=>e.path.startsWith(n)&&e.matches));return v&&!i?null:t("div",{className:"structure-node",children:[t("div",{className:"structure-header",onClick:()=>o&&(e=>{const t=new Set(g);t.has(e)?t.delete(e):t.add(e),f(t)})(n),children:[o&&e("span",{className:"expand-icon "+(r?"expanded":""),children:"▶"}),e("span",{className:"property-name clickable",onClick:e=>{e.stopPropagation(),C(n)},title:"Click to copy: "+n,children:L(n,v)}),y===n&&e("span",{className:"copy-feedback",children:"✓ Copied!"}),e("span",{className:"property-type",children:Array.isArray(a)?"array":typeof a})]}),o&&r&&e("div",{className:"structure-children",children:I(a,0,n)}),!o&&e("div",{className:"structure-value",children:I(a,0,n)})]},n)}))})]})})()]}),e("style",{children:"\n .atomix-theme-inspector {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .inspector-tabs {\n display: flex;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .tab {\n padding: 12px 16px;\n border: none;\n background: none;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n position: relative;\n }\n\n .tab:hover {\n background: #e0e0e0;\n }\n\n .tab.active {\n background: white;\n border-bottom-color: #2196f3;\n }\n\n .tab-badge {\n position: absolute;\n top: 4px;\n right: 4px;\n background: #f44336;\n color: white;\n border-radius: 10px;\n padding: 2px 6px;\n font-size: 10px;\n min-width: 16px;\n text-align: center;\n }\n\n .inspector-content {\n padding: 16px;\n max-height: 600px;\n overflow-y: auto;\n }\n\n .theme-metadata table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .theme-metadata td {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n vertical-align: top;\n }\n\n .status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n .status-stable { background: #e8f5e8; color: #2e7d32; }\n .status-beta { background: #fff3e0; color: #f57c00; }\n .status-experimental { background: #fce4ec; color: #c2185b; }\n .status-deprecated { background: #ffebee; color: #d32f2f; }\n\n .tag {\n display: inline-block;\n background: #e3f2fd;\n color: #1976d2;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n margin-right: 4px;\n }\n\n .stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-top: 16px;\n }\n\n .stat-item {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-value {\n font-size: 24px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .validation-status {\n padding: 12px;\n border-radius: 8px;\n margin-bottom: 16px;\n font-weight: bold;\n }\n\n .validation-status.valid {\n background: #e8f5e8;\n color: #2e7d32;\n }\n\n .validation-status.invalid {\n background: #ffebee;\n color: #d32f2f;\n }\n\n .validation-list {\n margin: 0;\n padding-left: 20px;\n }\n\n .validation-list li {\n margin-bottom: 8px;\n }\n\n .error-list li { color: #d32f2f; }\n .warning-list li { color: #f57c00; }\n .a11y-list li { color: #7b1fa2; }\n\n .css-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .copy-button {\n padding: 8px 16px;\n background: #2196f3;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .copy-button:hover {\n background: #1976d2;\n }\n\n .css-code {\n background: #f5f5f5;\n padding: 16px;\n border-radius: 8px;\n overflow-x: auto;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.4;\n }\n\n .structure-header-controls {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .structure-header-controls h3 {\n margin: 0;\n }\n\n .search-controls {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .search-results-count {\n font-size: 12px;\n color: #666;\n padding: 4px 8px;\n background: #f5f5f5;\n border-radius: 4px;\n }\n\n .no-results {\n padding: 24px;\n text-align: center;\n color: #666;\n font-style: italic;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .structure-node {\n margin-bottom: 8px;\n }\n\n .structure-header {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n }\n\n .structure-header:hover {\n background: #f0f0f0;\n }\n\n .expand-icon {\n transition: transform 0.2s;\n font-size: 12px;\n }\n\n .expand-icon.expanded {\n transform: rotate(90deg);\n }\n\n .property-name {\n font-weight: bold;\n color: #1976d2;\n }\n\n .property-name.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-name.clickable:hover {\n color: #0d47a1;\n }\n\n .copy-feedback {\n font-size: 12px;\n color: #4caf50;\n margin-left: 8px;\n font-weight: normal;\n }\n\n .property-type {\n font-size: 12px;\n color: #666;\n background: #f0f0f0;\n padding: 2px 6px;\n border-radius: 4px;\n }\n\n .structure-children,\n .structure-value {\n margin-left: 24px;\n margin-top: 8px;\n }\n\n .value-string { color: #388e3c; }\n .value-number { color: #1976d2; }\n .value-boolean { color: #7b1fa2; }\n .value-null { color: #666; font-style: italic; }\n .value-function { color: #f57c00; font-style: italic; }\n\n .value-object {\n font-family: monospace;\n font-size: 12px;\n }\n\n .object-property {\n margin-left: 16px;\n }\n\n .property-key {\n color: #1976d2;\n font-weight: bold;\n }\n\n .property-key.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-key.clickable:hover {\n color: #0d47a1;\n }\n "})]})},Rd=({themeA:a,themeB:s,showOnlyDifferences:l=!1,className:c,style:u})=>{const[h,m]=r(""),[p,g]=r(""),[f,b]=r("all"),[S,v]=r("all"),E=o();i((()=>(E.current&&clearTimeout(E.current),E.current=setTimeout((()=>{g(h)}),300),()=>{E.current&&clearTimeout(E.current)})),[h]);const y=d((()=>{const e=[],t=e=>e.split(".")[0]||"other",n=(a,r,o="")=>{const i=new Set([...Object.keys(a||{}),...Object.keys(r||{})]);for(const s of i){if("__isJSTheme"===s)continue;const i=o?`${o}.${s}`:s,l=a?.[s],c=r?.[s];void 0===l&&void 0!==c?e.push({path:i,valueA:void 0,valueB:c,type:"added",category:t(i)}):void 0!==l&&void 0===c?e.push({path:i,valueA:l,valueB:void 0,type:"removed",category:t(i)}):"object"!=typeof l||"object"!=typeof c||Array.isArray(l)||Array.isArray(c)?JSON.stringify(l)!==JSON.stringify(c)&&e.push({path:i,valueA:l,valueB:c,type:"changed",category:t(i)}):n(l,c,i)}};return n(a,s),e}),[a,s]),N=d((()=>{let e=y;if("all"!==f&&(e=e.filter((e=>e.type===f))),"all"!==S&&(e=e.filter((e=>e.category===S))),p){const t=p.toLowerCase();e=e.filter((e=>{var n,a,r;return Po(n=e.path.toLowerCase()).call(n,t)||Po(a=(e.valueA+"").toLowerCase()).call(a,t)||Po(r=(e.valueB+"").toLowerCase()).call(r,t)}))}return e}),[y,f,S,p]),A=d((()=>{const e=new Set(y.map((e=>e.category)).filter(Boolean));return Array.from(e).sort()}),[y]),x=e=>void 0===e?"undefined":null===e?"null":"string"==typeof e?`"${e}"`:"object"==typeof e?JSON.stringify(e,null,2):e+"",_=e=>{switch(e){case"added":return"#4caf50";case"removed":return"#f44336";case"changed":return"#ff9800";default:return"#666"}},T=e=>{switch(e){case"added":return"rgba(76, 175, 80, 0.1)";case"removed":return"rgba(244, 67, 54, 0.1)";case"changed":return"rgba(255, 152, 0, 0.1)";default:return"transparent"}},C=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,L=d((()=>({total:y.length,added:y.filter((e=>"added"===e.type)).length,removed:y.filter((e=>"removed"===e.type)).length,changed:y.filter((e=>"changed"===e.type)).length,filtered:N.length})),[y,N]);return t("div",{className:"atomix-theme-comparator "+(c||""),style:u,children:[t("div",{className:"comparator-header",children:[t("div",{className:"theme-column",children:[e("h3",{children:a.name}),a.version&&t("span",{className:"version",children:["v",a.version]})]}),e("div",{className:"vs-divider",children:"VS"}),t("div",{className:"theme-column",children:[e("h3",{children:s.name}),s.version&&t("span",{className:"version",children:["v",s.version]})]})]}),t("div",{className:"filter-controls",children:[t("div",{className:"filter-group",children:[e("label",{children:"Search:"}),e("input",{type:"text",placeholder:"Search differences...",value:h,onChange:e=>m(e.target.value),className:"search-input"}),h&&e("button",{className:"clear-search",onClick:()=>m(""),title:"Clear search",children:"×"})]}),t("div",{className:"filter-group",children:[e("label",{children:"Type:"}),t("select",{value:f,onChange:e=>b(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Types"}),e("option",{value:"added",children:"Added"}),e("option",{value:"removed",children:"Removed"}),e("option",{value:"changed",children:"Changed"})]})]}),A.length>0&&t("div",{className:"filter-group",children:[e("label",{children:"Category:"}),t("select",{value:S,onChange:e=>v(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Categories"}),A.map((t=>e("option",{value:t,children:t},t)))]})]}),(h||"all"!==f||"all"!==S)&&e("button",{className:"clear-filters",onClick:()=>{m(""),b("all"),v("all")},children:"Clear Filters"})]}),t("div",{className:"comparator-stats",children:[t("div",{className:"stat",children:[e("span",{className:"stat-value",children:L.total}),e("span",{className:"stat-label",children:"Total Differences"})]}),t("div",{className:"stat stat-added",children:[e("span",{className:"stat-value",style:{color:"#4caf50"},children:L.added}),e("span",{className:"stat-label",children:"Added"})]}),t("div",{className:"stat stat-removed",children:[e("span",{className:"stat-value",style:{color:"#f44336"},children:L.removed}),e("span",{className:"stat-label",children:"Removed"})]}),t("div",{className:"stat stat-changed",children:[e("span",{className:"stat-value",style:{color:"#ff9800"},children:L.changed}),e("span",{className:"stat-label",children:"Changed"})]}),L.filtered!==L.total&&t("div",{className:"stat stat-filtered",children:[e("span",{className:"stat-value",style:{color:"#2196f3"},children:L.filtered}),e("span",{className:"stat-label",children:"Filtered"})]})]}),0===N.length?e("div",{className:"no-differences",children:0===y.length?e(n,{children:"✅ Themes are identical"}):e(n,{children:"No differences match your filters. Try adjusting your search or filters."})}):t("div",{className:"differences-list",children:[t("h4",{children:["Differences (",N.length,")"]}),N.map(((n,r)=>t("div",{className:"difference-item difference-"+n.type,style:{backgroundColor:T(n.type)},children:[t("div",{className:"difference-header",children:[e("span",{className:"difference-type",style:{backgroundColor:_(n.type)},children:n.type}),e("code",{className:"difference-path",children:C(n.path,p)}),n.category&&e("span",{className:"difference-category",children:n.category})]}),t("div",{className:"difference-values",children:[t("div",{className:"value-column value-"+("added"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:a.name}),e("pre",{className:"value-content",children:"added"===n.type?e("span",{className:"value-empty",children:"—"}):C(x(n.valueA),p)})]}),e("div",{className:"value-divider",children:"→"}),t("div",{className:"value-column value-"+("removed"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:s.name}),e("pre",{className:"value-content",children:"removed"===n.type?e("span",{className:"value-empty",children:"—"}):C(x(n.valueB),p)})]})]})]},r)))]}),e("style",{children:"\n .atomix-theme-comparator {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n padding: 24px;\n }\n\n .comparator-header {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 24px;\n align-items: center;\n margin-bottom: 24px;\n padding-bottom: 24px;\n border-bottom: 2px solid #e0e0e0;\n }\n\n .theme-column {\n text-align: center;\n }\n\n .theme-column h3 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .version {\n display: inline-block;\n margin-top: 4px;\n padding: 2px 8px;\n background: #e3f2fd;\n color: #1976d2;\n border-radius: 4px;\n font-size: 12px;\n }\n\n .vs-divider {\n font-weight: bold;\n font-size: 24px;\n color: #666;\n }\n\n .filter-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n margin-bottom: 24px;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n flex-wrap: wrap;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .filter-group label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .clear-filters {\n padding: 8px 16px;\n background: #666;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n }\n\n .clear-filters:hover {\n background: #555;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .comparator-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n }\n\n .stat {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-added {\n border-left: 4px solid #4caf50;\n }\n\n .stat-removed {\n border-left: 4px solid #f44336;\n }\n\n .stat-changed {\n border-left: 4px solid #ff9800;\n }\n\n .stat-filtered {\n border-left: 4px solid #2196f3;\n }\n\n .stat-value {\n display: block;\n font-size: 32px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n display: block;\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .no-differences {\n text-align: center;\n padding: 48px;\n font-size: 18px;\n color: #4caf50;\n background: #e8f5e9;\n border-radius: 8px;\n }\n\n .differences-list h4 {\n margin: 0 0 16px 0;\n font-size: 18px;\n color: #333;\n }\n\n .difference-item {\n margin-bottom: 16px;\n border: 2px solid;\n border-radius: 8px;\n overflow: hidden;\n transition: all 0.2s ease;\n }\n\n .difference-added {\n border-color: #4caf50;\n }\n\n .difference-removed {\n border-color: #f44336;\n }\n\n .difference-changed {\n border-color: #ff9800;\n }\n\n .difference-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background: rgba(0, 0, 0, 0.05);\n }\n\n .difference-type {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: bold;\n color: white;\n text-transform: uppercase;\n }\n\n .difference-path {\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n color: #1976d2;\n flex: 1;\n }\n\n .difference-category {\n font-size: 11px;\n padding: 2px 6px;\n background: rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n color: #666;\n text-transform: uppercase;\n }\n\n .difference-values {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 16px;\n padding: 16px;\n align-items: start;\n }\n\n .value-column {\n min-width: 0;\n }\n\n .value-column.value-empty {\n opacity: 0.5;\n }\n\n .value-label {\n font-size: 12px;\n font-weight: bold;\n color: #666;\n margin-bottom: 8px;\n }\n\n .value-content {\n margin: 0;\n padding: 12px;\n background: rgba(255, 255, 255, 0.7);\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n overflow-x: auto;\n white-space: pre-wrap;\n word-break: break-all;\n }\n\n .value-empty {\n color: #999;\n font-style: italic;\n }\n\n .value-divider {\n font-size: 20px;\n color: #666;\n align-self: center;\n }\n "})]})},Md={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},kd={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},Dd={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},Bd={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},Pd={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},zd={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function Ud(e){return"string"==typeof e?{main:e,light:nd(e),dark:ad(e),contrastText:td(e)}:{main:e.main||"#000000",light:e.light||nd(e.main||"#000000"),dark:e.dark||ad(e.main||"#000000"),contrastText:e.contrastText||td(e.main||"#000000")}}function Fd(...e){const t=di(e).call(e,((e,t)=>Tc(e,t)),{}),n={primary:Ud(t.palette?.primary||Md.primary),secondary:Ud(t.palette?.secondary||Md.secondary),error:Ud(t.palette?.error||Md.error),warning:Ud(t.palette?.warning||Md.warning),info:Ud(t.palette?.info||Md.info),success:Ud(t.palette?.success||Md.success),...t.palette?.light&&{light:Ud(t.palette.light)},...t.palette?.dark&&{dark:Ud(t.palette.dark)},background:{default:t.palette?.background?.default||Md.background.default,subtle:t.palette?.background?.subtle||Md.background.subtle},text:{primary:t.palette?.text?.primary||Md.text.primary,secondary:t.palette?.text?.secondary||Md.text.secondary,disabled:t.palette?.text?.disabled||Md.text.disabled}},a=Tc({...kd},t.typography||{}),r=function(e=4){return"function"==typeof e?e:"number"==typeof e?(...t)=>0===t.length?"0px":t.map((t=>t*e+"px")).join(" "):Array.isArray(e)?(...t)=>0===t.length?"0px":t.map((t=>(e[t]||t)+"px")).join(" "):(...e)=>0===e.length?"0px":e.map((e=>4*e+"px")).join(" ")}(t.spacing),o=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},n=e?.unit||"px";return{values:t,unit:n,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${n})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${n})`,between:(e,a)=>{const r="number"==typeof e?e:t[e]??0,o="number"==typeof a?a:t[a]??0;return`@media (min-width:${r}${n}) and (max-width:${o-.05}${n})`}}}(t.breakpoints),i=Tc({...Dd},t.shadows||{}),s=Tc({...Bd},t.transitions||{}),l=Tc({...Pd},t.zIndex||{}),c=Tc({...zd},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||n.primary.main,features:t.features,dependencies:t.dependencies,palette:n,typography:a,spacing:r,breakpoints:o,shadows:i,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}function Gd(e={}){const{maxHistorySize:t=50,initialState:n}=e,[a,s]=r(n),l=o([n]),c=o(0),[d,h]=r(!1),[m,p]=r(!1),g=u((()=>{h(c.current>0),p(c.current<l.current.length-1)}),[]),f=u((e=>{c.current<l.current.length-1&&(l.current=l.current.slice(0,c.current+1)),l.current.push(e),c.current=l.current.length-1,l.current.length>t&&(l.current.shift(),c.current--),s(e),g()}),[t,g]),b=u((()=>{if(c.current>0){c.current--;const e=l.current[c.current];s(e),g()}}),[g]),S=u((()=>{if(c.current<l.current.length-1){c.current++;const e=l.current[c.current];s(e),g()}}),[g]),v=u((()=>{const e=l.current[c.current];l.current=[e],c.current=0,g()}),[g]),E=u((()=>({currentIndex:c.current,totalEntries:l.current.length})),[]);return i((()=>{g()}),[g]),{state:a,setState:f,undo:b,redo:S,canUndo:d,canRedo:m,clearHistory:v,getHistoryStats:E}}function Vd(e,t){if(e=e.trim(),"hex"===t&&e.startsWith("#"))return e;if("rgb"===t&&e.startsWith("rgb("))return e;if("rgba"===t&&e.startsWith("rgba("))return e;if("hsl"===t&&e.startsWith("hsl("))return e;if("hsla"===t&&e.startsWith("hsla("))return e;const n=document.createElement("div");n.style.color=e,document.body.appendChild(n);const a=window.getComputedStyle(n).color;document.body.removeChild(n);const r=a.match(/\d+/g);if(!r||3>r.length)return e;const o=parseInt(r[0],10),i=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[o,i,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${o}, ${i}, ${s})`;case"rgba":return`rgba(${o}, ${i}, ${s}, ${l})`;case"hsl":case"hsla":const n=function(e,t,n){const a=Math.max(e/=255,t/=255,n/=255),r=Math.min(e,t,n);let o=0,i=0;const s=(a+r)/2;if(a!==r){const l=a-r;switch(i=s>.5?l/(2-a-r):l/(a+r),a){case e:o=((t-n)/l+(n>t?6:0))/6;break;case t:o=((n-e)/l+2)/6;break;case n:o=((e-t)/l+4)/6}}return{h:Math.round(360*o),s:Math.round(100*i),l:Math.round(100*s)}}(o,i,s);return"hsl"===t?`hsl(${n.h}, ${n.s}%, ${n.l}%)`:`hsla(${n.h}, ${n.s}%, ${n.l}%, ${l})`;default:return e}}const Hd=({initialTheme:n,onChange:a,className:s,style:l})=>{const{state:c,setState:d,undo:h,redo:m,canUndo:p,canRedo:g}=Gd({initialState:n,maxHistorySize:50}),[f,b]=r(JSON.stringify(n,null,2)),[S,v]=r(null),[E,y]=r("visual"),[N,A]=r("hex"),[x,_]=r(50),[T,C]=r(!1),L=o(null),I=o(null);i((()=>{const e=localStorage.getItem("atomix-editor-layout");if(e){const t=parseFloat(e);!isNaN(t)&&t>0&&100>t&&_(t)}}),[]),i((()=>{localStorage.setItem("atomix-editor-layout",x.toString())}),[x]);const w=u(((e,t=!0)=>{t?d(e):b(JSON.stringify(e,null,2)),a?.(e),v(null)}),[a,d]);i((()=>{b(JSON.stringify(c,null,2))}),[c]);const O=u((e=>{b(e);try{const t=Fd(JSON.parse(e));w(t,!1)}catch(t){v(t instanceof Error?t.message:"Invalid JSON")}}),[w]),R=o();i((()=>{if(!S){try{const e=Fd(JSON.parse(f));R.current&&clearTimeout(R.current),R.current=setTimeout((()=>{d(e)}),1e3)}catch{}return()=>{R.current&&clearTimeout(R.current)}}}),[f,S,d]);const M=u(((e,t)=>{const n={...c},a=e.split(".");let r=n;for(let i=0;i<a.length-1;i++){const e=a[i];e&&!r[e]&&(r[e]={}),e&&(r=r[e])}const o=a[a.length-1];o&&(r[o]=t),w(Fd(n))}),[c,w]),k=u((()=>{const e=JSON.stringify(c,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),n=c.name.toLowerCase().replace(/\s+/g,"-")+"-theme.json",a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download",n),a.click()}),[c]),D=u((()=>{navigator.clipboard?.writeText(f)}),[f]);i((()=>{const e=e=>{const t=0>navigator.platform.toUpperCase().indexOf("MAC")?e.ctrlKey:e.metaKey;t&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),p&&h()):t&&("y"===e.key||"z"===e.key&&e.shiftKey)?(e.preventDefault(),g&&m()):t&&"s"===e.key?(e.preventDefault(),k()):t&&"/"===e.key?(e.preventDefault(),y((e=>"visual"===e?"json":"visual"))):"Escape"===e.key&&v(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[p,g,h,m,k]);const B=u((e=>{e.preventDefault(),C(!0)}),[]);i((()=>{if(!T)return;const e=e=>{if(!L.current||!I.current)return;const t=L.current.parentElement;if(!t)return;const n=t.getBoundingClientRect(),a=(e.clientX-n.left)/n.width*100;_(Math.max(20,Math.min(80,a)))},t=()=>{C(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[T]);const P=u((e=>Vd(e,N)),[N]);return t("div",{className:"atomix-theme-live-editor "+(s||""),style:l,children:[t("div",{className:"editor-header",children:[e("h2",{children:"Live Theme Editor"}),t("div",{className:"editor-controls",children:[t("div",{className:"history-controls",children:[e("button",{className:"history-button",onClick:h,disabled:!p,title:"Undo (Ctrl+Z)",children:"↶ Undo"}),e("button",{className:"history-button",onClick:m,disabled:!g,title:"Redo (Ctrl+Shift+Z)",children:"↷ Redo"})]}),t("div",{className:"mode-controls",children:[e("button",{className:"mode-button "+("visual"===E?"active":""),onClick:()=>y("visual"),title:"Visual Editor (Ctrl+/)",children:"Visual"}),e("button",{className:"mode-button "+("json"===E?"active":""),onClick:()=>y("json"),title:"JSON Editor (Ctrl+/)",children:"JSON"})]}),t("div",{className:"action-controls",children:[e("button",{className:"export-button",onClick:k,title:"Export (Ctrl+S)",children:"Export"}),e("button",{className:"copy-button",onClick:D,title:"Copy JSON",children:"Copy JSON"})]})]})]}),t("div",{className:"editor-content",ref:L,children:[e("div",{className:"editor-panel",style:{width:x+"%"},children:t("div","visual"===E?{className:"visual-editor",children:[t("div",{className:"editor-section",children:[e("h3",{children:"Colors"}),t("div",{className:"color-format-selector",children:[e("label",{children:"Color Format:"}),t("select",{value:N,onChange:e=>A(e.target.value),children:[e("option",{value:"hex",children:"HEX"}),e("option",{value:"rgb",children:"RGB"}),e("option",{value:"rgba",children:"RGBA"}),e("option",{value:"hsl",children:"HSL"}),e("option",{value:"hsla",children:"HSLA"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Primary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:c.palette.primary.main,onChange:e=>M("palette.primary.main",e.target.value)}),e("input",{type:"text",value:P(c.palette.primary.main),onChange:e=>{const t=Vd(e.target.value,"hex");M("palette.primary.main",t)},placeholder:"#7AFFD7"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Secondary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:c.palette.secondary.main,onChange:e=>M("palette.secondary.main",e.target.value)}),e("input",{type:"text",value:P(c.palette.secondary.main),onChange:e=>{const t=Vd(e.target.value,"hex");M("palette.secondary.main",t)},placeholder:"#FF5733"})]})]}),e("h3",{children:"Background"}),t("div",{className:"editor-field",children:[e("label",{children:"Default Background"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:c.palette.background.default,onChange:e=>M("palette.background.default",e.target.value)}),e("input",{type:"text",value:P(c.palette.background.default),onChange:e=>{const t=Vd(e.target.value,"hex");M("palette.background.default",t)}})]})]})]}),t("div",{className:"editor-section",children:[e("h3",{children:"Typography"}),t("div",{className:"editor-field",children:[e("label",{children:"Font Family"}),e("input",{type:"text",value:c.typography.fontFamily,onChange:e=>M("typography.fontFamily",e.target.value),placeholder:"Inter, sans-serif"})]}),t("div",{className:"editor-field",children:[e("label",{children:"Base Font Size (px)"}),e("input",{type:"number",value:c.typography.fontSize,onChange:e=>M("typography.fontSize",parseInt(e.target.value)),min:"10",max:"24"})]})]})]}:{className:"json-editor",children:[e("textarea",{value:f,onChange:e=>O(e.target.value),spellCheck:!1}),S&&t("div",{className:"error-message",children:["❌ ",S,e("button",{className:"error-dismiss",onClick:()=>v(null),children:"×"})]})]})}),e("div",{className:"resizer "+(T?"resizing":""),onMouseDown:B}),t("div",{className:"preview-panel",ref:I,style:{width:100-x+"%"},children:[e("h3",{children:"Live Preview"}),e(Id,{theme:c,showDetails:!1,showPalette:!0,showTypography:!0})]})]}),e("style",{children:"\n .atomix-theme-live-editor {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .editor-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .editor-header h2 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .editor-controls {\n display: flex;\n gap: 12px;\n align-items: center;\n }\n\n .history-controls,\n .mode-controls,\n .action-controls {\n display: flex;\n gap: 8px;\n }\n\n .history-button,\n .mode-button,\n .export-button,\n .copy-button {\n padding: 8px 16px;\n border: 1px solid #e0e0e0;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n transition: all 0.2s;\n }\n\n .history-button:hover:not(:disabled),\n .mode-button:hover,\n .export-button:hover,\n .copy-button:hover {\n background: #f5f5f5;\n }\n\n .history-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .mode-button.active {\n background: #2196f3;\n color: white;\n border-color: #2196f3;\n }\n\n .export-button {\n background: #4caf50;\n color: white;\n border-color: #4caf50;\n }\n\n .copy-button {\n background: #ff9800;\n color: white;\n border-color: #ff9800;\n }\n\n .editor-content {\n display: flex;\n position: relative;\n min-height: 600px;\n }\n\n .editor-panel,\n .preview-panel {\n overflow-y: auto;\n padding: 24px;\n }\n\n .resizer {\n width: 4px;\n background: #e0e0e0;\n cursor: col-resize;\n position: relative;\n flex-shrink: 0;\n transition: background 0.2s;\n }\n\n .resizer:hover,\n .resizer.resizing {\n background: #2196f3;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n left: -2px;\n right: -2px;\n top: 0;\n bottom: 0;\n }\n\n .editor-panel h3,\n .preview-panel h3 {\n margin: 0 0 16px 0;\n font-size: 16px;\n color: #333;\n border-bottom: 2px solid #2196f3;\n padding-bottom: 8px;\n }\n\n .visual-editor {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n\n .editor-section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .color-format-selector {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .color-format-selector label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-format-selector select {\n padding: 6px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .editor-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .editor-field label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .editor-field input[type=\"text\"],\n .editor-field input[type=\"number\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .json-editor {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .json-editor textarea {\n flex: 1;\n padding: 16px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.5;\n resize: none;\n }\n\n .error-message {\n padding: 12px;\n background: #ffebee;\n color: #d32f2f;\n border-radius: 4px;\n margin-top: 8px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .error-dismiss {\n background: none;\n border: none;\n color: #d32f2f;\n font-size: 20px;\n cursor: pointer;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .error-dismiss:hover {\n background: rgba(211, 47, 47, 0.1);\n border-radius: 50%;\n }\n\n .preview-panel {\n border-left: 1px solid #e0e0e0;\n }\n "})]})};function jd(e){const t={};return Object.entries(e).forEach((([e,n])=>{void 0!==n&&(t["--atomix-"+e]=n+"")})),t}function Yd(e){if(!e||"object"!=typeof e)return!1;const t=e;if("palette"in t||"typography"in t||"__isJSTheme"in t)return!1;const n=Object.keys(t);return 0!==n.length&&n.some((e=>/^[a-z]+(-[a-z0-9]+)*$/.test(e)&&"string"==typeof t[e]))}const Wd=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),Kd={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class $d{constructor(e={}){this.listeners=new Set,this.config={...Kd,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&Wd.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){if("undefined"==typeof navigator)return"en";const e=((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-");return e[0]?e[0].toLowerCase():"en"}isRTLLocale(e){return Wd.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,n=document.body;t.setAttribute("dir",e),n?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),n?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(n){Ac().error("Error in RTL direction change listener",n instanceof Error?n:Error(n+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}function Qd(e,t="atomix-theme"){Fc(e,t)}function qd(e="atomix-theme"){Gc(e)}async function Zd(e,t){await async function(e,t){if("undefined"!=typeof window)throw Error("saveCSSFile can only be used in Node.js environment. Use injectCSS() for browser environments.");const n=await import("fs/promises"),a=(await import("path")).dirname(t);await n.mkdir(a,{recursive:!0}),await n.writeFile(t,e,"utf8")}(e,t)}const Xd={"--atomix-button-bg":"background-color","--atomix-button-color":"text color","--atomix-button-padding-x":"horizontal padding","--atomix-button-padding-y":"vertical padding","--atomix-button-border-radius":"border radius","--atomix-button-border-width":"border width","--atomix-button-border-color":"border color","--atomix-button-font-size":"font size","--atomix-button-font-weight":"font weight","--atomix-button-font-family":"font family","--atomix-button-line-height":"line height","--atomix-button-min-width":"minimum width","--atomix-button-min-height":"minimum height","--atomix-button-transition":"transition","--atomix-button-hover-bg":"hover background","--atomix-button-hover-color":"hover text color","--atomix-button-hover-border-color":"hover border color","--atomix-button-active-bg":"active background","--atomix-button-active-color":"active text color","--atomix-button-focus-ring-color":"focus ring color","--atomix-button-focus-ring-width":"focus ring width","--atomix-button-disabled-opacity":"disabled opacity","--atomix-button-disabled-bg":"disabled background","--atomix-button-icon-size":"icon size","--atomix-button-icon-gap":"icon spacing","--atomix-button-spinner-size":"spinner size","--atomix-button-label-font-weight":"label font weight"},Jd={"--atomix-card-bg":"background color","--atomix-card-color":"text color","--atomix-card-padding":"padding","--atomix-card-border-radius":"border radius","--atomix-card-border-width":"border width","--atomix-card-border-color":"border color","--atomix-card-box-shadow":"box shadow","--atomix-card-width":"width","--atomix-card-max-width":"maximum width","--atomix-card-hover-bg":"hover background","--atomix-card-hover-shadow":"hover shadow","--atomix-card-hover-transform":"hover transform","--atomix-card-header-padding":"header padding","--atomix-card-header-bg":"header background","--atomix-card-header-border-bottom":"header border bottom","--atomix-card-body-padding":"body padding","--atomix-card-body-font-size":"body font size","--atomix-card-footer-padding":"footer padding","--atomix-card-footer-bg":"footer background","--atomix-card-footer-border-top":"footer border top","--atomix-card-title-font-size":"title font size","--atomix-card-title-font-weight":"title font weight","--atomix-card-title-color":"title color","--atomix-card-title-margin-bottom":"title margin bottom","--atomix-card-image-border-radius":"image border radius","--atomix-card-image-max-height":"image max height"},eu={"--atomix-input-bg":"background color","--atomix-input-color":"text color","--atomix-input-padding-x":"horizontal padding","--atomix-input-padding-y":"vertical padding","--atomix-input-border-radius":"border radius","--atomix-input-border-width":"border width","--atomix-input-border-color":"border color","--atomix-input-font-size":"font size","--atomix-input-font-family":"font family","--atomix-input-line-height":"line height","--atomix-input-height":"height","--atomix-input-placeholder-color":"placeholder color","--atomix-input-hover-border-color":"hover border color","--atomix-input-focus-border-color":"focus border color","--atomix-input-focus-ring-color":"focus ring color","--atomix-input-focus-ring-width":"focus ring width","--atomix-input-disabled-bg":"disabled background","--atomix-input-disabled-opacity":"disabled opacity","--atomix-input-invalid-border-color":"invalid border color","--atomix-input-valid-border-color":"valid border color"},tu={"--atomix-modal-bg":"background color","--atomix-modal-color":"text color","--atomix-modal-padding":"padding","--atomix-modal-border-radius":"border radius","--atomix-modal-box-shadow":"box shadow","--atomix-modal-width":"width","--atomix-modal-max-width":"maximum width","--atomix-modal-max-height":"maximum height","--atomix-modal-backdrop-bg":"backdrop background","--atomix-modal-backdrop-opacity":"backdrop opacity","--atomix-modal-backdrop-blur":"backdrop blur","--atomix-modal-header-padding":"header padding","--atomix-modal-header-border-bottom":"header border bottom","--atomix-modal-title-font-size":"title font size","--atomix-modal-title-font-weight":"title font weight","--atomix-modal-body-padding":"body padding","--atomix-modal-body-font-size":"body font size","--atomix-modal-footer-padding":"footer padding","--atomix-modal-footer-border-top":"footer border top","--atomix-modal-footer-gap":"footer button gap","--atomix-modal-close-size":"close button size","--atomix-modal-close-color":"close button color","--atomix-modal-close-hover-color":"close button hover color"},nu={"--atomix-dropdown-bg":"background color","--atomix-dropdown-color":"text color","--atomix-dropdown-border-radius":"border radius","--atomix-dropdown-border-width":"border width","--atomix-dropdown-border-color":"border color","--atomix-dropdown-box-shadow":"box shadow","--atomix-dropdown-min-width":"minimum width","--atomix-dropdown-max-height":"maximum height","--atomix-dropdown-padding":"padding","--atomix-dropdown-item-padding":"item padding","--atomix-dropdown-item-font-size":"item font size","--atomix-dropdown-item-hover-bg":"item hover background","--atomix-dropdown-item-hover-color":"item hover color","--atomix-dropdown-item-active-bg":"item active background","--atomix-dropdown-item-active-color":"item active color","--atomix-dropdown-item-disabled-opacity":"item disabled opacity","--atomix-dropdown-divider-color":"divider color","--atomix-dropdown-divider-margin":"divider margin","--atomix-dropdown-header-padding":"header padding","--atomix-dropdown-header-font-size":"header font size","--atomix-dropdown-header-font-weight":"header font weight","--atomix-dropdown-header-color":"header color"},au={"--atomix-badge-bg":"background color","--atomix-badge-color":"text color","--atomix-badge-padding-x":"horizontal padding","--atomix-badge-padding-y":"vertical padding","--atomix-badge-border-radius":"border radius","--atomix-badge-font-size":"font size","--atomix-badge-font-weight":"font weight","--atomix-badge-line-height":"line height","--atomix-badge-icon-size":"icon size","--atomix-badge-icon-gap":"icon spacing"},ru={"--atomix-tabs-bg":"background color","--atomix-tabs-border-color":"border color","--atomix-tabs-border-width":"border width","--atomix-tabs-nav-gap":"nav gap","--atomix-tabs-nav-padding":"nav padding","--atomix-tabs-btn-padding-x":"button horizontal padding","--atomix-tabs-btn-padding-y":"button vertical padding","--atomix-tabs-btn-color":"button color","--atomix-tabs-btn-font-size":"button font size","--atomix-tabs-btn-font-weight":"button font weight","--atomix-tabs-btn-hover-color":"button hover color","--atomix-tabs-btn-active-color":"button active color","--atomix-tabs-btn-active-border-color":"button active border color","--atomix-tabs-btn-active-border-width":"button active border width","--atomix-tabs-panel-padding":"panel padding","--atomix-tabs-panel-bg":"panel background"},ou={"--atomix-progress-bg":"background color","--atomix-progress-height":"height","--atomix-progress-border-radius":"border radius","--atomix-progress-bar-bg":"bar background","--atomix-progress-bar-transition":"bar transition"},iu={"--atomix-tooltip-bg":"background color","--atomix-tooltip-color":"text color","--atomix-tooltip-padding-x":"horizontal padding","--atomix-tooltip-padding-y":"vertical padding","--atomix-tooltip-border-radius":"border radius","--atomix-tooltip-font-size":"font size","--atomix-tooltip-max-width":"maximum width","--atomix-tooltip-box-shadow":"box shadow","--atomix-tooltip-z-index":"z-index","--atomix-tooltip-arrow-size":"arrow size","--atomix-tooltip-arrow-color":"arrow color"},su={"--atomix-checkbox-size":"checkbox size","--atomix-checkbox-bg":"background color","--atomix-checkbox-border-color":"border color","--atomix-checkbox-border-width":"border width","--atomix-checkbox-border-radius":"border radius","--atomix-checkbox-transition":"transition","--atomix-checkbox-checked-bg":"checked background","--atomix-checkbox-checked-border-color":"checked border color","--atomix-checkbox-hover-border-color":"hover border color","--atomix-checkbox-focus-ring-color":"focus ring color","--atomix-checkbox-focus-ring-width":"focus ring width","--atomix-checkbox-disabled-opacity":"disabled opacity","--atomix-checkbox-invalid-border-color":"invalid border color","--atomix-checkbox-icon-size":"icon size","--atomix-checkbox-icon-color":"icon color","--atomix-checkbox-label-gap":"label spacing","--atomix-checkbox-label-font-size":"label font size","--atomix-checkbox-label-color":"label color"},lu={"--atomix-radio-size":"radio size","--atomix-radio-bg":"background color","--atomix-radio-border-color":"border color","--atomix-radio-border-width":"border width","--atomix-radio-transition":"transition","--atomix-radio-checked-bg":"checked background","--atomix-radio-checked-border-color":"checked border color","--atomix-radio-hover-border-color":"hover border color","--atomix-radio-focus-ring-color":"focus ring color","--atomix-radio-focus-ring-width":"focus ring width","--atomix-radio-disabled-opacity":"disabled opacity","--atomix-radio-invalid-border-color":"invalid border color","--atomix-radio-dot-size":"dot size","--atomix-radio-dot-color":"dot color","--atomix-radio-label-gap":"label spacing","--atomix-radio-label-font-size":"label font size","--atomix-radio-label-color":"label color"},cu={Button:Xd,Card:Jd,Input:eu,Modal:tu,Dropdown:nu,Badge:au,Tabs:ru,Progress:ou,Tooltip:iu,Checkbox:su,Radio:lu};function du(e){return cu[e]}function uu(e,t){if(e||t)return e?t?{className:[e.className,t.className].filter(Boolean).join(" "),style:{...e.style,...t.style}}:e:t}function hu(t,n,r){if(!t)return r;if(a.isValidElement(t)||"string"==typeof t||"number"==typeof t)return t;if("object"==typeof t&&null!==t){const a=t;if(a.render&&"function"==typeof a.render)return a.render(n);if(a.component){const t=a.component;return e(t,{...n})}if(void 0!==a.children)return a.children}return r}function mu(e){return"object"==typeof e&&null!==e&&("render"in e||"component"in e||"children"in e)}function pu(...e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:di(t).call(t,((e,t)=>({...e,...t})))}function gu(t="div"){return function({slot:a,children:r,...o}){const i=o;return a?e(n,{children:hu(a,i,r)}):e(t,"string"==typeof t?{...o,children:r}:{...i,children:r})}}function fu(e){return e}function bu(e,t,n){return a.useMemo((()=>hu(e,t,n)),[e,t,n])}function Su(e,t){const{theme:n}=Ed(),a=d((()=>ws(n?.components?.[e]?.cssVars||{},t.cssVars||{})),[n,e,t.cssVars]),r=d((()=>{const a=n?.components?.[e]?.parts||{},r=t.parts||{},o={};return new Set([...Object.keys(a),...Object.keys(r)]).forEach((e=>{o[e]=uu(a[e],r[e])})),o}),[n,e,t.parts]),o=d((()=>[n?.components?.[e]?.className||"",t.className||""].filter(Boolean).join(" ")),[n,e,t.className]),i=d((()=>({...t.style})),[t.style]),s=d((()=>{var e;return di(e=Object.entries(a)).call(e,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}),[a]);return{cssVars:a,parts:r,className:o,style:i,cssVarStyle:s}}function vu(e){const{theme:t}=Ed();return d((()=>t?.components?.[e]?.defaultProps||{}),[t,e])}function Eu(e,t){return d((()=>({...e,...t})),[e,t])}function yu(e,t){var n;return{...di(n=Object.entries(e)).call(n,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{}),...t}}function Nu(e={}){const{configPath:t="atomix.config.ts",required:n=!1}=e,a={prefix:"atomix",theme:{extend:{}}};if("undefined"!=typeof window){if(n)throw Error("loadAtomixConfig: Not available in browser environment. Config loading requires Node.js/SSR environment.");return a}try{const e=require(t),n=e.default||e;if(n&&"object"==typeof n)return n;throw Error("Invalid config format")}catch(r){if(n)throw Error(`Failed to load config from ${t}: ${r.message}`);return a}}function Au(){if("undefined"!=typeof window||"undefined"==typeof process||!process.cwd)return null;try{const e=(()=>{if("undefined"==typeof require)return null;try{const e=["fs","path"];return{fs:require(e[0]),path:require(e[1])}}catch{return null}})();if(!e)return null;const{fs:t,path:n}=e,a=process.cwd(),r=[n.join(a,"atomix.config.ts"),n.join(a,"atomix.config.js"),n.join(a,"atomix.config.mjs")];for(const o of r)if(t.existsSync(o))return o}catch(e){return null}return null}function xu(e){return e}const _u=il,Tu=$s,Cu=hc,Lu=mc,Iu=Object.freeze({__proto__:null,RTLManager:$d,ThemeApplicator:xd,ThemeComparator:Rd,ThemeContext:Sd,ThemeErrorBoundary:Ad,ThemeInspector:Od,ThemeLiveEditor:Hd,ThemePreview:Id,ThemeProvider:vd,ThemeValidator:wd,applyCSSVariables:Ts,applyComponentTheme:pd,applyTheme:Cd,camelToKebab:dd,clearThemes:Bc,createTheme:xc,createThemeRegistry:Ic,createTokens:gc,cssVarsToStyle:Is,deepMerge:Tc,defaultTokens:pc,designTokensToCSSVars:jd,extendTheme:Lc,extractComponentName:Rs,generateCSSVariableName:ld,generateCSSVariables:fc,generateCSSVariablesForSelector:bc,generateClassName:sd,generateComponentCSSVars:md,getAllThemes:kc,getCSSVariable:Ls,getComponentThemeValue:hd,getTheme:Mc,getThemeApplicator:Td,getThemeCount:Pc,getThemeIds:Dc,hasTheme:Rc,injectCSS:Fc,injectTheme:Qd,isCSSInjected:Vc,isDesignTokens:Yd,isValidCSSVariableName:Os,loadThemeFromConfig:bd,loadThemeFromConfigSync:fd,mapSCSSTokensToCSSVars:_s,mergeCSSVars:ws,mergeTheme:Cc,normalizeThemeTokens:cd,registerTheme:wc,removeCSS:Gc,removeCSSVariables:Cs,removeTheme:qd,saveTheme:Zd,themePropertyToCSSVar:ud,unregisterTheme:Oc,useComponentTheme:gd,useHistory:Gd,useTheme:Ed,useThemeTokens:yd});function wu(e,t,n){return Fd({name:e,palette:{primary:{main:t},secondary:n?{main:n}:void 0}})}function Ou(e){return Lc(e,{name:e.name+" Dark",palette:{mode:"dark",background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)"}}})}function Ru(e){const t=[];return e.name||t.push("Theme must have a name"),e.palette||t.push("Theme must have a palette"),e.palette&&!e.palette.primary&&t.push("Theme palette must have a primary color"),{valid:0===t.length,errors:t}}function Mu(e,t=":root"){return id(e,{selector:t,prefix:"atomix"})}function ku(e){return{name:e.name||"Custom Theme",description:e.description,author:e.author,version:e.version||"1.0.0",tags:e.tags||[],supportsDarkMode:"dark"===e.palette?.mode,status:"stable",color:e.palette?.primary?.main||"#7AFFD7"}}function Du(e){var t;return"dark"===e.palette?.mode||!0===e.supportsDarkMode||!!(null==(t=e.a11y?.modes)?void 0:Function.call.bind(Po(t),t))?.("dark")}function Bu(e){return JSON.stringify(e,null,2)}function Pu(e){try{return JSON.parse(e)}catch(t){throw Error("Invalid theme JSON")}}const zu={...uc,...bl,composables:_u,utils:Tu,constants:Lu,types:Cu};export{F as ACCORDION,De as ATOMIX_GLASS,ve as AVATAR,Ee as AVATAR_GROUP,at as Accordion,Si as AnimatedChart,Ei as AreaChart,nt as AtomixGlass,rt as AtomixLogo,Nt as Avatar,At as AvatarGroup,G as BADGE,au as BADGE_CSS_VARS,Re as BLOCK,j as BREADCRUMB,P as BUTTON,Xd as BUTTON_CSS_VARS,z as BUTTON_GROUP,_t as Badge,Ni as BarChart,Lt as Block,It as Breadcrumb,Ai as BubbleChart,kt as Button,Dt as ButtonGroup,U as CALLOUT,fe as CARD,Jd as CARD_CSS_VARS,we as CHART,su as CHECKBOX_CSS_VARS,D as CLASS_PREFIX,Oe as CODE_SNIPPET,cu as COMPONENT_CSS_VARS,Y as COUNTDOWN,zo as Callout,xi as CandlestickChart,Uo as Card,pi as Chart,fi as ChartRenderer,qi as Checkbox,Fi as ColorModeToggle,Tt as Container,Gi as Countdown,le as DATA_TABLE_CLASSES,ce as DATA_TABLE_SELECTORS,_e as DATEPICKER,Ks as DEFAULT_ATOMIX_FONTS,ji as DOTS,Ae as DROPDOWN,nu as DROPDOWN_CSS_VARS,as as DataTable,ls as DatePicker,_i as DonutChart,ts as Dropdown,se as EDGE_PANEL,ds as EdgePanel,jo as ElevationCard,ke as FOOTER,he as FORM,me as FORM_GROUP,pl as Footer,vl as FooterLink,Sl as FooterSection,dl as FooterSocialLink,hs as Form,ps as FormGroup,Ti as FunnelChart,Me as GLASS_CONTAINER,Ci as GaugeChart,ul as Grid,hl as GridCol,W as HERO,Ii as HeatmapChart,El as Hero,pe as INPUT,eu as INPUT_CSS_VARS,yt as Icon,fs as Input,V as LIST,H as LIST_GROUP,Oi as LineChart,yl as List,Nl as ListGroup,Ne as MESSAGES,ye as MODAL,tu as MODAL_CSS_VARS,gl as MasonryGrid,fl as MasonryGridItem,Ul as MegaMenu,Fl as MegaMenuColumn,Gl as MegaMenuLink,Dl as Menu,zl as MenuDivider,Bl as MenuItem,Al as Messages,xl as Modal,Ri as MultiAxisChart,re as NAV,ae as NAVBAR,_l as Nav,Vl as NavDropdown,Tl as NavItem,Cl as Navbar,de as PAGINATION_DEFAULTS,Ce as PHOTOVIEWER,$ as POPOVER,xe as PROGRESS,ou as PROGRESS_CSS_VARS,$i as Pagination,$l as PhotoViewer,ki as PieChart,ql as Popover,Xl as ProductReview,Jl as Progress,ge as RADIO,lu as RADIO_CSS_VARS,ie as RATING,te as RIVER,$d as RTLManager,Di as RadarChart,ll as Radio,Zl as Rating,ec as River,ml as Row,ee as SECTION_INTRO,be as SELECT,oe as SIDE_MENU,k as SIZES,Ie as SLIDER,J as SPINNER,Z as STEPS,Bi as ScatterChart,tc as SectionIntro,sl as Select,kl as SideMenu,Ol as SideMenuItem,wl as SideMenuList,nc as Slider,Rt as Spinner,ac as Steps,q as TAB,ru as TABS_CSS_VARS,X as TESTIMONIAL,Se as TEXTAREA,M as THEME_COLORS,B as THEME_NAMING,ue as TODO,Q as TOGGLE,K as TOOLTIP,iu as TOOLTIP_CSS_VARS,rc as Tabs,oc as Testimonial,cl as Textarea,xd as ThemeApplicator,Rd as ThemeComparator,Sd as ThemeContext,Ad as ThemeErrorBoundary,Od as ThemeInspector,Hd as ThemeLiveEditor,Id as ThemePreview,vd as ThemeProvider,wd as ThemeValidator,ic as Todo,sc as Toggle,lc as Tooltip,Pi as TreemapChart,ne as UPLOAD,cc as Upload,Te as VIDEO_PLAYER,dc as VideoPlayer,zi as WaterfallChart,Ts as applyCSSVariables,yu as applyCSSVarsToStyle,pd as applyComponentTheme,ks as applyPartStyles,Cd as applyTheme,dd as camelToKebab,Bc as clearThemes,_u as composables,Lu as constants,Ds as createCSSVarStyle,Ou as createDarkVariant,Fs as createDebugAttrs,js as createFontPreloadLink,zs as createPartProps,gu as createSlotComponent,fu as createSlotProps,xc as createTheme,Ic as createThemeRegistry,gc as createTokens,Is as cssVarsToStyle,Tc as deepMerge,zu as default,pc as defaultTokens,xu as defineConfig,jd as designTokensToCSSVars,Bu as exportTheme,Lc as extendTheme,Rs as extractComponentName,Hs as extractYouTubeId,ld as generateCSSVariableName,fc as generateCSSVariables,bc as generateCSSVariablesForSelector,sd as generateClassName,md as generateComponentCSSVars,Ws as generateFontPreloadTags,Gs as generateUUID,kc as getAllThemes,Ls as getCSSVariable,du as getComponentCSSVars,hd as getComponentThemeValue,Ps as getPartStyles,Mc as getTheme,Td as getThemeApplicator,Pc as getThemeCount,Dc as getThemeIds,ku as getThemeMetadata,Us as hasCustomization,Rc as hasTheme,Pu as importTheme,Fc as injectCSS,Qd as injectTheme,Vc as isCSSInjected,Yd as isDesignTokens,mu as isSlot,Os as isValidCSSVariableName,Vs as isYouTubeUrl,Nu as loadAtomixConfig,bd as loadThemeFromConfig,fd as loadThemeFromConfigSync,_s as mapSCSSTokensToCSSVars,ws as mergeCSSVars,Ms as mergeClassNames,Bs as mergeComponentProps,uu as mergePartStyles,pu as mergeSlots,Cc as mergeTheme,cd as normalizeThemeTokens,Ys as preloadFonts,wu as quickTheme,wc as registerTheme,Gc as removeCSS,Cs as removeCSSVariables,qd as removeTheme,hu as renderSlot,Au as resolveConfigPath,Zd as saveTheme,Le as sliderConstants,Du as supportsDarkMode,Iu as theme,ud as themePropertyToCSSVar,Mu as themeToCSS,Cu as types,Oc as unregisterTheme,Be as useAccordion,tt as useAtomixGlass,xt as useBadge,yi as useBarChart,Ct as useBlock,el as useBreadcrumb,wt as useButton,Ho as useCard,al as useChartData,ol as useChartInteraction,rl as useChartScale,Qi as useCheckbox,Su as useComponentCustomization,vu as useComponentDefaultProps,gd as useComponentTheme,Hi as useDataTable,cs as useEdgePanel,us as useForm,ms as useFormGroup,qs as useGlassContainer,bs as useHero,Gd as useHistory,gs as useInput,wi as useLineChart,Eu as useMergedProps,tl as useModal,Es as useNav,Ns as useNavDropdown,ys as useNavItem,vs as useNavbar,Wi as usePagination,Mi as usePieChart,Zs as useRadio,Ss as useRiver,Xs as useSelect,As as useSideMenu,xs as useSideMenuItem,nl as useSlider,bu as useSlot,Ot as useSpinner,Js as useTextarea,Ed as useTheme,yd as useThemeTokens,Qs as useTodo,Tu as utils,Ru as validateTheme};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|