@alma-oss/spirit-web-react 4.0.0 → 4.1.0
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/bundles/web-react.umd.js +6 -0
- package/bundles/web-react.umd.js.map +1 -1
- package/bundles/web-react.umd.min.js +1 -1
- package/bundles/web-react.umd.min.js.map +1 -1
- package/components/Accordion/Accordion.cjs.map +1 -1
- package/components/ActionGroup/ActionGroup.cjs.map +1 -1
- package/components/Alert/Alert.cjs.map +1 -1
- package/components/Avatar/Avatar.cjs +3 -0
- package/components/Avatar/Avatar.cjs.map +1 -1
- package/components/Avatar/Avatar.d.ts +5 -3
- package/components/Avatar/Avatar.js +3 -0
- package/components/Avatar/Avatar.js.map +1 -1
- package/components/Avatar/useAvatarStyleProps.d.ts +4 -5
- package/components/Avatar/useAvatarStyleProps.js.map +1 -1
- package/components/Box/Box.cjs +2 -0
- package/components/Box/Box.cjs.map +1 -1
- package/components/Box/Box.d.ts +2 -0
- package/components/Box/Box.js +2 -0
- package/components/Box/Box.js.map +1 -1
- package/components/Breadcrumbs/Breadcrumbs.cjs.map +1 -1
- package/components/Button/Button.cjs.map +1 -1
- package/components/Card/Card.cjs.map +1 -1
- package/components/Checkbox/Checkbox.cjs.map +1 -1
- package/components/Collapse/Collapse.cjs.map +1 -1
- package/components/Container/Container.cjs.map +1 -1
- package/components/Dialog/Dialog.cjs.map +1 -1
- package/components/Divider/Divider.cjs.map +1 -1
- package/components/Drawer/Drawer.cjs.map +1 -1
- package/components/Dropdown/Dropdown.cjs.map +1 -1
- package/components/EmptyState/EmptyState.cjs.map +1 -1
- package/components/Field/Field.cjs.map +1 -1
- package/components/FieldGroup/FieldGroup.cjs.map +1 -1
- package/components/FileUploader/FileUploader.cjs.map +1 -1
- package/components/Flex/Flex.cjs.map +1 -1
- package/components/Footer/Footer.cjs.map +1 -1
- package/components/Grid/Grid.cjs.map +1 -1
- package/components/Header/Header.cjs.map +1 -1
- package/components/Heading/Heading.cjs.map +1 -1
- package/components/Icon/Icon.cjs.map +1 -1
- package/components/IconBox/IconBox.cjs +2 -0
- package/components/IconBox/IconBox.cjs.map +1 -1
- package/components/Item/Item.cjs.map +1 -1
- package/components/Link/Link.cjs.map +1 -1
- package/components/Matrix/Matrix.cjs.map +1 -1
- package/components/Modal/Modal.cjs.map +1 -1
- package/components/Navigation/Navigation.cjs +3 -0
- package/components/Navigation/Navigation.cjs.map +1 -1
- package/components/Pagination/Pagination.cjs.map +1 -1
- package/components/PartnerLogo/PartnerLogo.cjs.map +1 -1
- package/components/Pill/Pill.cjs.map +1 -1
- package/components/PricingPlan/PricingPlan.cjs.map +1 -1
- package/components/ProductLogo/ProductLogo.cjs.map +1 -1
- package/components/Radio/Radio.cjs.map +1 -1
- package/components/ScrollView/ScrollView.cjs.map +1 -1
- package/components/Section/Section.cjs.map +1 -1
- package/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/components/Select/Select.cjs.map +1 -1
- package/components/Skeleton/Skeleton.cjs.map +1 -1
- package/components/SkipLink/SkipLink.cjs.map +1 -1
- package/components/Slider/Slider.cjs.map +1 -1
- package/components/Spinner/Spinner.cjs.map +1 -1
- package/components/SplitButton/SplitButton.cjs.map +1 -1
- package/components/Stack/Stack.cjs.map +1 -1
- package/components/Tabs/Tabs.cjs.map +1 -1
- package/components/Tag/Tag.cjs.map +1 -1
- package/components/Text/Text.cjs.map +1 -1
- package/components/TextArea/TextArea.cjs.map +1 -1
- package/components/TextField/TextField.cjs.map +1 -1
- package/components/TextFieldBase/TextFieldBase.cjs.map +1 -1
- package/components/Timeline/Timeline.cjs.map +1 -1
- package/components/Toast/Toast.cjs.map +1 -1
- package/components/Toggle/Toggle.cjs.map +1 -1
- package/components/Tooltip/Tooltip.cjs.map +1 -1
- package/components/Truncate/Truncate.cjs.map +1 -1
- package/components/UNSTABLE_Header/UNSTABLE_Header.cjs.map +1 -1
- package/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
- package/components/components.cjs +5 -0
- package/components/components.cjs.map +1 -1
- package/hooks/hooks.cjs.map +1 -1
- package/index.cjs +5 -0
- package/index.cjs.map +1 -1
- package/package.json +1 -1
- package/spirit-web-react.cjs +5 -0
- package/spirit-web-react.cjs.map +1 -1
- package/spirit-web-react.min.cjs +1 -1
- package/types/avatar.d.ts +5 -6
- package/types/box.d.ts +2 -2
- package/types/heading.d.ts +3 -7
- package/types/shared/element.d.ts +20 -2
- package/types/shared/index.d.ts +1 -0
- package/types/shared/index.js +1 -0
- package/types/shared/index.js.map +1 -1
- package/types/shared/shared.cjs.map +1 -1
- package/types/shared/text.d.ts +9 -0
- package/types/text.d.ts +2 -7
- package/types/types.cjs.map +1 -1
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
Copyright (c) 2018 Jed Watson.
|
|
13
13
|
Licensed under the MIT License (MIT), see
|
|
14
14
|
http://jedwatson.github.io/classnames
|
|
15
|
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";s.r(a),s.d(a,{Accordion:()=>le,AccordionContent:()=>Yt,AccordionContext:()=>S,AccordionHeader:()=>yt,AccordionItem:()=>ye,AccordionItemContext:()=>de,ActionGroup:()=>xn,Alert:()=>Nn,AlignmentX:()=>ke,AlignmentXExtended:()=>De,AlignmentY:()=>Le,AlignmentYExtended:()=>$e,AttachmentActionButton:()=>ra,AttachmentDismissButton:()=>sa,Avatar:()=>$n,BREAKPOINT_MOBILE:()=>F,BackgroundColors:()=>ze,BackgroundGradients:()=>Qe,BackgroundStyleProps:()=>_,BorderColors:()=>Be,BorderRadii:()=>Fe,BorderRadiusStyleProps:()=>I,BorderStyles:()=>He,BorderWidths:()=>Ue,Box:()=>zn,Breadcrumbs:()=>sr,BreadcrumbsItem:()=>nr,Button:()=>jr,ButtonLink:()=>Rr,CLASS_NAME_OPEN:()=>Dt,Card:()=>Mr,CardArtwork:()=>Ur,CardBody:()=>Xr,CardEyebrow:()=>Yr,CardFooter:()=>Jr,CardLink:()=>ro,CardLogo:()=>so,CardMedia:()=>fo,CardSizes:()=>lo,CardTitle:()=>go,Checkbox:()=>Lo,ClassNamePrefixConsumer:()=>f,ClassNamePrefixProvider:()=>d,Collapse:()=>Xt,ColorPrefixes:()=>Fl,ComponentButtonColors:()=>Ve,Container:()=>Go,ContainerTokenSizes:()=>rt,ControlButton:()=>ti,DEBOUNCE_DELAY:()=>im,DEFAULT_BUTTON_LABEL:()=>Ls,DEFAULT_EDIT_BUTTON_LABEL:()=>$s,DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE:()=>_s,DEFAULT_ERROR_MESSAGE_QUEUE_DUPLICITY:()=>Is,DEFAULT_ERROR_MESSAGE_QUEUE_LIMIT:()=>Rs,DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE:()=>ks,DEFAULT_FILE_QUEUE_LIMIT:()=>Cs,DEFAULT_FILE_SIZE_LIMIT:()=>Ts,DEFAULT_ICON_NAME:()=>Ds,DEFAULT_TOAST_AUTO_CLOSE_INTERVAL:()=>Og,DEFAULT_TOAST_COLOR:()=>gg,Dialog:()=>fi,Direction:()=>Jt,DirectionAxis:()=>tn,DirectionExtended:()=>en,DisplayStyleProps:()=>$,Divider:()=>bi,Drawer:()=>wi,DrawerCloseButton:()=>ki,DrawerConsumer:()=>Pi,DrawerPanel:()=>$i,DrawerProvider:()=>vi,Dropdown:()=>Ji,DropdownContext:()=>qi,DropdownFullWidthModes:()=>OO,DropdownPopover:()=>ss,DropdownTrigger:()=>rs,EDGE_DETECTION_INACCURACY_PX:()=>sm,EmotionColors:()=>We,Emphasis:()=>Ye,EmptyState:()=>vs,EmptyStateSection:()=>xs,FieldGroup:()=>ws,FileUploader:()=>Xs,FileUploaderAttachment:()=>ga,FileUploaderCropCSS:()=>Ms,FileUploaderInput:()=>Ks,FileUploaderList:()=>ea,FillVariants:()=>it,Flex:()=>hn,Footer:()=>Sa,Grid:()=>_a,GridItem:()=>La,HEADER_ACTIONS_COLOR_DEFAULT:()=>Ma,HEADER_COLOR_DEFAULT:()=>$a,HEADER_DIALOG_CLOSE_BUTTON_LABEL_DEFAULT:()=>Ba,HEADER_MENU_TOGGLE_LABEL_DEFAULT:()=>Fa,Header:()=>Va,HeaderButton:()=>Xa,HeaderDesktopActions:()=>Qa,HeaderDialog:()=>rl,HeaderDialogActions:()=>sl,HeaderDialogButton:()=>ll,HeaderDialogCloseButton:()=>ul,HeaderDialogConsumer:()=>Ja,HeaderDialogLink:()=>ml,HeaderDialogNav:()=>bl,HeaderDialogNavItem:()=>Ol,HeaderDialogProvider:()=>Za,HeaderDialogText:()=>vl,HeaderLink:()=>xl,HeaderMobileActions:()=>wl,HeaderNav:()=>Cl,HeaderNavItem:()=>Nl,Heading:()=>Ll,HeadingStyleProps:()=>L,HelperText:()=>wo,ICON_BOX_SIZE:()=>yg,IMAGE_DIMENSION:()=>As,IMAGE_PREVIEW_BASE64_MAX_WIDTH:()=>Ns,Icon:()=>dt,IconBox:()=>Ql,IconsConsumer:()=>Oe,IconsProvider:()=>ge,Intensity:()=>qe,Item:()=>tc,Label:()=>Eo,Link:()=>Qn,LinkColors:()=>Xe,Matrix:()=>cc,Modal:()=>gc,ModalBody:()=>vc,ModalCloseButton:()=>xc,ModalConsumer:()=>dc,ModalDialog:()=>Cc,ModalFooter:()=>_c,ModalHeader:()=>Dc,ModalProvider:()=>uc,Navigation:()=>Hc,NavigationAction:()=>Xc,NavigationAvatar:()=>Qc,NavigationItem:()=>ep,NoSsr:()=>np,ObjectFit:()=>ao,PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL:()=>gp,PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL:()=>bp,PaddingStyleProps:()=>k,Pagination:()=>sp,PaginationButtonLink:()=>cp,PaginationItem:()=>dp,PaginationLink:()=>yp,PaginationLinkNext:()=>vp,PaginationLinkPrevious:()=>xp,PartnerLogo:()=>Rp,Pill:()=>Fp,PillColorsExtended:()=>kp,Placements:()=>Ke,Position:()=>Om,PricingPlan:()=>Xp,PricingPlanBody:()=>Gf,PricingPlanFooter:()=>Qf,PricingPlanHeader:()=>Qp,ProductLogo:()=>Jf,PropsConsumer:()=>yr,PropsProvider:()=>mr,Radio:()=>om,SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END:()=>am,SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START:()=>lm,SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END:()=>cm,SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START:()=>pm,SCROLL_VIEW_DEFAULT_DIRECTION:()=>um,SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR:()=>dm,STYLE_SPACING_AUTO:()=>B,ScrollView:()=>xm,ScrollViewArrows:()=>gm,Section:()=>Nm,SegmentedControl:()=>Mm,SegmentedControlItem:()=>Hm,Select:()=>Xm,ShapeVariants:()=>st,Sizes:()=>Ze,SizesExtended:()=>Je,SkeletonHeading:()=>oy,SkeletonItem:()=>Qm,SkeletonShape:()=>uy,SkeletonText:()=>ey,SkipLink:()=>gy,Slider:()=>xy,SpacingStyleProp:()=>R,Spinner:()=>vr,SpiritBreakpoints:()=>hO,SplitButton:()=>Ty,Stack:()=>bs,StackItem:()=>Ry,TOAST_BAR_CLOSE_BUTTON_LABEL_DEFAULT:()=>bg,TOOLTIP_TRIGGER:()=>jf,TRANSITIONING_STYLES:()=>mg,TRANSITION_DURATION:()=>fg,TabContent:()=>Ly,TabContext:()=>Hy,TabItem:()=>Xy,TabLink:()=>Qy,TabList:()=>Jy,TabPane:()=>nb,Tabs:()=>ob,TabsConsumer:()=>By,TabsProvider:()=>My,Tag:()=>mb,TagColorsExtended:()=>lb,Text:()=>vb,TextAlignments:()=>Me,TextArea:()=>$b,TextColors:()=>Ge,TextField:()=>Bb,TextFieldBase:()=>kb,TextHyphens:()=>yO,TextStyleProps:()=>D,TextWordBreaks:()=>bO,ThemeStyleProps:()=>M,Timeline:()=>Gb,TimelineContent:()=>Qb,TimelineHeading:()=>Jb,TimelineMarker:()=>rg,TimelineStep:()=>ag,Toast:()=>dg,ToastBar:()=>Tg,ToastBarLink:()=>kg,ToastBarMessage:()=>Ng,ToastColorsExtended:()=>hg,Toggle:()=>Vg,Tooltip:()=>Nf,TooltipCloseButton:()=>$f,TooltipPopover:()=>Ff,TooltipTrigger:()=>kf,Truncate:()=>iO,TruncateModes:()=>Yg,UNDERLINED_OPTIONS:()=>Vn,UNSTABLE_Header:()=>pO,UNSTABLE_HeaderLogo:()=>mO,UncontrolledAccordion:()=>Zt,UncontrolledCollapse:()=>Ho,UncontrolledDropdown:()=>ps,UncontrolledFileUploader:()=>Pa,UncontrolledPagination:()=>Tp,UncontrolledSplitButton:()=>Ny,UncontrolledTabs:()=>ab,UncontrolledToast:()=>Bg,UncontrolledTooltip:()=>qg,ValidationStates:()=>ot,ValidationText:()=>No,VisuallyHidden:()=>Ni,applyClassNamePrefix:()=>y,applyColor:()=>b,applySize:()=>g,applyTheme:()=>O,base64ToByteArray:()=>fa,camelCaseToKebabCase:()=>H,compose:()=>_n,debounce:()=>hm,delayedCallback:()=>IO,fullWidthModeKeys:()=>Ui,generateColorsObject:()=>vO,generateResponsiveClassNames:()=>Vl,generateResponsiveStylePropsClasses:()=>pn,generateStaticStylePropsClasses:()=>cn,generateStylePropsClassNames:()=>un,getAccentBackgroundColors:()=>xO,getAccentBorderColors:()=>SO,getAccentColorNames:()=>AO,getAccentTextColors:()=>PO,getAttachmentInput:()=>pa,getAttachmentMetaInput:()=>ua,getEmotionBackgroundColors:()=>jO,getEmotionBorderColors:()=>wO,getEmotionColorNames:()=>NO,getEmotionTextColors:()=>EO,getNeutralBackgroundColors:()=>CO,getNeutralTextColors:()=>TO,getTextColorNames:()=>_O,htmlReactParser:()=>Se,image2Base64Preview:()=>da,isDirectionHorizontal:()=>nn,isEmpty:()=>Q,isEmptyArray:()=>G,isEmptyObject:()=>q,isEmptyString:()=>X,isEnumerable:()=>Y,isNullish:()=>W,isResponsive:()=>zl,isSSR:()=>$t,kebabCaseToCamelCase:()=>U,kebabCaseToCamelCaseValues:()=>z,mergeStyleProps:()=>ie,stringOrObjectKebabCaseToCamelCase:()=>V,toPascalCase:()=>ln,truncateByCharacters:()=>Kg,truncateByLines:()=>Zg,truncateByWords:()=>Qg,useAccordion:()=>o,useAccordionAriaProps:()=>p,useAccordionStyleProps:()=>v,useAlertStyleProps:()=>Sn,useAlignmentClass:()=>fn,useAriaDescribedBy:()=>Oo,useAriaIds:()=>ho,useAvatarStyleProps:()=>kn,useBoxStyleProps:()=>Bn,useBreadcrumbsStyleProps:()=>Zn,useButtonLinkProps:()=>Sr,useButtonLinkStyleProps:()=>Ar,useButtonProps:()=>lr,useButtonStyleProps:()=>dr,useCancelEvent:()=>si,useCardStyleProps:()=>kr,useCheckboxStyleProps:()=>Ro,useClassNamePrefix:()=>h,useClick:()=>ar,useClickOutside:()=>ri,useCollapse:()=>$o,useCollapseAriaProps:()=>kt,useCollapseStyleProps:()=>Lt,useContainerStyleProps:()=>zo,useControlButtonProps:()=>qo,useControlButtonStyleProps:()=>Ko,useDefaultResponsiveRowsStyle:()=>oc,useDeprecationMessage:()=>At,useDialog:()=>pi,useDimensionStyle:()=>nc,useDirectionClass:()=>gO,useDividerStyleProps:()=>mi,useDragAndDrop:()=>Gs,useDrawerContext:()=>Ei,useDrawerStyleProps:()=>xi,useDropdown:()=>as,useDropdownAriaProps:()=>zi,useDropdownStyleProps:()=>Qi,useEmptyStateStyleProps:()=>gs,useFileQueue:()=>Oa,useFileUploaderAttachment:()=>ma,useFileUploaderInput:()=>qs,useFileUploaderStyleProps:()=>zs,useFlexStyleProps:()=>yn,useGridStyleProps:()=>Ta,useHeaderDialogContext:()=>el,useHeaderStyleProps:()=>Ha,useHeadingStyleProps:()=>Il,useIcon:()=>ve,useIconBoxColors:()=>Ul,useIconBoxStyleProps:()=>Xl,useIconName:()=>wn,useIconStyleProps:()=>lt,useIsomorphicLayoutEffect:()=>ni,useItemStyleProps:()=>Zl,useLastActiveFocus:()=>gi,useLinkStyleProps:()=>Xn,useMatrixStyleProps:()=>ic,useModalContext:()=>fc,useModalStyleProps:()=>mc,useNavigationActionProps:()=>Uc,useNavigationStyleProps:()=>$c,useOpenItem:()=>w,usePaginationStyleProps:()=>rp,usePartnerLogoStyleProps:()=>Ap,usePillStyleProps:()=>Lp,usePricingPlanStyleProps:()=>Up,usePropsContext:()=>br,useRadioStyleProps:()=>tm,useResizeObserver:()=>Ft,useScrollControl:()=>ci,useScrollPosition:()=>vm,useScrollViewArrows:()=>fm,useScrollViewStyleProps:()=>mm,useSectionSizeProps:()=>Sm,useSectionStyleProps:()=>wm,useSegmentedControl:()=>Um,useSegmentedControlStyleProps:()=>km,useSelectStyleProps:()=>zm,useSkeletonStyleProps:()=>qm,useSkipLinkStyleProps:()=>fy,useSliderStyleProps:()=>hy,useSpacingStyle:()=>rn,useSpinnerStyleProps:()=>Or,useSplitButtonStyleProps:()=>jy,useStyleProps:()=>oe,useTab:()=>ib,useTabContext:()=>Fy,useTabsStyleProps:()=>zy,useTagStyleProps:()=>pb,useTextStyleProps:()=>bb,useTimelineStyleProps:()=>zb,useToast:()=>Lg,useToggle:()=>Kp,useToggleStyleProps:()=>Hg,useTooltip:()=>Wg,useTooltipStyleProps:()=>Tf,useTruncateStyleProps:()=>tO,useTruncatedText:()=>Jg,useUnstableHeaderStyleProps:()=>e,useWrapClass:()=>an});var e={};s.r(e),s.d(e,{useUnstableHeaderStyleProps:()=>aO});var t=s(932),n=s.t(t,2),r=s.n(t);const o=({defaultOpen:e,stayOpen:n})=>{const[r,o]=(0,t.useState)(e);return{open:r,toggle:e=>{n?Array.isArray(r)?(null==r?void 0:r.includes(e))?o(r.filter((t=>t!==e))):o([...r,e]):o([e]):o(r===e?void 0:e)}}},i="aria-expanded",l="aria-controls",c="aria-labelledby",p=({id:e,isOpen:t})=>{const n=`${e}_Header`,r=`${e}_Content`;return{headerProps:{id:n},triggerProps:{[i]:t,[l]:r},contentProps:{id:r,[c]:n}}},u=(0,t.createContext)(undefined),d=u.Provider,f=u.Consumer,m=u,y=e=>t=>null!=e&&""!==e?`${e}-${t}`:t,b=e=>t=>`${t}--${e}`,g=e=>t=>`${t}--${e}`,O=e=>t=>`${t}--${e}`,h=e=>{const n=(0,t.useContext)(m);let r=e;return e&&n?r=y(n)(e):n&&(r=n),r},v=()=>{const e=h("Accordion");return{classProps:{root:e,item:`${e}__item`,header:`${e}__itemHeader`,toggle:`${e}__itemToggle`,side:`${e}__itemSide`,slot:`${e}__itemSlot`,icon:`${e}__itemIcon`,content:`${e}__content`}}},P={open:void 0,toggle:()=>null},E=(0,t.createContext)(P),x=E.Provider,j=(E.Consumer,()=>(0,t.useContext)(E)),S=E,w=e=>{const{open:t}=j();return{isOpen:(n=e,!(!n||n!==t&&!(null==t?void 0:t.includes(n))))};var n};var T=s(373),C=s.n(T);const A="production",N=(e,t)=>{if("production"!==A){if(e)return;const n=`Warning: ${t}`;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}},_={backgroundGradient:"bg-gradient"},I={borderRadius:"rounded"},R={margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginX:"mx",marginY:"my"},k={padding:"p",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",paddingX:"px",paddingY:"py"},D={isTextBalanced:"text-wrap-pretty",textAlignment:"text",textHyphens:"text-hyphens",textWordBreak:"text-word-break"},L={isTextBalanced:"text-wrap-balance"},$={hideOn:"d",hideFrom:"d"},M={theme:""},B="auto",F="mobile",H=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U=e=>e.replace(/-([a-z])/g,(e=>e[1].toUpperCase())),z=e=>{if("object"==typeof e&&null!==e){const t={};for(const[n,r]of Object.entries(e))t[n]="string"==typeof r?U(r):r;return t}return e},V=e=>"string"==typeof e?U(e):"object"==typeof e&&null!==e?z(e):e,W=e=>null==e,X=e=>"string"==typeof e&&""===e.trim(),G=e=>Array.isArray(e)&&0===e.length,q=e=>"object"==typeof e&&null!==e&&0===Object.keys(e).length,Y=e=>{if("object"==typeof e&&null!==e)for(const t in e)if(Object.hasOwnProperty.call(e,t))return!0;return!1},Q=e=>!!W(e)||(!!X(e)||(!!G(e)||(!!q(e)||(Y(e),!1)))),K="-",Z=e=>(e=>"string"==typeof e&&e.startsWith("space-"))(e)?(e=>e===B?B:e.replace(/[^0-9]/g,""))(e):e,J=(e,t,n,r)=>{switch(e){case"hideOn":return((e,t,n)=>(Array.isArray(t)?t:[t]).map((t=>y(n)(`${e}${K}only${K}${t}${K}none`))))(t,n,r);case"hideFrom":return((e,t,n)=>{const r=t===F?"":`${K}${t}`;return[y(n)(`${e}${r}${K}none`)]})(t,n,r);default:return[]}},ee=(e,t,n,r)=>{if(t===M.theme){if("string"!=typeof n)return[];const e=H(n);return[y(r)(e)]}return e in $?J(e,t,n,r):"boolean"==typeof n?n?[y(r)(t)]:[]:"string"==typeof n?[y(r)(`${t}-${Z(n)}`)]:((e,t,n)=>Object.keys(t).reduce(((r,o)=>{const i=t[o];if("string"==typeof i){const t=Z(i),s=o===F?"":`${K}${o}`;r.push(y(n)(`${e}${s}${K}${t}`))}return r}),[]))(t,n,r)},te=(e,t,n,r={includesKey:!0})=>{const o=(i=e,s=t,Object.keys(i).includes(s));var i,s;return(r.includesKey?o:!o)&&!Q(n)},ne=(e,t="",n={})=>{const r=Object.assign(Object.assign(Object.assign(Object.assign({},R),$),M),n),o=Object.entries(e);return{styleUtilities:o.reduce(((e,[n,o])=>{if(te(r,n,o)){const i=r[n];return[...e,...ee(n,i,o,t)]}return e}),[]),props:o.reduce(((e,[t,n])=>te(r,t,n,{includesKey:!1})?Object.assign(Object.assign({},e),{[t]:n}):e),{})}};var re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function oe(e,n){const r=(0,t.useContext)(m),{UNSAFE_className:o,UNSAFE_style:i}=e,s=re(e,["UNSAFE_className","UNSAFE_style"]),a=Object.assign({theme:M.theme},null!=n?n:{}),{styleUtilities:l,props:c}=ne(s,r,a),p=Object.assign({},i);c.className&&(N(!1,"The className prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.className),c.style&&(N(!1,"The style prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.style);return{styleProps:{style:Object.keys(p).length>0?p:void 0,className:C()(o,...l)||void 0},props:c}}function ie(e,t){const n="string"!=typeof e&&!!(null==e?void 0:e.spiritComponent),r=e=>"object"==typeof e&&null!==e,o=Object.values(t).flatMap((e=>"string"==typeof e?[e]:r(e)?[e.className,e.UNSAFE_className].filter(Boolean):[])).filter(Boolean).join(" "),i=Object.values(t).filter(r).reduce(((e,t)=>{if(!r(t))return e;const n=t,o=n.style||n.UNSAFE_style||{},i=(e=>r(e)?Object.entries(e).filter((([e])=>e.startsWith("--"))).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{}):{})(t);return Object.assign(Object.assign(Object.assign({},e),o),i)}),{});return n?{UNSAFE_className:o,UNSAFE_style:i}:{className:o,style:i}}var se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ae=e=>{const{children:t,elementType:n="section",open:o,toggle:i}=e,s=se(e,["children","elementType","open","toggle"]),{classProps:a}=v(),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.root,styleProps:l}),u={open:o,toggle:i};return r().createElement(n,Object.assign({},c,p),r().createElement(x,{value:u},t))};ae.spiritComponent="Accordion";const le=ae,ce=(0,t.createContext)({id:""}),pe=ce.Provider,ue=(ce.Consumer,()=>(0,t.useContext)(ce)),de=ce;var fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const me=e=>{const{children:t,elementType:n="article",id:o}=e,i=fe(e,["children","elementType","id"]),{classProps:s}=v(),{styleProps:a,props:l}=oe(i),c=ie(n,{classProps:s.item,styleProps:a}),p={id:o};return r().createElement(n,Object.assign({},l,{id:o},c),r().createElement(pe,{value:p},t))};me.spiritComponent="AccordionItem";const ye=me,be=(0,t.createContext)(undefined),ge=be.Provider,Oe=be.Consumer,he=be,ve=e=>{const n=(0,t.useContext)(he);return null!=n&&null!=n[e]?n[e]:(N(!1,`The ${e} icon is missing from your assets or icon map provided by the IconsProvider. Please make sure you have provided all icons needed by used components.`),"")};var Pe=s(72);const Ee=Pe.default||Pe;var xe=s(471);const je=xe.default||xe,Se=e=>{if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const t="function"==typeof Ee.default?Ee.default:Ee;return("function"==typeof je.default?je.default:je)(t(e))},we="spirit-",Te={padding:{mobile:"16px",tablet:"32px",desktop:"32px"},xsmall:{maxWidth:"480px"},small:{maxWidth:"640px"},medium:{maxWidth:"768px"},large:{maxWidth:"1024px"},maxWidth:"1280px",xlarge:{maxWidth:"1280px"}},Ce=(Symbol.toStringTag,Symbol.toStringTag,{"01":{backgroundBasic:"var(--spirit-color-accent-01-background-basic)",backgroundSubtle:"var(--spirit-color-accent-01-background-subtle)",borderBasic:"var(--spirit-color-accent-01-border-basic)",borderSubtle:"var(--spirit-color-accent-01-border-subtle)",contentBasic:"var(--spirit-color-accent-01-content-basic)",contentSubtle:"var(--spirit-color-accent-01-content-subtle)",stateActive:"var(--spirit-color-accent-01-state-active)",stateDefault:"var(--spirit-color-accent-01-state-default)",stateHover:"var(--spirit-color-accent-01-state-hover)"},"02":{backgroundBasic:"var(--spirit-color-accent-02-background-basic)",backgroundSubtle:"var(--spirit-color-accent-02-background-subtle)",borderBasic:"var(--spirit-color-accent-02-border-basic)",borderSubtle:"var(--spirit-color-accent-02-border-subtle)",contentBasic:"var(--spirit-color-accent-02-content-basic)",contentSubtle:"var(--spirit-color-accent-02-content-subtle)",stateActive:"var(--spirit-color-accent-02-state-active)",stateDefault:"var(--spirit-color-accent-02-state-default)",stateHover:"var(--spirit-color-accent-02-state-hover)"}}),Ae={button:{plain:{border:"var(--spirit-color-component-button-plain-border)",content:"var(--spirit-color-component-button-plain-content)",stateActive:"var(--spirit-color-component-button-plain-state-active)",stateDefault:"var(--spirit-color-component-button-plain-state-default)",stateHover:"var(--spirit-color-component-button-plain-state-hover)"},primary:{border:"var(--spirit-color-component-button-primary-border)",content:"var(--spirit-color-component-button-primary-content)",stateActive:"var(--spirit-color-component-button-primary-state-active)",stateDefault:"var(--spirit-color-component-button-primary-state-default)",stateHover:"var(--spirit-color-component-button-primary-state-hover)"},secondary:{border:"var(--spirit-color-component-button-secondary-border)",content:"var(--spirit-color-component-button-secondary-content)",stateActive:"var(--spirit-color-component-button-secondary-state-active)",stateDefault:"var(--spirit-color-component-button-secondary-state-default)",stateHover:"var(--spirit-color-component-button-secondary-state-hover)"},tertiary:{border:"var(--spirit-color-component-button-tertiary-border)",content:"var(--spirit-color-component-button-tertiary-content)",stateActive:"var(--spirit-color-component-button-tertiary-state-active)",stateDefault:"var(--spirit-color-component-button-tertiary-state-default)",stateHover:"var(--spirit-color-component-button-tertiary-state-hover)"}},header:{background:"var(--spirit-color-component-header-background)",border:"var(--spirit-color-component-header-border)",itemBackgroundStateActive:"var(--spirit-color-component-header-item-background-state-active)",itemBackgroundStateDefault:"var(--spirit-color-component-header-item-background-state-default)",itemBackgroundStateHover:"var(--spirit-color-component-header-item-background-state-hover)",itemBackgroundStateSelected:"var(--spirit-color-component-header-item-background-state-selected)",itemStateActive:"var(--spirit-color-component-header-item-state-active)",itemStateDefault:"var(--spirit-color-component-header-item-state-default)",itemStateHover:"var(--spirit-color-component-header-item-state-hover)",itemStateSelected:"var(--spirit-color-component-header-item-state-selected)",stripeStateSelected:"var(--spirit-color-component-header-stripe-state-selected)",stripeStateUnselected:"var(--spirit-color-component-header-stripe-state-unselected)"},pagination:{selectedBorder:"var(--spirit-color-component-pagination-selected-border)",selectedContent:"var(--spirit-color-component-pagination-selected-content)",selectedStateActive:"var(--spirit-color-component-pagination-selected-state-active)",selectedStateDefault:"var(--spirit-color-component-pagination-selected-state-default)",selectedStateHover:"var(--spirit-color-component-pagination-selected-state-hover)",unselectedBorder:"var(--spirit-color-component-pagination-unselected-border)",unselectedContent:"var(--spirit-color-component-pagination-unselected-content)",unselectedStateActive:"var(--spirit-color-component-pagination-unselected-state-active)",unselectedStateDefault:"var(--spirit-color-component-pagination-unselected-state-default)",unselectedStateHover:"var(--spirit-color-component-pagination-unselected-state-hover)"},pricingBox:{background:"var(--spirit-color-component-pricing-box-background)",border:"var(--spirit-color-component-pricing-box-border)",content:"var(--spirit-color-component-pricing-box-content)"},toggle:{selectedBorder:"var(--spirit-color-component-toggle-selected-border)",selectedContent:"var(--spirit-color-component-toggle-selected-content)",selectedStateActive:"var(--spirit-color-component-toggle-selected-state-active)",selectedStateDefault:"var(--spirit-color-component-toggle-selected-state-default)",selectedStateHover:"var(--spirit-color-component-toggle-selected-state-hover)",unselectedBorder:"var(--spirit-color-component-toggle-unselected-border)",unselectedContent:"var(--spirit-color-component-toggle-unselected-content)",unselectedStateActive:"var(--spirit-color-component-toggle-unselected-state-active)",unselectedStateDefault:"var(--spirit-color-component-toggle-unselected-state-default)",unselectedStateHover:"var(--spirit-color-component-toggle-unselected-state-hover)"}},Ne={danger:{backgroundBasic:"var(--spirit-color-emotion-danger-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-danger-background-subtle)",borderBasic:"var(--spirit-color-emotion-danger-border-basic)",borderSubtle:"var(--spirit-color-emotion-danger-border-subtle)",contentBasic:"var(--spirit-color-emotion-danger-content-basic)",contentSubtle:"var(--spirit-color-emotion-danger-content-subtle)",stateActive:"var(--spirit-color-emotion-danger-state-active)",stateDefault:"var(--spirit-color-emotion-danger-state-default)",stateHover:"var(--spirit-color-emotion-danger-state-hover)"},informative:{backgroundBasic:"var(--spirit-color-emotion-informative-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-informative-background-subtle)",borderBasic:"var(--spirit-color-emotion-informative-border-basic)",borderSubtle:"var(--spirit-color-emotion-informative-border-subtle)",contentBasic:"var(--spirit-color-emotion-informative-content-basic)",contentSubtle:"var(--spirit-color-emotion-informative-content-subtle)",stateActive:"var(--spirit-color-emotion-informative-state-active)",stateDefault:"var(--spirit-color-emotion-informative-state-default)",stateHover:"var(--spirit-color-emotion-informative-state-hover)"},success:{backgroundBasic:"var(--spirit-color-emotion-success-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-success-background-subtle)",borderBasic:"var(--spirit-color-emotion-success-border-basic)",borderSubtle:"var(--spirit-color-emotion-success-border-subtle)",contentBasic:"var(--spirit-color-emotion-success-content-basic)",contentSubtle:"var(--spirit-color-emotion-success-content-subtle)",stateActive:"var(--spirit-color-emotion-success-state-active)",stateDefault:"var(--spirit-color-emotion-success-state-default)",stateHover:"var(--spirit-color-emotion-success-state-hover)"},warning:{backgroundBasic:"var(--spirit-color-emotion-warning-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-warning-background-subtle)",borderBasic:"var(--spirit-color-emotion-warning-border-basic)",borderSubtle:"var(--spirit-color-emotion-warning-border-subtle)",contentBasic:"var(--spirit-color-emotion-warning-content-basic)",contentSubtle:"var(--spirit-color-emotion-warning-content-subtle)",stateActive:"var(--spirit-color-emotion-warning-state-active)",stateDefault:"var(--spirit-color-emotion-warning-state-default)",stateHover:"var(--spirit-color-emotion-warning-state-hover)"}},_e={primary:"var(--spirit-color-text-primary)",secondary:"var(--spirit-color-text-secondary)",tertiary:"var(--spirit-color-text-tertiary)"};var Ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Re(e){return Object.fromEntries(Object.keys(e).map((e=>[e.toUpperCase(),e])))}const ke={LEFT:"left",CENTER:"center",RIGHT:"right"},De=Object.assign({SPACE_BETWEEN:"space-between",STRETCH:"stretch"},ke),Le={TOP:"top",CENTER:"center",BOTTOM:"bottom"},$e=Object.assign({BASELINE:"baseline",STRETCH:"stretch"},Le),Me={LEFT:"left",CENTER:"center",RIGHT:"right"},Be={BASIC:"basic"},Fe={0:"0",100:"100",200:"200",300:"300",400:"400",500:"500",FULL:"full"},He={SOLID:"solid",DOTTED:"dotted",DASHED:"dashed"},Ue={0:"0",100:"100",200:"200"},ze={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ve=Re(Ae.button),We=Re(Ne),Xe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ge=Re(_e),qe={BASIC:"basic",SUBTLE:"subtle"},Ye={REGULAR:"regular",SEMIBOLD:"semibold",BOLD:"bold",ITALIC:"italic"},Qe={PRIMARY:"primary",SECONDARY:"secondary"},Ke={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},Ze={SMALL:"small",MEDIUM:"medium",LARGE:"large"},Je=Object.assign(Object.assign({XSMALL:"xsmall"},Ze),{XLARGE:"xlarge"}),et=Re(Te),{MAXWIDTH:tt,PADDING:nt}=et,rt=Ie(et,["MAXWIDTH","PADDING"]),ot={SUCCESS:"success",WARNING:"warning",DANGER:"danger"},it={FILL:"fill",OUTLINE:"outline"},st={BOX:"box",PILL:"pill"};var at=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lt=e=>{const{boxSize:t,color:n,name:r}=e,o=at(e,["boxSize","color","name"]),i=`--${we}icon`,s=String(r).includes("-dualtone")&&!n?Ge.PRIMARY:n,a=h("Icon"),l=`${a}--${s}`,c=C()(a,{[l]:n||s}),p=Object.assign({},t?((e,t)=>{const n={};return"object"==typeof t&&Object.entries(t).forEach((([t,r])=>{n[`${e}${"mobile"===t?"":`-${t}`}`]=`${null==r?void 0:r.toString()}px`})),n})(`${i}-size`,t):{});return{classProps:c,iconStyleProps:p,props:o}};var ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pt={ariaHidden:!0,boxSize:24},ut=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},pt),e),{boxSize:o,name:i,title:s,ariaHidden:a}=n,l=ct(n,["boxSize","name","title","ariaHidden"]);let c=ve(i);const p=(e=>{var t;return"object"==typeof e?null!==(t=e.mobile)&&void 0!==t?t:24:null!=e?e:24})(o),{classProps:u,iconStyleProps:d,props:f}=lt(Object.assign({boxSize:o,name:i},l)),{styleProps:m,props:y}=oe(f),b=ie("svg",{classProps:u,iconStyleProps:d,styleProps:m});return s&&(c=`<title>${s}</title>${c}`),r().createElement("svg",Object.assign({},y,b,{viewBox:"0 0 24 24",fill:"none",width:p,height:p,"aria-hidden":a,ref:t}),Se(c))}));ut.spiritComponent="Icon";const dt=ut;var ft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mt=e=>{var{children:t,slot:n}=e,o=ft(e,["children","slot"]);const{classProps:i}=v(),{toggle:s}=j(),{id:a}=ue(),{styleProps:l,props:c}=oe(o),{isOpen:u}=w(a),{triggerProps:d,headerProps:f}=p({id:a,isOpen:u});return r().createElement("h3",Object.assign({},c,l,f,{className:C()(i.header,l.className)}),r().createElement("button",Object.assign({type:"button",className:i.toggle,onClick:()=>{s&&a&&s(a)}},d),t),r().createElement("span",{className:i.side},n&&r().createElement("span",{className:i.slot},n),r().createElement("span",{className:i.icon},r().createElement(dt,{name:"chevron-down"}))))};mt.spiritComponent="AccordionHeader";const yt=mt;function bt(e,t){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bt(e,t)}var gt=s(94),Ot=s.n(gt);const ht=!1,vt=r().createContext(null);var Pt="unmounted",Et="exited",xt="entering",jt="entered",St="exiting",wt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Et,r.appearStatus=xt):o=jt:o=t.unmountOnExit||t.mountOnEnter?Pt:Et,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bt(e,t)}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pt?{status:Et}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xt&&n!==jt&&(t=xt):n!==xt&&n!==jt||(t=St)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ot().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Et&&this.setState({status:Pt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ot().findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||ht?this.safeSetState({status:jt},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:xt},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:jt},(function(){t.props.onEntered(i,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ot().findDOMNode(this);t&&!ht?(this.props.onExit(r),this.safeSetState({status:St},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Et},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Et},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ot().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pt)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(vt.Provider,{value:null},"function"==typeof n?n(e,o):r().cloneElement(r().Children.only(n),o))},t}(r().Component);function Tt(){}wt.contextType=vt,wt.propTypes={},wt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tt,onEntering:Tt,onEntered:Tt,onExit:Tt,onExiting:Tt,onExited:Tt},wt.UNMOUNTED=Pt,wt.EXITED=Et,wt.ENTERING=xt,wt.ENTERED=jt,wt.EXITING=St;const Ct=wt,At=({method:e="component",trigger:n,componentName:r,componentProps:o,propertyProps:i,customText:s})=>{let a,l;const c=`Deprecation warning (${r}):`;(0,t.useEffect)((()=>{const t=n&&r&&!1;switch(e){case"property":a=(null==i?void 0:i.delete)?`${c} "${null==i?void 0:i.deprecatedName}" property will be deleted in the next major version.`:(null==i?void 0:i.deprecatedValue)&&(null==i?void 0:i.newValue)&&(null==i?void 0:i.propertyName)?`${c} The "${null==i?void 0:i.deprecatedValue}" value for "${null==i?void 0:i.propertyName}" property will be renamed to "${null==i?void 0:i.newValue}" in the next major version.`:`${c} "${null==i?void 0:i.deprecatedName}" property will be replaced in the next major version. Please use "${null==i?void 0:i.newName}" instead. ♻️️`,l=!!i;break;case"custom":a=`${c} ${s}`,l=!0;break;default:a=(null==o?void 0:o.delete)?`${c} The component and its subcomponents will be deleted in the next major version.`:`${c} The component and its subcomponents will be renamed to "${null==o?void 0:o.newName}" in the next major version.`,l=!!o}a&&t&&l&&N(!1,a)}),[])};var Nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _t="aria-expanded",It="aria-controls",Rt="data-spirit-breakpoint",kt=e=>{const{isOpen:t,collapsibleToBreakpoint:n}=e,r=Nt(e,["isOpen","collapsibleToBreakpoint"]);return At({method:"custom",trigger:!r.id,componentName:"Collapse",customText:'The "id" property will be required instead of optional starting from the next major version.'}),{ariaProps:{root:{[Rt]:n},trigger:{[_t]:t,[It]:String(r.id)}},props:r}},Dt="is-open",Lt=(e,t,n)=>{const r=h("Collapse"),o=`${r}__content`,i=e?Dt:"";return{classProps:{root:C()(r,i),content:o},styleProps:"span"===t?{}:{height:e?n:0}}},$t="undefined"==typeof window;function Mt(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}const Bt={width:void 0,height:void 0};function Ft(e){const{ref:n,box:r="border-box"}=e,[{width:o,height:i},s]=(0,t.useState)(Bt),a=function(){const e=(0,t.useRef)(!1);return(0,t.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),(0,t.useCallback)((()=>e.current),[])}(),l=(0,t.useRef)(Object.assign({},Bt)),c=(0,t.useRef)(void 0);return c.current=e.onResize,(0,t.useEffect)((()=>{if($t)return;if(!("ResizeObserver"in window))return;if(!n.current)return;const e=new ResizeObserver((([e])=>{const t="border-box"===r?"borderBoxSize":"device-pixel-content-box"===r?"devicePixelContentBoxSize":"contentBoxSize",n=Mt(e,t,"inlineSize"),o=Mt(e,t,"blockSize");if(l.current.width!==n||l.current.height!==o){const e={width:n,height:o};l.current.width=n,l.current.height=o,c.current?c.current(e):a()&&s(e)}}));return e.observe(n.current,{box:r}),()=>{e.disconnect()}}),[r,n,a]),{width:o,height:i}}var Ht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ut=250,zt={entering:"is-transitioning",entered:"",exiting:"is-transitioning",exited:""},Vt={elementType:"div",isOpen:!1,collapsibleToBreakpoint:void 0,transitionDuration:Ut},Wt=e=>{const n=Object.assign(Object.assign({},Vt),e),{elementType:o=Vt.elementType,children:i,transitionDuration:s=Ut}=n,a=Ht(n,["elementType","children","transitionDuration"]),l=(0,t.useRef)(null),c=(0,t.useRef)(null),p=(e=>{const[n,r]=(0,t.useState)(void 0);return Ft({ref:e,onResize:e=>{const t=e.height;r(`${t}px`)}}),n})(c),{classProps:u,styleProps:d}=Lt(a.isOpen,o,p),{ariaProps:f,props:m}=kt(a),{styleProps:y,props:b}=oe(m),g={className:y.className,style:Object.assign(Object.assign({},d),y.style)};return"span"===o&&a.isOpen?i:r().createElement(Ct,{in:a.isOpen,nodeRef:l,timeout:s},(e=>r().createElement(o,Object.assign({},b,f.root,ie(o,{classProps:u.root,styleProps:y,collapseStyleProps:g,transitioningStyles:zt[e]}),{ref:l}),r().createElement(o,{ref:c,className:u.content},i))))};Wt.spiritComponent="Collapse";const Xt=Wt;var Gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qt=e=>{var{children:t}=e,n=Gt(e,["children"]);const{classProps:o}=v(),{id:i}=ue(),{styleProps:s,props:a}=oe(n),{isOpen:l}=w(i),{contentProps:c}=p({id:i,isOpen:l});return r().createElement(Xt,Object.assign({isOpen:l},c),r().createElement("div",Object.assign({},a,s,{className:C()(o.content,s.className)}),t))};qt.spiritComponent="AccordionContent";const Yt=qt;var Qt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Kt=e=>{const{defaultOpen:t,stayOpen:n}=e,i=Qt(e,["defaultOpen","stayOpen"]),{open:s,toggle:a}=o({defaultOpen:t,stayOpen:n});return r().createElement(le,Object.assign({open:s,toggle:a},i))};Kt.spiritComponent="UncontrolledAccordion";const Zt=Kt,Jt={HORIZONTAL:"horizontal",VERTICAL:"vertical"},en=Object.assign(Object.assign({},Jt),{HORIZONTAL_REVERSED:"horizontal-reversed"});var tn;!function(e){e.X="x",e.Y="y"}(tn||(tn={}));const nn=e=>e===Jt.HORIZONTAL;function rn(e,t,n=void 0){const r={},o=n?`-${n}`:"";return"object"==typeof e&&null!==e?Object.keys(e).forEach((n=>{var i;r[`--${t}-spacing${o}${"mobile"===n?"":`-${n}`}`]=`var(--${we}${null===(i=e[n])||void 0===i?void 0:i.toString()})`})):e&&(r[`--${t}-spacing${o}`]=`var(--${we}${e})`),r}const on="--wrap",sn="--noWrap";function an(e,t){return"object"==typeof t&&null!==t?Object.entries(t).map((([t,n])=>`${e}${"mobile"===t?"":`--${t}`}${n?on:sn}`)).join(" "):`${e}${t?on:sn}`}function ln(e){return"string"!=typeof e?e:e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}function cn(e,t,n){return`${e}--${n||""}${n?ln(t):t}`}function pn(e,t,n){return Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,i=t[r];return`${e}${o}--${n||""}${n?ln(i):i}`})).join(" ")}function un(e,t,n){const r=function(e){return e&&"object"==typeof e}(t)?pn:cn;return r(e,t,n)}const dn="stretch";function fn(e,t,n){return un(e,t&&"object"==typeof t?Object.assign({mobile:dn},t):t,n)}var mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function yn(e){const{alignmentX:t,alignmentY:n,direction:r,spacing:o,spacingX:i,spacingY:s,isWrapping:a}=e,l=mn(e,["alignmentX","alignmentY","direction","spacing","spacingX","spacingY","isWrapping"]);At({method:"custom",trigger:"row"===r||"column"===r,componentName:"Flex",customText:"Direction values `row` and `column` are deprecated and will be removed in the next major release. Use `horizontal` and `vertical` values instead."});const c=h("Flex"),p=Object.assign(Object.assign(Object.assign(Object.assign({},rn(o,"flex",tn.X)),rn(o,"flex",tn.Y)),rn(i,"flex",tn.X)),rn(s,"flex",tn.Y)),u=un(c,V(r));return{classProps:C()(c,an(c,a),{[fn(c,t,"alignmentX")]:t,[fn(c,n,"alignmentY")]:n,[u]:r}),props:l,styleProps:p}}var bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gn={alignmentX:De.STRETCH,alignmentY:$e.STRETCH,direction:en.HORIZONTAL,elementType:"div",isWrapping:!1},On=e=>{const t=Object.assign(Object.assign({},gn),e),{elementType:n="div",direction:o,children:i}=t,s=bn(t,["elementType","direction","children"]),{classProps:a,props:l,styleProps:c}=yn(Object.assign({direction:o},s)),{styleProps:p,props:u}=oe(Object.assign({},l)),d=ie(n,{classProps:a,flexStyle:c,styleProps:p,otherProps:u});return r().createElement(n,Object.assign({},u,d),i)};On.spiritComponent="Flex";const hn=On;var vn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pn={alignmentX:{mobile:De.STRETCH,tablet:De.LEFT},direction:{mobile:en.VERTICAL,tablet:en.HORIZONTAL}},En=e=>{const{children:t}=e,n=vn(e,["children"]),o=Object.assign(Object.assign({},Pn),n);return r().createElement(hn,Object.assign({},o),t)};En.spiritComponent="ActionGroup";const xn=En;var jn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Sn(e){const{color:t,isCentered:n}=e,r=jn(e,["color","isCentered"]),o=h("Alert"),i=`${o}--${t}`,s=`${o}--center`;return{classProps:C()(o,{[i]:t,[s]:n}),props:r}}function wn(e,t,n="default"){return e&&t[e]?t[e]:t[n]}var Tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cn={color:"success",isCentered:!1},An=e=>{const t=Object.assign(Object.assign({},Cn),e),{elementType:n="div",children:o,color:i,iconName:s}=t,a=Tn(t,["elementType","children","color","iconName"]),{classProps:l,props:c}=Sn(Object.assign({color:i},a)),{styleProps:p,props:u}=oe(c),d=ie(n,{classProps:l,styleProps:p,otherProps:u}),f=function({color:e,iconName:t}){const n=wn(e,{default:"info",success:"check-plain",informative:"info",warning:"warning",danger:"danger"});return t||n}(Object.assign({color:i,iconName:s},u));return r().createElement(n,Object.assign({},u,d),r().createElement(dt,{name:f}),r().createElement("div",null,o))};An.spiritComponent="Alert";const Nn=An,_n=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e));var In=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rn=(e,t)=>_n(g(t))(e);function kn(e){const{isSquare:t,size:n}=e,r=In(e,["isSquare","size"]),o=h("Avatar"),i=`${o}--square`;return{classProps:C()(o,Rn(o,n),{[i]:t}),props:r}}var Dn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ln={elementType:"div",isSquare:!1,size:Je.MEDIUM},$n=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Ln),e),{elementType:o="div",children:i}=n,s=Dn(n,["elementType","children"]),{classProps:a,props:l}=kn(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a,styleProps:c});return r().createElement(o,Object.assign({},p,u,{ref:t}),i)}));var Mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bn=e=>{const t=e||{},{backgroundColor:n,borderColor:r,borderStyle:o,borderWidth:i,textColor:s}=t,a=Mn(t,["backgroundColor","borderColor","borderStyle","borderWidth","textColor"]),l=h(`bg-${n}`),c=h("border-"),p=n?l:"";let u=r?r.replace("",c):"",d="";const f=i?i.replace("",c):"",m=h(s?`text-${s}`:"");i&&parseInt(i,10)>0&&(d=`${c}${o}`,r||(u=`${c}${Be.BASIC}`));return{classProps:C()(p,u,d,f,{[m]:!!s}),props:a}};var Fn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hn={elementType:"div",borderStyle:He.SOLID},Un=e=>{const t=Object.assign(Object.assign({},Hn),e),{elementType:n="div",children:o}=t,i=Fn(t,["elementType","children"]),{classProps:s,props:a}=Bn(i),{styleProps:l,props:c}=oe(a,Object.assign(Object.assign(Object.assign({},_),I),k)),p=ie(n,{classProps:s,styleProps:l});return r().createElement(n,Object.assign({},c,p),o)};Un.spiritComponent="Box";const zn=Un,Vn={ALWAYS:"always",HOVER:"hover",NEVER:"never"};var Wn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Xn(e){const{color:t,hasVisitedStyleAllowed:n,isDisabled:r,underlined:o}=e,i=Wn(e,["color","hasVisitedStyleAllowed","isDisabled","underlined"]),s=h("link"),a=`${s}-${t}`,l=`${s}-disabled`,c=`${s}-underlined`,p=`${s}-not-underlined`,u=`${s}-allow-visited-style`;return{classProps:C()(a,{[l]:r,[c]:o===Vn.ALWAYS,[p]:o===Vn.NEVER,[u]:n}),props:i}}var Gn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qn={elementType:"a",color:"primary",hasVisitedStyleAllowed:!1,underlined:"hover"},Yn=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},qn),e),{elementType:o=qn.elementType,children:i}=n,s=Gn(n,["elementType","children"]),{classProps:a,props:l}=Xn(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{href:s.href,ref:t}),i)}));Yn.spiritComponent="Link";const Qn=Yn;var Kn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Zn(e){const{isGoBackOnly:t}=e,n=Kn(e,["isGoBackOnly"]),r=h("Breadcrumbs"),o=h("d-none"),i=h("d-tablet-flex"),s=h("d-tablet-none");return{classProps:{root:r,item:C()({[o]:!t,[i]:!t,[s]:t})},props:n}}var Jn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const er={iconNameEnd:"chevron-right",iconNameStart:"chevron-left",isCurrent:!1,isGoBackOnly:!1},tr=e=>{const t=Object.assign(Object.assign({},er),e),{children:n,href:o,isCurrent:i,iconNameStart:s,iconNameEnd:a}=t,l=Jn(t,["children","href","isCurrent","iconNameStart","iconNameEnd"]),{classProps:c,props:p}=Zn(Object.assign({},l)),{styleProps:u,props:d}=oe(p);return r().createElement("li",Object.assign({},d,u,{className:C()(c.item,u.className)}),l.isGoBackOnly&&s&&r().createElement(dt,{name:s}),!o&&i?n:r().createElement(Qn,{href:o,color:i?"secondary":"primary",underlined:i?"hover":"always","aria-current":i?"page":void 0},n),!i&&!l.isGoBackOnly&&a&&r().createElement(dt,{name:a}))};tr.spiritComponent="BreadcrumbsItem";const nr=tr;var rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const or={elementType:"nav",items:[]},ir=e=>{const n=Object.assign(Object.assign({},or),e),{children:o,elementType:i="nav",goBackTitle:s,items:a}=n,l=rr(n,["children","elementType","goBackTitle","items"]),{classProps:c,props:p}=Zn(Object.assign({},l)),{styleProps:u,props:d}=oe(p),f=ie(i,{classProps:c.root,styleProps:u}),m=(e,t)=>e===t-1;return r().createElement(i,Object.assign({},d,f,{"aria-label":"Breadcrumb"}),r().createElement("ol",null,o||(null==a?void 0:a.map(((e,n)=>r().createElement(t.Fragment,{key:`BreadcrumbsItem_${e.title}`},n===a.length-2&&s&&r().createElement(nr,{href:e.url||void 0,isGoBackOnly:!0},s),r().createElement(nr,{href:e.url||void 0,isCurrent:m(n,null==a?void 0:a.length)},e.title)))))))};ir.spiritComponent="Breadcrumbs";const sr=ir,ar=(e,n)=>(0,t.useCallback)((t=>{e?t.preventDefault():n&&n(t)}),[e,n]),lr=e=>{const{isDisabled:t,isLoading:n,onClick:r,type:o="button"}=e,i=ar(t,r),s={type:o,disabled:t||n};return{buttonProps:Object.assign(Object.assign({},s),{onClick:i})}};var cr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pr=(e,t)=>_n(b(t))(e),ur=(e,t)=>_n(g(t))(e);function dr(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:i,size:s}=e,a=cr(e,["color","isBlock","isDisabled","isLoading","isSymmetrical","size"]);At({method:"custom",trigger:!!n,componentName:"Button",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=h("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,d=`${l}--symmetrical`;n&&i&&N(!1,"isBlock and isSymmetrical props are mutually exclusive");return{classProps:C()(l,pr(l,t),ur(l,s),{[c]:n&&!i,[p]:r||o,[u]:o,[d]:i&&!n}),props:a}}const fr=(0,t.createContext)(null),mr=fr.Provider,yr=fr.Consumer,br=(e={})=>{const n=(0,t.useContext)(fr);return n?Object.assign(Object.assign({},e),n):e};var gr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Or(e){const{color:t}=e,n=gr(e,["color"]),r=h("text"),o=t?`${r}-${t}`:"",i=h("animation-spin-clockwise");return{classProps:C()(o,i),props:n}}const hr=e=>{const{classProps:t,props:n}=Or(e),{styleProps:o,props:i}=oe(n);return r().createElement(dt,Object.assign({},i,{name:"spinner",UNSAFE_className:C()(t,o.className),UNSAFE_style:o.style}))};hr.spiritComponent="Spinner";const vr=hr;var Pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Er={color:"primary",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium",type:"button",elementType:"button"},xr=(0,t.forwardRef)(((e,t)=>{const n=br(),o=Object.assign(Object.assign(Object.assign({},Er),e),n),{elementType:i=Er.elementType,children:s}=o,a=Pr(o,["elementType","children"]),{buttonProps:l}=lr(a),{classProps:c,props:p}=dr(a),{styleProps:u,props:d}=oe(p),f=ie(i,{classProps:c,styleProps:u,otherProps:d});return r().createElement(i,Object.assign({},d,l,{ref:t},f),s,a.isLoading&&r().createElement(vr,null))}));xr.spiritComponent="Button";const jr=xr,Sr=e=>{const{elementType:t,isDisabled:n,isLoading:r,onClick:o,href:i,target:s,rel:a}=e,l=ar(n,o),c={role:"button",href:"a"===t&&n?void 0:i,target:"a"===t?s:void 0,disabled:n||r,rel:"a"===t?a:void 0};return{buttonLinkProps:Object.assign(Object.assign({},c),{onClick:l})}};var wr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tr=(e,t)=>_n(b(t))(e),Cr=(e,t)=>_n(g(t))(e);function Ar(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:i,size:s}=e,a=wr(e,["color","isBlock","isDisabled","isLoading","isSymmetrical","size"]);At({method:"custom",trigger:!!n,componentName:"ButtonLink",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=h("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,d=`${l}--symmetrical`;n&&i&&N(!1,"isBlock and isSymmetrical props are mutually exclusive");return{classProps:C()(l,Tr(l,t),Cr(l,s),{[c]:n&&!i,[p]:r||o,[u]:o,[d]:i&&!n}),props:a}}var Nr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _r={color:"primary",elementType:"a",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium"},Ir=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},_r),e),{elementType:o=_r.elementType,children:i}=n,s=Nr(n,["elementType","children"]),{buttonLinkProps:a}=Sr(n),{classProps:l,props:c}=Ar(s),{styleProps:p,props:u}=oe(c),d=ie(o,{classProps:l,styleProps:p,otherProps:u});return r().createElement(o,Object.assign({},u,a,d,{ref:t}),i,s.isLoading&&r().createElement(vr,null))}));Ir.spiritComponent="ButtonLink";const Rr=Ir;function kr(e){const{artworkAlignmentX:t,direction:n,footerAlignmentX:r,hasFilledHeight:o,isBoxed:i,isExpanded:s,isHeading:a,isSelectable:l,size:c}=e||{},p=h("Card"),u=`${p}Artwork`,d=`${p}Body`,f=`${p}Eyebrow`,m=`${p}Footer`,y=`${p}Link`,b=`${p}Logo`,g=`${p}Media`,O=`${p}Title`,v=`${d}--selectable`,P=un(p,V(n)),E=`${p}--boxed`,x=`${g}__canvas`,j=`${g}--filledHeight`,S=`${g}--expanded`,w=c?`${g}--${c}`:"",T=`${O}--heading`;return{classProps:{artwork:C()(u,{[fn(u,t,"alignmentX")]:t}),body:C()(d,{[v]:l}),eyebrow:f,footer:C()(m,{[fn(m,r,"alignmentX")]:r}),link:y,logo:b,media:C()(g,w,{[S]:s,[j]:o}),mediaCanvas:x,root:C()(p,{[P]:n,[E]:i}),title:C()(O,{[T]:a})}}}var Dr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lr={direction:en.VERTICAL,elementType:"article",isBoxed:!1},$r=e=>{const t=Object.assign(Object.assign({},Lr),e),{elementType:n="article",direction:o,isBoxed:i,children:s}=t,a=Dr(t,["elementType","direction","isBoxed","children"]),{classProps:l}=kr({direction:o,isBoxed:i}),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:l.root,styleProps:c,otherProps:p});return r().createElement(n,Object.assign({},p,u),s)};$r.spiritComponent="Card";const Mr=$r;var Br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fr={alignmentX:ke.LEFT},Hr=e=>{const t=Object.assign(Object.assign({},Fr),e),{children:n,alignmentX:o}=t,i=Br(t,["children","alignmentX"]),{classProps:s}=kr({artworkAlignmentX:o}),{styleProps:a,props:l}=oe(i);return r().createElement("div",Object.assign({},l,{className:C()(s.artwork,a.className),style:a.style}),n)};Hr.spiritComponent="CardArtwork";const Ur=Hr;var zr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vr={isSelectable:!1},Wr=e=>{const t=Object.assign(Object.assign({},Vr),e),{children:n,isSelectable:o}=t,i=zr(t,["children","isSelectable"]),{classProps:s}=kr({isSelectable:o}),{styleProps:a,props:l}=oe(i);return r().createElement("div",Object.assign({},l,{className:C()(s.body,a.className),style:a.style}),n)};Wr.spiritComponent="CardBody";const Xr=Wr;var Gr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qr=e=>{const{children:t}=e,n=Gr(e,["children"]),{classProps:o}=kr(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.eyebrow,i.className),style:i.style}),t)};qr.spiritComponent="CardEyebrow";const Yr=qr;var Qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Kr={alignmentX:ke.LEFT},Zr=e=>{const t=Object.assign(Object.assign({},Kr),e),{children:n,alignmentX:o}=t,i=Qr(t,["children","alignmentX"]),{classProps:s}=kr({footerAlignmentX:o}),{styleProps:a,props:l}=oe(i);return r().createElement("footer",Object.assign({},l,{className:C()(s.footer,a.className),style:a.style}),n)};Zr.spiritComponent="CardFooter";const Jr=Zr;var eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const to={elementType:"a"},no=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},to),e),{elementType:o=to.elementType,children:i,href:s}=n,a=eo(n,["elementType","children","href"]),{classProps:l}=kr(),{styleProps:c,props:p}=oe(a),u=ie(o,{classProps:l.link,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,c,u,{href:s,ref:t}),i)}));no.spiritComponent="CardLink";const ro=no;var oo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const io=e=>{const{children:t}=e,n=oo(e,["children"]),{classProps:o}=kr(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.logo,i.className),style:Object.assign({},i.style)}),t)};io.spiritComponent="CardLogo";const so=io,ao={CONTAIN:"contain",COVER:"cover"},lo=Object.assign(Object.assign({},Ze),{AUTO:"auto"});var co=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const po={fit:ao.COVER,hasFilledHeight:!1,isExpanded:!1,size:lo.AUTO},uo=e=>{const t=Object.assign(Object.assign({},po),e),{backgroundColor:n,children:o,fit:i,hasFilledHeight:s,isExpanded:a,size:l}=t,c=co(t,["backgroundColor","children","fit","hasFilledHeight","isExpanded","size"]),{classProps:p}=kr({size:l,isExpanded:a,hasFilledHeight:s}),{classProps:u,styleProps:d}=(e=>{const{backgroundColor:t,fit:n}=e||{},r=h(`bg-${t}`);return{classProps:t?r:"",styleProps:n?{[`--${we}card-media-object-fit`]:n}:{}}})({backgroundColor:n,fit:i}),{styleProps:f,props:m}=oe(c,Object.assign({},_)),y=ie("div",{classProps:C()(p.media,u,f.className),styleProps:Object.assign(Object.assign({},d),f)});return r().createElement("div",Object.assign({},m,y),r().createElement("div",{className:p.mediaCanvas},o))};uo.spiritComponent="CardMedia";const fo=uo;var mo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yo={elementType:"h4",isHeading:!0},bo=e=>{const t=Object.assign(Object.assign({},yo),e),{elementType:n="h4",children:o,isHeading:i}=t,s=mo(t,["elementType","children","isHeading"]),{classProps:a}=kr({isHeading:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.title,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};bo.spiritComponent="CardTitle";const go=bo,Oo=e=>(0,t.useMemo)((()=>e.length?{"aria-describedby":e.join(" ")}:{}),[e]),ho=e=>{const[n,r]=(0,t.useState)(e?e.split(" "):[]);return[n,(0,t.useCallback)((({add:e,remove:t})=>{r((n=>{let r=[...n];return t&&(r=r.filter((e=>e!==t))),e&&(r=[...r,e]),r}))}),[])]};var vo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Po=e=>{const{elementType:t="label",children:n,htmlFor:o,for:i}=e,s=vo(e,["elementType","children","htmlFor","for"]),{styleProps:a,props:l}=oe(s),c=ie(t,{styleProps:a,otherProps:l});return r().createElement(t,Object.assign({},l,c,{htmlFor:"label"===t?i||o:void 0}),n)};Po.spiritComponent="Label";const Eo=Po;var xo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jo={elementType:"div",id:void 0,registerAria:void 0},So=e=>{const n=Object.assign(Object.assign({},jo),e),{helperText:o,elementType:i=jo.elementType,id:s,registerAria:a}=n,l=xo(n,["helperText","elementType","id","registerAria"]),{styleProps:c,props:p}=oe(l),u=ie(i,{styleProps:c,transferProps:p});return(0,t.useEffect)((()=>(o&&(null==a||a({add:s})),()=>{null==a||a({remove:s})})),[o,s,a]),o?r().createElement(i,Object.assign({},p,u,{id:s}),o):null};So.spiritComponent="HelperText";const wo=So;var To=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Co={elementType:"div",id:void 0,registerAria:void 0,role:void 0},Ao=e=>{const n=Object.assign(Object.assign({},Co),e),{elementType:o=Co.elementType,id:i,hasValidationStateIcon:s,registerAria:a,role:l,validationText:c}=n,p=To(n,["elementType","id","hasValidationStateIcon","registerAria","role","validationText"]),u=function({hasValidationStateIcon:e}){return wn(e,{success:"check-plain",warning:"warning",danger:"danger"})}({hasValidationStateIcon:s}),{styleProps:d,props:f}=oe(p),m=ie(o,{styleProps:d,transferProps:f});if((0,t.useEffect)((()=>(c&&(null==a||a({add:i})),()=>{null==a||a({remove:i})})),[i,a,c]),!c)return null;const y=s?r().createElement("div",null,c):c;return r().createElement(o,Object.assign({},f,m,{id:i,role:l}),s&&r().createElement(dt,{name:u,boxSize:"20"}),Array.isArray(c)?r().createElement("ul",null,c.map((e=>r().createElement("li",{key:`validationText_${e}`},e)))):y)};Ao.spiritComponent="ValidationText";const No=Ao,_o=({validationState:e,validationText:n})=>{const[r,o]=(0,t.useState)(),i=(0,t.useRef)(n),s=(0,t.useRef)(e);return(0,t.useEffect)((()=>{i.current===n&&s.current===e||o("alert"),i.current=n,s.current=e}),[n,e]),r};var Io=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ro(e){const{validationState:t,isItem:n,isLabelHidden:r}=e,o=Io(e,["validationState","isItem","isLabelHidden"]),{isDisabled:i,isRequired:s}=o,a=h("Checkbox"),l=`${a}--disabled`,c=`${a}--item`,p=`${a}__input`,u=`${a}__text`,d=`${a}__label`,f=`${a}__label--required`,m=`${a}__label--hidden`,y=`${a}__helperText`,b=`${a}__validationText`,g=`${a}--${t}`;return{classProps:{root:C()(a,{[l]:i,[c]:n,[g]:t}),text:u,label:C()(d,{[f]:s,[m]:r}),input:p,helperText:y,validationText:b},props:Object.assign(Object.assign({},o),{validationState:t})}}var ko=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Do=(0,t.forwardRef)(((e,t)=>{const{classProps:n,props:o}=Ro(e),{"aria-describedby":i="",hasValidationIcon:s,helperText:a,id:l,isChecked:c,isDisabled:p,isRequired:u,label:d,validationState:f,validationText:m,value:y}=o,b=ko(o,["aria-describedby","hasValidationIcon","helperText","id","isChecked","isDisabled","isRequired","label","validationState","validationText","value"]),{styleProps:g,props:O}=oe(b),[h,v]=ho(i),P=Oo(h),E=_o({validationState:f,validationText:m});return r().createElement("div",{style:g.style,className:C()(n.root,g.className)},r().createElement("input",Object.assign({},O,P,{type:"checkbox",id:l,className:n.input,disabled:p,required:u,checked:c,value:y,ref:t})),r().createElement("div",{className:n.text},r().createElement(Eo,{UNSAFE_className:n.label,htmlFor:l},d),r().createElement(wo,{UNSAFE_className:n.helperText,id:`${l}__helperText`,registerAria:v,helperText:a}),f&&r().createElement(No,Object.assign({UNSAFE_className:n.validationText,id:`${l}__validationText`},s&&{hasValidationStateIcon:f},{validationText:m,registerAria:v,role:E}))))}));Do.spiritComponent="Checkbox";const Lo=Do,$o=e=>{const[n,r]=(0,t.useState)(e);return{toggleHandler:e=>{e.preventDefault(),r(!n)},toggle:r,isOpen:n}};var Mo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bo={isOpen:!1},Fo=e=>{const t=Object.assign(Object.assign({},Bo),e),{children:n,hideOnCollapse:o,isDisposable:i,renderTrigger:s}=t,a=Mo(t,["children","hideOnCollapse","isDisposable","renderTrigger"]),{isOpen:l,toggleHandler:c}=$o(a.isOpen),{ariaProps:p}=kt(Object.assign(Object.assign({},a),{isOpen:l})),u=o||i;return r().createElement(r().Fragment,null,!s||u&&u&&l?null:s(Object.assign({isOpen:l,onClick:c},p.trigger)),u&&l?n:r().createElement(Xt,Object.assign({},a,{isOpen:l}),n))};Fo.spiritComponent="UncontrolledCollapse";const Ho=Fo;var Uo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function zo(e){const{isFluid:t,size:n}=e,r=Uo(e,["isFluid","size"]),o=h("Container"),i=`${o}--fluid`,s=`${o}--${n}`;return{classProps:C()(o,{[i]:t,[s]:!t&&n}),props:r}}var Vo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wo={isFluid:!1,size:Je.XLARGE},Xo=e=>{const t=Object.assign(Object.assign({},Wo),e),{children:n}=t,o=Vo(t,["children"]),{classProps:i,props:s}=zo(o),{styleProps:a,props:l}=oe(s,{textAlignment:D.textAlignment});return r().createElement("div",Object.assign({},l,a,{className:C()(i,a.className)}),n)};Xo.spiritComponent="Container";const Go=Xo,qo=e=>{const{isDisabled:t,onClick:n,type:r="button"}=e,o=ar(t,n),i={type:r,disabled:t};return{controlButtonProps:Object.assign(Object.assign({},i),{onClick:o})}};var Yo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qo=(e,t)=>_n(g(t))(e);function Ko(e){const{isDisabled:t,isSubtle:n,isSymmetrical:r,size:o}=e,i=Yo(e,["isDisabled","isSubtle","isSymmetrical","size"]),s=h("ControlButton"),a=`${s}--hasBackground`,l=`${s}--disabled`,c=`${s}--symmetrical`,p=h("dynamic-color-background-interactive"),u=h("dynamic-color-border"),d=h("accessibility-tap-target");return{classProps:C()(s,Qo(s,o),p,d,{[l]:t,[c]:r,[a]:!n,[u]:!n}),props:i}}var Zo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jo={elementType:"button",isDisabled:!1,isSubtle:!1,isSymmetrical:!1,size:Ze.MEDIUM,type:"button"},ei=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Jo),e),{elementType:o=Jo.elementType,children:i}=n,s=Zo(n,["elementType","children"]),{controlButtonProps:a}=qo(s),{classProps:l,props:c}=Ko(s),{styleProps:p,props:u}=oe(c),d=ie(o,{classProps:l,styleProps:p,otherProps:u});return r().createElement(o,Object.assign({},u,a,{ref:t},d),i)}));ei.spiritComponent="ControlButton";const ti=ei,ni=$t?t.useEffect:t.useLayoutEffect,ri=({ref:e,callback:n})=>{const r=(0,t.useRef)({mouseDownTarget:null}),o=(0,t.useCallback)((t=>{const o=r.current;!e||!n||t.defaultPrevented||e.current&&e.current.contains(o.mouseDownTarget)||e.current&&!e.current.contains(null==t?void 0:t.target)&&n&&n(t)}),[e,n]),i=e=>{r.current.mouseDownTarget=e.target};ni((()=>(document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("click",o,{capture:!0}),()=>{document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("click",o,{capture:!0})})),[o])},oi="cancel",ii="keydown",si=(e,n,r=!0,o=!1)=>{const i=(0,t.useCallback)((t=>{e&&n&&(t.defaultPrevented||(t.preventDefault(),n&&r&&n(t)))}),[e,n,r]),s=(0,t.useCallback)((e=>{"Escape"===e.key&&!r&&o&&e.preventDefault()}),[r,o]);return ni((()=>{const t=null==e?void 0:e.current;return t?(t.addEventListener(oi,i),document.addEventListener(ii,s),()=>{t.removeEventListener(oi,i),document.removeEventListener(ii,s)}):()=>{}}),[e,i]),i},ai="is-scrolling-disabled",li=()=>{const{body:e}=document;e.style.paddingRight="",e.classList.remove(ai)},ci=(e,n)=>{(0,t.useEffect)((()=>(n?(()=>{const{body:e}=document,t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`,e.classList.add(ai)})():e.current&&!e.current.open&&li(),()=>{li()})),[n,e])},pi=(e,n)=>{const r=(0,t.useCallback)((t=>{const r=null==e?void 0:e.current;r&&t.target===r&&!n&&r.open&&r.close&&r.close()}),[n,e]);ci(e,n);const o=(0,t.useCallback)((t=>{const n=null==e?void 0:e.current;(null==n?void 0:n.classList)&&(t?n.classList.add(Dt):n.classList.remove(Dt))}),[e]);(0,t.useEffect)((()=>{const t=null==e?void 0:e.current;t&&(n&&!t.open&&t.showModal?(t.showModal(),o(!0)):!n&&t.open&&o(!1))}),[n,e,o]);return{openDialog:()=>{(null==e?void 0:e.current)&&!e.current.open&&(e.current.showModal(),o(!0))},closeDialog:()=>{const t=null==e?void 0:e.current;t&&t.open&&o(!1)},onTransitionEnd:r}};var ui=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const di=(e,n)=>{const{children:o,isOpen:i,onClose:s,closeOnBackdropClick:a=!0,closeOnEscapeKeyDown:l}=e,c=ui(e,["children","isOpen","onClose","closeOnBackdropClick","closeOnEscapeKeyDown"]),p=(0,t.useRef)(n),u=(0,t.useRef)(null),{closeDialog:d,onTransitionEnd:f}=pi(p,i);ri({ref:u,callback:i?e=>{a&&e.target===p.current&&(d(),s(e))}:void 0}),si(p,s,l,i);const m=t.Children.only(o);return r().createElement("dialog",Object.assign({ref:p,onTransitionEnd:f},c),(0,t.cloneElement)(m,{ref:e=>{u.current=e}}))};di.spiritComponent="Dialog";const fi=(0,t.forwardRef)(di);function mi(e){return{classProps:h("Divider"),props:e}}const yi=e=>{const{classProps:t,props:n}=mi(e),{styleProps:o,props:i}=oe(n);return r().createElement("hr",Object.assign({},i,o,{className:C()(t,o.className)}))};yi.spiritComponent="Divider";const bi=yi,gi=e=>{const n=(0,t.useRef)(null);(0,t.useEffect)((()=>{e?n.current=document.activeElement:(null==n?void 0:n.current)&&n.current.focus()}),[e])},Oi=ke.RIGHT,hi=(0,t.createContext)({id:"",isOpen:!1,onClose:()=>null}),vi=hi.Provider,Pi=hi.Consumer,Ei=()=>(0,t.useContext)(hi),xi=(e={})=>{const{drawerAlignmentX:t=Oi,isOpen:n=!1}=e,r=h("Drawer"),o={left:`${r}--left`,right:`${r}--right`},i=`${r}Panel`,s=`${i}__content`,a=`${r}CloseButton`;return{classProps:{root:C()(r,o[t],{[Dt]:n}),panel:i,content:s,closeButton:a}}};var ji=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Si=e=>{const{children:t,alignmentX:n=Oi,isOpen:o,onClose:i,id:s}=e,a=ji(e,["children","alignmentX","isOpen","onClose","id"]),{classProps:l}=xi({drawerAlignmentX:n}),{styleProps:c,props:p}=oe(a),u={id:s,isOpen:o,onClose:i};return gi(o),r().createElement(vi,{value:u},r().createElement(fi,Object.assign({},p,c,{id:s,isOpen:o,onClose:i,className:C()(l.root,c.className)}),t))};Si.spiritComponent="Drawer";const wi=Si;var Ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Ci=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ai=e=>{const{children:t,elementType:n="span"}=e,o=Ci(e,["children","elementType"]),{classProps:i,props:s}=function(e){const t=Ti(e,[]);return{classProps:h("accessibility-hidden"),props:t}}(o),{styleProps:a,props:l}=oe(s),c=ie(n,{classProps:i,styleProps:a,otherProps:l});return r().createElement(n,Object.assign({},l,c),t)};Ai.spiritComponent="VisuallyHidden";const Ni=Ai;var _i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ii={color:Ve.TERTIARY,iconBoxSize:24,label:"Close",size:Ze.MEDIUM},Ri=e=>{const t=Object.assign(Object.assign({},Ii),e),{color:n,iconBoxSize:o,label:i,size:s}=t,a=_i(t,["color","iconBoxSize","label","size"]),{id:l,isOpen:c,onClose:p}=Ei(),{classProps:u}=xi(),{styleProps:d,props:f}=oe(a);return r().createElement(jr,Object.assign({},f,{"aria-expanded":c,"aria-controls":l,onClick:p,color:n,size:s,UNSAFE_className:C()(u.closeButton,d.className),UNSAFE_style:d.style,isSymmetrical:!0}),r().createElement(dt,{name:"close",boxSize:o}),r().createElement(Ni,null,i))};Ri.spiritComponent="DrawerCloseButton";const ki=Ri;var Di=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Li=(0,t.forwardRef)(((e,t)=>{const{elementType:n="div",children:o}=e,i=Di(e,["elementType","children"]),{classProps:s}=xi(i),{styleProps:a,props:l}=oe(i),c=ie(n,{classProps:s.panel,styleProps:a,otherProps:l});return r().createElement(n,Object.assign({},l,c,{ref:t}),r().createElement("div",{className:s.content},o))}));Li.spiritComponent="DrawerPanel";const $i=Li,Mi="aria-expanded",Bi="aria-controls",Fi="data-spirit-fullwidthmode",Hi="data-spirit-placement";var Ui;!function(e){e.off="off",e["mobile-only"]="mobile-only",e.all="all"}(Ui||(Ui={}));const zi=e=>{const{fullWidthMode:t,id:n,isOpen:r,placement:o=Ke.BOTTOM_START,toggleHandler:i}=e,s={[Mi]:r,[Bi]:String(n),onClick:i};return{contentProps:{id:n,[Fi]:t,[Hi]:o},triggerProps:s}},Vi={dropdownRef:{current:null},fullWidthMode:Ui.off,id:"",isOpen:!1,onToggle:()=>{},placement:Ke.BOTTOM_START,triggerRef:{current:void 0}},Wi=(0,t.createContext)(Vi),Xi=Wi.Provider,Gi=(Wi.Consumer,()=>(0,t.useContext)(Wi)),qi=Wi;var Yi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qi=(e={isOpen:!1})=>{const{alignmentX:t,alignmentY:n,isOpen:r}=e,o=Yi(e,["alignmentX","alignmentY","isOpen"]),i=h("Dropdown"),s=`${i}Popover`,a=r?"is-expanded":"",l=r?Dt:"",c=C()(i,{[fn(i,t,"alignmentX")]:t,[fn(i,n,"alignmentY")]:n}),p=C()(s,l);return{classProps:{root:c,trigger:C()(a),popover:p},props:o}};var Ki=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zi=e=>{const{children:n,enableAutoClose:o=!0,fullWidthMode:i,id:s,isOpen:a=!1,onAutoClose:l,onToggle:c,placement:p}=e,u=Ki(e,["children","enableAutoClose","fullWidthMode","id","isOpen","onAutoClose","onToggle","placement"]),{classProps:d,props:f}=Qi(Object.assign({isOpen:a},u)),{styleProps:m,props:y}=oe(f),b=(0,t.useRef)(null),g=(0,t.useRef)();return ri({ref:b,callback:e=>{var t;o&&((null===(t=null==g?void 0:g.current)||void 0===t?void 0:t.contains(null==e?void 0:e.target))||(l&&l(e),c&&a&&c()))}}),r().createElement(Xi,{value:{id:s,isOpen:a,fullWidthMode:i,placement:p,onToggle:c,dropdownRef:b,triggerRef:g}},r().createElement("div",Object.assign({ref:b,className:C()(d.root,m.className),style:m.style},y),n))};Zi.spiritComponent="Dropdown";const Ji=Zi;var es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ts={elementType:"button"},ns=e=>{const t=Object.assign(Object.assign({},ts),e),{elementType:n="button",children:o}=t,i=es(t,["elementType","children"]),{id:s,isOpen:a,onToggle:l,fullWidthMode:c,triggerRef:p}=Gi(),{classProps:u,props:d}=Qi(Object.assign({isOpen:a},i)),{styleProps:f,props:m}=oe(d),y=ie(n,{classProps:u.trigger,triggerStyleProps:f}),{triggerProps:b}=zi({id:s,isOpen:a,toggleHandler:l,fullWidthMode:c});return r().createElement(n,Object.assign({},m,b,y,{ref:p}),"function"==typeof o?o({isOpen:a}):o)};ns.spiritComponent="DropdownTrigger";const rs=ns;var os=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const is=e=>{const{children:t}=e,n=os(e,["children"]),{id:o,isOpen:i,onToggle:s,fullWidthMode:a,placement:l}=Gi(),{classProps:c,props:p}=Qi(Object.assign({isOpen:i},n)),{styleProps:u,props:d}=oe(p),{contentProps:f}=zi({id:o,isOpen:i,toggleHandler:s,placement:l,fullWidthMode:a});return r().createElement("div",Object.assign({className:C()(c.popover,u.className),style:u.style},f,d),t)};is.spiritComponent="DropdownPopover";const ss=is,as=({dropdownRef:e,triggerRef:n,enableAutoClose:r,onAutoClose:o})=>{const[i,s]=(0,t.useState)(!1);return ri({ref:e,callback:e=>{var t;r&&((null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.contains(null==e?void 0:e.target))||(o&&o(e),s(!1)))}}),{toggleHandler:e=>{e.preventDefault(),s(!i)},isOpen:i}};var ls=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cs=e=>{const{children:n,enableAutoClose:o=!0,fullWidthMode:i,id:s,onAutoClose:a,placement:l}=e,c=ls(e,["children","enableAutoClose","fullWidthMode","id","onAutoClose","placement"]),{classProps:p,props:u}=Qi(c),{styleProps:d,props:f}=oe(u),m=(0,t.useRef)(null),y=(0,t.useRef)(),{isOpen:b,toggleHandler:g}=as({dropdownRef:m,triggerRef:y,enableAutoClose:o,onAutoClose:a});return r().createElement(Xi,{value:{id:s,isOpen:b,fullWidthMode:i,placement:l,onToggle:g,dropdownRef:m,triggerRef:y}},r().createElement("div",Object.assign({ref:m},d,f,{className:C()(p.root,d.className)}),n))};cs.spiritComponent="UncontrolledDropdown";const ps=cs;var us=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ds(e){const{hasEndDivider:t,hasIntermediateDividers:n,hasSpacing:r,hasStartDivider:o,spacing:i}=e,s=us(e,["hasEndDivider","hasIntermediateDividers","hasSpacing","hasStartDivider","spacing"]),a=h("Stack"),l=`${a}--hasEndDivider`,c=`${a}--hasIntermediateDividers`,p=`${a}--hasSpacing`,u=`${a}--hasStartDivider`;return{classProps:{root:C()(a,{[l]:t,[c]:n,[p]:r||i,[u]:o}),item:C()(`${a}Item`)},props:s,styleProps:rn(i,"stack")}}var fs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ms={elementType:"div",hasSpacing:!1,hasEndDivider:!1,hasIntermediateDividers:!1,hasStartDivider:!1},ys=e=>{const t=Object.assign(Object.assign({},ms),e),{elementType:n=ms.elementType,children:o}=t,i=fs(t,["elementType","children"]),{classProps:s,props:a,styleProps:l}=ds(i),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:s.root,stackStyle:l,styleProps:c,otherProps:p});return r().createElement(n,Object.assign({},p,u),o)};ys.spiritComponent="Stack";const bs=ys;function gs(e){const t=h("EmptyState");return{classProps:{root:t,section:`${t}__section`},props:e}}var Os=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hs=e=>{const{children:t}=e,n=Os(e,["children"]),{classProps:o,props:i}=gs(n),{styleProps:s,props:a}=oe(i);return r().createElement(bs,Object.assign({},a,{UNSAFE_className:C()(o.root,s.className),UNSAFE_style:s.style}),t)};hs.spiritComponent="EmptyState";const vs=hs;var Ps=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Es=e=>{const{children:t}=e,n=Ps(e,["children"]),{classProps:o,props:i}=gs(n),{styleProps:s,props:a}=oe(i);return r().createElement(bs,Object.assign({},a,{UNSAFE_className:C()(o.section,s.className),UNSAFE_style:s.style}),t)};Es.spiritComponent="EmptyStateSection";const xs=Es;var js=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ss=e=>{const{"aria-describedby":t="",children:n,helperText:o,hasValidationIcon:i,id:s,isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,label:u,validationState:d,validationText:f}=e,m=js(e,["aria-describedby","children","helperText","hasValidationIcon","id","isDisabled","isFluid","isLabelHidden","isRequired","label","validationState","validationText"]),{classProps:y}=(({isFluid:e,isRequired:t,validationState:n})=>{const r=h("FieldGroup"),o=`${r}--fluid`,i=`${r}--${n}`,s=`${r}__label`,a=`${s}--required`,l=`${r}__fields`,c=`${r}__validationText`,p=`${r}__helperText`;return{classProps:{root:C()(r,{[o]:e,[i]:n}),label:C()(s,{[a]:t}),fields:l,validationText:c,helperText:p}}})({hasValidationIcon:i,isFluid:l,isRequired:p,validationState:d}),{styleProps:b,props:g}=oe(m),[O,v]=ho(t),P=Oo(O),E=_o({validationState:d,validationText:f});return r().createElement("fieldset",Object.assign({},g,b,P,{className:C()(y.root,b.className),disabled:a}),r().createElement(Ni,{elementType:"legend"},u),!c&&r().createElement("div",{className:y.label,"aria-hidden":"true"},u),r().createElement("div",{className:y.fields},n),r().createElement(wo,{UNSAFE_className:y.helperText,id:`${s}__helperText`,registerAria:v,helperText:o}),d&&r().createElement(No,Object.assign({UNSAFE_className:y.validationText},i&&{hasValidationStateIcon:d},{id:`${s}__helperText`,validationText:f,registerAria:v,role:E})))};Ss.spiritComponent="FieldGroup";const ws=Ss,Ts=1e7,Cs=1,As=54,Ns=500,_s="The file size limit has been exceeded",Is="This file already exists in the queue",Rs="You have exceeded the number of files allowed in the queue",ks="This file type is not supported",Ds="file",Ls="Remove",$s="Edit",Ms={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},Bs={addToQueue:()=>new Map,clearQueue:()=>null,fileQueue:new Map,onDismiss:()=>new Map,findInQueue:()=>null,updateQueue:()=>new Map,errorMessages:{errorFileDuplicity:"",errorFileNotSupported:"",errorMaxFileSize:"",errorMaxUploadedFiles:""}},Fs=(0,t.createContext)(Bs),Hs=Fs.Provider,Us=(Fs.Consumer,()=>(0,t.useContext)(Fs)),zs=e=>{const t=h("FileUploader"),n="has-drag-and-drop",r=`${t}--fluid`,o=`${t}Input`,i=`${o}--disabled`,s=`${o}--${null==e?void 0:e.validationState}`,a="is-dragging",l=`${o}__dragAndDropLabel`,c=`${o}__dropZone`,p=`${c}Label`,u=`${o}__helperText`,d="d-none",f=`${o}__input`,m=`${o}__label`,y=`${o}__label--hidden`,b=`${o}__label--required`,g=`${o}__link`,O=`${o}__validationText`,v=`${t}List`,P=`${t}Attachment`,E=`${P}__name`,x=`${P}__action`,j=`${P}__image`,S=`${P}__slot`,{meta:w,imageObjectFit:T}=e||{};let A,N;const _=null!=w&&["x","y","cropWidth","cropHeight","originalWidth","originalHeight"].every((e=>null!=w[e]));if(_){const{x:e,y:t,cropWidth:n,cropHeight:r,originalWidth:o,originalHeight:i}=w;let s;s=r>n?As/n:As/r;const a=Math.round(e*s),l=Math.round(t*s),c=Math.round(o*s),p=Math.round(i*s);A={[Ms.TOP]:`-${l}px`,[Ms.LEFT]:`-${a}px`,[Ms.WIDTH]:`${c}px`,[Ms.HEIGHT]:`${p}px`}}return T&&(N={"--file-uploader-attachment-image-object-fit":T}),{classProps:Object.assign(Object.assign({root:C()(t,{[r]:null==e?void 0:e.isFluid}),input:{root:C()(o,{[n]:null==e?void 0:e.isDragAndDropSupported,[i]:(null==e?void 0:e.isDisabled)||(null==e?void 0:e.isDisabledByQueueLimitBehavior)&&"disable"===(null==e?void 0:e.queueLimitBehavior),[a]:null==e?void 0:e.isDragging,[d]:(null==e?void 0:e.isDropZoneHidden)&&"hide"===e.queueLimitBehavior,[s]:null==e?void 0:e.validationState}),label:C()(m,{[b]:null==e?void 0:e.isRequired,[y]:null==e?void 0:e.isLabelHidden}),input:f,dropLabel:l,helper:u,link:C()(g,"link-primary","link-underlined"),validationText:O,dropZone:{root:c,label:p}},list:v,attachment:{root:P,button:x,name:E,image:j,slot:S}},_&&{imageCropStyles:A}),T&&{attachmentStyles:N})}};var Vs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ws=e=>{const{addToQueue:t,children:n,clearQueue:o,errorMessages:i,fileQueue:s,findInQueue:a,id:l,isFluid:c,onDismiss:p,updateQueue:u}=e,d=Vs(e,["addToQueue","children","clearQueue","errorMessages","fileQueue","findInQueue","id","isFluid","onDismiss","updateQueue"]),{classProps:f}=zs({isFluid:c}),{styleProps:m,props:y}=oe(d),b={addToQueue:t,clearQueue:o,fileQueue:s,onDismiss:p,findInQueue:a,updateQueue:u,errorMessages:Object.assign({errorFileDuplicity:Is,errorFileNotSupported:ks,errorMaxFileSize:_s,errorMaxUploadedFiles:Rs},i)};return r().createElement(Hs,{value:b},r().createElement("div",Object.assign({id:l},y,m,{className:C()(f.root,m.className)}),n))};Ws.spiritComponent="FileUploader";const Xs=Ws,Gs=e=>{const[n,r]=(0,t.useState)(!1);return{isDragging:n,onDragOver:t=>{t.preventDefault(),(null==e?void 0:e.onDragOver)&&e.onDragOver(t)},onDragEnter:t=>{r(!0),(null==e?void 0:e.onDragEnter)&&e.onDragEnter(t)},onDragLeave:t=>{r(!1),(null==e?void 0:e.onDragLeave)&&e.onDragLeave(t)},onDrop:t=>{t.preventDefault(),(null==e?void 0:e.onDrop)&&e.onDrop(t),r(!1)}}},qs=e=>{const{maxFileSize:n,maxUploadedFiles:r,queueLimitBehavior:o,isMultiple:i,onError:s,accept:a}=e,[l,c]=(0,t.useState)(!1),[p,u]=(0,t.useState)(!1),{fileQueue:d,addToQueue:f,clearQueue:m,errorMessages:y}=Us(),b=e=>`file__${e.replace(/\./g,"_").replace(/\s/g,"_")}`,g=e=>{try{i||m(),(e=>{if(i&&d.has(b(e.name)))throw new Error(`${e.name}: ${null==y?void 0:y.errorFileDuplicity}`)})(e),(e=>{if(e.size>n)throw new Error(`${e.name}: ${null==y?void 0:y.errorMaxFileSize}`)})(e),(e=>{var t;const n=null===(t=e.name.split(".").pop())||void 0===t?void 0:t.toLowerCase(),r=e.type;let o;if(a&&""!==a&&"*"!==a&&"*/*"!==a){const e=a.replace(/ /g,"").split(","),t=e.filter((e=>e.match(/\./g))),i=e.filter((e=>e.match(/\//g)));t.forEach((e=>{const t=e.replace(".","").replace("*","");n.match(t)&&(o=!0)})),i.forEach((e=>{const t=e.replace("*","");r.match(t)&&(o=!0)}))}else o=!0;if(!o)throw new Error(`${e.name}: ${null==y?void 0:y.errorFileNotSupported}`)})(e),(()=>{if(d.size>=r)throw new Error(null==y?void 0:y.errorMaxUploadedFiles)})(),(()=>{if(r>1&&!i)throw new Error("`isMultiple` props must be set when maxUploadedFiles is greater than `1`")})(),f(b(e.name),e)}catch(e){s?s(e):N(!1,e)}};(0,t.useEffect)((()=>{var e;e=d,o&&("hide"===o?u((null==e?void 0:e.size)>=r):c((null==e?void 0:e.size)>=r))}),[d]);const O=Gs({onDrop:e=>{const t=Array.from(e.dataTransfer.items),n=Array.from(e.dataTransfer.files);let o,i=0;i+=d.size,e.dataTransfer.items?t.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&i<r?(g(t),i+=1):o=!0}})):n.forEach((e=>{i<r?(g(e),i+=1):o=!0})),o&&s&&(null==y?void 0:y.errorMaxUploadedFiles)&&s(new Error(null==y?void 0:y.errorMaxUploadedFiles))}});return Object.assign({isDropZoneHidden:p,isDisabledByQueueLimitBehavior:l,onChange:e=>{const{files:t}=e.target,n=Array.prototype.slice.call(t);let o,i=0;i+=d.size,n.forEach((e=>{i<r?(g(e),i+=1):o=!0})),o&&s&&(null==y?void 0:y.errorMaxUploadedFiles)&&s(new Error(null==y?void 0:y.errorMaxUploadedFiles)),e.target.blur(),e.target.value=""}},O)};var Ys=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qs=e=>{const[n,o]=(0,t.useState)(!1),{accept:i,"aria-describedby":s="",dropZoneRef:a,hasValidationIcon:l,helperText:c,iconName:p="upload",id:u,inputRef:d,isDisabled:f,isLabelHidden:m,isMultiple:y,isRequired:b,label:g,labelText:O,linkText:h,maxFileSize:v=Ts,maxUploadedFiles:P=Cs,onError:E,queueLimitBehavior:x="none",validationState:j,validationText:S}=e,w=Ys(e,["accept","aria-describedby","dropZoneRef","hasValidationIcon","helperText","iconName","id","inputRef","isDisabled","isLabelHidden","isMultiple","isRequired","label","labelText","linkText","maxFileSize","maxUploadedFiles","onError","queueLimitBehavior","validationState","validationText"]),{isDisabledByQueueLimitBehavior:T,isDragging:A,isDropZoneHidden:N,onChange:_,onDragEnter:I,onDragLeave:R,onDragOver:k,onDrop:D}=qs({accept:i,isMultiple:y,maxFileSize:v,maxUploadedFiles:P,onError:E,queueLimitBehavior:x}),{classProps:L}=zs({hasValidationIcon:l,isDisabled:f,isDisabledByQueueLimitBehavior:T,isDragAndDropSupported:n,isDragging:A,isDropZoneHidden:N,isLabelHidden:m,isRequired:b,queueLimitBehavior:x,validationState:j}),{styleProps:$,props:M}=oe(w),[B,F]=ho(s),H=Oo(B),U=_o({validationState:j,validationText:S});return(0,t.useEffect)((()=>{o("draggable"in document.createElement("span"))}),[]),r().createElement("div",Object.assign({},M,$,{onDragOver:!f&&n?k:void 0,onDragEnter:!f&&n?I:void 0,onDragLeave:!f&&n?R:void 0,onDrop:!f&&n?D:void 0,className:C()(L.input.root,$.className)}),r().createElement(Eo,{htmlFor:u,UNSAFE_className:L.input.label},g),r().createElement("input",Object.assign({},H,{type:"file",accept:i,id:u,ref:d,className:L.input.input,onChange:_,multiple:y,disabled:f||T},w)),r().createElement("div",{ref:a,className:L.input.dropZone.root},r().createElement(dt,{name:p,"aria-hidden":"true"}),r().createElement(Eo,{htmlFor:u,UNSAFE_className:L.input.dropZone.label},r().createElement("span",{className:L.input.link},h)," ",r().createElement("span",{className:L.input.dropLabel},O)),r().createElement(wo,{UNSAFE_className:L.input.helper,id:`${u}__helperText`,registerAria:F,helperText:c})),j&&r().createElement(No,Object.assign({UNSAFE_className:L.input.validationText,elementType:"span"},l&&{hasValidationStateIcon:j},{id:`${u}__validationText`,validationText:S,registerAria:F,role:U})))};Qs.spiritComponent="FileUploaderInput";const Ks=Qs;var Zs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Js=e=>{const{label:n,id:o,attachmentComponent:i,inputName:s,hasImagePreview:a}=e,l=Zs(e,["label","id","attachmentComponent","inputName","hasImagePreview"]),{classProps:c}=zs(),{styleProps:p,props:u}=oe(l),{fileQueue:d,onDismiss:f}=Us(),m=(0,t.useMemo)((()=>Array.from(d,(e=>({key:e[0],file:e[1].file,meta:e[1].meta}))).map((({key:e,file:t,meta:n})=>i&&i({id:e,label:t.name,name:s,file:t,meta:n,onDismiss:f,hasImagePreview:a})))),[i,d,s,f,a]);return r().createElement(r().Fragment,null,r().createElement("h3",{id:o,hidden:!0},n),r().createElement("ul",Object.assign({"aria-labelledby":o},u,p,{className:C()(c.list,p.className)}),m))};Js.spiritComponent="FileUploaderList";const ea=Js;var ta=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const na=e=>{const{name:t="edit",children:n}=e,o=ta(e,["name","children"]),{classProps:i}=zs(),{styleProps:s,props:a}=oe(o);return r().createElement("button",Object.assign({type:"button"},a,s,{className:C()(i.attachment.button,s.className)}),r().createElement(Ni,null,n),r().createElement(dt,{name:t,"aria-hidden":"true"}))};na.spiritComponent="AttachmentActionButton";const ra=na;var oa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ia=e=>{const{children:t}=e,n=oa(e,["children"]),{classProps:o}=zs(),{styleProps:i,props:s}=oe(n);return r().createElement("button",Object.assign({type:"button"},s,i,{className:C()(o.attachment.button,i.className)}),r().createElement(Ni,null,t),r().createElement(dt,{name:"close","aria-hidden":"true"}))};ia.spiritComponent="AttachmentDismissButton";const sa=ia,aa={meta:void 0,imageObjectFit:"cover"},la=e=>{const t=Object.assign(Object.assign({},aa),e),{label:n,imagePreview:o,meta:i,imageObjectFit:s}=t,{classProps:a}=zs({meta:i,imageObjectFit:s}),{imageCropStyles:l,attachmentStyles:c}=a;return r().createElement("span",{className:a.attachment.image},r().createElement("img",{src:o,width:As,height:As,alt:n,style:Object.assign(Object.assign({},l),c)}))};la.spiritComponent="AttachmentImagePreview";const ca=la,pa=(e,t,n)=>{var r;const o=document.createElement("input"),i=new DataTransfer;if(e)return null===(r=i.items)||void 0===r||r.add(e),o.setAttribute("type","file"),o.setAttribute("name",`${t}[]`),o.setAttribute("hidden",""),o.files=i.files,o;n?n("File not found"):N(!1,"File not found")},ua=(e,t,n)=>{const r=document.createElement("input");return r.setAttribute("type","text"),r.setAttribute("name",`${t}_meta`),r.setAttribute("value",JSON.stringify(n)),r.setAttribute("hidden",""),r},da=(e,t,n)=>{const r=new FileReader;r.onload=e=>{const r=new Image;r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d");e.width=t,e.height=r.height/r.width*t,null==o||o.drawImage(r,0,0,e.width,e.height);const i=e.toDataURL("image/jpeg",.8);n(i)},e.target&&e.target.result&&(r.src=e.target.result.toString())},r.readAsDataURL(e)},fa=e=>{const t=atob(e),n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Uint8Array(n)},ma=({attachmentRef:e,file:t,name:n,meta:r,onError:o})=>{ni((()=>{(r=>{var i,s,a;null===(i=e.current)||void 0===i||i.querySelectorAll("input").forEach((e=>e.remove()));const l=pa(t,n,o);if(l&&(null===(s=e.current)||void 0===s||s.appendChild(l)),r){const o=ua(t,n,r);null===(a=e.current)||void 0===a||a.appendChild(o)}})(r)}),[e,t,n,r,o])};var ya=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ba=e=>{const{editText:n,file:o,hasImagePreview:i,iconName:s=Ds,id:a,imageObjectFit:l,label:c,meta:p,name:u,onDismiss:d,onEdit:f,onError:m,removeText:y}=e,b=ya(e,["editText","file","hasImagePreview","iconName","id","imageObjectFit","label","meta","name","onDismiss","onEdit","onError","removeText"]),[g,O]=(0,t.useState)(""),{classProps:v}=zs(),{styleProps:P,props:E}=oe(b),x=o.type.includes("image"),j=(0,t.useRef)();return x&&da(o,Ns,(e=>O(e))),ma({attachmentRef:j,file:o,name:u,meta:p,onError:m}),r().createElement("li",Object.assign({id:a,ref:j},E,P,{className:C()(v.attachment.root,P.className)}),i&&g?r().createElement(ca,{label:c,imagePreview:g,meta:p,imageObjectFit:l}):r().createElement(dt,{name:s,"aria-hidden":"true"}),r().createElement("span",{className:v.attachment.name},r().createElement("span",{className:h("text-truncate")},c)),f&&r().createElement("span",{className:v.attachment.slot},r().createElement(ra,{onClick:e=>f&&f(e,o)},n||$s)),r().createElement(sa,{onClick:()=>{d&&d(a)}},y||Ls))};ba.spiritComponent="FileUploaderAttachment";const ga=ba,Oa=()=>{const[e,n]=(0,t.useState)(new Map);return{addToQueue:(t,r,o)=>(n((e=>{const n={file:r};return null!=o&&(n.meta=o),new Map(e.set(t,n))})),e),clearQueue:()=>{n((e=>(e.clear(),new Map(e))))},fileQueue:e,findInQueue:t=>e.get(t)||null,onDismiss:t=>(n((e=>{const n=new Map(e);return n.delete(t),n})),e),updateQueue:(t,r,o)=>(n((e=>{const n=new Map(e),i={file:r};return null!=o&&(i.meta=o),n.set(t,i),n})),e)}};var ha=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const va=e=>{const{attachmentComponent:n,maxFileSize:o,maxUploadedFiles:i,helperText:s,iconName:a,inputId:l,inputLabel:c,inputName:p,inputProps:u,isLabelHidden:d,isDisabled:f,isFluid:m,queueLimitBehavior:y,isMultiple:b,isRequired:g,labelText:O,linkText:h,listId:v,listProps:P,onInputError:E,onChange:x,errorMessages:j,validationState:S,validationText:w}=e,T=ha(e,["attachmentComponent","maxFileSize","maxUploadedFiles","helperText","iconName","inputId","inputLabel","inputName","inputProps","isLabelHidden","isDisabled","isFluid","queueLimitBehavior","isMultiple","isRequired","labelText","linkText","listId","listProps","onInputError","onChange","errorMessages","validationState","validationText"]),{fileQueue:C,addToQueue:A,clearQueue:N,onDismiss:_,findInQueue:I,updateQueue:R}=Oa();return(0,t.useEffect)((()=>{x&&x(C)}),[C]),r().createElement(Xs,Object.assign({fileQueue:C,onDismiss:_,addToQueue:A,clearQueue:N,findInQueue:I,updateQueue:R,errorMessages:j,isFluid:m},T),r().createElement(Ks,Object.assign({maxFileSize:o,maxUploadedFiles:i,helperText:s,iconName:a,id:l,isLabelHidden:d,isDisabled:f,queueLimitBehavior:y,isMultiple:b,isRequired:g,label:c,labelText:O,linkText:h,name:p,onError:E,validationState:S,validationText:w},u)),r().createElement(ea,Object.assign({id:v,inputName:p,attachmentComponent:n},P)))};va.spiritComponent="UncontrolledFileUploader";const Pa=va;var Ea=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xa={backgroundColor:ze.SECONDARY,paddingBottom:"space-1200",paddingTop:"space-1400"},ja=e=>{const t=Object.assign(Object.assign({},xa),e),{children:n,backgroundColor:o}=t,i=Ea(t,["children","backgroundColor"]),{classProps:s}=(e=>{const{backgroundColor:t}=e,n=h(`bg-${t}`),r=t?n:"";return{classProps:C()({[r]:t})}})({backgroundColor:o}),{styleProps:a,props:l}=oe(i,{paddingBottom:k.paddingBottom,paddingTop:k.paddingTop,textAlignment:D.textAlignment});return r().createElement("footer",Object.assign({},l,a,{className:C()(s,a.className)}),n)};ja.spiritComponent="Footer";const Sa=ja;var wa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ta(e){const{alignmentX:t,alignmentY:n,cols:r,spacing:o,spacingX:i,spacingY:s}=e,a=wa(e,["alignmentX","alignmentY","cols","spacing","spacingX","spacingY"]),l=h("Grid"),c=Object.assign(Object.assign(Object.assign(Object.assign({},rn(o,"grid",tn.X)),rn(o,"grid",tn.Y)),rn(i,"grid",tn.X)),rn(s,"grid",tn.Y));return{classProps:C()(l,{[fn(l,t,"alignmentX")]:t,[fn(l,n,"alignmentY")]:n,[function(e,t,n){return"object"==typeof t&&null!==t?Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,i=t[r];return`${e}${o}--${n}-${i}`})).join(" "):`${e}--${n}-${t}`}(l,r,"cols")]:r}),props:a,styleProps:c}}var Ca=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Aa={alignmentX:De.STRETCH,alignmentY:$e.STRETCH,elementType:"div"},Na=e=>{const t=Object.assign(Object.assign({},Aa),e),{elementType:n="div",children:o}=t,i=Ca(t,["elementType","children"]),{classProps:s,props:a,styleProps:l}=Ta(i),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:s,styleProps:c,otherProps:p,gridStyle:l});return r().createElement(n,Object.assign({},p,u),o)};Na.spiritComponent="Grid";const _a=Na,Ia=(e,t,n)=>{e[t]=n};function Ra(e){const t=h("GridItem"),n={};return Object.keys(e).filter((e=>e.startsWith("column")||e.startsWith("row"))).forEach((t=>{const r=t.startsWith("column")?"column":"row";var o,i,s;e[t]&&(o=n,i=`grid-item-${r}-${t.replace(r,"").toLowerCase()}`,"object"==typeof(s=e[t])&&null!==s?Object.keys(s).forEach((e=>{var t;Ia(o,`--${i}${"mobile"===e?"":`-${e}`}`,null===(t=s[e])||void 0===t?void 0:t.toString())})):Ia(o,`--${i}`,null==s?void 0:s.toString())),delete e[t]})),{classProps:t,props:e,styleProps:n}}var ka=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Da=e=>{const{elementType:t="div",children:n}=e,o=ka(e,["elementType","children"]),{classProps:i,styleProps:s,props:a}=Ra(o),{styleProps:l,props:c}=oe(a),p=ie(t,{classProps:i,styleProps:l,otherProps:c,gridItemStyle:s});return r().createElement(t,Object.assign({},c,p),n)};Da.spiritComponent="GridItem";const La=Da,$a="primary",Ma="primary",Ba="Close",Fa="Menu",Ha=({actionsColor:e=Ma,color:t=$a,hasActionsAtEnd:n,isCurrentLink:r,isSimple:o}={actionsColor:Ma,color:$a,hasActionsAtEnd:!1,isCurrentLink:!1,isSimple:!1})=>{const i=h("Header"),s=`${i}--${t}`,a=`${i}--simple`,l=`${i}Nav`,c=`${i}NavItem`,p=`${i}Link`,u=`${p}--current`,d=`${i}DesktopActions`,f=`${d}--end`,m=`${i}MobileActions`,y=`${i}Dialog`,b=`${y}__panel`,g=`${y}__content`,O=`${i}DialogActions`,v=`${O}--${e}`,P=`${i}DialogCloseButton`,E=`${i}DialogLink`,x=`${E}--current`,j=`${i}DialogNav`,S=`${i}DialogNavItem`,w=`${i}DialogText`;return{classProps:{root:C()(i,s,{[a]:o}),headerButton:p,headerDesktopActions:C()(d,{[f]:n}),headerDialog:{root:y,panel:b,content:g},headerDialogActions:C()(O,v),headerDialogButton:E,headerDialogCloseButton:P,headerDialogLink:C()(E,{[x]:r}),headerDialogNav:j,headerDialogNavItem:S,headerDialogText:w,headerLink:C()(p,{[u]:r}),headerMobileActions:m,headerNav:l,headerNavItem:c}}};var Ua=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const za=e=>{const{children:t,color:n=$a,isSimple:o}=e,i=Ua(e,["children","color","isSimple"]),{classProps:s}=Ha({color:n,isSimple:o}),{styleProps:a,props:l}=oe(i);return At({method:"custom",trigger:!0,componentName:"Header",customText:"The component will be removed in the next major version. Component is replaced by the current implementation of UNSTABLE_Header.\n Please see the composition of the UNSTABLE_Header, Drawer and Navigation components."}),r().createElement("header",Object.assign({},l,{className:C()(s.root,a.className),style:a.style}),t)};za.spiritComponent="Header";const Va=za,Wa=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("button",Object.assign({},o,{type:"button",className:C()(t.headerButton,n.className),style:n.style}))};Wa.spiritComponent="HeaderButton";const Xa=Wa;var Ga=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qa={isAtEnd:!1},Ya=e=>{const t=Object.assign(Object.assign({},qa),e),{isAtEnd:n}=t,o=Ga(t,["isAtEnd"]),{classProps:i}=Ha({hasActionsAtEnd:n}),{styleProps:s,props:a}=oe(o);return r().createElement("nav",Object.assign({},a,{className:C()(i.headerDesktopActions,s.className),style:s.style}))};Ya.spiritComponent="HeaderDesktopActions";const Qa=Ya,Ka=(0,t.createContext)({id:"",isOpen:!1,onClose:()=>null}),Za=Ka.Provider,Ja=Ka.Consumer,el=()=>(0,t.useContext)(Ka);var tl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nl=e=>{const{children:t,id:n,isOpen:o,onClose:i}=e,s=tl(e,["children","id","isOpen","onClose"]),{classProps:a}=Ha(),{styleProps:l,props:c}=oe(s),p={id:n,isOpen:o,onClose:i};return gi(o),r().createElement(Za,{value:p},r().createElement(fi,Object.assign({},c,{id:n,isOpen:o,onClose:i,className:C()(a.headerDialog.root,l.className),style:l.style}),r().createElement("div",{className:a.headerDialog.panel},r().createElement("div",{className:a.headerDialog.content},t))))};nl.spiritComponent="HeaderDialog";const rl=nl;var ol=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const il=e=>{const{color:t=Ma}=e,n=ol(e,["color"]),{classProps:o}=Ha({actionsColor:t}),{styleProps:i,props:s}=oe(n);return r().createElement("nav",Object.assign({},s,{className:C()(o.headerDialogActions,i.className),style:i.style}))};il.spiritComponent="HeaderDialogActions";const sl=il,al=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("button",Object.assign({},o,{type:"button",className:C()(t.headerDialogButton,n.className),style:n.style}))};al.spiritComponent="HeaderDialogButton";const ll=al;var cl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pl=e=>{const{label:t=Ba,onClick:n}=e,o=cl(e,["label","onClick"]),{classProps:i}=Ha(),{styleProps:s,props:a}=oe(o),{id:l,isOpen:c,onClose:p}=el();return r().createElement("button",Object.assign({},a,{type:"button","aria-expanded":c,"aria-controls":l,onClick:e=>{p(e),n&&n(e)},className:C()(i.headerDialogCloseButton,s.className),style:s.style}),r().createElement(dt,{name:"close"}),r().createElement(Ni,null,t))};pl.spiritComponent="HeaderDialogCloseButton";const ul=pl;var dl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fl=(0,t.forwardRef)(((e,t)=>{const{elementType:n="a",children:o,isCurrent:i}=e,s=dl(e,["elementType","children","isCurrent"]),{classProps:a}=Ha({isCurrentLink:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.headerDialogLink,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p,{ref:t}),o)}));fl.spiritComponent="HeaderDialogLink";const ml=fl,yl=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("ul",Object.assign({},o,{className:C()(t.headerDialogNav,n.className),style:n.style}))};yl.spiritComponent="HeaderDialogNav";const bl=yl,gl=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("li",Object.assign({},o,{className:C()(t.headerDialogNavItem,n.className),style:n.style}))};gl.spiritComponent="HeaderDialogNavItem";const Ol=gl,hl=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("span",Object.assign({},o,{className:C()(t.headerDialogText,n.className),style:n.style}))};hl.spiritComponent="HeaderDialogText";const vl=hl;var Pl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const El=(0,t.forwardRef)(((e,t)=>{const{elementType:n="a",children:o,isCurrent:i}=e,s=Pl(e,["elementType","children","isCurrent"]),{classProps:a}=Ha({isCurrentLink:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.headerLink,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p,{ref:t}),o)}));El.spiritComponent="HeaderLink";const xl=El;var jl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Sl=e=>{const{children:t,dialogId:n,menuToggleLabel:o=Fa,isOpen:i,onOpen:s}=e,a=jl(e,["children","dialogId","menuToggleLabel","isOpen","onOpen"]),{classProps:l}=Ha(),{styleProps:c,props:p}=oe(a);return r().createElement("div",Object.assign({},p,{className:C()(l.headerMobileActions,c.className),style:c.style}),t,r().createElement(jr,{"aria-controls":n,"aria-expanded":i,color:"secondary",onClick:s,isSymmetrical:!0},r().createElement(dt,{name:"hamburger"}),r().createElement(Ni,null,o)))};Sl.spiritComponent="HeaderMobileActions";const wl=Sl,Tl=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("ul",Object.assign({},o,{className:C()(t.headerNav,n.className),style:n.style}))};Tl.spiritComponent="HeaderNav";const Cl=Tl,Al=e=>{const{classProps:t}=Ha(),{styleProps:n,props:o}=oe(e);return r().createElement("li",Object.assign({},o,{className:C()(t.headerNavItem,n.className),style:n.style}))};Al.spiritComponent="HeaderNavItem";const Nl=Al;var _l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Il(e){const{emphasis:t,size:n,textColor:r}=e,o=_l(e,["emphasis","size","textColor"]),i=h("typography-heading"),s=h(r?`text-${r}`:"");return{classProps:C()(`${i}-${n}-${t}`,{[s]:!!r}),props:o}}var Rl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kl={emphasis:Ye.BOLD,size:Je.MEDIUM},Dl=e=>{const t=Object.assign(Object.assign({},kl),e),{elementType:n,children:o}=t,i=Rl(t,["elementType","children"]),{classProps:s,props:a}=Il(Object.assign({},i)),{styleProps:l,props:c}=oe(a,{isTextBalanced:L.isTextBalanced,textAlignment:D.textAlignment,textHyphens:D.textHyphens,textWordBreak:D.textWordBreak}),p=ie(n,{classProps:s,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};Dl.spiritComponent="Heading";const Ll=Dl,$l={ROUNDED:"rounded",SQUARE:"square",CIRCLE:"circle"},Ml={[Je.XSMALL]:{padding:"space-500",iconSize:16},[Je.SMALL]:{padding:"space-500",iconSize:20},[Je.MEDIUM]:{padding:"space-600",iconSize:24},[Je.LARGE]:{padding:"space-600",iconSize:28},[Je.XLARGE]:{padding:"space-700",iconSize:28}},Bl={[$l.CIRCLE]:Fe.FULL,[$l.ROUNDED]:Fe[300],[$l.SQUARE]:Fe[0]},Fl={ACCENT:"accent",EMOTION:"emotion"},Hl=(e,t,n)=>`${e}-${t}-${n}`,Ul=(e,t=!0)=>{const n=t?qe.SUBTLE:qe.BASIC,r=n===qe.BASIC?qe.SUBTLE:qe.BASIC,o=null!=e?e:We.INFORMATIVE,i=(e=>Object.keys(Ne).includes(e)?Fl.EMOTION:Fl.ACCENT)(o);return{colors:{background:Hl(i,o,n),border:Hl(i,o,n),text:Hl(i,o,r)}}};function zl(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Vl(e,t){return t?zl(t)?Object.entries(t).map((([t,n])=>void 0===n?"":"mobile"===t?`${e}--${n}`:`${e}--${t}--${n}`)).filter((e=>""!==e)):[`${e}--${t}`]:[]}var Wl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xl=e=>{const t=e||{},{shape:n=$l.ROUNDED,size:r=Je.MEDIUM}=t,o=Wl(t,["shape","size"]),i=Bl[n],s={padding:`calc(var(--${we}local-padding) - var(--${we}local-border-width, 0px)) !important`};let a;if(zl(r)){const e={},t={};Object.entries(r).forEach((([n,r])=>{const o=Ml[r];e[n]=o.padding,t[n]=o.iconSize})),a={padding:e,iconSize:t}}else a=Ml[r];return{iconBoxStyles:s,props:o,shapesProps:i,sizeProps:a}};var Gl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ql={shape:$l.ROUNDED,color:We.INFORMATIVE,elementType:"div",hasBorder:!0,isSubtle:!0,size:Je.MEDIUM},Yl=e=>{const t=Object.assign(Object.assign({},ql),e),{elementType:n,shape:o,color:i,iconName:s,isSubtle:a,hasBorder:l,size:c}=t,p=Gl(t,["elementType","shape","color","iconName","isSubtle","hasBorder","size"]),{colors:u}=Ul(i,a),{iconBoxStyles:d,props:f,shapesProps:m,sizeProps:{padding:y,iconSize:b}}=Xl(Object.assign({size:c,shape:o},p)),{styleProps:g,props:O}=oe(f);return r().createElement(zn,Object.assign({},O,{backgroundColor:u.background,elementType:n,borderColor:l?u.border:void 0,borderRadius:m,borderWidth:l?Ue[100]:void 0,padding:y,textColor:u.text,UNSAFE_className:C()(g.className,"d-inline-flex"),UNSAFE_style:Object.assign(Object.assign({},g.style),d)}),r().createElement(dt,{"aria-hidden":"true",boxSize:b,name:s}))};Yl.spiritComponent="IconBox";const Ql=Yl;var Kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Zl(e){const{isDisabled:t,isSelected:n}=e,r=Kl(e,["isDisabled","isSelected"]),o=h("Item"),i=`${o}--disabled`,s=`${o}--selected`,a=`${o}__icon`;return{classProps:{helperText:`${o}__helperText`,icon:{root:a,start:`${a}--start`,end:`${a}--end`},label:`${o}__label`,root:C()(o,{[i]:t,[s]:n})},props:r}}var Jl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ec=e=>{const{label:t,elementType:n="button",iconName:o,helperText:i,isSelected:s,isDisabled:a}=e,l=Jl(e,["label","elementType","iconName","helperText","isSelected","isDisabled"]),{classProps:c,props:p}=Zl(Object.assign({isSelected:s,isDisabled:a},l)),{styleProps:u,props:d}=oe(p),f=ie(n,{classProps:c.root,styleProps:u,otherProps:d});return r().createElement(n,Object.assign({},d,f,{disabled:!!a&&"button"===n}),o&&r().createElement("span",{className:C()(c.icon.root,c.icon.start)},r().createElement(dt,{name:o})),r().createElement("span",{className:c.label},t),r().createElement(wo,{UNSAFE_className:c.helperText,elementType:"span",helperText:i}),s&&r().createElement("span",{className:C()(c.icon.root,c.icon.end)},r().createElement(dt,{name:"check-plain"})))};ec.spiritComponent="Item";const tc=ec,nc=(e,t)=>{const n={},r=`--${t}`;return"object"==typeof e&&null!==e?Object.keys(e).forEach((t=>{const o="mobile"===t?"":`-${t}`,i=e[t];n[`${r}${o}`]=`${null==i?void 0:i.toString()}`})):e&&(n[`${r}`]=`${null==e?void 0:e.toString()}`),n};var rc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oc=(e,t,n,r)=>{const o={},i=`--${r}`;return"object"==typeof e&&100===t&&n>0&&Object.keys(e).forEach((e=>{const t="mobile"===e?"":`-${e}`;o[`${i}-items-count`]=`${n}`,o[`${i}-rows${t}`]=`calc(var(${i}-item-rows) * var(${i}-items-count) / var(${i}-columns${t}))`})),o};function ic(e){const{cols:t,itemsCount:n,itemRows:r,rows:o,spacing:i,spacingX:s,spacingY:a}=e,l=rc(e,["cols","itemsCount","itemRows","rows","spacing","spacingX","spacingY"]),c=h("Matrix"),p=`${we}matrix`,u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nc(t,`${p}-columns`)),nc(o,`${p}-rows`)),nc(r,`${p}-item-rows`)),oc(t,o,n,p)),rn(i,p,tn.X)),rn(i,p,tn.Y)),rn(s,p,tn.X)),rn(a,p,tn.Y));return{classProps:C()(c),props:l,styleProps:u}}var sc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ac={cols:3,elementType:"div",itemRows:100,rows:100,spacingX:"space-700",spacingY:"space-0"},lc=e=>{const t=Object.assign(Object.assign({},ac),e),{elementType:n="div",children:o}=t,i=sc(t,["elementType","children"]),s=r().Children.count(o),{classProps:a,props:l,styleProps:c}=ic(Object.assign(Object.assign({},i),{itemsCount:s})),{styleProps:p,props:u}=oe(l),d=ie(n,{classProps:a,styleProps:p,otherProps:u,matrixStyleProps:c});return r().createElement(n,Object.assign({},u,d),o)};lc.spiritComponent="Matrix";const cc=lc,pc=(0,t.createContext)({id:"",isOpen:!1,onClose:()=>null}),uc=pc.Provider,dc=pc.Consumer,fc=()=>(0,t.useContext)(pc);function mc({footerAlignment:e=ke.RIGHT,isDockedOnMobile:t=!1,isExpandedOnMobile:n=!1,isOpen:r=!1,isScrollable:o=!1,modalAlignment:i=Le.CENTER}={}){const s=h("Modal"),a={top:`${s}--top`,center:`${s}--center`,bottom:`${s}--bottom`},l=`${s}Dialog`,c=`${l}--dockOnMobile`,p=`${l}--expandOnMobile`,u=`${l}--scrollable`,d=`${s}Header`,f=`${d}__title`,m=`${s}Body`,y=`${s}Footer`,b=`${y}__description`,g=`${y}__actions`,O={left:`${y}--left`,center:`${y}--center`,right:`${y}--right`};return{classProps:{root:C()(s,{[a[i]]:i,[Dt]:r}),dialog:C()(l,{[c]:t,[p]:n,[u]:o}),title:f,header:d,body:m,footer:{root:C()(y,{[O[e]]:e}),description:b,actions:g}}}}var yc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bc=e=>{const{children:t,alignmentY:n=Le.CENTER,isOpen:o,onClose:i,id:s}=e,a=yc(e,["children","alignmentY","isOpen","onClose","id"]),{classProps:l}=mc({isOpen:o,modalAlignment:n}),{styleProps:c,props:p}=oe(a),u={id:s,isOpen:o,onClose:i};return gi(o),r().createElement(uc,{value:u},r().createElement(fi,Object.assign({},p,c,{id:s,isOpen:o,onClose:i,className:C()(l.root,c.className),"aria-labelledby":`${s}__title`}),t))};bc.spiritComponent="Modal";const gc=bc;var Oc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hc=e=>{var{children:t}=e,n=Oc(e,["children"]);const{classProps:o}=mc(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,i,{className:C()(o.body,i.className)}),t)};hc.spiritComponent="ModalBody";const vc=hc;var Pc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ec=e=>{var{label:t="Close",onClose:n,id:o,isOpen:i}=e,s=Pc(e,["label","onClose","id","isOpen"]);return r().createElement(jr,Object.assign({},s,{isSymmetrical:!0,color:"tertiary",onClick:n,"aria-expanded":i,"aria-controls":o}),r().createElement(dt,{name:"close"}),r().createElement(Ni,null,t))};Ec.spiritComponent="ModalCloseButton";const xc=Ec;var jc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Sc=(e,t)=>{if(!t)return{};if("object"==typeof t)return Object.keys(t).reduce(((n,r)=>{var o;return n[`--${e}${"mobile"===r?"":`-${r}`}`]=null===(o=t[r])||void 0===o?void 0:o.toString(),n}),{});const n=`--${e}`;return{[n]:null==t?void 0:t.toString()}};var wc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tc=(e,t)=>{const{elementType:n="article",children:o,isDockedOnMobile:i,isExpandedOnMobile:s,isScrollable:a}=e,l=wc(e,["elementType","children","isDockedOnMobile","isExpandedOnMobile","isScrollable"]),{classProps:c}=mc({isDockedOnMobile:i,isExpandedOnMobile:s,isScrollable:a}),{modalDialogStyleProps:p,props:u}=(e=>{const{height:t,maxHeight:n}=e,r=jc(e,["height","maxHeight"]);return{modalDialogStyleProps:Object.assign(Object.assign({},Sc("modal-dialog-height",t)),Sc("modal-dialog-max-height",n)),props:r}})(l),{styleProps:d,props:f}=oe(u),m=ie(n,{classProps:c.dialog,modalDialogStyleProps:p,styleProps:d,otherProps:f});return r().createElement(n,Object.assign({},f,m,{ref:t}),o)};Tc.spiritComponent="ModalDialog";const Cc=(0,t.forwardRef)(Tc);var Ac=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Nc=e=>{const{children:t,alignmentX:n=ke.RIGHT,description:o}=e,i=Ac(e,["children","alignmentX","description"]),{classProps:s}=mc({footerAlignment:n}),{styleProps:a,props:l}=oe(i);return r().createElement("footer",Object.assign({},l,a,{className:C()(s.footer.root,a.className)}),o&&r().createElement("div",{className:s.footer.description},o),r().createElement("div",{className:s.footer.actions},t))};Nc.spiritComponent="ModalFooter";const _c=Nc;var Ic=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rc={hasCloseButton:!0},kc=e=>{const t=Object.assign(Object.assign({},Rc),e),{children:n,closeLabel:o,hasCloseButton:i}=t,s=Ic(t,["children","closeLabel","hasCloseButton"]),{classProps:a}=mc(),{styleProps:l,props:c}=oe(s),{id:p,isOpen:u,onClose:d}=fc();return r().createElement("header",Object.assign({},c,l,{className:C()(a.header,l.className)}),n&&r().createElement("h2",{id:`${p}__title`,className:a.title},n),i&&r().createElement(xc,{id:p,isOpen:u,label:o,onClose:d}))};kc.spiritComponent="ModalHeader";const Dc=kc;var Lc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $c=e=>{var{isDisabled:t=!1,isSelected:n=!1,isSquare:r=!1,alignmentY:o=$e.CENTER,direction:i=Jt.HORIZONTAL,variant:s=st.BOX}=e,a=Lc(e,["isDisabled","isSelected","isSquare","alignmentY","direction","variant"]);const l=h("Navigation"),c=`${l}Action`,p=`${l}Avatar`,u=`${l}Item`,d=`${l}--${i}`,f=`${c}--disabled`,m=`${c}--selected`,y=`${c}--${s}`,b=`${p}--square`,g=C()(u,{[fn(u,o,"alignmentY")]:o});return{classProps:{root:C()(l,d),action:C()(c,y,{[f]:t,[m]:n}),avatar:C()(p,{[b]:r}),item:g},props:a}};var Mc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bc={direction:Jt.HORIZONTAL},Fc=e=>{const t=Object.assign(Object.assign({},Bc),e),{children:n}=t,o=Mc(t,["children"]),{classProps:i,props:s}=$c(o),{styleProps:a,props:l}=oe(s);return r().createElement("nav",Object.assign({},l,{className:C()(i.root,a.className),style:a.style}),r().createElement("ul",null,n))};Fc.spiritComponent="Navigation";const Hc=Fc,Uc=e=>{const{isDisabled:t,href:n,target:r,rel:o}=e;return{navigationActionProps:{href:t?void 0:n,target:t?void 0:r,rel:t?void 0:o}}};var zc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vc={elementType:"a",variant:st.BOX},Wc=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Vc),e),{elementType:o=Vc.elementType,children:i}=n,s=zc(n,["elementType","children"]),a=n.isDisabled?"span":o,{navigationActionProps:l}=Uc(n),{classProps:c,props:p}=$c(s),{styleProps:u,props:d}=oe(p),f=ie(a,{classProps:c.action,styleProps:u,otherProps:d});return r().createElement(a,Object.assign({},d,l,f,{ref:t}),i)}));Wc.spiritComponent="NavigationAction";const Xc=Wc;var Gc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qc={elementType:"a",isSquare:!1},Yc=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},qc),e),{elementType:o=qc.elementType,avatarContent:i,isSquare:s,children:a}=n,l=Gc(n,["elementType","avatarContent","isSquare","children"]),{classProps:c,props:p}=$c(Object.assign({isSquare:s},l)),{styleProps:u,props:d}=oe(p),f=ie(o,{classProps:c.avatar,styleProps:u,otherProps:d});return r().createElement(o,Object.assign({},d,f,{href:l.href,ref:t}),r().createElement($n,{size:Ze.SMALL,isSquare:s},i),a)}));Yc.spiritComponent="NavigationAvatar";const Qc=Yc;var Kc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zc={alignmentY:$e.CENTER},Jc=e=>{const t=Object.assign(Object.assign({},Zc),e),{children:n}=t,o=Kc(t,["children"]),{classProps:i,props:s}=$c(o),{styleProps:a,props:l}=oe(s);return r().createElement("li",Object.assign({},l,{className:C()(i.item,a.className),style:a.style}),n)};Jc.spiritComponent="NavigationItem";const ep=Jc,tp=({children:e})=>{const[n,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{r(!0)}),[]),n?e:null};tp.spiritComponent="NoSsr";const np=tp,rp=e=>{const t=h("Pagination"),n=`${t}__link`,r=`${n}--current`;return{classProps:{root:t,item:`${t}__item`,link:C()(n,{[r]:null==e?void 0:e.isCurrent})}}};var op=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ip=e=>{const{children:t,listProps:n={}}=e,o=op(e,["children","listProps"]),{classProps:i}=rp(),{styleProps:s,props:a}=oe(o),{styleProps:l,props:c}=oe(n);return r().createElement("nav",Object.assign({},a,s),r().createElement("ul",Object.assign({},l,c,{className:C()(i.root,l.className)}),t))};ip.spiritComponent="Pagination";const sp=ip;var ap=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lp=(0,t.forwardRef)(((e,t)=>{const n=e,{direction:o,accessibilityLabel:i}=n,s=ap(n,["direction","accessibilityLabel"]);return r().createElement(Rr,Object.assign({color:"secondary",isSymmetrical:!0},s,{ref:t}),r().createElement(dt,{name:{previous:"chevron-left",next:"chevron-right"}[o]}),r().createElement(Ni,null,i))}));lp.spiritComponent="PaginationButtonLink";const cp=lp;var pp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const up=e=>{const{children:t}=e,n=pp(e,["children"]),{classProps:o}=rp(),{styleProps:i,props:s}=oe(n);return r().createElement("li",Object.assign({},s,i,{className:C()(o.item,i.className)}),t)};up.spiritComponent="PaginationItem";const dp=up;var fp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mp=(0,t.forwardRef)(((e,t)=>{const{elementType:n="a",accessibilityLabel:o,isCurrent:i,pageNumber:s}=e,a=fp(e,["elementType","accessibilityLabel","isCurrent","pageNumber"]),{classProps:l}=rp({isCurrent:i}),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:l.link,styleProps:c,otherProps:p});return r().createElement(n,Object.assign({},p,u,{ref:t}),r().createElement(Ni,null,o),r().createElement("span",{"aria-hidden":"true"},s))}));mp.spiritComponent="PaginationLink";const yp=mp,bp="Previous",gp="Next";var Op=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hp=(0,t.forwardRef)(((e,t)=>{var{accessibilityLabel:n=gp}=e,o=Op(e,["accessibilityLabel"]);return r().createElement(cp,Object.assign({direction:"next",accessibilityLabel:n},o,{ref:t}))}));hp.spiritComponent="PaginationLinkNext";const vp=hp;var Pp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ep=(0,t.forwardRef)(((e,t)=>{var{accessibilityLabel:n=bp}=e,o=Pp(e,["accessibilityLabel"]);return r().createElement(cp,Object.assign({direction:"previous",accessibilityLabel:n},o,{ref:t}))}));Ep.spiritComponent="PaginationLinkPrevious";const xp=Ep,jp=({totalPages:e,onChange:n,defaultPage:r,visiblePages:o})=>{const[i,s]=(0,t.useState)(r<=0||r>e?1:null!=r?r:1),[a,l]=(0,t.useState)([o]);(0,t.useMemo)((()=>{const t=o>e?e:o,n=e-i<t?e-(t-1):i;l(Array.from(Array(t),((e,t)=>t+n)))}),[o,i,e]);const c=(0,t.useCallback)((e=>{s(e),n&&n(e)}),[n]);return(0,t.useMemo)((()=>{l((()=>{const t=Math.floor(o/2);let n=Math.max(1,i-t);const r=Math.min(n+o-1,e);if(e-o<n-1){const t=e-o+1;n=t<1?1:t}return Array.from({length:r-n+1},((e,t)=>n+t))})())}),[]),{totalPages:e,currentPage:i,pages:a,handlePageChange:c}};var Sp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wp=e=>{const{accessibilityLabel:t,accessibilityLabelPrevious:n="Previous",accessibilityLabelNext:o="Next",defaultPage:i=1,onChange:s,totalPages:a=0,visiblePages:l=5}=e,c=Sp(e,["accessibilityLabel","accessibilityLabelPrevious","accessibilityLabelNext","defaultPage","onChange","totalPages","visiblePages"]),{currentPage:p,pages:u,handlePageChange:d}=jp({defaultPage:i,onChange:s,totalPages:a,visiblePages:l});return r().createElement(sp,Object.assign({},c),1!==p&&r().createElement(xp,{accessibilityLabel:n,onClick:e=>{e.preventDefault(),d(p-1)}}),null==u?void 0:u.map((e=>r().createElement(dp,{key:e},r().createElement(yp,{accessibilityLabel:`${t} ${e}`,href:"#",isCurrent:p===e,pageNumber:e,onClick:t=>{t.preventDefault(),d(e)}})))),p!==a&&r().createElement(vp,{accessibilityLabel:o,onClick:e=>{e.preventDefault(),d(p+1)}}))};wp.spiritComponent="UncontrolledPagination";const Tp=wp;var Cp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ap=e=>{const{hasSafeArea:t,isFluid:n,size:r}=e,o=Cp(e,["hasSafeArea","isFluid","size"]),i=h("PartnerLogo"),s=`${i}--fluid`,a=`${i}--safeArea`,l=Vl(i,r);return{classProps:C()(i,{[s]:n,[a]:t},l),props:o}};var Np=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _p={hasSafeArea:!0,isFluid:!1,size:Ze.MEDIUM},Ip=e=>{const t=Object.assign(Object.assign({},_p),e),{children:n}=t,o=Np(t,["children"]),{classProps:i,props:s}=Ap(o),{styleProps:a,props:l}=oe(s);return r().createElement("div",Object.assign({},l,{className:C()(i,a.className),style:a.style}),n)};Ip.spiritComponent="PartnerLogo";const Rp=Ip,kp={SELECTED:"selected",NEUTRAL:"neutral"};var Dp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Lp(e){const{color:t}=e,n=Dp(e,["color"]),r=h("Pill"),o=`${r}--${t}`;return{classProps:C()(r,{[o]:t}),props:n}}var $p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Mp={color:kp.SELECTED,elementType:"span"},Bp=e=>{const t=Object.assign(Object.assign({},Mp),e),{elementType:n="span",children:o}=t,i=$p(t,["elementType","children"]),{classProps:s,props:a}=Lp(i),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:s,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};Bp.spiritComponent="Pill";const Fp=Bp;var Hp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Up=e=>{const{hasComparableFeatures:t,isHighlighted:n,action:r,badge:o,title:i,subtitle:s,note:a,price:l,rows:c}=e,p=Hp(e,["hasComparableFeatures","isHighlighted","action","badge","title","subtitle","note","price","rows"]),u=h("PricingPlan"),d=`${u}--comparableFeatures`,f=`${u}__layout`,m=`${u}--highlighted`,y=h("PricingPlanHeader"),b=`${y}__badge`,g=`${y}__title`,O=`${y}__subtitle`,v=`${y}__price`,P=`${y}__action`,E=`${y}__note`,x=`${y}__content`,j=h("PricingPlanBody"),S=`${j}__featureList`,w=`${j}__featureItem`,T=`${j}__featureTitle`,A=`${j}__featureTitleText`,N=`${j}__featureDescription`,_=h("PricingPlanFooter"),I=C()(u,{[d]:t,[m]:n}),R={};return 100!==c&&(R[`--${we}pricing-plan-rows`]=null==c?void 0:c.toString()),{classProps:{root:I,layout:f,header:{root:y,badge:o?b:void 0,content:x,title:i?g:void 0,subtitle:s?O:void 0,price:l?v:void 0,action:r?P:void 0,note:a?E:void 0},body:{root:j,featureList:S,featureItem:w,featureTitle:T,featureTitleText:A,featureDescription:N},footer:_},props:p,styleProps:R}};var zp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vp={hasComparableFeatures:!1,isHighlighted:!1,rows:100},Wp=e=>{const t=Object.assign(Object.assign({},Vp),e),{elementType:n="article",children:o}=t,i=zp(t,["elementType","children"]),{classProps:s,props:a,styleProps:l}=Up(i),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:s.root,pricingPlanStyleProps:l,styleProps:c});return r().createElement(n,Object.assign({},p,u),r().createElement("div",{className:C()(s.layout)},o))};Wp.spiritComponent="PricingPlan";const Xp=Wp;var Gp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qp={action:void 0,badge:void 0,note:void 0,price:void 0,subtitle:void 0,title:void 0},Yp=e=>{const t=Object.assign(Object.assign({},qp),e),{elementType:n="header"}=t,o=Gp(t,["elementType"]),{classProps:i,props:s}=Up(o),{badge:a,title:l,subtitle:c,price:p,action:u,note:d}=t,{styleProps:f,props:m}=oe(s),y=ie(n,{classProps:i.header.root,styleProps:f});return r().createElement(n,Object.assign({},m,y),a&&r().createElement("div",{className:i.header.badge},a),r().createElement("div",{className:i.header.content},l&&r().createElement("h3",{className:i.header.title},l),c&&r().createElement("div",{className:C()(i.header.subtitle)},c),p&&r().createElement("div",{className:i.header.price},p),u&&r().createElement("div",{className:i.header.action},u),d&&r().createElement("div",{className:i.header.note},d)))};Yp.spiritComponent="PricingPlanHeader";const Qp=Yp,Kp=(e=!1)=>{const[n,r]=(0,t.useState)(e);return[n,(0,t.useCallback)((()=>r((e=>!e))),[])]},Zp={anchorRef:()=>{},arrowRef:{current:null},getReferenceProps:()=>({id:"",ref:()=>{}}),getFloatingProps:()=>({id:"",ref:()=>{}}),id:"",isDismissible:!1,isOpen:!1,middlewareData:{},onToggle:()=>{},placement:"bottom",sizeMaxWidth:void 0,tooltipMaxWidth:void 0,tooltipRef:()=>{},triggerRef:()=>{},x:0,y:0,position:"absolute"},Jp=(0,t.createContext)(Zp),eu=Jp.Provider,tu=(Jp.Consumer,()=>(0,t.useContext)(Jp));function nu(){return"undefined"!=typeof window}function ru(e){return su(e)?(e.nodeName||"").toLowerCase():"#document"}function ou(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function iu(e){var t;return null==(t=(su(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function su(e){return!!nu()&&(e instanceof Node||e instanceof ou(e).Node)}function au(e){return!!nu()&&(e instanceof Element||e instanceof ou(e).Element)}function lu(e){return!!nu()&&(e instanceof HTMLElement||e instanceof ou(e).HTMLElement)}function cu(e){return!(!nu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ou(e).ShadowRoot)}function pu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function uu(e){return["table","td","th"].includes(ru(e))}function du(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function fu(e){const t=mu(),n=au(e)?bu(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function mu(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function yu(e){return["html","body","#document"].includes(ru(e))}function bu(e){return ou(e).getComputedStyle(e)}function gu(e){return au(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ou(e){if("html"===ru(e))return e;const t=e.assignedSlot||e.parentNode||cu(e)&&e.host||iu(e);return cu(t)?t.host:t}function hu(e){const t=Ou(e);return yu(t)?e.ownerDocument?e.ownerDocument.body:e.body:lu(t)&&pu(t)?t:hu(t)}function vu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=hu(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=ou(o);if(i){const e=Pu(s);return t.concat(s,s.visualViewport||[],pu(o)?o:[],e&&n?vu(e):[])}return t.concat(o,vu(o,[],n))}function Pu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Eu(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function xu(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&cu(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ju(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Su(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function wu(e){return!Su().includes("jsdom/")&&(!Tu()&&0===e.width&&0===e.height||Tu()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Tu(){const e=/android/i;return e.test(ju())||e.test(Su())}function Cu(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Au(e){return(null==e?void 0:e.ownerDocument)||document}function Nu(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function _u(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Iu(e){return lu(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}s(85);const Ru=Math.min,ku=Math.max,Du=Math.round,Lu=Math.floor,$u=e=>({x:e,y:e}),Mu={left:"right",right:"left",bottom:"top",top:"bottom"},Bu={start:"end",end:"start"};function Fu(e,t,n){return ku(e,Ru(t,n))}function Hu(e,t){return"function"==typeof e?e(t):e}function Uu(e){return e.split("-")[0]}function zu(e){return e.split("-")[1]}function Vu(e){return"x"===e?"y":"x"}function Wu(e){return"y"===e?"height":"width"}function Xu(e){return["top","bottom"].includes(Uu(e))?"y":"x"}function Gu(e){return Vu(Xu(e))}function qu(e){return e.replace(/start|end/g,(e=>Bu[e]))}function Yu(e){return e.replace(/left|right|bottom|top/g,(e=>Mu[e]))}function Qu(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ku(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Zu(e,t,n){let{reference:r,floating:o}=e;const i=Xu(t),s=Gu(t),a=Wu(s),l=Uu(t),c="y"===i,p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(zu(t)){case"start":f[s]-=d*(n&&c?-1:1);break;case"end":f[s]+=d*(n&&c?-1:1)}return f}async function Ju(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:d=!1,padding:f=0}=Hu(t,e),m=Qu(f),y=a[d?"floating"===u?"reference":"floating":u],b=Ku(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),g="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),h=await(null==i.isElement?void 0:i.isElement(O))&&await(null==i.getScale?void 0:i.getScale(O))||{x:1,y:1},v=Ku(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:O,strategy:l}):g);return{top:(b.top-v.top+m.top)/h.y,bottom:(v.bottom-b.bottom+m.bottom)/h.y,left:(b.left-v.left+m.left)/h.x,right:(v.right-b.right+m.right)/h.x}}function ed(e){const t=Ru(...e.map((e=>e.left))),n=Ru(...e.map((e=>e.top)));return{x:t,y:n,width:ku(...e.map((e=>e.right)))-t,height:ku(...e.map((e=>e.bottom)))-n}}function td(e){const t=bu(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=lu(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Du(n)!==i||Du(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function nd(e){return au(e)?e:e.contextElement}function rd(e){const t=nd(e);if(!lu(t))return $u(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=td(t);let s=(i?Du(n.width):n.width)/r,a=(i?Du(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const od=$u(0);function id(e){const t=ou(e);return mu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:od}function sd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nd(e);let s=$u(1);t&&(r?au(r)&&(s=rd(r)):s=rd(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ou(e))&&t}(i,n,r)?id(i):$u(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(i){const e=ou(i),t=r&&au(r)?ou(r):r;let n=e,o=Pu(n);for(;o&&r&&t!==n;){const e=rd(o),t=o.getBoundingClientRect(),r=bu(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,p*=e.x,u*=e.y,l+=i,c+=s,n=ou(o),o=Pu(n)}}return Ku({width:p,height:u,x:l,y:c})}function ad(e,t){const n=gu(e).scrollLeft;return t?t.left+n:sd(iu(e)).left+n}function ld(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ad(e,r)),y:r.top+t.scrollTop}}function cd(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ou(e),r=iu(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=mu();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=iu(e),n=gu(e),r=e.ownerDocument.body,o=ku(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ku(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ad(e);const a=-n.scrollTop;return"rtl"===bu(r).direction&&(s+=ku(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(iu(e));else if(au(t))r=function(e,t){const n=sd(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=lu(e)?rd(e):$u(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=id(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ku(r)}function pd(e,t){const n=Ou(e);return!(n===t||!au(n)||yu(n))&&("fixed"===bu(n).position||pd(n,t))}function ud(e,t,n){const r=lu(t),o=iu(t),i="fixed"===n,s=sd(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$u(0);if(r||!r&&!i)if(("body"!==ru(t)||pu(o))&&(a=gu(t)),r){const e=sd(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=ad(o));const c=!o||r||i?$u(0):ld(o,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function dd(e){return"static"===bu(e).position}function fd(e,t){if(!lu(e)||"fixed"===bu(e).position)return null;if(t)return t(e);let n=e.offsetParent;return iu(e)===n&&(n=n.ownerDocument.body),n}function md(e,t){const n=ou(e);if(du(e))return n;if(!lu(e)){let t=Ou(e);for(;t&&!yu(t);){if(au(t)&&!dd(t))return t;t=Ou(t)}return n}let r=fd(e,t);for(;r&&uu(r)&&dd(r);)r=fd(r,t);return r&&yu(r)&&dd(r)&&!fu(r)?n:r||function(e){let t=Ou(e);for(;lu(t)&&!yu(t);){if(fu(t))return t;if(du(t))return null;t=Ou(t)}return null}(e)||n}const yd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=iu(r),a=!!t&&du(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$u(1);const p=$u(0),u=lu(r);if((u||!u&&!i)&&(("body"!==ru(r)||pu(s))&&(l=gu(r)),lu(r))){const e=sd(r);c=rd(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}const d=!s||u||i?$u(0):ld(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+d.x,y:n.y*c.y-l.scrollTop*c.y+p.y+d.y}},getDocumentElement:iu,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?du(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=vu(e,[],!1).filter((e=>au(e)&&"body"!==ru(e))),o=null;const i="fixed"===bu(e).position;let s=i?Ou(e):e;for(;au(s)&&!yu(s);){const t=bu(s),n=fu(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||pu(s)&&!n&&pd(e,s))?r=r.filter((e=>e!==s)):o=t,s=Ou(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=cd(t,n,o);return e.top=ku(r.top,e.top),e.right=Ru(r.right,e.right),e.bottom=Ru(r.bottom,e.bottom),e.left=ku(r.left,e.left),e}),cd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:md,getElementRects:async function(e){const t=this.getOffsetParent||md,n=this.getDimensions,r=await n(e.floating);return{reference:ud(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=td(e);return{width:t,height:n}},getScale:rd,isElement:au,isRTL:function(e){return"rtl"===bu(e).direction}};function bd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gd(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=nd(e),p=o||i?[...c?vu(c):[],...vu(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=iu(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:p,top:u,width:d,height:f}=c;if(a||t(),!d||!f)return;const m={rootMargin:-Lu(u)+"px "+-Lu(o.clientWidth-(p+d))+"px "+-Lu(o.clientHeight-(u+f))+"px "+-Lu(p)+"px",threshold:ku(0,Ru(1,l))||1};let y=!0;function b(t){const r=t[0].intersectionRatio;if(r!==l){if(!y)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||bd(c,e.getBoundingClientRect())||s(),y=!1}try{r=new IntersectionObserver(b,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,m)}r.observe(e)}(!0),i}(c,n):null;let d,f=-1,m=null;s&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let y=l?sd(e):null;return l&&function t(){const r=sd(e);y&&!bd(y,r)&&n();y=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const Od=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Uu(n),a=zu(n),l="y"===Xu(n),c=["left","top"].includes(s)?-1:1,p=i&&l?-1:1,u=Hu(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*p,y:d*c}:{x:d*c,y:f*p}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},hd=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Hu(e,t),c={x:n,y:r},p=await Ju(t,l),u=Xu(Uu(o)),d=Vu(u);let f=c[d],m=c[u];if(i){const e="y"===d?"bottom":"right";f=Fu(f+p["y"===d?"top":"left"],f,f-p[e])}if(s){const e="y"===u?"bottom":"right";m=Fu(m+p["y"===u?"top":"left"],m,m-p[e])}const y=a.fn({...t,[d]:f,[u]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[d]:i,[u]:s}}}}}},vd=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=Hu(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Uu(o),O=Xu(a),h=Uu(a)===a,v=await(null==l.isRTL?void 0:l.isRTL(c.floating)),P=d||(h||!y?[Yu(a)]:function(e){const t=Yu(e);return[qu(e),t,qu(t)]}(a)),E="none"!==m;!d&&E&&P.push(...function(e,t,n,r){const o=zu(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Uu(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(qu)))),i}(a,y,m,v));const x=[a,...P],j=await Ju(t,b),S=[];let w=(null==(r=i.flip)?void 0:r.overflows)||[];if(p&&S.push(j[g]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=zu(e),o=Gu(e),i=Wu(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Yu(s)),[s,Yu(s)]}(o,s,v);S.push(j[e[0]],j[e[1]])}if(w=[...w,{placement:o,overflows:S}],!S.every((e=>e<=0))){var T,C;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n=null==(C=w.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var A;const e=null==(A=w.filter((e=>{if(E){const t=Xu(e.placement);return t===O||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Pd=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Hu(e,t),p=await Ju(t,c),u=Uu(o),d=zu(o),f="y"===Xu(o),{width:m,height:y}=i.floating;let b,g;"top"===u||"bottom"===u?(b=u,g=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,b="end"===d?"top":"bottom");const O=y-p.top-p.bottom,h=m-p.left-p.right,v=Ru(y-p[b],O),P=Ru(m-p[g],h),E=!t.middlewareData.shift;let x=v,j=P;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=h),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=O),E&&!d){const e=ku(p.left,0),t=ku(p.right,0),n=ku(p.top,0),r=ku(p.bottom,0);f?j=m-2*(0!==e||0!==t?e+t:ku(p.left,p.right)):x=y-2*(0!==n||0!==r?n+r:ku(p.top,p.bottom))}await l({...t,availableWidth:j,availableHeight:x});const S=await s.getDimensions(a.floating);return m!==S.width||y!==S.height?{reset:{rects:!0}}:{}}}},Ed=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:p=0}=Hu(e,t)||{};if(null==c)return{};const u=Qu(p),d={x:n,y:r},f=Gu(o),m=Wu(f),y=await s.getDimensions(c),b="y"===f,g=b?"top":"left",O=b?"bottom":"right",h=b?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[f]-d[f]-i.floating[m],P=d[f]-i.reference[f],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let x=E?E[h]:0;x&&await(null==s.isElement?void 0:s.isElement(E))||(x=a.floating[h]||i.floating[m]);const j=v/2-P/2,S=x/2-y[m]/2-1,w=Ru(u[g],S),T=Ru(u[O],S),C=w,A=x-y[m]-T,N=x/2-y[m]/2+j,_=Fu(C,N,A),I=!l.arrow&&null!=zu(o)&&N!==_&&i.reference[m]/2-(N<C?w:T)-y[m]/2<0,R=I?N<C?N-C:N-A:0;return{[f]:d[f]+R,data:{[f]:_,centerOffset:N-_-R,...I&&{alignmentOffset:R}},reset:I}}}),xd=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:s}=t,{padding:a=2,x:l,y:c}=Hu(e,t),p=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),u=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>Ku(ed(e))))}(p),d=Ku(ed(p)),f=Qu(a);const m=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find((e=>l>e.left-f.left&&l<e.right+f.right&&c>e.top-f.top&&c<e.bottom+f.bottom))||d;if(u.length>=2){if("y"===Xu(n)){const e=u[0],t=u[u.length-1],r="top"===Uu(n),o=e.top,i=t.bottom,s=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:i,left:s,right:a,width:a-s,height:i-o,x:s,y:o}}const e="left"===Uu(n),t=ku(...u.map((e=>e.right))),r=Ru(...u.map((e=>e.left))),o=u.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,s=o[o.length-1].bottom;return{top:i,bottom:s,left:r,right:t,width:t-r,height:s-i,x:r,y:i}}return d}},floating:r.floating,strategy:s});return o.reference.x!==m.reference.x||o.reference.y!==m.reference.y||o.reference.width!==m.reference.width||o.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},jd=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Hu(e,t),p={x:n,y:r},u=Xu(o),d=Vu(u);let f=p[d],m=p[u];const y=Hu(a,t),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+b.mainAxis,n=i.reference[d]+i.reference[e]-b.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var g,O;const e="y"===d?"width":"height",t=["top","left"].includes(Uu(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(g=s.offset)?void 0:g[u])||0)+(t?0:b.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(O=s.offset)?void 0:O[u])||0)-(t?b.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:f,[u]:m}}}},Sd=(e,t,n)=>{const r=new Map,o={platform:yd,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=Zu(c,r,l),d=r,f={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:y}=a[n],{x:b,y:g,data:O,reset:h}=await y({x:p,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});p=null!=b?b:p,u=null!=g?g:u,f={...f,[i]:{...f[i],...O}},h&&m<=50&&(m++,"object"==typeof h&&(h.placement&&(d=h.placement),h.rects&&(c=!0===h.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):h.rects),({x:p,y:u}=Zu(c,d,l))),n=-1)}return{x:p,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var wd="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Td(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Td(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Td(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Cd(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ad(e,t){const n=Cd(e);return Math.round(t*n)/n}function Nd(e){const n=t.useRef(e);return wd((()=>{n.current=e})),n}const _d=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ed({element:n.current,padding:r}).fn(t):{}:n?Ed({element:n,padding:r}).fn(t):{};var o}}),Id=(e,t)=>({...hd(e),options:[e,t]}),Rd=(e,t)=>({...jd(e),options:[e,t]}),kd=(e,t)=>({...vd(e),options:[e,t]}),Dd=(e,t)=>({...Pd(e),options:[e,t]}),Ld=(e,t)=>({...xd(e),options:[e,t]}),$d=(e,t)=>({..._d(e),options:[e,t]});const Md={...n},Bd=Md.useInsertionEffect||(e=>e());function Fd(e){const n=t.useRef((()=>{0}));return Bd((()=>{n.current=e})),t.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}const Hd="ArrowUp",Ud="ArrowDown",zd="ArrowLeft",Vd="ArrowRight";var Wd="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;const Xd=[zd,Vd],Gd=[Hd,Ud];let qd=!1,Yd=0;const Qd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Yd++;const Kd=Md.useId||function(){const[e,n]=t.useState((()=>qd?Qd():void 0));return Wd((()=>{null==e&&n(Qd())}),[]),t.useEffect((()=>{qd=!0}),[]),e};function Zd(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const Jd=t.createContext(null),ef=t.createContext(null),tf=()=>{var e;return(null==(e=t.useContext(Jd))?void 0:e.id)||null},nf=()=>t.useContext(ef);function rf(e){return"data-floating-ui-"+e}function of(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}function sf(e){const n=(0,t.useRef)(e);return Wd((()=>{n.current=e})),n}const af=rf("safe-polygon");function lf(e,t,n){return n&&!Cu(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function cf(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const pf="data-floating-ui-focusable";function uf(e){return lu(e.target)&&"BUTTON"===e.target.tagName}function df(e){return Iu(e)}const ff={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},mf={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},yf=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function bf(e){void 0===e&&(e={});const{nodeId:n}=e,r=function(e){const{open:n=!1,onOpenChange:r,elements:o}=e,i=Kd(),s=t.useRef({}),[a]=t.useState((()=>Zd())),l=null!=tf(),[c,p]=t.useState(o.reference),u=Fd(((e,t,n)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),d=t.useMemo((()=>({setPositionReference:p})),[]),f=t.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);return t.useMemo((()=>({dataRef:s,open:n,onOpenChange:u,elements:f,events:a,floatingId:i,refs:d})),[n,u,f,a,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,i=o.elements,[s,a]=t.useState(null),[l,c]=t.useState(null),p=(null==i?void 0:i.domReference)||s,u=t.useRef(null),d=nf();Wd((()=>{p&&(u.current=p)}),[p]);const f=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:p}=e,[u,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=t.useState(o);Td(f,o)||m(o);const[y,b]=t.useState(null),[g,O]=t.useState(null),h=t.useCallback((e=>{e!==x.current&&(x.current=e,b(e))}),[]),v=t.useCallback((e=>{e!==j.current&&(j.current=e,O(e))}),[]),P=s||y,E=a||g,x=t.useRef(null),j=t.useRef(null),S=t.useRef(u),w=null!=c,T=Nd(c),C=Nd(i),A=Nd(p),N=t.useCallback((()=>{if(!x.current||!j.current)return;const e={placement:n,strategy:r,middleware:f};C.current&&(e.platform=C.current),Sd(x.current,j.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};_.current&&!Td(S.current,t)&&(S.current=t,gt.flushSync((()=>{d(t)})))}))}),[f,n,r,C,A]);wd((()=>{!1===p&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[p]);const _=t.useRef(!1);wd((()=>(_.current=!0,()=>{_.current=!1})),[]),wd((()=>{if(P&&(x.current=P),E&&(j.current=E),P&&E){if(T.current)return T.current(P,E,N);N()}}),[P,E,N,T,w]);const I=t.useMemo((()=>({reference:x,floating:j,setReference:h,setFloating:v})),[h,v]),R=t.useMemo((()=>({reference:P,floating:E})),[P,E]),k=t.useMemo((()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=Ad(R.floating,u.x),n=Ad(R.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Cd(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,R.floating,u.x,u.y]);return t.useMemo((()=>({...u,update:N,refs:I,elements:R,floatingStyles:k})),[u,N,I,R,k])}({...e,elements:{...i,...l&&{reference:l}}}),m=t.useCallback((e=>{const t=au(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),y=t.useCallback((e=>{(au(e)||null===e)&&(u.current=e,a(e)),(au(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!au(e))&&f.refs.setReference(e)}),[f.refs]),b=t.useMemo((()=>({...f.refs,setReference:y,setPositionReference:m,domReference:u})),[f.refs,y,m]),g=t.useMemo((()=>({...f.elements,domReference:p})),[f.elements,p]),O=t.useMemo((()=>({...f,...o,refs:b,elements:g,nodeId:n})),[f,b,g,n,o]);return Wd((()=>{o.dataRef.current.floatingContext=O;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===n));e&&(e.context=O)})),t.useMemo((()=>({...f,context:O,refs:b,elements:g})),[f,b,g,O])}function gf(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,events:i,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=n,p=t.useRef(!1),u=t.useRef(-1),d=t.useRef(!0);t.useEffect((()=>{if(!l)return;const e=ou(a.domReference);function t(){!r&&lu(a.domReference)&&a.domReference===Eu(Au(a.domReference))&&(p.current=!0)}function n(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[a.domReference,r,l]),t.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[i,l]),t.useEffect((()=>()=>{of(u)}),[]);const f=t.useMemo((()=>({onPointerDown(e){wu(e.nativeEvent)||(d.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=_u(e.nativeEvent);if(c&&au(t))try{if(/apple/i.test(navigator.vendor)&&ju().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Iu(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=au(t)&&t.hasAttribute(rf("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const i=Eu(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(xu(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||xu(a.domReference,i)||r||o(!1,n,"focus"))}))}})),[s,a.domReference,o,c]);return t.useMemo((()=>l?{reference:f}:{}),[l,f])}const Of="active",hf="selected";function vf(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Of]:t,[hf]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[pf]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[Of,hf].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Pf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ef(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function xf(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:p,elements:u,onClose:d,nodeId:f,tree:m}=e;return function(e){function y(){clearTimeout(o),d()}if(clearTimeout(o),!u.domReference||!u.floating||null==p||null==n||null==c)return;const{clientX:b,clientY:g}=e,O=[b,g],h=_u(e),v="mouseleave"===e.type,P=xu(u.floating,h),E=xu(u.domReference,h),x=u.domReference.getBoundingClientRect(),j=u.floating.getBoundingClientRect(),S=p.split("-")[0],w=n>j.right-j.width/2,T=c>j.bottom-j.height/2,C=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(O,x),A=j.width>x.width,N=j.height>x.height,_=(A?x:j).left,I=(A?x:j).right,R=(N?x:j).top,k=(N?x:j).bottom;if(P&&(i=!0,!v))return;if(E&&(i=!1),E&&!v)return void(i=!0);if(v&&au(e.relatedTarget)&&xu(u.floating,e.relatedTarget))return;if(m&&cf(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===S&&c>=x.bottom-1||"bottom"===S&&c<=x.top+1||"left"===S&&n>=x.right-1||"right"===S&&n<=x.left+1)return y();let D=[];switch(S){case"top":D=[[_,x.top+1],[_,j.bottom-1],[I,j.bottom-1],[I,x.top+1]];break;case"bottom":D=[[_,j.top+1],[_,x.bottom-1],[I,x.bottom-1],[I,j.top+1]];break;case"left":D=[[j.right-1,k],[j.right-1,R],[x.left+1,R],[x.left+1,k]];break;case"right":D=[[x.right-1,k],[x.right-1,R],[j.left+1,R],[j.left+1,k]]}if(!Ef([b,g],D)){if(i&&!C)return y();if(!v&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return y()}Ef([b,g],function(e){let[n,r]=e;switch(S){case"top":return[[A?n+t/2:w?n+4*t:n-4*t,r+t+1],[A?n-t/2:w?n+4*t:n-4*t,r+t+1],...[[j.left,w||A?j.bottom-t:j.top],[j.right,w?A?j.bottom-t:j.top:j.bottom-t]]];case"bottom":return[[A?n+t/2:w?n+4*t:n-4*t,r-t],[A?n-t/2:w?n+4*t:n-4*t,r-t],...[[j.left,w||A?j.top+t:j.bottom],[j.right,w?A?j.top+t:j.bottom:j.top+t]]];case"left":{const e=[n+t+1,N?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,N?r-t/2:T?r+4*t:r-4*t];return[...[[T||N?j.right-t:j.left,j.top],[T?N?j.right-t:j.left:j.right-t,j.bottom]],e,o]}case"right":return[[n-t,N?r+t/2:T?r+4*t:r-4*t],[n-t,N?r-t/2:T?r+4*t:r-4*t],...[[T||N?j.left+t:j.right,j.top],[T?N?j.left+t:j.right:j.left+t,j.bottom]]]}}([n,c]))?!i&&r&&(o=window.setTimeout(y,40)):y()}}};return c.__options={blockPointerEvents:n},c}const jf={CLICK:"click",HOVER:"hover",FOCUS:"focus",MANUAL:"manual",OUTSIDE_PRESS:"outside-press",ESCAPE_KEY:"escape-key"},Sf=e=>{const{arrowRef:n,cornerOffset:r=0,flipCrossAxis:o,flipFallbackAxisSideDirection:i="none",flipFallbackPlacements:s,flipProp:a,isDismissible:l,isOpen:c=!1,offset:p=0,onToggle:u,isFocusableOnHover:d,shiftProp:f,sizeProp:m,positionStrategy:y="absolute",tooltipArrowWidth:b=0,tooltipPlacement:g,trigger:O}=e,[h,v]=(0,t.useState)(void 0),[P,E]=(0,t.useState)(!1),x=r+b,j=null==O?void 0:O.includes(jf.HOVER),S=null==O?void 0:O.includes(jf.CLICK),w=null==O?void 0:O.includes(jf.FOCUS),{x:T,y:C,floatingStyles:A,refs:N,context:_,placement:I,middlewareData:R}=bf({open:c,onOpenChange:(e,t,n)=>{if(j){if(n===jf.CLICK&&E((e=>!e)),c&&P&&n===jf.HOVER)return;if(c&&P&&(n===jf.CLICK||n===jf.OUTSIDE_PRESS||n===jf.ESCAPE_KEY))return E(!1),void u(!1)}u(e)},placement:g,whileElementsMounted:gd,middleware:[(D=p,{...Od(D),options:[D,L]}),Ld(),a&&kd({crossAxis:o,fallbackPlacements:s?(k=s,Array.isArray(k)?k:[k]):void 0,fallbackAxisSideDirection:i}),f&&Id({limiter:Rd({offset:()=>({mainAxis:x})})}),m&&Dd({apply({availableWidth:e}){v(e)}}),$d({element:n.current,padding:r})],strategy:y});var k,D,L;const $=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:p=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=n,f=t.useRef(),m=t.useRef(!1),y=t.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Cu(t,!0)&&p||(!r||!c||i.current.openEvent&&d&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Cu(t,!0)&&p||(!r||!c||i.current.openEvent&&d&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||uf(e)||(" "!==e.key||df(s)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&o(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||uf(e)||df(s)||" "===e.key&&m.current&&(m.current=!1,o(!r||!c,e.nativeEvent,"click"))}})),[i,s,l,p,u,o,r,d,c]);return t.useMemo((()=>a?{reference:y}:{}),[a,y])}(_,{enabled:S}),M=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,events:s,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:p=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=n,m=nf(),y=tf(),b=sf(p),g=sf(c),O=sf(r),h=t.useRef(),v=t.useRef(-1),P=t.useRef(),E=t.useRef(-1),x=t.useRef(!0),j=t.useRef(!1),S=t.useRef((()=>{})),w=t.useRef(!1),T=t.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);t.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(of(v),of(E),x.current=!0,w.current=!1)}}),[l,s]),t.useEffect((()=>{if(!l)return;if(!b.current)return;if(!r)return;function e(e){T()&&o(!1,e,"hover")}const t=Au(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,r,o,l,b,T]);const C=t.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=lf(g.current,"close",h.current);r&&!P.current?(of(v),v.current=window.setTimeout((()=>o(!1,e,n)),r)):t&&(of(v),o(!1,e,n))}),[g,o]),A=Fd((()=>{S.current(),P.current=void 0})),N=Fd((()=>{if(j.current){const e=Au(a.floating).body;e.style.pointerEvents="",e.removeAttribute(af),j.current=!1}})),_=Fd((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));t.useEffect((()=>{if(l&&au(a.domReference)){var e;const o=a.domReference;return r&&o.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),f&&o.addEventListener("mousemove",t,{once:!0}),o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",n),()=>{var e;r&&o.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),f&&o.removeEventListener("mousemove",t),o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",n)}}function t(e){if(of(v),x.current=!1,u&&!Cu(h.current)||d>0&&!lf(g.current,"open"))return;const t=lf(g.current,"open",h.current);t?v.current=window.setTimeout((()=>{O.current||o(!0,e,"hover")}),t):r||o(!0,e,"hover")}function n(e){if(_())return;S.current();const t=Au(a.floating);if(of(E),w.current=!1,b.current&&i.current.floatingContext){r||of(v),P.current=b.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){N(),A(),_()||C(e,!0,"safe-polygon")}});const n=P.current;return t.addEventListener("mousemove",n),void(S.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==h.current||!xu(a.floating,e.relatedTarget))&&C(e)}function s(e){_()||i.current.floatingContext&&(null==b.current||b.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){N(),A(),_()||C(e)}})(e))}}),[a,l,e,u,d,f,C,A,N,o,r,O,m,g,b,i,_]),Wd((()=>{var e;if(l&&r&&null!=(e=b.current)&&e.__options.blockPointerEvents&&T()){j.current=!0;const e=a.floating;if(au(a.domReference)&&e){var t;const n=Au(a.floating).body;n.setAttribute(af,"");const r=a.domReference,o=null==m||null==(t=m.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,r,y,a,m,b,T]),Wd((()=>{r||(h.current=void 0,w.current=!1,A(),N())}),[r,A,N]),t.useEffect((()=>()=>{A(),of(v),of(E),N()}),[l,a.domReference,A,N]);const I=t.useMemo((()=>{function e(e){h.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){x.current||O.current||o(!0,t,"hover")}u&&!Cu(h.current)||r||0===d||w.current&&e.movementX**2+e.movementY**2<2||(of(E),"touch"===h.current?n():(w.current=!0,E.current=window.setTimeout(n,d)))}}}),[u,o,r,O,d]),R=t.useMemo((()=>({onMouseEnter(){of(v)},onMouseLeave(e){_()||C(e.nativeEvent,!1)}})),[C,_]);return t.useMemo((()=>l?{reference:I,floating:R}:{}),[l,I,R])}(_,{enabled:j,handleClose:(B=!!d,B?xf({requireIntent:!1}):void 0)});var B;const F=gf(_,{enabled:w}),H=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:p="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:y}=n,b=nf(),g=Fd("function"==typeof c?c:()=>!1),O="function"==typeof c?g:c,h=t.useRef(!1),v=t.useRef(!1),{escapeKey:P,outsidePress:E}=yf(m),{escapeKey:x,outsidePress:j}=yf(y),S=t.useRef(!1),w=Fd((e=>{var t;if(!r||!a||!l||"Escape"!==e.key)return;if(S.current)return;const n=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=b?cf(b.nodesRef.current,n):[];if(!P&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),T=Fd((e=>{var t;const n=()=>{var t;w(e),null==(t=_u(e))||t.removeEventListener("keydown",n)};null==(t=_u(e))||t.addEventListener("keydown",n)})),C=Fd((e=>{var t;const n=h.current;h.current=!1;const r=v.current;if(v.current=!1,"click"===p&&r)return;if(n)return;if("function"==typeof O&&!O(e))return;const a=_u(e),l="["+rf("inert")+"]",c=Au(i.floating).querySelectorAll(l);let u=au(a)?a:null;for(;u&&!yu(u);){const e=Ou(u);if(yu(e)||!au(e))break;u=e}if(c.length&&au(a)&&!a.matches("html,body")&&!xu(a,i.floating)&&Array.from(c).every((e=>!xu(u,e))))return;if(lu(a)&&_){const t=yu(a),n=bu(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,p=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(p||u)return}const d=null==(t=s.current.floatingContext)?void 0:t.nodeId,f=b&&cf(b.nodesRef.current,d).some((t=>{var n;return Nu(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Nu(e,i.floating)||Nu(e,i.domReference)||f)return;const m=b?cf(b.nodesRef.current,d):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),A=Fd((e=>{var t;const n=()=>{var t;C(e),null==(t=_u(e))||t.removeEventListener(p,n)};null==(t=_u(e))||t.addEventListener(p,n)}));t.useEffect((()=>{if(!r||!a)return;s.current.__escapeKeyBubbles=P,s.current.__outsidePressBubbles=E;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout((()=>{S.current=!1}),mu()?5:0)}const u=Au(i.floating);l&&(u.addEventListener("keydown",x?T:w,x),u.addEventListener("compositionstart",n),u.addEventListener("compositionend",c)),O&&u.addEventListener(p,j?A:C,j);let d=[];return f&&(au(i.domReference)&&(d=vu(i.domReference)),au(i.floating)&&(d=d.concat(vu(i.floating))),!au(i.reference)&&i.reference&&i.reference.contextElement&&(d=d.concat(vu(i.reference.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(u.removeEventListener("keydown",x?T:w,x),u.removeEventListener("compositionstart",n),u.removeEventListener("compositionend",c)),O&&u.removeEventListener(p,j?A:C,j),d.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,i,l,O,p,r,o,f,a,P,E,w,x,T,C,j,A]),t.useEffect((()=>{h.current=!1}),[O,p]);const N=t.useMemo((()=>({onKeyDown:w,...u&&{[ff[d]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}})),[w,o,u,d]),_=t.useMemo((()=>({onKeyDown:w,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[mf[p]]:()=>{h.current=!0}})),[w,p]);return t.useMemo((()=>a?{reference:N,floating:_}:{}),[a,N,_])}(_,{outsidePress:!l}),U=function(e,n){var r;void 0===n&&(n={});const{open:o,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=n,l=null!=(r=Pf.get(a))?r:a,c=Kd(),p=null!=tf(),u=t.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:o?i:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&p&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,i,p,o,c,a]),d=t.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,a]),f=t.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,a]);return t.useMemo((()=>s?{reference:u,floating:d,item:f}:{}),[s,u,d,f])}(_,{role:"tooltip"}),{getReferenceProps:z,getFloatingProps:V}=function(e){void 0===e&&(e=[]);const n=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),i=t.useCallback((t=>vf(t,e,"reference")),n),s=t.useCallback((t=>vf(t,e,"floating")),r),a=t.useCallback((t=>vf(t,e,"item")),o);return t.useMemo((()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a})),[i,s,a])}([$,M,F,H,U]);return{context:_,getFloatingProps:V,getReferenceProps:e=>{const t=z(e);if(w){const e=t.onMouseDown;t.onMouseDown=t=>{e&&e(t);const n=t.currentTarget;if(n&&n!==document.activeElement){n instanceof HTMLElement&&(n.tabIndex>=0||n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLSelectElement||n instanceof HTMLTextAreaElement)&&n.focus()}}}return t},maxWidth:h,middlewareData:R,placement:I,refs:N,x:T,y:C,position:A.position}};var wf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tf=e=>{const{isDismissible:n,isOpen:r}=e,o=wf(e,["isDismissible","isOpen"]),i=h("Tooltip"),s=`${i}Popover`,a=`${s}__arrow`,l=`${s}__close`,c=`${s}--dismissible`,p="is-hidden",u=(0,t.useMemo)((()=>!1===r),[r]);return{classProps:{rootClassName:i,popoverClassName:C()(s,{[c]:n,[p]:u}),arrowClassName:a,closeButtonClassName:l},props:o}};var Cf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Af=e=>{var n;const{children:o,elementType:i="div",enableFlipping:s=!0,enableFlippingCrossAxis:a=!0,enableShifting:l=!0,enableSizing:c=!0,flipFallbackAxisSideDirection:p="none",flipFallbackPlacements:u=["bottom","top"],id:d,isDismissible:f=!1,isFocusableOnHover:m=!1,isOpen:y=!1,onToggle:b,placement:g,positionStrategy:O="absolute",trigger:h=["click","hover"]}=e,v=Cf(e,["children","elementType","enableFlipping","enableFlippingCrossAxis","enableShifting","enableSizing","flipFallbackAxisSideDirection","flipFallbackPlacements","id","isDismissible","isFocusableOnHover","isOpen","onToggle","placement","positionStrategy","trigger"]),{classProps:P,props:E}=Tf(Object.assign({isDismissible:f,isOpen:y},v)),{styleProps:x,props:j}=oe(E),S=ie(i,{classProps:P.rootClassName,styleProps:x}),w=(0,t.useRef)(null),T=(0,t.useRef)(null);let C,A,N,_;const I=null===(n=T.current)||void 0===n?void 0:n.querySelector('[data-spirit-element="tooltip"]'),R=null==I?void 0:I.querySelector('[data-spirit-element="tooltip-arrow"]');if(I){const e=window.getComputedStyle(I),t=R&&window.getComputedStyle(R);C=parseInt(e.getPropertyValue("--tooltip-max-width"),10),A=parseInt(e.getPropertyValue("--tooltip-offset"),10),N=t?parseInt(t.getPropertyValue("--tooltip-arrow-corner-offset"),10):0,_=t?parseInt(t.width,10):0}const{getFloatingProps:k,getReferenceProps:D,maxWidth:L,middlewareData:$,placement:M,refs:B,x:F,y:H,position:U}=Sf({arrowRef:w,cornerOffset:N,flipCrossAxis:a,flipFallbackAxisSideDirection:p,flipFallbackPlacements:u,flipProp:s,isDismissible:f,isFocusableOnHover:m,isOpen:y,offset:A,onToggle:b,shiftProp:l,sizeProp:c,positionStrategy:O,tooltipArrowWidth:_,tooltipMaxWidth:C,tooltipPlacement:g,trigger:h});return r().createElement(eu,{value:{anchorRef:B.setPositionReference,arrowRef:w,getFloatingProps:k,getReferenceProps:D,id:d,isDismissible:f,isOpen:y,middlewareData:$,onToggle:b,placement:M,sizeMaxWidth:L,tooltipMaxWidth:C,tooltipRef:B.setFloating,triggerRef:B.setReference,x:F,y:H,position:U}},r().createElement(i,Object.assign({},j,{ref:T},S),o))};Af.spiritComponent="Tooltip";const Nf=Af;var _f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const If={elementType:"button",children:null},Rf=e=>{const t=Object.assign(Object.assign({},If),e),{elementType:n="button",children:o}=t,i=_f(t,["elementType","children"]),{id:s,isOpen:a,triggerRef:l,getReferenceProps:c}=tu(),{styleProps:p,props:u}=oe(i),d=ie(n,{triggerStyleProps:p,transferProps:u});return r().createElement(n,Object.assign({},u,d,{id:s,ref:l},c()),"function"==typeof o?o({isOpen:a}):o)};Rf.spiritComponent="TooltipTrigger";const kf=Rf;var Df=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lf=e=>{var{label:t="Close",onClick:n}=e,o=Df(e,["label","onClick"]);const{classProps:i,props:s}=Tf(o),{styleProps:a}=oe(Object.assign({},s));return r().createElement("button",{type:"button",className:C()(i.closeButtonClassName,a.className),style:a.style,onClick:n,"aria-expanded":"true"},r().createElement(dt,{name:"close","aria-hidden":"true"}),r().createElement(Ni,null,t))};Lf.spiritComponent="TooltipCloseButton";const $f=Lf;var Mf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bf=e=>{const{children:n}=e,o=Mf(e,["children"]),{arrowRef:i,getFloatingProps:s,isDismissible:a,isOpen:l,middlewareData:c,onToggle:p,placement:u,tooltipRef:d,x:f,y:m,position:y,sizeMaxWidth:b,tooltipMaxWidth:g}=tu(),{classProps:O,props:h}=Tf(Object.assign({isOpen:l,isDismissible:a},o)),{styleProps:v,props:P}=oe(h),E=(0,t.useMemo)((()=>a&&r().createElement($f,{onClick:()=>p(!1),label:"close"})),[a,p]);return r().createElement("div",Object.assign({ref:d,className:C()(O.popoverClassName,v.className)},P,s(),{style:Object.assign(Object.assign({position:y,top:null!=m?m:0,left:null!=f?f:0},(()=>{if(l&&b&&g)return{maxWidth:g<b?g:b}})()),v.style),"data-spirit-element":"tooltip","data-spirit-placement":u}),n,E,r().createElement("span",{ref:i,className:O.arrowClassName,"data-spirit-element":"tooltip-arrow",style:Object.assign({position:"absolute"},(()=>{if(u&&i.current){const{arrow:e}=c,t={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]],n=i.current,r="top"===t||"bottom"===t?n.offsetHeight:(n.offsetHeight+n.offsetWidth)/2;return{left:null==e?void 0:e.x,top:null==e?void 0:e.y,[t]:r&&-Math.floor(r)}}})())}))};Bf.spiritComponent="TooltipPopover";const Ff=Bf;var Hf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Uf=e=>{var{feature:n,featureId:o}=e,i=Hf(e,["feature","featureId"]);const{modalContent:s,title:a,tooltipContent:l}=n,{classProps:c}=Up(i),[p,u]=Kp(!1),[d,f]=(0,t.useState)(!1);return s?r().createElement("div",{className:c.body.featureTitle},r().createElement(dt,{name:"check-plain",boxSize:16}),r().createElement("button",{type:"button",onClick:()=>f(!0),className:C()(c.body.featureTitleText,"text-underlined-dotted")},a),r().createElement(gc,{id:`${o}-modal`,isOpen:d,onClose:()=>f(!1)},r().createElement(Cc,{isScrollable:!0},r().createElement(Dc,null,a),r().createElement(vc,null,s)))):l?r().createElement(Nf,{elementType:"div",id:`${o}-tooltip`,isDismissible:!0,isOpen:p,onToggle:u,placement:"top",trigger:["click"],UNSAFE_className:c.body.featureTitle},r().createElement(dt,{name:"check-plain",boxSize:16}),r().createElement(kf,{elementType:"button",UNSAFE_className:C()(c.body.featureTitleText,"text-underlined-dotted")},a),r().createElement(Ff,null,r().createElement("div",null,l))):r().createElement("div",{className:c.body.featureTitle},r().createElement(dt,{name:"check-plain",boxSize:16}),r().createElement("div",{className:c.body.featureTitleText,id:`${o}-title`},a))};Uf.spiritComponent="PricingPlanFeatureTitle";const zf=Uf;var Vf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wf={description:void 0,features:[]},Xf=e=>{const t=Object.assign(Object.assign({},Wf),e),{description:n,elementType:o="div",features:i=[],id:s}=t,a=Vf(t,["description","elementType","features","id"]),{classProps:l,props:c}=Up(a),{styleProps:p,props:u}=oe(c),d=ie(o,{classProps:l.body.root,styleProps:p});return r().createElement(o,Object.assign({},u,d),n&&r().createElement("div",null,n),r().createElement("ul",{className:l.body.featureList},i.map(((e,t)=>{const n=`featureItem-${t}`,o=`${s}-feature-${t}`;return r().createElement("li",{className:l.body.featureItem,key:n},r().createElement(zf,{feature:e,featureId:o}),r().createElement("div",{className:l.body.featureDescription},e.description))}))))};Xf.spiritComponent="PricingPlanBody";const Gf=Xf;var qf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yf=e=>{const{children:t,elementType:n="footer"}=e,o=qf(e,["children","elementType"]),{classProps:i,props:s}=Up(o),{styleProps:a,props:l}=oe(s),c=ie(n,{classProps:i.footer,styleProps:a});return r().createElement(n,Object.assign({},l,c),t)};Yf.spiritComponent="PricingPlanFooter";const Qf=Yf;var Kf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zf=e=>{const{children:t}=e,n=Kf(e,["children"]),o=h("ProductLogo"),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o,i.className),style:i.style}),t)};Zf.spiritComponent="ProductLogo";const Jf=Zf;var em=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function tm(e){const{isItem:t,validationState:n,isLabelHidden:r}=e,o=em(e,["isItem","validationState","isLabelHidden"]),{isDisabled:i}=o,s=h("Radio"),a=`${s}--disabled`,l=`${s}--item`,c=`${s}__input`,p=`${s}__label`,u=`${s}__label--hidden`,d=`${s}__text`,f=`${s}__helperText`,m=`${s}--${n}`;return{classProps:{root:C()(s,{[a]:i,[l]:t,[m]:n}),label:C()(p,{[u]:r}),input:c,text:d,helperText:f},props:o}}var nm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rm=(0,t.forwardRef)(((e,t)=>{const{classProps:n,props:o}=tm(e),{"aria-describedby":i="",helperText:s,id:a,isChecked:l,isDisabled:c,label:p,onChange:u,value:d}=o,f=nm(o,["aria-describedby","helperText","id","isChecked","isDisabled","label","onChange","value"]),{styleProps:m,props:y}=oe(f),[b,g]=ho(i),O=Oo(b);return r().createElement("div",{style:m.style,className:C()(n.root,m.className)},r().createElement("input",Object.assign({},y,O,{type:"radio",id:a,className:n.input,disabled:c,checked:l,onChange:u,value:d,ref:t})),r().createElement("div",{className:n.text},r().createElement(Eo,{UNSAFE_className:n.label,htmlFor:a},p),r().createElement(wo,{UNSAFE_className:n.helperText,id:`${a}__helperText`,registerAria:g,helperText:s})))}));rm.spiritComponent="Radio";const om=rm,im=50,sm=1,am="Scroll right",lm="Scroll left",cm="Scroll down",pm="Scroll up",um=Jt.VERTICAL,dm="shadows",fm=(e,t,n=300)=>{var r,o,i,s;const a=(e=>e?{start:lm,end:am}:{top:pm,bottom:cm})(e),l=Object.assign(Object.assign({},a),t);return{arrows:[{icon:e?"chevron-left":"chevron-up",label:e?null!==(r=l.start)&&void 0!==r?r:a.start:null!==(o=l.top)&&void 0!==o?o:a.top,step:-n},{icon:e?"chevron-right":"chevron-down",label:e?null!==(i=l.end)&&void 0!==i?i:a.end:null!==(s=l.bottom)&&void 0!==s?s:a.bottom,step:n}]}},mm=({direction:e,isScrollbarDisabled:t,isScrolledAtEnd:n,isScrolledAtStart:r,overflowDecorators:o=dm})=>{const i=h("ScrollView"),s=`${i}--${e}`,a=`${i}--scrollbarDisabled`,l=`${i}__viewport`,c=`${i}__content`,p=`${i}__overflowDecorators`,u={shadows:`${p}--shadows`,borders:`${p}--borders`,both:C()(`${p}--shadows`,`${p}--borders`)}[o],d="is-scrolled-at-start",f="is-scrolled-at-end",m=`${i}__arrows`;return{classProps:{root:C()(i,s,{[a]:t,[f]:n,[d]:r}),viewport:l,content:c,overflowDecorators:C()(p,u),arrows:m}}};var ym=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bm=e=>{const{ariaLabelArrows:t,direction:n,scrollStep:o,viewportRef:i}=e,s=ym(e,["ariaLabelArrows","direction","scrollStep","viewportRef"]),{classProps:a}=mm({direction:n}),{styleProps:l,props:c}=oe(s),p=ie("button",{classProps:a.arrows,styleProps:l}),u=nn(n),{arrows:d}=fm(u,t,o);return r().createElement("div",Object.assign({},c,p),d.map((({icon:e,label:t,step:n})=>r().createElement(ti,{key:e,"aria-label":t,onClick:()=>(e=>{var t;const n=u?"left":"top";null===(t=i.current)||void 0===t||t.scrollBy({[n]:e,behavior:"smooth"})})(n),size:"small",isSymmetrical:!0},r().createElement(dt,{name:e})))))};bm.spiritComponent="ScrollViewArrows";const gm=bm,Om={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},hm=(e,t)=>{let n,r=!1;return o=>{r||(r=!0,n&&clearTimeout(n),n=setTimeout((()=>{e(o),r=!1}),t))}},vm=({viewportReference:e,contentReference:n,direction:r})=>{const[o,i]=(0,t.useState)(!1),[s,a]=(0,t.useState)(!1),l=()=>{const t=nn(r),l=t?Om.LEFT:Om.TOP,c=t?Om.RIGHT:Om.BOTTOM,p=(()=>{if(!n.current||!e.current)return null;const t=n.current.getBoundingClientRect(),r=e.current.getBoundingClientRect();return{[Om.BOTTOM]:t.bottom-r.bottom,[Om.LEFT]:t.left-r.left,[Om.RIGHT]:t.right-r.right,[Om.TOP]:t.top-r.top}})();if(!p)return;const u=p[l]<=-1*sm,d=p[c]>=sm;u!==o&&i(u),d!==s&&a(d)},c=(0,t.useCallback)(hm(l,im),[l]);return Ft({ref:e,onResize:c}),(0,t.useEffect)(l,[]),{isScrolledAtEnd:s,isScrolledAtStart:o,onScroll:hm(l,im)}};var Pm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Em=e=>{const{ariaLabelArrows:n,arrowsScrollStep:o=300,children:i,direction:s=um,hasArrows:a=!1,isScrollbarDisabled:l,overflowDecorators:c=dm}=e,p=Pm(e,["ariaLabelArrows","arrowsScrollStep","children","direction","hasArrows","isScrollbarDisabled","overflowDecorators"]),u=(0,t.useRef)(null),d=(0,t.useRef)(null),{isScrolledAtEnd:f,isScrolledAtStart:m,onScroll:y}=vm({contentReference:u,direction:s,viewportReference:d}),{classProps:b}=mm({direction:s,isScrollbarDisabled:l,isScrolledAtStart:m,isScrolledAtEnd:f,overflowDecorators:c}),{styleProps:g,props:O}=oe(p);return r().createElement("div",Object.assign({},O,g,{className:C()(b.root,g.className)}),r().createElement("div",{className:b.viewport,onScroll:y,ref:d,tabIndex:0},r().createElement("div",{className:b.content,ref:u},i)),r().createElement("div",{className:b.overflowDecorators,"aria-hidden":"true"}),a&&r().createElement(gm,{ariaLabelArrows:n,direction:s,scrollStep:o,viewportRef:d}))};Em.spiritComponent="ScrollView";const xm=Em,jm={[Je.XSMALL]:{paddingY:{mobile:"space-900",tablet:"space-1000"}},[Je.SMALL]:{paddingY:{mobile:"space-1000",tablet:"space-1100"}},[Je.MEDIUM]:{paddingY:{mobile:"space-1100",tablet:"space-1300"}},[Je.LARGE]:{paddingY:{mobile:"space-1200",tablet:"space-1400"}},[Je.XLARGE]:{paddingY:{mobile:"space-1400",tablet:"space-1600"}}},Sm=e=>{const{size:t}=e;return{modifiedProps:t?Object.assign(Object.assign({},jm[t]),e):e}},wm=e=>{const{backgroundColor:t}=e||{},n=h(`bg-${t}`),r=t?n:"";return{classProps:C()({[r]:t})}};var Tm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cm={containerProps:void 0,elementType:"section",hasContainer:!0,size:void 0},Am=e=>{const t=Object.assign(Object.assign({},Cm),e),{elementType:n="section",backgroundColor:o,children:i,containerProps:s,hasContainer:a}=t,l=Tm(t,["elementType","backgroundColor","children","containerProps","hasContainer"]),{classProps:c}=wm({backgroundColor:o}),{modifiedProps:p}=Sm(l),{styleProps:u,props:d}=oe(p,{paddingTop:k.paddingTop,paddingBottom:k.paddingBottom,paddingY:k.paddingY,textAlignment:D.textAlignment}),f=ie(n,{classProps:c,styleProps:u});return r().createElement(n,Object.assign({},d,f),a?r().createElement(Go,Object.assign({},s),i):i)};Am.spiritComponent="Section";const Nm=Am,_m=(0,t.createContext)({isMultiselect:!1,name:"",selectedValue:[],setSelectedValue:()=>{},onSelectionChange:()=>{}}),Im=_m.Provider;var Rm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const km=e=>{const{isFluid:t,variant:n=it.OUTLINE}=e,r=Rm(e,["isFluid","variant"]),o=h("SegmentedControl"),i=`${o}--${n}`,s=`${o}--fluid`,a=`${o}Item`,l=`${a}__input`,c=`${a}__label`;return{classProps:{root:C()(o,i,{[s]:t}),input:l,label:c},props:r}};var Dm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lm={isFluid:!1,isMultiselect:!1,variant:it.OUTLINE},$m=e=>{const t=Object.assign(Object.assign({},Lm),e),{children:n,isMultiselect:o,label:i,name:s,onSelectionChange:a,selectedValue:l,setSelectedValue:c}=t,p=Dm(t,["children","isMultiselect","label","name","onSelectionChange","selectedValue","setSelectedValue"]),{classProps:u,props:d}=km(p),{styleProps:f,props:m}=oe(d),y={isMultiselect:o,name:s,selectedValue:l,setSelectedValue:c,onSelectionChange:a};return r().createElement(Im,{value:y},r().createElement("fieldset",Object.assign({},m,f,{className:C()(u.root,f.className)}),r().createElement(Ni,{elementType:"legend"},i),n))};$m.spiritComponent="SegmentedControl";const Mm=$m;var Bm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fm=(0,t.forwardRef)(((e,n)=>{const{isMultiselect:o,name:i,onSelectionChange:s,selectedValue:a,setSelectedValue:l}=(0,t.useContext)(_m),{id:c,isDisabled:p,value:u,children:d}=e,f=Bm(e,["id","isDisabled","value","children"]),{classProps:m,props:y}=km(f),{styleProps:b,props:g}=oe(y),O=o?Array.isArray(a)&&a.includes(String(u)):a===String(u);return r().createElement(r().Fragment,null,r().createElement("input",Object.assign({},g,b,p&&{disabled:!0},{className:C()(m.input,b.className),type:o?"checkbox":"radio",name:i,id:c,value:u,checked:O,onChange:()=>(e=>{if(p)return;let t;if(o){const n=Array.isArray(a)?a:[];t=n.includes(e)?n.filter((t=>t!==e)):[...n,e]}else t=e;l(t),s&&s(t)})(String(u))})),r().createElement("label",Object.assign({ref:n,htmlFor:c},b,{className:C()(m.label,b.className)}),d))}));Fm.spiritComponent="SegmentedControlItem";const Hm=Fm,Um=({defaultSelectedValue:e,isMultiselect:n})=>{let r;r=n?Array.isArray(e)?e:void 0!==e?[e]:[]:null!=e?e:"";const[o,i]=(0,t.useState)(r);return{selectedValue:o,setSelectedValue:i}},zm=({isDisabled:e,isFluid:t,isLabelHidden:n,isRequired:r,size:o,validationState:i})=>{const s=h("Select"),a=`${s}--fluid`,l=`${s}--disabled`,c=`${s}--${o}`,p=`${s}--${i}`,u=`${s}__label`,d=`${u}--required`,f=`${u}--hidden`,m=`${s}__inputContainer`,y=`${s}__input`,b=`${s}__icon`,g=`${s}__validationText`,O=`${s}__helperText`;return{classProps:{root:C()(s,{[l]:e,[a]:t,[c]:o,[p]:i}),label:C()(u,{[d]:r,[f]:n}),container:m,input:y,icon:b,validationText:g,helperText:O}}};var Vm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wm=(0,t.forwardRef)(((e,t)=>{const{"aria-describedby":n="",children:o,hasValidationIcon:i,helperText:s,id:a,isDisabled:l,isFluid:c,isLabelHidden:p,isRequired:u,label:d,size:f=Ze.MEDIUM,validationState:m,validationText:y}=e,b=Vm(e,["aria-describedby","children","hasValidationIcon","helperText","id","isDisabled","isFluid","isLabelHidden","isRequired","label","size","validationState","validationText"]),{classProps:g}=zm({hasValidationIcon:i,isDisabled:l,isFluid:c,isLabelHidden:p,isRequired:u,size:f,validationState:m}),{styleProps:O,props:h}=oe(b),[v,P]=ho(n),E=Oo(v),x=_o({validationState:m,validationText:y});return r().createElement("div",Object.assign({},O,{className:C()(g.root,O.className)}),r().createElement(Eo,{htmlFor:a,UNSAFE_className:g.label},d),r().createElement("div",{className:g.container},r().createElement("select",Object.assign({},h,E,{id:a,className:g.input,disabled:l,required:u,ref:t}),o),r().createElement("div",{className:g.icon},r().createElement(dt,{name:"chevron-down",boxSize:f===Ze.SMALL?16:20}))),r().createElement(wo,{UNSAFE_className:g.helperText,id:`${a}__helperText`,registerAria:P,helperText:s}),m&&r().createElement(No,Object.assign({UNSAFE_className:g.validationText},i&&{hasValidationStateIcon:m},{id:`${a}__validationText`,validationText:y,registerAria:P,role:x})))}));Wm.spiritComponent="Select";const Xm=Wm;var Gm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function qm(e){const t=e||{},{size:n}=t,r=Gm(t,["size"]),o=h("Skeleton"),i=`${o}--${n}`,s=`${o}--text`,a=`${o}--heading`,l=`${o}__item`;return{classProps:{root:C()(o,{[i]:n}),text:s,heading:a,item:l},props:r}}const Ym=()=>{const{classProps:e}=qm();return r().createElement("div",{className:C()(e.item),"aria-hidden":"true"})};Ym.spiritComponent="SkeletonItem";const Qm=Ym;var Km=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zm={size:Je.MEDIUM,lines:1,elementType:"div"},Jm=e=>{const t=Object.assign(Object.assign({},Zm),e),{elementType:n="div",lines:o}=t,i=Km(t,["elementType","lines"]),{classProps:s,props:a}=qm(i),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:s.root,classPropsText:s.text,styleProps:l,otherProps:c}),u=[...Array(null!=o?o:1).keys()];return r().createElement(n,Object.assign({},c,p),u.map((e=>r().createElement(Qm,{key:`skeleton-item-${e.toString()}`}))))};Jm.spiritComponent="SkeletonText";const ey=Jm;var ty=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ny={size:Je.MEDIUM,lines:1,elementType:"div"},ry=e=>{const t=Object.assign(Object.assign({},ny),e),{elementType:n="div",lines:o}=t,i=ty(t,["elementType","lines"]),{classProps:s,props:a}=qm(i),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:s.root,classPropsHeading:s.heading,styleProps:l,otherProps:c}),u=[...Array(null!=o?o:1).keys()];return r().createElement(n,Object.assign({},c,p),u.map((e=>r().createElement(Qm,{key:`skeleton-item-${e.toString()}`}))))};ry.spiritComponent="SkeletonHeading";const oy=ry;var iy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sy=(e,t)=>{if(!t)return{};const n=`--${e}`;return{[n]:`${null==t?void 0:t.toString()}px`}},ay=e=>{const{height:t,width:n,borderRadius:r}=e,o=iy(e,["height","width","borderRadius"]),i=h("Skeleton"),s=`${i}--shape`,a=C()(i,s),l=`${we}skeleton-shape`;return{classProps:a,skeletonShapeStyleProps:Object.assign(Object.assign(Object.assign({},sy(`${l}-width`,n)),sy(`${l}-height`,t)),r?((e,t)=>{const n={},r=`--${we}radius-`;return"object"==typeof t&&null!==t?Object.keys(t).forEach((o=>{const i="mobile"===o?"":`-${o}`,s=t[o];n[`--${e}${i}`]=`var(${r}${s})`})):t&&(n[`--${e}`]=`var(${r}${t})`),n})(`${l}-radius`,r):{}),props:o}};var ly=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cy={borderRadius:Fe[400],elementType:"div"},py=e=>{const t=Object.assign(Object.assign({},cy),e),{elementType:n="div"}=t,o=ly(t,["elementType"]),{classProps:i,skeletonShapeStyleProps:s,props:a}=ay(o),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:i,styleProps:l,skeletonShapeStyleProps:s,otherProps:c});return r().createElement(n,Object.assign({},c,p))};py.spiritComponent="SkeletonShape";const uy=py;var dy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function fy(e){const t=dy(e,[]);return{classProps:h("SkipLink"),props:t}}var my=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yy={elementType:"a"},by=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},yy),e),{elementType:o=yy.elementType,children:i}=n,s=my(n,["elementType","children"]),{classProps:a,props:l}=fy(s),{styleProps:c,props:p}=oe(l),u=ie("a",{classProps:a,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{href:s.href,ref:t}),i)}));by.spiritComponent="SkipLink";const gy=by;var Oy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function hy(e){const{isDisabled:t,isFluid:n,isLabelHidden:r,validationState:o}=e,i=Oy(e,["isDisabled","isFluid","isLabelHidden","validationState"]),s=h("Slider"),a=C()(s),l=`${s}--disabled`,c=`${s}--fluid`,p=`${s}--${o}`,u=C()(`${s}__label`),d=`${s}__label--hidden`,f=`${s}__input`,m=`${s}__helperText`,y=`${s}__validationText`;return{classProps:{root:C()(a,{[l]:t,[c]:n,[p]:o}),label:C()(u,{[d]:r}),input:f,helperText:m,validationText:y},props:i}}var vy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Py=Object.assign({},{max:100,min:0,step:1}),Ey=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Py),e),{"aria-describedby":o,hasValidationIcon:i,helperText:s,id:a,isDisabled:l,label:c,max:p,min:u,step:d,validationState:f,validationText:m,value:y}=n,b=vy(n,["aria-describedby","hasValidationIcon","helperText","id","isDisabled","label","max","min","step","validationState","validationText","value"]),{classProps:g,props:O}=hy(Object.assign(Object.assign({},b),{isDisabled:l,validationState:f})),{styleProps:h,props:v}=oe(O),[P,E]=ho(o),x=Oo(P),j=_o({validationState:f,validationText:m}),S="--slider-position",w=e=>`${Math.round(100*(e-u)/(p-u))}%`;return r().createElement("div",Object.assign({},h,v,{className:C()(g.root,h.className)}),r().createElement(Eo,{htmlFor:a,UNSAFE_className:g.label},c),r().createElement("input",Object.assign({},x,{className:g.input,id:a,onInput:e=>{const{target:t}=e,{value:n}=t;t.style.setProperty(S,w(Number(n)))},style:{[S]:`${w(y)}`},type:"range",min:u,max:p,step:d,value:y,disabled:l,ref:t})),r().createElement(wo,{UNSAFE_className:g.helperText,helperText:s,id:`${a}__helperText`,registerAria:E}),f&&r().createElement(No,Object.assign({UNSAFE_className:g.validationText},i&&{hasValidationStateIcon:f},{id:`${a}__validationText`,registerAria:E,validationText:m,role:j})))}));Ey.spiritComponent="Slider";const xy=Ey;function jy(){return{classProps:h("SplitButton")}}var Sy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wy={color:Ve.PRIMARY,size:Ze.MEDIUM},Ty=e=>{const t=Object.assign(Object.assign({},wy),e),{children:n,color:o,size:i,isDisabled:s}=t,a=Sy(t,["children","color","size","isDisabled"]),{classProps:l}=jy(),{styleProps:c,props:p}=oe(a);return r().createElement(mr,{value:{color:o,size:i,isDisabled:s}},r().createElement("div",Object.assign({},c,p,{className:C()(l,c.className)}),n))};var Cy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ay={dropdownPlacement:"bottom-end",dropdownTriggerIconName:"chevron-down"},Ny=e=>{const n=Object.assign(Object.assign({},Ay),e),{buttonIconName:o,buttonLabel:i,buttonOnClick:s,children:a,dropdownTriggerIconName:l,dropdownTriggerLabel:c,dropdownPlacement:p,id:u,isButtonLabelHidden:d,isDisabled:f,isDropdownTriggerLabelHidden:m}=n,y=Cy(n,["buttonIconName","buttonLabel","buttonOnClick","children","dropdownTriggerIconName","dropdownTriggerLabel","dropdownPlacement","id","isButtonLabelHidden","isDisabled","isDropdownTriggerLabelHidden"]),[b,g]=(0,t.useState)(!1);return r().createElement(Ty,Object.assign({},y,{id:u,isDisabled:f}),r().createElement(jr,{onClick:s},o&&r().createElement(dt,{name:o,marginRight:!d&&"space-400"}),d?r().createElement(Ni,null,i):i),r().createElement(Ji,{id:`${u}-dropdown`,isOpen:b,onToggle:()=>g(!b),placement:p},r().createElement(rs,{elementType:jr},m?r().createElement(Ni,null,c):c,r().createElement(dt,{name:l,marginLeft:!m&&"space-400"})),r().createElement(ss,null,a)))};var _y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Iy=e=>{const{elementType:t="div",children:n}=e,o=_y(e,["elementType","children"]),{classProps:i,props:s}=ds(o),{styleProps:a,props:l}=oe(s),c=ie(t,{classProps:i.item,styleProps:a,otherProps:l});return r().createElement(t,Object.assign({},l,c),n)};Iy.spiritComponent="StackItem";const Ry=Iy;var ky=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Dy=e=>{var{children:t}=e,n=ky(e,["children"]);const{styleProps:o,props:i}=oe(n);return r().createElement("div",Object.assign({},i,o),t)};Dy.spiritComponent="TabContent";const Ly=Dy,$y=(0,t.createContext)({selectedId:"",selectTab:e=>{},onSelectionChange:(e,t)=>{}}),My=$y.Provider,By=$y.Consumer,Fy=()=>(0,t.useContext)($y),Hy=$y;var Uy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function zy(e={selectedId:"",forTabPane:"",id:""}){const{spacing:t}=Fy(),{selectedId:n,forTabPane:r,id:o}=e,i=Uy(e,["selectedId","forTabPane","id"]),s=h("Tabs"),a=`${s}__item`,l=`${s}__link`,c=`${s}Pane`,p="is-selected",u=rn(t,"tabs");return{classProps:{item:a,link:C()(l,{[p]:!!r&&!!n&&n===r}),pane:C()(c,{[p]:!!o&&!!n&&n===o}),root:s},props:i,styleProps:u}}var Vy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wy=e=>{var{children:t,forTabPane:n,onClick:o}=e,i=Vy(e,["children","forTabPane","onClick"]);const{selectTab:s,selectedId:a,onSelectionChange:l}=Fy(),{classProps:c}=zy({forTabPane:n,selectedId:a}),{styleProps:p,props:u}=oe(i);return r().createElement("li",{className:c.item,role:"presentation"},r().createElement("button",Object.assign({},u,p,{type:"button",className:C()(c.link,p.className),role:"tab","aria-selected":a===n,id:`${n}-tab`,"aria-controls":n.toString(),onClick:e=>{s(n),o&&o(e),l&&l(a,n)}}),t))};Wy.spiritComponent="TabItem";const Xy=Wy;var Gy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qy={itemProps:{}},Yy=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},qy),e),{elementType:o="a",children:i,itemProps:s={}}=n,a=Gy(n,["elementType","children","itemProps"]),{classProps:l}=zy(),{styleProps:c,props:p}=oe(s),u=ie(o,{classProps:l.link});return r().createElement("li",Object.assign({},c,p,{className:C()(l.item,c.className),role:"presentation"}),r().createElement(o,Object.assign({},a,u,{ref:t}),i))}));Yy.spiritComponent="TabLink";const Qy=Yy;var Ky=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zy=e=>{var{children:t}=e,n=Ky(e,["children"]);const{classProps:o,styleProps:i}=zy(),{styleProps:s,props:a}=oe(n),l={style:Object.assign(Object.assign({},s.style),i)};return r().createElement("ul",Object.assign({},a,s,l,{className:C()(o.root,s.className),role:"tablist"}),t)};Zy.spiritComponent="TabList";const Jy=Zy;var eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tb=e=>{var{children:t,id:n}=e,o=eb(e,["children","id"]);const{selectedId:i}=Fy(),{classProps:s}=zy({id:n,selectedId:i}),{styleProps:a,props:l}=oe(o);return i===n?r().createElement("div",Object.assign({},l,a,{id:n.toString(),className:C()(s.pane,a.className),role:"tabpanel","aria-labelledby":`${n}-tab`}),t):null};tb.spiritComponent="TabPane";const nb=tb,rb=({children:e,selectedTab:t,toggle:n,onSelectionChange:o,spacing:i})=>r().createElement(My,{value:{selectedId:t,selectTab:n,onSelectionChange:o,spacing:i}},e);rb.spiritComponent="Tabs";const ob=rb,ib=e=>{const[n,r]=(0,t.useState)(e),o=(0,t.useCallback)((e=>{r(e)}),[]);return{selectedId:n,selectTab:o}},sb=({children:e,defaultSelectedTab:t,onSelectionChange:n,spacing:o})=>{const{selectedId:i,selectTab:s}=ib(t);return r().createElement(My,{value:{selectedId:i,selectTab:s,onSelectionChange:n,spacing:o}},e)};sb.spiritComponent="UncontrolledTabs";const ab=sb,lb={NEUTRAL:"neutral"};var cb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function pb(e){const{color:t,isSubtle:n,size:r}=e,o=cb(e,["color","isSubtle","size"]),i=h("Tag"),s=`${i}--${t}`,a=`${i}--${r}`,l=`${i}--subtle`;return{classProps:C()(i,{[s]:t,[a]:r,[l]:n}),props:o}}var ub=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const db={color:lb.NEUTRAL,elementType:"span",isSubtle:!1,size:Je.MEDIUM},fb=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},db),e),{elementType:o=db.elementType,children:i}=n,s=ub(n,["elementType","children"]),{classProps:a,props:l}=pb(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{ref:t}),i)}));fb.spiritComponent="Tag";const mb=fb;var yb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function bb(e){const{emphasis:t,size:n,textColor:r}=e,o=yb(e,["emphasis","size","textColor"]),i=h("typography-body"),s=h(r?`text-${r}`:"");return{classProps:C()(`${i}-${n}-${t}`,{[s]:!!r}),props:o}}var gb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ob={elementType:"p",emphasis:Ye.REGULAR,size:Je.MEDIUM},hb=e=>{const t=Object.assign(Object.assign({},Ob),e),{elementType:n="p",children:o}=t,i=gb(t,["elementType","children"]),{classProps:s,props:a}=bb(i),{styleProps:l,props:c}=oe(a,{isTextBalanced:D.isTextBalanced,textAlignment:D.textAlignment,textHyphens:D.textHyphens,textWordBreak:D.textWordBreak}),p=ie(n,{classProps:s,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};hb.spiritComponent="Text";const vb=hb;var Pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xb=(0,t.forwardRef)(((e,t)=>{const{classProps:n,props:o}=function(e){const{isMultiline:t,id:n}=e,r=Pb(e,["isMultiline","id"]);return{classProps:{input:`${h(t?"TextArea":"TextField")}__input`},props:Object.assign(Object.assign({},r),{isMultiline:t,id:n})}}(e),{id:i,isDisabled:s,isMultiline:a,isRequired:l,inputWidth:c,type:p}=o,u=Eb(o,["id","isDisabled","isMultiline","isRequired","inputWidth","type"]),{props:d}=oe(u),f=a?"textarea":"input",m=a?void 0:p;return r().createElement(f,Object.assign({},d,{className:n.input,disabled:s,id:i,required:l,size:c,type:m,ref:t}))}));xb.spiritComponent="TextFieldBaseInput";const jb=xb;var Sb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wb=e=>{const{children:t,isPasswordShown:n,onToggleClick:o,isDisabled:i,size:s}=e,{classProps:a}=function(){const e=h("TextField");return{classProps:{passwordToggle:`${e}__passwordToggle`,passwordToggleButton:`${e}__passwordToggle__button`,passwordToggleIcon:`${e}__passwordToggle__icon`}}}();return r().createElement("div",{className:a.passwordToggle},t,r().createElement("button",{className:a.passwordToggleButton,type:"button",role:"switch","aria-checked":!!n,"aria-label":(n?"Hide":"Show")+" password",onClick:()=>o(),disabled:i},r().createElement("span",{className:a.passwordToggleIcon},r().createElement(dt,{name:"visibility-"+(n?"off":"on"),boxSize:s===Ze.SMALL?16:20}))))};wb.spiritComponent="TextFieldBasePasswordToggle";const Tb=wb;var Cb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ab(e){const n=e.displayName||e.name||"Component",o=(n,o)=>{const{isPasswordShown:i,passwordToggle:s}=(()=>{const[e,n]=(0,t.useState)(!1);return{isPasswordShown:e,passwordToggle:()=>n(!e)}})(),{hasPasswordToggle:a,isDisabled:l,size:c}=n,p=Cb(n,["hasPasswordToggle","isDisabled","size"]);return a?r().createElement(Tb,{isDisabled:l,isPasswordShown:i,onToggleClick:s,size:c},r().createElement(e,Object.assign({},p,{type:i?"text":"password",isDisabled:l,ref:o}))):r().createElement(e,Object.assign({},p,{isDisabled:l,ref:o}))};return o.displayName=`withPasswordToggle(${n})`,o}Ab.spiritComponent="withPasswordToggle";const Nb=Ab;var _b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ib=(0,t.forwardRef)(Nb(jb)),Rb=(0,t.forwardRef)(((e,t)=>{const{"aria-describedby":n="",hasValidationIcon:o,helperText:i,id:s,label:a,size:l=Ze.MEDIUM,validationState:c,validationText:p}=e,u=_b(e,["aria-describedby","hasValidationIcon","helperText","id","label","size","validationState","validationText"]),{classProps:d,props:f}=function(e){const{isFluid:t,isMultiline:n,isLabelHidden:r,size:o,validationState:i}=e,s=Sb(e,["isFluid","isMultiline","isLabelHidden","size","validationState"]),{isDisabled:a,isRequired:l}=s,c=h(n?"TextArea":"TextField"),p=`${c}--disabled`,u=`${c}--fluid`,d=`${c}--${o}`,f=`${c}--${i}`,m=`${c}__input`,y=`${c}__label`,b=`${c}__label--required`,g=`${c}__label--hidden`,O=`${c}__validationText`,v=`${c}__passwordToggle`,P=`${c}__passwordToggle__button`,E=`${c}__passwordToggle__icon`,x=`${c}__helperText`;return{classProps:{root:C()(c,{[p]:a,[u]:t,[f]:i,[d]:o}),label:C()(y,{[b]:l,[g]:r}),input:m,helperText:x,validationText:O,passwordToggle:v,passwordToggleButton:P,passwordToggleIcon:E},props:Object.assign(Object.assign({},s),{isMultiline:n})}}(Object.assign({id:s,size:l,validationState:c},u)),{styleProps:m,props:y}=oe(f),[b,g]=ho(n),O=Oo(b),v=_o({validationState:c,validationText:p});return r().createElement("div",Object.assign({},m,{className:C()(d.root,m.className)}),r().createElement(Eo,{htmlFor:s,UNSAFE_className:d.label},a),r().createElement(Ib,Object.assign({},y,O,{id:s,ref:t,size:l})),r().createElement(wo,{UNSAFE_className:d.helperText,id:`${s}__helperText`,registerAria:g,helperText:i}),c&&r().createElement(No,Object.assign({UNSAFE_className:d.validationText,elementType:"span"},o&&{hasValidationStateIcon:c},{id:`${s}__validationText`,validationText:p,registerAria:g,role:v})))}));Rb.spiritComponent="TextFieldBase";const kb=Rb;var Db=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lb=(0,t.forwardRef)(((e,n)=>{const{onInput:o,isAutoResizing:i,autoResizingMaxHeight:s=400}=e,a=Db(e,["onInput","isAutoResizing","autoResizingMaxHeight"]),l=(0,t.useRef)(n),{adjustHeightOnAutoresize:c,onInput:p}=(({elementReference:e,maxHeight:n,onInput:r,isAutoResizing:o})=>{const i=e=>{const t=(parseFloat(getComputedStyle(e).getPropertyValue("border-top-width"))||0)+(parseFloat(getComputedStyle(e).getPropertyValue("border-bottom-width"))||0);e.style.height="auto",e.style.overflow="auto";const r=e.scrollHeight+t;e.style.height=`${r<n?r:n}px`,e.style.overflow=r<n?"hidden":"auto"},s=()=>{if(o){const t=null==e?void 0:e.current;t&&i(t)}};return(0,t.useEffect)((()=>{s()}),[]),{adjustHeight:i,adjustHeightOnAutoresize:s,onInput:e=>{s(),r&&r(e)}}})({elementReference:l,onInput:o,isAutoResizing:i,maxHeight:s});return r().createElement(kb,Object.assign({isMultiline:!0,ref:l,onInput:p,onFocus:c},a))}));Lb.spiritComponent="TextArea";const $b=Lb,Mb=(0,t.forwardRef)(((e,t)=>r().createElement(kb,Object.assign({type:"text"},e,{ref:t}))));Mb.spiritComponent="TextField";const Bb=Mb,Fb={DOT:"dot",NUMBER:"number",ICON:"icon"},Hb=Ze.SMALL;var Ub=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function zb(e){const t=e||{},{markerBackgroundColor:n,markerBorderColor:r,markerTextColor:o,markerVariant:i,markerSize:s=Hb}=t,a=Ub(t,["markerBackgroundColor","markerBorderColor","markerTextColor","markerVariant","markerSize"]),l=h("Timeline"),c=`${l}Content`,p=`${l}Heading`,u=`${l}Marker`,d=`${l}Step`,f=i===Fb.DOT||i===Fb.NUMBER,m=h(`bg-${n}`),y=h(`border-${r}`),b=h(`text-${o}`),g=n?m:"",O=r?y:"",v=o?b:"",P=C()(u,{[`${u}--${i}`]:!!i,[g]:f,[O]:f,[v]:!!o}),E=Vl(l,s);return{classProps:{content:c,heading:p,marker:P,root:C()(l,...E),step:d},props:a}}var Vb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wb={elementType:"ol",size:Hb},Xb=e=>{const t=Object.assign(Object.assign({},Wb),e),{elementType:n="ol",children:o,size:i}=t,s=Vb(t,["elementType","children","size"]),{classProps:a}=zb({markerSize:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.root,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};Xb.spiritComponent="Timeline";const Gb=Xb;var qb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yb=e=>{const{children:t}=e,n=qb(e,["children"]),{classProps:o}=zb(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.content,i.className),style:i.style}),t)};Yb.spiritComponent="TimelineContent";const Qb=Yb;var Kb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zb=e=>{const{children:t}=e,n=Kb(e,["children"]),{classProps:o}=zb(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.heading,i.className),style:i.style}),t)};Zb.spiritComponent="TimelineHeading";const Jb=Zb;var eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tg={variant:"number"},ng=e=>{const t=Object.assign(Object.assign({},tg),e),{backgroundColor:n,borderColor:o,children:i,textColor:s,variant:a}=t,l=eg(t,["backgroundColor","borderColor","children","textColor","variant"]),{classProps:c}=zb({markerBackgroundColor:n,markerBorderColor:o,markerTextColor:s,markerVariant:a}),{styleProps:p,props:u}=oe(l);return r().createElement("div",Object.assign({},u,{className:C()(c.marker,p.className),style:p.style,"aria-hidden":"true"}),a!==Fb.DOT&&i)};ng.spiritComponent="TimelineMarker";const rg=ng;var og=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ig={elementType:"li"},sg=e=>{const t=Object.assign(Object.assign({},ig),e),{elementType:n="li",children:o}=t,i=og(t,["elementType","children"]),{classProps:s}=zb(),{styleProps:a,props:l}=oe(i),c=ie(n,{classProps:s.step,styleProps:a,otherProps:l});return r().createElement(n,Object.assign({},l,c),o)};sg.spiritComponent="TimelineStep";const ag=sg;var lg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var cg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pg={alignmentX:ke.CENTER,alignmentY:Le.BOTTOM,isCollapsible:!0},ug=e=>{const t=Object.assign(Object.assign({},pg),e),{children:n,alignmentX:o,alignmentY:i}=t,s=cg(t,["children","alignmentX","alignmentY"]),{classProps:a,props:l}=function(e){const{alignmentX:t,alignmentY:n,isCollapsible:r}=e,o=lg(e,["alignmentX","alignmentY","isCollapsible"]),i=h("Toast"),s=[...function(e){return e.map((e=>"object"==typeof e&&null!==e?Object.keys(e).reduce(((t,n)=>[...t,`${i}${"mobile"===n?"":`--${n}`}--${e[n]}`]),[]):[`${i}--${e}`]))}([t,n])],a=`${i}--collapsible`;return{classProps:{root:C()(i,r&&a,...s),queue:`${i}__queue`},props:o}}(Object.assign(Object.assign({},s),{alignmentX:o,alignmentY:i})),{styleProps:c,props:p}=oe(l);return r().createElement("div",Object.assign({},p,c,{className:C()(a.root,c.className),role:"log"}),r().createElement("div",{className:a.queue},n))};ug.spiritComponent="Toast";const dg=ug,fg=250,mg={entering:"is-open is-transitioning",entered:"is-open",exiting:"is-hidden is-transitioning",exited:"is-hidden"},yg=20,bg="Close",gg="neutral",Og=3e3,hg={NEUTRAL:"neutral"};var vg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pg=e=>{const{color:t,isDismissible:n}=e,r=vg(e,["color","isDismissible"]),o=h("ToastBar"),i=`${o}__box`,s=`${o}__close`,a=`${o}__container`,l=`${o}__content`,c=`${o}__link`,p=h("link-underlined"),u=`${o}--${t||hg.NEUTRAL}`,d=`${o}--dismissible`;return{classProps:{root:C()(o,u,n&&d),box:i,close:s,container:a,content:l,link:C()(c,p)},props:r}};var Eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xg=e=>{const{onClose:t,isOpen:n,id:o,closeLabel:i,isDismissible:s}=e,a=Eg(e,["onClose","isOpen","id","closeLabel","isDismissible"]),{classProps:l,props:c}=Pg(Object.assign({},a)),{styleProps:p,props:u}=oe(c);return s&&t?r().createElement("button",Object.assign({},u,p,{type:"button",className:C()(l.close,p.className),onClick:t,"aria-expanded":n,"aria-controls":o}),r().createElement(dt,{name:"close"}),r().createElement(Ni,null,i)):null};xg.spiritComponent="ToastCloseButton";const jg=xg;var Sg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wg=e=>{const{id:n,children:o,closeLabel:i=bg,color:s=gg,hasIcon:a,iconName:l,isDismissible:c,isOpen:p=!0,onClose:u=()=>{}}=e,d=Sg(e,["id","children","closeLabel","color","hasIcon","iconName","isDismissible","isOpen","onClose"]),f=(0,t.useRef)(null),m=function({color:e,iconName:t}){const n=wn(e,{danger:"danger",informative:"info",neutral:"info",success:"check-plain",warning:"warning"},gg);return t||n}({color:s,iconName:l}),{classProps:y,props:b}=Pg(Object.assign(Object.assign({},d),{color:s,isDismissible:c})),{styleProps:g,props:O}=oe(b);return r().createElement(Ct,{in:p,nodeRef:f,timeout:fg,unmountOnExit:!0},(e=>r().createElement("div",Object.assign({},g,O,{id:n,className:C()(y.root,mg[e],g.className),ref:f}),r().createElement("div",{className:y.box},r().createElement("div",{className:y.container},(a||l)&&r().createElement(dt,{name:m,boxSize:yg}),r().createElement("div",{className:y.content},o)),r().createElement(jg,{id:n,isOpen:p,closeLabel:i,onClose:u,isDismissible:c})))))};wg.spiritComponent="ToastBar";const Tg=wg;var Cg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ag=e=>{const{children:t}=e,n=Cg(e,["children"]),{styleProps:o,props:i}=oe(n);return r().createElement("div",Object.assign({},o,i,{className:C()(h("text-truncate-multiline"),o.className)}),t)};Ag.spiritComponent="ToastBarMessage";const Ng=Ag;var _g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ig={elementType:"a"},Rg=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Ig),e),{elementType:o=Ig.elementType,children:i}=n,s=_g(n,["elementType","children"]),{classProps:a,props:l}=Pg(Object.assign({},s)),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a.link,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{ref:t}),i)}));Rg.spiritComponent="ToastBarLink";const kg=Rg,Dg=(0,t.createContext)({clear:()=>{},hide:()=>{},queue:[],setQueue:()=>{},show:()=>{}}),Lg=()=>{const e=(0,t.useContext)(Dg);if(!e)throw new Error("useToast has to be used within <ToastProvider>");return e};var $g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Mg=e=>{const{alignmentX:t,alignmentY:n,isCollapsible:o,closeLabel:i}=e,s=$g(e,["alignmentX","alignmentY","isCollapsible","closeLabel"]),{hide:a,queue:l}=Lg();return r().createElement(dg,{alignmentX:t,alignmentY:n,isCollapsible:o},l.map((e=>{const{color:t,iconName:n,id:o,isOpen:l,content:c,hasIcon:p,isDismissible:u,linkProps:d}=e;return r().createElement(Tg,Object.assign({},s,{key:o,id:o,closeLabel:i,color:t,hasIcon:p,iconName:n,isDismissible:u,onClose:()=>a(o),isOpen:l&&!!c}),r().createElement(Ng,null,c.message),c.link&&r().createElement(kg,Object.assign({},d),c.link))})))};Mg.spiritComponent="UncontrolledToast";const Bg=Mg;var Fg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Hg(e){const{isRequired:t=!1,isFluid:n=!1,isDisabled:r=!1,isLabelHidden:o=!1,validationState:i,hasIndicators:s=!1}=e,a=Fg(e,["isRequired","isFluid","isDisabled","isLabelHidden","validationState","hasIndicators"]),l=h("Toggle"),c=`${l}--fluid`,p=`${l}--disabled`,u=`${l}__text`,d=`${l}__label`,f=`${d}--hidden`,m=`${l}--${i}`,y=`${d}--required`,b=`${l}__input`,g=`${b}--indicators`,O=`${l}__helperText`,v=`${l}__validationText`;return{classProps:{root:C()(l,{[c]:n,[p]:r,[m]:i}),label:C()(d,{[y]:t,[f]:o}),text:u,helperText:O,input:C()(b,{[g]:s}),validationText:v},props:Object.assign(Object.assign({},a),{validationState:i,isDisabled:r,isRequired:t})}}var Ug=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zg=(0,t.forwardRef)(((e,n)=>{const{classProps:o,props:i}=Hg(e),{"aria-describedby":s="",hasValidationIcon:a,id:l,isDisabled:c,isChecked:p=!1,isRequired:u,label:d,helperText:f,onChange:m=()=>{},validationState:y,validationText:b}=i,g=Ug(i,["aria-describedby","hasValidationIcon","id","isDisabled","isChecked","isRequired","label","helperText","onChange","validationState","validationText"]),{styleProps:O,props:h}=oe(g),[v,P]=ho(s),E=Oo(v),[x,j]=(0,t.useState)(p),S=_o({validationState:y,validationText:b});return r().createElement("div",{style:O.style,className:C()(o.root,O.className)},r().createElement("div",{className:o.text},r().createElement(Eo,{UNSAFE_className:o.label,htmlFor:l},d),r().createElement(wo,{UNSAFE_className:o.helperText,id:`${l}__helperText`,registerAria:P,helperText:f}),y&&r().createElement(No,Object.assign({UNSAFE_className:o.validationText},a&&{hasValidationStateIcon:y},{id:`${l}__validationText`,validationText:b,registerAria:P,role:S}))),r().createElement("input",Object.assign({},h,E,{type:"checkbox",id:l,className:o.input,disabled:c,checked:x,required:u,onChange:e=>{j(e.target.checked),m(e)},ref:n})))}));zg.spiritComponent="Toggle";const Vg=zg,Wg=(e=!1)=>{const[n,r]=(0,t.useState)(e);return{isOpen:n,onToggle:r}};var Xg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Gg=e=>{const{children:t,isOpen:n}=e,o=Xg(e,["children","isOpen"]),{isOpen:i,onToggle:s}=Wg(n);return r().createElement(Nf,Object.assign({},o,{isOpen:i,onToggle:s}),t)};Gg.spiritComponent="UncontrolledTooltip";const qg=Gg,Yg={LINES:"lines",WORDS:"words",CHARACTERS:"characters"},Qg=(e,t)=>{const n=e.trim().split(/\s+/);return n.length<=t?e:`${n.slice(0,t).join(" ")}…`},Kg=(e,t)=>e.length<=t?e:`${e.slice(0,t)}…`,Zg=e=>e,Jg=(e,n,r)=>(0,t.useMemo)((()=>{if("string"!=typeof e)return e;if(!r||r<=0)return e;switch(n){case Yg.WORDS:return Qg(e,r);case Yg.CHARACTERS:return Kg(e,r);case Yg.LINES:default:return Zg(e)}}),[e,n,r]);var eO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tO=e=>{const{limit:t,mode:n=Yg.LINES}=e,r=eO(e,["limit","mode"]),o=h(n===Yg.LINES?"text-truncate-multiline":""),i={};return n===Yg.LINES&&void 0!==t&&(i["--text-truncate-lines"]=t),{classProps:o,props:r,styleProps:i,effectiveMode:n,effectiveLimit:t}};var nO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rO={elementType:"span"},oO=e=>{const t=Object.assign(Object.assign({},rO),e),{children:n,elementType:o="span"}=t,i=nO(t,["children","elementType"]),{classProps:s,props:a,styleProps:l,effectiveMode:c,effectiveLimit:p}=tO(i),u=Jg(n,c,c!==Yg.LINES?p:void 0),{styleProps:d,props:f}=oe(a),m=ie(o,{classProps:s,styleProps:d,truncateStyleProps:{style:Object.assign(Object.assign({},d.style),l)}});return r().createElement(o,Object.assign({},f,m),u)};oO.spiritComponent="Truncate";const iO=oO;var sO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aO=e=>{const{hasBottomDivider:t=!1}=e,n=sO(e,["hasBottomDivider"]),r=h("UNSTABLE_Header"),o=`${r}Logo`,i=`${r}--bottomDivider`;return{classProps:{root:C()(r,{[i]:t}),logo:o},props:n}};var lO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cO=e=>{const{children:t}=e,n=lO(e,["children"]),{classProps:o,props:i}=aO(n),{styleProps:s,props:a}=oe(i);return r().createElement("header",Object.assign({},a,{className:C()(o.root,s.className),style:s.style}),t)};cO.spiritComponent="UNSTABLE_Header";const pO=cO;var uO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dO={elementType:"a"},fO=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},dO),e),{elementType:o=dO.elementType,children:i}=n,s=uO(n,["elementType","children"]),{classProps:a,props:l}=aO(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a.logo,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{href:s.href,ref:t}),i)}));fO.spiritComponent="UNSTABLE_HeaderLogo";const mO=fO,yO={NONE:"none",AUTO:"auto",MANUAL:"manual"},bO={NORMAL:"normal",ANYWHERE:"anywhere",LONG_WORDS:"long-words"};function gO(e,t){return un(e,t)}const OO={OFF:"off",MOBILE_ONLY:"mobile-only",ALL:"all"};var hO;!function(e){e.TABLET="tablet",e.DESKTOP="desktop"}(hO||(hO={}));const vO=(e,t,n)=>{const r={};for(const[o,i]of Object.entries(e))for(const[e]of Object.entries(i))if(e.startsWith(t)){const i=`${n}-${o}-${e.replace(t,"").toLowerCase()}`;r[i.replace(/-/g,"_").toUpperCase()]=i}return r},PO=()=>vO(Ce,"content","accent"),EO=()=>vO(Ne,"content","emotion"),xO=()=>vO(Ce,"background","accent"),jO=()=>vO(Ne,"background","emotion"),SO=()=>vO(Ce,"border","accent"),wO=()=>vO(Ne,"border","emotion"),TO=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),CO=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),AO=()=>Object.keys(Ce),NO=()=>Object.keys(Ne),_O=()=>Object.keys(_e),IO=(e,t)=>{const n=setTimeout((()=>{e(),clearTimeout(n)}),t)}})(),a})()));
|
|
15
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";s.r(a),s.d(a,{Accordion:()=>le,AccordionContent:()=>Yt,AccordionContext:()=>S,AccordionHeader:()=>yt,AccordionItem:()=>ye,AccordionItemContext:()=>de,ActionGroup:()=>xn,Alert:()=>Nn,AlignmentX:()=>ke,AlignmentXExtended:()=>De,AlignmentY:()=>Le,AlignmentYExtended:()=>$e,AttachmentActionButton:()=>oa,AttachmentDismissButton:()=>aa,Avatar:()=>Mn,BREAKPOINT_MOBILE:()=>F,BackgroundColors:()=>ze,BackgroundGradients:()=>Qe,BackgroundStyleProps:()=>_,BorderColors:()=>Be,BorderRadii:()=>Fe,BorderRadiusStyleProps:()=>I,BorderStyles:()=>He,BorderWidths:()=>Ue,Box:()=>Vn,Breadcrumbs:()=>ar,BreadcrumbsItem:()=>rr,Button:()=>Sr,ButtonLink:()=>kr,CLASS_NAME_OPEN:()=>Dt,Card:()=>Br,CardArtwork:()=>zr,CardBody:()=>Gr,CardEyebrow:()=>Qr,CardFooter:()=>eo,CardLink:()=>oo,CardLogo:()=>ao,CardMedia:()=>mo,CardSizes:()=>co,CardTitle:()=>Oo,Checkbox:()=>$o,ClassNamePrefixConsumer:()=>f,ClassNamePrefixProvider:()=>d,Collapse:()=>Xt,ColorPrefixes:()=>Hl,ComponentButtonColors:()=>Ve,Container:()=>qo,ContainerTokenSizes:()=>rt,ControlButton:()=>ni,DEBOUNCE_DELAY:()=>sm,DEFAULT_BUTTON_LABEL:()=>$s,DEFAULT_EDIT_BUTTON_LABEL:()=>Ms,DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE:()=>Is,DEFAULT_ERROR_MESSAGE_QUEUE_DUPLICITY:()=>Rs,DEFAULT_ERROR_MESSAGE_QUEUE_LIMIT:()=>ks,DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE:()=>Ds,DEFAULT_FILE_QUEUE_LIMIT:()=>As,DEFAULT_FILE_SIZE_LIMIT:()=>Cs,DEFAULT_ICON_NAME:()=>Ls,DEFAULT_TOAST_AUTO_CLOSE_INTERVAL:()=>hg,DEFAULT_TOAST_COLOR:()=>Og,Dialog:()=>mi,Direction:()=>Jt,DirectionAxis:()=>tn,DirectionExtended:()=>en,DisplayStyleProps:()=>$,Divider:()=>gi,Drawer:()=>Ti,DrawerCloseButton:()=>Di,DrawerConsumer:()=>Ei,DrawerPanel:()=>Mi,DrawerProvider:()=>Pi,Dropdown:()=>es,DropdownContext:()=>Yi,DropdownFullWidthModes:()=>hO,DropdownPopover:()=>as,DropdownTrigger:()=>os,EDGE_DETECTION_INACCURACY_PX:()=>am,EmotionColors:()=>We,Emphasis:()=>Ye,EmptyState:()=>Ps,EmptyStateSection:()=>js,FieldGroup:()=>Ts,FileUploader:()=>Gs,FileUploaderAttachment:()=>Oa,FileUploaderCropCSS:()=>Bs,FileUploaderInput:()=>Zs,FileUploaderList:()=>ta,FillVariants:()=>it,Flex:()=>hn,Footer:()=>wa,Grid:()=>Ia,GridItem:()=>$a,HEADER_ACTIONS_COLOR_DEFAULT:()=>Ba,HEADER_COLOR_DEFAULT:()=>Ma,HEADER_DIALOG_CLOSE_BUTTON_LABEL_DEFAULT:()=>Fa,HEADER_MENU_TOGGLE_LABEL_DEFAULT:()=>Ha,Header:()=>Wa,HeaderButton:()=>Ga,HeaderDesktopActions:()=>Ka,HeaderDialog:()=>ol,HeaderDialogActions:()=>al,HeaderDialogButton:()=>cl,HeaderDialogCloseButton:()=>dl,HeaderDialogConsumer:()=>el,HeaderDialogLink:()=>yl,HeaderDialogNav:()=>gl,HeaderDialogNavItem:()=>hl,HeaderDialogProvider:()=>Ja,HeaderDialogText:()=>Pl,HeaderLink:()=>jl,HeaderMobileActions:()=>Tl,HeaderNav:()=>Al,HeaderNavItem:()=>_l,Heading:()=>$l,HeadingStyleProps:()=>L,HelperText:()=>To,ICON_BOX_SIZE:()=>bg,IMAGE_DIMENSION:()=>Ns,IMAGE_PREVIEW_BASE64_MAX_WIDTH:()=>_s,Icon:()=>dt,IconBox:()=>Kl,IconsConsumer:()=>Oe,IconsProvider:()=>ge,Intensity:()=>qe,Item:()=>nc,Label:()=>xo,Link:()=>Kn,LinkColors:()=>Xe,Matrix:()=>pc,Modal:()=>Oc,ModalBody:()=>Pc,ModalCloseButton:()=>jc,ModalConsumer:()=>fc,ModalDialog:()=>Ac,ModalFooter:()=>Ic,ModalHeader:()=>Lc,ModalProvider:()=>dc,Navigation:()=>Uc,NavigationAction:()=>Gc,NavigationAvatar:()=>Kc,NavigationItem:()=>tp,NoSsr:()=>rp,ObjectFit:()=>lo,PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL:()=>Op,PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL:()=>gp,PaddingStyleProps:()=>k,Pagination:()=>ap,PaginationButtonLink:()=>pp,PaginationItem:()=>fp,PaginationLink:()=>bp,PaginationLinkNext:()=>Pp,PaginationLinkPrevious:()=>jp,PartnerLogo:()=>kp,Pill:()=>Hp,PillColorsExtended:()=>Dp,Placements:()=>Ke,Position:()=>hm,PricingPlan:()=>Gp,PricingPlanBody:()=>qf,PricingPlanFooter:()=>Kf,PricingPlanHeader:()=>Kp,ProductLogo:()=>em,PropsConsumer:()=>br,PropsProvider:()=>yr,Radio:()=>im,SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END:()=>lm,SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START:()=>cm,SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END:()=>pm,SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START:()=>um,SCROLL_VIEW_DEFAULT_DIRECTION:()=>dm,SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR:()=>fm,STYLE_SPACING_AUTO:()=>B,ScrollView:()=>jm,ScrollViewArrows:()=>Om,Section:()=>_m,SegmentedControl:()=>Bm,SegmentedControlItem:()=>Um,Select:()=>Gm,ShapeVariants:()=>st,Sizes:()=>Ze,SizesExtended:()=>Je,SkeletonHeading:()=>iy,SkeletonItem:()=>Km,SkeletonShape:()=>dy,SkeletonText:()=>ty,SkipLink:()=>Oy,Slider:()=>jy,SpacingStyleProp:()=>R,Spinner:()=>Pr,SpiritBreakpoints:()=>vO,SplitButton:()=>Cy,Stack:()=>gs,StackItem:()=>ky,TOAST_BAR_CLOSE_BUTTON_LABEL_DEFAULT:()=>gg,TOOLTIP_TRIGGER:()=>Sf,TRANSITIONING_STYLES:()=>yg,TRANSITION_DURATION:()=>mg,TabContent:()=>$y,TabContext:()=>Uy,TabItem:()=>Gy,TabLink:()=>Ky,TabList:()=>eb,TabPane:()=>rb,Tabs:()=>ib,TabsConsumer:()=>Fy,TabsProvider:()=>By,Tag:()=>yb,TagColorsExtended:()=>cb,Text:()=>Pb,TextAlignments:()=>Me,TextArea:()=>Mb,TextColors:()=>Ge,TextField:()=>Fb,TextFieldBase:()=>Db,TextHyphens:()=>bO,TextStyleProps:()=>D,TextWordBreaks:()=>gO,ThemeStyleProps:()=>M,Timeline:()=>qb,TimelineContent:()=>Kb,TimelineHeading:()=>eg,TimelineMarker:()=>og,TimelineStep:()=>lg,Toast:()=>fg,ToastBar:()=>Cg,ToastBarLink:()=>Dg,ToastBarMessage:()=>_g,ToastColorsExtended:()=>vg,Toggle:()=>Wg,Tooltip:()=>_f,TooltipCloseButton:()=>Mf,TooltipPopover:()=>Hf,TooltipTrigger:()=>Df,Truncate:()=>sO,TruncateModes:()=>Qg,UNDERLINED_OPTIONS:()=>Wn,UNSTABLE_Header:()=>uO,UNSTABLE_HeaderLogo:()=>yO,UncontrolledAccordion:()=>Zt,UncontrolledCollapse:()=>Uo,UncontrolledDropdown:()=>us,UncontrolledFileUploader:()=>Ea,UncontrolledPagination:()=>Cp,UncontrolledSplitButton:()=>_y,UncontrolledTabs:()=>lb,UncontrolledToast:()=>Fg,UncontrolledTooltip:()=>Yg,ValidationStates:()=>ot,ValidationText:()=>_o,VisuallyHidden:()=>_i,applyClassNamePrefix:()=>y,applyColor:()=>b,applySize:()=>g,applyTheme:()=>O,base64ToByteArray:()=>ma,camelCaseToKebabCase:()=>H,compose:()=>_n,debounce:()=>vm,delayedCallback:()=>RO,fullWidthModeKeys:()=>zi,generateColorsObject:()=>PO,generateResponsiveClassNames:()=>Wl,generateResponsiveStylePropsClasses:()=>pn,generateStaticStylePropsClasses:()=>cn,generateStylePropsClassNames:()=>un,getAccentBackgroundColors:()=>jO,getAccentBorderColors:()=>wO,getAccentColorNames:()=>NO,getAccentTextColors:()=>EO,getAttachmentInput:()=>ua,getAttachmentMetaInput:()=>da,getEmotionBackgroundColors:()=>SO,getEmotionBorderColors:()=>TO,getEmotionColorNames:()=>_O,getEmotionTextColors:()=>xO,getNeutralBackgroundColors:()=>AO,getNeutralTextColors:()=>CO,getTextColorNames:()=>IO,htmlReactParser:()=>Se,image2Base64Preview:()=>fa,isDirectionHorizontal:()=>nn,isEmpty:()=>Q,isEmptyArray:()=>G,isEmptyObject:()=>q,isEmptyString:()=>X,isEnumerable:()=>Y,isNullish:()=>W,isResponsive:()=>Vl,isSSR:()=>$t,kebabCaseToCamelCase:()=>U,kebabCaseToCamelCaseValues:()=>z,mergeStyleProps:()=>ie,stringOrObjectKebabCaseToCamelCase:()=>V,toPascalCase:()=>ln,truncateByCharacters:()=>Zg,truncateByLines:()=>Jg,truncateByWords:()=>Kg,useAccordion:()=>o,useAccordionAriaProps:()=>p,useAccordionStyleProps:()=>v,useAlertStyleProps:()=>Sn,useAlignmentClass:()=>fn,useAriaDescribedBy:()=>ho,useAriaIds:()=>vo,useAvatarStyleProps:()=>kn,useBoxStyleProps:()=>Fn,useBreadcrumbsStyleProps:()=>Jn,useButtonLinkProps:()=>wr,useButtonLinkStyleProps:()=>Nr,useButtonProps:()=>cr,useButtonStyleProps:()=>fr,useCancelEvent:()=>ai,useCardStyleProps:()=>Dr,useCheckboxStyleProps:()=>ko,useClassNamePrefix:()=>h,useClick:()=>lr,useClickOutside:()=>oi,useCollapse:()=>Mo,useCollapseAriaProps:()=>kt,useCollapseStyleProps:()=>Lt,useContainerStyleProps:()=>Vo,useControlButtonProps:()=>Yo,useControlButtonStyleProps:()=>Zo,useDefaultResponsiveRowsStyle:()=>ic,useDeprecationMessage:()=>At,useDialog:()=>ui,useDimensionStyle:()=>rc,useDirectionClass:()=>OO,useDividerStyleProps:()=>yi,useDragAndDrop:()=>qs,useDrawerContext:()=>xi,useDrawerStyleProps:()=>ji,useDropdown:()=>ls,useDropdownAriaProps:()=>Vi,useDropdownStyleProps:()=>Ki,useEmptyStateStyleProps:()=>Os,useFileQueue:()=>ha,useFileUploaderAttachment:()=>ya,useFileUploaderInput:()=>Ys,useFileUploaderStyleProps:()=>Vs,useFlexStyleProps:()=>yn,useGridStyleProps:()=>Ca,useHeaderDialogContext:()=>tl,useHeaderStyleProps:()=>Ua,useHeadingStyleProps:()=>Rl,useIcon:()=>ve,useIconBoxColors:()=>zl,useIconBoxStyleProps:()=>Gl,useIconName:()=>wn,useIconStyleProps:()=>lt,useIsomorphicLayoutEffect:()=>ri,useItemStyleProps:()=>Jl,useLastActiveFocus:()=>Oi,useLinkStyleProps:()=>Gn,useMatrixStyleProps:()=>sc,useModalContext:()=>mc,useModalStyleProps:()=>yc,useNavigationActionProps:()=>zc,useNavigationStyleProps:()=>Mc,useOpenItem:()=>w,usePaginationStyleProps:()=>op,usePartnerLogoStyleProps:()=>Np,usePillStyleProps:()=>$p,usePricingPlanStyleProps:()=>zp,usePropsContext:()=>gr,useRadioStyleProps:()=>nm,useResizeObserver:()=>Ft,useScrollControl:()=>pi,useScrollPosition:()=>Pm,useScrollViewArrows:()=>mm,useScrollViewStyleProps:()=>ym,useSectionSizeProps:()=>wm,useSectionStyleProps:()=>Tm,useSegmentedControl:()=>zm,useSegmentedControlStyleProps:()=>Dm,useSelectStyleProps:()=>Vm,useSkeletonStyleProps:()=>Ym,useSkipLinkStyleProps:()=>my,useSliderStyleProps:()=>vy,useSpacingStyle:()=>rn,useSpinnerStyleProps:()=>hr,useSplitButtonStyleProps:()=>Sy,useStyleProps:()=>oe,useTab:()=>sb,useTabContext:()=>Hy,useTabsStyleProps:()=>Vy,useTagStyleProps:()=>ub,useTextStyleProps:()=>gb,useTimelineStyleProps:()=>Vb,useToast:()=>$g,useToggle:()=>Zp,useToggleStyleProps:()=>Ug,useTooltip:()=>Xg,useTooltipStyleProps:()=>Cf,useTruncateStyleProps:()=>nO,useTruncatedText:()=>eO,useUnstableHeaderStyleProps:()=>e,useWrapClass:()=>an});var e={};s.r(e),s.d(e,{useUnstableHeaderStyleProps:()=>lO});var t=s(932),n=s.t(t,2),r=s.n(t);const o=({defaultOpen:e,stayOpen:n})=>{const[r,o]=(0,t.useState)(e);return{open:r,toggle:e=>{n?Array.isArray(r)?(null==r?void 0:r.includes(e))?o(r.filter((t=>t!==e))):o([...r,e]):o([e]):o(r===e?void 0:e)}}},i="aria-expanded",l="aria-controls",c="aria-labelledby",p=({id:e,isOpen:t})=>{const n=`${e}_Header`,r=`${e}_Content`;return{headerProps:{id:n},triggerProps:{[i]:t,[l]:r},contentProps:{id:r,[c]:n}}},u=(0,t.createContext)(undefined),d=u.Provider,f=u.Consumer,m=u,y=e=>t=>null!=e&&""!==e?`${e}-${t}`:t,b=e=>t=>`${t}--${e}`,g=e=>t=>`${t}--${e}`,O=e=>t=>`${t}--${e}`,h=e=>{const n=(0,t.useContext)(m);let r=e;return e&&n?r=y(n)(e):n&&(r=n),r},v=()=>{const e=h("Accordion");return{classProps:{root:e,item:`${e}__item`,header:`${e}__itemHeader`,toggle:`${e}__itemToggle`,side:`${e}__itemSide`,slot:`${e}__itemSlot`,icon:`${e}__itemIcon`,content:`${e}__content`}}},P={open:void 0,toggle:()=>null},E=(0,t.createContext)(P),x=E.Provider,j=(E.Consumer,()=>(0,t.useContext)(E)),S=E,w=e=>{const{open:t}=j();return{isOpen:(n=e,!(!n||n!==t&&!(null==t?void 0:t.includes(n))))};var n};var T=s(373),C=s.n(T);const A="production",N=(e,t)=>{if("production"!==A){if(e)return;const n=`Warning: ${t}`;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}},_={backgroundGradient:"bg-gradient"},I={borderRadius:"rounded"},R={margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginX:"mx",marginY:"my"},k={padding:"p",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",paddingX:"px",paddingY:"py"},D={isTextBalanced:"text-wrap-pretty",textAlignment:"text",textHyphens:"text-hyphens",textWordBreak:"text-word-break"},L={isTextBalanced:"text-wrap-balance"},$={hideOn:"d",hideFrom:"d"},M={theme:""},B="auto",F="mobile",H=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U=e=>e.replace(/-([a-z])/g,(e=>e[1].toUpperCase())),z=e=>{if("object"==typeof e&&null!==e){const t={};for(const[n,r]of Object.entries(e))t[n]="string"==typeof r?U(r):r;return t}return e},V=e=>"string"==typeof e?U(e):"object"==typeof e&&null!==e?z(e):e,W=e=>null==e,X=e=>"string"==typeof e&&""===e.trim(),G=e=>Array.isArray(e)&&0===e.length,q=e=>"object"==typeof e&&null!==e&&0===Object.keys(e).length,Y=e=>{if("object"==typeof e&&null!==e)for(const t in e)if(Object.hasOwnProperty.call(e,t))return!0;return!1},Q=e=>!!W(e)||(!!X(e)||(!!G(e)||(!!q(e)||(Y(e),!1)))),K="-",Z=e=>(e=>"string"==typeof e&&e.startsWith("space-"))(e)?(e=>e===B?B:e.replace(/[^0-9]/g,""))(e):e,J=(e,t,n,r)=>{switch(e){case"hideOn":return((e,t,n)=>(Array.isArray(t)?t:[t]).map((t=>y(n)(`${e}${K}only${K}${t}${K}none`))))(t,n,r);case"hideFrom":return((e,t,n)=>{const r=t===F?"":`${K}${t}`;return[y(n)(`${e}${r}${K}none`)]})(t,n,r);default:return[]}},ee=(e,t,n,r)=>{if(t===M.theme){if("string"!=typeof n)return[];const e=H(n);return[y(r)(e)]}return e in $?J(e,t,n,r):"boolean"==typeof n?n?[y(r)(t)]:[]:"string"==typeof n?[y(r)(`${t}-${Z(n)}`)]:((e,t,n)=>Object.keys(t).reduce(((r,o)=>{const i=t[o];if("string"==typeof i){const t=Z(i),s=o===F?"":`${K}${o}`;r.push(y(n)(`${e}${s}${K}${t}`))}return r}),[]))(t,n,r)},te=(e,t,n,r={includesKey:!0})=>{const o=(i=e,s=t,Object.keys(i).includes(s));var i,s;return(r.includesKey?o:!o)&&!Q(n)},ne=(e,t="",n={})=>{const r=Object.assign(Object.assign(Object.assign(Object.assign({},R),$),M),n),o=Object.entries(e);return{styleUtilities:o.reduce(((e,[n,o])=>{if(te(r,n,o)){const i=r[n];return[...e,...ee(n,i,o,t)]}return e}),[]),props:o.reduce(((e,[t,n])=>te(r,t,n,{includesKey:!1})?Object.assign(Object.assign({},e),{[t]:n}):e),{})}};var re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function oe(e,n){const r=(0,t.useContext)(m),{UNSAFE_className:o,UNSAFE_style:i}=e,s=re(e,["UNSAFE_className","UNSAFE_style"]),a=Object.assign({theme:M.theme},null!=n?n:{}),{styleUtilities:l,props:c}=ne(s,r,a),p=Object.assign({},i);c.className&&(N(!1,"The className prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.className),c.style&&(N(!1,"The style prop is unsafe and is unsupported in Spirit Web React. Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),delete c.style);return{styleProps:{style:Object.keys(p).length>0?p:void 0,className:C()(o,...l)||void 0},props:c}}function ie(e,t){const n="string"!=typeof e&&!!(null==e?void 0:e.spiritComponent),r=e=>"object"==typeof e&&null!==e,o=Object.values(t).flatMap((e=>"string"==typeof e?[e]:r(e)?[e.className,e.UNSAFE_className].filter(Boolean):[])).filter(Boolean).join(" "),i=Object.values(t).filter(r).reduce(((e,t)=>{if(!r(t))return e;const n=t,o=n.style||n.UNSAFE_style||{},i=(e=>r(e)?Object.entries(e).filter((([e])=>e.startsWith("--"))).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{}):{})(t);return Object.assign(Object.assign(Object.assign({},e),o),i)}),{});return n?{UNSAFE_className:o,UNSAFE_style:i}:{className:o,style:i}}var se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ae=e=>{const{children:t,elementType:n="section",open:o,toggle:i}=e,s=se(e,["children","elementType","open","toggle"]),{classProps:a}=v(),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.root,styleProps:l}),u={open:o,toggle:i};return r().createElement(n,Object.assign({},c,p),r().createElement(x,{value:u},t))};ae.spiritComponent="Accordion";const le=ae,ce=(0,t.createContext)({id:""}),pe=ce.Provider,ue=(ce.Consumer,()=>(0,t.useContext)(ce)),de=ce;var fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const me=e=>{const{children:t,elementType:n="article",id:o}=e,i=fe(e,["children","elementType","id"]),{classProps:s}=v(),{styleProps:a,props:l}=oe(i),c=ie(n,{classProps:s.item,styleProps:a}),p={id:o};return r().createElement(n,Object.assign({},l,{id:o},c),r().createElement(pe,{value:p},t))};me.spiritComponent="AccordionItem";const ye=me,be=(0,t.createContext)(undefined),ge=be.Provider,Oe=be.Consumer,he=be,ve=e=>{const n=(0,t.useContext)(he);return null!=n&&null!=n[e]?n[e]:(N(!1,`The ${e} icon is missing from your assets or icon map provided by the IconsProvider. Please make sure you have provided all icons needed by used components.`),"")};var Pe=s(72);const Ee=Pe.default||Pe;var xe=s(471);const je=xe.default||xe,Se=e=>{if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const t="function"==typeof Ee.default?Ee.default:Ee;return("function"==typeof je.default?je.default:je)(t(e))},we="spirit-",Te={padding:{mobile:"16px",tablet:"32px",desktop:"32px"},xsmall:{maxWidth:"480px"},small:{maxWidth:"640px"},medium:{maxWidth:"768px"},large:{maxWidth:"1024px"},maxWidth:"1280px",xlarge:{maxWidth:"1280px"}},Ce=(Symbol.toStringTag,Symbol.toStringTag,{"01":{backgroundBasic:"var(--spirit-color-accent-01-background-basic)",backgroundSubtle:"var(--spirit-color-accent-01-background-subtle)",borderBasic:"var(--spirit-color-accent-01-border-basic)",borderSubtle:"var(--spirit-color-accent-01-border-subtle)",contentBasic:"var(--spirit-color-accent-01-content-basic)",contentSubtle:"var(--spirit-color-accent-01-content-subtle)",stateActive:"var(--spirit-color-accent-01-state-active)",stateDefault:"var(--spirit-color-accent-01-state-default)",stateHover:"var(--spirit-color-accent-01-state-hover)"},"02":{backgroundBasic:"var(--spirit-color-accent-02-background-basic)",backgroundSubtle:"var(--spirit-color-accent-02-background-subtle)",borderBasic:"var(--spirit-color-accent-02-border-basic)",borderSubtle:"var(--spirit-color-accent-02-border-subtle)",contentBasic:"var(--spirit-color-accent-02-content-basic)",contentSubtle:"var(--spirit-color-accent-02-content-subtle)",stateActive:"var(--spirit-color-accent-02-state-active)",stateDefault:"var(--spirit-color-accent-02-state-default)",stateHover:"var(--spirit-color-accent-02-state-hover)"}}),Ae={button:{plain:{border:"var(--spirit-color-component-button-plain-border)",content:"var(--spirit-color-component-button-plain-content)",stateActive:"var(--spirit-color-component-button-plain-state-active)",stateDefault:"var(--spirit-color-component-button-plain-state-default)",stateHover:"var(--spirit-color-component-button-plain-state-hover)"},primary:{border:"var(--spirit-color-component-button-primary-border)",content:"var(--spirit-color-component-button-primary-content)",stateActive:"var(--spirit-color-component-button-primary-state-active)",stateDefault:"var(--spirit-color-component-button-primary-state-default)",stateHover:"var(--spirit-color-component-button-primary-state-hover)"},secondary:{border:"var(--spirit-color-component-button-secondary-border)",content:"var(--spirit-color-component-button-secondary-content)",stateActive:"var(--spirit-color-component-button-secondary-state-active)",stateDefault:"var(--spirit-color-component-button-secondary-state-default)",stateHover:"var(--spirit-color-component-button-secondary-state-hover)"},tertiary:{border:"var(--spirit-color-component-button-tertiary-border)",content:"var(--spirit-color-component-button-tertiary-content)",stateActive:"var(--spirit-color-component-button-tertiary-state-active)",stateDefault:"var(--spirit-color-component-button-tertiary-state-default)",stateHover:"var(--spirit-color-component-button-tertiary-state-hover)"}},header:{background:"var(--spirit-color-component-header-background)",border:"var(--spirit-color-component-header-border)",itemBackgroundStateActive:"var(--spirit-color-component-header-item-background-state-active)",itemBackgroundStateDefault:"var(--spirit-color-component-header-item-background-state-default)",itemBackgroundStateHover:"var(--spirit-color-component-header-item-background-state-hover)",itemBackgroundStateSelected:"var(--spirit-color-component-header-item-background-state-selected)",itemStateActive:"var(--spirit-color-component-header-item-state-active)",itemStateDefault:"var(--spirit-color-component-header-item-state-default)",itemStateHover:"var(--spirit-color-component-header-item-state-hover)",itemStateSelected:"var(--spirit-color-component-header-item-state-selected)",stripeStateSelected:"var(--spirit-color-component-header-stripe-state-selected)",stripeStateUnselected:"var(--spirit-color-component-header-stripe-state-unselected)"},pagination:{selectedBorder:"var(--spirit-color-component-pagination-selected-border)",selectedContent:"var(--spirit-color-component-pagination-selected-content)",selectedStateActive:"var(--spirit-color-component-pagination-selected-state-active)",selectedStateDefault:"var(--spirit-color-component-pagination-selected-state-default)",selectedStateHover:"var(--spirit-color-component-pagination-selected-state-hover)",unselectedBorder:"var(--spirit-color-component-pagination-unselected-border)",unselectedContent:"var(--spirit-color-component-pagination-unselected-content)",unselectedStateActive:"var(--spirit-color-component-pagination-unselected-state-active)",unselectedStateDefault:"var(--spirit-color-component-pagination-unselected-state-default)",unselectedStateHover:"var(--spirit-color-component-pagination-unselected-state-hover)"},pricingBox:{background:"var(--spirit-color-component-pricing-box-background)",border:"var(--spirit-color-component-pricing-box-border)",content:"var(--spirit-color-component-pricing-box-content)"},toggle:{selectedBorder:"var(--spirit-color-component-toggle-selected-border)",selectedContent:"var(--spirit-color-component-toggle-selected-content)",selectedStateActive:"var(--spirit-color-component-toggle-selected-state-active)",selectedStateDefault:"var(--spirit-color-component-toggle-selected-state-default)",selectedStateHover:"var(--spirit-color-component-toggle-selected-state-hover)",unselectedBorder:"var(--spirit-color-component-toggle-unselected-border)",unselectedContent:"var(--spirit-color-component-toggle-unselected-content)",unselectedStateActive:"var(--spirit-color-component-toggle-unselected-state-active)",unselectedStateDefault:"var(--spirit-color-component-toggle-unselected-state-default)",unselectedStateHover:"var(--spirit-color-component-toggle-unselected-state-hover)"}},Ne={danger:{backgroundBasic:"var(--spirit-color-emotion-danger-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-danger-background-subtle)",borderBasic:"var(--spirit-color-emotion-danger-border-basic)",borderSubtle:"var(--spirit-color-emotion-danger-border-subtle)",contentBasic:"var(--spirit-color-emotion-danger-content-basic)",contentSubtle:"var(--spirit-color-emotion-danger-content-subtle)",stateActive:"var(--spirit-color-emotion-danger-state-active)",stateDefault:"var(--spirit-color-emotion-danger-state-default)",stateHover:"var(--spirit-color-emotion-danger-state-hover)"},informative:{backgroundBasic:"var(--spirit-color-emotion-informative-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-informative-background-subtle)",borderBasic:"var(--spirit-color-emotion-informative-border-basic)",borderSubtle:"var(--spirit-color-emotion-informative-border-subtle)",contentBasic:"var(--spirit-color-emotion-informative-content-basic)",contentSubtle:"var(--spirit-color-emotion-informative-content-subtle)",stateActive:"var(--spirit-color-emotion-informative-state-active)",stateDefault:"var(--spirit-color-emotion-informative-state-default)",stateHover:"var(--spirit-color-emotion-informative-state-hover)"},success:{backgroundBasic:"var(--spirit-color-emotion-success-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-success-background-subtle)",borderBasic:"var(--spirit-color-emotion-success-border-basic)",borderSubtle:"var(--spirit-color-emotion-success-border-subtle)",contentBasic:"var(--spirit-color-emotion-success-content-basic)",contentSubtle:"var(--spirit-color-emotion-success-content-subtle)",stateActive:"var(--spirit-color-emotion-success-state-active)",stateDefault:"var(--spirit-color-emotion-success-state-default)",stateHover:"var(--spirit-color-emotion-success-state-hover)"},warning:{backgroundBasic:"var(--spirit-color-emotion-warning-background-basic)",backgroundSubtle:"var(--spirit-color-emotion-warning-background-subtle)",borderBasic:"var(--spirit-color-emotion-warning-border-basic)",borderSubtle:"var(--spirit-color-emotion-warning-border-subtle)",contentBasic:"var(--spirit-color-emotion-warning-content-basic)",contentSubtle:"var(--spirit-color-emotion-warning-content-subtle)",stateActive:"var(--spirit-color-emotion-warning-state-active)",stateDefault:"var(--spirit-color-emotion-warning-state-default)",stateHover:"var(--spirit-color-emotion-warning-state-hover)"}},_e={primary:"var(--spirit-color-text-primary)",secondary:"var(--spirit-color-text-secondary)",tertiary:"var(--spirit-color-text-tertiary)"};var Ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Re(e){return Object.fromEntries(Object.keys(e).map((e=>[e.toUpperCase(),e])))}const ke={LEFT:"left",CENTER:"center",RIGHT:"right"},De=Object.assign({SPACE_BETWEEN:"space-between",STRETCH:"stretch"},ke),Le={TOP:"top",CENTER:"center",BOTTOM:"bottom"},$e=Object.assign({BASELINE:"baseline",STRETCH:"stretch"},Le),Me={LEFT:"left",CENTER:"center",RIGHT:"right"},Be={BASIC:"basic"},Fe={0:"0",100:"100",200:"200",300:"300",400:"400",500:"500",FULL:"full"},He={SOLID:"solid",DOTTED:"dotted",DASHED:"dashed"},Ue={0:"0",100:"100",200:"200"},ze={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ve=Re(Ae.button),We=Re(Ne),Xe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ge=Re(_e),qe={BASIC:"basic",SUBTLE:"subtle"},Ye={REGULAR:"regular",SEMIBOLD:"semibold",BOLD:"bold",ITALIC:"italic"},Qe={PRIMARY:"primary",SECONDARY:"secondary"},Ke={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},Ze={SMALL:"small",MEDIUM:"medium",LARGE:"large"},Je=Object.assign(Object.assign({XSMALL:"xsmall"},Ze),{XLARGE:"xlarge"}),et=Re(Te),{MAXWIDTH:tt,PADDING:nt}=et,rt=Ie(et,["MAXWIDTH","PADDING"]),ot={SUCCESS:"success",WARNING:"warning",DANGER:"danger"},it={FILL:"fill",OUTLINE:"outline"},st={BOX:"box",PILL:"pill"};var at=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lt=e=>{const{boxSize:t,color:n,name:r}=e,o=at(e,["boxSize","color","name"]),i=`--${we}icon`,s=String(r).includes("-dualtone")&&!n?Ge.PRIMARY:n,a=h("Icon"),l=`${a}--${s}`,c=C()(a,{[l]:n||s}),p=Object.assign({},t?((e,t)=>{const n={};return"object"==typeof t&&Object.entries(t).forEach((([t,r])=>{n[`${e}${"mobile"===t?"":`-${t}`}`]=`${null==r?void 0:r.toString()}px`})),n})(`${i}-size`,t):{});return{classProps:c,iconStyleProps:p,props:o}};var ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pt={ariaHidden:!0,boxSize:24},ut=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},pt),e),{boxSize:o,name:i,title:s,ariaHidden:a}=n,l=ct(n,["boxSize","name","title","ariaHidden"]);let c=ve(i);const p=(e=>{var t;return"object"==typeof e?null!==(t=e.mobile)&&void 0!==t?t:24:null!=e?e:24})(o),{classProps:u,iconStyleProps:d,props:f}=lt(Object.assign({boxSize:o,name:i},l)),{styleProps:m,props:y}=oe(f),b=ie("svg",{classProps:u,iconStyleProps:d,styleProps:m});return s&&(c=`<title>${s}</title>${c}`),r().createElement("svg",Object.assign({},y,b,{viewBox:"0 0 24 24",fill:"none",width:p,height:p,"aria-hidden":a,ref:t}),Se(c))}));ut.spiritComponent="Icon";const dt=ut;var ft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mt=e=>{var{children:t,slot:n}=e,o=ft(e,["children","slot"]);const{classProps:i}=v(),{toggle:s}=j(),{id:a}=ue(),{styleProps:l,props:c}=oe(o),{isOpen:u}=w(a),{triggerProps:d,headerProps:f}=p({id:a,isOpen:u});return r().createElement("h3",Object.assign({},c,l,f,{className:C()(i.header,l.className)}),r().createElement("button",Object.assign({type:"button",className:i.toggle,onClick:()=>{s&&a&&s(a)}},d),t),r().createElement("span",{className:i.side},n&&r().createElement("span",{className:i.slot},n),r().createElement("span",{className:i.icon},r().createElement(dt,{name:"chevron-down"}))))};mt.spiritComponent="AccordionHeader";const yt=mt;function bt(e,t){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bt(e,t)}var gt=s(94),Ot=s.n(gt);const ht=!1,vt=r().createContext(null);var Pt="unmounted",Et="exited",xt="entering",jt="entered",St="exiting",wt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Et,r.appearStatus=xt):o=jt:o=t.unmountOnExit||t.mountOnEnter?Pt:Et,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bt(e,t)}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pt?{status:Et}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xt&&n!==jt&&(t=xt):n!==xt&&n!==jt||(t=St)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ot().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Et&&this.setState({status:Pt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ot().findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||ht?this.safeSetState({status:jt},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:xt},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:jt},(function(){t.props.onEntered(i,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ot().findDOMNode(this);t&&!ht?(this.props.onExit(r),this.safeSetState({status:St},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Et},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Et},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ot().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pt)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(vt.Provider,{value:null},"function"==typeof n?n(e,o):r().cloneElement(r().Children.only(n),o))},t}(r().Component);function Tt(){}wt.contextType=vt,wt.propTypes={},wt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tt,onEntering:Tt,onEntered:Tt,onExit:Tt,onExiting:Tt,onExited:Tt},wt.UNMOUNTED=Pt,wt.EXITED=Et,wt.ENTERING=xt,wt.ENTERED=jt,wt.EXITING=St;const Ct=wt,At=({method:e="component",trigger:n,componentName:r,componentProps:o,propertyProps:i,customText:s})=>{let a,l;const c=`Deprecation warning (${r}):`;(0,t.useEffect)((()=>{const t=n&&r&&!1;switch(e){case"property":a=(null==i?void 0:i.delete)?`${c} "${null==i?void 0:i.deprecatedName}" property will be deleted in the next major version.`:(null==i?void 0:i.deprecatedValue)&&(null==i?void 0:i.newValue)&&(null==i?void 0:i.propertyName)?`${c} The "${null==i?void 0:i.deprecatedValue}" value for "${null==i?void 0:i.propertyName}" property will be renamed to "${null==i?void 0:i.newValue}" in the next major version.`:`${c} "${null==i?void 0:i.deprecatedName}" property will be replaced in the next major version. Please use "${null==i?void 0:i.newName}" instead. ♻️️`,l=!!i;break;case"custom":a=`${c} ${s}`,l=!0;break;default:a=(null==o?void 0:o.delete)?`${c} The component and its subcomponents will be deleted in the next major version.`:`${c} The component and its subcomponents will be renamed to "${null==o?void 0:o.newName}" in the next major version.`,l=!!o}a&&t&&l&&N(!1,a)}),[])};var Nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _t="aria-expanded",It="aria-controls",Rt="data-spirit-breakpoint",kt=e=>{const{isOpen:t,collapsibleToBreakpoint:n}=e,r=Nt(e,["isOpen","collapsibleToBreakpoint"]);return At({method:"custom",trigger:!r.id,componentName:"Collapse",customText:'The "id" property will be required instead of optional starting from the next major version.'}),{ariaProps:{root:{[Rt]:n},trigger:{[_t]:t,[It]:String(r.id)}},props:r}},Dt="is-open",Lt=(e,t,n)=>{const r=h("Collapse"),o=`${r}__content`,i=e?Dt:"";return{classProps:{root:C()(r,i),content:o},styleProps:"span"===t?{}:{height:e?n:0}}},$t="undefined"==typeof window;function Mt(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}const Bt={width:void 0,height:void 0};function Ft(e){const{ref:n,box:r="border-box"}=e,[{width:o,height:i},s]=(0,t.useState)(Bt),a=function(){const e=(0,t.useRef)(!1);return(0,t.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),(0,t.useCallback)((()=>e.current),[])}(),l=(0,t.useRef)(Object.assign({},Bt)),c=(0,t.useRef)(void 0);return c.current=e.onResize,(0,t.useEffect)((()=>{if($t)return;if(!("ResizeObserver"in window))return;if(!n.current)return;const e=new ResizeObserver((([e])=>{const t="border-box"===r?"borderBoxSize":"device-pixel-content-box"===r?"devicePixelContentBoxSize":"contentBoxSize",n=Mt(e,t,"inlineSize"),o=Mt(e,t,"blockSize");if(l.current.width!==n||l.current.height!==o){const e={width:n,height:o};l.current.width=n,l.current.height=o,c.current?c.current(e):a()&&s(e)}}));return e.observe(n.current,{box:r}),()=>{e.disconnect()}}),[r,n,a]),{width:o,height:i}}var Ht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ut=250,zt={entering:"is-transitioning",entered:"",exiting:"is-transitioning",exited:""},Vt={elementType:"div",isOpen:!1,collapsibleToBreakpoint:void 0,transitionDuration:Ut},Wt=e=>{const n=Object.assign(Object.assign({},Vt),e),{elementType:o=Vt.elementType,children:i,transitionDuration:s=Ut}=n,a=Ht(n,["elementType","children","transitionDuration"]),l=(0,t.useRef)(null),c=(0,t.useRef)(null),p=(e=>{const[n,r]=(0,t.useState)(void 0);return Ft({ref:e,onResize:e=>{const t=e.height;r(`${t}px`)}}),n})(c),{classProps:u,styleProps:d}=Lt(a.isOpen,o,p),{ariaProps:f,props:m}=kt(a),{styleProps:y,props:b}=oe(m),g={className:y.className,style:Object.assign(Object.assign({},d),y.style)};return"span"===o&&a.isOpen?i:r().createElement(Ct,{in:a.isOpen,nodeRef:l,timeout:s},(e=>r().createElement(o,Object.assign({},b,f.root,ie(o,{classProps:u.root,styleProps:y,collapseStyleProps:g,transitioningStyles:zt[e]}),{ref:l}),r().createElement(o,{ref:c,className:u.content},i))))};Wt.spiritComponent="Collapse";const Xt=Wt;var Gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qt=e=>{var{children:t}=e,n=Gt(e,["children"]);const{classProps:o}=v(),{id:i}=ue(),{styleProps:s,props:a}=oe(n),{isOpen:l}=w(i),{contentProps:c}=p({id:i,isOpen:l});return r().createElement(Xt,Object.assign({isOpen:l},c),r().createElement("div",Object.assign({},a,s,{className:C()(o.content,s.className)}),t))};qt.spiritComponent="AccordionContent";const Yt=qt;var Qt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Kt=e=>{const{defaultOpen:t,stayOpen:n}=e,i=Qt(e,["defaultOpen","stayOpen"]),{open:s,toggle:a}=o({defaultOpen:t,stayOpen:n});return r().createElement(le,Object.assign({open:s,toggle:a},i))};Kt.spiritComponent="UncontrolledAccordion";const Zt=Kt,Jt={HORIZONTAL:"horizontal",VERTICAL:"vertical"},en=Object.assign(Object.assign({},Jt),{HORIZONTAL_REVERSED:"horizontal-reversed"});var tn;!function(e){e.X="x",e.Y="y"}(tn||(tn={}));const nn=e=>e===Jt.HORIZONTAL;function rn(e,t,n=void 0){const r={},o=n?`-${n}`:"";return"object"==typeof e&&null!==e?Object.keys(e).forEach((n=>{var i;r[`--${t}-spacing${o}${"mobile"===n?"":`-${n}`}`]=`var(--${we}${null===(i=e[n])||void 0===i?void 0:i.toString()})`})):e&&(r[`--${t}-spacing${o}`]=`var(--${we}${e})`),r}const on="--wrap",sn="--noWrap";function an(e,t){return"object"==typeof t&&null!==t?Object.entries(t).map((([t,n])=>`${e}${"mobile"===t?"":`--${t}`}${n?on:sn}`)).join(" "):`${e}${t?on:sn}`}function ln(e){return"string"!=typeof e?e:e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}function cn(e,t,n){return`${e}--${n||""}${n?ln(t):t}`}function pn(e,t,n){return Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,i=t[r];return`${e}${o}--${n||""}${n?ln(i):i}`})).join(" ")}function un(e,t,n){const r=function(e){return e&&"object"==typeof e}(t)?pn:cn;return r(e,t,n)}const dn="stretch";function fn(e,t,n){return un(e,t&&"object"==typeof t?Object.assign({mobile:dn},t):t,n)}var mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function yn(e){const{alignmentX:t,alignmentY:n,direction:r,spacing:o,spacingX:i,spacingY:s,isWrapping:a}=e,l=mn(e,["alignmentX","alignmentY","direction","spacing","spacingX","spacingY","isWrapping"]);At({method:"custom",trigger:"row"===r||"column"===r,componentName:"Flex",customText:"Direction values `row` and `column` are deprecated and will be removed in the next major release. Use `horizontal` and `vertical` values instead."});const c=h("Flex"),p=Object.assign(Object.assign(Object.assign(Object.assign({},rn(o,"flex",tn.X)),rn(o,"flex",tn.Y)),rn(i,"flex",tn.X)),rn(s,"flex",tn.Y)),u=un(c,V(r));return{classProps:C()(c,an(c,a),{[fn(c,t,"alignmentX")]:t,[fn(c,n,"alignmentY")]:n,[u]:r}),props:l,styleProps:p}}var bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gn={alignmentX:De.STRETCH,alignmentY:$e.STRETCH,direction:en.HORIZONTAL,elementType:"div",isWrapping:!1},On=e=>{const t=Object.assign(Object.assign({},gn),e),{elementType:n="div",direction:o,children:i}=t,s=bn(t,["elementType","direction","children"]),{classProps:a,props:l,styleProps:c}=yn(Object.assign({direction:o},s)),{styleProps:p,props:u}=oe(Object.assign({},l)),d=ie(n,{classProps:a,flexStyle:c,styleProps:p,otherProps:u});return r().createElement(n,Object.assign({},u,d),i)};On.spiritComponent="Flex";const hn=On;var vn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pn={alignmentX:{mobile:De.STRETCH,tablet:De.LEFT},direction:{mobile:en.VERTICAL,tablet:en.HORIZONTAL}},En=e=>{const{children:t}=e,n=vn(e,["children"]),o=Object.assign(Object.assign({},Pn),n);return r().createElement(hn,Object.assign({},o),t)};En.spiritComponent="ActionGroup";const xn=En;var jn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Sn(e){const{color:t,isCentered:n}=e,r=jn(e,["color","isCentered"]),o=h("Alert"),i=`${o}--${t}`,s=`${o}--center`;return{classProps:C()(o,{[i]:t,[s]:n}),props:r}}function wn(e,t,n="default"){return e&&t[e]?t[e]:t[n]}var Tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cn={color:"success",isCentered:!1},An=e=>{const t=Object.assign(Object.assign({},Cn),e),{elementType:n="div",children:o,color:i,iconName:s}=t,a=Tn(t,["elementType","children","color","iconName"]),{classProps:l,props:c}=Sn(Object.assign({color:i},a)),{styleProps:p,props:u}=oe(c),d=ie(n,{classProps:l,styleProps:p,otherProps:u}),f=function({color:e,iconName:t}){const n=wn(e,{default:"info",success:"check-plain",informative:"info",warning:"warning",danger:"danger"});return t||n}(Object.assign({color:i,iconName:s},u));return r().createElement(n,Object.assign({},u,d),r().createElement(dt,{name:f}),r().createElement("div",null,o))};An.spiritComponent="Alert";const Nn=An,_n=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e));var In=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rn=(e,t)=>_n(g(t))(e);function kn(e){const{isSquare:t,size:n}=e,r=In(e,["isSquare","size"]),o=h("Avatar"),i=`${o}--square`;return{classProps:C()(o,Rn(o,n),{[i]:t}),props:r}}var Dn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ln={elementType:"div",isSquare:!1,size:Je.MEDIUM},$n=(e,t)=>{const n=Object.assign(Object.assign({},Ln),e),{elementType:o="div",children:i}=n,s=Dn(n,["elementType","children"]),{classProps:a,props:l}=kn(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a,styleProps:c});return r().createElement(o,Object.assign({},p,u,{ref:t}),i)};$n.spiritComponent="Avatar",$n.spiritDefaultElement="div",$n.spiritDefaultProps=null;const Mn=(0,t.forwardRef)($n);var Bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fn=e=>{const t=e||{},{backgroundColor:n,borderColor:r,borderStyle:o,borderWidth:i,textColor:s}=t,a=Bn(t,["backgroundColor","borderColor","borderStyle","borderWidth","textColor"]),l=h(`bg-${n}`),c=h("border-"),p=n?l:"";let u=r?r.replace("",c):"",d="";const f=i?i.replace("",c):"",m=h(s?`text-${s}`:"");i&&parseInt(i,10)>0&&(d=`${c}${o}`,r||(u=`${c}${Be.BASIC}`));return{classProps:C()(p,u,d,f,{[m]:!!s}),props:a}};var Hn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Un={elementType:"div",borderStyle:He.SOLID},zn=e=>{const t=Object.assign(Object.assign({},Un),e),{elementType:n="div",children:o}=t,i=Hn(t,["elementType","children"]),{classProps:s,props:a}=Fn(i),{styleProps:l,props:c}=oe(a,Object.assign(Object.assign(Object.assign({},_),I),k)),p=ie(n,{classProps:s,styleProps:l});return r().createElement(n,Object.assign({},c,p),o)};zn.spiritComponent="Box",zn.spiritDefaultElement="div",zn.spiritDefaultProps=null;const Vn=zn,Wn={ALWAYS:"always",HOVER:"hover",NEVER:"never"};var Xn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Gn(e){const{color:t,hasVisitedStyleAllowed:n,isDisabled:r,underlined:o}=e,i=Xn(e,["color","hasVisitedStyleAllowed","isDisabled","underlined"]),s=h("link"),a=`${s}-${t}`,l=`${s}-disabled`,c=`${s}-underlined`,p=`${s}-not-underlined`,u=`${s}-allow-visited-style`;return{classProps:C()(a,{[l]:r,[c]:o===Wn.ALWAYS,[p]:o===Wn.NEVER,[u]:n}),props:i}}var qn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yn={elementType:"a",color:"primary",hasVisitedStyleAllowed:!1,underlined:"hover"},Qn=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Yn),e),{elementType:o=Yn.elementType,children:i}=n,s=qn(n,["elementType","children"]),{classProps:a,props:l}=Gn(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{href:s.href,ref:t}),i)}));Qn.spiritComponent="Link";const Kn=Qn;var Zn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Jn(e){const{isGoBackOnly:t}=e,n=Zn(e,["isGoBackOnly"]),r=h("Breadcrumbs"),o=h("d-none"),i=h("d-tablet-flex"),s=h("d-tablet-none");return{classProps:{root:r,item:C()({[o]:!t,[i]:!t,[s]:t})},props:n}}var er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tr={iconNameEnd:"chevron-right",iconNameStart:"chevron-left",isCurrent:!1,isGoBackOnly:!1},nr=e=>{const t=Object.assign(Object.assign({},tr),e),{children:n,href:o,isCurrent:i,iconNameStart:s,iconNameEnd:a}=t,l=er(t,["children","href","isCurrent","iconNameStart","iconNameEnd"]),{classProps:c,props:p}=Jn(Object.assign({},l)),{styleProps:u,props:d}=oe(p);return r().createElement("li",Object.assign({},d,u,{className:C()(c.item,u.className)}),l.isGoBackOnly&&s&&r().createElement(dt,{name:s}),!o&&i?n:r().createElement(Kn,{href:o,color:i?"secondary":"primary",underlined:i?"hover":"always","aria-current":i?"page":void 0},n),!i&&!l.isGoBackOnly&&a&&r().createElement(dt,{name:a}))};nr.spiritComponent="BreadcrumbsItem";const rr=nr;var or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ir={elementType:"nav",items:[]},sr=e=>{const n=Object.assign(Object.assign({},ir),e),{children:o,elementType:i="nav",goBackTitle:s,items:a}=n,l=or(n,["children","elementType","goBackTitle","items"]),{classProps:c,props:p}=Jn(Object.assign({},l)),{styleProps:u,props:d}=oe(p),f=ie(i,{classProps:c.root,styleProps:u}),m=(e,t)=>e===t-1;return r().createElement(i,Object.assign({},d,f,{"aria-label":"Breadcrumb"}),r().createElement("ol",null,o||(null==a?void 0:a.map(((e,n)=>r().createElement(t.Fragment,{key:`BreadcrumbsItem_${e.title}`},n===a.length-2&&s&&r().createElement(rr,{href:e.url||void 0,isGoBackOnly:!0},s),r().createElement(rr,{href:e.url||void 0,isCurrent:m(n,null==a?void 0:a.length)},e.title)))))))};sr.spiritComponent="Breadcrumbs";const ar=sr,lr=(e,n)=>(0,t.useCallback)((t=>{e?t.preventDefault():n&&n(t)}),[e,n]),cr=e=>{const{isDisabled:t,isLoading:n,onClick:r,type:o="button"}=e,i=lr(t,r),s={type:o,disabled:t||n};return{buttonProps:Object.assign(Object.assign({},s),{onClick:i})}};var pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ur=(e,t)=>_n(b(t))(e),dr=(e,t)=>_n(g(t))(e);function fr(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:i,size:s}=e,a=pr(e,["color","isBlock","isDisabled","isLoading","isSymmetrical","size"]);At({method:"custom",trigger:!!n,componentName:"Button",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=h("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,d=`${l}--symmetrical`;n&&i&&N(!1,"isBlock and isSymmetrical props are mutually exclusive");return{classProps:C()(l,ur(l,t),dr(l,s),{[c]:n&&!i,[p]:r||o,[u]:o,[d]:i&&!n}),props:a}}const mr=(0,t.createContext)(null),yr=mr.Provider,br=mr.Consumer,gr=(e={})=>{const n=(0,t.useContext)(mr);return n?Object.assign(Object.assign({},e),n):e};var Or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function hr(e){const{color:t}=e,n=Or(e,["color"]),r=h("text"),o=t?`${r}-${t}`:"",i=h("animation-spin-clockwise");return{classProps:C()(o,i),props:n}}const vr=e=>{const{classProps:t,props:n}=hr(e),{styleProps:o,props:i}=oe(n);return r().createElement(dt,Object.assign({},i,{name:"spinner",UNSAFE_className:C()(t,o.className),UNSAFE_style:o.style}))};vr.spiritComponent="Spinner";const Pr=vr;var Er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xr={color:"primary",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium",type:"button",elementType:"button"},jr=(0,t.forwardRef)(((e,t)=>{const n=gr(),o=Object.assign(Object.assign(Object.assign({},xr),e),n),{elementType:i=xr.elementType,children:s}=o,a=Er(o,["elementType","children"]),{buttonProps:l}=cr(a),{classProps:c,props:p}=fr(a),{styleProps:u,props:d}=oe(p),f=ie(i,{classProps:c,styleProps:u,otherProps:d});return r().createElement(i,Object.assign({},d,l,{ref:t},f),s,a.isLoading&&r().createElement(Pr,null))}));jr.spiritComponent="Button";const Sr=jr,wr=e=>{const{elementType:t,isDisabled:n,isLoading:r,onClick:o,href:i,target:s,rel:a}=e,l=lr(n,o),c={role:"button",href:"a"===t&&n?void 0:i,target:"a"===t?s:void 0,disabled:n||r,rel:"a"===t?a:void 0};return{buttonLinkProps:Object.assign(Object.assign({},c),{onClick:l})}};var Tr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cr=(e,t)=>_n(b(t))(e),Ar=(e,t)=>_n(g(t))(e);function Nr(e){const{color:t,isBlock:n,isDisabled:r,isLoading:o,isSymmetrical:i,size:s}=e,a=Tr(e,["color","isBlock","isDisabled","isLoading","isSymmetrical","size"]);At({method:"custom",trigger:!!n,componentName:"ButtonLink",customText:"The `isBlock` property will be deleted in the next major release. Please read component's documentation for more information."});const l=h("Button"),c=`${l}--block`,p=`${l}--disabled`,u=`${l}--loading`,d=`${l}--symmetrical`;n&&i&&N(!1,"isBlock and isSymmetrical props are mutually exclusive");return{classProps:C()(l,Cr(l,t),Ar(l,s),{[c]:n&&!i,[p]:r||o,[u]:o,[d]:i&&!n}),props:a}}var _r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ir={color:"primary",elementType:"a",isBlock:!1,isDisabled:!1,isLoading:!1,isSymmetrical:!1,size:"medium"},Rr=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Ir),e),{elementType:o=Ir.elementType,children:i}=n,s=_r(n,["elementType","children"]),{buttonLinkProps:a}=wr(n),{classProps:l,props:c}=Nr(s),{styleProps:p,props:u}=oe(c),d=ie(o,{classProps:l,styleProps:p,otherProps:u});return r().createElement(o,Object.assign({},u,a,d,{ref:t}),i,s.isLoading&&r().createElement(Pr,null))}));Rr.spiritComponent="ButtonLink";const kr=Rr;function Dr(e){const{artworkAlignmentX:t,direction:n,footerAlignmentX:r,hasFilledHeight:o,isBoxed:i,isExpanded:s,isHeading:a,isSelectable:l,size:c}=e||{},p=h("Card"),u=`${p}Artwork`,d=`${p}Body`,f=`${p}Eyebrow`,m=`${p}Footer`,y=`${p}Link`,b=`${p}Logo`,g=`${p}Media`,O=`${p}Title`,v=`${d}--selectable`,P=un(p,V(n)),E=`${p}--boxed`,x=`${g}__canvas`,j=`${g}--filledHeight`,S=`${g}--expanded`,w=c?`${g}--${c}`:"",T=`${O}--heading`;return{classProps:{artwork:C()(u,{[fn(u,t,"alignmentX")]:t}),body:C()(d,{[v]:l}),eyebrow:f,footer:C()(m,{[fn(m,r,"alignmentX")]:r}),link:y,logo:b,media:C()(g,w,{[S]:s,[j]:o}),mediaCanvas:x,root:C()(p,{[P]:n,[E]:i}),title:C()(O,{[T]:a})}}}var Lr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $r={direction:en.VERTICAL,elementType:"article",isBoxed:!1},Mr=e=>{const t=Object.assign(Object.assign({},$r),e),{elementType:n="article",direction:o,isBoxed:i,children:s}=t,a=Lr(t,["elementType","direction","isBoxed","children"]),{classProps:l}=Dr({direction:o,isBoxed:i}),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:l.root,styleProps:c,otherProps:p});return r().createElement(n,Object.assign({},p,u),s)};Mr.spiritComponent="Card";const Br=Mr;var Fr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hr={alignmentX:ke.LEFT},Ur=e=>{const t=Object.assign(Object.assign({},Hr),e),{children:n,alignmentX:o}=t,i=Fr(t,["children","alignmentX"]),{classProps:s}=Dr({artworkAlignmentX:o}),{styleProps:a,props:l}=oe(i);return r().createElement("div",Object.assign({},l,{className:C()(s.artwork,a.className),style:a.style}),n)};Ur.spiritComponent="CardArtwork";const zr=Ur;var Vr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wr={isSelectable:!1},Xr=e=>{const t=Object.assign(Object.assign({},Wr),e),{children:n,isSelectable:o}=t,i=Vr(t,["children","isSelectable"]),{classProps:s}=Dr({isSelectable:o}),{styleProps:a,props:l}=oe(i);return r().createElement("div",Object.assign({},l,{className:C()(s.body,a.className),style:a.style}),n)};Xr.spiritComponent="CardBody";const Gr=Xr;var qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yr=e=>{const{children:t}=e,n=qr(e,["children"]),{classProps:o}=Dr(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.eyebrow,i.className),style:i.style}),t)};Yr.spiritComponent="CardEyebrow";const Qr=Yr;var Kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zr={alignmentX:ke.LEFT},Jr=e=>{const t=Object.assign(Object.assign({},Zr),e),{children:n,alignmentX:o}=t,i=Kr(t,["children","alignmentX"]),{classProps:s}=Dr({footerAlignmentX:o}),{styleProps:a,props:l}=oe(i);return r().createElement("footer",Object.assign({},l,{className:C()(s.footer,a.className),style:a.style}),n)};Jr.spiritComponent="CardFooter";const eo=Jr;var to=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const no={elementType:"a"},ro=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},no),e),{elementType:o=no.elementType,children:i,href:s}=n,a=to(n,["elementType","children","href"]),{classProps:l}=Dr(),{styleProps:c,props:p}=oe(a),u=ie(o,{classProps:l.link,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,c,u,{href:s,ref:t}),i)}));ro.spiritComponent="CardLink";const oo=ro;var io=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const so=e=>{const{children:t}=e,n=io(e,["children"]),{classProps:o}=Dr(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.logo,i.className),style:Object.assign({},i.style)}),t)};so.spiritComponent="CardLogo";const ao=so,lo={CONTAIN:"contain",COVER:"cover"},co=Object.assign(Object.assign({},Ze),{AUTO:"auto"});var po=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uo={fit:lo.COVER,hasFilledHeight:!1,isExpanded:!1,size:co.AUTO},fo=e=>{const t=Object.assign(Object.assign({},uo),e),{backgroundColor:n,children:o,fit:i,hasFilledHeight:s,isExpanded:a,size:l}=t,c=po(t,["backgroundColor","children","fit","hasFilledHeight","isExpanded","size"]),{classProps:p}=Dr({size:l,isExpanded:a,hasFilledHeight:s}),{classProps:u,styleProps:d}=(e=>{const{backgroundColor:t,fit:n}=e||{},r=h(`bg-${t}`);return{classProps:t?r:"",styleProps:n?{[`--${we}card-media-object-fit`]:n}:{}}})({backgroundColor:n,fit:i}),{styleProps:f,props:m}=oe(c,Object.assign({},_)),y=ie("div",{classProps:C()(p.media,u,f.className),styleProps:Object.assign(Object.assign({},d),f)});return r().createElement("div",Object.assign({},m,y),r().createElement("div",{className:p.mediaCanvas},o))};fo.spiritComponent="CardMedia";const mo=fo;var yo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bo={elementType:"h4",isHeading:!0},go=e=>{const t=Object.assign(Object.assign({},bo),e),{elementType:n="h4",children:o,isHeading:i}=t,s=yo(t,["elementType","children","isHeading"]),{classProps:a}=Dr({isHeading:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.title,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};go.spiritComponent="CardTitle";const Oo=go,ho=e=>(0,t.useMemo)((()=>e.length?{"aria-describedby":e.join(" ")}:{}),[e]),vo=e=>{const[n,r]=(0,t.useState)(e?e.split(" "):[]);return[n,(0,t.useCallback)((({add:e,remove:t})=>{r((n=>{let r=[...n];return t&&(r=r.filter((e=>e!==t))),e&&(r=[...r,e]),r}))}),[])]};var Po=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Eo=e=>{const{elementType:t="label",children:n,htmlFor:o,for:i}=e,s=Po(e,["elementType","children","htmlFor","for"]),{styleProps:a,props:l}=oe(s),c=ie(t,{styleProps:a,otherProps:l});return r().createElement(t,Object.assign({},l,c,{htmlFor:"label"===t?i||o:void 0}),n)};Eo.spiritComponent="Label";const xo=Eo;var jo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const So={elementType:"div",id:void 0,registerAria:void 0},wo=e=>{const n=Object.assign(Object.assign({},So),e),{helperText:o,elementType:i=So.elementType,id:s,registerAria:a}=n,l=jo(n,["helperText","elementType","id","registerAria"]),{styleProps:c,props:p}=oe(l),u=ie(i,{styleProps:c,transferProps:p});return(0,t.useEffect)((()=>(o&&(null==a||a({add:s})),()=>{null==a||a({remove:s})})),[o,s,a]),o?r().createElement(i,Object.assign({},p,u,{id:s}),o):null};wo.spiritComponent="HelperText";const To=wo;var Co=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ao={elementType:"div",id:void 0,registerAria:void 0,role:void 0},No=e=>{const n=Object.assign(Object.assign({},Ao),e),{elementType:o=Ao.elementType,id:i,hasValidationStateIcon:s,registerAria:a,role:l,validationText:c}=n,p=Co(n,["elementType","id","hasValidationStateIcon","registerAria","role","validationText"]),u=function({hasValidationStateIcon:e}){return wn(e,{success:"check-plain",warning:"warning",danger:"danger"})}({hasValidationStateIcon:s}),{styleProps:d,props:f}=oe(p),m=ie(o,{styleProps:d,transferProps:f});if((0,t.useEffect)((()=>(c&&(null==a||a({add:i})),()=>{null==a||a({remove:i})})),[i,a,c]),!c)return null;const y=s?r().createElement("div",null,c):c;return r().createElement(o,Object.assign({},f,m,{id:i,role:l}),s&&r().createElement(dt,{name:u,boxSize:"20"}),Array.isArray(c)?r().createElement("ul",null,c.map((e=>r().createElement("li",{key:`validationText_${e}`},e)))):y)};No.spiritComponent="ValidationText";const _o=No,Io=({validationState:e,validationText:n})=>{const[r,o]=(0,t.useState)(),i=(0,t.useRef)(n),s=(0,t.useRef)(e);return(0,t.useEffect)((()=>{i.current===n&&s.current===e||o("alert"),i.current=n,s.current=e}),[n,e]),r};var Ro=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ko(e){const{validationState:t,isItem:n,isLabelHidden:r}=e,o=Ro(e,["validationState","isItem","isLabelHidden"]),{isDisabled:i,isRequired:s}=o,a=h("Checkbox"),l=`${a}--disabled`,c=`${a}--item`,p=`${a}__input`,u=`${a}__text`,d=`${a}__label`,f=`${a}__label--required`,m=`${a}__label--hidden`,y=`${a}__helperText`,b=`${a}__validationText`,g=`${a}--${t}`;return{classProps:{root:C()(a,{[l]:i,[c]:n,[g]:t}),text:u,label:C()(d,{[f]:s,[m]:r}),input:p,helperText:y,validationText:b},props:Object.assign(Object.assign({},o),{validationState:t})}}var Do=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lo=(0,t.forwardRef)(((e,t)=>{const{classProps:n,props:o}=ko(e),{"aria-describedby":i="",hasValidationIcon:s,helperText:a,id:l,isChecked:c,isDisabled:p,isRequired:u,label:d,validationState:f,validationText:m,value:y}=o,b=Do(o,["aria-describedby","hasValidationIcon","helperText","id","isChecked","isDisabled","isRequired","label","validationState","validationText","value"]),{styleProps:g,props:O}=oe(b),[h,v]=vo(i),P=ho(h),E=Io({validationState:f,validationText:m});return r().createElement("div",{style:g.style,className:C()(n.root,g.className)},r().createElement("input",Object.assign({},O,P,{type:"checkbox",id:l,className:n.input,disabled:p,required:u,checked:c,value:y,ref:t})),r().createElement("div",{className:n.text},r().createElement(xo,{UNSAFE_className:n.label,htmlFor:l},d),r().createElement(To,{UNSAFE_className:n.helperText,id:`${l}__helperText`,registerAria:v,helperText:a}),f&&r().createElement(_o,Object.assign({UNSAFE_className:n.validationText,id:`${l}__validationText`},s&&{hasValidationStateIcon:f},{validationText:m,registerAria:v,role:E}))))}));Lo.spiritComponent="Checkbox";const $o=Lo,Mo=e=>{const[n,r]=(0,t.useState)(e);return{toggleHandler:e=>{e.preventDefault(),r(!n)},toggle:r,isOpen:n}};var Bo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fo={isOpen:!1},Ho=e=>{const t=Object.assign(Object.assign({},Fo),e),{children:n,hideOnCollapse:o,isDisposable:i,renderTrigger:s}=t,a=Bo(t,["children","hideOnCollapse","isDisposable","renderTrigger"]),{isOpen:l,toggleHandler:c}=Mo(a.isOpen),{ariaProps:p}=kt(Object.assign(Object.assign({},a),{isOpen:l})),u=o||i;return r().createElement(r().Fragment,null,!s||u&&u&&l?null:s(Object.assign({isOpen:l,onClick:c},p.trigger)),u&&l?n:r().createElement(Xt,Object.assign({},a,{isOpen:l}),n))};Ho.spiritComponent="UncontrolledCollapse";const Uo=Ho;var zo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Vo(e){const{isFluid:t,size:n}=e,r=zo(e,["isFluid","size"]),o=h("Container"),i=`${o}--fluid`,s=`${o}--${n}`;return{classProps:C()(o,{[i]:t,[s]:!t&&n}),props:r}}var Wo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xo={isFluid:!1,size:Je.XLARGE},Go=e=>{const t=Object.assign(Object.assign({},Xo),e),{children:n}=t,o=Wo(t,["children"]),{classProps:i,props:s}=Vo(o),{styleProps:a,props:l}=oe(s,{textAlignment:D.textAlignment});return r().createElement("div",Object.assign({},l,a,{className:C()(i,a.className)}),n)};Go.spiritComponent="Container";const qo=Go,Yo=e=>{const{isDisabled:t,onClick:n,type:r="button"}=e,o=lr(t,n),i={type:r,disabled:t};return{controlButtonProps:Object.assign(Object.assign({},i),{onClick:o})}};var Qo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ko=(e,t)=>_n(g(t))(e);function Zo(e){const{isDisabled:t,isSubtle:n,isSymmetrical:r,size:o}=e,i=Qo(e,["isDisabled","isSubtle","isSymmetrical","size"]),s=h("ControlButton"),a=`${s}--hasBackground`,l=`${s}--disabled`,c=`${s}--symmetrical`,p=h("dynamic-color-background-interactive"),u=h("dynamic-color-border"),d=h("accessibility-tap-target");return{classProps:C()(s,Ko(s,o),p,d,{[l]:t,[c]:r,[a]:!n,[u]:!n}),props:i}}var Jo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ei={elementType:"button",isDisabled:!1,isSubtle:!1,isSymmetrical:!1,size:Ze.MEDIUM,type:"button"},ti=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},ei),e),{elementType:o=ei.elementType,children:i}=n,s=Jo(n,["elementType","children"]),{controlButtonProps:a}=Yo(s),{classProps:l,props:c}=Zo(s),{styleProps:p,props:u}=oe(c),d=ie(o,{classProps:l,styleProps:p,otherProps:u});return r().createElement(o,Object.assign({},u,a,{ref:t},d),i)}));ti.spiritComponent="ControlButton";const ni=ti,ri=$t?t.useEffect:t.useLayoutEffect,oi=({ref:e,callback:n})=>{const r=(0,t.useRef)({mouseDownTarget:null}),o=(0,t.useCallback)((t=>{const o=r.current;!e||!n||t.defaultPrevented||e.current&&e.current.contains(o.mouseDownTarget)||e.current&&!e.current.contains(null==t?void 0:t.target)&&n&&n(t)}),[e,n]),i=e=>{r.current.mouseDownTarget=e.target};ri((()=>(document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("click",o,{capture:!0}),()=>{document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("click",o,{capture:!0})})),[o])},ii="cancel",si="keydown",ai=(e,n,r=!0,o=!1)=>{const i=(0,t.useCallback)((t=>{e&&n&&(t.defaultPrevented||(t.preventDefault(),n&&r&&n(t)))}),[e,n,r]),s=(0,t.useCallback)((e=>{"Escape"===e.key&&!r&&o&&e.preventDefault()}),[r,o]);return ri((()=>{const t=null==e?void 0:e.current;return t?(t.addEventListener(ii,i),document.addEventListener(si,s),()=>{t.removeEventListener(ii,i),document.removeEventListener(si,s)}):()=>{}}),[e,i]),i},li="is-scrolling-disabled",ci=()=>{const{body:e}=document;e.style.paddingRight="",e.classList.remove(li)},pi=(e,n)=>{(0,t.useEffect)((()=>(n?(()=>{const{body:e}=document,t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`,e.classList.add(li)})():e.current&&!e.current.open&&ci(),()=>{ci()})),[n,e])},ui=(e,n)=>{const r=(0,t.useCallback)((t=>{const r=null==e?void 0:e.current;r&&t.target===r&&!n&&r.open&&r.close&&r.close()}),[n,e]);pi(e,n);const o=(0,t.useCallback)((t=>{const n=null==e?void 0:e.current;(null==n?void 0:n.classList)&&(t?n.classList.add(Dt):n.classList.remove(Dt))}),[e]);(0,t.useEffect)((()=>{const t=null==e?void 0:e.current;t&&(n&&!t.open&&t.showModal?(t.showModal(),o(!0)):!n&&t.open&&o(!1))}),[n,e,o]);return{openDialog:()=>{(null==e?void 0:e.current)&&!e.current.open&&(e.current.showModal(),o(!0))},closeDialog:()=>{const t=null==e?void 0:e.current;t&&t.open&&o(!1)},onTransitionEnd:r}};var di=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fi=(e,n)=>{const{children:o,isOpen:i,onClose:s,closeOnBackdropClick:a=!0,closeOnEscapeKeyDown:l}=e,c=di(e,["children","isOpen","onClose","closeOnBackdropClick","closeOnEscapeKeyDown"]),p=(0,t.useRef)(n),u=(0,t.useRef)(null),{closeDialog:d,onTransitionEnd:f}=ui(p,i);oi({ref:u,callback:i?e=>{a&&e.target===p.current&&(d(),s(e))}:void 0}),ai(p,s,l,i);const m=t.Children.only(o);return r().createElement("dialog",Object.assign({ref:p,onTransitionEnd:f},c),(0,t.cloneElement)(m,{ref:e=>{u.current=e}}))};fi.spiritComponent="Dialog";const mi=(0,t.forwardRef)(fi);function yi(e){return{classProps:h("Divider"),props:e}}const bi=e=>{const{classProps:t,props:n}=yi(e),{styleProps:o,props:i}=oe(n);return r().createElement("hr",Object.assign({},i,o,{className:C()(t,o.className)}))};bi.spiritComponent="Divider";const gi=bi,Oi=e=>{const n=(0,t.useRef)(null);(0,t.useEffect)((()=>{e?n.current=document.activeElement:(null==n?void 0:n.current)&&n.current.focus()}),[e])},hi=ke.RIGHT,vi=(0,t.createContext)({id:"",isOpen:!1,onClose:()=>null}),Pi=vi.Provider,Ei=vi.Consumer,xi=()=>(0,t.useContext)(vi),ji=(e={})=>{const{drawerAlignmentX:t=hi,isOpen:n=!1}=e,r=h("Drawer"),o={left:`${r}--left`,right:`${r}--right`},i=`${r}Panel`,s=`${i}__content`,a=`${r}CloseButton`;return{classProps:{root:C()(r,o[t],{[Dt]:n}),panel:i,content:s,closeButton:a}}};var Si=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wi=e=>{const{children:t,alignmentX:n=hi,isOpen:o,onClose:i,id:s}=e,a=Si(e,["children","alignmentX","isOpen","onClose","id"]),{classProps:l}=ji({drawerAlignmentX:n}),{styleProps:c,props:p}=oe(a),u={id:s,isOpen:o,onClose:i};return Oi(o),r().createElement(Pi,{value:u},r().createElement(mi,Object.assign({},p,c,{id:s,isOpen:o,onClose:i,className:C()(l.root,c.className)}),t))};wi.spiritComponent="Drawer";const Ti=wi;var Ci=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Ai=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ni=e=>{const{children:t,elementType:n="span"}=e,o=Ai(e,["children","elementType"]),{classProps:i,props:s}=function(e){const t=Ci(e,[]);return{classProps:h("accessibility-hidden"),props:t}}(o),{styleProps:a,props:l}=oe(s),c=ie(n,{classProps:i,styleProps:a,otherProps:l});return r().createElement(n,Object.assign({},l,c),t)};Ni.spiritComponent="VisuallyHidden";const _i=Ni;var Ii=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ri={color:Ve.TERTIARY,iconBoxSize:24,label:"Close",size:Ze.MEDIUM},ki=e=>{const t=Object.assign(Object.assign({},Ri),e),{color:n,iconBoxSize:o,label:i,size:s}=t,a=Ii(t,["color","iconBoxSize","label","size"]),{id:l,isOpen:c,onClose:p}=xi(),{classProps:u}=ji(),{styleProps:d,props:f}=oe(a);return r().createElement(Sr,Object.assign({},f,{"aria-expanded":c,"aria-controls":l,onClick:p,color:n,size:s,UNSAFE_className:C()(u.closeButton,d.className),UNSAFE_style:d.style,isSymmetrical:!0}),r().createElement(dt,{name:"close",boxSize:o}),r().createElement(_i,null,i))};ki.spiritComponent="DrawerCloseButton";const Di=ki;var Li=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $i=(0,t.forwardRef)(((e,t)=>{const{elementType:n="div",children:o}=e,i=Li(e,["elementType","children"]),{classProps:s}=ji(i),{styleProps:a,props:l}=oe(i),c=ie(n,{classProps:s.panel,styleProps:a,otherProps:l});return r().createElement(n,Object.assign({},l,c,{ref:t}),r().createElement("div",{className:s.content},o))}));$i.spiritComponent="DrawerPanel";const Mi=$i,Bi="aria-expanded",Fi="aria-controls",Hi="data-spirit-fullwidthmode",Ui="data-spirit-placement";var zi;!function(e){e.off="off",e["mobile-only"]="mobile-only",e.all="all"}(zi||(zi={}));const Vi=e=>{const{fullWidthMode:t,id:n,isOpen:r,placement:o=Ke.BOTTOM_START,toggleHandler:i}=e,s={[Bi]:r,[Fi]:String(n),onClick:i};return{contentProps:{id:n,[Hi]:t,[Ui]:o},triggerProps:s}},Wi={dropdownRef:{current:null},fullWidthMode:zi.off,id:"",isOpen:!1,onToggle:()=>{},placement:Ke.BOTTOM_START,triggerRef:{current:void 0}},Xi=(0,t.createContext)(Wi),Gi=Xi.Provider,qi=(Xi.Consumer,()=>(0,t.useContext)(Xi)),Yi=Xi;var Qi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ki=(e={isOpen:!1})=>{const{alignmentX:t,alignmentY:n,isOpen:r}=e,o=Qi(e,["alignmentX","alignmentY","isOpen"]),i=h("Dropdown"),s=`${i}Popover`,a=r?"is-expanded":"",l=r?Dt:"",c=C()(i,{[fn(i,t,"alignmentX")]:t,[fn(i,n,"alignmentY")]:n}),p=C()(s,l);return{classProps:{root:c,trigger:C()(a),popover:p},props:o}};var Zi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ji=e=>{const{children:n,enableAutoClose:o=!0,fullWidthMode:i,id:s,isOpen:a=!1,onAutoClose:l,onToggle:c,placement:p}=e,u=Zi(e,["children","enableAutoClose","fullWidthMode","id","isOpen","onAutoClose","onToggle","placement"]),{classProps:d,props:f}=Ki(Object.assign({isOpen:a},u)),{styleProps:m,props:y}=oe(f),b=(0,t.useRef)(null),g=(0,t.useRef)();return oi({ref:b,callback:e=>{var t;o&&((null===(t=null==g?void 0:g.current)||void 0===t?void 0:t.contains(null==e?void 0:e.target))||(l&&l(e),c&&a&&c()))}}),r().createElement(Gi,{value:{id:s,isOpen:a,fullWidthMode:i,placement:p,onToggle:c,dropdownRef:b,triggerRef:g}},r().createElement("div",Object.assign({ref:b,className:C()(d.root,m.className),style:m.style},y),n))};Ji.spiritComponent="Dropdown";const es=Ji;var ts=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ns={elementType:"button"},rs=e=>{const t=Object.assign(Object.assign({},ns),e),{elementType:n="button",children:o}=t,i=ts(t,["elementType","children"]),{id:s,isOpen:a,onToggle:l,fullWidthMode:c,triggerRef:p}=qi(),{classProps:u,props:d}=Ki(Object.assign({isOpen:a},i)),{styleProps:f,props:m}=oe(d),y=ie(n,{classProps:u.trigger,triggerStyleProps:f}),{triggerProps:b}=Vi({id:s,isOpen:a,toggleHandler:l,fullWidthMode:c});return r().createElement(n,Object.assign({},m,b,y,{ref:p}),"function"==typeof o?o({isOpen:a}):o)};rs.spiritComponent="DropdownTrigger";const os=rs;var is=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ss=e=>{const{children:t}=e,n=is(e,["children"]),{id:o,isOpen:i,onToggle:s,fullWidthMode:a,placement:l}=qi(),{classProps:c,props:p}=Ki(Object.assign({isOpen:i},n)),{styleProps:u,props:d}=oe(p),{contentProps:f}=Vi({id:o,isOpen:i,toggleHandler:s,placement:l,fullWidthMode:a});return r().createElement("div",Object.assign({className:C()(c.popover,u.className),style:u.style},f,d),t)};ss.spiritComponent="DropdownPopover";const as=ss,ls=({dropdownRef:e,triggerRef:n,enableAutoClose:r,onAutoClose:o})=>{const[i,s]=(0,t.useState)(!1);return oi({ref:e,callback:e=>{var t;r&&((null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.contains(null==e?void 0:e.target))||(o&&o(e),s(!1)))}}),{toggleHandler:e=>{e.preventDefault(),s(!i)},isOpen:i}};var cs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ps=e=>{const{children:n,enableAutoClose:o=!0,fullWidthMode:i,id:s,onAutoClose:a,placement:l}=e,c=cs(e,["children","enableAutoClose","fullWidthMode","id","onAutoClose","placement"]),{classProps:p,props:u}=Ki(c),{styleProps:d,props:f}=oe(u),m=(0,t.useRef)(null),y=(0,t.useRef)(),{isOpen:b,toggleHandler:g}=ls({dropdownRef:m,triggerRef:y,enableAutoClose:o,onAutoClose:a});return r().createElement(Gi,{value:{id:s,isOpen:b,fullWidthMode:i,placement:l,onToggle:g,dropdownRef:m,triggerRef:y}},r().createElement("div",Object.assign({ref:m},d,f,{className:C()(p.root,d.className)}),n))};ps.spiritComponent="UncontrolledDropdown";const us=ps;var ds=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function fs(e){const{hasEndDivider:t,hasIntermediateDividers:n,hasSpacing:r,hasStartDivider:o,spacing:i}=e,s=ds(e,["hasEndDivider","hasIntermediateDividers","hasSpacing","hasStartDivider","spacing"]),a=h("Stack"),l=`${a}--hasEndDivider`,c=`${a}--hasIntermediateDividers`,p=`${a}--hasSpacing`,u=`${a}--hasStartDivider`;return{classProps:{root:C()(a,{[l]:t,[c]:n,[p]:r||i,[u]:o}),item:C()(`${a}Item`)},props:s,styleProps:rn(i,"stack")}}var ms=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ys={elementType:"div",hasSpacing:!1,hasEndDivider:!1,hasIntermediateDividers:!1,hasStartDivider:!1},bs=e=>{const t=Object.assign(Object.assign({},ys),e),{elementType:n=ys.elementType,children:o}=t,i=ms(t,["elementType","children"]),{classProps:s,props:a,styleProps:l}=fs(i),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:s.root,stackStyle:l,styleProps:c,otherProps:p});return r().createElement(n,Object.assign({},p,u),o)};bs.spiritComponent="Stack";const gs=bs;function Os(e){const t=h("EmptyState");return{classProps:{root:t,section:`${t}__section`},props:e}}var hs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vs=e=>{const{children:t}=e,n=hs(e,["children"]),{classProps:o,props:i}=Os(n),{styleProps:s,props:a}=oe(i);return r().createElement(gs,Object.assign({},a,{UNSAFE_className:C()(o.root,s.className),UNSAFE_style:s.style}),t)};vs.spiritComponent="EmptyState";const Ps=vs;var Es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xs=e=>{const{children:t}=e,n=Es(e,["children"]),{classProps:o,props:i}=Os(n),{styleProps:s,props:a}=oe(i);return r().createElement(gs,Object.assign({},a,{UNSAFE_className:C()(o.section,s.className),UNSAFE_style:s.style}),t)};xs.spiritComponent="EmptyStateSection";const js=xs;var Ss=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ws=e=>{const{"aria-describedby":t="",children:n,helperText:o,hasValidationIcon:i,id:s,isDisabled:a,isFluid:l,isLabelHidden:c,isRequired:p,label:u,validationState:d,validationText:f}=e,m=Ss(e,["aria-describedby","children","helperText","hasValidationIcon","id","isDisabled","isFluid","isLabelHidden","isRequired","label","validationState","validationText"]),{classProps:y}=(({isFluid:e,isRequired:t,validationState:n})=>{const r=h("FieldGroup"),o=`${r}--fluid`,i=`${r}--${n}`,s=`${r}__label`,a=`${s}--required`,l=`${r}__fields`,c=`${r}__validationText`,p=`${r}__helperText`;return{classProps:{root:C()(r,{[o]:e,[i]:n}),label:C()(s,{[a]:t}),fields:l,validationText:c,helperText:p}}})({hasValidationIcon:i,isFluid:l,isRequired:p,validationState:d}),{styleProps:b,props:g}=oe(m),[O,v]=vo(t),P=ho(O),E=Io({validationState:d,validationText:f});return r().createElement("fieldset",Object.assign({},g,b,P,{className:C()(y.root,b.className),disabled:a}),r().createElement(_i,{elementType:"legend"},u),!c&&r().createElement("div",{className:y.label,"aria-hidden":"true"},u),r().createElement("div",{className:y.fields},n),r().createElement(To,{UNSAFE_className:y.helperText,id:`${s}__helperText`,registerAria:v,helperText:o}),d&&r().createElement(_o,Object.assign({UNSAFE_className:y.validationText},i&&{hasValidationStateIcon:d},{id:`${s}__helperText`,validationText:f,registerAria:v,role:E})))};ws.spiritComponent="FieldGroup";const Ts=ws,Cs=1e7,As=1,Ns=54,_s=500,Is="The file size limit has been exceeded",Rs="This file already exists in the queue",ks="You have exceeded the number of files allowed in the queue",Ds="This file type is not supported",Ls="file",$s="Remove",Ms="Edit",Bs={TOP:"--file-uploader-attachment-image-top",LEFT:"--file-uploader-attachment-image-left",WIDTH:"--file-uploader-attachment-image-width",HEIGHT:"--file-uploader-attachment-image-height"},Fs={addToQueue:()=>new Map,clearQueue:()=>null,fileQueue:new Map,onDismiss:()=>new Map,findInQueue:()=>null,updateQueue:()=>new Map,errorMessages:{errorFileDuplicity:"",errorFileNotSupported:"",errorMaxFileSize:"",errorMaxUploadedFiles:""}},Hs=(0,t.createContext)(Fs),Us=Hs.Provider,zs=(Hs.Consumer,()=>(0,t.useContext)(Hs)),Vs=e=>{const t=h("FileUploader"),n="has-drag-and-drop",r=`${t}--fluid`,o=`${t}Input`,i=`${o}--disabled`,s=`${o}--${null==e?void 0:e.validationState}`,a="is-dragging",l=`${o}__dragAndDropLabel`,c=`${o}__dropZone`,p=`${c}Label`,u=`${o}__helperText`,d="d-none",f=`${o}__input`,m=`${o}__label`,y=`${o}__label--hidden`,b=`${o}__label--required`,g=`${o}__link`,O=`${o}__validationText`,v=`${t}List`,P=`${t}Attachment`,E=`${P}__name`,x=`${P}__action`,j=`${P}__image`,S=`${P}__slot`,{meta:w,imageObjectFit:T}=e||{};let A,N;const _=null!=w&&["x","y","cropWidth","cropHeight","originalWidth","originalHeight"].every((e=>null!=w[e]));if(_){const{x:e,y:t,cropWidth:n,cropHeight:r,originalWidth:o,originalHeight:i}=w;let s;s=r>n?Ns/n:Ns/r;const a=Math.round(e*s),l=Math.round(t*s),c=Math.round(o*s),p=Math.round(i*s);A={[Bs.TOP]:`-${l}px`,[Bs.LEFT]:`-${a}px`,[Bs.WIDTH]:`${c}px`,[Bs.HEIGHT]:`${p}px`}}return T&&(N={"--file-uploader-attachment-image-object-fit":T}),{classProps:Object.assign(Object.assign({root:C()(t,{[r]:null==e?void 0:e.isFluid}),input:{root:C()(o,{[n]:null==e?void 0:e.isDragAndDropSupported,[i]:(null==e?void 0:e.isDisabled)||(null==e?void 0:e.isDisabledByQueueLimitBehavior)&&"disable"===(null==e?void 0:e.queueLimitBehavior),[a]:null==e?void 0:e.isDragging,[d]:(null==e?void 0:e.isDropZoneHidden)&&"hide"===e.queueLimitBehavior,[s]:null==e?void 0:e.validationState}),label:C()(m,{[b]:null==e?void 0:e.isRequired,[y]:null==e?void 0:e.isLabelHidden}),input:f,dropLabel:l,helper:u,link:C()(g,"link-primary","link-underlined"),validationText:O,dropZone:{root:c,label:p}},list:v,attachment:{root:P,button:x,name:E,image:j,slot:S}},_&&{imageCropStyles:A}),T&&{attachmentStyles:N})}};var Ws=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xs=e=>{const{addToQueue:t,children:n,clearQueue:o,errorMessages:i,fileQueue:s,findInQueue:a,id:l,isFluid:c,onDismiss:p,updateQueue:u}=e,d=Ws(e,["addToQueue","children","clearQueue","errorMessages","fileQueue","findInQueue","id","isFluid","onDismiss","updateQueue"]),{classProps:f}=Vs({isFluid:c}),{styleProps:m,props:y}=oe(d),b={addToQueue:t,clearQueue:o,fileQueue:s,onDismiss:p,findInQueue:a,updateQueue:u,errorMessages:Object.assign({errorFileDuplicity:Rs,errorFileNotSupported:Ds,errorMaxFileSize:Is,errorMaxUploadedFiles:ks},i)};return r().createElement(Us,{value:b},r().createElement("div",Object.assign({id:l},y,m,{className:C()(f.root,m.className)}),n))};Xs.spiritComponent="FileUploader";const Gs=Xs,qs=e=>{const[n,r]=(0,t.useState)(!1);return{isDragging:n,onDragOver:t=>{t.preventDefault(),(null==e?void 0:e.onDragOver)&&e.onDragOver(t)},onDragEnter:t=>{r(!0),(null==e?void 0:e.onDragEnter)&&e.onDragEnter(t)},onDragLeave:t=>{r(!1),(null==e?void 0:e.onDragLeave)&&e.onDragLeave(t)},onDrop:t=>{t.preventDefault(),(null==e?void 0:e.onDrop)&&e.onDrop(t),r(!1)}}},Ys=e=>{const{maxFileSize:n,maxUploadedFiles:r,queueLimitBehavior:o,isMultiple:i,onError:s,accept:a}=e,[l,c]=(0,t.useState)(!1),[p,u]=(0,t.useState)(!1),{fileQueue:d,addToQueue:f,clearQueue:m,errorMessages:y}=zs(),b=e=>`file__${e.replace(/\./g,"_").replace(/\s/g,"_")}`,g=e=>{try{i||m(),(e=>{if(i&&d.has(b(e.name)))throw new Error(`${e.name}: ${null==y?void 0:y.errorFileDuplicity}`)})(e),(e=>{if(e.size>n)throw new Error(`${e.name}: ${null==y?void 0:y.errorMaxFileSize}`)})(e),(e=>{var t;const n=null===(t=e.name.split(".").pop())||void 0===t?void 0:t.toLowerCase(),r=e.type;let o;if(a&&""!==a&&"*"!==a&&"*/*"!==a){const e=a.replace(/ /g,"").split(","),t=e.filter((e=>e.match(/\./g))),i=e.filter((e=>e.match(/\//g)));t.forEach((e=>{const t=e.replace(".","").replace("*","");n.match(t)&&(o=!0)})),i.forEach((e=>{const t=e.replace("*","");r.match(t)&&(o=!0)}))}else o=!0;if(!o)throw new Error(`${e.name}: ${null==y?void 0:y.errorFileNotSupported}`)})(e),(()=>{if(d.size>=r)throw new Error(null==y?void 0:y.errorMaxUploadedFiles)})(),(()=>{if(r>1&&!i)throw new Error("`isMultiple` props must be set when maxUploadedFiles is greater than `1`")})(),f(b(e.name),e)}catch(e){s?s(e):N(!1,e)}};(0,t.useEffect)((()=>{var e;e=d,o&&("hide"===o?u((null==e?void 0:e.size)>=r):c((null==e?void 0:e.size)>=r))}),[d]);const O=qs({onDrop:e=>{const t=Array.from(e.dataTransfer.items),n=Array.from(e.dataTransfer.files);let o,i=0;i+=d.size,e.dataTransfer.items?t.forEach((e=>{if("file"===e.kind){const t=e.getAsFile();t&&i<r?(g(t),i+=1):o=!0}})):n.forEach((e=>{i<r?(g(e),i+=1):o=!0})),o&&s&&(null==y?void 0:y.errorMaxUploadedFiles)&&s(new Error(null==y?void 0:y.errorMaxUploadedFiles))}});return Object.assign({isDropZoneHidden:p,isDisabledByQueueLimitBehavior:l,onChange:e=>{const{files:t}=e.target,n=Array.prototype.slice.call(t);let o,i=0;i+=d.size,n.forEach((e=>{i<r?(g(e),i+=1):o=!0})),o&&s&&(null==y?void 0:y.errorMaxUploadedFiles)&&s(new Error(null==y?void 0:y.errorMaxUploadedFiles)),e.target.blur(),e.target.value=""}},O)};var Qs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ks=e=>{const[n,o]=(0,t.useState)(!1),{accept:i,"aria-describedby":s="",dropZoneRef:a,hasValidationIcon:l,helperText:c,iconName:p="upload",id:u,inputRef:d,isDisabled:f,isLabelHidden:m,isMultiple:y,isRequired:b,label:g,labelText:O,linkText:h,maxFileSize:v=Cs,maxUploadedFiles:P=As,onError:E,queueLimitBehavior:x="none",validationState:j,validationText:S}=e,w=Qs(e,["accept","aria-describedby","dropZoneRef","hasValidationIcon","helperText","iconName","id","inputRef","isDisabled","isLabelHidden","isMultiple","isRequired","label","labelText","linkText","maxFileSize","maxUploadedFiles","onError","queueLimitBehavior","validationState","validationText"]),{isDisabledByQueueLimitBehavior:T,isDragging:A,isDropZoneHidden:N,onChange:_,onDragEnter:I,onDragLeave:R,onDragOver:k,onDrop:D}=Ys({accept:i,isMultiple:y,maxFileSize:v,maxUploadedFiles:P,onError:E,queueLimitBehavior:x}),{classProps:L}=Vs({hasValidationIcon:l,isDisabled:f,isDisabledByQueueLimitBehavior:T,isDragAndDropSupported:n,isDragging:A,isDropZoneHidden:N,isLabelHidden:m,isRequired:b,queueLimitBehavior:x,validationState:j}),{styleProps:$,props:M}=oe(w),[B,F]=vo(s),H=ho(B),U=Io({validationState:j,validationText:S});return(0,t.useEffect)((()=>{o("draggable"in document.createElement("span"))}),[]),r().createElement("div",Object.assign({},M,$,{onDragOver:!f&&n?k:void 0,onDragEnter:!f&&n?I:void 0,onDragLeave:!f&&n?R:void 0,onDrop:!f&&n?D:void 0,className:C()(L.input.root,$.className)}),r().createElement(xo,{htmlFor:u,UNSAFE_className:L.input.label},g),r().createElement("input",Object.assign({},H,{type:"file",accept:i,id:u,ref:d,className:L.input.input,onChange:_,multiple:y,disabled:f||T},w)),r().createElement("div",{ref:a,className:L.input.dropZone.root},r().createElement(dt,{name:p,"aria-hidden":"true"}),r().createElement(xo,{htmlFor:u,UNSAFE_className:L.input.dropZone.label},r().createElement("span",{className:L.input.link},h)," ",r().createElement("span",{className:L.input.dropLabel},O)),r().createElement(To,{UNSAFE_className:L.input.helper,id:`${u}__helperText`,registerAria:F,helperText:c})),j&&r().createElement(_o,Object.assign({UNSAFE_className:L.input.validationText,elementType:"span"},l&&{hasValidationStateIcon:j},{id:`${u}__validationText`,validationText:S,registerAria:F,role:U})))};Ks.spiritComponent="FileUploaderInput";const Zs=Ks;var Js=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ea=e=>{const{label:n,id:o,attachmentComponent:i,inputName:s,hasImagePreview:a}=e,l=Js(e,["label","id","attachmentComponent","inputName","hasImagePreview"]),{classProps:c}=Vs(),{styleProps:p,props:u}=oe(l),{fileQueue:d,onDismiss:f}=zs(),m=(0,t.useMemo)((()=>Array.from(d,(e=>({key:e[0],file:e[1].file,meta:e[1].meta}))).map((({key:e,file:t,meta:n})=>i&&i({id:e,label:t.name,name:s,file:t,meta:n,onDismiss:f,hasImagePreview:a})))),[i,d,s,f,a]);return r().createElement(r().Fragment,null,r().createElement("h3",{id:o,hidden:!0},n),r().createElement("ul",Object.assign({"aria-labelledby":o},u,p,{className:C()(c.list,p.className)}),m))};ea.spiritComponent="FileUploaderList";const ta=ea;var na=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ra=e=>{const{name:t="edit",children:n}=e,o=na(e,["name","children"]),{classProps:i}=Vs(),{styleProps:s,props:a}=oe(o);return r().createElement("button",Object.assign({type:"button"},a,s,{className:C()(i.attachment.button,s.className)}),r().createElement(_i,null,n),r().createElement(dt,{name:t,"aria-hidden":"true"}))};ra.spiritComponent="AttachmentActionButton";const oa=ra;var ia=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sa=e=>{const{children:t}=e,n=ia(e,["children"]),{classProps:o}=Vs(),{styleProps:i,props:s}=oe(n);return r().createElement("button",Object.assign({type:"button"},s,i,{className:C()(o.attachment.button,i.className)}),r().createElement(_i,null,t),r().createElement(dt,{name:"close","aria-hidden":"true"}))};sa.spiritComponent="AttachmentDismissButton";const aa=sa,la={meta:void 0,imageObjectFit:"cover"},ca=e=>{const t=Object.assign(Object.assign({},la),e),{label:n,imagePreview:o,meta:i,imageObjectFit:s}=t,{classProps:a}=Vs({meta:i,imageObjectFit:s}),{imageCropStyles:l,attachmentStyles:c}=a;return r().createElement("span",{className:a.attachment.image},r().createElement("img",{src:o,width:Ns,height:Ns,alt:n,style:Object.assign(Object.assign({},l),c)}))};ca.spiritComponent="AttachmentImagePreview";const pa=ca,ua=(e,t,n)=>{var r;const o=document.createElement("input"),i=new DataTransfer;if(e)return null===(r=i.items)||void 0===r||r.add(e),o.setAttribute("type","file"),o.setAttribute("name",`${t}[]`),o.setAttribute("hidden",""),o.files=i.files,o;n?n("File not found"):N(!1,"File not found")},da=(e,t,n)=>{const r=document.createElement("input");return r.setAttribute("type","text"),r.setAttribute("name",`${t}_meta`),r.setAttribute("value",JSON.stringify(n)),r.setAttribute("hidden",""),r},fa=(e,t,n)=>{const r=new FileReader;r.onload=e=>{const r=new Image;r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d");e.width=t,e.height=r.height/r.width*t,null==o||o.drawImage(r,0,0,e.width,e.height);const i=e.toDataURL("image/jpeg",.8);n(i)},e.target&&e.target.result&&(r.src=e.target.result.toString())},r.readAsDataURL(e)},ma=e=>{const t=atob(e),n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new Uint8Array(n)},ya=({attachmentRef:e,file:t,name:n,meta:r,onError:o})=>{ri((()=>{(r=>{var i,s,a;null===(i=e.current)||void 0===i||i.querySelectorAll("input").forEach((e=>e.remove()));const l=ua(t,n,o);if(l&&(null===(s=e.current)||void 0===s||s.appendChild(l)),r){const o=da(t,n,r);null===(a=e.current)||void 0===a||a.appendChild(o)}})(r)}),[e,t,n,r,o])};var ba=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ga=e=>{const{editText:n,file:o,hasImagePreview:i,iconName:s=Ls,id:a,imageObjectFit:l,label:c,meta:p,name:u,onDismiss:d,onEdit:f,onError:m,removeText:y}=e,b=ba(e,["editText","file","hasImagePreview","iconName","id","imageObjectFit","label","meta","name","onDismiss","onEdit","onError","removeText"]),[g,O]=(0,t.useState)(""),{classProps:v}=Vs(),{styleProps:P,props:E}=oe(b),x=o.type.includes("image"),j=(0,t.useRef)();return x&&fa(o,_s,(e=>O(e))),ya({attachmentRef:j,file:o,name:u,meta:p,onError:m}),r().createElement("li",Object.assign({id:a,ref:j},E,P,{className:C()(v.attachment.root,P.className)}),i&&g?r().createElement(pa,{label:c,imagePreview:g,meta:p,imageObjectFit:l}):r().createElement(dt,{name:s,"aria-hidden":"true"}),r().createElement("span",{className:v.attachment.name},r().createElement("span",{className:h("text-truncate")},c)),f&&r().createElement("span",{className:v.attachment.slot},r().createElement(oa,{onClick:e=>f&&f(e,o)},n||Ms)),r().createElement(aa,{onClick:()=>{d&&d(a)}},y||$s))};ga.spiritComponent="FileUploaderAttachment";const Oa=ga,ha=()=>{const[e,n]=(0,t.useState)(new Map);return{addToQueue:(t,r,o)=>(n((e=>{const n={file:r};return null!=o&&(n.meta=o),new Map(e.set(t,n))})),e),clearQueue:()=>{n((e=>(e.clear(),new Map(e))))},fileQueue:e,findInQueue:t=>e.get(t)||null,onDismiss:t=>(n((e=>{const n=new Map(e);return n.delete(t),n})),e),updateQueue:(t,r,o)=>(n((e=>{const n=new Map(e),i={file:r};return null!=o&&(i.meta=o),n.set(t,i),n})),e)}};var va=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pa=e=>{const{attachmentComponent:n,maxFileSize:o,maxUploadedFiles:i,helperText:s,iconName:a,inputId:l,inputLabel:c,inputName:p,inputProps:u,isLabelHidden:d,isDisabled:f,isFluid:m,queueLimitBehavior:y,isMultiple:b,isRequired:g,labelText:O,linkText:h,listId:v,listProps:P,onInputError:E,onChange:x,errorMessages:j,validationState:S,validationText:w}=e,T=va(e,["attachmentComponent","maxFileSize","maxUploadedFiles","helperText","iconName","inputId","inputLabel","inputName","inputProps","isLabelHidden","isDisabled","isFluid","queueLimitBehavior","isMultiple","isRequired","labelText","linkText","listId","listProps","onInputError","onChange","errorMessages","validationState","validationText"]),{fileQueue:C,addToQueue:A,clearQueue:N,onDismiss:_,findInQueue:I,updateQueue:R}=ha();return(0,t.useEffect)((()=>{x&&x(C)}),[C]),r().createElement(Gs,Object.assign({fileQueue:C,onDismiss:_,addToQueue:A,clearQueue:N,findInQueue:I,updateQueue:R,errorMessages:j,isFluid:m},T),r().createElement(Zs,Object.assign({maxFileSize:o,maxUploadedFiles:i,helperText:s,iconName:a,id:l,isLabelHidden:d,isDisabled:f,queueLimitBehavior:y,isMultiple:b,isRequired:g,label:c,labelText:O,linkText:h,name:p,onError:E,validationState:S,validationText:w},u)),r().createElement(ta,Object.assign({id:v,inputName:p,attachmentComponent:n},P)))};Pa.spiritComponent="UncontrolledFileUploader";const Ea=Pa;var xa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ja={backgroundColor:ze.SECONDARY,paddingBottom:"space-1200",paddingTop:"space-1400"},Sa=e=>{const t=Object.assign(Object.assign({},ja),e),{children:n,backgroundColor:o}=t,i=xa(t,["children","backgroundColor"]),{classProps:s}=(e=>{const{backgroundColor:t}=e,n=h(`bg-${t}`),r=t?n:"";return{classProps:C()({[r]:t})}})({backgroundColor:o}),{styleProps:a,props:l}=oe(i,{paddingBottom:k.paddingBottom,paddingTop:k.paddingTop,textAlignment:D.textAlignment});return r().createElement("footer",Object.assign({},l,a,{className:C()(s,a.className)}),n)};Sa.spiritComponent="Footer";const wa=Sa;var Ta=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ca(e){const{alignmentX:t,alignmentY:n,cols:r,spacing:o,spacingX:i,spacingY:s}=e,a=Ta(e,["alignmentX","alignmentY","cols","spacing","spacingX","spacingY"]),l=h("Grid"),c=Object.assign(Object.assign(Object.assign(Object.assign({},rn(o,"grid",tn.X)),rn(o,"grid",tn.Y)),rn(i,"grid",tn.X)),rn(s,"grid",tn.Y));return{classProps:C()(l,{[fn(l,t,"alignmentX")]:t,[fn(l,n,"alignmentY")]:n,[function(e,t,n){return"object"==typeof t&&null!==t?Object.keys(t).map((r=>{const o="mobile"===r?"":`--${r}`,i=t[r];return`${e}${o}--${n}-${i}`})).join(" "):`${e}--${n}-${t}`}(l,r,"cols")]:r}),props:a,styleProps:c}}var Aa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Na={alignmentX:De.STRETCH,alignmentY:$e.STRETCH,elementType:"div"},_a=e=>{const t=Object.assign(Object.assign({},Na),e),{elementType:n="div",children:o}=t,i=Aa(t,["elementType","children"]),{classProps:s,props:a,styleProps:l}=Ca(i),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:s,styleProps:c,otherProps:p,gridStyle:l});return r().createElement(n,Object.assign({},p,u),o)};_a.spiritComponent="Grid";const Ia=_a,Ra=(e,t,n)=>{e[t]=n};function ka(e){const t=h("GridItem"),n={};return Object.keys(e).filter((e=>e.startsWith("column")||e.startsWith("row"))).forEach((t=>{const r=t.startsWith("column")?"column":"row";var o,i,s;e[t]&&(o=n,i=`grid-item-${r}-${t.replace(r,"").toLowerCase()}`,"object"==typeof(s=e[t])&&null!==s?Object.keys(s).forEach((e=>{var t;Ra(o,`--${i}${"mobile"===e?"":`-${e}`}`,null===(t=s[e])||void 0===t?void 0:t.toString())})):Ra(o,`--${i}`,null==s?void 0:s.toString())),delete e[t]})),{classProps:t,props:e,styleProps:n}}var Da=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const La=e=>{const{elementType:t="div",children:n}=e,o=Da(e,["elementType","children"]),{classProps:i,styleProps:s,props:a}=ka(o),{styleProps:l,props:c}=oe(a),p=ie(t,{classProps:i,styleProps:l,otherProps:c,gridItemStyle:s});return r().createElement(t,Object.assign({},c,p),n)};La.spiritComponent="GridItem";const $a=La,Ma="primary",Ba="primary",Fa="Close",Ha="Menu",Ua=({actionsColor:e=Ba,color:t=Ma,hasActionsAtEnd:n,isCurrentLink:r,isSimple:o}={actionsColor:Ba,color:Ma,hasActionsAtEnd:!1,isCurrentLink:!1,isSimple:!1})=>{const i=h("Header"),s=`${i}--${t}`,a=`${i}--simple`,l=`${i}Nav`,c=`${i}NavItem`,p=`${i}Link`,u=`${p}--current`,d=`${i}DesktopActions`,f=`${d}--end`,m=`${i}MobileActions`,y=`${i}Dialog`,b=`${y}__panel`,g=`${y}__content`,O=`${i}DialogActions`,v=`${O}--${e}`,P=`${i}DialogCloseButton`,E=`${i}DialogLink`,x=`${E}--current`,j=`${i}DialogNav`,S=`${i}DialogNavItem`,w=`${i}DialogText`;return{classProps:{root:C()(i,s,{[a]:o}),headerButton:p,headerDesktopActions:C()(d,{[f]:n}),headerDialog:{root:y,panel:b,content:g},headerDialogActions:C()(O,v),headerDialogButton:E,headerDialogCloseButton:P,headerDialogLink:C()(E,{[x]:r}),headerDialogNav:j,headerDialogNavItem:S,headerDialogText:w,headerLink:C()(p,{[u]:r}),headerMobileActions:m,headerNav:l,headerNavItem:c}}};var za=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Va=e=>{const{children:t,color:n=Ma,isSimple:o}=e,i=za(e,["children","color","isSimple"]),{classProps:s}=Ua({color:n,isSimple:o}),{styleProps:a,props:l}=oe(i);return At({method:"custom",trigger:!0,componentName:"Header",customText:"The component will be removed in the next major version. Component is replaced by the current implementation of UNSTABLE_Header.\n Please see the composition of the UNSTABLE_Header, Drawer and Navigation components."}),r().createElement("header",Object.assign({},l,{className:C()(s.root,a.className),style:a.style}),t)};Va.spiritComponent="Header";const Wa=Va,Xa=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("button",Object.assign({},o,{type:"button",className:C()(t.headerButton,n.className),style:n.style}))};Xa.spiritComponent="HeaderButton";const Ga=Xa;var qa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ya={isAtEnd:!1},Qa=e=>{const t=Object.assign(Object.assign({},Ya),e),{isAtEnd:n}=t,o=qa(t,["isAtEnd"]),{classProps:i}=Ua({hasActionsAtEnd:n}),{styleProps:s,props:a}=oe(o);return r().createElement("nav",Object.assign({},a,{className:C()(i.headerDesktopActions,s.className),style:s.style}))};Qa.spiritComponent="HeaderDesktopActions";const Ka=Qa,Za=(0,t.createContext)({id:"",isOpen:!1,onClose:()=>null}),Ja=Za.Provider,el=Za.Consumer,tl=()=>(0,t.useContext)(Za);var nl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rl=e=>{const{children:t,id:n,isOpen:o,onClose:i}=e,s=nl(e,["children","id","isOpen","onClose"]),{classProps:a}=Ua(),{styleProps:l,props:c}=oe(s),p={id:n,isOpen:o,onClose:i};return Oi(o),r().createElement(Ja,{value:p},r().createElement(mi,Object.assign({},c,{id:n,isOpen:o,onClose:i,className:C()(a.headerDialog.root,l.className),style:l.style}),r().createElement("div",{className:a.headerDialog.panel},r().createElement("div",{className:a.headerDialog.content},t))))};rl.spiritComponent="HeaderDialog";const ol=rl;var il=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sl=e=>{const{color:t=Ba}=e,n=il(e,["color"]),{classProps:o}=Ua({actionsColor:t}),{styleProps:i,props:s}=oe(n);return r().createElement("nav",Object.assign({},s,{className:C()(o.headerDialogActions,i.className),style:i.style}))};sl.spiritComponent="HeaderDialogActions";const al=sl,ll=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("button",Object.assign({},o,{type:"button",className:C()(t.headerDialogButton,n.className),style:n.style}))};ll.spiritComponent="HeaderDialogButton";const cl=ll;var pl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ul=e=>{const{label:t=Fa,onClick:n}=e,o=pl(e,["label","onClick"]),{classProps:i}=Ua(),{styleProps:s,props:a}=oe(o),{id:l,isOpen:c,onClose:p}=tl();return r().createElement("button",Object.assign({},a,{type:"button","aria-expanded":c,"aria-controls":l,onClick:e=>{p(e),n&&n(e)},className:C()(i.headerDialogCloseButton,s.className),style:s.style}),r().createElement(dt,{name:"close"}),r().createElement(_i,null,t))};ul.spiritComponent="HeaderDialogCloseButton";const dl=ul;var fl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ml=(0,t.forwardRef)(((e,t)=>{const{elementType:n="a",children:o,isCurrent:i}=e,s=fl(e,["elementType","children","isCurrent"]),{classProps:a}=Ua({isCurrentLink:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.headerDialogLink,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p,{ref:t}),o)}));ml.spiritComponent="HeaderDialogLink";const yl=ml,bl=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("ul",Object.assign({},o,{className:C()(t.headerDialogNav,n.className),style:n.style}))};bl.spiritComponent="HeaderDialogNav";const gl=bl,Ol=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("li",Object.assign({},o,{className:C()(t.headerDialogNavItem,n.className),style:n.style}))};Ol.spiritComponent="HeaderDialogNavItem";const hl=Ol,vl=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("span",Object.assign({},o,{className:C()(t.headerDialogText,n.className),style:n.style}))};vl.spiritComponent="HeaderDialogText";const Pl=vl;var El=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xl=(0,t.forwardRef)(((e,t)=>{const{elementType:n="a",children:o,isCurrent:i}=e,s=El(e,["elementType","children","isCurrent"]),{classProps:a}=Ua({isCurrentLink:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.headerLink,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p,{ref:t}),o)}));xl.spiritComponent="HeaderLink";const jl=xl;var Sl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wl=e=>{const{children:t,dialogId:n,menuToggleLabel:o=Ha,isOpen:i,onOpen:s}=e,a=Sl(e,["children","dialogId","menuToggleLabel","isOpen","onOpen"]),{classProps:l}=Ua(),{styleProps:c,props:p}=oe(a);return r().createElement("div",Object.assign({},p,{className:C()(l.headerMobileActions,c.className),style:c.style}),t,r().createElement(Sr,{"aria-controls":n,"aria-expanded":i,color:"secondary",onClick:s,isSymmetrical:!0},r().createElement(dt,{name:"hamburger"}),r().createElement(_i,null,o)))};wl.spiritComponent="HeaderMobileActions";const Tl=wl,Cl=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("ul",Object.assign({},o,{className:C()(t.headerNav,n.className),style:n.style}))};Cl.spiritComponent="HeaderNav";const Al=Cl,Nl=e=>{const{classProps:t}=Ua(),{styleProps:n,props:o}=oe(e);return r().createElement("li",Object.assign({},o,{className:C()(t.headerNavItem,n.className),style:n.style}))};Nl.spiritComponent="HeaderNavItem";const _l=Nl;var Il=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Rl(e){const{emphasis:t,size:n,textColor:r}=e,o=Il(e,["emphasis","size","textColor"]),i=h("typography-heading"),s=h(r?`text-${r}`:"");return{classProps:C()(`${i}-${n}-${t}`,{[s]:!!r}),props:o}}var kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Dl={emphasis:Ye.BOLD,size:Je.MEDIUM},Ll=e=>{const t=Object.assign(Object.assign({},Dl),e),{elementType:n,children:o}=t,i=kl(t,["elementType","children"]),{classProps:s,props:a}=Rl(Object.assign({},i)),{styleProps:l,props:c}=oe(a,{isTextBalanced:L.isTextBalanced,textAlignment:D.textAlignment,textHyphens:D.textHyphens,textWordBreak:D.textWordBreak}),p=ie(n,{classProps:s,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};Ll.spiritComponent="Heading";const $l=Ll,Ml={ROUNDED:"rounded",SQUARE:"square",CIRCLE:"circle"},Bl={[Je.XSMALL]:{padding:"space-500",iconSize:16},[Je.SMALL]:{padding:"space-500",iconSize:20},[Je.MEDIUM]:{padding:"space-600",iconSize:24},[Je.LARGE]:{padding:"space-600",iconSize:28},[Je.XLARGE]:{padding:"space-700",iconSize:28}},Fl={[Ml.CIRCLE]:Fe.FULL,[Ml.ROUNDED]:Fe[300],[Ml.SQUARE]:Fe[0]},Hl={ACCENT:"accent",EMOTION:"emotion"},Ul=(e,t,n)=>`${e}-${t}-${n}`,zl=(e,t=!0)=>{const n=t?qe.SUBTLE:qe.BASIC,r=n===qe.BASIC?qe.SUBTLE:qe.BASIC,o=null!=e?e:We.INFORMATIVE,i=(e=>Object.keys(Ne).includes(e)?Hl.EMOTION:Hl.ACCENT)(o);return{colors:{background:Ul(i,o,n),border:Ul(i,o,n),text:Ul(i,o,r)}}};function Vl(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Wl(e,t){return t?Vl(t)?Object.entries(t).map((([t,n])=>void 0===n?"":"mobile"===t?`${e}--${n}`:`${e}--${t}--${n}`)).filter((e=>""!==e)):[`${e}--${t}`]:[]}var Xl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Gl=e=>{const t=e||{},{shape:n=Ml.ROUNDED,size:r=Je.MEDIUM}=t,o=Xl(t,["shape","size"]),i=Fl[n],s={padding:`calc(var(--${we}local-padding) - var(--${we}local-border-width, 0px)) !important`};let a;if(Vl(r)){const e={},t={};Object.entries(r).forEach((([n,r])=>{const o=Bl[r];e[n]=o.padding,t[n]=o.iconSize})),a={padding:e,iconSize:t}}else a=Bl[r];return{iconBoxStyles:s,props:o,shapesProps:i,sizeProps:a}};var ql=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yl={shape:Ml.ROUNDED,color:We.INFORMATIVE,elementType:"div",hasBorder:!0,isSubtle:!0,size:Je.MEDIUM},Ql=e=>{const t=Object.assign(Object.assign({},Yl),e),{elementType:n,shape:o,color:i,iconName:s,isSubtle:a,hasBorder:l,size:c}=t,p=ql(t,["elementType","shape","color","iconName","isSubtle","hasBorder","size"]),{colors:u}=zl(i,a),{iconBoxStyles:d,props:f,shapesProps:m,sizeProps:{padding:y,iconSize:b}}=Gl(Object.assign({size:c,shape:o},p)),{styleProps:g,props:O}=oe(f);return r().createElement(Vn,Object.assign({},O,{backgroundColor:u.background,elementType:n,borderColor:l?u.border:void 0,borderRadius:m,borderWidth:l?Ue[100]:void 0,padding:y,textColor:u.text,UNSAFE_className:C()(g.className,"d-inline-flex"),UNSAFE_style:Object.assign(Object.assign({},g.style),d)}),r().createElement(dt,{"aria-hidden":"true",boxSize:b,name:s}))};Ql.spiritComponent="IconBox";const Kl=Ql;var Zl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Jl(e){const{isDisabled:t,isSelected:n}=e,r=Zl(e,["isDisabled","isSelected"]),o=h("Item"),i=`${o}--disabled`,s=`${o}--selected`,a=`${o}__icon`;return{classProps:{helperText:`${o}__helperText`,icon:{root:a,start:`${a}--start`,end:`${a}--end`},label:`${o}__label`,root:C()(o,{[i]:t,[s]:n})},props:r}}var ec=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tc=e=>{const{label:t,elementType:n="button",iconName:o,helperText:i,isSelected:s,isDisabled:a}=e,l=ec(e,["label","elementType","iconName","helperText","isSelected","isDisabled"]),{classProps:c,props:p}=Jl(Object.assign({isSelected:s,isDisabled:a},l)),{styleProps:u,props:d}=oe(p),f=ie(n,{classProps:c.root,styleProps:u,otherProps:d});return r().createElement(n,Object.assign({},d,f,{disabled:!!a&&"button"===n}),o&&r().createElement("span",{className:C()(c.icon.root,c.icon.start)},r().createElement(dt,{name:o})),r().createElement("span",{className:c.label},t),r().createElement(To,{UNSAFE_className:c.helperText,elementType:"span",helperText:i}),s&&r().createElement("span",{className:C()(c.icon.root,c.icon.end)},r().createElement(dt,{name:"check-plain"})))};tc.spiritComponent="Item";const nc=tc,rc=(e,t)=>{const n={},r=`--${t}`;return"object"==typeof e&&null!==e?Object.keys(e).forEach((t=>{const o="mobile"===t?"":`-${t}`,i=e[t];n[`${r}${o}`]=`${null==i?void 0:i.toString()}`})):e&&(n[`${r}`]=`${null==e?void 0:e.toString()}`),n};var oc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ic=(e,t,n,r)=>{const o={},i=`--${r}`;return"object"==typeof e&&100===t&&n>0&&Object.keys(e).forEach((e=>{const t="mobile"===e?"":`-${e}`;o[`${i}-items-count`]=`${n}`,o[`${i}-rows${t}`]=`calc(var(${i}-item-rows) * var(${i}-items-count) / var(${i}-columns${t}))`})),o};function sc(e){const{cols:t,itemsCount:n,itemRows:r,rows:o,spacing:i,spacingX:s,spacingY:a}=e,l=oc(e,["cols","itemsCount","itemRows","rows","spacing","spacingX","spacingY"]),c=h("Matrix"),p=`${we}matrix`,u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc(t,`${p}-columns`)),rc(o,`${p}-rows`)),rc(r,`${p}-item-rows`)),ic(t,o,n,p)),rn(i,p,tn.X)),rn(i,p,tn.Y)),rn(s,p,tn.X)),rn(a,p,tn.Y));return{classProps:C()(c),props:l,styleProps:u}}var ac=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lc={cols:3,elementType:"div",itemRows:100,rows:100,spacingX:"space-700",spacingY:"space-0"},cc=e=>{const t=Object.assign(Object.assign({},lc),e),{elementType:n="div",children:o}=t,i=ac(t,["elementType","children"]),s=r().Children.count(o),{classProps:a,props:l,styleProps:c}=sc(Object.assign(Object.assign({},i),{itemsCount:s})),{styleProps:p,props:u}=oe(l),d=ie(n,{classProps:a,styleProps:p,otherProps:u,matrixStyleProps:c});return r().createElement(n,Object.assign({},u,d),o)};cc.spiritComponent="Matrix";const pc=cc,uc=(0,t.createContext)({id:"",isOpen:!1,onClose:()=>null}),dc=uc.Provider,fc=uc.Consumer,mc=()=>(0,t.useContext)(uc);function yc({footerAlignment:e=ke.RIGHT,isDockedOnMobile:t=!1,isExpandedOnMobile:n=!1,isOpen:r=!1,isScrollable:o=!1,modalAlignment:i=Le.CENTER}={}){const s=h("Modal"),a={top:`${s}--top`,center:`${s}--center`,bottom:`${s}--bottom`},l=`${s}Dialog`,c=`${l}--dockOnMobile`,p=`${l}--expandOnMobile`,u=`${l}--scrollable`,d=`${s}Header`,f=`${d}__title`,m=`${s}Body`,y=`${s}Footer`,b=`${y}__description`,g=`${y}__actions`,O={left:`${y}--left`,center:`${y}--center`,right:`${y}--right`};return{classProps:{root:C()(s,{[a[i]]:i,[Dt]:r}),dialog:C()(l,{[c]:t,[p]:n,[u]:o}),title:f,header:d,body:m,footer:{root:C()(y,{[O[e]]:e}),description:b,actions:g}}}}var bc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gc=e=>{const{children:t,alignmentY:n=Le.CENTER,isOpen:o,onClose:i,id:s}=e,a=bc(e,["children","alignmentY","isOpen","onClose","id"]),{classProps:l}=yc({isOpen:o,modalAlignment:n}),{styleProps:c,props:p}=oe(a),u={id:s,isOpen:o,onClose:i};return Oi(o),r().createElement(dc,{value:u},r().createElement(mi,Object.assign({},p,c,{id:s,isOpen:o,onClose:i,className:C()(l.root,c.className),"aria-labelledby":`${s}__title`}),t))};gc.spiritComponent="Modal";const Oc=gc;var hc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vc=e=>{var{children:t}=e,n=hc(e,["children"]);const{classProps:o}=yc(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,i,{className:C()(o.body,i.className)}),t)};vc.spiritComponent="ModalBody";const Pc=vc;var Ec=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xc=e=>{var{label:t="Close",onClose:n,id:o,isOpen:i}=e,s=Ec(e,["label","onClose","id","isOpen"]);return r().createElement(Sr,Object.assign({},s,{isSymmetrical:!0,color:"tertiary",onClick:n,"aria-expanded":i,"aria-controls":o}),r().createElement(dt,{name:"close"}),r().createElement(_i,null,t))};xc.spiritComponent="ModalCloseButton";const jc=xc;var Sc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wc=(e,t)=>{if(!t)return{};if("object"==typeof t)return Object.keys(t).reduce(((n,r)=>{var o;return n[`--${e}${"mobile"===r?"":`-${r}`}`]=null===(o=t[r])||void 0===o?void 0:o.toString(),n}),{});const n=`--${e}`;return{[n]:null==t?void 0:t.toString()}};var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cc=(e,t)=>{const{elementType:n="article",children:o,isDockedOnMobile:i,isExpandedOnMobile:s,isScrollable:a}=e,l=Tc(e,["elementType","children","isDockedOnMobile","isExpandedOnMobile","isScrollable"]),{classProps:c}=yc({isDockedOnMobile:i,isExpandedOnMobile:s,isScrollable:a}),{modalDialogStyleProps:p,props:u}=(e=>{const{height:t,maxHeight:n}=e,r=Sc(e,["height","maxHeight"]);return{modalDialogStyleProps:Object.assign(Object.assign({},wc("modal-dialog-height",t)),wc("modal-dialog-max-height",n)),props:r}})(l),{styleProps:d,props:f}=oe(u),m=ie(n,{classProps:c.dialog,modalDialogStyleProps:p,styleProps:d,otherProps:f});return r().createElement(n,Object.assign({},f,m,{ref:t}),o)};Cc.spiritComponent="ModalDialog";const Ac=(0,t.forwardRef)(Cc);var Nc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _c=e=>{const{children:t,alignmentX:n=ke.RIGHT,description:o}=e,i=Nc(e,["children","alignmentX","description"]),{classProps:s}=yc({footerAlignment:n}),{styleProps:a,props:l}=oe(i);return r().createElement("footer",Object.assign({},l,a,{className:C()(s.footer.root,a.className)}),o&&r().createElement("div",{className:s.footer.description},o),r().createElement("div",{className:s.footer.actions},t))};_c.spiritComponent="ModalFooter";const Ic=_c;var Rc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kc={hasCloseButton:!0},Dc=e=>{const t=Object.assign(Object.assign({},kc),e),{children:n,closeLabel:o,hasCloseButton:i}=t,s=Rc(t,["children","closeLabel","hasCloseButton"]),{classProps:a}=yc(),{styleProps:l,props:c}=oe(s),{id:p,isOpen:u,onClose:d}=mc();return r().createElement("header",Object.assign({},c,l,{className:C()(a.header,l.className)}),n&&r().createElement("h2",{id:`${p}__title`,className:a.title},n),i&&r().createElement(jc,{id:p,isOpen:u,label:o,onClose:d}))};Dc.spiritComponent="ModalHeader";const Lc=Dc;var $c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Mc=e=>{var{isDisabled:t=!1,isSelected:n=!1,isSquare:r=!1,alignmentY:o=$e.CENTER,direction:i=Jt.HORIZONTAL,variant:s=st.BOX}=e,a=$c(e,["isDisabled","isSelected","isSquare","alignmentY","direction","variant"]);const l=h("Navigation"),c=`${l}Action`,p=`${l}Avatar`,u=`${l}Item`,d=`${l}--${i}`,f=`${c}--disabled`,m=`${c}--selected`,y=`${c}--${s}`,b=`${p}--square`,g=C()(u,{[fn(u,o,"alignmentY")]:o});return{classProps:{root:C()(l,d),action:C()(c,y,{[f]:t,[m]:n}),avatar:C()(p,{[b]:r}),item:g},props:a}};var Bc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fc={direction:Jt.HORIZONTAL},Hc=e=>{const t=Object.assign(Object.assign({},Fc),e),{children:n}=t,o=Bc(t,["children"]),{classProps:i,props:s}=Mc(o),{styleProps:a,props:l}=oe(s);return r().createElement("nav",Object.assign({},l,{className:C()(i.root,a.className),style:a.style}),r().createElement("ul",null,n))};Hc.spiritComponent="Navigation";const Uc=Hc,zc=e=>{const{isDisabled:t,href:n,target:r,rel:o}=e;return{navigationActionProps:{href:t?void 0:n,target:t?void 0:r,rel:t?void 0:o}}};var Vc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wc={elementType:"a",variant:st.BOX},Xc=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Wc),e),{elementType:o=Wc.elementType,children:i}=n,s=Vc(n,["elementType","children"]),a=n.isDisabled?"span":o,{navigationActionProps:l}=zc(n),{classProps:c,props:p}=Mc(s),{styleProps:u,props:d}=oe(p),f=ie(a,{classProps:c.action,styleProps:u,otherProps:d});return r().createElement(a,Object.assign({},d,l,f,{ref:t}),i)}));Xc.spiritComponent="NavigationAction";const Gc=Xc;var qc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yc={elementType:"a",isSquare:!1},Qc=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Yc),e),{elementType:o=Yc.elementType,avatarContent:i,isSquare:s,children:a}=n,l=qc(n,["elementType","avatarContent","isSquare","children"]),{classProps:c,props:p}=Mc(Object.assign({isSquare:s},l)),{styleProps:u,props:d}=oe(p),f=ie(o,{classProps:c.avatar,styleProps:u,otherProps:d});return r().createElement(o,Object.assign({},d,f,{href:l.href,ref:t}),r().createElement(Mn,{size:Ze.SMALL,isSquare:s},i),a)}));Qc.spiritComponent="NavigationAvatar";const Kc=Qc;var Zc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jc={alignmentY:$e.CENTER},ep=e=>{const t=Object.assign(Object.assign({},Jc),e),{children:n}=t,o=Zc(t,["children"]),{classProps:i,props:s}=Mc(o),{styleProps:a,props:l}=oe(s);return r().createElement("li",Object.assign({},l,{className:C()(i.item,a.className),style:a.style}),n)};ep.spiritComponent="NavigationItem";const tp=ep,np=({children:e})=>{const[n,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{r(!0)}),[]),n?e:null};np.spiritComponent="NoSsr";const rp=np,op=e=>{const t=h("Pagination"),n=`${t}__link`,r=`${n}--current`;return{classProps:{root:t,item:`${t}__item`,link:C()(n,{[r]:null==e?void 0:e.isCurrent})}}};var ip=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sp=e=>{const{children:t,listProps:n={}}=e,o=ip(e,["children","listProps"]),{classProps:i}=op(),{styleProps:s,props:a}=oe(o),{styleProps:l,props:c}=oe(n);return r().createElement("nav",Object.assign({},a,s),r().createElement("ul",Object.assign({},l,c,{className:C()(i.root,l.className)}),t))};sp.spiritComponent="Pagination";const ap=sp;var lp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cp=(0,t.forwardRef)(((e,t)=>{const n=e,{direction:o,accessibilityLabel:i}=n,s=lp(n,["direction","accessibilityLabel"]);return r().createElement(kr,Object.assign({color:"secondary",isSymmetrical:!0},s,{ref:t}),r().createElement(dt,{name:{previous:"chevron-left",next:"chevron-right"}[o]}),r().createElement(_i,null,i))}));cp.spiritComponent="PaginationButtonLink";const pp=cp;var up=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dp=e=>{const{children:t}=e,n=up(e,["children"]),{classProps:o}=op(),{styleProps:i,props:s}=oe(n);return r().createElement("li",Object.assign({},s,i,{className:C()(o.item,i.className)}),t)};dp.spiritComponent="PaginationItem";const fp=dp;var mp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yp=(0,t.forwardRef)(((e,t)=>{const{elementType:n="a",accessibilityLabel:o,isCurrent:i,pageNumber:s}=e,a=mp(e,["elementType","accessibilityLabel","isCurrent","pageNumber"]),{classProps:l}=op({isCurrent:i}),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:l.link,styleProps:c,otherProps:p});return r().createElement(n,Object.assign({},p,u,{ref:t}),r().createElement(_i,null,o),r().createElement("span",{"aria-hidden":"true"},s))}));yp.spiritComponent="PaginationLink";const bp=yp,gp="Previous",Op="Next";var hp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vp=(0,t.forwardRef)(((e,t)=>{var{accessibilityLabel:n=Op}=e,o=hp(e,["accessibilityLabel"]);return r().createElement(pp,Object.assign({direction:"next",accessibilityLabel:n},o,{ref:t}))}));vp.spiritComponent="PaginationLinkNext";const Pp=vp;var Ep=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xp=(0,t.forwardRef)(((e,t)=>{var{accessibilityLabel:n=gp}=e,o=Ep(e,["accessibilityLabel"]);return r().createElement(pp,Object.assign({direction:"previous",accessibilityLabel:n},o,{ref:t}))}));xp.spiritComponent="PaginationLinkPrevious";const jp=xp,Sp=({totalPages:e,onChange:n,defaultPage:r,visiblePages:o})=>{const[i,s]=(0,t.useState)(r<=0||r>e?1:null!=r?r:1),[a,l]=(0,t.useState)([o]);(0,t.useMemo)((()=>{const t=o>e?e:o,n=e-i<t?e-(t-1):i;l(Array.from(Array(t),((e,t)=>t+n)))}),[o,i,e]);const c=(0,t.useCallback)((e=>{s(e),n&&n(e)}),[n]);return(0,t.useMemo)((()=>{l((()=>{const t=Math.floor(o/2);let n=Math.max(1,i-t);const r=Math.min(n+o-1,e);if(e-o<n-1){const t=e-o+1;n=t<1?1:t}return Array.from({length:r-n+1},((e,t)=>n+t))})())}),[]),{totalPages:e,currentPage:i,pages:a,handlePageChange:c}};var wp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tp=e=>{const{accessibilityLabel:t,accessibilityLabelPrevious:n="Previous",accessibilityLabelNext:o="Next",defaultPage:i=1,onChange:s,totalPages:a=0,visiblePages:l=5}=e,c=wp(e,["accessibilityLabel","accessibilityLabelPrevious","accessibilityLabelNext","defaultPage","onChange","totalPages","visiblePages"]),{currentPage:p,pages:u,handlePageChange:d}=Sp({defaultPage:i,onChange:s,totalPages:a,visiblePages:l});return r().createElement(ap,Object.assign({},c),1!==p&&r().createElement(jp,{accessibilityLabel:n,onClick:e=>{e.preventDefault(),d(p-1)}}),null==u?void 0:u.map((e=>r().createElement(fp,{key:e},r().createElement(bp,{accessibilityLabel:`${t} ${e}`,href:"#",isCurrent:p===e,pageNumber:e,onClick:t=>{t.preventDefault(),d(e)}})))),p!==a&&r().createElement(Pp,{accessibilityLabel:o,onClick:e=>{e.preventDefault(),d(p+1)}}))};Tp.spiritComponent="UncontrolledPagination";const Cp=Tp;var Ap=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Np=e=>{const{hasSafeArea:t,isFluid:n,size:r}=e,o=Ap(e,["hasSafeArea","isFluid","size"]),i=h("PartnerLogo"),s=`${i}--fluid`,a=`${i}--safeArea`,l=Wl(i,r);return{classProps:C()(i,{[s]:n,[a]:t},l),props:o}};var _p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ip={hasSafeArea:!0,isFluid:!1,size:Ze.MEDIUM},Rp=e=>{const t=Object.assign(Object.assign({},Ip),e),{children:n}=t,o=_p(t,["children"]),{classProps:i,props:s}=Np(o),{styleProps:a,props:l}=oe(s);return r().createElement("div",Object.assign({},l,{className:C()(i,a.className),style:a.style}),n)};Rp.spiritComponent="PartnerLogo";const kp=Rp,Dp={SELECTED:"selected",NEUTRAL:"neutral"};var Lp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function $p(e){const{color:t}=e,n=Lp(e,["color"]),r=h("Pill"),o=`${r}--${t}`;return{classProps:C()(r,{[o]:t}),props:n}}var Mp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bp={color:Dp.SELECTED,elementType:"span"},Fp=e=>{const t=Object.assign(Object.assign({},Bp),e),{elementType:n="span",children:o}=t,i=Mp(t,["elementType","children"]),{classProps:s,props:a}=$p(i),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:s,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};Fp.spiritComponent="Pill";const Hp=Fp;var Up=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zp=e=>{const{hasComparableFeatures:t,isHighlighted:n,action:r,badge:o,title:i,subtitle:s,note:a,price:l,rows:c}=e,p=Up(e,["hasComparableFeatures","isHighlighted","action","badge","title","subtitle","note","price","rows"]),u=h("PricingPlan"),d=`${u}--comparableFeatures`,f=`${u}__layout`,m=`${u}--highlighted`,y=h("PricingPlanHeader"),b=`${y}__badge`,g=`${y}__title`,O=`${y}__subtitle`,v=`${y}__price`,P=`${y}__action`,E=`${y}__note`,x=`${y}__content`,j=h("PricingPlanBody"),S=`${j}__featureList`,w=`${j}__featureItem`,T=`${j}__featureTitle`,A=`${j}__featureTitleText`,N=`${j}__featureDescription`,_=h("PricingPlanFooter"),I=C()(u,{[d]:t,[m]:n}),R={};return 100!==c&&(R[`--${we}pricing-plan-rows`]=null==c?void 0:c.toString()),{classProps:{root:I,layout:f,header:{root:y,badge:o?b:void 0,content:x,title:i?g:void 0,subtitle:s?O:void 0,price:l?v:void 0,action:r?P:void 0,note:a?E:void 0},body:{root:j,featureList:S,featureItem:w,featureTitle:T,featureTitleText:A,featureDescription:N},footer:_},props:p,styleProps:R}};var Vp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wp={hasComparableFeatures:!1,isHighlighted:!1,rows:100},Xp=e=>{const t=Object.assign(Object.assign({},Wp),e),{elementType:n="article",children:o}=t,i=Vp(t,["elementType","children"]),{classProps:s,props:a,styleProps:l}=zp(i),{styleProps:c,props:p}=oe(a),u=ie(n,{classProps:s.root,pricingPlanStyleProps:l,styleProps:c});return r().createElement(n,Object.assign({},p,u),r().createElement("div",{className:C()(s.layout)},o))};Xp.spiritComponent="PricingPlan";const Gp=Xp;var qp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yp={action:void 0,badge:void 0,note:void 0,price:void 0,subtitle:void 0,title:void 0},Qp=e=>{const t=Object.assign(Object.assign({},Yp),e),{elementType:n="header"}=t,o=qp(t,["elementType"]),{classProps:i,props:s}=zp(o),{badge:a,title:l,subtitle:c,price:p,action:u,note:d}=t,{styleProps:f,props:m}=oe(s),y=ie(n,{classProps:i.header.root,styleProps:f});return r().createElement(n,Object.assign({},m,y),a&&r().createElement("div",{className:i.header.badge},a),r().createElement("div",{className:i.header.content},l&&r().createElement("h3",{className:i.header.title},l),c&&r().createElement("div",{className:C()(i.header.subtitle)},c),p&&r().createElement("div",{className:i.header.price},p),u&&r().createElement("div",{className:i.header.action},u),d&&r().createElement("div",{className:i.header.note},d)))};Qp.spiritComponent="PricingPlanHeader";const Kp=Qp,Zp=(e=!1)=>{const[n,r]=(0,t.useState)(e);return[n,(0,t.useCallback)((()=>r((e=>!e))),[])]},Jp={anchorRef:()=>{},arrowRef:{current:null},getReferenceProps:()=>({id:"",ref:()=>{}}),getFloatingProps:()=>({id:"",ref:()=>{}}),id:"",isDismissible:!1,isOpen:!1,middlewareData:{},onToggle:()=>{},placement:"bottom",sizeMaxWidth:void 0,tooltipMaxWidth:void 0,tooltipRef:()=>{},triggerRef:()=>{},x:0,y:0,position:"absolute"},eu=(0,t.createContext)(Jp),tu=eu.Provider,nu=(eu.Consumer,()=>(0,t.useContext)(eu));function ru(){return"undefined"!=typeof window}function ou(e){return au(e)?(e.nodeName||"").toLowerCase():"#document"}function iu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function su(e){var t;return null==(t=(au(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function au(e){return!!ru()&&(e instanceof Node||e instanceof iu(e).Node)}function lu(e){return!!ru()&&(e instanceof Element||e instanceof iu(e).Element)}function cu(e){return!!ru()&&(e instanceof HTMLElement||e instanceof iu(e).HTMLElement)}function pu(e){return!(!ru()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof iu(e).ShadowRoot)}function uu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=gu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function du(e){return["table","td","th"].includes(ou(e))}function fu(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function mu(e){const t=yu(),n=lu(e)?gu(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function yu(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bu(e){return["html","body","#document"].includes(ou(e))}function gu(e){return iu(e).getComputedStyle(e)}function Ou(e){return lu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hu(e){if("html"===ou(e))return e;const t=e.assignedSlot||e.parentNode||pu(e)&&e.host||su(e);return pu(t)?t.host:t}function vu(e){const t=hu(e);return bu(t)?e.ownerDocument?e.ownerDocument.body:e.body:cu(t)&&uu(t)?t:vu(t)}function Pu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=vu(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=iu(o);if(i){const e=Eu(s);return t.concat(s,s.visualViewport||[],uu(o)?o:[],e&&n?Pu(e):[])}return t.concat(o,Pu(o,[],n))}function Eu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xu(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function ju(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&pu(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Su(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function wu(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Tu(e){return!wu().includes("jsdom/")&&(!Cu()&&0===e.width&&0===e.height||Cu()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Cu(){const e=/android/i;return e.test(Su())||e.test(wu())}function Au(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Nu(e){return(null==e?void 0:e.ownerDocument)||document}function _u(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Iu(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ru(e){return cu(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}s(85);const ku=Math.min,Du=Math.max,Lu=Math.round,$u=Math.floor,Mu=e=>({x:e,y:e}),Bu={left:"right",right:"left",bottom:"top",top:"bottom"},Fu={start:"end",end:"start"};function Hu(e,t,n){return Du(e,ku(t,n))}function Uu(e,t){return"function"==typeof e?e(t):e}function zu(e){return e.split("-")[0]}function Vu(e){return e.split("-")[1]}function Wu(e){return"x"===e?"y":"x"}function Xu(e){return"y"===e?"height":"width"}function Gu(e){return["top","bottom"].includes(zu(e))?"y":"x"}function qu(e){return Wu(Gu(e))}function Yu(e){return e.replace(/start|end/g,(e=>Fu[e]))}function Qu(e){return e.replace(/left|right|bottom|top/g,(e=>Bu[e]))}function Ku(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Zu(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ju(e,t,n){let{reference:r,floating:o}=e;const i=Gu(t),s=qu(t),a=Xu(s),l=zu(t),c="y"===i,p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(Vu(t)){case"start":f[s]-=d*(n&&c?-1:1);break;case"end":f[s]+=d*(n&&c?-1:1)}return f}async function ed(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:d=!1,padding:f=0}=Uu(t,e),m=Ku(f),y=a[d?"floating"===u?"reference":"floating":u],b=Zu(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),g="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),h=await(null==i.isElement?void 0:i.isElement(O))&&await(null==i.getScale?void 0:i.getScale(O))||{x:1,y:1},v=Zu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:O,strategy:l}):g);return{top:(b.top-v.top+m.top)/h.y,bottom:(v.bottom-b.bottom+m.bottom)/h.y,left:(b.left-v.left+m.left)/h.x,right:(v.right-b.right+m.right)/h.x}}function td(e){const t=ku(...e.map((e=>e.left))),n=ku(...e.map((e=>e.top)));return{x:t,y:n,width:Du(...e.map((e=>e.right)))-t,height:Du(...e.map((e=>e.bottom)))-n}}function nd(e){const t=gu(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cu(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Lu(n)!==i||Lu(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function rd(e){return lu(e)?e:e.contextElement}function od(e){const t=rd(e);if(!cu(t))return Mu(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=nd(t);let s=(i?Lu(n.width):n.width)/r,a=(i?Lu(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const id=Mu(0);function sd(e){const t=iu(e);return yu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:id}function ad(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=rd(e);let s=Mu(1);t&&(r?lu(r)&&(s=od(r)):s=od(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==iu(e))&&t}(i,n,r)?sd(i):Mu(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(i){const e=iu(i),t=r&&lu(r)?iu(r):r;let n=e,o=Eu(n);for(;o&&r&&t!==n;){const e=od(o),t=o.getBoundingClientRect(),r=gu(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,p*=e.x,u*=e.y,l+=i,c+=s,n=iu(o),o=Eu(n)}}return Zu({width:p,height:u,x:l,y:c})}function ld(e,t){const n=Ou(e).scrollLeft;return t?t.left+n:ad(su(e)).left+n}function cd(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ld(e,r)),y:r.top+t.scrollTop}}function pd(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=iu(e),r=su(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=yu();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=su(e),n=Ou(e),r=e.ownerDocument.body,o=Du(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Du(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ld(e);const a=-n.scrollTop;return"rtl"===gu(r).direction&&(s+=Du(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(su(e));else if(lu(t))r=function(e,t){const n=ad(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cu(e)?od(e):Mu(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=sd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zu(r)}function ud(e,t){const n=hu(e);return!(n===t||!lu(n)||bu(n))&&("fixed"===gu(n).position||ud(n,t))}function dd(e,t,n){const r=cu(t),o=su(t),i="fixed"===n,s=ad(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Mu(0);if(r||!r&&!i)if(("body"!==ou(t)||uu(o))&&(a=Ou(t)),r){const e=ad(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=ld(o));const c=!o||r||i?Mu(0):cd(o,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function fd(e){return"static"===gu(e).position}function md(e,t){if(!cu(e)||"fixed"===gu(e).position)return null;if(t)return t(e);let n=e.offsetParent;return su(e)===n&&(n=n.ownerDocument.body),n}function yd(e,t){const n=iu(e);if(fu(e))return n;if(!cu(e)){let t=hu(e);for(;t&&!bu(t);){if(lu(t)&&!fd(t))return t;t=hu(t)}return n}let r=md(e,t);for(;r&&du(r)&&fd(r);)r=md(r,t);return r&&bu(r)&&fd(r)&&!mu(r)?n:r||function(e){let t=hu(e);for(;cu(t)&&!bu(t);){if(mu(t))return t;if(fu(t))return null;t=hu(t)}return null}(e)||n}const bd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=su(r),a=!!t&&fu(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Mu(1);const p=Mu(0),u=cu(r);if((u||!u&&!i)&&(("body"!==ou(r)||uu(s))&&(l=Ou(r)),cu(r))){const e=ad(r);c=od(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}const d=!s||u||i?Mu(0):cd(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+d.x,y:n.y*c.y-l.scrollTop*c.y+p.y+d.y}},getDocumentElement:su,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?fu(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Pu(e,[],!1).filter((e=>lu(e)&&"body"!==ou(e))),o=null;const i="fixed"===gu(e).position;let s=i?hu(e):e;for(;lu(s)&&!bu(s);){const t=gu(s),n=mu(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||uu(s)&&!n&&ud(e,s))?r=r.filter((e=>e!==s)):o=t,s=hu(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=pd(t,n,o);return e.top=Du(r.top,e.top),e.right=ku(r.right,e.right),e.bottom=ku(r.bottom,e.bottom),e.left=Du(r.left,e.left),e}),pd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:yd,getElementRects:async function(e){const t=this.getOffsetParent||yd,n=this.getDimensions,r=await n(e.floating);return{reference:dd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=nd(e);return{width:t,height:n}},getScale:od,isElement:lu,isRTL:function(e){return"rtl"===gu(e).direction}};function gd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Od(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=rd(e),p=o||i?[...c?Pu(c):[],...Pu(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=su(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:p,top:u,width:d,height:f}=c;if(a||t(),!d||!f)return;const m={rootMargin:-$u(u)+"px "+-$u(o.clientWidth-(p+d))+"px "+-$u(o.clientHeight-(u+f))+"px "+-$u(p)+"px",threshold:Du(0,ku(1,l))||1};let y=!0;function b(t){const r=t[0].intersectionRatio;if(r!==l){if(!y)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||gd(c,e.getBoundingClientRect())||s(),y=!1}try{r=new IntersectionObserver(b,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,m)}r.observe(e)}(!0),i}(c,n):null;let d,f=-1,m=null;s&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let y=l?ad(e):null;return l&&function t(){const r=ad(e);y&&!gd(y,r)&&n();y=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const hd=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=zu(n),a=Vu(n),l="y"===Gu(n),c=["left","top"].includes(s)?-1:1,p=i&&l?-1:1,u=Uu(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*p,y:d*c}:{x:d*c,y:f*p}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},vd=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Uu(e,t),c={x:n,y:r},p=await ed(t,l),u=Gu(zu(o)),d=Wu(u);let f=c[d],m=c[u];if(i){const e="y"===d?"bottom":"right";f=Hu(f+p["y"===d?"top":"left"],f,f-p[e])}if(s){const e="y"===u?"bottom":"right";m=Hu(m+p["y"===u?"top":"left"],m,m-p[e])}const y=a.fn({...t,[d]:f,[u]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[d]:i,[u]:s}}}}}},Pd=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=Uu(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=zu(o),O=Gu(a),h=zu(a)===a,v=await(null==l.isRTL?void 0:l.isRTL(c.floating)),P=d||(h||!y?[Qu(a)]:function(e){const t=Qu(e);return[Yu(e),t,Yu(t)]}(a)),E="none"!==m;!d&&E&&P.push(...function(e,t,n,r){const o=Vu(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(zu(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Yu)))),i}(a,y,m,v));const x=[a,...P],j=await ed(t,b),S=[];let w=(null==(r=i.flip)?void 0:r.overflows)||[];if(p&&S.push(j[g]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=Vu(e),o=qu(e),i=Xu(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Qu(s)),[s,Qu(s)]}(o,s,v);S.push(j[e[0]],j[e[1]])}if(w=[...w,{placement:o,overflows:S}],!S.every((e=>e<=0))){var T,C;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n=null==(C=w.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var A;const e=null==(A=w.filter((e=>{if(E){const t=Gu(e.placement);return t===O||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Ed=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Uu(e,t),p=await ed(t,c),u=zu(o),d=Vu(o),f="y"===Gu(o),{width:m,height:y}=i.floating;let b,g;"top"===u||"bottom"===u?(b=u,g=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,b="end"===d?"top":"bottom");const O=y-p.top-p.bottom,h=m-p.left-p.right,v=ku(y-p[b],O),P=ku(m-p[g],h),E=!t.middlewareData.shift;let x=v,j=P;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=h),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=O),E&&!d){const e=Du(p.left,0),t=Du(p.right,0),n=Du(p.top,0),r=Du(p.bottom,0);f?j=m-2*(0!==e||0!==t?e+t:Du(p.left,p.right)):x=y-2*(0!==n||0!==r?n+r:Du(p.top,p.bottom))}await l({...t,availableWidth:j,availableHeight:x});const S=await s.getDimensions(a.floating);return m!==S.width||y!==S.height?{reset:{rects:!0}}:{}}}},xd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:p=0}=Uu(e,t)||{};if(null==c)return{};const u=Ku(p),d={x:n,y:r},f=qu(o),m=Xu(f),y=await s.getDimensions(c),b="y"===f,g=b?"top":"left",O=b?"bottom":"right",h=b?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[f]-d[f]-i.floating[m],P=d[f]-i.reference[f],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let x=E?E[h]:0;x&&await(null==s.isElement?void 0:s.isElement(E))||(x=a.floating[h]||i.floating[m]);const j=v/2-P/2,S=x/2-y[m]/2-1,w=ku(u[g],S),T=ku(u[O],S),C=w,A=x-y[m]-T,N=x/2-y[m]/2+j,_=Hu(C,N,A),I=!l.arrow&&null!=Vu(o)&&N!==_&&i.reference[m]/2-(N<C?w:T)-y[m]/2<0,R=I?N<C?N-C:N-A:0;return{[f]:d[f]+R,data:{[f]:_,centerOffset:N-_-R,...I&&{alignmentOffset:R}},reset:I}}}),jd=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:s}=t,{padding:a=2,x:l,y:c}=Uu(e,t),p=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),u=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>Zu(td(e))))}(p),d=Zu(td(p)),f=Ku(a);const m=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find((e=>l>e.left-f.left&&l<e.right+f.right&&c>e.top-f.top&&c<e.bottom+f.bottom))||d;if(u.length>=2){if("y"===Gu(n)){const e=u[0],t=u[u.length-1],r="top"===zu(n),o=e.top,i=t.bottom,s=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:i,left:s,right:a,width:a-s,height:i-o,x:s,y:o}}const e="left"===zu(n),t=Du(...u.map((e=>e.right))),r=ku(...u.map((e=>e.left))),o=u.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,s=o[o.length-1].bottom;return{top:i,bottom:s,left:r,right:t,width:t-r,height:s-i,x:r,y:i}}return d}},floating:r.floating,strategy:s});return o.reference.x!==m.reference.x||o.reference.y!==m.reference.y||o.reference.width!==m.reference.width||o.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},Sd=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Uu(e,t),p={x:n,y:r},u=Gu(o),d=Wu(u);let f=p[d],m=p[u];const y=Uu(a,t),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+b.mainAxis,n=i.reference[d]+i.reference[e]-b.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var g,O;const e="y"===d?"width":"height",t=["top","left"].includes(zu(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(g=s.offset)?void 0:g[u])||0)+(t?0:b.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(O=s.offset)?void 0:O[u])||0)-(t?b.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:f,[u]:m}}}},wd=(e,t,n)=>{const r=new Map,o={platform:bd,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=Ju(c,r,l),d=r,f={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:y}=a[n],{x:b,y:g,data:O,reset:h}=await y({x:p,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});p=null!=b?b:p,u=null!=g?g:u,f={...f,[i]:{...f[i],...O}},h&&m<=50&&(m++,"object"==typeof h&&(h.placement&&(d=h.placement),h.rects&&(c=!0===h.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):h.rects),({x:p,y:u}=Ju(c,d,l))),n=-1)}return{x:p,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Td="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Cd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Cd(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Cd(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ad(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nd(e,t){const n=Ad(e);return Math.round(t*n)/n}function _d(e){const n=t.useRef(e);return Td((()=>{n.current=e})),n}const Id=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?xd({element:n.current,padding:r}).fn(t):{}:n?xd({element:n,padding:r}).fn(t):{};var o}}),Rd=(e,t)=>({...vd(e),options:[e,t]}),kd=(e,t)=>({...Sd(e),options:[e,t]}),Dd=(e,t)=>({...Pd(e),options:[e,t]}),Ld=(e,t)=>({...Ed(e),options:[e,t]}),$d=(e,t)=>({...jd(e),options:[e,t]}),Md=(e,t)=>({...Id(e),options:[e,t]});const Bd={...n},Fd=Bd.useInsertionEffect||(e=>e());function Hd(e){const n=t.useRef((()=>{0}));return Fd((()=>{n.current=e})),t.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}const Ud="ArrowUp",zd="ArrowDown",Vd="ArrowLeft",Wd="ArrowRight";var Xd="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;const Gd=[Vd,Wd],qd=[Ud,zd];let Yd=!1,Qd=0;const Kd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qd++;const Zd=Bd.useId||function(){const[e,n]=t.useState((()=>Yd?Kd():void 0));return Xd((()=>{null==e&&n(Kd())}),[]),t.useEffect((()=>{Yd=!0}),[]),e};function Jd(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const ef=t.createContext(null),tf=t.createContext(null),nf=()=>{var e;return(null==(e=t.useContext(ef))?void 0:e.id)||null},rf=()=>t.useContext(tf);function of(e){return"data-floating-ui-"+e}function sf(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}function af(e){const n=(0,t.useRef)(e);return Xd((()=>{n.current=e})),n}const lf=of("safe-polygon");function cf(e,t,n){return n&&!Au(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function pf(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const uf="data-floating-ui-focusable";function df(e){return cu(e.target)&&"BUTTON"===e.target.tagName}function ff(e){return Ru(e)}const mf={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},yf={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},bf=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function gf(e){void 0===e&&(e={});const{nodeId:n}=e,r=function(e){const{open:n=!1,onOpenChange:r,elements:o}=e,i=Zd(),s=t.useRef({}),[a]=t.useState((()=>Jd())),l=null!=nf(),[c,p]=t.useState(o.reference),u=Hd(((e,t,n)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),d=t.useMemo((()=>({setPositionReference:p})),[]),f=t.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);return t.useMemo((()=>({dataRef:s,open:n,onOpenChange:u,elements:f,events:a,floatingId:i,refs:d})),[n,u,f,a,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,i=o.elements,[s,a]=t.useState(null),[l,c]=t.useState(null),p=(null==i?void 0:i.domReference)||s,u=t.useRef(null),d=rf();Xd((()=>{p&&(u.current=p)}),[p]);const f=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:p}=e,[u,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=t.useState(o);Cd(f,o)||m(o);const[y,b]=t.useState(null),[g,O]=t.useState(null),h=t.useCallback((e=>{e!==x.current&&(x.current=e,b(e))}),[]),v=t.useCallback((e=>{e!==j.current&&(j.current=e,O(e))}),[]),P=s||y,E=a||g,x=t.useRef(null),j=t.useRef(null),S=t.useRef(u),w=null!=c,T=_d(c),C=_d(i),A=_d(p),N=t.useCallback((()=>{if(!x.current||!j.current)return;const e={placement:n,strategy:r,middleware:f};C.current&&(e.platform=C.current),wd(x.current,j.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};_.current&&!Cd(S.current,t)&&(S.current=t,gt.flushSync((()=>{d(t)})))}))}),[f,n,r,C,A]);Td((()=>{!1===p&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[p]);const _=t.useRef(!1);Td((()=>(_.current=!0,()=>{_.current=!1})),[]),Td((()=>{if(P&&(x.current=P),E&&(j.current=E),P&&E){if(T.current)return T.current(P,E,N);N()}}),[P,E,N,T,w]);const I=t.useMemo((()=>({reference:x,floating:j,setReference:h,setFloating:v})),[h,v]),R=t.useMemo((()=>({reference:P,floating:E})),[P,E]),k=t.useMemo((()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=Nd(R.floating,u.x),n=Nd(R.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Ad(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,R.floating,u.x,u.y]);return t.useMemo((()=>({...u,update:N,refs:I,elements:R,floatingStyles:k})),[u,N,I,R,k])}({...e,elements:{...i,...l&&{reference:l}}}),m=t.useCallback((e=>{const t=lu(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),y=t.useCallback((e=>{(lu(e)||null===e)&&(u.current=e,a(e)),(lu(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!lu(e))&&f.refs.setReference(e)}),[f.refs]),b=t.useMemo((()=>({...f.refs,setReference:y,setPositionReference:m,domReference:u})),[f.refs,y,m]),g=t.useMemo((()=>({...f.elements,domReference:p})),[f.elements,p]),O=t.useMemo((()=>({...f,...o,refs:b,elements:g,nodeId:n})),[f,b,g,n,o]);return Xd((()=>{o.dataRef.current.floatingContext=O;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===n));e&&(e.context=O)})),t.useMemo((()=>({...f,context:O,refs:b,elements:g})),[f,b,g,O])}function Of(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,events:i,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=n,p=t.useRef(!1),u=t.useRef(-1),d=t.useRef(!0);t.useEffect((()=>{if(!l)return;const e=iu(a.domReference);function t(){!r&&cu(a.domReference)&&a.domReference===xu(Nu(a.domReference))&&(p.current=!0)}function n(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[a.domReference,r,l]),t.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(p.current=!0)}}),[i,l]),t.useEffect((()=>()=>{sf(u)}),[]);const f=t.useMemo((()=>({onPointerDown(e){Tu(e.nativeEvent)||(d.current=!1)},onMouseLeave(){p.current=!1},onFocus(e){if(p.current)return;const t=Iu(e.nativeEvent);if(c&&lu(t))try{if(/apple/i.test(navigator.vendor)&&Su().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Ru(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){p.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=lu(t)&&t.hasAttribute(of("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const i=xu(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(ju(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||ju(a.domReference,i)||r||o(!1,n,"focus"))}))}})),[s,a.domReference,o,c]);return t.useMemo((()=>l?{reference:f}:{}),[l,f])}const hf="active",vf="selected";function Pf(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hf]:t,[vf]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[uf]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[hf,vf].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Ef=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function xf(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function jf(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:p,elements:u,onClose:d,nodeId:f,tree:m}=e;return function(e){function y(){clearTimeout(o),d()}if(clearTimeout(o),!u.domReference||!u.floating||null==p||null==n||null==c)return;const{clientX:b,clientY:g}=e,O=[b,g],h=Iu(e),v="mouseleave"===e.type,P=ju(u.floating,h),E=ju(u.domReference,h),x=u.domReference.getBoundingClientRect(),j=u.floating.getBoundingClientRect(),S=p.split("-")[0],w=n>j.right-j.width/2,T=c>j.bottom-j.height/2,C=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(O,x),A=j.width>x.width,N=j.height>x.height,_=(A?x:j).left,I=(A?x:j).right,R=(N?x:j).top,k=(N?x:j).bottom;if(P&&(i=!0,!v))return;if(E&&(i=!1),E&&!v)return void(i=!0);if(v&&lu(e.relatedTarget)&&ju(u.floating,e.relatedTarget))return;if(m&&pf(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===S&&c>=x.bottom-1||"bottom"===S&&c<=x.top+1||"left"===S&&n>=x.right-1||"right"===S&&n<=x.left+1)return y();let D=[];switch(S){case"top":D=[[_,x.top+1],[_,j.bottom-1],[I,j.bottom-1],[I,x.top+1]];break;case"bottom":D=[[_,j.top+1],[_,x.bottom-1],[I,x.bottom-1],[I,j.top+1]];break;case"left":D=[[j.right-1,k],[j.right-1,R],[x.left+1,R],[x.left+1,k]];break;case"right":D=[[x.right-1,k],[x.right-1,R],[j.left+1,R],[j.left+1,k]]}if(!xf([b,g],D)){if(i&&!C)return y();if(!v&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return y()}xf([b,g],function(e){let[n,r]=e;switch(S){case"top":return[[A?n+t/2:w?n+4*t:n-4*t,r+t+1],[A?n-t/2:w?n+4*t:n-4*t,r+t+1],...[[j.left,w||A?j.bottom-t:j.top],[j.right,w?A?j.bottom-t:j.top:j.bottom-t]]];case"bottom":return[[A?n+t/2:w?n+4*t:n-4*t,r-t],[A?n-t/2:w?n+4*t:n-4*t,r-t],...[[j.left,w||A?j.top+t:j.bottom],[j.right,w?A?j.top+t:j.bottom:j.top+t]]];case"left":{const e=[n+t+1,N?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,N?r-t/2:T?r+4*t:r-4*t];return[...[[T||N?j.right-t:j.left,j.top],[T?N?j.right-t:j.left:j.right-t,j.bottom]],e,o]}case"right":return[[n-t,N?r+t/2:T?r+4*t:r-4*t],[n-t,N?r-t/2:T?r+4*t:r-4*t],...[[T||N?j.left+t:j.right,j.top],[T?N?j.left+t:j.right:j.left+t,j.bottom]]]}}([n,c]))?!i&&r&&(o=window.setTimeout(y,40)):y()}}};return c.__options={blockPointerEvents:n},c}const Sf={CLICK:"click",HOVER:"hover",FOCUS:"focus",MANUAL:"manual",OUTSIDE_PRESS:"outside-press",ESCAPE_KEY:"escape-key"},wf=e=>{const{arrowRef:n,cornerOffset:r=0,flipCrossAxis:o,flipFallbackAxisSideDirection:i="none",flipFallbackPlacements:s,flipProp:a,isDismissible:l,isOpen:c=!1,offset:p=0,onToggle:u,isFocusableOnHover:d,shiftProp:f,sizeProp:m,positionStrategy:y="absolute",tooltipArrowWidth:b=0,tooltipPlacement:g,trigger:O}=e,[h,v]=(0,t.useState)(void 0),[P,E]=(0,t.useState)(!1),x=r+b,j=null==O?void 0:O.includes(Sf.HOVER),S=null==O?void 0:O.includes(Sf.CLICK),w=null==O?void 0:O.includes(Sf.FOCUS),{x:T,y:C,floatingStyles:A,refs:N,context:_,placement:I,middlewareData:R}=gf({open:c,onOpenChange:(e,t,n)=>{if(j){if(n===Sf.CLICK&&E((e=>!e)),c&&P&&n===Sf.HOVER)return;if(c&&P&&(n===Sf.CLICK||n===Sf.OUTSIDE_PRESS||n===Sf.ESCAPE_KEY))return E(!1),void u(!1)}u(e)},placement:g,whileElementsMounted:Od,middleware:[(D=p,{...hd(D),options:[D,L]}),$d(),a&&Dd({crossAxis:o,fallbackPlacements:s?(k=s,Array.isArray(k)?k:[k]):void 0,fallbackAxisSideDirection:i}),f&&Rd({limiter:kd({offset:()=>({mainAxis:x})})}),m&&Ld({apply({availableWidth:e}){v(e)}}),Md({element:n.current,padding:r})],strategy:y});var k,D,L;const $=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:p=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=n,f=t.useRef(),m=t.useRef(!1),y=t.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Au(t,!0)&&p||(!r||!c||i.current.openEvent&&d&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Au(t,!0)&&p||(!r||!c||i.current.openEvent&&d&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||df(e)||(" "!==e.key||ff(s)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&o(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||df(e)||ff(s)||" "===e.key&&m.current&&(m.current=!1,o(!r||!c,e.nativeEvent,"click"))}})),[i,s,l,p,u,o,r,d,c]);return t.useMemo((()=>a?{reference:y}:{}),[a,y])}(_,{enabled:S}),M=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,events:s,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:p=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=n,m=rf(),y=nf(),b=af(p),g=af(c),O=af(r),h=t.useRef(),v=t.useRef(-1),P=t.useRef(),E=t.useRef(-1),x=t.useRef(!0),j=t.useRef(!1),S=t.useRef((()=>{})),w=t.useRef(!1),T=t.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);t.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(sf(v),sf(E),x.current=!0,w.current=!1)}}),[l,s]),t.useEffect((()=>{if(!l)return;if(!b.current)return;if(!r)return;function e(e){T()&&o(!1,e,"hover")}const t=Nu(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,r,o,l,b,T]);const C=t.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=cf(g.current,"close",h.current);r&&!P.current?(sf(v),v.current=window.setTimeout((()=>o(!1,e,n)),r)):t&&(sf(v),o(!1,e,n))}),[g,o]),A=Hd((()=>{S.current(),P.current=void 0})),N=Hd((()=>{if(j.current){const e=Nu(a.floating).body;e.style.pointerEvents="",e.removeAttribute(lf),j.current=!1}})),_=Hd((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));t.useEffect((()=>{if(l&&lu(a.domReference)){var e;const o=a.domReference;return r&&o.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),f&&o.addEventListener("mousemove",t,{once:!0}),o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",n),()=>{var e;r&&o.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),f&&o.removeEventListener("mousemove",t),o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",n)}}function t(e){if(sf(v),x.current=!1,u&&!Au(h.current)||d>0&&!cf(g.current,"open"))return;const t=cf(g.current,"open",h.current);t?v.current=window.setTimeout((()=>{O.current||o(!0,e,"hover")}),t):r||o(!0,e,"hover")}function n(e){if(_())return;S.current();const t=Nu(a.floating);if(sf(E),w.current=!1,b.current&&i.current.floatingContext){r||sf(v),P.current=b.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){N(),A(),_()||C(e,!0,"safe-polygon")}});const n=P.current;return t.addEventListener("mousemove",n),void(S.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==h.current||!ju(a.floating,e.relatedTarget))&&C(e)}function s(e){_()||i.current.floatingContext&&(null==b.current||b.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){N(),A(),_()||C(e)}})(e))}}),[a,l,e,u,d,f,C,A,N,o,r,O,m,g,b,i,_]),Xd((()=>{var e;if(l&&r&&null!=(e=b.current)&&e.__options.blockPointerEvents&&T()){j.current=!0;const e=a.floating;if(lu(a.domReference)&&e){var t;const n=Nu(a.floating).body;n.setAttribute(lf,"");const r=a.domReference,o=null==m||null==(t=m.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,r,y,a,m,b,T]),Xd((()=>{r||(h.current=void 0,w.current=!1,A(),N())}),[r,A,N]),t.useEffect((()=>()=>{A(),sf(v),sf(E),N()}),[l,a.domReference,A,N]);const I=t.useMemo((()=>{function e(e){h.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){x.current||O.current||o(!0,t,"hover")}u&&!Au(h.current)||r||0===d||w.current&&e.movementX**2+e.movementY**2<2||(sf(E),"touch"===h.current?n():(w.current=!0,E.current=window.setTimeout(n,d)))}}}),[u,o,r,O,d]),R=t.useMemo((()=>({onMouseEnter(){sf(v)},onMouseLeave(e){_()||C(e.nativeEvent,!1)}})),[C,_]);return t.useMemo((()=>l?{reference:I,floating:R}:{}),[l,I,R])}(_,{enabled:j,handleClose:(B=!!d,B?jf({requireIntent:!1}):void 0)});var B;const F=Of(_,{enabled:w}),H=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:p="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:y}=n,b=rf(),g=Hd("function"==typeof c?c:()=>!1),O="function"==typeof c?g:c,h=t.useRef(!1),v=t.useRef(!1),{escapeKey:P,outsidePress:E}=bf(m),{escapeKey:x,outsidePress:j}=bf(y),S=t.useRef(!1),w=Hd((e=>{var t;if(!r||!a||!l||"Escape"!==e.key)return;if(S.current)return;const n=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=b?pf(b.nodesRef.current,n):[];if(!P&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),T=Hd((e=>{var t;const n=()=>{var t;w(e),null==(t=Iu(e))||t.removeEventListener("keydown",n)};null==(t=Iu(e))||t.addEventListener("keydown",n)})),C=Hd((e=>{var t;const n=h.current;h.current=!1;const r=v.current;if(v.current=!1,"click"===p&&r)return;if(n)return;if("function"==typeof O&&!O(e))return;const a=Iu(e),l="["+of("inert")+"]",c=Nu(i.floating).querySelectorAll(l);let u=lu(a)?a:null;for(;u&&!bu(u);){const e=hu(u);if(bu(e)||!lu(e))break;u=e}if(c.length&&lu(a)&&!a.matches("html,body")&&!ju(a,i.floating)&&Array.from(c).every((e=>!ju(u,e))))return;if(cu(a)&&_){const t=bu(a),n=gu(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,p=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(p||u)return}const d=null==(t=s.current.floatingContext)?void 0:t.nodeId,f=b&&pf(b.nodesRef.current,d).some((t=>{var n;return _u(e,null==(n=t.context)?void 0:n.elements.floating)}));if(_u(e,i.floating)||_u(e,i.domReference)||f)return;const m=b?pf(b.nodesRef.current,d):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),A=Hd((e=>{var t;const n=()=>{var t;C(e),null==(t=Iu(e))||t.removeEventListener(p,n)};null==(t=Iu(e))||t.addEventListener(p,n)}));t.useEffect((()=>{if(!r||!a)return;s.current.__escapeKeyBubbles=P,s.current.__outsidePressBubbles=E;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout((()=>{S.current=!1}),yu()?5:0)}const u=Nu(i.floating);l&&(u.addEventListener("keydown",x?T:w,x),u.addEventListener("compositionstart",n),u.addEventListener("compositionend",c)),O&&u.addEventListener(p,j?A:C,j);let d=[];return f&&(lu(i.domReference)&&(d=Pu(i.domReference)),lu(i.floating)&&(d=d.concat(Pu(i.floating))),!lu(i.reference)&&i.reference&&i.reference.contextElement&&(d=d.concat(Pu(i.reference.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(u.removeEventListener("keydown",x?T:w,x),u.removeEventListener("compositionstart",n),u.removeEventListener("compositionend",c)),O&&u.removeEventListener(p,j?A:C,j),d.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,i,l,O,p,r,o,f,a,P,E,w,x,T,C,j,A]),t.useEffect((()=>{h.current=!1}),[O,p]);const N=t.useMemo((()=>({onKeyDown:w,...u&&{[mf[d]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}})),[w,o,u,d]),_=t.useMemo((()=>({onKeyDown:w,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[yf[p]]:()=>{h.current=!0}})),[w,p]);return t.useMemo((()=>a?{reference:N,floating:_}:{}),[a,N,_])}(_,{outsidePress:!l}),U=function(e,n){var r;void 0===n&&(n={});const{open:o,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=n,l=null!=(r=Ef.get(a))?r:a,c=Zd(),p=null!=nf(),u=t.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:o?i:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&p&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,i,p,o,c,a]),d=t.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,a]),f=t.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,a]);return t.useMemo((()=>s?{reference:u,floating:d,item:f}:{}),[s,u,d,f])}(_,{role:"tooltip"}),{getReferenceProps:z,getFloatingProps:V}=function(e){void 0===e&&(e=[]);const n=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),i=t.useCallback((t=>Pf(t,e,"reference")),n),s=t.useCallback((t=>Pf(t,e,"floating")),r),a=t.useCallback((t=>Pf(t,e,"item")),o);return t.useMemo((()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a})),[i,s,a])}([$,M,F,H,U]);return{context:_,getFloatingProps:V,getReferenceProps:e=>{const t=z(e);if(w){const e=t.onMouseDown;t.onMouseDown=t=>{e&&e(t);const n=t.currentTarget;if(n&&n!==document.activeElement){n instanceof HTMLElement&&(n.tabIndex>=0||n instanceof HTMLButtonElement||n instanceof HTMLAnchorElement||n instanceof HTMLInputElement||n instanceof HTMLSelectElement||n instanceof HTMLTextAreaElement)&&n.focus()}}}return t},maxWidth:h,middlewareData:R,placement:I,refs:N,x:T,y:C,position:A.position}};var Tf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cf=e=>{const{isDismissible:n,isOpen:r}=e,o=Tf(e,["isDismissible","isOpen"]),i=h("Tooltip"),s=`${i}Popover`,a=`${s}__arrow`,l=`${s}__close`,c=`${s}--dismissible`,p="is-hidden",u=(0,t.useMemo)((()=>!1===r),[r]);return{classProps:{rootClassName:i,popoverClassName:C()(s,{[c]:n,[p]:u}),arrowClassName:a,closeButtonClassName:l},props:o}};var Af=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Nf=e=>{var n;const{children:o,elementType:i="div",enableFlipping:s=!0,enableFlippingCrossAxis:a=!0,enableShifting:l=!0,enableSizing:c=!0,flipFallbackAxisSideDirection:p="none",flipFallbackPlacements:u=["bottom","top"],id:d,isDismissible:f=!1,isFocusableOnHover:m=!1,isOpen:y=!1,onToggle:b,placement:g,positionStrategy:O="absolute",trigger:h=["click","hover"]}=e,v=Af(e,["children","elementType","enableFlipping","enableFlippingCrossAxis","enableShifting","enableSizing","flipFallbackAxisSideDirection","flipFallbackPlacements","id","isDismissible","isFocusableOnHover","isOpen","onToggle","placement","positionStrategy","trigger"]),{classProps:P,props:E}=Cf(Object.assign({isDismissible:f,isOpen:y},v)),{styleProps:x,props:j}=oe(E),S=ie(i,{classProps:P.rootClassName,styleProps:x}),w=(0,t.useRef)(null),T=(0,t.useRef)(null);let C,A,N,_;const I=null===(n=T.current)||void 0===n?void 0:n.querySelector('[data-spirit-element="tooltip"]'),R=null==I?void 0:I.querySelector('[data-spirit-element="tooltip-arrow"]');if(I){const e=window.getComputedStyle(I),t=R&&window.getComputedStyle(R);C=parseInt(e.getPropertyValue("--tooltip-max-width"),10),A=parseInt(e.getPropertyValue("--tooltip-offset"),10),N=t?parseInt(t.getPropertyValue("--tooltip-arrow-corner-offset"),10):0,_=t?parseInt(t.width,10):0}const{getFloatingProps:k,getReferenceProps:D,maxWidth:L,middlewareData:$,placement:M,refs:B,x:F,y:H,position:U}=wf({arrowRef:w,cornerOffset:N,flipCrossAxis:a,flipFallbackAxisSideDirection:p,flipFallbackPlacements:u,flipProp:s,isDismissible:f,isFocusableOnHover:m,isOpen:y,offset:A,onToggle:b,shiftProp:l,sizeProp:c,positionStrategy:O,tooltipArrowWidth:_,tooltipMaxWidth:C,tooltipPlacement:g,trigger:h});return r().createElement(tu,{value:{anchorRef:B.setPositionReference,arrowRef:w,getFloatingProps:k,getReferenceProps:D,id:d,isDismissible:f,isOpen:y,middlewareData:$,onToggle:b,placement:M,sizeMaxWidth:L,tooltipMaxWidth:C,tooltipRef:B.setFloating,triggerRef:B.setReference,x:F,y:H,position:U}},r().createElement(i,Object.assign({},j,{ref:T},S),o))};Nf.spiritComponent="Tooltip";const _f=Nf;var If=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rf={elementType:"button",children:null},kf=e=>{const t=Object.assign(Object.assign({},Rf),e),{elementType:n="button",children:o}=t,i=If(t,["elementType","children"]),{id:s,isOpen:a,triggerRef:l,getReferenceProps:c}=nu(),{styleProps:p,props:u}=oe(i),d=ie(n,{triggerStyleProps:p,transferProps:u});return r().createElement(n,Object.assign({},u,d,{id:s,ref:l},c()),"function"==typeof o?o({isOpen:a}):o)};kf.spiritComponent="TooltipTrigger";const Df=kf;var Lf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $f=e=>{var{label:t="Close",onClick:n}=e,o=Lf(e,["label","onClick"]);const{classProps:i,props:s}=Cf(o),{styleProps:a}=oe(Object.assign({},s));return r().createElement("button",{type:"button",className:C()(i.closeButtonClassName,a.className),style:a.style,onClick:n,"aria-expanded":"true"},r().createElement(dt,{name:"close","aria-hidden":"true"}),r().createElement(_i,null,t))};$f.spiritComponent="TooltipCloseButton";const Mf=$f;var Bf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ff=e=>{const{children:n}=e,o=Bf(e,["children"]),{arrowRef:i,getFloatingProps:s,isDismissible:a,isOpen:l,middlewareData:c,onToggle:p,placement:u,tooltipRef:d,x:f,y:m,position:y,sizeMaxWidth:b,tooltipMaxWidth:g}=nu(),{classProps:O,props:h}=Cf(Object.assign({isOpen:l,isDismissible:a},o)),{styleProps:v,props:P}=oe(h),E=(0,t.useMemo)((()=>a&&r().createElement(Mf,{onClick:()=>p(!1),label:"close"})),[a,p]);return r().createElement("div",Object.assign({ref:d,className:C()(O.popoverClassName,v.className)},P,s(),{style:Object.assign(Object.assign({position:y,top:null!=m?m:0,left:null!=f?f:0},(()=>{if(l&&b&&g)return{maxWidth:g<b?g:b}})()),v.style),"data-spirit-element":"tooltip","data-spirit-placement":u}),n,E,r().createElement("span",{ref:i,className:O.arrowClassName,"data-spirit-element":"tooltip-arrow",style:Object.assign({position:"absolute"},(()=>{if(u&&i.current){const{arrow:e}=c,t={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]],n=i.current,r="top"===t||"bottom"===t?n.offsetHeight:(n.offsetHeight+n.offsetWidth)/2;return{left:null==e?void 0:e.x,top:null==e?void 0:e.y,[t]:r&&-Math.floor(r)}}})())}))};Ff.spiritComponent="TooltipPopover";const Hf=Ff;var Uf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zf=e=>{var{feature:n,featureId:o}=e,i=Uf(e,["feature","featureId"]);const{modalContent:s,title:a,tooltipContent:l}=n,{classProps:c}=zp(i),[p,u]=Zp(!1),[d,f]=(0,t.useState)(!1);return s?r().createElement("div",{className:c.body.featureTitle},r().createElement(dt,{name:"check-plain",boxSize:16}),r().createElement("button",{type:"button",onClick:()=>f(!0),className:C()(c.body.featureTitleText,"text-underlined-dotted")},a),r().createElement(Oc,{id:`${o}-modal`,isOpen:d,onClose:()=>f(!1)},r().createElement(Ac,{isScrollable:!0},r().createElement(Lc,null,a),r().createElement(Pc,null,s)))):l?r().createElement(_f,{elementType:"div",id:`${o}-tooltip`,isDismissible:!0,isOpen:p,onToggle:u,placement:"top",trigger:["click"],UNSAFE_className:c.body.featureTitle},r().createElement(dt,{name:"check-plain",boxSize:16}),r().createElement(Df,{elementType:"button",UNSAFE_className:C()(c.body.featureTitleText,"text-underlined-dotted")},a),r().createElement(Hf,null,r().createElement("div",null,l))):r().createElement("div",{className:c.body.featureTitle},r().createElement(dt,{name:"check-plain",boxSize:16}),r().createElement("div",{className:c.body.featureTitleText,id:`${o}-title`},a))};zf.spiritComponent="PricingPlanFeatureTitle";const Vf=zf;var Wf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xf={description:void 0,features:[]},Gf=e=>{const t=Object.assign(Object.assign({},Xf),e),{description:n,elementType:o="div",features:i=[],id:s}=t,a=Wf(t,["description","elementType","features","id"]),{classProps:l,props:c}=zp(a),{styleProps:p,props:u}=oe(c),d=ie(o,{classProps:l.body.root,styleProps:p});return r().createElement(o,Object.assign({},u,d),n&&r().createElement("div",null,n),r().createElement("ul",{className:l.body.featureList},i.map(((e,t)=>{const n=`featureItem-${t}`,o=`${s}-feature-${t}`;return r().createElement("li",{className:l.body.featureItem,key:n},r().createElement(Vf,{feature:e,featureId:o}),r().createElement("div",{className:l.body.featureDescription},e.description))}))))};Gf.spiritComponent="PricingPlanBody";const qf=Gf;var Yf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qf=e=>{const{children:t,elementType:n="footer"}=e,o=Yf(e,["children","elementType"]),{classProps:i,props:s}=zp(o),{styleProps:a,props:l}=oe(s),c=ie(n,{classProps:i.footer,styleProps:a});return r().createElement(n,Object.assign({},l,c),t)};Qf.spiritComponent="PricingPlanFooter";const Kf=Qf;var Zf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jf=e=>{const{children:t}=e,n=Zf(e,["children"]),o=h("ProductLogo"),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o,i.className),style:i.style}),t)};Jf.spiritComponent="ProductLogo";const em=Jf;var tm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function nm(e){const{isItem:t,validationState:n,isLabelHidden:r}=e,o=tm(e,["isItem","validationState","isLabelHidden"]),{isDisabled:i}=o,s=h("Radio"),a=`${s}--disabled`,l=`${s}--item`,c=`${s}__input`,p=`${s}__label`,u=`${s}__label--hidden`,d=`${s}__text`,f=`${s}__helperText`,m=`${s}--${n}`;return{classProps:{root:C()(s,{[a]:i,[l]:t,[m]:n}),label:C()(p,{[u]:r}),input:c,text:d,helperText:f},props:o}}var rm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const om=(0,t.forwardRef)(((e,t)=>{const{classProps:n,props:o}=nm(e),{"aria-describedby":i="",helperText:s,id:a,isChecked:l,isDisabled:c,label:p,onChange:u,value:d}=o,f=rm(o,["aria-describedby","helperText","id","isChecked","isDisabled","label","onChange","value"]),{styleProps:m,props:y}=oe(f),[b,g]=vo(i),O=ho(b);return r().createElement("div",{style:m.style,className:C()(n.root,m.className)},r().createElement("input",Object.assign({},y,O,{type:"radio",id:a,className:n.input,disabled:c,checked:l,onChange:u,value:d,ref:t})),r().createElement("div",{className:n.text},r().createElement(xo,{UNSAFE_className:n.label,htmlFor:a},p),r().createElement(To,{UNSAFE_className:n.helperText,id:`${a}__helperText`,registerAria:g,helperText:s})))}));om.spiritComponent="Radio";const im=om,sm=50,am=1,lm="Scroll right",cm="Scroll left",pm="Scroll down",um="Scroll up",dm=Jt.VERTICAL,fm="shadows",mm=(e,t,n=300)=>{var r,o,i,s;const a=(e=>e?{start:cm,end:lm}:{top:um,bottom:pm})(e),l=Object.assign(Object.assign({},a),t);return{arrows:[{icon:e?"chevron-left":"chevron-up",label:e?null!==(r=l.start)&&void 0!==r?r:a.start:null!==(o=l.top)&&void 0!==o?o:a.top,step:-n},{icon:e?"chevron-right":"chevron-down",label:e?null!==(i=l.end)&&void 0!==i?i:a.end:null!==(s=l.bottom)&&void 0!==s?s:a.bottom,step:n}]}},ym=({direction:e,isScrollbarDisabled:t,isScrolledAtEnd:n,isScrolledAtStart:r,overflowDecorators:o=fm})=>{const i=h("ScrollView"),s=`${i}--${e}`,a=`${i}--scrollbarDisabled`,l=`${i}__viewport`,c=`${i}__content`,p=`${i}__overflowDecorators`,u={shadows:`${p}--shadows`,borders:`${p}--borders`,both:C()(`${p}--shadows`,`${p}--borders`)}[o],d="is-scrolled-at-start",f="is-scrolled-at-end",m=`${i}__arrows`;return{classProps:{root:C()(i,s,{[a]:t,[f]:n,[d]:r}),viewport:l,content:c,overflowDecorators:C()(p,u),arrows:m}}};var bm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gm=e=>{const{ariaLabelArrows:t,direction:n,scrollStep:o,viewportRef:i}=e,s=bm(e,["ariaLabelArrows","direction","scrollStep","viewportRef"]),{classProps:a}=ym({direction:n}),{styleProps:l,props:c}=oe(s),p=ie("button",{classProps:a.arrows,styleProps:l}),u=nn(n),{arrows:d}=mm(u,t,o);return r().createElement("div",Object.assign({},c,p),d.map((({icon:e,label:t,step:n})=>r().createElement(ni,{key:e,"aria-label":t,onClick:()=>(e=>{var t;const n=u?"left":"top";null===(t=i.current)||void 0===t||t.scrollBy({[n]:e,behavior:"smooth"})})(n),size:"small",isSymmetrical:!0},r().createElement(dt,{name:e})))))};gm.spiritComponent="ScrollViewArrows";const Om=gm,hm={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},vm=(e,t)=>{let n,r=!1;return o=>{r||(r=!0,n&&clearTimeout(n),n=setTimeout((()=>{e(o),r=!1}),t))}},Pm=({viewportReference:e,contentReference:n,direction:r})=>{const[o,i]=(0,t.useState)(!1),[s,a]=(0,t.useState)(!1),l=()=>{const t=nn(r),l=t?hm.LEFT:hm.TOP,c=t?hm.RIGHT:hm.BOTTOM,p=(()=>{if(!n.current||!e.current)return null;const t=n.current.getBoundingClientRect(),r=e.current.getBoundingClientRect();return{[hm.BOTTOM]:t.bottom-r.bottom,[hm.LEFT]:t.left-r.left,[hm.RIGHT]:t.right-r.right,[hm.TOP]:t.top-r.top}})();if(!p)return;const u=p[l]<=-1*am,d=p[c]>=am;u!==o&&i(u),d!==s&&a(d)},c=(0,t.useCallback)(vm(l,sm),[l]);return Ft({ref:e,onResize:c}),(0,t.useEffect)(l,[]),{isScrolledAtEnd:s,isScrolledAtStart:o,onScroll:vm(l,sm)}};var Em=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xm=e=>{const{ariaLabelArrows:n,arrowsScrollStep:o=300,children:i,direction:s=dm,hasArrows:a=!1,isScrollbarDisabled:l,overflowDecorators:c=fm}=e,p=Em(e,["ariaLabelArrows","arrowsScrollStep","children","direction","hasArrows","isScrollbarDisabled","overflowDecorators"]),u=(0,t.useRef)(null),d=(0,t.useRef)(null),{isScrolledAtEnd:f,isScrolledAtStart:m,onScroll:y}=Pm({contentReference:u,direction:s,viewportReference:d}),{classProps:b}=ym({direction:s,isScrollbarDisabled:l,isScrolledAtStart:m,isScrolledAtEnd:f,overflowDecorators:c}),{styleProps:g,props:O}=oe(p);return r().createElement("div",Object.assign({},O,g,{className:C()(b.root,g.className)}),r().createElement("div",{className:b.viewport,onScroll:y,ref:d,tabIndex:0},r().createElement("div",{className:b.content,ref:u},i)),r().createElement("div",{className:b.overflowDecorators,"aria-hidden":"true"}),a&&r().createElement(Om,{ariaLabelArrows:n,direction:s,scrollStep:o,viewportRef:d}))};xm.spiritComponent="ScrollView";const jm=xm,Sm={[Je.XSMALL]:{paddingY:{mobile:"space-900",tablet:"space-1000"}},[Je.SMALL]:{paddingY:{mobile:"space-1000",tablet:"space-1100"}},[Je.MEDIUM]:{paddingY:{mobile:"space-1100",tablet:"space-1300"}},[Je.LARGE]:{paddingY:{mobile:"space-1200",tablet:"space-1400"}},[Je.XLARGE]:{paddingY:{mobile:"space-1400",tablet:"space-1600"}}},wm=e=>{const{size:t}=e;return{modifiedProps:t?Object.assign(Object.assign({},Sm[t]),e):e}},Tm=e=>{const{backgroundColor:t}=e||{},n=h(`bg-${t}`),r=t?n:"";return{classProps:C()({[r]:t})}};var Cm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Am={containerProps:void 0,elementType:"section",hasContainer:!0,size:void 0},Nm=e=>{const t=Object.assign(Object.assign({},Am),e),{elementType:n="section",backgroundColor:o,children:i,containerProps:s,hasContainer:a}=t,l=Cm(t,["elementType","backgroundColor","children","containerProps","hasContainer"]),{classProps:c}=Tm({backgroundColor:o}),{modifiedProps:p}=wm(l),{styleProps:u,props:d}=oe(p,{paddingTop:k.paddingTop,paddingBottom:k.paddingBottom,paddingY:k.paddingY,textAlignment:D.textAlignment}),f=ie(n,{classProps:c,styleProps:u});return r().createElement(n,Object.assign({},d,f),a?r().createElement(qo,Object.assign({},s),i):i)};Nm.spiritComponent="Section";const _m=Nm,Im=(0,t.createContext)({isMultiselect:!1,name:"",selectedValue:[],setSelectedValue:()=>{},onSelectionChange:()=>{}}),Rm=Im.Provider;var km=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Dm=e=>{const{isFluid:t,variant:n=it.OUTLINE}=e,r=km(e,["isFluid","variant"]),o=h("SegmentedControl"),i=`${o}--${n}`,s=`${o}--fluid`,a=`${o}Item`,l=`${a}__input`,c=`${a}__label`;return{classProps:{root:C()(o,i,{[s]:t}),input:l,label:c},props:r}};var Lm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $m={isFluid:!1,isMultiselect:!1,variant:it.OUTLINE},Mm=e=>{const t=Object.assign(Object.assign({},$m),e),{children:n,isMultiselect:o,label:i,name:s,onSelectionChange:a,selectedValue:l,setSelectedValue:c}=t,p=Lm(t,["children","isMultiselect","label","name","onSelectionChange","selectedValue","setSelectedValue"]),{classProps:u,props:d}=Dm(p),{styleProps:f,props:m}=oe(d),y={isMultiselect:o,name:s,selectedValue:l,setSelectedValue:c,onSelectionChange:a};return r().createElement(Rm,{value:y},r().createElement("fieldset",Object.assign({},m,f,{className:C()(u.root,f.className)}),r().createElement(_i,{elementType:"legend"},i),n))};Mm.spiritComponent="SegmentedControl";const Bm=Mm;var Fm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hm=(0,t.forwardRef)(((e,n)=>{const{isMultiselect:o,name:i,onSelectionChange:s,selectedValue:a,setSelectedValue:l}=(0,t.useContext)(Im),{id:c,isDisabled:p,value:u,children:d}=e,f=Fm(e,["id","isDisabled","value","children"]),{classProps:m,props:y}=Dm(f),{styleProps:b,props:g}=oe(y),O=o?Array.isArray(a)&&a.includes(String(u)):a===String(u);return r().createElement(r().Fragment,null,r().createElement("input",Object.assign({},g,b,p&&{disabled:!0},{className:C()(m.input,b.className),type:o?"checkbox":"radio",name:i,id:c,value:u,checked:O,onChange:()=>(e=>{if(p)return;let t;if(o){const n=Array.isArray(a)?a:[];t=n.includes(e)?n.filter((t=>t!==e)):[...n,e]}else t=e;l(t),s&&s(t)})(String(u))})),r().createElement("label",Object.assign({ref:n,htmlFor:c},b,{className:C()(m.label,b.className)}),d))}));Hm.spiritComponent="SegmentedControlItem";const Um=Hm,zm=({defaultSelectedValue:e,isMultiselect:n})=>{let r;r=n?Array.isArray(e)?e:void 0!==e?[e]:[]:null!=e?e:"";const[o,i]=(0,t.useState)(r);return{selectedValue:o,setSelectedValue:i}},Vm=({isDisabled:e,isFluid:t,isLabelHidden:n,isRequired:r,size:o,validationState:i})=>{const s=h("Select"),a=`${s}--fluid`,l=`${s}--disabled`,c=`${s}--${o}`,p=`${s}--${i}`,u=`${s}__label`,d=`${u}--required`,f=`${u}--hidden`,m=`${s}__inputContainer`,y=`${s}__input`,b=`${s}__icon`,g=`${s}__validationText`,O=`${s}__helperText`;return{classProps:{root:C()(s,{[l]:e,[a]:t,[c]:o,[p]:i}),label:C()(u,{[d]:r,[f]:n}),container:m,input:y,icon:b,validationText:g,helperText:O}}};var Wm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xm=(0,t.forwardRef)(((e,t)=>{const{"aria-describedby":n="",children:o,hasValidationIcon:i,helperText:s,id:a,isDisabled:l,isFluid:c,isLabelHidden:p,isRequired:u,label:d,size:f=Ze.MEDIUM,validationState:m,validationText:y}=e,b=Wm(e,["aria-describedby","children","hasValidationIcon","helperText","id","isDisabled","isFluid","isLabelHidden","isRequired","label","size","validationState","validationText"]),{classProps:g}=Vm({hasValidationIcon:i,isDisabled:l,isFluid:c,isLabelHidden:p,isRequired:u,size:f,validationState:m}),{styleProps:O,props:h}=oe(b),[v,P]=vo(n),E=ho(v),x=Io({validationState:m,validationText:y});return r().createElement("div",Object.assign({},O,{className:C()(g.root,O.className)}),r().createElement(xo,{htmlFor:a,UNSAFE_className:g.label},d),r().createElement("div",{className:g.container},r().createElement("select",Object.assign({},h,E,{id:a,className:g.input,disabled:l,required:u,ref:t}),o),r().createElement("div",{className:g.icon},r().createElement(dt,{name:"chevron-down",boxSize:f===Ze.SMALL?16:20}))),r().createElement(To,{UNSAFE_className:g.helperText,id:`${a}__helperText`,registerAria:P,helperText:s}),m&&r().createElement(_o,Object.assign({UNSAFE_className:g.validationText},i&&{hasValidationStateIcon:m},{id:`${a}__validationText`,validationText:y,registerAria:P,role:x})))}));Xm.spiritComponent="Select";const Gm=Xm;var qm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ym(e){const t=e||{},{size:n}=t,r=qm(t,["size"]),o=h("Skeleton"),i=`${o}--${n}`,s=`${o}--text`,a=`${o}--heading`,l=`${o}__item`;return{classProps:{root:C()(o,{[i]:n}),text:s,heading:a,item:l},props:r}}const Qm=()=>{const{classProps:e}=Ym();return r().createElement("div",{className:C()(e.item),"aria-hidden":"true"})};Qm.spiritComponent="SkeletonItem";const Km=Qm;var Zm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jm={size:Je.MEDIUM,lines:1,elementType:"div"},ey=e=>{const t=Object.assign(Object.assign({},Jm),e),{elementType:n="div",lines:o}=t,i=Zm(t,["elementType","lines"]),{classProps:s,props:a}=Ym(i),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:s.root,classPropsText:s.text,styleProps:l,otherProps:c}),u=[...Array(null!=o?o:1).keys()];return r().createElement(n,Object.assign({},c,p),u.map((e=>r().createElement(Km,{key:`skeleton-item-${e.toString()}`}))))};ey.spiritComponent="SkeletonText";const ty=ey;var ny=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ry={size:Je.MEDIUM,lines:1,elementType:"div"},oy=e=>{const t=Object.assign(Object.assign({},ry),e),{elementType:n="div",lines:o}=t,i=ny(t,["elementType","lines"]),{classProps:s,props:a}=Ym(i),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:s.root,classPropsHeading:s.heading,styleProps:l,otherProps:c}),u=[...Array(null!=o?o:1).keys()];return r().createElement(n,Object.assign({},c,p),u.map((e=>r().createElement(Km,{key:`skeleton-item-${e.toString()}`}))))};oy.spiritComponent="SkeletonHeading";const iy=oy;var sy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ay=(e,t)=>{if(!t)return{};const n=`--${e}`;return{[n]:`${null==t?void 0:t.toString()}px`}},ly=e=>{const{height:t,width:n,borderRadius:r}=e,o=sy(e,["height","width","borderRadius"]),i=h("Skeleton"),s=`${i}--shape`,a=C()(i,s),l=`${we}skeleton-shape`;return{classProps:a,skeletonShapeStyleProps:Object.assign(Object.assign(Object.assign({},ay(`${l}-width`,n)),ay(`${l}-height`,t)),r?((e,t)=>{const n={},r=`--${we}radius-`;return"object"==typeof t&&null!==t?Object.keys(t).forEach((o=>{const i="mobile"===o?"":`-${o}`,s=t[o];n[`--${e}${i}`]=`var(${r}${s})`})):t&&(n[`--${e}`]=`var(${r}${t})`),n})(`${l}-radius`,r):{}),props:o}};var cy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const py={borderRadius:Fe[400],elementType:"div"},uy=e=>{const t=Object.assign(Object.assign({},py),e),{elementType:n="div"}=t,o=cy(t,["elementType"]),{classProps:i,skeletonShapeStyleProps:s,props:a}=ly(o),{styleProps:l,props:c}=oe(a),p=ie(n,{classProps:i,styleProps:l,skeletonShapeStyleProps:s,otherProps:c});return r().createElement(n,Object.assign({},c,p))};uy.spiritComponent="SkeletonShape";const dy=uy;var fy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function my(e){const t=fy(e,[]);return{classProps:h("SkipLink"),props:t}}var yy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const by={elementType:"a"},gy=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},by),e),{elementType:o=by.elementType,children:i}=n,s=yy(n,["elementType","children"]),{classProps:a,props:l}=my(s),{styleProps:c,props:p}=oe(l),u=ie("a",{classProps:a,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{href:s.href,ref:t}),i)}));gy.spiritComponent="SkipLink";const Oy=gy;var hy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function vy(e){const{isDisabled:t,isFluid:n,isLabelHidden:r,validationState:o}=e,i=hy(e,["isDisabled","isFluid","isLabelHidden","validationState"]),s=h("Slider"),a=C()(s),l=`${s}--disabled`,c=`${s}--fluid`,p=`${s}--${o}`,u=C()(`${s}__label`),d=`${s}__label--hidden`,f=`${s}__input`,m=`${s}__helperText`,y=`${s}__validationText`;return{classProps:{root:C()(a,{[l]:t,[c]:n,[p]:o}),label:C()(u,{[d]:r}),input:f,helperText:m,validationText:y},props:i}}var Py=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ey=Object.assign({},{max:100,min:0,step:1}),xy=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Ey),e),{"aria-describedby":o,hasValidationIcon:i,helperText:s,id:a,isDisabled:l,label:c,max:p,min:u,step:d,validationState:f,validationText:m,value:y}=n,b=Py(n,["aria-describedby","hasValidationIcon","helperText","id","isDisabled","label","max","min","step","validationState","validationText","value"]),{classProps:g,props:O}=vy(Object.assign(Object.assign({},b),{isDisabled:l,validationState:f})),{styleProps:h,props:v}=oe(O),[P,E]=vo(o),x=ho(P),j=Io({validationState:f,validationText:m}),S="--slider-position",w=e=>`${Math.round(100*(e-u)/(p-u))}%`;return r().createElement("div",Object.assign({},h,v,{className:C()(g.root,h.className)}),r().createElement(xo,{htmlFor:a,UNSAFE_className:g.label},c),r().createElement("input",Object.assign({},x,{className:g.input,id:a,onInput:e=>{const{target:t}=e,{value:n}=t;t.style.setProperty(S,w(Number(n)))},style:{[S]:`${w(y)}`},type:"range",min:u,max:p,step:d,value:y,disabled:l,ref:t})),r().createElement(To,{UNSAFE_className:g.helperText,helperText:s,id:`${a}__helperText`,registerAria:E}),f&&r().createElement(_o,Object.assign({UNSAFE_className:g.validationText},i&&{hasValidationStateIcon:f},{id:`${a}__validationText`,registerAria:E,validationText:m,role:j})))}));xy.spiritComponent="Slider";const jy=xy;function Sy(){return{classProps:h("SplitButton")}}var wy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ty={color:Ve.PRIMARY,size:Ze.MEDIUM},Cy=e=>{const t=Object.assign(Object.assign({},Ty),e),{children:n,color:o,size:i,isDisabled:s}=t,a=wy(t,["children","color","size","isDisabled"]),{classProps:l}=Sy(),{styleProps:c,props:p}=oe(a);return r().createElement(yr,{value:{color:o,size:i,isDisabled:s}},r().createElement("div",Object.assign({},c,p,{className:C()(l,c.className)}),n))};var Ay=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ny={dropdownPlacement:"bottom-end",dropdownTriggerIconName:"chevron-down"},_y=e=>{const n=Object.assign(Object.assign({},Ny),e),{buttonIconName:o,buttonLabel:i,buttonOnClick:s,children:a,dropdownTriggerIconName:l,dropdownTriggerLabel:c,dropdownPlacement:p,id:u,isButtonLabelHidden:d,isDisabled:f,isDropdownTriggerLabelHidden:m}=n,y=Ay(n,["buttonIconName","buttonLabel","buttonOnClick","children","dropdownTriggerIconName","dropdownTriggerLabel","dropdownPlacement","id","isButtonLabelHidden","isDisabled","isDropdownTriggerLabelHidden"]),[b,g]=(0,t.useState)(!1);return r().createElement(Cy,Object.assign({},y,{id:u,isDisabled:f}),r().createElement(Sr,{onClick:s},o&&r().createElement(dt,{name:o,marginRight:!d&&"space-400"}),d?r().createElement(_i,null,i):i),r().createElement(es,{id:`${u}-dropdown`,isOpen:b,onToggle:()=>g(!b),placement:p},r().createElement(os,{elementType:Sr},m?r().createElement(_i,null,c):c,r().createElement(dt,{name:l,marginLeft:!m&&"space-400"})),r().createElement(as,null,a)))};var Iy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ry=e=>{const{elementType:t="div",children:n}=e,o=Iy(e,["elementType","children"]),{classProps:i,props:s}=fs(o),{styleProps:a,props:l}=oe(s),c=ie(t,{classProps:i.item,styleProps:a,otherProps:l});return r().createElement(t,Object.assign({},l,c),n)};Ry.spiritComponent="StackItem";const ky=Ry;var Dy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ly=e=>{var{children:t}=e,n=Dy(e,["children"]);const{styleProps:o,props:i}=oe(n);return r().createElement("div",Object.assign({},i,o),t)};Ly.spiritComponent="TabContent";const $y=Ly,My=(0,t.createContext)({selectedId:"",selectTab:e=>{},onSelectionChange:(e,t)=>{}}),By=My.Provider,Fy=My.Consumer,Hy=()=>(0,t.useContext)(My),Uy=My;var zy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Vy(e={selectedId:"",forTabPane:"",id:""}){const{spacing:t}=Hy(),{selectedId:n,forTabPane:r,id:o}=e,i=zy(e,["selectedId","forTabPane","id"]),s=h("Tabs"),a=`${s}__item`,l=`${s}__link`,c=`${s}Pane`,p="is-selected",u=rn(t,"tabs");return{classProps:{item:a,link:C()(l,{[p]:!!r&&!!n&&n===r}),pane:C()(c,{[p]:!!o&&!!n&&n===o}),root:s},props:i,styleProps:u}}var Wy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xy=e=>{var{children:t,forTabPane:n,onClick:o}=e,i=Wy(e,["children","forTabPane","onClick"]);const{selectTab:s,selectedId:a,onSelectionChange:l}=Hy(),{classProps:c}=Vy({forTabPane:n,selectedId:a}),{styleProps:p,props:u}=oe(i);return r().createElement("li",{className:c.item,role:"presentation"},r().createElement("button",Object.assign({},u,p,{type:"button",className:C()(c.link,p.className),role:"tab","aria-selected":a===n,id:`${n}-tab`,"aria-controls":n.toString(),onClick:e=>{s(n),o&&o(e),l&&l(a,n)}}),t))};Xy.spiritComponent="TabItem";const Gy=Xy;var qy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yy={itemProps:{}},Qy=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Yy),e),{elementType:o="a",children:i,itemProps:s={}}=n,a=qy(n,["elementType","children","itemProps"]),{classProps:l}=Vy(),{styleProps:c,props:p}=oe(s),u=ie(o,{classProps:l.link});return r().createElement("li",Object.assign({},c,p,{className:C()(l.item,c.className),role:"presentation"}),r().createElement(o,Object.assign({},a,u,{ref:t}),i))}));Qy.spiritComponent="TabLink";const Ky=Qy;var Zy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jy=e=>{var{children:t}=e,n=Zy(e,["children"]);const{classProps:o,styleProps:i}=Vy(),{styleProps:s,props:a}=oe(n),l={style:Object.assign(Object.assign({},s.style),i)};return r().createElement("ul",Object.assign({},a,s,l,{className:C()(o.root,s.className),role:"tablist"}),t)};Jy.spiritComponent="TabList";const eb=Jy;var tb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nb=e=>{var{children:t,id:n}=e,o=tb(e,["children","id"]);const{selectedId:i}=Hy(),{classProps:s}=Vy({id:n,selectedId:i}),{styleProps:a,props:l}=oe(o);return i===n?r().createElement("div",Object.assign({},l,a,{id:n.toString(),className:C()(s.pane,a.className),role:"tabpanel","aria-labelledby":`${n}-tab`}),t):null};nb.spiritComponent="TabPane";const rb=nb,ob=({children:e,selectedTab:t,toggle:n,onSelectionChange:o,spacing:i})=>r().createElement(By,{value:{selectedId:t,selectTab:n,onSelectionChange:o,spacing:i}},e);ob.spiritComponent="Tabs";const ib=ob,sb=e=>{const[n,r]=(0,t.useState)(e),o=(0,t.useCallback)((e=>{r(e)}),[]);return{selectedId:n,selectTab:o}},ab=({children:e,defaultSelectedTab:t,onSelectionChange:n,spacing:o})=>{const{selectedId:i,selectTab:s}=sb(t);return r().createElement(By,{value:{selectedId:i,selectTab:s,onSelectionChange:n,spacing:o}},e)};ab.spiritComponent="UncontrolledTabs";const lb=ab,cb={NEUTRAL:"neutral"};var pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ub(e){const{color:t,isSubtle:n,size:r}=e,o=pb(e,["color","isSubtle","size"]),i=h("Tag"),s=`${i}--${t}`,a=`${i}--${r}`,l=`${i}--subtle`;return{classProps:C()(i,{[s]:t,[a]:r,[l]:n}),props:o}}var db=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fb={color:cb.NEUTRAL,elementType:"span",isSubtle:!1,size:Je.MEDIUM},mb=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},fb),e),{elementType:o=fb.elementType,children:i}=n,s=db(n,["elementType","children"]),{classProps:a,props:l}=ub(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{ref:t}),i)}));mb.spiritComponent="Tag";const yb=mb;var bb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function gb(e){const{emphasis:t,size:n,textColor:r}=e,o=bb(e,["emphasis","size","textColor"]),i=h("typography-body"),s=h(r?`text-${r}`:"");return{classProps:C()(`${i}-${n}-${t}`,{[s]:!!r}),props:o}}var Ob=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hb={elementType:"p",emphasis:Ye.REGULAR,size:Je.MEDIUM},vb=e=>{const t=Object.assign(Object.assign({},hb),e),{elementType:n="p",children:o}=t,i=Ob(t,["elementType","children"]),{classProps:s,props:a}=gb(i),{styleProps:l,props:c}=oe(a,{isTextBalanced:D.isTextBalanced,textAlignment:D.textAlignment,textHyphens:D.textHyphens,textWordBreak:D.textWordBreak}),p=ie(n,{classProps:s,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};vb.spiritComponent="Text";const Pb=vb;var Eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var xb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jb=(0,t.forwardRef)(((e,t)=>{const{classProps:n,props:o}=function(e){const{isMultiline:t,id:n}=e,r=Eb(e,["isMultiline","id"]);return{classProps:{input:`${h(t?"TextArea":"TextField")}__input`},props:Object.assign(Object.assign({},r),{isMultiline:t,id:n})}}(e),{id:i,isDisabled:s,isMultiline:a,isRequired:l,inputWidth:c,type:p}=o,u=xb(o,["id","isDisabled","isMultiline","isRequired","inputWidth","type"]),{props:d}=oe(u),f=a?"textarea":"input",m=a?void 0:p;return r().createElement(f,Object.assign({},d,{className:n.input,disabled:s,id:i,required:l,size:c,type:m,ref:t}))}));jb.spiritComponent="TextFieldBaseInput";const Sb=jb;var wb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tb=e=>{const{children:t,isPasswordShown:n,onToggleClick:o,isDisabled:i,size:s}=e,{classProps:a}=function(){const e=h("TextField");return{classProps:{passwordToggle:`${e}__passwordToggle`,passwordToggleButton:`${e}__passwordToggle__button`,passwordToggleIcon:`${e}__passwordToggle__icon`}}}();return r().createElement("div",{className:a.passwordToggle},t,r().createElement("button",{className:a.passwordToggleButton,type:"button",role:"switch","aria-checked":!!n,"aria-label":(n?"Hide":"Show")+" password",onClick:()=>o(),disabled:i},r().createElement("span",{className:a.passwordToggleIcon},r().createElement(dt,{name:"visibility-"+(n?"off":"on"),boxSize:s===Ze.SMALL?16:20}))))};Tb.spiritComponent="TextFieldBasePasswordToggle";const Cb=Tb;var Ab=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Nb(e){const n=e.displayName||e.name||"Component",o=(n,o)=>{const{isPasswordShown:i,passwordToggle:s}=(()=>{const[e,n]=(0,t.useState)(!1);return{isPasswordShown:e,passwordToggle:()=>n(!e)}})(),{hasPasswordToggle:a,isDisabled:l,size:c}=n,p=Ab(n,["hasPasswordToggle","isDisabled","size"]);return a?r().createElement(Cb,{isDisabled:l,isPasswordShown:i,onToggleClick:s,size:c},r().createElement(e,Object.assign({},p,{type:i?"text":"password",isDisabled:l,ref:o}))):r().createElement(e,Object.assign({},p,{isDisabled:l,ref:o}))};return o.displayName=`withPasswordToggle(${n})`,o}Nb.spiritComponent="withPasswordToggle";const _b=Nb;var Ib=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rb=(0,t.forwardRef)(_b(Sb)),kb=(0,t.forwardRef)(((e,t)=>{const{"aria-describedby":n="",hasValidationIcon:o,helperText:i,id:s,label:a,size:l=Ze.MEDIUM,validationState:c,validationText:p}=e,u=Ib(e,["aria-describedby","hasValidationIcon","helperText","id","label","size","validationState","validationText"]),{classProps:d,props:f}=function(e){const{isFluid:t,isMultiline:n,isLabelHidden:r,size:o,validationState:i}=e,s=wb(e,["isFluid","isMultiline","isLabelHidden","size","validationState"]),{isDisabled:a,isRequired:l}=s,c=h(n?"TextArea":"TextField"),p=`${c}--disabled`,u=`${c}--fluid`,d=`${c}--${o}`,f=`${c}--${i}`,m=`${c}__input`,y=`${c}__label`,b=`${c}__label--required`,g=`${c}__label--hidden`,O=`${c}__validationText`,v=`${c}__passwordToggle`,P=`${c}__passwordToggle__button`,E=`${c}__passwordToggle__icon`,x=`${c}__helperText`;return{classProps:{root:C()(c,{[p]:a,[u]:t,[f]:i,[d]:o}),label:C()(y,{[b]:l,[g]:r}),input:m,helperText:x,validationText:O,passwordToggle:v,passwordToggleButton:P,passwordToggleIcon:E},props:Object.assign(Object.assign({},s),{isMultiline:n})}}(Object.assign({id:s,size:l,validationState:c},u)),{styleProps:m,props:y}=oe(f),[b,g]=vo(n),O=ho(b),v=Io({validationState:c,validationText:p});return r().createElement("div",Object.assign({},m,{className:C()(d.root,m.className)}),r().createElement(xo,{htmlFor:s,UNSAFE_className:d.label},a),r().createElement(Rb,Object.assign({},y,O,{id:s,ref:t,size:l})),r().createElement(To,{UNSAFE_className:d.helperText,id:`${s}__helperText`,registerAria:g,helperText:i}),c&&r().createElement(_o,Object.assign({UNSAFE_className:d.validationText,elementType:"span"},o&&{hasValidationStateIcon:c},{id:`${s}__validationText`,validationText:p,registerAria:g,role:v})))}));kb.spiritComponent="TextFieldBase";const Db=kb;var Lb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $b=(0,t.forwardRef)(((e,n)=>{const{onInput:o,isAutoResizing:i,autoResizingMaxHeight:s=400}=e,a=Lb(e,["onInput","isAutoResizing","autoResizingMaxHeight"]),l=(0,t.useRef)(n),{adjustHeightOnAutoresize:c,onInput:p}=(({elementReference:e,maxHeight:n,onInput:r,isAutoResizing:o})=>{const i=e=>{const t=(parseFloat(getComputedStyle(e).getPropertyValue("border-top-width"))||0)+(parseFloat(getComputedStyle(e).getPropertyValue("border-bottom-width"))||0);e.style.height="auto",e.style.overflow="auto";const r=e.scrollHeight+t;e.style.height=`${r<n?r:n}px`,e.style.overflow=r<n?"hidden":"auto"},s=()=>{if(o){const t=null==e?void 0:e.current;t&&i(t)}};return(0,t.useEffect)((()=>{s()}),[]),{adjustHeight:i,adjustHeightOnAutoresize:s,onInput:e=>{s(),r&&r(e)}}})({elementReference:l,onInput:o,isAutoResizing:i,maxHeight:s});return r().createElement(Db,Object.assign({isMultiline:!0,ref:l,onInput:p,onFocus:c},a))}));$b.spiritComponent="TextArea";const Mb=$b,Bb=(0,t.forwardRef)(((e,t)=>r().createElement(Db,Object.assign({type:"text"},e,{ref:t}))));Bb.spiritComponent="TextField";const Fb=Bb,Hb={DOT:"dot",NUMBER:"number",ICON:"icon"},Ub=Ze.SMALL;var zb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Vb(e){const t=e||{},{markerBackgroundColor:n,markerBorderColor:r,markerTextColor:o,markerVariant:i,markerSize:s=Ub}=t,a=zb(t,["markerBackgroundColor","markerBorderColor","markerTextColor","markerVariant","markerSize"]),l=h("Timeline"),c=`${l}Content`,p=`${l}Heading`,u=`${l}Marker`,d=`${l}Step`,f=i===Hb.DOT||i===Hb.NUMBER,m=h(`bg-${n}`),y=h(`border-${r}`),b=h(`text-${o}`),g=n?m:"",O=r?y:"",v=o?b:"",P=C()(u,{[`${u}--${i}`]:!!i,[g]:f,[O]:f,[v]:!!o}),E=Wl(l,s);return{classProps:{content:c,heading:p,marker:P,root:C()(l,...E),step:d},props:a}}var Wb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xb={elementType:"ol",size:Ub},Gb=e=>{const t=Object.assign(Object.assign({},Xb),e),{elementType:n="ol",children:o,size:i}=t,s=Wb(t,["elementType","children","size"]),{classProps:a}=Vb({markerSize:i}),{styleProps:l,props:c}=oe(s),p=ie(n,{classProps:a.root,styleProps:l,otherProps:c});return r().createElement(n,Object.assign({},c,p),o)};Gb.spiritComponent="Timeline";const qb=Gb;var Yb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qb=e=>{const{children:t}=e,n=Yb(e,["children"]),{classProps:o}=Vb(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.content,i.className),style:i.style}),t)};Qb.spiritComponent="TimelineContent";const Kb=Qb;var Zb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jb=e=>{const{children:t}=e,n=Zb(e,["children"]),{classProps:o}=Vb(),{styleProps:i,props:s}=oe(n);return r().createElement("div",Object.assign({},s,{className:C()(o.heading,i.className),style:i.style}),t)};Jb.spiritComponent="TimelineHeading";const eg=Jb;var tg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ng={variant:"number"},rg=e=>{const t=Object.assign(Object.assign({},ng),e),{backgroundColor:n,borderColor:o,children:i,textColor:s,variant:a}=t,l=tg(t,["backgroundColor","borderColor","children","textColor","variant"]),{classProps:c}=Vb({markerBackgroundColor:n,markerBorderColor:o,markerTextColor:s,markerVariant:a}),{styleProps:p,props:u}=oe(l);return r().createElement("div",Object.assign({},u,{className:C()(c.marker,p.className),style:p.style,"aria-hidden":"true"}),a!==Hb.DOT&&i)};rg.spiritComponent="TimelineMarker";const og=rg;var ig=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sg={elementType:"li"},ag=e=>{const t=Object.assign(Object.assign({},sg),e),{elementType:n="li",children:o}=t,i=ig(t,["elementType","children"]),{classProps:s}=Vb(),{styleProps:a,props:l}=oe(i),c=ie(n,{classProps:s.step,styleProps:a,otherProps:l});return r().createElement(n,Object.assign({},l,c),o)};ag.spiritComponent="TimelineStep";const lg=ag;var cg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var pg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ug={alignmentX:ke.CENTER,alignmentY:Le.BOTTOM,isCollapsible:!0},dg=e=>{const t=Object.assign(Object.assign({},ug),e),{children:n,alignmentX:o,alignmentY:i}=t,s=pg(t,["children","alignmentX","alignmentY"]),{classProps:a,props:l}=function(e){const{alignmentX:t,alignmentY:n,isCollapsible:r}=e,o=cg(e,["alignmentX","alignmentY","isCollapsible"]),i=h("Toast"),s=[...function(e){return e.map((e=>"object"==typeof e&&null!==e?Object.keys(e).reduce(((t,n)=>[...t,`${i}${"mobile"===n?"":`--${n}`}--${e[n]}`]),[]):[`${i}--${e}`]))}([t,n])],a=`${i}--collapsible`;return{classProps:{root:C()(i,r&&a,...s),queue:`${i}__queue`},props:o}}(Object.assign(Object.assign({},s),{alignmentX:o,alignmentY:i})),{styleProps:c,props:p}=oe(l);return r().createElement("div",Object.assign({},p,c,{className:C()(a.root,c.className),role:"log"}),r().createElement("div",{className:a.queue},n))};dg.spiritComponent="Toast";const fg=dg,mg=250,yg={entering:"is-open is-transitioning",entered:"is-open",exiting:"is-hidden is-transitioning",exited:"is-hidden"},bg=20,gg="Close",Og="neutral",hg=3e3,vg={NEUTRAL:"neutral"};var Pg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Eg=e=>{const{color:t,isDismissible:n}=e,r=Pg(e,["color","isDismissible"]),o=h("ToastBar"),i=`${o}__box`,s=`${o}__close`,a=`${o}__container`,l=`${o}__content`,c=`${o}__link`,p=h("link-underlined"),u=`${o}--${t||vg.NEUTRAL}`,d=`${o}--dismissible`;return{classProps:{root:C()(o,u,n&&d),box:i,close:s,container:a,content:l,link:C()(c,p)},props:r}};var xg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jg=e=>{const{onClose:t,isOpen:n,id:o,closeLabel:i,isDismissible:s}=e,a=xg(e,["onClose","isOpen","id","closeLabel","isDismissible"]),{classProps:l,props:c}=Eg(Object.assign({},a)),{styleProps:p,props:u}=oe(c);return s&&t?r().createElement("button",Object.assign({},u,p,{type:"button",className:C()(l.close,p.className),onClick:t,"aria-expanded":n,"aria-controls":o}),r().createElement(dt,{name:"close"}),r().createElement(_i,null,i)):null};jg.spiritComponent="ToastCloseButton";const Sg=jg;var wg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Tg=e=>{const{id:n,children:o,closeLabel:i=gg,color:s=Og,hasIcon:a,iconName:l,isDismissible:c,isOpen:p=!0,onClose:u=()=>{}}=e,d=wg(e,["id","children","closeLabel","color","hasIcon","iconName","isDismissible","isOpen","onClose"]),f=(0,t.useRef)(null),m=function({color:e,iconName:t}){const n=wn(e,{danger:"danger",informative:"info",neutral:"info",success:"check-plain",warning:"warning"},Og);return t||n}({color:s,iconName:l}),{classProps:y,props:b}=Eg(Object.assign(Object.assign({},d),{color:s,isDismissible:c})),{styleProps:g,props:O}=oe(b);return r().createElement(Ct,{in:p,nodeRef:f,timeout:mg,unmountOnExit:!0},(e=>r().createElement("div",Object.assign({},g,O,{id:n,className:C()(y.root,yg[e],g.className),ref:f}),r().createElement("div",{className:y.box},r().createElement("div",{className:y.container},(a||l)&&r().createElement(dt,{name:m,boxSize:bg}),r().createElement("div",{className:y.content},o)),r().createElement(Sg,{id:n,isOpen:p,closeLabel:i,onClose:u,isDismissible:c})))))};Tg.spiritComponent="ToastBar";const Cg=Tg;var Ag=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ng=e=>{const{children:t}=e,n=Ag(e,["children"]),{styleProps:o,props:i}=oe(n);return r().createElement("div",Object.assign({},o,i,{className:C()(h("text-truncate-multiline"),o.className)}),t)};Ng.spiritComponent="ToastBarMessage";const _g=Ng;var Ig=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rg={elementType:"a"},kg=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},Rg),e),{elementType:o=Rg.elementType,children:i}=n,s=Ig(n,["elementType","children"]),{classProps:a,props:l}=Eg(Object.assign({},s)),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a.link,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{ref:t}),i)}));kg.spiritComponent="ToastBarLink";const Dg=kg,Lg=(0,t.createContext)({clear:()=>{},hide:()=>{},queue:[],setQueue:()=>{},show:()=>{}}),$g=()=>{const e=(0,t.useContext)(Lg);if(!e)throw new Error("useToast has to be used within <ToastProvider>");return e};var Mg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bg=e=>{const{alignmentX:t,alignmentY:n,isCollapsible:o,closeLabel:i}=e,s=Mg(e,["alignmentX","alignmentY","isCollapsible","closeLabel"]),{hide:a,queue:l}=$g();return r().createElement(fg,{alignmentX:t,alignmentY:n,isCollapsible:o},l.map((e=>{const{color:t,iconName:n,id:o,isOpen:l,content:c,hasIcon:p,isDismissible:u,linkProps:d}=e;return r().createElement(Cg,Object.assign({},s,{key:o,id:o,closeLabel:i,color:t,hasIcon:p,iconName:n,isDismissible:u,onClose:()=>a(o),isOpen:l&&!!c}),r().createElement(_g,null,c.message),c.link&&r().createElement(Dg,Object.assign({},d),c.link))})))};Bg.spiritComponent="UncontrolledToast";const Fg=Bg;var Hg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ug(e){const{isRequired:t=!1,isFluid:n=!1,isDisabled:r=!1,isLabelHidden:o=!1,validationState:i,hasIndicators:s=!1}=e,a=Hg(e,["isRequired","isFluid","isDisabled","isLabelHidden","validationState","hasIndicators"]),l=h("Toggle"),c=`${l}--fluid`,p=`${l}--disabled`,u=`${l}__text`,d=`${l}__label`,f=`${d}--hidden`,m=`${l}--${i}`,y=`${d}--required`,b=`${l}__input`,g=`${b}--indicators`,O=`${l}__helperText`,v=`${l}__validationText`;return{classProps:{root:C()(l,{[c]:n,[p]:r,[m]:i}),label:C()(d,{[y]:t,[f]:o}),text:u,helperText:O,input:C()(b,{[g]:s}),validationText:v},props:Object.assign(Object.assign({},a),{validationState:i,isDisabled:r,isRequired:t})}}var zg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vg=(0,t.forwardRef)(((e,n)=>{const{classProps:o,props:i}=Ug(e),{"aria-describedby":s="",hasValidationIcon:a,id:l,isDisabled:c,isChecked:p=!1,isRequired:u,label:d,helperText:f,onChange:m=()=>{},validationState:y,validationText:b}=i,g=zg(i,["aria-describedby","hasValidationIcon","id","isDisabled","isChecked","isRequired","label","helperText","onChange","validationState","validationText"]),{styleProps:O,props:h}=oe(g),[v,P]=vo(s),E=ho(v),[x,j]=(0,t.useState)(p),S=Io({validationState:y,validationText:b});return r().createElement("div",{style:O.style,className:C()(o.root,O.className)},r().createElement("div",{className:o.text},r().createElement(xo,{UNSAFE_className:o.label,htmlFor:l},d),r().createElement(To,{UNSAFE_className:o.helperText,id:`${l}__helperText`,registerAria:P,helperText:f}),y&&r().createElement(_o,Object.assign({UNSAFE_className:o.validationText},a&&{hasValidationStateIcon:y},{id:`${l}__validationText`,validationText:b,registerAria:P,role:S}))),r().createElement("input",Object.assign({},h,E,{type:"checkbox",id:l,className:o.input,disabled:c,checked:x,required:u,onChange:e=>{j(e.target.checked),m(e)},ref:n})))}));Vg.spiritComponent="Toggle";const Wg=Vg,Xg=(e=!1)=>{const[n,r]=(0,t.useState)(e);return{isOpen:n,onToggle:r}};var Gg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qg=e=>{const{children:t,isOpen:n}=e,o=Gg(e,["children","isOpen"]),{isOpen:i,onToggle:s}=Xg(n);return r().createElement(_f,Object.assign({},o,{isOpen:i,onToggle:s}),t)};qg.spiritComponent="UncontrolledTooltip";const Yg=qg,Qg={LINES:"lines",WORDS:"words",CHARACTERS:"characters"},Kg=(e,t)=>{const n=e.trim().split(/\s+/);return n.length<=t?e:`${n.slice(0,t).join(" ")}…`},Zg=(e,t)=>e.length<=t?e:`${e.slice(0,t)}…`,Jg=e=>e,eO=(e,n,r)=>(0,t.useMemo)((()=>{if("string"!=typeof e)return e;if(!r||r<=0)return e;switch(n){case Qg.WORDS:return Kg(e,r);case Qg.CHARACTERS:return Zg(e,r);case Qg.LINES:default:return Jg(e)}}),[e,n,r]);var tO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nO=e=>{const{limit:t,mode:n=Qg.LINES}=e,r=tO(e,["limit","mode"]),o=h(n===Qg.LINES?"text-truncate-multiline":""),i={};return n===Qg.LINES&&void 0!==t&&(i["--text-truncate-lines"]=t),{classProps:o,props:r,styleProps:i,effectiveMode:n,effectiveLimit:t}};var rO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oO={elementType:"span"},iO=e=>{const t=Object.assign(Object.assign({},oO),e),{children:n,elementType:o="span"}=t,i=rO(t,["children","elementType"]),{classProps:s,props:a,styleProps:l,effectiveMode:c,effectiveLimit:p}=nO(i),u=eO(n,c,c!==Qg.LINES?p:void 0),{styleProps:d,props:f}=oe(a),m=ie(o,{classProps:s,styleProps:d,truncateStyleProps:{style:Object.assign(Object.assign({},d.style),l)}});return r().createElement(o,Object.assign({},f,m),u)};iO.spiritComponent="Truncate";const sO=iO;var aO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lO=e=>{const{hasBottomDivider:t=!1}=e,n=aO(e,["hasBottomDivider"]),r=h("UNSTABLE_Header"),o=`${r}Logo`,i=`${r}--bottomDivider`;return{classProps:{root:C()(r,{[i]:t}),logo:o},props:n}};var cO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pO=e=>{const{children:t}=e,n=cO(e,["children"]),{classProps:o,props:i}=lO(n),{styleProps:s,props:a}=oe(i);return r().createElement("header",Object.assign({},a,{className:C()(o.root,s.className),style:s.style}),t)};pO.spiritComponent="UNSTABLE_Header";const uO=pO;var dO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fO={elementType:"a"},mO=(0,t.forwardRef)(((e,t)=>{const n=Object.assign(Object.assign({},fO),e),{elementType:o=fO.elementType,children:i}=n,s=dO(n,["elementType","children"]),{classProps:a,props:l}=lO(s),{styleProps:c,props:p}=oe(l),u=ie(o,{classProps:a.logo,styleProps:c,otherProps:p});return r().createElement(o,Object.assign({},p,u,{href:s.href,ref:t}),i)}));mO.spiritComponent="UNSTABLE_HeaderLogo";const yO=mO,bO={NONE:"none",AUTO:"auto",MANUAL:"manual"},gO={NORMAL:"normal",ANYWHERE:"anywhere",LONG_WORDS:"long-words"};function OO(e,t){return un(e,t)}const hO={OFF:"off",MOBILE_ONLY:"mobile-only",ALL:"all"};var vO;!function(e){e.TABLET="tablet",e.DESKTOP="desktop"}(vO||(vO={}));const PO=(e,t,n)=>{const r={};for(const[o,i]of Object.entries(e))for(const[e]of Object.entries(i))if(e.startsWith(t)){const i=`${n}-${o}-${e.replace(t,"").toLowerCase()}`;r[i.replace(/-/g,"_").toUpperCase()]=i}return r},EO=()=>PO(Ce,"content","accent"),xO=()=>PO(Ne,"content","emotion"),jO=()=>PO(Ce,"background","accent"),SO=()=>PO(Ne,"background","emotion"),wO=()=>PO(Ce,"border","accent"),TO=()=>PO(Ne,"border","emotion"),CO=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),AO=()=>({NEUTRAL_BASIC:"neutral-basic",NEUTRAL_SUBTLE:"neutral-subtle"}),NO=()=>Object.keys(Ce),_O=()=>Object.keys(Ne),IO=()=>Object.keys(_e),RO=(e,t)=>{const n=setTimeout((()=>{e(),clearTimeout(n)}),t)}})(),a})()));
|
|
16
16
|
//# sourceMappingURL=web-react.umd.min.js.map
|