@veeqo/ui 5.7.0 → 5.8.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/dist/components/DateRangeInput/DateRangeInput.d.ts +21 -0
- package/dist/components/DateRangeInput/DateRangeInput.test.d.ts +1 -0
- package/dist/components/DateRangeInput/index.d.ts +2 -0
- package/dist/components/DateRangeInput/styled.d.ts +4 -0
- package/dist/components/RangeCalendar/components/utils.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/index.d.ts +1 -312
- package/dist/theme/modules/text.d.ts +10 -311
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useState as t,PureComponent as n,useEffect as o,useMemo as a,forwardRef as r,useRef as i,createContext as l,useCallback as s,useContext as d,Component as c,Fragment as u,useImperativeHandle as m}from"react";import{motion as p,AnimatePresence as g}from"framer-motion";import h,{css as f,createGlobalStyle as v}from"styled-components";import{usePopper as b}from"react-popper";import y from"resize-observer-polyfill";import w,{createPortal as x}from"react-dom";import{CSSTransition as E,TransitionGroup as $}from"react-transition-group";import C from"lodash.throttle";import{useScroll as k}from"react-use";import D from"react-scrolllock-configurable";const S=h.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,I={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},L=(e,t)=>e||(t?I[t]:void 0),N={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},R={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},z={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var P,T;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(P||(P={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(T||(T={}));const M=function({increment:e,unit:t,count:n}){const o={};for(let a=0;a<=n;a++){const n=a*e;o[a]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),F={[T.none]:"0",[T.line]:"1px",[T.xs]:M[1],[T.sm]:M[2],[T.base]:M[4],[T.md]:M[6],[T.lg]:M[8],[T.xl]:M[12],[T.xxl]:M[16]},B=Object.assign(Object.assign({},F),M),A={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},O={headingXXL:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:N.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:A.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:N.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},j=Object.assign(Object.assign({},A),{breakpoints:R,colors:N,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:P,sizes:B,text:O}),{text:H,colors:W,fontFamily:V}=j,Z=h.span.attrs((({as:e,variant:t})=>({as:L(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${V};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?W.neutral.ink.lightest:H[e].color;return`\n font-family: ${H[e].fontFamily};\n font-style: ${H[e].fontStyle};\n font-weight: ${H[e].fontWeight};\n font-size: ${H[e].fontSize};\n line-height: ${H[e].lineHeight};\n color: ${n};\n text-decoration: ${H[e].textDecoration};\n letter-spacing: ${H[e].letterSpacing};\n `}}`,K=h(S).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,U=h(K).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${B.base};width:${B.base};color:${({glyphColor:e})=>e};}`,q=h(K).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,Y=h.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${j.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${j.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${j.colors.secondary.blue.light};}`,J=h(S).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,G=h(Z).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,X=h(p(S)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,_=h.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,Q=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:B.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"})),ee=({className:n,children:o,label:a,iconSlot:r,glyphColor:i=N.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:d})=>{const[c,u]=t(!!d);return e.createElement(_,{open:!!d,className:n},e.createElement(Y,{onClick:()=>u(!c)},e.createElement(J,null,e.createElement(U,{glyphColor:i},r,e.createElement(Z,{variant:"body"},a)),e.createElement(q,null,e.createElement(p.span,{animate:{rotate:c?180:0}},e.createElement(Q,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(G,{variant:"hintText"},s)),c&&e.createElement(X,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},o))};function te(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const ne=e=>`${e}-${Math.floor(1e3*Math.random())}`;class oe extends n{constructor(e){super(e),this.id=ne("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?x(e,this.portalNode):null}}const ae=h.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,re=h.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,ie=e=>e.filter(Boolean).join(" "),le=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,o)=>t+t+n+n+o+o)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},se=(e,t)=>{const n=le(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},de=["app.veeqo.com"];function ce(e,t=de){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const ue='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',me=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:a=!1})=>{o((()=>{if(!e||a)return;const t=e.querySelectorAll(ue);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,a]),o((()=>{if(!e||!e)return;const o=t=>{if("Tab"===t.key&&!t.shiftKey){const o=e.querySelectorAll(ue);if(o.length<1)return void n();o[0].focus(),t.stopPropagation(),t.preventDefault()}};return null==t||t.addEventListener("keydown",o),()=>null==t?void 0:t.removeEventListener("keydown",o)}),[t,e,n]);return{handleKeyDown:t=>{e&&("Escape"===t.key?n():a||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(ue),o=n[0],a=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),o.focus())})(t))}}},pe=n=>{var{id:r,children:i,zIndex:l=j.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:g=!1}=n,h=te(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop"]);const[f,v]=t(null),{styles:w,attributes:x,update:E}=b(d,f,{placement:s}),$=a((()=>r||ne("popover")),[r]);(({anchorElement:e,popoverId:t})=>{o((()=>{if(e){try{e.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",e),e.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",e),e.setAttribute("aria-controls",t))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",e),e.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${t}`)}return()=>{try{e.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[e,t])})({anchorElement:d,popoverId:$});const C=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:k}=me({popperElement:f,anchorElement:d,onClose:C,disableFocusLock:p});return o((()=>{if(!E||!f)return;const e=new y(E);return e.observe(f),()=>e.disconnect()}),[E,f]),o((()=>{if(E)return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)}),[E]),e.createElement(oe,{rootElementRef:c},!g&&e.createElement(re,{onClick:C,zIndex:l}),e.createElement(ae,Object.assign({open:!0,zIndex:l,ref:v,style:Object.assign(Object.assign({},w.popper),m),onKeyDown:k},x.popper,h),i))},ge=({width:t,height:n,className:o,color:a,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":r},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:a,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:a,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:a,offset:"100%"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:a,strokeWidth:"2"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),e.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),he=({width:t,height:n,className:o,color:a,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:a,"aria-label":r},e.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),fe=({width:t,height:n,className:o,color:a,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:a,"aria-label":r},e.createElement("circle",{cx:"15",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},e.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"105",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ve=({className:t,height:n=24,width:o=24,color:a="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(he,{className:t,height:n,width:o,color:a});case"ThreeDots":return e.createElement(fe,{className:t,height:n,width:o,color:a});default:return e.createElement(ge,{className:t,height:n,width:o,color:a})}},be=h.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>B[e]};height:${({size:e})=>B[e]};}`,ye=h.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${j.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",a="8px",r="16px",i="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",a="4px",r="14px",i="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${i};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${a};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,we=h(ye).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${j.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?j.colors.neutral.ink.base:j.colors.secondary.blue.base};&:hover{background-color:${j.colors.neutral.grey.lightest};}&:active{background-color:${j.colors.neutral.grey.lightest};border-color:${j.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${j.colors.neutral.grey.base} !important;border-color:${j.colors.neutral.grey.base} !important;color:${j.colors.neutral.ink.light} !important;}`,xe=h(we).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${j.colors.secondary.red.base};&:hover{color:${j.colors.secondary.red.dark};}&:active{border-color:${j.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};color:${j.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};}`,Ee=h(we).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${j.colors.secondary.blue.base};border-color:${j.colors.secondary.blue.base};color:white;&:hover{background-color:${j.colors.secondary.blue.dark};border-color:${j.colors.secondary.blue.dark};}&:active{background-color:${j.colors.secondary.blue.dark};border-color:${j.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}`,$e=h(Ee).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${j.colors.secondary.red.base};border-color:${j.colors.secondary.red.base};color:white;&:hover{background-color:${j.colors.secondary.red.dark};border-color:${j.colors.secondary.red.dark};}&:active{background-color:${j.colors.secondary.red.dark};border-color:${j.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.red.light};}`,Ce=h(ye).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${j.colors.neutral.ink.base};&:hover{background-color:${j.colors.neutral.grey.light};}&:active{background-color:${j.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,ke=h.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,De=h(ke).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${j.text.link.fontFamily};font-size:${j.text.link.fontSize};line-height:${j.text.link.fontSize};font-weight:${j.text.link.fontWeight};line-height:${j.text.link.lineHeight};text-decoration:${j.text.link.textDecoration};color:${j.colors.secondary.blue.base};&:hover{color:${j.colors.secondary.blue.dark};}& > * + *{margin-left:${j.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${j.colors.secondary.blue.light};border-radius:4px;}`,Se=h.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,Ie=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),Le={default:we,primary:Ee,destructive:xe,primaryDestructive:$e,flat:Ce,link:De,unstyled:ke},Ne=r(((t,n)=>{var{className:o,children:a,icon:r,variant:i="default",size:l="base",dropdown:s=!1,loading:d=!1}=t,c=te(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===i)return e.createElement(ke,Object.assign({ref:n,className:o},c),a);const u=Le[i],m=void 0!==a,p=!!r;return e.createElement(u,Object.assign({ref:n,className:o,size:l,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(be,{$loading:d,hasText:!!a,size:a||"sm"===l?"base":"md"},r&&r,void 0!==a&&a,s&&e.createElement(Ie,null)),d&&e.createElement(Se,null,e.createElement(ve,null)))})),Re=h.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${B.md};padding-right:${B.md};padding-left:${B.md};margin-bottom:${B.md};& > * + *{margin-top:${B.xs};}`,ze=h.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${B.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Pe=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:B.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),Te=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Me=({id:t,title:n,subtitle:o,headerVariant:a="headingSmall",action:r,ActionSlot:i,isCollapsed:l,onClickCollapse:s,onClickClose:d})=>e.createElement(Re,null,e.createElement(ze,null,e.createElement(Z,{id:t,variant:a},n),r&&e.createElement(Ne,{variant:"link",onClick:r.onClick},r.title),i,s&&e.createElement(Ne,{variant:"flat",icon:l?e.createElement(Pe,null):e.createElement(Q,null),onClick:s}),d&&e.createElement(Ne,{variant:"flat",icon:e.createElement(Te,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(Z,{variant:"subheadingSmall"},o)),{grey:Fe}=N.neutral,Be={0:"none",1:P.sm,2:P.base,3:P.md,4:P.lg},Ae={info:N.secondary.blue.base,success:N.secondary.green.base,error:N.secondary.red.base},Oe=h.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${B.base};padding:${B.md};z-index:2;`,je=h.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${B.md};padding-left:${B.md};margin-top:${B.md};margin-bottom:${B.md};font-family:${O.body.fontFamily};font-size:${O.body.fontSize};font-weight:${O.body.fontWeight};line-height:${O.body.lineHeight};color:${O.body.color};& + &{border-top:${B.line} solid ${Fe.base};padding-top:${B.md};}`,He=h.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${B.md};margin-right:-${B.md};`,We=h(p.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${je}:first-child{margin-top:0;}`,Ve=h.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${B.line} solid ${Fe.base};box-shadow:${e=>void 0!==e.elevation?Be[e.elevation]:P.sm};border-radius:${z.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${B.xs};\n background-color: ${Ae[e]};\n }\n `}`,Ze={expanded:{height:"auto"},collapsed:{height:0}},Ke=({className:n,style:o,title:a,subtitle:r,HeaderActionSlot:i,action:l,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),f=a&&e.createElement(Me,{title:a,subtitle:r,ActionSlot:i,action:l,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),v=s&&!g||!s,b=e.createElement(We,{animate:v?"expanded":"collapsed",variants:Ze,transition:{duration:.3,ease:"easeOut"}},e.createElement(je,null,u)),y=void 0!==p&&e.createElement(Oe,null,p());return e.createElement(Ve,{className:n,style:o,elevation:d,accent:c},f,b,y)};Ke.Surface=Ve,Ke.Section=je,Ke.FullBleed=He,Ke.Footer=Oe;const{sizes:Ue,colors:qe,text:Ye}=j,Je=h(Ke.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Ue.base} 0;display:flex;flex-direction:column;`,Ge=h.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${qe.neutral.grey.base};margin-top:${Ue.base};padding-top:${Ue.base};}`,Xe=h(Z).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Ue.sm} ${Ue.base} ${Ue.sm};`,_e=h(Ne).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Ue.lg};padding:${Ue.xs} ${Ue.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ye.body.fontFamily};font-size:${Ye.body.fontSize};font-weight:${Ye.body.fontWeight};&:hover{background-color:${qe.neutral.grey.light};color:${qe.secondary.blue.base};}& > * + *{margin-left:${Ue[3]};}`,Qe={item:_e,action:h(_e).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${qe.secondary.blue.base};`,link:h(_e).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${qe.secondary.blue.base};text-decoration:underline;`},et=({title:n,items:o=[],sections:a,buttonVariant:r,buttonSize:i})=>{const[l,s]=t(!1),[d,c]=t(null),u=t=>{const n=Qe[t.variant||"item"];return e.createElement(n,{onClick:()=>{return e=t.onClick,s(!1),void e();var e},key:t.title},t.icon&&t.icon,e.createElement("span",null,t.title))},m=a?a.map((t=>e.createElement(Ge,{key:t.title},t.title&&e.createElement(Xe,null,t.title),t.items.map(u)))):o.map(u);return e.createElement(e.Fragment,null,e.createElement(Ne,{dropdown:!0,variant:r,size:i,onClick:()=>s(!l),ref:c},n),l&&e.createElement(pe,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(Je,null,m)))},tt=h.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${j.text.link.fontFamily};font-style:${j.text.link.fontStyle};font-weight:${j.text.link.fontWeight};font-size:${j.text.link.fontSize};line-height:${j.text.link.lineHeight};color:${j.colors.secondary.blue.base};text-decoration:${j.text.link.textDecoration};&:hover{color:${j.colors.secondary.blue.dark};}`,nt=t=>{var{children:n,href:o,rel:a,allowedHostnames:r=de}=t,i=te(t,["children","href","rel","allowedHostnames"]);const l=ce(o,r),s=a||(l?"noopener noreferrer":void 0);return e.createElement(tt,Object.assign({href:o,rel:s},i),n)},ot=h(S).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,at=r(((t,n)=>{const{children:o,className:a,role:r}=t;return e.createElement(ot,{className:a,ref:n,role:r},o)})),rt=h(S).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,it=h(S).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,lt=h(at).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${j.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,st=({cta:t,shouldShowDropdown:n,children:a,className:r="animated-dropdown",reversed:l=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const g=i(null);return((e,t)=>{o((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])})(g,(e=>{n&&s(e)})),e.createElement(rt,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:g},!l&&t,e.createElement(it,{className:`${r}-wrap ${r}`},e.createElement(E,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(lt,{role:"dialog",reversed:l,className:`${r}-basic-dropdown ${r}`},a))),l&&t)},dt=h.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${j.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${j.text.bodySmallBold.fontFamily};font-weight:${j.text.bodySmallBold.fontWeight};font-size:${j.text.bodySmallBold.fontSize};line-height:${j.text.bodySmallBold.lineHeight};}`,ct=({width:t="40px",name:n="Veeqo",bgColor:o=j.colors.secondary.blue.base,textColor:a="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(dt,{width:t,bgColor:o,textColor:a,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},ut=h.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,mt=h(ut).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,pt=h(Z).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${j.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,gt=h.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,ht=h.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,ft=h(ut).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var vt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(vt||(vt={}));const bt={duration:400,side:vt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},yt=({content:n,text:o,hoverableElement:a,config:r,reversed:i,withTriangle:l,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},bt),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:f}=u,{styles:v,attributes:y}=b(a,d,{placement:`${p}-${i?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),w=Object.assign(Object.assign({},v.popper),{zIndex:j.layers.tooltip});return e.createElement(ht,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:w},y.popper,{role:"tooltip"}),e.createElement(ft,{className:s.wrap,tipMinWidth:h,tipMaxWidth:f},null!=n?n:e.createElement(pt,null,o)),l&&e.createElement(gt,{id:"veeqo-components-triangle",className:s.triangle}))},wt=({children:n,text:o,content:a,config:r,reversed:i=!1,className:l,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,g]=t(null),h=!!o&&o.trim().length>0,f={container:l&&`${l} ${l}-container`,tip:l&&`${l}-tip`,wrap:l&&`${l}-wrap`,triangle:l&&`${l}-triangle`,hoverable:l&&`${l}-hoverable`},v=!(!a&&!h);if(!v)return n;const b=u&&v&&e.createElement(yt,{classNames:f,hoverableElement:p,config:r,reversed:i,withTriangle:s,text:o,content:a});return e.createElement(ut,{className:f.container},c?w.createPortal(b,document.body):b,e.createElement(mt,{ref:g,className:f.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},xt=h(S).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${O.bodySmall.fontFamily};font-weight:${O.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${B.base};height:${B.base};}`,Et={default:h(xt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${N.secondary.blue.base};color:${N.secondary.blue.base};`,primary:h(xt).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};color:${N.secondary.blue.base};`,warning:h(xt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${N.secondary.yellow.base};background-color:${N.secondary.yellow.lightest};color:${N.secondary.orange.dark};`},$t=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:a,className:r,e2eClassName:i,children:l})=>{const s=Et[t];return e.createElement(wt,{text:a},e.createElement(s,{className:ie([r,i]),hideBorder:n},o&&o,l&&e.createElement("span",null,l)))},Ct=h(S).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,kt=h(S).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,Dt=h(S).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,St=h(Dt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${B.md};height:${B.md};color:${({accentColor:e})=>e};}`,It=h(S).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Lt=h(Dt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Nt=h(Z).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Rt={help:N.secondary.blue.base,info:N.neutral.ink.base,error:N.secondary.red.base,success:N.secondary.green.base},zt=t=>{var{type:n="info",text:o,icon:a,onClose:r,className:i,header:l,children:s,backgroundColor:d="white"}=t,c=te(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Rt[n];return e.createElement(Ct,Object.assign({accentColor:u,className:i,backgroundColor:d},c),e.createElement(kt,null,a&&e.createElement(St,{style:{marginRight:B.md},accentColor:u},a),s?e.createElement(It,null,s):e.createElement(e.Fragment,null,e.createElement(Lt,null,l||e.createElement(Nt,{variant:"headingSmall"},o)),e.createElement(Dt,null,r&&e.createElement(Ne,{variant:"flat","aria-label":"Close",icon:e.createElement(Te,null),onClick:r})))))},Pt=h.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${O.body.fontFamily};font-weight:${O.body.fontWeight};font-size:${O.body.fontSize};line-height:${O.body.lineHeight};`,Tt=h.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Mt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),Ft=({children:t,title:n,LinkComponent:o,href:a})=>o?e.createElement(Tt,{className:"breadcrumb"},e.createElement(o,{href:a},n),t):e.createElement(Tt,{className:"breadcrumb"},n,t),Bt=()=>e.createElement(Mt,{className:"separator",width:B.base,height:B.base}),At=({children:t,href:n})=>e.createElement("a",{href:n},t),Ot=({children:t})=>e.createElement("span",null,t),jt=({items:t,Separator:n=e.createElement(Bt,null),LinkComponent:o=At})=>e.createElement(Pt,{className:"breadcrumbs"},t.map(((a,r)=>e.createElement(Ft,{key:a.title,title:a.title,href:a.pathname,LinkComponent:r!==t.length-1?o:Ot},t.length!==r+1&&n))));function Ht(e,t){return e-t*Math.floor(e/t)}const Wt=1721426;function Vt(e,t,n,o){let a=(t=Kt(e,t))-1,r=-2;return n<=2?r=0:Zt(t)&&(r=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+r+o)}function Zt(e){return e%4==0&&(e%100!=0||e%400==0)}function Kt(e,t){return"BC"===e?1-t:t}function Ut(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const qt={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Yt{fromJulianDay(e){let t=e,n=t-Wt,o=Math.floor(n/146097),a=Ht(n,146097),r=Math.floor(a/36524),i=Ht(a,36524),l=Math.floor(i/1461),s=Ht(i,1461),d=Math.floor(s/365),c=400*o+100*r+4*l+d+(4!==r&&4!==d?1:0),[u,m]=Ut(c),p=t-Vt(u,m,1,1),g=2;t<Vt(u,m,3,1)?g=0:Zt(m)&&(g=1);let h=Math.floor((12*(p+g)+373)/367),f=t-Vt(u,m,h,1)+1;return new Yn(u,m,h,f)}toJulianDay(e){return Vt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return qt[Zt(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Zt(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const Jt={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Gt(e,t){return t=kn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Xt(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function _t(e,t){let n=e.calendar.toJulianDay(e),o=Math.ceil(n+1-function(e){let t=dn(e);return t&&Jt[t]||0}(t))%7;return o<0&&(o+=7),o}function Qt(e){return $n(function(e){return En(Date.now(),e)}(e))}function en(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function tn(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let nn=null;function on(){return null==nn&&(nn=(new Intl.DateTimeFormat).resolvedOptions().timeZone),nn}function an(e){return e.subtract({days:e.day-1})}function rn(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function ln(e,t){let n=_t(e,t);return e.subtract({days:n})}const sn=new Map;function dn(e){if(Intl.Locale){let t=sn.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&sn.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function cn(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function un(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const mn={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function pn(e){return gn(Kt((e=kn(e,new Yt)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gn(e,t,n,o,a,r,i){let l=new Date;return l.setUTCHours(o,a,r,i),l.setUTCFullYear(e,t-1,n),l.getTime()}function hn(e,t){if("UTC"===t)return 0;if(e>0&&t===on())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:o,day:a,hour:r,minute:i,second:l}=vn(e,t);return gn(n,o,a,r,i,l,0)-1e3*Math.floor(e/1e3)}const fn=new Map;function vn(e,t){let n=fn.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),fn.set(t,n));let o=n.formatToParts(new Date(e)),a={};for(let e of o)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?1-a.year:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}const bn=864e5;function yn(e,t,n,o){return(n===o?[n]:[n,o]).filter((n=>function(e,t,n){let o=vn(n,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}(e,t,n)))}function wn(e,t,n="compatible"){let o=Cn(e);if("UTC"===t)return pn(o);if(t===on()&&"compatible"===n){o=kn(o,new Yt);let e=new Date,t=Kt(o.era,o.year);return e.setFullYear(t,o.month-1,o.day),e.setHours(o.hour,o.minute,o.second,o.millisecond),e.getTime()}let a=pn(o),r=hn(a-bn,t),i=hn(a+bn,t),l=yn(o,t,a-r,a-i);if(1===l.length)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(a-r,a-i);case"compatible":case"later":return Math.max(a-r,a-i);case"reject":throw new RangeError("No such absolute time found")}}function xn(e,t,n="compatible"){return new Date(wn(e,t,n))}function En(e,t){let n=hn(e,t),o=new Date(e+n),a=o.getUTCFullYear(),r=o.getUTCMonth()+1,i=o.getUTCDate(),l=o.getUTCHours(),s=o.getUTCMinutes(),d=o.getUTCSeconds(),c=o.getUTCMilliseconds();return new _n(a,r,i,t,n,l,s,d,c)}function $n(e){return new Yn(e.calendar,e.era,e.year,e.month,e.day)}function Cn(e,t){let n=0,o=0,a=0,r=0;if("timeZone"in e)({hour:n,minute:o,second:a,millisecond:r}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:o,second:a,millisecond:r}=t),new Gn(e.calendar,e.era,e.year,e.month,e.day,n,o,a,r)}function kn(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=n.era,o.year=n.year,o.month=n.month,o.day=n.day,zn(o),o}function Dn(e,t,n){if(e instanceof _n)return e.timeZone===t?e:function(e,t){let n=pn(e)-e.offset;return kn(En(n,t),e.calendar)}(e,t);return En(wn(e,t,n),t)}const Sn=36e5;function In(e,t){let n=e.copy(),o="hour"in n?function(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Bn(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Bn(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Bn(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Bn(e.hour,24),t}(e)}(n,t):0;Ln(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Nn(n),Rn(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=o,function(e){for(;e.day<1;)e.month--,Nn(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Nn(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){var r,i;let e=null===(r=(i=n.calendar).isInverseEra)||void 0===r?void 0:r.call(i,n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ln(e,t){var n,o;(null===(n=(o=e.calendar).isInverseEra)||void 0===n?void 0:n.call(o,e))&&(t=-t),e.year+=t}function Nn(e){for(;e.month<1;)Ln(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ln(e,1)}function Rn(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function zn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Rn(e)}function Pn(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function Tn(e,t){return In(e,Pn(t))}function Mn(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),zn(n),n}function Fn(e,t){let n=e.copy();var o;return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),(o=n).millisecond=Math.max(0,Math.min(o.millisecond,1e3)),o.second=Math.max(0,Math.min(o.second,59)),o.minute=Math.max(0,Math.min(o.minute,59)),o.hour=Math.max(0,Math.min(o.hour,23)),n}function Bn(e,t){let n=e%t;return n<0&&(n+=t),n}function An(e,t,n,o){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),r=t.indexOf(e.era);if(r<0)throw new Error("Invalid era: "+e.era);r=jn(r,n,0,t.length-1,null==o?void 0:o.round),a.era=t[r],zn(a);break}case"year":var r,i;(null===(r=(i=a.calendar).isInverseEra)||void 0===r?void 0:r.call(i,a))&&(n=-n),a.year=jn(e.year,n,-1/0,9999,null==o?void 0:o.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=jn(e.month,n,1,e.calendar.getMonthsInYear(e),null==o?void 0:o.round);break;case"day":a.day=jn(e.day,n,1,e.calendar.getDaysInMonth(e),null==o?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),zn(a),a}function On(e,t,n,o){let a=e.copy();switch(t){case"hour":{let t=e.hour,r=0,i=23;if(12===(null==o?void 0:o.hourCycle)){let e=t>=12;r=e?12:0,i=e?23:11}a.hour=jn(t,n,r,i,null==o?void 0:o.round);break}case"minute":a.minute=jn(e.minute,n,0,59,null==o?void 0:o.round);break;case"second":a.second=jn(e.second,n,0,59,null==o?void 0:o.round);break;case"millisecond":a.millisecond=jn(e.millisecond,n,0,999,null==o?void 0:o.round);break;default:throw new Error("Unsupported field "+t)}return a}function jn(e,t,n,o,a=!1){if(a){(e+=Math.sign(t))<n&&(e=o);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>o&&(e=n)}else(e+=t)<n?e=o-(n-e-1):e>o&&(e=n+(e-o-1));return e}function Hn(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){n=wn(In(Cn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else n=pn(e)-e.offset;return n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),kn(En(n,e.timeZone),e.calendar)}function Wn(e){let t=kn(e,new Yt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Vn(e){return`${Wn(e)}T${t=e,`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}`;var t}function Zn(e){return`${Vn(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),o=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(o).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Kn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function Un(e){let t,n="object"==typeof e[0]?e.shift():new Yt;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var qn=new WeakMap;class Yn{copy(){return this.era?new Yn(this.calendar,this.era,this.year,this.month,this.day):new Yn(this.calendar,this.year,this.month,this.day)}add(e){return In(this,e)}subtract(e){return Tn(this,e)}set(e){return Mn(this,e)}cycle(e,t,n){return An(this,e,t,n)}toDate(e){return xn(this,e)}toString(){return Wn(this)}compare(e){return en(this,e)}constructor(...e){Kn(this,qn,{writable:!0,value:void 0});let[t,n,o,a,r]=Un(e);this.calendar=t,this.era=n,this.year=o,this.month=a,this.day=r,zn(this)}}var Jn=new WeakMap;class Gn{copy(){return this.era?new Gn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Gn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return In(this,e)}subtract(e){return Tn(this,e)}set(e){return Mn(Fn(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return An(this,e,t,n);default:return On(this,e,t,n)}}toDate(e,t){return xn(this,e,t)}toString(){return Vn(this)}compare(e){let t=en(this,e);return 0===t?function(e,t){return tn(e)-tn(t)}(this,Cn(e)):t}constructor(...e){Kn(this,Jn,{writable:!0,value:void 0});let[t,n,o,a,r]=Un(e);this.calendar=t,this.era=n,this.year=o,this.month=a,this.day=r,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,zn(this)}}var Xn=new WeakMap;class _n{copy(){return this.era?new _n(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new _n(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Hn(this,e)}subtract(e){return function(e,t){return Hn(e,Pn(t))}(this,e)}set(e,t){return function(e,t,n){let o=Cn(e),a=Fn(Mn(o,t),t);return 0===a.compare(o)?e:kn(En(wn(a,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,o){switch(t){case"hour":{let t=0,a=23;if(12===(null==o?void 0:o.hourCycle)){let n=e.hour>=12;t=n?12:0,a=n?23:11}let r=Cn(e),i=kn(Fn(r,{hour:t}),new Yt),l=[wn(i,e.timeZone,"earlier"),wn(i,e.timeZone,"later")].filter((t=>En(t,e.timeZone).day===i.day))[0],s=kn(Fn(r,{hour:a}),new Yt),d=[wn(s,e.timeZone,"earlier"),wn(s,e.timeZone,"later")].filter((t=>En(t,e.timeZone).day===s.day)).pop(),c=pn(e)-e.offset,u=Math.floor(c/Sn),m=c%Sn;return c=jn(u,n,Math.floor(l/Sn),Math.floor(d/Sn),null==o?void 0:o.round)*Sn+m,kn(En(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return On(e,t,n,o);case"era":case"year":case"month":case"day":return kn(En(wn(An(Cn(e),t,n,o),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=pn(e)-e.offset;return new Date(t)}(this)}toString(){return Zn(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Dn(e,this.timeZone).toDate().getTime()}constructor(...e){Kn(this,Xn,{writable:!0,value:void 0});let[t,n,o,a,r]=Un(e),i=e.shift(),l=e.shift();this.calendar=t,this.era=n,this.year=o,this.month=a,this.day=r,this.timeZone=i,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,zn(this)}}const Qn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eo=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],to=[1867,1911,1925,1988,2018],no=["meiji","taisho","showa","heisei","reiwa"];function oo(e){const t=Qn.findIndex((([t,n,o])=>e.year<t||(e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<o)));return-1===t?Qn.length-1:0===t?0:t-1}function ao(e){let t=to[no.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yn(e.year+t,e.month,e.day)}class ro extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=oo(t);return new Yn(this,no[n],t.year-to[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(ao(e))}balanceDate(e){let t=ao(e),n=oo(t);no[n]!==e.era&&(e.era=no[n],e.year=t.year-to[n]),this.constrainDate(e)}constrainDate(e){let t=no.indexOf(e.era),n=eo[t];if(null!=n){let[o,a,r]=n,i=o-to[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(r,e.day)))}if(1===e.year&&t>=0){let[,n,o]=Qn[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(o,e.day))}}getEras(){return no}getYearsInEra(e){let t=no.indexOf(e.era),n=Qn[t],o=Qn[t+1];if(null==o)return 9999-n[0]+1;let a=o[0]-n[0];return(e.month<o[1]||e.month===o[1]&&e.day<o[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(ao(e))}getMinimumMonthInYear(e){let t=io(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=io(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function io(e){if(1===e.year){let t=no.indexOf(e.era);return Qn[t]}}class lo extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Kt(t.era,t.year);return new Yn(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(so(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(so(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function so(e){let[t,n]=Ut(e.year+-543);return new Yn(t,n,e.month,e.day)}const co=1911;function uo(e){return"minguo"===e.era?e.year+co:1-e.year+co}function mo(e){let t=e-co;return t>0?["minguo",t]:["before_minguo",1-t]}class po extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Kt(t.era,t.year),[o,a]=mo(n);return new Yn(this,o,a,t.month,t.day)}toJulianDay(e){return super.toJulianDay(go(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=mo(uo(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(go(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-co}constructor(...e){super(...e),this.identifier="roc"}}function go(e){let[t,n]=Ut(uo(e));return new Yn(t,n,e.month,e.day)}const ho=1948320,fo=[0,31,62,93,124,155,186,216,246,276,306,336];class vo{fromJulianDay(e){let t=e-ho,n=1+Math.floor((33*t+3)/12053),o=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=o<216?Math.floor(o/31):Math.floor((o-6)/30);return new Yn(this,n,a+1,o-fo[a]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=fo[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){if(e.month<=6)return 31;if(e.month<=11)return 30;return Ht(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class bo extends Yt{fromJulianDay(e){let t,n,o,a=super.fromJulianDay(e),r=a.year-78,i=e-Vt(a.era,a.year,1,1);if(i<80?(r--,t=Zt(a.year-1)?31:30,i+=t+155+90+10):(t=Zt(a.year)?31:30,i-=80),i<t)n=1,o=i+1;else{let e=i-t;e<155?(n=Math.floor(e/31)+2,o=e%31+1):(e-=155,n=Math.floor(e/30)+7,o=e%30+1)}return new Yn(this,r,n,o)}toJulianDay(e){let t,n,o=e.year+78,[a,r]=Ut(o);return Zt(r)?(t=31,n=Vt(a,r,3,21)):(t=30,n=Vt(a,r,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&Zt(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const yo=1948440,wo=1948439,xo=1300,Eo=1600,$o=460322;function Co(e,t,n,o){return o+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function ko(e,t,n){let o=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+Co(t,o,1,1)))/29.5)+1),r=n-Co(t,o,a,1)+1;return new Yn(e,o,a,r)}function Do(e){return(14+11*e)%30<11}class So{fromJulianDay(e){return ko(this,yo,e)}toJulianDay(e){return Co(yo,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Do(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Do(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Io extends So{fromJulianDay(e){return ko(this,wo,e)}toJulianDay(e){return Co(wo,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Lo,No;function Ro(e){return $o+No[e-xo]}function zo(e,t){let n=1<<11-(t-1);return 0==(Lo[e-xo]&n)?29:30}function Po(e,t){let n=Ro(e);for(let o=1;o<t;o++)n+=zo(e,o);return n}function To(e){return No[e+1-xo]-No[e-xo]}class Mo extends So{fromJulianDay(e){let t=e-yo,n=Ro(xo),o=Ro(Eo);if(t<n||t>o)return super.fromJulianDay(e);{let e=xo-1,n=1,o=1;for(;o>0;){e++,o=t-Ro(e)+1;let a=To(e);if(o===a){n=12;break}if(o<a){let t=zo(e,n);for(n=1;o>t;)o-=t,n++,t=zo(e,n);break}}return new Yn(this,e,n,t-Po(e,n)+1)}}toJulianDay(e){return e.year<xo||e.year>Eo?super.toJulianDay(e):yo+Po(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<xo||e.year>Eo?super.getDaysInMonth(e):zo(e.year,e.month)}getDaysInYear(e){return e.year<xo||e.year>Eo?super.getDaysInYear(e):To(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Lo||(Lo=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!No){No=new Uint32Array(Eo-xo+1);let e=0;for(let t=xo;t<=Eo;t++){No[t-xo]=e;for(let n=1;n<=12;n++)e+=zo(t,n)}}}}const Fo=347997;function Bo(e){return Ht(7*e+1,19)<7}function Ao(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,o=29*t+Math.floor(n/25920);return Ht(3*(o+1),7)<3&&(o+=1),o}function Oo(e){return Ao(e)+function(e){let t=Ao(e-1),n=Ao(e);return Ao(e+1)-n==356?2:n-t==382?1:0}(e)}function jo(e){return Oo(e+1)-Oo(e)}function Ho(e,t){if(t>=6&&!Bo(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=jo(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Bo(e)?30:0:30}class Wo{fromJulianDay(e){let t=e-Fo,n=25920*t/765433,o=Math.floor((19*n+234)/235)+1,a=Oo(o),r=Math.floor(t-a);for(;r<1;)o--,a=Oo(o),r=Math.floor(t-a);let i=1,l=0;for(;l<r;)l+=Ho(o,i),i++;return i--,l-=Ho(o,i),new Yn(this,o,i,r-l)}toJulianDay(e){let t=Oo(e.year);for(let n=1;n<e.month;n++)t+=Ho(e.year,n);return t+e.day+Fo}getDaysInMonth(e){return Ho(e.year,e.month)}getMonthsInYear(e){return Bo(e.year)?13:12}getDaysInYear(e){return jo(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Bo(t.year)&&!Bo(e.year)&&t.month>6?e.month--:!Bo(t.year)&&Bo(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Vo=1723856,Zo=1824665,Ko=5500;function Uo(e,t,n,o){return e+365*t+Math.floor(t/4)+30*(n-1)+o-1}function qo(e,t){let n=Math.floor(4*(t-e)/1461),o=1+Math.floor((t-Uo(e,n,1,1))/30);return[n,o,t+1-Uo(e,n,o,1)]}function Yo(e){return Math.floor(e%4/3)}function Jo(e,t){return t%13!=0?30:Yo(e)+5}class Go{fromJulianDay(e){let[t,n,o]=qo(Vo,e),a="AM";return t<=0&&(a="AA",t+=Ko),new Yn(this,a,t,n,o)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Ko),Uo(Vo,t,e.month,e.day)}getDaysInMonth(e){return Jo(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Yo(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Xo extends Go{fromJulianDay(e){let[t,n,o]=qo(Vo,e);return t+=Ko,new Yn(this,"AA",t,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class _o extends Go{fromJulianDay(e){let[t,n,o]=qo(Zo,e),a="CE";return t<=0&&(a="BCE",t=1-t),new Yn(this,a,t,n,o)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Uo(Zo,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Jo(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Qo(e){switch(e){case"buddhist":return new lo;case"ethiopic":return new Go;case"ethioaa":return new Xo;case"coptic":return new _o;case"hebrew":return new Wo;case"indian":return new bo;case"islamic-civil":return new So;case"islamic-tbla":return new Io;case"islamic-umalqura":return new Mo;case"japanese":return new ro;case"persian":return new vo;case"roc":return new po;default:return new Yt}}let ea=new Map;class ta{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),o=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...o.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==ra&&(ra="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return ra}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=oa(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),o=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===o&&23===a)return"h23";if(24===o&&23===a)return"h24";if(0===o&&11===a)return"h11";if(12===o&&11===a)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=oa(e,t),this.options=t}}const na={true:{ja:"h11"},false:{}};function oa(e,t={}){if("boolean"==typeof t.hour12&&function(){null==aa&&(aa="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return aa}()){t={...t};let n=na[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:o,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ea.has(n))return ea.get(n);let o=new Intl.DateTimeFormat(e,t);return ea.set(n,o),o}let aa=null;let ra=null;l(null),l(null),l(null),l(null),l(null);const ia=l({}),la="undefined"!=typeof document?e.useLayoutEffect:()=>{};function sa(e){const t=i(null);return la((()=>{t.current=e}),[e]),s(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}const da={prefix:String(Math.round(1e10*Math.random())),current:0},ca=e.createContext(da),ua=e.createContext(!1);let ma=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),pa=new WeakMap;const ga="function"==typeof e.useId?function(n){let o=e.useId(),[a]=t(ba()),r=a||"test"===process.env.NODE_ENV?"react-aria":`react-aria${da.prefix}`;return n||`${r}-${o}`}:function(t){let n=d(ca);n!==da||ma||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=function(t=!1){let n=d(ca),o=i(null);if(null===o.current&&!t){var a,r;let t=null===(r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===r||null===(a=r.ReactCurrentOwner)||void 0===a?void 0:a.current;if(t){let e=pa.get(t);null==e?pa.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,pa.delete(t))}o.current=++n.current}return o.current}(!!t),a=n===da&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return t||`${a}-${o}`};function ha(){return!1}function fa(){return!0}function va(e){return()=>{}}function ba(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(va,ha,fa):d(ua)}let ya=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),wa=new Map;function xa(e){let[n,a]=t(e),r=i(null),l=ga(n),d=s((e=>{r.current=e}),[]);return ya&&wa.set(l,d),la((()=>{let e=l;return()=>{wa.delete(e)}}),[l]),o((()=>{let e=r.current;e&&(r.current=null,a(e))})),l}function Ea(e,t){if(e===t)return e;let n=wa.get(e);if(n)return n(t),t;let o=wa.get(t);return o?(o(e),e):t}function $a(e=[]){let n=xa(),[o,a]=function(e){let[n,o]=t(e),a=i(null),r=sa((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:n===e.value?r():o(e.value)}));la((()=>{a.current&&r()}));let l=sa((e=>{a.current=e(n),r()}));return[n,l]}(n),r=s((()=>{a((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,a]);return la(r,[n,r,...e]),o}function Ca(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const ka=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Da=e=>{if(e&&"window"in e&&e.window===e)return e;return ka(e).defaultView||window};function Sa(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Sa(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ia(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Sa(e))&&(o&&(o+=" "),o+=t);return o}function La(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let o=e[n];for(let e in o){let n=t[e],a=o[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Ca(n,a):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof a?"id"===e&&n&&a?t.id=Ea(n,a):t[e]=void 0!==a?a:n:t[e]=Ia(n,a)}}return t}const Na=new Set(["id"]),Ra=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),za=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Pa=/^(data-.*)$/;function Ta(e,t={}){let{labelable:n,isLink:o,propNames:a}=t,r={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Na.has(t)||n&&Ra.has(t)||o&&za.has(t)||(null==a?void 0:a.has(t))||Pa.test(t))&&(r[t]=e[t]);return r}function Ma(e){if(function(){if(null==Fa){Fa=!1;try{document.createElement("div").focus({get preventScroll(){return Fa=!0,!0}})}catch(e){}}return Fa}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;o instanceof HTMLElement&&n.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o}(t)}}let Fa=null;function Ba(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Aa(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Oa(){return Aa(/^Mac/i)}function ja(){return Aa(/^iPad/i)||Oa()&&navigator.maxTouchPoints>1}function Ha(){return Aa(/^iPhone/i)||ja()}function Wa(){return Ba(/AppleWebKit/i)&&!Ba(/Chrome/i)}function Va(){return Ba(/Android/i)}function Za(e,t,n=!0){var o,a;let{metaKey:r,ctrlKey:i,altKey:l,shiftKey:s}=t;Ba(/Firefox/i)&&(null===(a=window.event)||void 0===a||null===(o=a.type)||void 0===o?void 0:o.startsWith("key"))&&"_blank"===e.target&&(Oa()?r=!0:i=!0);let d=Wa()&&Oa()&&!ja()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});Za.isOpening=n,Ma(e),e.dispatchEvent(d),Za.isOpening=!1}Za.isOpening=!1;let Ka=new Map,Ua=new Set;function qa(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let o=Ka.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener("transitioncancel",t),Ka.delete(n.target)),0===Ka.size)){for(let e of Ua)e();Ua.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let o=Ka.get(n.target);o||(o=new Set,Ka.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function Ya(e){requestAnimationFrame((()=>{0===Ka.size?e():Ua.add(e)}))}function Ja(e,t){let{id:n,"aria-label":o,"aria-labelledby":a}=e;if(n=xa(n),a&&o){let e=new Set([n,...a.trim().split(/\s+/)]);a=[...e].join(" ")}else a&&(a=a.trim().split(/\s+/).join(" "));return o||a||!t||(o=t),{id:n,"aria-label":o,"aria-labelledby":a}}function Ga(e,t){const n=i(!0),a=i(null);o((()=>(n.current=!0,()=>{n.current=!1})),[]),o((()=>{n.current?n.current=!1:a.current&&!t.some(((e,t)=>!Object.is(e,a[t])))||e(),a.current=t}),t)}function Xa(e,t){la((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function _a(e,t){let n=window.getComputedStyle(e),o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function Qa(e,t){let n=e;for(_a(n,t)&&(n=n.parentElement);n&&!_a(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?qa():document.addEventListener("DOMContentLoaded",qa));let er=0;const tr=new Map;function nr(e,t,n,a){let r=sa(n),i=null==n;o((()=>{if(i||!e.current)return;let n=e.current;return n.addEventListener(t,r,a),()=>{n.removeEventListener(t,r,a)}}),[e,t,a,i,r])}function or(e,t){let n=ar(e,t,"left"),o=ar(e,t,"top"),a=t.offsetWidth,r=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(s,10),m=c+e.clientWidth,p=u+e.clientHeight;n<=i?i=n-parseInt(d,10):n+a>m&&(i+=n+a-m),o<=u?l=o-parseInt(s,10):o+r>p&&(l+=o+r-p),e.scrollLeft=i,e.scrollTop=l}function ar(e,t,n){const o="left"===n?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[o];break}t=t.offsetParent}return a}function rr(e,t){if(document.contains(e)){let i=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(i).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)_a(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)or(n,e)}else{var n;let{left:i,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:s,top:d}=e.getBoundingClientRect();var o,a,r;if(Math.abs(i-s)>1||Math.abs(l-d)>1)null==t||null===(a=t.containingElement)||void 0===a||null===(o=a.scrollIntoView)||void 0===o||o.call(a,{block:"center",inline:"center"}),null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"})}}}function ir(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Va()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function lr(e,t){let n=i(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function sr(e,n,a){let[r,l]=t(e||n),d=i(void 0!==e),c=void 0!==e;o((()=>{let e=d.current;e!==c&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),d.current=c}),[c]);let u=c?e:r,m=s(((e,...t)=>{let n=(e,...t)=>{a&&(Object.is(u,e)||a(e,...t)),c||(u=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l(((o,...a)=>{let r=e(c?u:o,...a);return n(r,...t),c?o:r}))}else c||l(e),n(e,...t)}),[c,u,a]);return[u,m]}let dr="default",cr="",ur=new WeakMap;function mr(e){if(Ha()){if("default"===dr){const t=ka(e);cr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}dr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ur.set(e,e.style.userSelect),e.style.userSelect="none")}function pr(e){if(Ha()){if("disabled"!==dr)return;dr="restoring",setTimeout((()=>{Ya((()=>{if("restoring"===dr){const t=ka(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=cr||""),cr="",dr="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ur.has(e)){let t=ur.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),ur.delete(e)}}const gr=e.createContext({register:()=>{}});function hr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function fr(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,hr(e,t,"set"),n),n}gr.displayName="PressResponderContext";var vr=new WeakMap;class br{continuePropagation(){fr(this,vr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,hr(e,vr,"get"));var e}constructor(e,t,n){Kn(this,vr,{writable:!0,value:void 0}),fr(this,vr,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const yr=Symbol("linkClicked");function wr(e){let{onPress:n,onPressChange:r,onPressStart:l,onPressEnd:c,onPressUp:u,isDisabled:m,isPressed:p,preventFocusOnPress:g,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:f,ref:v,...b}=function(e){let t=d(gr);if(t){let{register:n,...o}=t;e=La(o,e),n()}return Xa(t,e.ref),e}(e),[y,w]=t(!1),x=i({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:E,removeAllGlobalListeners:$}=function(){let e=i(new Map),t=s(((t,n,o,a)=>{let r=(null==a?void 0:a.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:n,eventTarget:t,fn:r,options:a}),t.addEventListener(n,o,a)}),[]),n=s(((t,n,o,a)=>{var r;let i=(null===(r=e.current.get(o))||void 0===r?void 0:r.fn)||o;t.removeEventListener(n,i,a),e.current.delete(o)}),[]),a=s((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return o((()=>a),[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}(),C=sa(((e,t)=>{let n=x.current;if(m||n.didFirePressStart)return!1;let o=!0;if(n.isTriggeringEvent=!0,l){let n=new br("pressstart",t,e);l(n),o=n.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,w(!0),o})),k=sa(((e,t,o=!0)=>{let a=x.current;if(!a.didFirePressStart)return!1;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1,a.isTriggeringEvent=!0;let i=!0;if(c){let n=new br("pressend",t,e);c(n),i=n.shouldStopPropagation}if(r&&r(!1),w(!1),n&&o&&!m){let o=new br("press",t,e);n(o),i&&(i=o.shouldStopPropagation)}return a.isTriggeringEvent=!1,i})),D=sa(((e,t)=>{let n=x.current;if(m)return!1;if(u){n.isTriggeringEvent=!0;let o=new br("pressup",t,e);return u(o),n.isTriggeringEvent=!1,o.shouldStopPropagation}return!0})),S=sa((e=>{let t=x.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&k(Cr(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,$(),f||pr(t.target))})),I=sa((e=>{h&&S(e)})),L=a((()=>{let e=x.current,t={onKeyDown(t){if(Er(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;Sr(t.target,t.key)&&t.preventDefault();let a=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,a=C(t,"keyboard");let o=t.currentTarget,r=t=>{Er(t,o)&&!t.repeat&&o.contains(t.target)&&e.target&&D(Cr(e.target,t),"keyboard")};E(ka(t.currentTarget),"keyup",Ca(r,n),!0)}a&&t.stopPropagation(),t.metaKey&&Oa()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!Za.isOpening){let n=!0;if(m&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||ir(t.nativeEvent))){m||g||Ma(t.currentTarget);let e=C(t,"virtual"),o=D(t,"virtual"),a=k(t,"virtual");n=e&&o&&a}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Er(t,e.target)){var o;Sr(t.target,t.key)&&t.preventDefault();let n=t.target;k(Cr(e.target,t),"keyboard",e.target.contains(n)),$(),"Enter"!==t.key&&xr(e.target)&&e.target.contains(n)&&!t[yr]&&(t[yr]=!0,Za(e.target,t,!1)),e.isPressed=!1,null===(o=e.metaKeyEvents)||void 0===o||o.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var a;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(a=e.target)||void 0===a||a.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(r=t.nativeEvent,!Va()&&0===r.width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType)return void(e.pointerType="virtual");var r;Dr(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let i=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,m||g||Ma(t.currentTarget),f||mr(e.target),i=C(t,e.pointerType),E(ka(t.currentTarget),"pointermove",n,!1),E(ka(t.currentTarget),"pointerup",o,!1),E(ka(t.currentTarget),"pointercancel",a,!1)),i&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Dr(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&kr(t,t.currentTarget)&&D(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&kr(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,C(Cr(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,k(Cr(e.target,t),e.pointerType,!1),I(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(kr(t,e.target)&&null!=e.pointerType?k(Cr(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&k(Cr(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),f||pr(e.target))},a=e=>{S(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&S(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(Dr(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=ir(t.nativeEvent)?"virtual":"mouse",m||g||Ma(t.currentTarget),C(t,e.pointerType)&&t.stopPropagation(),E(ka(t.currentTarget),"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=C(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=k(t,e.pointerType,!1),I(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||D(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&kr(t,e.target)&&null!=e.pointerType?k(Cr(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&k(Cr(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",m||g||Ma(t.currentTarget),f||mr(e.target),C(t,e.pointerType)&&t.stopPropagation(),E(Da(t.currentTarget),"scroll",o,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=$r(t.nativeEvent,e.activePointerId),o=!0;n&&kr(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,o=C(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,o=k(t,e.pointerType,!1),I(t)),o&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=$r(t.nativeEvent,e.activePointerId),o=!0;n&&kr(n,t.currentTarget)&&null!=e.pointerType?(D(t,e.pointerType),o=k(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(o=k(t,e.pointerType,!1)),o&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!f&&pr(e.target),$()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&S(t))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&S({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&S(e)}}return t}),[E,m,g,$,f,S,I,k,C,D]);return o((()=>()=>{var e;f||pr(null!==(e=x.current.target)&&void 0!==e?e:void 0)}),[f]),{isPressed:p||y,pressProps:La(b,L)}}function xr(e){return"A"===e.tagName&&e.hasAttribute("href")}function Er(e,t){const{key:n,code:o}=e,a=t,r=a.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==o||a instanceof Da(a).HTMLInputElement&&!Lr(a,n)||a instanceof Da(a).HTMLTextAreaElement||a.isContentEditable||("link"===r||!r&&xr(a))&&"Enter"!==n)}function $r(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const o=n[e];if(o.identifier===t)return o}return null}function Cr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function kr(e,t){let n=t.getBoundingClientRect(),o=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return r=o,!((a=n).left>r.right||r.left>a.right||a.top>r.bottom||r.top>a.bottom);var a,r}function Dr(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function Sr(e,t){return e instanceof HTMLInputElement?!Lr(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!xr(e)}const Ir=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lr(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Ir.has(e.type)}class Nr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Rr(e){let t=i({isFocused:!1,observer:null});la((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=sa((t=>{null==e||e(t)}));return s((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=e.target,a=e=>{t.current.isFocused=!1,o.disabled&&n(new Nr("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function zr(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:a}=e;const r=s((e=>{if(e.target===e.currentTarget)return o&&o(e),a&&a(!1),!0}),[o,a]),i=Rr(r),l=s((e=>{const t=ka(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),a&&a(!0),i(e))}),[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||o)?l:void 0,onBlur:t||!o&&!a?void 0:r}}}let Pr=null,Tr=new Set,Mr=new Map,Fr=!1,Br=!1;const Ar={Tab:!0,Escape:!0};function Or(e,t){for(let n of Tr)n(e,t)}function jr(e){Fr=!0,function(e){return!(e.metaKey||!Oa()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Pr="keyboard",Or("keyboard",e))}function Hr(e){Pr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Fr=!0,Or("pointer",e))}function Wr(e){ir(e)&&(Fr=!0,Pr="virtual")}function Vr(e){e.target!==window&&e.target!==document&&(Fr||Br||(Pr="virtual",Or("virtual",e)),Fr=!1,Br=!1)}function Zr(){Fr=!1,Br=!0}function Kr(e){if("undefined"==typeof window||Mr.get(Da(e)))return;const t=Da(e),n=ka(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Fr=!0,o.apply(this,arguments)},n.addEventListener("keydown",jr,!0),n.addEventListener("keyup",jr,!0),n.addEventListener("click",Wr,!0),t.addEventListener("focus",Vr,!0),t.addEventListener("blur",Zr,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Hr,!0),n.addEventListener("pointermove",Hr,!0),n.addEventListener("pointerup",Hr,!0)):(n.addEventListener("mousedown",Hr,!0),n.addEventListener("mousemove",Hr,!0),n.addEventListener("mouseup",Hr,!0)),t.addEventListener("beforeunload",(()=>{Ur(e)}),{once:!0}),Mr.set(t,{focus:o})}const Ur=(e,t)=>{const n=Da(e),o=ka(e);t&&o.removeEventListener("DOMContentLoaded",t),Mr.has(n)&&(n.HTMLElement.prototype.focus=Mr.get(n).focus,o.removeEventListener("keydown",jr,!0),o.removeEventListener("keyup",jr,!0),o.removeEventListener("click",Wr,!0),n.removeEventListener("focus",Vr,!0),n.removeEventListener("blur",Zr,!1),"undefined"!=typeof PointerEvent?(o.removeEventListener("pointerdown",Hr,!0),o.removeEventListener("pointermove",Hr,!0),o.removeEventListener("pointerup",Hr,!0)):(o.removeEventListener("mousedown",Hr,!0),o.removeEventListener("mousemove",Hr,!0),o.removeEventListener("mouseup",Hr,!0)),Mr.delete(n))};function qr(){return"pointer"!==Pr}function Yr(){return Pr}"undefined"!=typeof document&&function(e){const t=ka(e);let n;"loading"!==t.readyState?Kr(e):(n=()=>{Kr(e)},t.addEventListener("DOMContentLoaded",n))}();const Jr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gr(e,t,n){Kr(),o((()=>{let t=(t,o)=>{(function(e,t,n){var o;const a="undefined"!=typeof window?Da(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,r="undefined"!=typeof window?Da(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i="undefined"!=typeof window?Da(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Da(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof a&&!Jr.has(null==n||null===(o=n.target)||void 0===o?void 0:o.type)||(null==n?void 0:n.target)instanceof r||(null==n?void 0:n.target)instanceof i&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!Ar[n.key])})(!!(null==n?void 0:n.isTextInput),t,o)&&e(qr())};return Tr.add(t),()=>{Tr.delete(t)}}),t)}function Xr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:a}=e,r=i({isFocusWithin:!1}),l=s((e=>{r.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(r.current.isFocusWithin=!1,n&&n(e),a&&a(!1))}),[n,a,r]),d=Rr(l),c=s((e=>{r.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),a&&a(!0),r.current.isFocusWithin=!0,d(e))}),[o,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let _r=!1,Qr=0;function ei(){_r=!0,setTimeout((()=>{_r=!1}),50)}function ti(e){"touch"===e.pointerType&&ei()}function ni(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ti):document.addEventListener("touchend",ei),Qr++,()=>{Qr--,Qr>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ti):document.removeEventListener("touchend",ei))}}function oi(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:l,isDisabled:s}=e,[d,c]=t(!1),u=i({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;o(ni,[]);let{hoverProps:m,triggerHoverEnd:p}=a((()=>{let e=(e,t)=>{if(u.pointerType=t,s||"touch"===t||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let o=e.currentTarget;u.target=o,n&&n({type:"hoverstart",target:o,pointerType:t}),r&&r(!0),c(!0)},t=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let n=e.currentTarget;l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),c(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{_r&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(o.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||_r||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:o,triggerHoverEnd:t}}),[n,r,l,s,u]);return o((()=>{s&&p({currentTarget:u.target},u.pointerType)}),[s]),{hoverProps:m,isHovered:d}}function ai(e){if(!e)return;let t=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&n.stopPropagation()}}function ri(e={}){let{autoFocus:n=!1,isTextInput:o,within:a}=e,r=i({isFocused:!1,isFocusVisible:n||qr()}),[l,d]=t(!1),[c,u]=t((()=>r.current.isFocused&&r.current.isFocusVisible)),m=s((()=>u(r.current.isFocused&&r.current.isFocusVisible)),[]),p=s((e=>{r.current.isFocused=e,d(e),m()}),[m]);Gr((e=>{r.current.isFocusVisible=e,m()}),[],{isTextInput:o});let{focusProps:g}=zr({isDisabled:a,onFocusChange:p}),{focusWithinProps:h}=Xr({isDisabled:!a,onFocusWithinChange:p});return{isFocused:l,isFocusVisible:c,focusProps:a?h:g}}let ii=e.createContext(null);function li(e,t){let{focusProps:n}=zr(e),{keyboardProps:a}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ai(e.onKeyDown),onKeyUp:ai(e.onKeyUp)}}}(e),r=La(n,a),l=function(e){let t=d(ii)||{};Xa(t,e);let{ref:n,...o}=t;return o}(t),s=e.isDisabled?{}:l,c=i(e.autoFocus);return o((()=>{c.current&&t.current&&function(e){const t=ka(e);if("virtual"===Yr()){let n=t.activeElement;Ya((()=>{t.activeElement===n&&e.isConnected&&Ma(e)}))}else Ma(e)}(t.current),c.current=!1}),[t]),{focusableProps:La({...r,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const si=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),di=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ci(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return si.has(t.script)}let t=e.split("-")[0];return di.has(t)}const ui=Symbol.for("react-aria.i18n.locale");function mi(){let e="undefined"!=typeof window&&window[ui]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:ci(e)?"rtl":"ltr"}}let pi=mi(),gi=new Set;function hi(){pi=mi();for(let e of gi)e(pi)}const fi=e.createContext(null);function vi(){let e=function(){let e=ba(),[n,a]=t(pi);return o((()=>(0===gi.size&&window.addEventListener("languagechange",hi),gi.add(a),()=>{gi.delete(a),0===gi.size&&window.removeEventListener("languagechange",hi)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return d(fi)||e}const bi=Symbol.for("react-aria.i18n.locale"),yi=Symbol.for("react-aria.i18n.strings");let wi;class xi{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let o=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[o])return t[o];for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[bi];if(void 0===wi){let e=window[yi];if(!e)return null;wi={};for(let n in e)wi[n]=new xi({[t]:e[n]},t)}let n=null==wi?void 0:wi[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const Ei=new Map,$i=new Map;class Ci{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let o=t["="+e];if(o)return"function"==typeof o?o():o;let a=this.locale+":"+n,r=Ei.get(a);return r||(r=new Intl.PluralRules(this.locale,{type:n}),Ei.set(a,r)),o=t[r.select(e)]||t.other,"function"==typeof o?o():o}number(e){let t=$i.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),$i.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const ki=new WeakMap;function Di(e,t){return t&&xi.getGlobalDictionaryForPackage(t)||function(e){let t=ki.get(e);return t||(t=new xi(e),ki.set(e,t)),t}(e)}function Si(e,t){let{locale:n}=vi(),o=Di(e,t);return a((()=>new Ci(n,o)),[n,o])}function Ii(e){e=lr(null!=e?e:{},Li);let{locale:t}=vi();return a((()=>new ta(t,e)),[t,e])}function Li(e,t){if(e===t)return!0;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}var Ni={};function Ri(e){return e&&e.__esModule?e.default:e}Ni={"ar-AE":{dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`},"bg-BG":{dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`},"cs-CZ":{dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`},"el-GR":{dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`},"he-IL":{dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`},"ru-RU":{dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`},"uk-UA":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`}};const zi=new WeakMap;function Pi(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function Ti(e,t,n,o){let r=Si(Ri(Ni),"@react-aria/calendar"),i=Pi(e)||Pi(t),l=Ii({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n}),s=Ii({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n});return a((()=>{if(Gt(e,an(e))){if(Gt(t,rn(e)))return l.format(e.toDate(n));if(Gt(t,rn(t)))return o?Mi(l,r,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))}return o?Mi(s,r,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}),[e,t,l,s,r,n,o])}function Mi(e,t,n,o,a){let r=e.formatRangeToParts(n.toDate(a),o.toDate(a)),i=-1;for(let e=0;e<r.length;e++){let t=r[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let l="",s="";for(let e=0;e<r.length;e++)e<i?l+=r[e].value:e>i&&(s+=r[e].value);return t.format("dateRange",{startDate:l,endDate:s})}const Fi=7e3;let Bi=null;function Ai(e,t="assertive",n=Fi){Bi||(Bi=new Oi),Bi.announce(e,t,n)}class Oi{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=Fi){if(!this.node)return;let o=document.createElement("div");o.textContent=e,"assertive"===t?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),""!==e&&setTimeout((()=>{o.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function ji(e,n){let o=Si((r=Ni)&&r.__esModule?r.default:r,"@react-aria/calendar");var r;let i=Ta(e),l=Ti(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),s=Ti(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Ga((()=>{n.isFocused||Ai(s)}),[s]);let d=function(e){let t,n,o=Si(Ri(Ni),"@react-aria/calendar");"highlightedRange"in e?({start:t,end:n}=e.highlightedRange||{}):t=n=e.value;let r=Ii({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Pi(t)||Pi(n),timeZone:e.timeZone}),i="anchorDate"in e?e.anchorDate:null;return a((()=>{if(!i&&t&&n){if(Gt(t,n)){let n=r.format(t.toDate(e.timeZone));return o.format("selectedDateDescription",{date:n})}{let a=Mi(r,o,t,n,e.timeZone);return o.format("selectedRangeDescription",{dateRange:a})}}return""}),[t,n,i,e.timeZone,o,r])}(n);Ga((()=>{d&&Ai(d,"polite",4e3)}),[d]);let c=$a([Boolean(e.errorMessage),e.isInvalid,e.validationState]);zi.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:c,selectedDateDescription:d});let[u,m]=t(!1),p=e.isDisabled||n.isNextVisibleRangeInvalid();p&&u&&(m(!1),n.setFocused(!0));let[g,h]=t(!1),f=e.isDisabled||n.isPreviousVisibleRangeInvalid();return f&&g&&(h(!1),n.setFocused(!0)),{calendarProps:La(i,Ja({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":o.format("next"),isDisabled:p,onFocusChange:m},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":o.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:c},title:l}}function Hi(e,n,r){let{date:l,isDisabled:s}=e,{errorMessageId:d,selectedDateDescription:c}=zi.get(n),u=Si((m=Ni)&&m.__esModule?m.default:m,"@react-aria/calendar");var m;let p=Ii({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Pi(l),timeZone:n.timeZone}),g=n.isSelected(l),h=n.isCellFocused(l);s=s||n.isCellDisabled(l);let f=n.isCellUnavailable(l),v=!s&&!f,b=n.isValueInvalid&&("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&l.compare(n.highlightedRange.start)>=0&&l.compare(n.highlightedRange.end)<=0:n.value&&Gt(n.value,l));b&&(g=!0),l=lr(l,Xt);let y=a((()=>l.toDate(n.timeZone)),[l,n.timeZone]),w=function(e,t){return Gt(e,Qt(t))}(l,n.timeZone),x=a((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(Gt(l,n.value.start)||Gt(l,n.value.end))&&(e=c+", "),e+=p.format(y),w?e=u.format(g?"todayDateSelected":"todayDate",{date:e}):g&&(e=u.format("dateSelected",{date:e})),n.minValue&&Gt(l,n.minValue)?e+=", "+u.format("minimumDate"):n.maxValue&&Gt(l,n.maxValue)&&(e+=", "+u.format("maximumDate")),e}),[p,y,u,g,w,l,n,c]),E="";"anchorDate"in n&&h&&!n.isReadOnly&&v&&(E=n.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let $=function(e){let[n,o]=t();return la((()=>{if(!e)return;let t=tr.get(e);if(t)o(t.element.id);else{let n="react-aria-description-"+er++;o(n);let a=document.createElement("div");a.id=n,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},tr.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),tr.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}(E),C=i(!1),k=i(!1),D=i(null),{pressProps:S,isPressed:I}=wr({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!v||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(l);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!b){if(Gt(l,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(l),n.setDragging(!0),void(k.current=!0);if(Gt(l,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(l),n.setDragging(!0),void(k.current=!0)}let t=()=>{n.setDragging(!0),D.current=null,n.selectDate(l),n.setFocusedDate(l),C.current=!0};"touch"===e.pointerType?D.current=setTimeout(t,200):t()}},onPressEnd(){k.current=!1,C.current=!1,clearTimeout(D.current),D.current=null},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(l),n.setFocusedDate(l))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&D.current&&(n.selectDate(l),n.setFocusedDate(l)),"anchorDate"in n))if(k.current)n.setAnchorDate(l);else if(n.anchorDate&&!C.current)n.selectDate(l),n.setFocusedDate(l);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(l),n.setFocusedDate(l));else{n.selectDate(l);let e=l.add({days:1});n.isInvalid(e)&&(e=l.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}}),L=null;s||(L=Gt(l,n.focusedDate)?0:-1),o((()=>{h&&r.current&&(Ma(r.current),"pointer"!==Yr()&&document.activeElement===r.current&&rr(r.current,{containingElement:Qa(r.current)}))}),[h,r]);let N=Ii({day:"numeric",timeZone:n.timeZone,calendar:l.calendar.identifier}),R=a((()=>N.formatToParts(y).find((e=>"day"===e.type)).value),[N,y]);return{cellProps:{role:"gridcell","aria-disabled":!v||null,"aria-selected":g||null,"aria-invalid":b||null},buttonProps:La(S,{onFocus(){s||n.setFocusedDate(l)},tabIndex:L,role:"button","aria-disabled":!v||null,"aria-label":x,"aria-invalid":b||null,"aria-describedby":[b?d:null,$["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&v&&n.highlightDate(l)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:I,isFocused:h,isSelected:g,isDisabled:s,isUnavailable:f,isOutsideVisibleRange:l.compare(n.visibleRange.start)<0||l.compare(n.visibleRange.end)>0,isInvalid:b,formattedDate:R}}const Wi={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Vi(n){let{children:o,elementType:r="div",isFocusable:i,style:l,...s}=n,{visuallyHiddenProps:d}=function(e={}){let{style:n,isFocusable:o}=e,[r,i]=t(!1),{focusWithinProps:l}=Xr({isDisabled:!o,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...l,style:a((()=>r?n:n?{...Wi,...n}:Wi),[r])}}}(n);return e.createElement(r,La(s,d),o)}const Zi=Symbol("default");function Ki({values:t,children:n}){for(let[o,a]of t)n=e.createElement(o.Provider,{value:a},n);return n}function Ui(e){let{className:t,style:n,children:o,defaultClassName:r,defaultChildren:i,defaultStyle:l,values:s}=e;return a((()=>{let e,a,d;return e="function"==typeof t?t({...s,defaultClassName:r}):t,a="function"==typeof n?n({...s,defaultStyle:l||{}}):n,d="function"==typeof o?o({...s,defaultChildren:i}):null==o?i:o,{className:null!=e?e:r,style:a||l?{...l,...a}:void 0,children:null!=d?d:i,"data-rac":""}}),[t,n,o,r,i,l,s])}function qi(e,t,n){let o=function(e,t){let n=d(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));if(!t&&!n.slots[Zi])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let o=t||Zi;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return n.slots[o]}return n}(n,e.slot)||{},{ref:r,...l}=o,s=function(e){const t=i(null);return a((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}(a((()=>function(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(t,r)),[t,r])),c=La(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&("function"==typeof l.style||"function"==typeof e.style?c.style=t=>{let n="function"==typeof l.style?l.style(t):l.style,o={...t.defaultStyle,...n},a="function"==typeof e.style?e.style({...t,defaultStyle:o}):e.style;return{...o,...a}}:c.style={...l.style,...e.style}),[c,s]}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Yi=l(!1);function Ji(t){let n=(e,n)=>d(Yi)?null:t(e,n);return n.displayName=t.displayName||t.name,e.forwardRef(n)}"undefined"!=typeof DocumentFragment&&new DocumentFragment;const Gi=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Xi=l({});function _i(t,n){[t,n]=qi(t,n,Xi);let o=t,{buttonProps:a,isPressed:r}=function(e,t){let n,{elementType:o="button",isDisabled:a,onPress:r,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:m,href:p,target:g,rel:h,type:f="button"}=e;n="button"===o?{type:f,disabled:a}:{role:"button",tabIndex:a?void 0:0,href:"a"===o&&a?void 0:p,target:"a"===o?g:void 0,type:"input"===o?f:void 0,disabled:"input"===o?a:void 0,"aria-disabled":a&&"input"!==o?a:void 0,rel:"a"===o?h:void 0};let{pressProps:v,isPressed:b}=wr({onPressStart:i,onPressEnd:l,onPressChange:d,onPress:r,onPressUp:s,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:y}=li(e,t);u&&(y.tabIndex=a?-1:y.tabIndex);let w=La(y,v,Ta(e,{labelable:!0}));return{isPressed:b,buttonProps:La(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}(t,n),{focusProps:i,isFocused:l,isFocusVisible:s}=ri(t),{hoverProps:d,isHovered:c}=oi(t),u=Ui({...t,values:{isHovered:c,isPressed:r,isFocused:l,isFocusVisible:s,isDisabled:t.isDisabled||!1},defaultClassName:"react-aria-Button"});return e.createElement("button",{...Ta(t,{propNames:Gi}),...La(a,i,d),...u,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-pressed":o.isPressed||r||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-focus-visible":s||void 0})}const Qi=Ji(_i),el=l({});function tl(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function nl(e,t,n,o,a){let r={};for(let e in t)r[e]=Math.floor(t[e]/2),r[e]>0&&t[e]%2==0&&r[e]--;return rl(e,ol(e,t,n).subtract(r),t,n,o,a)}function ol(e,t,n,o,a){let r=e;return t.years?r=function(e){return an(e.subtract({months:e.month-1}))}(e):t.months?r=an(e):t.weeks&&(r=ln(e,n)),rl(e,r,t,n,o,a)}function al(e,t,n,o,a){let r={...t};return t.days?r.days--:t.weeks?r.weeks--:t.months?r.months--:t.years&&r.years--,rl(e,ol(e,t,n).subtract(r),t,n,o,a)}function rl(e,t,n,o,a,r){return a&&e.compare(a)>=0&&(t=un(t,ol($n(a),n,o))),r&&e.compare(r)<=0&&(t=cn(t,al($n(r),n,o))),t}function il(e,t,n){return t&&(e=un(e,$n(t))),n&&(e=cn(e,$n(n))),e}function ll(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:void 0}function sl(e){let n=a((()=>new ta(e.locale)),[e.locale]),o=a((()=>n.resolvedOptions()),[n]),{locale:r,createCalendar:i,visibleDuration:l={months:1},minValue:s,maxValue:d,selectionAlignment:c,isDateUnavailable:u,pageBehavior:m="visible"}=e,p=a((()=>i(o.calendar)),[i,o.calendar]),[g,h]=sr(e.value,e.defaultValue,e.onChange),f=a((()=>g?kn($n(g),p):null),[g,p]),v=a((()=>g&&"timeZone"in g?g.timeZone:o.timeZone),[g,o.timeZone]),b=a((()=>e.focusedValue?il(kn($n(e.focusedValue),p),s,d):void 0),[e.focusedValue,p,s,d]),y=a((()=>il(e.defaultFocusedValue?kn($n(e.defaultFocusedValue),p):f||kn(Qt(v),p),s,d)),[e.defaultFocusedValue,f,v,p,s,d]),[w,x]=sr(b,y,e.onFocusChange),[E,$]=t((()=>{switch(c){case"start":return ol(w,l,r,s,d);case"end":return al(w,l,r,s,d);default:return nl(w,l,r,s,d)}})),[C,k]=t(e.autoFocus||!1),D=a((()=>{let e={...l};return e.days?e.days--:e.days=-1,E.add(e)}),[E,l]),[S,I]=t(p.identifier);if(p.identifier!==S){let e=kn(w,p);$(nl(e,l,r,s,d)),x(e),I(p.identifier)}function L(e){e=il(e,s,d),x(e)}function N(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void h(null);if(!(t=ll(t=il(t,s,d),E,u)))return;t=kn(t,(null==g?void 0:g.calendar)||new Yt),h(g&&"hour"in g?g.set(t):t)}}tl(w,s,d)?x(il(w,s,d)):w.compare(E)<0?$(al(w,l,r,s,d)):w.compare(D)>0&&$(ol(w,l,r,s,d));let R=a((()=>!!f&&(!(!u||!u(f))||tl(f,s,d))),[f,u,s,d]),z=e.isInvalid||"invalid"===e.validationState||R,P=z?"invalid":null,T=a((()=>"visible"===m?l:dl(l)),[m,l]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:f,setValue:N,visibleRange:{start:E,end:D},minValue:s,maxValue:d,focusedDate:w,timeZone:v,validationState:P,isValueInvalid:z,setFocusedDate(e){L(e),k(!0)},focusNextDay(){L(w.add({days:1}))},focusPreviousDay(){L(w.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&L(w.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&L(w.subtract({weeks:1}))},focusNextPage(){let e=E.add(T);x(il(w.add(T),s,d)),$(ol(rl(w,e,T,r,s,d),T,r))},focusPreviousPage(){let e=E.subtract(T);x(il(w.subtract(T),s,d)),$(ol(rl(w,e,T,r,s,d),T,r))},focusSectionStart(){l.days?L(E):l.weeks?L(ln(w,r)):(l.months||l.years)&&L(an(w))},focusSectionEnd(){l.days?L(D):l.weeks?L(function(e,t){return ln(e,t).add({days:6})}(w,r)):(l.months||l.years)&&L(rn(w))},focusNextSection(e){e||l.days?l.days?this.focusNextPage():l.weeks?L(w.add({months:1})):(l.months||l.years)&&L(w.add({years:1})):L(w.add(dl(l)))},focusPreviousSection(e){e||l.days?l.days?this.focusPreviousPage():l.weeks?L(w.subtract({months:1})):(l.months||l.years)&&L(w.subtract({years:1})):L(w.subtract(dl(l)))},selectFocusedDate(){N(w)},selectDate(e){N(e)},isFocused:C,setFocused:k,isInvalid:e=>tl(e,s,d),isSelected(e){return null!=f&&Gt(e,f)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>C&&w&&Gt(e,w),isCellDisabled(t){return e.isDisabled||t.compare(E)<0||t.compare(D)>0||this.isInvalid(t,s,d)},isCellUnavailable:t=>e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=E.subtract({days:1});return Gt(e,E)||this.isInvalid(e,s,d)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return Gt(e,D)||this.isInvalid(e,s,d)},getDatesInWeek(e,t=E){let n=t.add({weeks:e}),o=[];n=ln(n,r);let a=_t(n,r);for(let e=0;e<a;e++)o.push(null);for(;o.length<7;){o.push(n);let e=n.add({days:1});if(Gt(n,e))break;n=e}for(;o.length<7;)o.push(null);return o}}}function dl(e){let t={...e};for(let n in e)t[n]=1;return t}function cl(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:$n(e),end:$n(t)}):null}function ul(e,t){return e=kn(e,(null==t?void 0:t.calendar)||new Yt),t&&"hour"in t?t.set(e):e}function ml(e,t,n){let o=e.add({days:n});for(;(n<0?o.compare(t.visibleRange.start)>=0:o.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(o);)o=o.add({days:n});return t.isCellUnavailable(o)?o.add({days:-n}):null}const pl=l({}),gl=l(null),hl=l(null);function fl(n,o){[n,o]=qi(n,o,pl);let{locale:r}=vi(),l=function(e){let{value:n,defaultValue:o,onChange:r,createCalendar:l,locale:s,visibleDuration:d={months:1},minValue:c,maxValue:u,...m}=e,[p,g]=sr(n,o||null,r),[h,f]=t(null),v="center";if(p&&p.start&&p.end){let e=nl($n(p.start),d,s,c,u).add(d).subtract({days:1});p.end.compare(e)>0&&(v="start")}let b=i(null),[y,w]=t(null),x=a((()=>un(c,null==y?void 0:y.start)),[c,y]),E=a((()=>cn(u,null==y?void 0:y.end)),[u,y]),$=sl({...m,value:p&&p.start,createCalendar:l,locale:s,visibleDuration:d,minValue:x,maxValue:E,selectionAlignment:v}),C=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(b.current={start:ml(t,$,-1),end:ml(t,$,1)},w(b.current)):(b.current=null,w(null))},[k,D]=t($.visibleRange);Xt($.visibleRange.start,k.start)&&Xt($.visibleRange.end,k.end)||(C(h),D($.visibleRange));let S=e=>{e?(f(e),C(e)):(f(null),C(null))},I=h?cl(h,$.focusedDate):p&&cl(p.start,p.end),L=t=>{if(!e.isReadOnly&&(t=ll(t=il(t,x,E),$.visibleRange.start,e.isDateUnavailable)))if(h){let e=cl(h,t);g({start:ul(e.start,null==p?void 0:p.start),end:ul(e.end,null==p?void 0:p.end)}),S(null)}else S(t)},[N,R]=t(!1),{isDateUnavailable:z}=e,P=a((()=>!(!p||h)&&(!(!z||!z(p.start)&&!z(p.end))||tl(p.start,c,u)||tl(p.end,c,u))),[z,p,h,c,u]),T=e.isInvalid||"invalid"===e.validationState||P,M=T?"invalid":null;return{...$,value:p,setValue:g,anchorDate:h,setAnchorDate:S,highlightedRange:I,validationState:M,isValueInvalid:T,selectFocusedDate(){L($.focusedDate)},selectDate:L,highlightDate(e){h&&$.setFocusedDate(e)},isSelected:e=>I&&e.compare(I.start)>=0&&e.compare(I.end)<=0&&!$.isCellDisabled(e)&&!$.isCellUnavailable(e),isInvalid(e){var t,n;return $.isInvalid(e)||tl(e,null===(t=b.current)||void 0===t?void 0:t.start,null===(n=b.current)||void 0===n?void 0:n.end)},isDragging:N,setDragging:R}}({...n,locale:r,createCalendar:Qo}),{calendarProps:s,prevButtonProps:d,nextButtonProps:c,errorMessageProps:u,title:m}=function(e,t,n){let o=ji(e,t),a=i(!1),r=i("undefined"!=typeof window?window:null);return nr(r,"pointerdown",(e=>{a.current=0===e.width&&0===e.height})),nr(r,"pointerup",(e=>{if(a.current)return void(a.current=!1);if(t.setDragging(!1),!t.anchorDate)return;let o=e.target;!n.current||!n.current.contains(document.activeElement)||n.current.contains(o)&&o.closest('button, [role="button"]')||t.selectFocusedDate()})),o.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&n.current.contains(e.relatedTarget)||!t.anchorDate||t.selectFocusedDate())},nr(n,"touchmove",(e=>{t.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),o}(n,l,o),p=Ui({...n,values:{state:l,isDisabled:n.isDisabled||!1,isInvalid:l.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return e.createElement("div",{...p,...s,ref:o,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":l.isValueInvalid||void 0},e.createElement(Ki,{values:[[Xi,{slots:{previous:d,next:c}}],[ia,{"aria-hidden":!0,level:2,children:m}],[hl,l],[el,{slots:{errorMessage:u}}]]},e.createElement(Vi,null,e.createElement("h2",null,s["aria-label"])),p.children,e.createElement(Vi,null,e.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>l.focusNextPage(),tabIndex:-1}))))}const vl=r(fl),bl=l(null);function yl(t,n){let o=d(gl),r=d(hl),i=null!=o?o:r,l=i.visibleRange.start;t.offset&&(l=l.add(t.offset));let{gridProps:s,headerProps:c,weekDays:u}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:o=t.visibleRange.end}=e,{direction:r}=vi(),i=Ti(n,o,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=zi.get(t),d=Ja({"aria-label":[l,i].filter(Boolean).join(", "),"aria-labelledby":s}),c=Ii({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:u}=vi(),m=a((()=>{let e=ln(Qt(t.timeZone),u);return[...new Array(7).keys()].map((n=>{let o=e.add({days:n}).toDate(t.timeZone);return c.format(o)}))}),[u,t.timeZone,c]);return{gridProps:La(d,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===r?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===r?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}({startDate:l,endDate:rn(l),weekdayStyle:t.weekdayStyle},i);var m;return e.createElement(bl.Provider,{value:{headerProps:c,weekDays:u,startDate:l}},e.createElement("table",{...Ta(t),...s,ref:n,style:t.style,className:null!==(m=t.className)&&void 0!==m?m:"react-aria-CalendarGrid"},"function"!=typeof t.children?t.children:e.createElement(e.Fragment,null,e.createElement(El,null,(t=>e.createElement(Cl,null,t))),e.createElement(Dl,null,t.children))))}const wl=r(yl);function xl(t,n){let{children:o,style:a,className:r}=t,{headerProps:i,weekDays:l}=d(bl);return e.createElement("thead",{...Ta(t),...i,ref:n,style:a,className:r||"react-aria-CalendarGridHeader"},e.createElement("tr",null,l.map(((t,n)=>e.cloneElement(o(t),{key:n})))))}const El=r(xl);function $l(t,n){let{children:o,style:a,className:r}=t;return e.createElement("th",{...Ta(t),ref:n,style:a,className:r||"react-aria-CalendarHeaderCell"},o)}const Cl=r($l);function kl(t,n){let{children:o,style:a,className:r}=t,i=d(gl),l=d(hl),s=null!=i?i:l,{startDate:c}=d(bl),{locale:u}=vi(),m=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((_t(an(e),t)+n)/7)}(c,u);return e.createElement("tbody",{...Ta(t),ref:n,style:a,className:r||"react-aria-CalendarGridBody"},[...new Array(m).keys()].map((t=>e.createElement("tr",{key:t},s.getDatesInWeek(t,c).map(((t,n)=>t?e.cloneElement(o(t),{key:n}):e.createElement("td",{key:n})))))))}const Dl=r(kl);function Sl({date:t,...n},o){let a=d(gl),r=d(hl),l=null!=a?a:r;var s;let{startDate:c}=null!==(s=d(bl))&&void 0!==s?s:{startDate:l.visibleRange.start},u=i(null),{cellProps:m,buttonProps:p,...g}=Hi({date:t},l,u),{hoverProps:h,isHovered:f}=oi({...n,isDisabled:g.isDisabled}),{focusProps:v,isFocusVisible:b}=ri();b&&(b=g.isFocused);let y=(x=kn(x=t,(w=c).calendar),w=an(w),x=an(x),!(w.era===x.era&&w.year===x.year&&w.month===x.month));var w,x;let E=!1,$=!1;"highlightedRange"in l&&l.highlightedRange&&(E=Gt(t,l.highlightedRange.start),$=Gt(t,l.highlightedRange.end));let C=Ui({...n,defaultChildren:g.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:f,isOutsideMonth:y,isFocusVisible:b,isSelectionStart:E,isSelectionEnd:$,...g}}),k={"data-focused":g.isFocused||void 0,"data-hovered":f||void 0,"data-pressed":g.isPressed||void 0,"data-unavailable":g.isUnavailable||void 0,"data-disabled":g.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":g.isOutsideVisibleRange||void 0,"data-outside-month":y||void 0,"data-selected":g.isSelected||void 0,"data-selection-start":E||void 0,"data-selection-end":$||void 0,"data-invalid":g.isInvalid||void 0};return e.createElement("td",{...m,ref:o},e.createElement("div",{...La(Ta(n),p,v,h,k,C),ref:u}))}const Il=r(Sl);function Ll(t,n){[t,n]=qi(t,n,ia);let{children:o,level:a=3,className:r,...i}=t,l=`h${a}`;return e.createElement(l,{...i,ref:n,className:null!=r?r:"react-aria-Heading"},o)}const Nl=r(Ll),Rl=t=>e.createElement(wl,Object.assign({weekdayStyle:"short"},t),e.createElement(El,null,(t=>e.createElement(Cl,null,t.slice(0,2)))),e.createElement(Dl,null,(t=>e.createElement(Il,{date:t})))),zl=f`.react-aria-Button{color:${j.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${j.sizes.base};height:${j.sizes.base};}&:not[disabled]:active,&:not[disabled]:focus-visible{box-shadow:0 0 0 var(--outline-width)${j.colors.secondary.blue.light};}&:not[disabled]:active,&:not[disabled]:hover{background-color:${j.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${j.colors.neutral.grey.base};cursor:default;}}`,Pl=f`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${j.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${j.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${j.colors.secondary.blue.light};}&[data-selected]{background:${j.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${j.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:default;}&[data-unavailable]{text-decoration:line-through;color:${j.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${j.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${j.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${j.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,Tl=f`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Ml=j.text.headingSmall,`\n font-family: ${Ml.fontFamily};\n font-style: ${Ml.fontStyle};\n font-weight: ${Ml.fontWeight};\n font-size: ${Ml.fontSize};\n line-height: ${Ml.lineHeight};\n color: ${Ml.color};\n text-decoration: ${Ml.textDecoration};\n letter-spacing: ${Ml.letterSpacing};\n`}}}.react-aria-CalendarHeaderCell{padding-bottom:${j.sizes.sm};}`;var Ml;const Fl=h(vl).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${j.colors.neutral.ink.base};font-size:14px;font-family:${j.fontFamily};${Tl} ${zl} ${Pl} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Bl=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),Al=t=>{var{disabledRanges:n=[],disallowWeekends:o=!1,isMultiMonth:a=!1}=t,r=te(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const{locale:i}=vi(),l=s((e=>!!o&&function(e,t){let n=e.calendar.toJulianDay(e),o=Math.ceil(n+1)%7;o<0&&(o+=7);let a=dn(t),[r,i]=mn[a]||[6,0];return o===r||o===i}(e,i)||n.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[n,o,i]);return e.createElement(Fl,Object.assign({isDateUnavailable:l,visibleDuration:a?{months:2}:void 0},r),e.createElement("header",null,e.createElement(Qi,{slot:"previous"},e.createElement(Bl,null)),e.createElement(Nl,null),e.createElement(Qi,{slot:"next"},e.createElement(Mt,null))),a?e.createElement("div",{style:{display:"flex",gap:j.sizes.sm,overflow:"auto"}},e.createElement(Rl,null),e.createElement(Rl,{offset:{months:1}})):e.createElement(Rl,null))};var Ol;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Ol||(Ol={}));const jl=h.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:a="base"}=e;let r,i,l,s,d="",c="";return"vertical"===t?(r=n&&Ol[n],i=o&&Ol[o],d=j.sizes[a],l="column"):(r=o&&Ol[o],i=n&&Ol[n],c=j.sizes[a],l="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${i};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;jl.displayName="Stack";const Hl={top:"flex-start",center:"center"},Wl=h.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${j.sizes.base};}`,Vl=h.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Hl[e.align]};width:24px;height:24px;`,Zl=h.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Kl=h.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${j.sizes.sm};}`,Ul=h.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${j.text.body.fontFamily};font-size:${j.text.body.fontSize};font-weight:${j.text.body.fontWeight};line-height:${j.sizes.md};color:${j.text.body.color};`,ql=h.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${j.fontFamily};font-size:${j.sizes[3]};line-height:${j.sizes[4]};color:${j.colors.neutral.ink.light};`,Yl=h.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${j.text.error.fontFamily};font-size:${j.text.error.fontSize};font-weight:${j.text.error.fontWeight};line-height:${j.text.error.lineHeight};color:${j.text.error.color};`,Jl=h.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Gl=h(Jl).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${j.colors.neutral.grey.dark};border-radius:${j.radius.md};padding:${j.sizes.base} 0.75rem;&:hover{border-color:${j.colors.secondary.blue.base};}& ${Ul}{font-weight:${j.text.bodyBold.fontWeight};}`,Xl=h(wt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,_l=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Ql=({id:t,label:n,hint:o,tooltip:a,error:r,bordered:i,Badge:l,Accessory:s,Footer:d,children:c,disabled:u=!1})=>{const m=e.createElement(Wl,null,e.createElement(Vl,{align:s?"center":"top"},c),s&&e.createElement(Zl,null,s),n||o||r||l||d?e.createElement(Kl,null,e.createElement(jl,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&e.createElement(Ul,null,n),a&&e.createElement(Xl,{text:a},e.createElement(_l,{name:"help",width:j.sizes.base,color:j.colors.neutral.ink.lightest}))),o&&e.createElement(ql,null,o),r&&e.createElement(Yl,null,r),d):null);return i?e.createElement(Gl,{disabled:u,htmlFor:t},m):e.createElement(Jl,{disabled:u,htmlFor:t},m)},{colors:es,sizes:ts,radius:ns}=j,os=h.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${es.neutral.ink.lightest};border-radius:${ns.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${es.secondary.blue.base};border-color:${es.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='white' /></svg>");background-repeat:no-repeat;background-size:${ts[4]};background-position:center;}&:hover{border-color:${es.secondary.blue.base};}&:active{border-color:${es.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${es.secondary.blue.light};outline:0;}&:indeterminate{background-color:${es.secondary.blue.base};border-color:${es.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='white'/></svg>");background-repeat:no-repeat;background-size:${ts[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${es.neutral.grey.base};border-color:${es.neutral.grey.base};color:${es.neutral.ink.light};cursor:default;}&:checked:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='%23637381' /></svg>");}&:indeterminate:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='%23637381'/></svg>");}`,as=t=>{var{checked:n,indeterminate:r,value:l,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=te(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=a((()=>ne("checkbox")),[]),f=i(null),v=s((e=>{p(e.currentTarget.checked,l)}),[p,l]);return o((()=>{f.current&&(f.current.indeterminate=!0===r)}),[r]),e.createElement(Ql,Object.assign({id:h,disabled:c},g),e.createElement(os,{ref:f,id:h,type:"checkbox",checked:n,value:l,name:d,disabled:c,"aria-label":u,className:m,onChange:v}))},rs=h.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,is=r(((t,n)=>{var{checked:o,value:a,name:r,disabled:i,onChange:l,id:d}=t,c=te(t,["checked","value","name","disabled","onChange","id"]);const u=s((e=>{l(e.currentTarget.checked,a)}),[l,a]),m=null!=d?d:ne("radio");return e.createElement(Ql,Object.assign({id:m,disabled:i},c),e.createElement(rs,{id:m,type:"radio",checked:o,value:a,name:r,disabled:i,onChange:u,ref:n}))})),ls=h.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,ss=h.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${j.text.inputLabel.fontFamily};font-size:${j.text.inputLabel.fontSize};font-style:${j.text.inputLabel.fontStyle};font-weight:${j.text.inputLabel.fontWeight};line-height:${j.text.inputLabel.lineHeight};text-decoration:${j.text.inputLabel.textDecoration};color:${j.text.inputLabel.color};`;class ds extends c{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:o}=this.props;let a=[];a=t?[...n,e]:n.filter((t=>t!==e)),o(a)}}render(){const{allowMultiple:t,options:n,selected:o,title:a,disabled:r,bordered:i}=this.props,l=t?as:is;return e.createElement(ls,{disabled:r},a&&e.createElement(ss,null,a),n.map((t=>e.createElement(l,Object.assign({key:t.value,bordered:i,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const cs=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),us=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),ms={width:B.base,height:B.base},ps=h(Ne).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${B.base};width:${B.base};top:unset;}`,gs=({className:t,text:n,onCopy:o})=>{const[a,r]=e.useState(!1),i=s((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(wt,{text:a?"Copied!":"Copy to clipboard"},e.createElement(ps,{variant:"flat",size:"sm",className:t,"aria-label":`${a?"Copied":"Copy"} "${n}" to clipboard`,icon:a?e.createElement(cs,Object.assign({color:N.secondary.green.base},ms)):e.createElement(us,Object.assign({color:N.secondary.blue.base},ms)),onClick:i}))};function hs(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function fs(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${fs(e.min,"max-content")}, ${fs(e.max)})`;default:return t||"1fr"}}function vs({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:a,stripingMode:r}){const i=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),l=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),s="start"!==o&&"none"!==o,d=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==o&&"none"!==o,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${j.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${j.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${j.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${j.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${a.map((e=>fs(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?i:""}\n ${t.length>0?l:""}\n\n ${d}\n ${u}\n\n ${"nested"===r?p:m}\n `}var bs;!function(e){e.ascending="ascending",e.descending="descending"}(bs||(bs={}));const ys=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),ws=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),xs=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),Es=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===bs.ascending?e.createElement(ws,{color:j.colors.neutral.ink.dark,size:o}):e.createElement(xs,{color:j.colors.neutral.ink.dark,size:o}):e.createElement(ys,{size:o});function $s(e,n){const[a,r]=t([]),i=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));r(n)};return o((()=>{i()}),[e.current]),o((()=>{if(!n.current)return;const e=C(i,50),t=new y(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),a}function Cs(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),a=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...a,...o],pinnedLeft:n,pinnedRight:o}}function ks(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},a=e=>{if(!n)return;const a=e.clientX-o.x;n.scrollLeft=o.left-a,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},i=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",a),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",i),()=>null==n?void 0:n.removeEventListener("mousedown",i)}),[e.current])}function Ds(){const[e,n]=t([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(t,o)=>{if(o)if(t){if(e.includes(o))return;const t=[...e,o];n(t)}else{const t=e.findIndex((e=>e===o));if(t<0)return;const a=[...e];a.splice(t,1),n(a)}}}}}function Ss(e){const[n,a]=t("start"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;a(o<t?"none":0!==n?n+t>=o?"end":"middle":"start")};return o((()=>{if(e.current)return e.current.addEventListener("scroll",r),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",r)}}),[e.current]),o((()=>{if(!e.current)return;const t=C(r,50),n=new y(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Is="56px",Ls=h.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Is};display:flex;align-items:center;justify-content:${({align:e="left"})=>hs(e)};background-color:white;padding-left:${({spacing:e=3})=>j.sizes[e]};padding-right:${({spacing:e=3})=>j.sizes[e]};border-bottom:1px solid ${j.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Ns(t){var{selected:n,indeterminate:o,onChange:a,selectionMode:r}=t,i=te(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(Ls,Object.assign({},i)):e.createElement(Ls,Object.assign({},i),e.createElement(as,{checked:n,indeterminate:o,onChange:a}))}const Rs=h.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>hs(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>j.sizes[e]};padding-right:${({spacing:e=3})=>j.sizes[e]};color:${j.text.bodySmall.color};font-family:${j.text.bodySmall.fontFamily};font-size:${j.text.bodySmall.fontSize};font-style:${j.text.bodySmall.fontStyle};font-weight:${j.text.bodySmall.fontWeight};line-height:${j.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${j.colors.secondary.blue.base};background-color:${j.colors.neutral.grey.lightest};}`;function zs(t){var{selected:n,rowId:o,onChange:a,selectionMode:r,disabled:i}=t,l=te(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(Rs,Object.assign({},l),e.createElement(is,{value:o,checked:n,disabled:i,onChange:a})):e.createElement(Rs,Object.assign({},l),e.createElement(as,{value:o,checked:n,disabled:i,onChange:a}))}const Ps=[[],()=>{}];function Ts({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const a=!!n,[r,i]=n||Ps,l=()=>{r.length!==o.length?i(o):i([])};return{selectionEnabled:a,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,a)=>e.createElement(Ns,Object.assign({},a,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:l,selectionMode:t})),renderCell:(n,o,a,r)=>e.createElement(zs,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:a.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)i([n]);else if(e){if(r.includes(n))return;const e=[...r,n];i(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),i(t)}}}}const Ms=h.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${j.colors.neutral.ink.lightest};`,Fs=h.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${j.text.headingTable.color};font-family:${j.text.headingTable.fontFamily};font-size:${j.text.headingTable.fontSize};font-style:${j.text.headingTable.fontStyle};font-weight:${j.text.headingTable.fontWeight};line-height:${j.text.headingTable.lineHeight};`,Bs=h(Fs).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${Ms}{background-color:${j.colors.neutral.grey.light};color:${j.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${j.colors.secondary.blue.light};}`;function As({column:t,sortState:n,onChangeSort:o}){if(t.sortable&&!n)throw new Error(`Column '${t.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(t.hidden)return null;const a={key:t.id.toString(),id:`datatable-header-${t.id}`,role:"columnheader",align:t.align,spacing:t.spacing,className:t.sortable?"sortable":void 0};if(t.renderHeader)return t.renderHeader(t,a);const r=t.sortable?Bs:Fs,i=t.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,o=e.direction===bs.ascending;let a=bs.ascending;return n&&o&&(a=bs.descending),{columnId:t,direction:a}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Ls,Object.assign({},a),e.createElement(wt,{text:t.tooltip},e.createElement(r,Object.assign({},i),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Ms,null,e.createElement(Es,{sortState:n,columnId:t.id,size:5})))))}const Os=j.colors.neutral.grey.base,js=j.colors.neutral.grey.dark,Hs=h.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${j.radius.base};background:${Os};background-image:linear-gradient(\n to right,\n ${Os} 0%,\n ${js} 20%,\n ${Os} 40%,\n ${Os} 100%\n );background-repeat:no-repeat;background-size:800px 104px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear;@keyframes placeholderShimmer{0%{background-position:-468px 0;}100%{background-position:468px 0;}}`;const Ws=h.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${Is};background-color:white;`,Vs=h.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${j.colors.neutral.grey.base};& > *{flex:1;}`;function Zs({selectionColumn:n,intersectionTargetRef:a,containerRef:r,children:i}){var l;const[s,d]=t(!1);o((()=>{if(!a.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(a.current),()=>e.disconnect()}),[a.current]);const c=null===(l=r.current)||void 0===l?void 0:l.getBoundingClientRect(),u={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},m=s?u:{position:"absolute",top:0,left:0,right:0};return e.createElement(Ws,{style:m},As({column:n}),e.createElement(Vs,null,i))}const Ks=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Us=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),qs=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Ys=h.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${j.sizes.lg};padding-bottom:${j.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${j.sizes.md};`,Js=h.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${j.sizes.md};background-color:${j.colors.neutral.grey.light};border-radius:${j.radius.full};`,Gs=h.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,Xs=h.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${j.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,_s=h.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Qs=h.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${j.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,ed=h.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,td={full:`border-width: 1px; border-radius: ${j.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},nd=h.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${j.colors.neutral.grey.dark};${({borderMode:e="full"})=>td[e]} &,& *{box-sizing:border-box;}`;function od({children:n,intersectionTargetRef:a,containerRef:r,cellWidths:l,tableCss:s}){const d=i(null),[c,u]=t(!1),[m,p]=t({top:0,left:0,width:0,height:0}),g=()=>{var e;const t=null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};p(n)},h=()=>{var e;if(!r.current)return;const t=r.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(o((()=>{if(!a.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(a.current),()=>e.disconnect()}),[a.current]),o((()=>{c&&r.current&&g()}),[r.current,c]),o((()=>{if(!c)return;if(!r.current)return;const e=C(g,33),t=new y(e);return t.observe(r.current),()=>t.disconnect()}),[r.current,c]),o((()=>{h()}),[c]),o((()=>{var e;return null===(e=r.current)||void 0===e||e.addEventListener("scroll",h),()=>{var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",h)}}),[r.current]),!c)return null;const f=Object.assign(Object.assign({},m),{height:Is,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${j.colors.neutral.grey.base}`}),v=s+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:f,ref:d},e.createElement(Qs,{css:v},e.createElement("thead",null,n)))}const ad=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:o})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==o?void 0:o.includes(e))||!1}),rd=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),e.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),e.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),id={icon:e.createElement(rd,{width:48,height:48}),heading:"No results"},ld=()=>{},sd=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:a=id,expandedRowIds:r,loading:l,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:f,enableStickyHeader:v})=>{const b=i(null),y=i(null),w=i(null);ks(b);const x=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:$,selectionColumn:C,setSelected:k}=Ts({selectionMode:m,selectionState:p,enabledRowIds:x}),D={setSelected:k||ld,setExpanded:g||ld},S=[C,...o],I=E?S:o,L=$s(y,b),{visible:N,pinnedLeft:R,pinnedRight:z}=Cs(I),{scrollPosition:P}=Ss(b),T=vs({pinnedLeft:R,pinnedRight:z,cellWidths:L,scrollPosition:P,visible:N,stripingMode:f});if(l){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(nd,{borderMode:n},e.createElement(_s,{ref:b},e.createElement(Qs,{css:T,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Xs,{role:"row"},N.map((e=>As({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(Xs,{key:t.id},N.map((n=>function(t,n){if(!0===n.hidden)return null;const o={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return e.createElement(Rs,Object.assign({},o),e.createElement(Hs,null))}(t,n))))))))))}if(0===c.length)return e.createElement(nd,{borderMode:n},e.createElement(_s,{ref:b},e.createElement(Qs,{css:T,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(Xs,{role:"row"},N.map((e=>As({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Ys,{columnCount:N.length},e.createElement(Js,null,a.icon),e.createElement(jl,{spacing:"sm",alignX:"center"},e.createElement(Z,{variant:"headingMedium"},a.heading),a.subheading&&e.createElement(Z,{variant:"subheadingMedium"},a.subheading)))))));const M=t=>{const{e2eClassName:n="",accentColor:o}=t,a=ad(t.id,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Xs,Object.assign({role:"row",key:t.id,accentColor:o,className:n},a),N.map((e=>function(e,t,n,o){if(t.hidden)return null;const a={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,a,n,o)}(t,e,D,a))))},F=(t,n)=>{var o,a;const i=null===(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===a?void 0:a.row,l=ad(n,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(Xs,{role:"row",key:t.id,className:i},N.map((n=>function(t,n,o){if(n.hidden)return null;const a={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,a,o):e.createElement(Rs,Object.assign({},a))}(t,n,l))))},B=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},M(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>F(e,t.id)))))},A=e.createElement(Xs,{role:"row"},N.map((e=>As({column:e,sortState:h,onChangeSort:d})))),O=o.some((e=>!!e.renderFooter)),j=$.length>0&&!!t;return e.createElement(nd,{borderMode:n},j&&e.createElement(Zs,{selectionColumn:C,intersectionTargetRef:w,containerRef:b},t),e.createElement(_s,{ref:b},v&&e.createElement(od,{tableCss:T,intersectionTargetRef:w,containerRef:b,cellWidths:L},A),e.createElement("div",{ref:w,style:{height:0}}),e.createElement(Qs,{css:T,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},A),(()=>{const t=!!r;return t&&"nested"===f?c.map(B):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[M(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>F(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(M))})(),O&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(Xs,{role:"row"},N.map((t=>function({column:t}){if(t.hidden)return null;const n={key:t.id,role:"cell",align:t.align,spacing:t.spacing};return t.renderFooter?t.renderFooter(t,n):e.createElement(Rs,Object.assign({},n))}({column:t}))))))))};sd.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},sd.Cell=Rs,sd.ColumnMenu=function({columns:n,columnGroups:o,setColumns:a}){const[r,i]=t(null),[l,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),u=o.map((e=>e.map((e=>c[e])))),m=(e,t)=>{const o=u[e].map((e=>e.id)),r=[...n];o.forEach((e=>{const n=r.findIndex((t=>t.id===e));n<0||(r[n]=Object.assign(Object.assign({},r[n]),{hidden:t}))})),a(r)};return e.createElement(e.Fragment,null,e.createElement(Ne,{ref:i,dropdown:!0,onClick:()=>s(!0)},"Columns"),l&&e.createElement(pe,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(Ke,{style:{width:600}},e.createElement(jl,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(jl,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Ne,{variant:"flat",icon:e.createElement(qs,null)}),e.createElement(jl,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(jl,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Ne,{variant:"flat",icon:e.createElement(Us,null),onClick:()=>m(n,!1),style:{color:j.colors.neutral.ink.lightest}}):e.createElement(Ne,{variant:"flat",icon:e.createElement(Ks,null),onClick:()=>m(n,!0)})))))))))},sd.SelectionCell=zs,sd.SelectionHeader=Ns,sd.Header=Ls,sd.Truncate=ed,sd.NoWrap=Gs;const dd=h.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${j.sizes.base};}`,cd=h.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${j.sizes.xs};}`,ud=h.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${j.sizes.base};}`,md=h.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${j.sizes.xs};}`,pd=h.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${j.text.bodyBold.fontFamily};font-size:${j.text.bodyBold.fontSize};font-weight:${j.text.bodyBold.fontWeight};line-height:${j.text.bodyBold.lineHeight};color:${j.text.bodyBold.color};`,gd=h.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${j.text.body.fontFamily};font-size:${j.text.body.fontSize};font-weight:${j.text.body.fontWeight};line-height:${j.text.body.lineHeight};color:${j.text.body.color};`,hd=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(gd,{key:t},t))):e.createElement(gd,null,t);return e.createElement(dd,null,t.map((t=>n?e.createElement(ud,{key:t.term},e.createElement(pd,null,t.term),e.createElement(md,null,o(t.description))):e.createElement(cd,{key:t.term},e.createElement(pd,null,t.term),o(t.description)))))},{sizes:fd,colors:vd}=j,bd=h.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${fd.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${fd.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,yd=h.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${fd.md};overflow-x:hidden;background-color:${vd.neutral.grey.lightest};`,wd=({renderHeader:n,children:o})=>{const[a,r]=t(!0);return e.createElement("main",null,n((()=>r(!a)),a),e.createElement(yd,null,e.createElement(bd,{showSidebar:a},o)))},xd=h.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var Ed;!function(e){e.base="base",e.sm="sm"}(Ed||(Ed={}));const $d=h.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${j.text.inputLabel.fontFamily};font-size:${j.text.inputLabel.fontSize};font-weight:${j.text.inputLabel.fontWeight};line-height:${j.text.inputLabel.lineHeight};color:${j.text.inputLabel.color};`,Cd=h.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${j.fontFamily};font-size:${j.sizes[3]};line-height:${j.sizes[4]};color:${j.colors.neutral.ink.light};`,kd=h.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${j.text.error.fontFamily};font-size:${j.text.error.fontSize};font-weight:${j.text.error.fontWeight};line-height:${j.text.error.lineHeight};color:${j.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${j.sizes[2]} * -1);width:2px;background-color:${j.colors.secondary.red.base};}`,Dd=h(jl).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,Sd=h(wt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:block;}`,Id=t=>n=>{var{label:o,hint:r,error:i,tooltip:l}=n,s=te(n,["label","hint","error","tooltip"]);const d=a((()=>ne(t.name)),[]);return o?e.createElement(Dd,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(jl,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement($d,{htmlFor:d},o),l&&e.createElement(Sd,{text:l},e.createElement(_l,{width:j.sizes.base,height:j.sizes.base,color:j.colors.neutral.ink.light}))),r&&e.createElement(Cd,null,r)),e.createElement(t,Object.assign({id:d,hasError:!!i},s)),i&&e.createElement(kd,null,i)):e.createElement(t,Object.assign({hasError:!!i},s))},Ld=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),Nd=({hasError:e,inputSize:t})=>f`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,Rd=h.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${j.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${Nd} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,zd=h.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${Nd}`,Pd=/^-?[0-9]*\.?[0-9]+$/,Td=Id(r(((t,n)=>{var{id:o,className:a,disabled:r=!1,hasError:i,max:l,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:g,rows:h="3",size:f=Ed.base,step:v,type:b="text",value:y,spellCheck:w=!1}=t,x=te(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=s((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==b)return void m(t);new RegExp(Pd).test(t)&&m(t)}),[m,b]),$=null!=o?o:ne("textfield");return"text"===b&&c?e.createElement(zd,Object.assign({className:a,disabled:r,hasError:i,id:$,name:u,onChange:E,placeholder:g,rows:h,value:y,spellCheck:w,ref:n},x)):e.createElement(Rd,Object.assign({className:a,disabled:r,hasError:i,id:$,inputSize:f,max:l,min:d,name:u,"aria-label":u,onChange:E,placeholder:g,step:v,type:b,value:y,spellCheck:w,ref:n},x))})));Td.displayName="TextField";const Md=h(S).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Fd=h(S).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Bd=h(Td).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${j.colors.neutral.ink.lightest};}`,Ad=h(Ne).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${j.colors.neutral.ink.lightest};`;h(Z).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,h.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${j.text.error.fontFamily};font-size:${j.text.error.fontSize};font-weight:${j.text.error.fontWeight};line-height:${j.text.error.lineHeight};color:${j.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${j.sizes[2]} * -1);width:2px;background-color:${j.colors.secondary.red.base};}`,h.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${j.fontFamily};font-size:${j.sizes[3]};line-height:${j.sizes[4]};color:${j.colors.neutral.ink.light};`;const Od=(e,t)=>{t.includes(e.key)&&e.preventDefault()},jd=["-","+","E","e"],Hd=e=>Od(e,jd),Wd=Id((t=>{var{size:n=Ed.base,handleChangeHeight:o,handleChangeWidth:a,handleChangeLength:r,className:i,height:l,width:s,length:d,unit:c}=t,u=te(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Md,{className:i},e.createElement(Fd,null,e.createElement(Bd,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Hd},u)),e.createElement(Te,{height:j.sizes.base,width:j.sizes.base}),e.createElement(Bd,Object.assign({onChange:a,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Hd},u)),e.createElement(Te,{height:j.sizes.base,width:j.sizes.base}),e.createElement(xd,null,e.createElement(Bd,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:l,min:"0",step:"any",onKeyDown:Hd},u)),e.createElement(Ad,{size:n},c))))}));Wd.displayName="DimensionsInput";const Vd=(e,t)=>{const n=i(null),a=s((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=s((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",r),document.addEventListener("keyup",a),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",a)}}),[r,a,e]),n},Zd=(e,n)=>{const[a,r]=t(e);return o((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),a};function Kd(){const[e,n]=t(!1),o=s((()=>n(!e)),[e,n]),a=s((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:a}}const Ud=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function qd({children:n}){const[a,r]=t(!0);return o((()=>{function e(){r(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r(!1),o())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function o(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function a(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function i(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",a,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",i,!0),n(),()=>{document.removeEventListener("keydown",a,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",i,!0),o()}}),[r]),e.createElement(Ud.Provider,{value:{hadKeyboardEvent:a,isInitialized:!0}},n)}function Yd(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:a}=e.useContext(Ud),r=e.useCallback((()=>{t||n(!0)}),[t]),i=e.useCallback((()=>{t&&n(!1)}),[t]);let l;return l=a?o&&t:t,e.useMemo((()=>({focusVisible:l,onFocus:r,onBlur:i})),[l,i,r])}const Jd=(e=!1)=>{const[n,o]=t(e);return[n,s((()=>o(!0)),[o]),s((()=>o(!1)),[o])]},Gd=e=>{const[n,a]=t(!1),[r,i]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;a(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:a}=t.target;i(o-n-a<=0)}}},Xd=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[a]=t(e),[r,i]=t(a[o]);return[r,e=>{const t=a.find((t=>t.key===e));t&&i(t)}]},_d=h(S).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${N.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${B.base};height:${B.base};}`,Qd=h(Z).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,ec=h(Qd).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,tc=h(Pe).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,nc=h(Te).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,oc=h(S).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,ac=h(S).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${N.neutral.grey.base};svg{color:${({color:e})=>e};width:${B[5]};height:${B[5]};margin-right:10px;}`,rc=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),ic=({className:t,e2eClassName:n,label:o,text:a,iconSlot:r,fill:i=N.secondary.blue.base,content:l,footer:d,header:c,onClickAway:u,onClick:m,shouldCloseOnClickAway:p=!0})=>{const g=rc(t),h=rc(n),{shouldShowDropdown:f,toggleShouldShowDropdown:v,closeDropdown:b}=Kd(),y=s((e=>{v(),u&&f&&u(e)}),[v,u,f]),w=s((e=>{u&&u(e,b),p&&b()}),[b,u,p]);return!l?e.createElement(_d,{className:ie([null==g?void 0:g.container,null==h?void 0:h.container]),onClick:m},o&&e.createElement(ec,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(Z,null,a),e.createElement(nc,{className:ie([null==g?void 0:g.cross,null==h?void 0:h.cross]),name:"cross",size:"base",color:N.neutral.ink.base})):e.createElement(st,{className:g.filterTagDropdown,shouldShowDropdown:f,onClickAway:w,cta:e.createElement(_d,{className:g.container,onClick:y},o&&e.createElement(ec,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(Z,null,a),e.createElement(tc,{color:N.neutral.ink.base,name:"downArrow",$shouldShow:f}))},e.createElement(oc,null,e.createElement(ac,{color:i},c||e.createElement(e.Fragment,null,r,e.createElement(Z,{variant:"bodyBold"},o))),l,d))},lc=h(S).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?B[e]:0};`,sc=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),dc=h.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,cc=h.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,uc=h.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,mc=h.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,pc=e=>({container:e?`${e}-image-container`:void 0,image:e?`${e}-image`:void 0,placeholder:e?`${e}-image-placeholder`:void 0,previewImageContainer:e?`${e}-image-preview-container`:void 0}),gc=({src:n,alt:o="",className:a,e2eClassName:r,width:i,height:l,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:f=!1})=>{const v=pc(a),y=pc(r),[w,E]=t(!1),[$,C]=t({isLoaded:!1,isError:!1}),[k,D]=e.useState(null),[S,I]=e.useState(null),{styles:L,attributes:N}=b(k,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),R=s((()=>m?E(!0):{}),[m]),z=s((()=>m?E(!1):{}),[m]),P=!$.isLoaded||$.isError;return e.createElement(dc,{className:ie([null==v?void 0:v.container,null==y?void 0:y.container,a])},e.createElement(cc,{src:n,alt:o,className:ie([null==v?void 0:v.image,null==y?void 0:y.image]),width:i,height:l,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:R,onMouseLeave:z,style:P?{display:"none"}:{},ref:D}),!f&&P&&(p||e.createElement(sc,{className:ie([null==v?void 0:v.placeholder,null==y?void 0:y.placeholder]),width:g||i,height:h||l})),w&&x(e.createElement(uc,Object.assign({ref:I,style:L.popper},N.popper,{className:ie([null==v?void 0:v.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(mc,{src:n,alt:"",width:d,height:c})),document.body))},hc={width:64,height:64},fc={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},hc)),title:"No data found"},vc={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},hc)),title:"An error occurred when creating the table",subTitle:"Please, try reloading the page once. If this doesn't solve the problem, contact support"};var bc;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(bc||(bc={}));const{text:yc,sizes:wc}=j,{blue:xc}=j.colors.secondary,{grey:Ec}=j.colors.neutral,{scrollbar:$c}=j.colors.system,Cc='\n position: absolute;\n top: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n transition: box-shadow .3s;\n',kc=h.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Dc=h.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${Ec.dark};border-bottom:1px solid ${Ec.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${$c.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${$c.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:o})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${Cc};\n\n ${o===bc.middle||o===bc.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${n}):after,\n th:nth-last-child(${n}):after {\n left: 0;\n transform: translate(-100%);\n ${Cc};\n\n ${o===bc.start||o===bc.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Sc=h(Dc).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Ec.dark};border-radius:4px;`,Ic=h.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Lc=h.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Ec.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;h.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Ec.lightest};padding:1.5rem 1rem;border-top:1px solid ${xc.base};}`;const Nc=h.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,Rc=h.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${yc.bodySmall.fontFamily};font-size:${yc.bodySmall.fontSize};font-weight:${yc.bodySmall.fontWeight};color:${yc.bodySmall.color};line-height:${wc.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,zc=h(Rc).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Ec.dark};font-family:${yc.bodySmallBold.fontFamily};font-size:${yc.bodySmallBold.fontSize};font-weight:${yc.bodySmallBold.fontWeight};color:${yc.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Ec.light};}`,Pc={left:"flex-start",center:"center",right:"flex-end"},Tc=h.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Pc[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Mc=h.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Lc}:nth-child(even) td {\n background-color: ${Ec.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${zc}, & ${zc} span {\n white-space: nowrap;\n }\n `}`,Fc=h.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Rc}{border-top:1px solid ${Ec.dark};background-color:${Ec.lightest};padding-top:${wc.base};padding-bottom:${wc.base};line-height:2rem;}`,Bc=h.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Ac=h(Mc).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Oc=h(S).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,jc=h(S).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${j.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Hc=h(Z).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Wc=h(Z).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Vc=({height:t,icon:n,title:o,subTitle:a})=>e.createElement(Oc,{height:t},e.createElement(jc,null,n),e.createElement(Hc,{variant:"headingLarge"},o),a&&e.createElement(Wc,{variant:"subheadingMedium"},a)),Zc=h.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${j.sizes.base};border-radius:${j.radius.base};&:hover{cursor:pointer;background-color:${j.colors.secondary.blue.lightest};}`,Kc=h(Zc).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${j.text.link.color};text-decoration:${j.text.link.textDecoration};`,Uc=h.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:qc}=j.colors.neutral,Yc=h.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,Jc=h.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${qc.base} 8%, ${qc.dark} 15%, ${qc.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Gc=({isLoading:t,style:n})=>e.createElement(Yc,{style:n},e.createElement(Jc,{isLoading:t})),Xc=t=>{var{style:n}=t,o=te(t,["style"]);return e.createElement(Rc,Object.assign({},o),e.createElement(Gc,{style:n}))};Xc.defaultProps={style:{}};const _c=({renderHeader:n,tableRef:a,wrapperRef:r,isFixedLayout:i,wrapperStyle:l})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[a,r]=t(!1),i=s((({top:e,bottom:t})=>{let o=a;o=e<=(n||0)&&t>0?!a||o:!a&&o,o!==a&&r(o)}),[a,n]);return o((()=>{const t=()=>{var t;e.current&&i(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[i,e]),{isSticky:a}})(a,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),p=((null===(d=r.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;k(r);const g=e=>{var t;const n=(null===(t=r.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return g(),m?e.createElement(Bc,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},l)},e.createElement(Ac,{style:{tableLayout:i?"fixed":"auto"}},n())):null},Qc=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},eu=t=>{var{style:n,width:o,isLoading:a}=t,r=te(t,["style","width","isLoading"]);return e.createElement(zc,Object.assign({},r,{style:{width:o}}),e.createElement(Gc,{style:n,isLoading:a}))},tu=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),nu=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),ou=()=>e.createElement(ys,{width:j.sizes.base,height:j.sizes.base,color:"lightgrey"}),au=()=>e.createElement(tu,{width:j.sizes.base,height:j.sizes.base,color:"lightgrey"}),ru=()=>e.createElement(nu,{width:j.sizes.base,height:j.sizes.base,color:"lightgrey"}),iu=({borderless:n=!1,striped:r=!0,noWrap:l=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:f,renderFooterLoadingRow:v,omitFooterSelectionCell:b=!1,selectedRowIds:y,disabledSelectionInputRowIds:w,selectionMode:x="multiple",onChangeSelectedRowIds:E,sortColumnId:$,sortDirection:C,onChangeSort:k,isError:D=!1,isLoading:S=!1,skeletonRowsNumber:I=5,isHeaderSticky:L=!0,stickyHeaderStyle:N,customSpecificState:R,bodyHeightInSpecificStates:z=375,startFixedColumnsNumber:P,endFixedColumnsNumber:T})=>{const M=n?Dc:Sc,F=!!u&&0===u.length,B=Boolean(P||T),A=!P&&!T,O=i(null),j=i(null),[H,W]=t(bc.none);o((()=>{var e;let t=null;const n=()=>{if(!j.current||A)return;const e=j.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),a=n+o;t===o?W(bc.none):0===n?W(bc.start):n>0&&a<t?W(bc.middle):a===t&&W(bc.end)};return j.current&&(t=j.current,n(),null===(e=j.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[O,A]);const V=s((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),Z=s(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),K=s((()=>{if(!c||S)return null;const e=[],t=[];let n=0,o=0;if(P){y&&(e.push(Z(1,n,"left")),n+=58);for(let t=0;t<P;t+=1){const o=V(c[t].width);o&&(e.push(Z(y?t+2:t+1,n,"left")),n+=o)}}if(T)for(let e=0;e<T;e+=1){const n=V(c.slice(-e-1)[0].width);n&&(t.push(Z(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[S,V,T,Z,c,P,y]),U=a((()=>K()),[K]),q=s(((e,t)=>{if(!y||!E)return;if(e)return"single"===x?void E([t.id]):void E([...y,t.id]);const n=[...y],o=n.findIndex((e=>e===t.id));n.splice(o,1),E(n)}),[E,y,x]),Y=s((()=>{if(!y||!E)return;if(y.length===u.length)return void E([]);const e=u.map((e=>e.id));E(e)}),[E,u,y]),J=s((e=>{if(void 0===$||void 0===k)return;let t=$,n="ascending";"ascending"===C&&(n="descending"),e!==$&&(t=e,n="ascending"),k(t,n)}),[k,$,C]),G=s(((t,n)=>{let o="",a=()=>{},r=e.createElement(ou,null);const{tooltip:i,align:l,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",a=()=>J(u),$===u&&(r="ascending"===C?e.createElement(au,null):e.createElement(ru,null)));const m=e.createElement(Tc,{align:l},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(zc,{key:u,id:`data-table-header-${u}`,className:o,onClick:a,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},i?e.createElement(wt,{text:i},e.createElement(kc,null,m)):m)}),[J,$,C]),X=s(((t,n)=>e.createElement(eu,{key:t.id,width:t.width||"auto",style:n,isLoading:S})),[S]),_=s((()=>{if(!c)return null;const t=K(),n=t?t[0].style:{};return e.createElement(Ic,null,e.createElement(Nc,null,y&&e.createElement(zc,{style:Object.assign({width:58},n)},"multiple"===x&&e.createElement(as,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:Y,disabled:w&&w.length>0||S||F,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=y?n+2:n+1,a=n-c.length,r=null==t?void 0:t.find((e=>e.index===o||e.index===a));return e.skeleton&&(S||D||F)?X(e,e.skeletonStyle||{}):G(e,(null==r?void 0:r.style)||{})}))))}),[K,Y,c,F,D,S,X,G,u.length,y,x,w]),Q=s(((t,n)=>{const o={checked:t,onChange:e=>q(e,n),disabled:(null==w?void 0:w.includes(n.id))||!1};return"single"===x?e.createElement(is,Object.assign({},o)):e.createElement(as,Object.assign({},o))}),[q,x,w]),ee=s((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===x?e.createElement(Xc,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Xc,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[x]),te=s(((t,n)=>{var o,a;if(!p)return null;const r=p(t);if(!r)return null;const i=(null===(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===a?void 0:a.row)||"";return e.createElement(Nc,{key:t.id,className:`${i} ${n?"hidden":""}`},y&&e.createElement(Rc,null),r)}),[p,y]),ne=s((t=>{if(!c)return e.createElement(Xc,null);const n=c.map((n=>e.createElement(Xc,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>f?S&&!v||!S&&F?null:e.createElement(Fc,{fixedColumnsStyle:Qc(U||[])},e.createElement(Nc,null,y&&!b&&e.createElement(Rc,null),!S&&f(u),S&&v&&v())):null;let ae=P;y&&ae&&(ae+=1);const re=a((()=>u.map((t=>{var n,o,a;const{data:r}=t,i=!!y&&y.includes(t.id),l=!g||g.includes(t.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(a=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==a?a:"",c=i?`selected ${d}`:`${d}`;return e.createElement(Lc,{key:t.id,className:s,fixedColumnsStyle:Qc(U||[])},e.createElement(Nc,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(Rc,null,Q(i,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!l))))}))),[u,g,U,te,m,Q,y]);if(S){const t=[];for(let n=0;n<I;n+=1)t.push(e.createElement(Lc,{key:`loading-row-${n}`,fixedColumnsStyle:Qc(U||[])},e.createElement(Nc,null,h?e.createElement(e.Fragment,null,y&&ee(),h()):ne(n))));return e.createElement(M,{ref:j,scrollDisabled:!0,scrollPosition:H,lastStartFixedColumnsIndex:ae,firstEndFixedColumnsIndex:T},L&&c&&e.createElement(_c,{renderHeader:_,tableRef:O,wrapperRef:j,isFixedLayout:B,wrapperStyle:N}),e.createElement(Mc,{ref:O,striped:r,noWrap:l,tableLoading:!0,isFixedLayout:B},_(),t,oe()))}if(F||D){let t=fc;return R?t=R:D&&(t=vc),e.createElement(M,{scrollDisabled:!0},e.createElement(Mc,{ref:O,striped:r,noWrap:l,tableLoading:!1,isFixedLayout:B},_(),oe()),e.createElement(Vc,Object.assign({height:z},t)))}return e.createElement(M,{scrollDisabled:!1,ref:j,scrollPosition:H,lastStartFixedColumnsIndex:ae,firstEndFixedColumnsIndex:T,showScrollbar:d},L&&c&&e.createElement(_c,{renderHeader:_,tableRef:O,wrapperRef:j,isFixedLayout:B,wrapperStyle:N}),e.createElement(Mc,{ref:O,striped:r,noWrap:l,tableLoading:!1,isFixedLayout:B},_(),re,oe()))};iu.Cell=Rc,iu.ClickableCell=t=>{var{onClick:n,children:o}=t,a=te(t,["onClick","children"]);return e.createElement(Rc,Object.assign({},a),e.createElement(Kc,{onClick:n},o))},iu.EditableCell=t=>{var{onClick:n,children:o}=t,a=te(t,["onClick","children"]);return e.createElement(Rc,Object.assign({},a),e.createElement(Zc,{onClick:n},e.createElement(Uc,null,o)))},iu.SkeletonCell=Xc,iu.SkeletonContent=Gc;const lu=h.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,su="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",du="Log in with Amazon",cu=n=>{const[o,a]=t(su);return e.createElement(lu,Object.assign({onMouseDown:()=>{a("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{a(su)},"aria-label":du},n),e.createElement("img",{src:o,alt:du}))},uu=v`body{overflow:hidden;scrollbar-gutter:stable;}`,mu=h.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${j.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Ke.Footer} {\n box-shadow: 0px 10px 15px 0px ${j.colors.neutral.ink.dark};\n }\n `}`,pu=e=>!!e.footerSlot,gu={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},hu={[R.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[R.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[R.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[R.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[R.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},fu={xs:R.mobile,sm:R.mobile,base:R.tablet,lg:R.lgTablet},{breakpoints:vu}=j,bu=h(p.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${j.sizes.sm};box-shadow:${j.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Ke.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${gu[e]};`} ${mu}{padding-bottom:${j.sizes.md};}${Ke.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${vu.mobile} + 1px))and (max-width: ${vu.tablet}){max-width:${({variant:e})=>hu[vu.tablet][e]};}@media (min-width: ${vu.tablet})and (max-width: ${vu.lgTablet}){max-width:${({variant:e})=>hu[vu.lgTablet][e]};}@media (min-width: ${vu.lgTablet})and (max-width: ${vu.desktop}){max-width:${({variant:e})=>hu[vu.desktop][e]};}@media (min-width: ${vu.desktop}){max-width:${({variant:e})=>hu[vu.lgDesktop][e]};}@media (max-width: ${({variant:e})=>fu[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Ke.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${se(j.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,yu=e.forwardRef(((t,n)=>{var o=te(t,[]);return e.createElement(bu,Object.assign({ref:n},o))})),wu=n=>{const{shouldShow:a,showHeaderCloseButton:r=!0,fullBleed:l=!1,variant:s="base",onClose:d,children:c}=n,u=i(null),[m,p]=t(null);o((()=>{var e,t;a&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[a]);const{isOverflowing:h,onScroll:f}=Gd(m),v=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(g,null,a&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(uu,null),e.createElement(yu,{ref:u,onClose:v,variant:s,"aria-describedby":"modal_title"},e.createElement(Ke.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Me,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:v})),e.createElement(mu,{onScroll:f,ref:p,isScrollable:h,fullBleed:l},c),pu(n)&&n.footerSlot,!pu(n)&&(n.leftActions||n.rightActions)&&e.createElement(Ke.Footer,null,e.createElement(jl,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(jl,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=te(t,["label"]);return e.createElement(Ne,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement(jl,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=te(t,["label"]);return e.createElement(Ne,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:xu,text:Eu,shadows:$u}=j,{grey:Cu}=j.colors.neutral,ku=h.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${xu.base} ${xu.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&$u[e]};`,Du=h.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Eu.headingXL.fontFamily};font-size:${Eu.headingXL.fontSize};font-weight:${Eu.headingXL.fontWeight};margin:unset;line-height:1;`,Su=h.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Eu.subheadingLarge.fontFamily};font-weight:${Eu.subheadingLarge.fontWeight};font-size:${Eu.subheadingLarge.fontSize};line-height:${Eu.subheadingLarge.lineHeight};`,Iu=h.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${j.radius.base};border:${xu.line} solid ${Cu.base};object-fit:cover;`,Lu=h.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Nu=h(Ne).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${j.text.link.fontFamily};font-size:${j.text.link.fontSize};font-weight:${j.text.link.fontWeight};line-height:${j.text.link.lineHeight};color:${j.text.link.color};&:hover{text-decoration:${j.text.link.textDecoration};}& > * + *{margin-left:${j.sizes.xs};}`,Ru=h.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${xu.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,zu=({title:t,subtitle:n,imageSrc:o,actions:a,quickActions:r,backAction:i,Accessory:l,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:u})=>{const m=a&&e.createElement(et,{buttonVariant:r?"default":"primary",title:"Actions",sections:a}),p=null==r?void 0:r.map((t=>e.createElement(Ne,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=i&&e.createElement(Ne,{onClick:i.onClick,icon:e.createElement(Bl,null),variant:"link"},i.title),h=u&&e.createElement(jl,{direction:"horizontal",alignX:"end"},e.createElement(Nu,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(Mt,{width:B.md})));return e.createElement(ku,{shadow:s},e.createElement(jl,null,g,e.createElement(Ru,null,e.createElement(jl,{direction:"horizontal",spacing:"md"},o&&e.createElement(Iu,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(jl,{alignX:"stretch"},e.createElement(Du,null,t),l,n&&e.createElement(Su,null,n)))),e.createElement(Lu,null,e.createElement(jl,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Ne,{icon:e.createElement(Bl,null),onClick:d}),c&&e.createElement(Ne,{icon:e.createElement(Mt,null),onClick:c})),h))))},Pu=h(jl).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${j.sizes.lg};height:30px;background-color:${j.colors.neutral.grey.light};border:1px solid ${j.colors.neutral.grey.base};border-radius:${j.sizes.xs};`,Tu=h(Ne).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${j.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Mu=h(Td).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Fu=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(Z,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Pu,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(Z,{variant:"bodySmall"},t))),Bu=({currentPage:e,totalPagesCount:n,handleChangePage:a})=>{const[r,i]=t(`${e}`);o((()=>{i(`${e}`)}),[e]);const l=e=>e>=1&&e<=n,s=()=>{if(r||i(`${e}`),r===`${e}`)return;const t=parseInt(r,10);l(t)&&a(t)};return{pageInputValue:r,handleIncrement:()=>{l(e+1)&&a(e+1)},handleDecrement:()=>{l(e-1)&&a(e-1)},handleInputChange:e=>{e||i(e);const t=parseInt(e,10);var n;l(n=t)&&i(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Au=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Ou=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),ju=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:a,handleChangePage:r})=>{const{pageInputValue:i,handleIncrement:l,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=Bu({currentPage:o,totalPagesCount:a,handleChangePage:r});return e.createElement(jl,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Tu,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Au,null),size:"sm","aria-label":"go to first page"}),e.createElement(Tu,{onClick:s,icon:e.createElement(Bl,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Mu,{"aria-live":"polite","aria-label":`page ${o} of ${a}`,size:Ed.sm,type:"number",value:i,min:"1",max:`${a}`,onChange:c,onBlur:u})),e.createElement(Fu,{count:a}),e.createElement(Tu,{onClick:l,icon:e.createElement(Mt,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=a}),e.createElement(Tu,{onClick:()=>{o!==a&&r(a)},icon:e.createElement(Ou,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=a}))},Hu=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Wu=h(S).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Vu=h(st).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Zu=h.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${N.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,Ku=h(S).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Uu=h(Z).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${N.secondary.blue.base};background:${N.neutral.grey.lightest};}`,qu=({item:t,handleRangeListChange:n})=>{const o=s((()=>n(t)),[n,t]);return e.createElement(Ku,{onClick:o},e.createElement(Uu,{variant:"bodySmall"},t.label))},Yu=t=>{const{handleRangeListChange:n,paginationRange:o=Hu}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(u,{key:t.label},e.createElement(qu,{item:t,handleRangeListChange:n})))))};class Ju extends c{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=Hu[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Hu,reversedDropdown:o}=this.props,{shouldShowDropdown:a,dropdownValue:r}=this.state;return e.createElement(Wu,{className:t},e.createElement(Vu,{cta:e.createElement(Zu,{onClick:this.toggleShouldShow},e.createElement(Z,{variant:"bodySmall"},r.label),e.createElement(Ie,{color:j.colors.neutral.ink.base})),shouldShowDropdown:a,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(Yu,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Gu=h.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Xu=h.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,_u=({onIncrement:t,onDecrement:n,disabled:o=!1,size:a})=>e.createElement(Gu,{size:a},e.createElement(Xu,{type:"button",onClick:t,disabled:o},e.createElement(Q,{height:j.sizes.base,width:j.sizes.base,color:j.colors.neutral.ink.base})),e.createElement(Xu,{type:"button",onClick:n,disabled:o},e.createElement(Pe,{height:j.sizes.base,width:j.sizes.base,color:j.colors.neutral.ink.base}))),Qu=h(Td).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${j.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${j.colors.neutral.ink.lightest};}`,em=h(S).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${j.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?j.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,tm=h(Z).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,nm=h(xd).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${j.colors.secondary.red.light};\n\n > * {\n border-top-color: ${j.colors.secondary.red.base};\n border-bottom-color: ${j.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${j.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${j.colors.secondary.red.base};\n border-right-color: ${j.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${j.colors.secondary.red.base};\n border-bottom-color: ${j.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${j.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?j.colors.secondary.red.base:j.colors.secondary.blue.base};}}`;const om=Id((t=>{var{className:n="",hasError:o,currency:a,disabled:r=!1,onChange:i,onPriceChange:l,priceValue:s,step:d="0.1",size:c=Ed.base}=t,u=te(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=l)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=l)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(nm,{className:n,hasError:o},e.createElement(em,{disabled:r,size:c},e.createElement(tm,{variant:"hintText"},a)),e.createElement(Qu,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>i(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void l("");const o=parseFloat(n.replace(",",".")).toFixed(2);l(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(i),"ArrowDown"===t&&p(i)},disabled:r,size:c},u)),e.createElement(_u,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));om.displayName="PriceInput";const am=h.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,rm=({children:t})=>e.createElement(am,null,t),im=h(Td).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,lm=h.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,sm=h(S).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${im} {\n ${t}\n }\n\n & ${lm} {\n ${n}\n }\n `}}`,dm=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),cm=({type:t="text",disabled:n=!1,onClearClick:o,onChange:a,onBlur:r,onFocus:i,onKeyUp:l,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:g,isLoading:h=!1,fill:f,reversed:v=!1,autoComplete:b="on",size:y="base"})=>{const w=c&&c.length>0;return e.createElement(sm,{className:p,iconPosition:v?"left":"right"},e.createElement(im,{size:y,type:t,value:c,onChange:a,onBlur:r,onFocus:i,onKeyUp:l,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:b}),e.createElement(lm,null,h?e.createElement(ve,{height:24,color:f||j.colors.secondary.blue.base}):w&&o?e.createElement(Ne,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(Te,{color:f||j.colors.neutral.ink.dark})):e.createElement(Ne,{variant:"unstyled",onClick:()=>a(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(dm,{color:f||j.colors.neutral.ink.dark,height:B.md,width:B.md}))))},um=j.colors.neutral.grey.lightest,mm=j.colors.neutral.grey.dark,pm=j.colors.secondary.blue.dark,gm=h(S).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${um};border-color:${mm};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${pm};border-color:${pm};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${j.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,hm=({options:t,selected:n,className:o,onChange:a})=>e.createElement(gm,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Ne,{variant:t.value===n?"primary":"default",key:t.key,onClick:()=>a(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),fm=h.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,vm=Id(r(((t,n)=>{var{className:o,options:a,value:r,onChange:i,size:l,disabled:d,hasError:c}=t,u=te(t,["className","options","value","onChange","size","disabled","hasError"]);const m=s((e=>{i&&i(e.currentTarget.value)}),[i]);return e.createElement(fm,Object.assign({className:o,sizeVariant:l,value:null!=r?r:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!a&&a.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));vm.displayName="Select";const bm=h.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${j.colors.neutral.ink.base});font-family:${j.text.bodySmall.fontFamily};font-style:${j.text.bodySmall.fontStyle};font-size:${j.text.bodySmall.fontSize};line-height:${j.text.bodySmall.lineHeight};font-weight:${j.text.bodySmall.fontWeight};text-decoration:${j.text.bodySmall.textDecoration};letter-spacing:${j.text.bodySmall.letterSpacing};`,ym=h.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${j.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${j.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${j.text.bodySmall.fontFamily};font-style:${j.text.bodySmall.fontStyle};`,wm={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},xm={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},Em=t=>{var{shortcut:n,label:o,inverse:a=!1,displayLabel:r=!1}=t,i=te(t,["shortcut","label","inverse","displayLabel"]);const l=n.split("+").map((t=>wm[t]?e.createElement(ym,{key:`Key: ${t}`,"aria-label":xm[t]},wm[t]):e.createElement(ym,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(bm,Object.assign({"aria-label":o,$inverse:a},i),l," ",r?e.createElement("span",null,o):null)},{blue:$m}=N.secondary,{grey:Cm}=N.neutral,km=h.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Dm=h.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${$m.lightest};}`,Sm=h.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Im=h.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${O.bodySmall.fontFamily};font-size:${O.bodySmall.fontSize};font-weight:${O.bodySmall.fontWeight};color:${O.bodySmall.color};line-height:${B.base};& > *{vertical-align:middle;}`,Lm=h(Im).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Cm.dark};font-family:${O.bodySmallBold.fontFamily};font-size:${O.bodySmallBold.fontSize};font-weight:${O.bodySmallBold.fontWeight};color:${O.bodySmallBold.color};`,Nm=h.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Dm} tr:nth-child(even) td {\n background-color: ${Cm.lightest};\n }\n `}`,Rm=({striped:t=!0,className:n,children:o})=>e.createElement(Nm,{striped:t,className:n},o);Rm.Header=km,Rm.Body=Dm,Rm.Row=Sm,Rm.HeaderCell=Lm,Rm.Cell=Im;const zm=h(S).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;zm.displayName="Skeleton";const Pm=h.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Tm=h.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${j.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Mm=h.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${j.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${j.colors.secondary.blue.light};}`,Fm=h(Tm).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${j.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Bm=e=>({container:e?`${e}-slider-container`:void 0,sliderRange:e?`${e}-slider-range`:void 0,slider:e?`${e}-slider`:void 0,startSlider:e?`${e}-start-slider`:void 0,endSlider:e?`${e}-end-slider`:void 0}),Am=({id:n,value:a,min:r,max:l,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,f]=t(!1),[v,b]=t(-1),y=i(null),w=i(null),x=i(null),E=Bm(u),$=Bm(m),C=s((e=>{var t;if(!h||!y.current)return;const n=v>-1?a[v]:a,o=y.current.getBoundingClientRect();let i=100*(e.pageX-o.x)/o.width/100*(l-r)+r;const s=n-i;if(s>0&&(i=n+Math.ceil(i/d-n/d)*d),s<0&&(i=n+Math.floor(i/d-n/d)*d),n===i)return;i>l&&(i=l),i<r&&(i=r),Array.isArray(a)&&(0===v&&i>a[1]&&([,i]=a),1===v&&i<a[0]&&([i]=a));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;i=Number(i.toFixed(u)),m=Array.isArray(a)?0===v?[i,a[1]]:[a[0],i]:i,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===v&&b(1),1===v&&b(0))}),[v,h,l,r,c,d,a]),k=s((()=>{f(!1),g()}),[g]),D=s(((e,t)=>{f(!0),p(),"number"==typeof t&&b(t),e.preventDefault()}),[p]);o((()=>{const e=e=>D(e,Array.isArray(a)?0:1),t=e=>D(e,1),n=w.current,o=x.current;return null==n||n.addEventListener("mousedown",e),null==o||o.addEventListener("mousedown",t),document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==o||o.removeEventListener("mousedown",t),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k)}}),[D,C,k,a]);const S=(t,n,o)=>{let a;return a=ie("number"==typeof o?0===o?[null==E?void 0:E.startSlider,null==$?void 0:$.startSlider]:[null==E?void 0:E.endSlider,null==$?void 0:$.endSlider]:[null==E?void 0:E.slider,null==$?void 0:$.slider]),e.createElement(Mm,{role:"slider",ref:1===o?x:w,className:a,left:t,"aria-valuemin":r,"aria-valuemax":l,"aria-valuenow":n})},I=t=>{const n=100*(t[0]<r?0:t[0]-r)/(l-r),o=100*(t[1]>l?100:t[1]-r)/(l-r),a=o-n;return e.createElement(e.Fragment,null,e.createElement(Fm,{className:ie([null==E?void 0:E.sliderRange,null==$?void 0:$.sliderRange]),left:n,width:a}),S(n,t[0],0),S(o,t[1],1))};let L;return L=Array.isArray(a)?I(a):(e=>{if(Array.isArray(a))return I(a);let t;return t=a>l?100:a<r?0:100*(e-r)/(l-r),S(t,e)})(a),e.createElement(Pm,{className:ie([null==E?void 0:E.container,null==$?void 0:$.container]),id:n,ref:y},e.createElement(Tm,null),L)},Om=h(S).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:N.neutral.ink.base};\n background-color: ${null!=e?e:N.neutral.grey.base};\n `}`,jm=h(jl).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Hm=h(jl).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${j.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${j.shadows.lg};border-radius:${j.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,Wm=h(S).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${j.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${B.md};height:${B.md};}`,Vm=h(jl).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Zm=h(Z).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Km={info:{accentColor:N.brand.blue.base,icon:e.createElement(rd,null)},success:{accentColor:N.secondary.green.base,icon:e.createElement(cs,null)},error:{accentColor:N.secondary.red.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:N.secondary.purple.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},Um=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),qm=({className:t,e2eClassName:n,type:o,iconSlot:a,text:r,last:i,minWidth:l,cta:s,onClose:d})=>{const c=Um(t),u=Um(n);return e.createElement(Hm,{className:ie([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:i},e.createElement(Wm,{color:Km[o].accentColor,className:ie([c.icon,u.icon])},null!=a?a:Km[o].icon),e.createElement(Vm,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Zm,{variant:"body"},r),s),e.createElement(Ne,{variant:"flat",icon:e.createElement(Te,{color:"white"}),onClick:d,"aria-label":"Close"}))},Ym=({className:t,e2eClassName:n,toasts:a,minWidth:r="50vw",max:i=3,onClose:l})=>(o((()=>{i&&a.length>i&&l(a[0].key)}),[a,i,l]),x(e.createElement(jm,{direction:"vertical",alignX:"center",spacing:4},e.createElement($,{component:null},[...a].reverse().map(((o,i)=>e.createElement(E,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(qm,Object.assign({className:t,e2eClassName:n,minWidth:r,last:i===a.length-1,onClose:()=>l(o.key)},o))))))),document.body)),Jm=h.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?j.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Gm=h.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${Jm}{box-shadow:0 0 0 4px ${j.colors.brand.blue.light};}&:checked + ${Jm}{background-color:#0079d1;}&:disabled + ${Jm}{background-color:${j.colors.neutral.grey.base};}&:checked:disabled + ${Jm}{background-color:${j.colors.secondary.blue.light};}`,Xm=h.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${Jm}:after{height:${({small:e})=>e?"22px":"28px"};width:${({small:e})=>e?"22px":"28px"};left:${({small:e})=>e?"3px":"4px"};bottom:${({small:e})=>e?"3px":"4px"};}${Gm}:checked + ${Jm}{&:after,svg{-webkit-transform:translateX(${({small:e})=>e?"28px":"36px"});-ms-transform:translateX(${({small:e})=>e?"28px":"36px"});transform:translateX(${({small:e})=>e?"28px":"36px"});}}`,_m=h(S).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Qm=r((({id:t,className:n,name:o,switched:a,small:r,onClick:i=(()=>{}),disabled:l,ariaLabel:s},d)=>e.createElement(_m,{className:n,disabled:l},e.createElement(Xm,{small:r,disabled:l,role:"switch"},e.createElement(Gm,{id:t,type:"checkbox",name:o,"aria-label":s,checked:!!a,onChange:l?void 0:i,disabled:l,ref:d}),e.createElement(Jm,{switched:a,disabled:l}))))),ep=h.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${j.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",o="24px",a="24px",r="8px",i="16px",l="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",a="16px",r="4px",i="14px",l="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${a};\n border-radius: ${r};\n font-size: ${i};\n\n background-color: ${s};\n border-color: ${d};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,tp=({children:t,checked:n,size:o="base",disabled:a=!1,onChange:r})=>e.createElement(ep,{type:"button",checked:n,size:o,disabled:a,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),np=h.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${B.md};border-radius:${z.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${N.neutral.ink.lightest};background-color:${N.neutral.grey.lightest};:hover{border:2px dashed ${N.secondary.blue.base};background-color:${N.secondary.blue.lightest};}:active{border:2px dashed ${N.secondary.blue.base};box-shadow:0 0 0 4px ${N.secondary.blue.light};background-color:${N.secondary.blue.lightest};}:focus-within{border:2px dashed ${N.secondary.blue.base};box-shadow:0 0 0 4px ${N.secondary.blue.light};background-color:${N.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${N.secondary.red.base};:hover{border:2px dashed ${N.secondary.red.base};background-color:${N.secondary.red.lightest};}:active{border:2px dashed ${N.secondary.red.base};box-shadow:0 0 0 4px ${N.secondary.red.light};background-color:${N.secondary.red.lightest};}:focus-within{border:2px dashed ${N.secondary.red.base};box-shadow:0 0 0 4px ${N.secondary.red.light};background-color:${N.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${N.neutral.grey.light};border-color:${N.neutral.ink.lightest};color:${N.neutral.ink.light};}`;var op,ap,rp;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(op||(op={})),function(e){e.KB="KB",e.MB="MB"}(ap||(ap={})),function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(rp||(rp={}));const ip=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},e.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),e.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),lp=()=>e.createElement(jl,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(ip,null),e.createElement(Z,{variant:"subheadingSmall",style:{paddingTop:B.sm}},"Browse files or drag them here")),sp=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(jl,{alignX:"start",spacing:"xs"},t&&e.createElement(Z,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(Z,{variant:"errorSmall"},"File is too big (",n,")")):null,dp=h(Z).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,cp=h(jl).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${N.neutral.ink.lightest};border-radius:${z.base};padding:${B.xs};${Z}{padding-left:${B.xs};}`,up=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(cp,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(dp,{variant:"body"},null==t?void 0:t.name),e.createElement(Ne,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(Te,null),"aria-label":"Remove file",disabled:o})):null,mp=r(((n,a)=>{var{id:r,name:l,maxBytes:d=1e6,format:c=ap.MB,fileTypes:u,label:p="Upload file",required:g,disabled:h}=n,f=te(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const v=i(null);m(a,(()=>v.current),[]);const[b,y]=t(),[w,x]=t(rp.VALID),E=w===rp.INVALID_FORMAT||w===rp.INVALID_FORMAT_AND_SIZE,$=w===rp.INVALID_SIZE||w===rp.INVALID_FORMAT_AND_SIZE,C=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case ap.KB:return`${o}${Number(e)/1e3} KB`;case ap.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:d,format:c}),k=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const a=o.length>1,r=t===o.length-1&&a,i=t===o.length-2&&a;switch(r&&(n+=" and "),e){case op.CSV:n+="CSV";break;case op.GIF:n+="GIF";break;case op.JPEG:n+="JPEG";break;case op.JPG:n+="JPG";break;case op.PNG:n+="PNG"}!i&&!r&&o.length>2&&(n+=", ")})),n})({fileTypes:u}),D=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const a=o.length-1===n&&o.length>1;t+=a?`${e}`:`${e}, `})),t.trim()})({fileTypes:u}),S=()=>{var e;(null===(e=v.current)||void 0===e?void 0:e.value)&&(v.current.value="")},I=({overMaxSize:e,invalidFormat:t})=>{var n;let o=rp.VALID;t&&!e?o=rp.INVALID_FORMAT:!t&&e?o=rp.INVALID_SIZE:t&&e&&(o=rp.INVALID_FORMAT_AND_SIZE),null===(n=v.current)||void 0===n||n.setCustomValidity(o),x(o)},L=s((e=>{if(!e.length)return void I({invalidFormat:!0});const[t]=e,n=t.size>d,[,o]=t.type.split("/"),a=!u.find((e=>e.substring(1)===o));n||a?S():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:r}),I({invalidFormat:a,overMaxSize:n}),y(t)}),[u,r,d]),N=s((()=>{S(),y(void 0),I({invalidFormat:!1,overMaxSize:!1})}),[]),R=s((()=>{var e;const t=null===(e=null==v?void 0:v.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?L(t):N()}),[N,L]);return o((()=>{const e=null==v?void 0:v.current;return null==e||e.addEventListener("change",R),null==e||e.addEventListener("cancel",N),()=>{null==e||e.removeEventListener("change",R),null==e||e.removeEventListener("cancel",N)}}),[R,N]),e.createElement(Dd,{spacing:"sm",alignX:"stretch"},e.createElement($d,{htmlFor:r},p,e.createElement(jl,{spacing:3,alignX:"stretch",style:{paddingTop:B.sm}},e.createElement(Cd,null,e.createElement("div",null,k),e.createElement("div",null,C)),e.createElement(np,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&L(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.blur()}},e.createElement(lp,null),e.createElement("input",Object.assign({ref:v,id:r,type:"file",accept:D,name:l,required:g,disabled:h},f))))),e.createElement(jl,{alignX:"stretch",spacing:"sm"},e.createElement(up,{file:b,resetSelection:N,disabled:h}),e.createElement(sp,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:$?C:void 0})))})),pp="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",gp=h(S).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${pp} display:${e=>e.shouldShow?"initial":"none"};z-index:${j.layers.modal};`,hp=h(S).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${pp} background-color:rgba(55,66,77,0.5);`,fp=h(S).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,vp=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(oe,null,n):n),bp=({className:t,children:n=null,shouldShow:o=!1,usePortal:a=!0})=>e.createElement(vp,{usePortal:a},e.createElement(gp,{className:ie([`${t}-container`,t]),shouldShow:o},e.createElement(hp,null),e.createElement(D,{isActive:o},e.createElement(fp,{className:ie([`${t}-wrap`,t])},n)))),yp=h.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,wp=h.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,xp=h(Ne).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,Ep=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:a})=>{const r=Vd(o,a);return e.createElement(bp,{shouldShow:o,className:`${t}-video`},e.createElement(yp,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(wp,{ref:r},e.createElement("iframe",{title:`${t}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e.createElement(xp,{variant:"flat",onClick:a,"data-testid":"video-modal--close",icon:e.createElement(Te,{color:"white"})}))))};var $p;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}($p||($p={}));const Cp=h(S).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,kp=h(Z).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Dp=h(S).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${Z} {\n color: ${null!=t?t:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Sp=h(Z).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${kp} {\n color: #fff;\n }\n `}`,Ip={style:{marginLeft:B.xs,padding:B.xs,height:B.base,width:B.base}},Lp=h.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${B.sm};svg{height:${B.base};width:${B.base};}`,Np=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),Rp=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0}),zp=({id:t,iconSlot:n,name:o,type:a,className:r,colourPalette:i=N.secondary.blue,customTextColour:l,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=Rp(r),f=Rp(g),[v,b,y]=Jd(),w=s((()=>u(t)),[t,u]),x=s((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=s((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),$=a===$p.draft,C=a===$p.saved,k=c?N.neutral.ink.dark:N.neutral.ink.base;return e.createElement(Cp,{className:`${ie([null==h?void 0:h.container,null==f?void 0:f.container])} ${c&&(null==f?void 0:f.active)||""}`,onClick:w},e.createElement(Dp,{active:c,onMouseEnter:b,onMouseLeave:y,colourPalette:i,customTextColour:l},n&&e.createElement(Lp,null,n),e.createElement(Z,{variant:"bodyBold"},o),d&&e.createElement(Sp,{active:c||v,colourPalette:i,customTextColour:l},e.createElement(kp,{className:null==f?void 0:f.counter,variant:"subheadingSmall"},d)),$&&e.createElement(Te,Object.assign({},Ip,{color:k,className:null==f?void 0:f.delete,onClick:x})),C&&c&&e.createElement(Np,Object.assign({},Ip,{color:k,className:null==f?void 0:f.edit,onClick:E}))))};var Pp;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Pp||(Pp={}));const Tp=t=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},t),e.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Mp=h(Z).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Fp=h(Tp).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Bp=h(Te).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Ap=h(Z).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Mp} {\n color: ${N.neutral.grey.lightest};\n }\n `}`,Op=h(S).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${N.neutral.grey.base};\n & > ${Ap} {\n background-color: ${N.neutral.grey.base};\n & > ${Mp} {\n color: ${N.neutral.ink.base};\n }\n }\n & > ${Z} {\n color: ${null!=e?e:N.neutral.ink.dark};\n }\n & > ${Fp} {\n color: ${N.neutral.ink.dark};\n }\n & > ${Bp} {\n color: ${N.neutral.ink.dark};\n }\n }\n\n & > ${Z} {\n color: ${null!=e?e:N.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Fp} {\n color: ${t.dark};\n }\n & > ${Bp} {\n color: ${t.dark};\n }\n\n & > ${Z} {\n color: ${null!=n?n:t.dark};\n }\n `}`,jp=h(Ce).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Op} {\n background-color: ${N.neutral.grey.base};\n & > ${Ap} {\n background-color: ${N.neutral.grey.base};\n & > ${Mp} {\n color: ${N.neutral.ink.base};\n }\n }\n & > ${Z} {\n color: ${null!=e?e:N.neutral.ink.dark};\n }\n & > ${Fp} {\n color: ${N.neutral.ink.dark};\n }\n & > ${Bp} {\n color: ${N.neutral.ink.dark};\n }\n }\n `}`,Hp={style:{marginLeft:B.xs,padding:B.xs,height:B.base,width:B.base}},Wp=h.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${B.sm};svg{height:${B.base};width:${B.base};}`,Vp=e.forwardRef(((t,n)=>{var{id:o,iconSlot:a,name:r,type:i,className:l,colourPalette:s=N.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:g}=t,h=te(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const f={delete:(v=l)?`${v}-delete`:void 0,edit:v?`${v}-edit`:void 0,container:v?`${v}-view`:void 0,active:v?`${v}-active`:void 0,counter:v?`${v}-counter`:void 0};var v;const[b,y,w]=Jd(),x=u&&p?p:m,E=i===Pp.draft,$=i===Pp.saved;return e.createElement(jp,Object.assign({className:ie([null==f?void 0:f.container]),onClick:()=>x(o),role:"tab","aria-selected":u,"aria-label":`${u&&E?"Delete":u&&$?"Edit":""} ${r} view ${c?`with ${c} ${g}`:""}`,customTextColour:d,ref:n},h),e.createElement(Op,{active:u,onMouseEnter:y,onMouseLeave:w,colourPalette:s,customTextColour:d},a&&e.createElement(Wp,null,a),e.createElement(Z,{variant:"bodyBold"},r),null!=c&&e.createElement(Ap,{"data-testid":"countContainer",active:u||b,colourPalette:s,customTextColour:d},e.createElement(Mp,{variant:"subheadingSmall"},c)),E&&e.createElement(Bp,Object.assign({},Hp,{"aria-label":"delete icon"})),$&&u&&e.createElement(Fp,Object.assign({},Hp,{"aria-label":"edit icon"}))))})),Zp=h(jl).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,Kp=h(jl).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${N.neutral.grey.lightest};`,Up=h(Bl).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${N.neutral.ink.base};`,qp=h(Mt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${N.neutral.ink.base};`,Yp=h(Tp).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${N.neutral.ink.base};`,Jp=h(Ne).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${N.neutral.grey.lightest};}`,Gp=h(Ne).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Up}{color:${N.neutral.ink.lightest};}}&:hover{background-color:${N.neutral.grey.lightest};}`,Xp=h(Ne).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${qp}{color:${N.neutral.ink.lightest};}}&:hover{background-color:${N.neutral.grey.lightest};}`,_p=h(xd).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,Qp=(e,n)=>{const[a,r]=t(!0),[i,l]=t(!1),[d,c]=t([]),u=s((()=>{var t,n;e.current.scrollLeft>0?r(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),r(!0));const o=e.current.scrollWidth-e.current.clientWidth;e.current.scrollLeft>=o-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),l(!0)):l(!1)}),[e]),m=s((()=>{e.current.scrollWidth-e.current.getBoundingClientRect().width<5?l(!0):l(!1)}),[e]),p=s((()=>{const t=((e,t,n)=>{for(let o=0;o<e.length;o++){if(void 0===e[o+3])return t-n;if(e[o]>=t)return e[o+3]}return t-n})(d,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]),g=s((()=>{const t=((e,t)=>{const n=e.slice().reverse();for(let o=0;o<e.length;o++){if(void 0===n[o+3])return 0;if(n[o]<t)return n[o+3]}return 0})(d,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]);return o((()=>{var t,o,a,r,i,l,s,p;if(e)return(null===(o=null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.children)||void 0===o?void 0:o.length)&&(null===(r=null===(a=null==e?void 0:e.current)||void 0===a?void 0:a.children)||void 0===r?void 0:r.length)!==d.length&&d.length>0&&d.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),c([...d,d[d.length-1]+(null!==(l=null===(i=e.current.children[d.length-1])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(p=null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.children)||void 0===p?void 0:p.length)&&0===d.length&&c((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m(),window.addEventListener("resize",(()=>m())),e.current.addEventListener("scroll",(()=>u())),()=>{window.removeEventListener("resize",(()=>m()))}}),[e,n,m,u,d]),{rightDisabled:i,leftDisabled:a,toNextScrollPosition:p,toPrevScrollPosition:g}},eg=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:a},r)=>{const l=i(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=Qp(l,t);return e.createElement(Kp,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Zp,{ref:l,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(_p,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Gp,{id:"left-arrow",icon:e.createElement(Up,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Xp,{id:"right-arrow",icon:e.createElement(qp,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(Jp,{icon:e.createElement(Yp,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":a,"aria-haspopup":o?"dialog":void 0,ref:r})))})),tg=h(S).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,ng=h(S).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,og=h(Td).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,ag=h(Ne).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${j.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${j.colors.secondary.red.base};\n `};`,rg=e=>Od(e,jd),ig=Id((t=>{var{size:n=Ed.base,hasError:o,className:a}=t,r=te(t,["size","hasError","className"]);return e.createElement(tg,{className:a},e.createElement(ng,null,"g"===r.weightUnit&&e.createElement(xd,null,e.createElement(og,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:rg},r)),e.createElement(ag,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(xd,null,e.createElement(og,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:rg},r)),e.createElement(ag,{hasError:o,size:n},"lb")),e.createElement(xd,null,e.createElement(og,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:rg},r)),e.createElement(ag,{hasError:o,size:n},"oz")))))}));ig.displayName="WeightInput",ig.defaultProps={weightUnit:"lb"};export{op as AcceptedFileTypes,ee as Accordion,et as ActionList,nt as Anchor,st as AnimatedDropdown,ct as Avatar,$t as Badge,zt as Banner,S as BaseContainer,jt as Breadcrumbs,Ne as Button,Ke as Card,Me as CardHeader,as as Checkbox,Ql as Choice,ds as ChoiceList,gs as CopyToClipboard,sd as DataTable,hd as DescriptionList,wd as DetailPage,Wd as DimensionsInput,ap as FileSizeUnit,ic as FilterTag,qd as FocusVisibleManager,lc as Grid,gc as Image,xd as InputGroup,iu as LegacyDataTable,ve as Loader,cu as LoginWithAmazonButton,wu as Modal,zu as PageHeader,ju as Pagination,Ju as PaginationRange,pe as Popover,bp as Popup,oe as Portal,om as PriceInput,is as Radio,Al as RangeCalendar,rm as ScreenReaderOnly,cm as Search,hm as SegmentedControl,vm as Select,Em as ShortcutKeys,Rm as SimpleTable,zm as Skeleton,Am as Slider,jl as Stack,_u as Stepper,Om as Tag,Z as Text,Td as TextField,Ym as ToastsLayout,Qm as Toggle,tp as ToggleButton,wt as Tooltip,mp as UploadFile,Ep as VideoModal,zp as View,Vp as ViewTab,eg as ViewsContainer,ig as WeightInput,ie as buildClassnames,ne as generateId,se as getOpaqueHexColor,le as hexToRgb,ce as isExternalLink,j as theme,$s as useCellWidths,Vd as useClickOutside,Cs as useColumns,Zd as useDebounce,ks as useDragToScroll,Kd as useDropdown,Yd as useFocusVisible,Jd as useHover,Gd as useIsOverflowing,Ds as useNested,Ss as useScrollPosition,Ts as useSelection,Xd as useTabs,Ld as withDeprecated,Id as withLabels};
|
|
1
|
+
import e,{useState as t,PureComponent as n,useEffect as a,useMemo as r,forwardRef as i,useRef as o,createContext as l,useCallback as s,useContext as d,cloneElement as c,Component as u,Fragment as m,useImperativeHandle as p}from"react";import{motion as h,AnimatePresence as g}from"framer-motion";import f,{css as v,createGlobalStyle as y}from"styled-components";import{usePopper as b}from"react-popper";import w from"resize-observer-polyfill";import x,{createPortal as $}from"react-dom";import{CSSTransition as D,TransitionGroup as E}from"react-transition-group";import k from"lodash.throttle";import{useScroll as C}from"react-use";import S from"react-scrolllock-configurable";const I=f.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,N={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},P=(e,t)=>e||(t?N[t]:void 0),R={brand:{blue:{lightest:"#E4F0F9",light:"#93C6E8",base:"#4CA1D9",dark:"#3878A2",darkest:"#1A384B"},peach:{lightest:"#FDECE9",light:"#F8B2A9",base:"#F48070",dark:"#B65F53",darkest:"#562D27"}},neutral:{ink:{lightest:"#959FA8",light:"#637381",base:"#37424D",dark:"#1B2126"},grey:{lightest:"#FAFAFB",light:"#F2F3F5",base:"#DFE3E8",dark:"#CDD1D5"},greyBlue:{lightest:"#AAC5D8",light:"#558BB1",base:"#406885",dark:"#1E313E"}},secondary:{red:{lightest:"#FDEEEE",light:"#F7BCBC",base:"#EB5757",dark:"#A53D3D",darkest:"#5E2323"},yellow:{lightest:"#FFF6D9",light:"#FFE999",base:"#FFC900",dark:"#BF9600",darkest:"#594600"},green:{lightest:"#E9F7EF",light:"#BEE7CF",base:"#27AE60",dark:"#1B7A43",darkest:"#104626"},lime:{lightest:"#F6FAEB",light:"#DBEBAE",base:"#A5CD35",dark:"#7B9927",darkest:"#394712"},teal:{lightest:"#E5F8F5",light:"#99E5D7",base:"#00BD9A",dark:"#00715C",darkest:"#00392E"},aqua:{lightest:"#EEFAFE",light:"#BBEBFA",base:"#56CCF2",dark:"#3C8FA9",darkest:"#225261"},purple:{lightest:"#F6EFFC",light:"#D9C0F1",base:"#A162DD",dark:"#694090",darkest:"#38224D"},blue:{lightest:"#D9EBF8",light:"#80BCE8",base:"#0079D1",dark:"#005A9C",darkest:"#003053"},pink:{lightest:"#FFF1FC",light:"#FFC7F3",base:"#FFA3EB",dark:"#BF7AB0",darkest:"#593852"},orange:{lightest:"#FEF5ED",light:"#FAD6B7",base:"#F2994A",dark:"#9D6330",darkest:"#613D1E"}},system:{scrollbar:{thumb:"rgba(99, 115, 129, .5)",background:"transparent"}}},L={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},T={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var z,F;!function(e){e.sm="0px 1px 3px rgba(55, 66, 77, 0.15)",e.base="0px 4px 6px rgba(27, 33, 38, 0.2)",e.md="0px 10px 15px rgba(27, 33, 38, 0.2)",e.lg="0px 20px 25px rgba(27, 33, 38, 0.2)"}(z||(z={})),function(e){e.none="none",e.line="line",e.xs="xs",e.sm="sm",e.base="base",e.md="md",e.lg="lg",e.xl="xl",e.xxl="xxl"}(F||(F={}));const M=function({increment:e,unit:t,count:n}){const a={};for(let r=0;r<=n;r++){const n=r*e;a[r]=`${n}${t}`}return a}({increment:.25,unit:"rem",count:20}),V={[F.none]:"0",[F.line]:"1px",[F.xs]:M[1],[F.sm]:M[2],[F.base]:M[4],[F.md]:M[6],[F.lg]:M[8],[F.xl]:M[12],[F.xxl]:M[16]},j=Object.assign(Object.assign({},V),M),O={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},B={headingXXL:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:R.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:O.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},A=Object.assign(Object.assign({},O),{breakpoints:L,colors:R,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:T,shadows:z,sizes:j,text:B}),{text:H,colors:W,fontFamily:Z}=A,K=f.span.attrs((({as:e,variant:t})=>({as:P(e,t)}))).withConfig({displayName:"vui--Text",componentId:"vui--p74sf8"})`box-sizing:border-box;display:inline-block;margin:0;padding:0;font-style:normal;font-weight:normal;font-size:12px;font-family:${Z};line-height:16px;color:#37424d;${({variant:e})=>("button"===e||"buttonSmall"===e)&&"\n cursor: pointer;\n background-color: transparent;\n border: 0;\n "} ${({variant:e,muted:t=!1})=>{if(!e)return"";const n=t?W.neutral.ink.lightest:H[e].color;return`\n font-family: ${H[e].fontFamily};\n font-style: ${H[e].fontStyle};\n font-weight: ${H[e].fontWeight};\n font-size: ${H[e].fontSize};\n line-height: ${H[e].lineHeight};\n color: ${n};\n text-decoration: ${H[e].textDecoration};\n letter-spacing: ${H[e].letterSpacing};\n `}}`,U=f(I).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,q=f(U).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${j.base};width:${j.base};color:${({glyphColor:e})=>e};}`,G=f(U).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,Y=f.summary.withConfig({displayName:"vui--AccordionSummary",componentId:"vui--1moens1"})`display:flex;flex-direction:column;padding:12px;border-radius:4px;user-select:none;cursor:pointer;border:1px solid ${A.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${A.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${A.colors.secondary.blue.light};}`,J=f(I).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,_=f(K).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,X=f(h(I)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,Q=f.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,ee=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:j.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.91021 10.47L7.97021 7.4167L11.0302 10.47L11.9702 9.53003L7.97021 5.53003L3.97021 9.53003L4.91021 10.47Z",fill:"currentColor"})),te=({className:n,children:a,label:r,iconSlot:i,glyphColor:o=R.neutral.ink.lightest,timeout:l=350,description:s,shouldOpenOnMount:d})=>{const[c,u]=t(!!d);return e.createElement(Q,{open:!!d,className:n},e.createElement(Y,{onClick:()=>u(!c)},e.createElement(J,null,e.createElement(q,{glyphColor:o},i,e.createElement(K,{variant:"body"},r)),e.createElement(G,null,e.createElement(h.span,{animate:{rotate:c?180:0}},e.createElement(ee,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(_,{variant:"hintText"},s)),c&&e.createElement(X,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},a))};function ne(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;const ae=e=>`${e}-${Math.floor(1e3*Math.random())}`;class re extends n{constructor(e){super(e),this.id=ae("portal"),this.portalNode=null,this.state={isMounted:!1}}componentDidMount(){const{rootElementRef:e}=this.props;this.portalNode=document.createElement("div"),this.portalNode.setAttribute("id",`portal-${this.id}`),this.portalNode.style.cssText="position: absolute; top: 0; left: 0;",e?null==e||e.appendChild(this.portalNode):document.body.appendChild(this.portalNode),this.setState({isMounted:!0})}componentWillUnmount(){if(this.portalNode){const{rootElementRef:e}=this.props;e?e.removeChild(this.portalNode):document.body.removeChild(this.portalNode)}}render(){const{children:e}=this.props,{isMounted:t}=this.state;return this.portalNode&&t?$(e,this.portalNode):null}}const ie=f.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,oe=f.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,le=e=>e.filter(Boolean).join(" "),se=e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},de=(e,t)=>{const n=se(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ce=["app.veeqo.com"];function ue(e,t=ce){if(e.startsWith("http://")||e.startsWith("https://")){const{hostname:n}=new URL(e);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}if(e.startsWith("//")){const{hostname:n}=new URL(`http:${e}`);return!t.some((e=>n.toLowerCase()===e.toLowerCase()))}return!1}const me='input:not([disabled]), summary:not([disabled]), a[href]:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',pe=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:r=!1})=>{a((()=>{if(!e||r)return;const t=e.querySelectorAll(me);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,r]),a((()=>{if(!e||!e)return;const a=t=>{if("Tab"===t.key&&!t.shiftKey){const a=e.querySelectorAll(me);if(a.length<1)return void n();a[0].focus(),t.stopPropagation(),t.preventDefault()}};return null==t||t.addEventListener("keydown",a),()=>null==t?void 0:t.removeEventListener("keydown",a)}),[t,e,n]);return{handleKeyDown:t=>{e&&("Escape"===t.key?n():r||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(me),a=n[0],r=n[n.length-1];t.shiftKey&&document.activeElement===a?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),a.focus())})(t))}}},he=n=>{var{id:i,children:o,zIndex:l=A.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:h=!1}=n,g=ne(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop"]);const[f,v]=t(null),{styles:y,attributes:x,update:$}=b(d,f,{placement:s}),D=r((()=>i||ae("popover")),[i]);(({anchorElement:e,popoverId:t})=>{a((()=>{if(e){try{e.hasAttribute("aria-expanded")||(console.warn("Popover - aria-expanded not set on anchor element.",e),e.setAttribute("aria-expanded","true"))}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: true")}try{e.hasAttribute("aria-controls")||(console.warn("Popover - aria-controls not set on anchor element.",e),e.setAttribute("aria-controls",t))}catch(e){console.warn(`Unable to set aria-controls for popover id: ${t}`)}try{e.hasAttribute("aria-haspopup")||(console.warn("Popover - aria-haspopup not set on anchor element.",e),e.setAttribute("aria-haspopup","dialog"))}catch(e){console.warn(`Unable to set aria-haspopup for popover id: ${t}`)}return()=>{try{e.setAttribute("aria-expanded","false")}catch(e){console.warn("Unable to update aria-expanded for popover anchor to: false")}}}}),[e,t])})({anchorElement:d,popoverId:D});const E=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:k}=pe({popperElement:f,anchorElement:d,onClose:E,disableFocusLock:p});return a((()=>{if(!$||!f)return;const e=new w($);return e.observe(f),()=>e.disconnect()}),[$,f]),a((()=>{if($)return window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)}),[$]),e.createElement(re,{rootElementRef:c},!h&&e.createElement(oe,{onClick:E,zIndex:l}),e.createElement(ie,Object.assign({open:!0,zIndex:l,ref:v,style:Object.assign(Object.assign({},y.popper),m),onKeyDown:k},x.popper,g),o))},ge=({width:t,height:n,className:a,color:r,label:i})=>e.createElement("svg",{width:t,height:n,className:a,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg","aria-label":i},e.createElement("defs",null,e.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},e.createElement("stop",{stopColor:r,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:r,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:r,offset:"100%"}))),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:r,strokeWidth:"2"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),e.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},e.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}))))),fe=({width:t,height:n,className:a,color:r,label:i})=>e.createElement("svg",{width:t,height:n,className:a,viewBox:"0 0 105 105",fill:r,"aria-label":i},e.createElement("circle",{cx:"12.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"12.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"52.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"12.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"52.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"92.5",cy:"92.5",r:"12.5"},e.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ve=({width:t,height:n,className:a,color:r,label:i})=>e.createElement("svg",{width:t,height:n,className:a,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,"aria-label":i},e.createElement("circle",{cx:"15",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"60",cy:"15",r:"9",attributeName:"fillOpacity",from:"1",to:"0.3"},e.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),e.createElement("circle",{cx:"105",cy:"15",r:"15"},e.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.createElement("animate",{attributeName:"fillOpacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))),ye=({className:t,height:n=24,width:a=24,color:r="#588CB0",type:i="TailSpin"})=>{switch(i){case"Grid":return e.createElement(fe,{className:t,height:n,width:a,color:r});case"ThreeDots":return e.createElement(ve,{className:t,height:n,width:a,color:r});default:return e.createElement(ge,{className:t,height:n,width:a,color:r})}},be=f.span.withConfig({displayName:"vui--MainContent",componentId:"vui--exbqdz"})`display:inline-flex;align-items:center;gap:${({hasText:e})=>e?"8px":"4px"};${({$loading:e})=>e?"opacity: 0;":null};svg{width:${({size:e})=>j[e]};height:${({size:e})=>j[e]};}`,we=f.button.withConfig({displayName:"vui--BaseButton",componentId:"vui--nvz516"})`position:relative;box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${A.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",a="24px",r="8px",i="16px",o="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(a="16px"),"sm"===e.size&&(t="32px",n="16px",a="16px",r="4px",i="14px",o="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(a="8px")),e.hasText||(n="8px",a="8px"),`\n --outline-width: ${o};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${a};\n border-radius: ${r};\n font-size: ${i};\n line-height: ${i};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,xe=f(we).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${A.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?A.colors.neutral.ink.base:A.colors.secondary.blue.base};&:hover{background-color:${A.colors.neutral.grey.lightest};}&:active{background-color:${A.colors.neutral.grey.lightest};border-color:${A.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${A.colors.neutral.grey.base} !important;border-color:${A.colors.neutral.grey.base} !important;color:${A.colors.neutral.ink.light} !important;}`,$e=f(xe).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${A.colors.secondary.red.base};&:hover{color:${A.colors.secondary.red.dark};}&:active{border-color:${A.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.red.light};color:${A.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.red.light};}`,De=f(xe).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${A.colors.secondary.blue.base};border-color:${A.colors.secondary.blue.base};color:white;&:hover{background-color:${A.colors.secondary.blue.dark};border-color:${A.colors.secondary.blue.dark};}&:active{background-color:${A.colors.secondary.blue.dark};border-color:${A.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};}`,Ee=f(De).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${A.colors.secondary.red.base};border-color:${A.colors.secondary.red.base};color:white;&:hover{background-color:${A.colors.secondary.red.dark};border-color:${A.colors.secondary.red.dark};}&:active{background-color:${A.colors.secondary.red.dark};border-color:${A.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.red.light};}`,ke=f(we).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${A.colors.neutral.ink.base};&:hover{background-color:${A.colors.neutral.grey.light};}&:active{background-color:${A.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,Ce=f.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,Se=f(Ce).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${A.text.link.fontFamily};font-size:${A.text.link.fontSize};line-height:${A.text.link.fontSize};font-weight:${A.text.link.fontWeight};line-height:${A.text.link.lineHeight};text-decoration:${A.text.link.textDecoration};color:${A.colors.secondary.blue.base};&:hover{color:${A.colors.secondary.blue.dark};}& > * + *{margin-left:${A.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${A.colors.secondary.blue.light};border-radius:4px;}`,Ie=f.div.withConfig({displayName:"vui--LoadingWrapper",componentId:"vui--1qt232p"})`position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;margin-left:0;`,Ne=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6L8 10L12 6H4Z",fill:"currentColor"})),Pe={default:xe,primary:De,destructive:$e,primaryDestructive:Ee,flat:ke,link:Se,unstyled:Ce},Re=i(((t,n)=>{var{className:a,children:r,icon:i,variant:o="default",size:l="base",dropdown:s=!1,loading:d=!1}=t,c=ne(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===o)return e.createElement(Ce,Object.assign({ref:n,className:a},c),r);const u=Pe[o],m=void 0!==r,p=!!i;return e.createElement(u,Object.assign({ref:n,className:a,size:l,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(be,{$loading:d,hasText:!!r,size:r||"sm"===l?"base":"md"},i&&i,void 0!==r&&r,s&&e.createElement(Ne,null)),d&&e.createElement(Ie,null,e.createElement(ye,null)))})),Le=f.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${j.md};padding-right:${j.md};padding-left:${j.md};margin-bottom:${j.md};& > * + *{margin-top:${j.xs};}`,Te=f.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${j.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,ze=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:j.md},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0302 5.52997L7.97021 8.5833L4.91021 5.52997L3.97021 6.46997L7.97021 10.47L11.9702 6.46997L11.0302 5.52997Z",fill:"currentColor"})),Fe=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:24,width:24},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6.51071L17.4893 5L11.5 10.9893L5.51071 5L4 6.51071L9.98929 12.5L4 18.4893L5.51071 20L11.5 14.0107L17.4893 20L19 18.4893L13.0107 12.5L19 6.51071Z",fill:"currentColor"})),Me=({id:t,title:n,subtitle:a,headerVariant:r="headingSmall",action:i,ActionSlot:o,isCollapsed:l,onClickCollapse:s,onClickClose:d})=>e.createElement(Le,null,e.createElement(Te,null,e.createElement(K,{id:t,variant:r},n),i&&e.createElement(Re,{variant:"link",onClick:i.onClick},i.title),o,s&&e.createElement(Re,{variant:"flat",icon:l?e.createElement(ze,null):e.createElement(ee,null),onClick:s}),d&&e.createElement(Re,{variant:"flat",icon:e.createElement(Fe,null),onClick:d,"aria-label":"Close"})),a&&e.createElement(K,{variant:"subheadingSmall"},a)),{grey:Ve}=R.neutral,je={0:"none",1:z.sm,2:z.base,3:z.md,4:z.lg},Oe={info:R.secondary.blue.base,success:R.secondary.green.base,error:R.secondary.red.base},Be=f.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${j.base};padding:${j.md};z-index:2;`,Ae=f.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${j.md};padding-left:${j.md};margin-top:${j.md};margin-bottom:${j.md};font-family:${B.body.fontFamily};font-size:${B.body.fontSize};font-weight:${B.body.fontWeight};line-height:${B.body.lineHeight};color:${B.body.color};& + &{border-top:${j.line} solid ${Ve.base};padding-top:${j.md};}`,He=f.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${j.md};margin-right:-${j.md};`,We=f(h.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${Ae}:first-child{margin-top:0;}`,Ze=f.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${j.line} solid ${Ve.base};box-shadow:${e=>void 0!==e.elevation?je[e.elevation]:z.sm};border-radius:${T.md};overflow:hidden;box-sizing:border-box;${({accent:e})=>e&&`\n &::after {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: ${j.xs};\n background-color: ${Oe[e]};\n }\n `}`,Ke={expanded:{height:"auto"},collapsed:{height:0}},Ue=({className:n,style:a,title:r,subtitle:i,HeaderActionSlot:o,action:l,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[h,g]=t(!1),f=r&&e.createElement(Me,{title:r,subtitle:i,ActionSlot:o,action:l,onClickClose:m,isCollapsed:h,onClickCollapse:s?()=>{g(!h)}:void 0}),v=s&&!h||!s,y=e.createElement(We,{animate:v?"expanded":"collapsed",variants:Ke,transition:{duration:.3,ease:"easeOut"}},e.createElement(Ae,null,u)),b=void 0!==p&&e.createElement(Be,null,p());return e.createElement(Ze,{className:n,style:a,elevation:d,accent:c},f,y,b)};Ue.Surface=Ze,Ue.Section=Ae,Ue.FullBleed=He,Ue.Footer=Be;const{sizes:qe,colors:Ge,text:Ye}=A,Je=f(Ue.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${qe.base} 0;display:flex;flex-direction:column;`,_e=f.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${Ge.neutral.grey.base};margin-top:${qe.base};padding-top:${qe.base};}`,Xe=f(K).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${qe.sm} ${qe.base} ${qe.sm};`,Qe=f(Re).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${qe.lg};padding:${qe.xs} ${qe.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ye.body.fontFamily};font-size:${Ye.body.fontSize};font-weight:${Ye.body.fontWeight};&:hover{background-color:${Ge.neutral.grey.light};color:${Ge.secondary.blue.base};}& > * + *{margin-left:${qe[3]};}`,et={item:Qe,action:f(Qe).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${Ge.secondary.blue.base};`,link:f(Qe).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${Ge.secondary.blue.base};text-decoration:underline;`},tt=({title:n,items:a=[],sections:r,buttonVariant:i,buttonSize:o})=>{const[l,s]=t(!1),[d,c]=t(null),u=t=>{const n=et[t.variant||"item"];return e.createElement(n,{onClick:()=>{return e=t.onClick,s(!1),void e();var e},key:t.title},t.icon&&t.icon,e.createElement("span",null,t.title))},m=r?r.map((t=>e.createElement(_e,{key:t.title},t.title&&e.createElement(Xe,null,t.title),t.items.map(u)))):a.map(u);return e.createElement(e.Fragment,null,e.createElement(Re,{dropdown:!0,variant:i,size:o,onClick:()=>s(!l),ref:c},n),l&&e.createElement(he,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(Je,null,m)))},nt=f.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${A.text.link.fontFamily};font-style:${A.text.link.fontStyle};font-weight:${A.text.link.fontWeight};font-size:${A.text.link.fontSize};line-height:${A.text.link.lineHeight};color:${A.colors.secondary.blue.base};text-decoration:${A.text.link.textDecoration};&:hover{color:${A.colors.secondary.blue.dark};}`,at=t=>{var{children:n,href:a,rel:r,allowedHostnames:i=ce}=t,o=ne(t,["children","href","rel","allowedHostnames"]);const l=ue(a,i),s=r||(l?"noopener noreferrer":void 0);return e.createElement(nt,Object.assign({href:a,rel:s},o),n)},rt=f(I).withConfig({displayName:"vui--Container",componentId:"vui--r1m0qe"})`display:inline-flex;background-color:#ffffff;box-shadow:1px 4px 15px rgba(27, 33, 38, 0.25);border-radius:4px;overflow:hidden;`,it=i(((t,n)=>{const{children:a,className:r,role:i}=t;return e.createElement(rt,{className:r,ref:n,role:i},a)})),ot=f(I).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,lt=f(I).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,st=f(it).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${A.layers.popup};${e=>e.reversed?"bottom: 8px;":"top: 6px;"} &.dropdown-enter{opacity:0;transform:translateY(-6px);}&.dropdown-enter-active{opacity:1;transition:all 200ms;transform:translateY(0px);}&.dropdown-exit{opacity:1;transform:translateY(0px);}&.dropdown-exit-active{opacity:0;transition:all 200ms;transform:translateY(-6px);}`,dt=({cta:t,shouldShowDropdown:n,children:r,className:i="animated-dropdown",reversed:l=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const h=o(null);return((e,t)=>{a((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}}),[e,t])})(h,(e=>{n&&s(e)})),e.createElement(ot,{className:`${i}-container ${i}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:h},!l&&t,e.createElement(lt,{className:`${i}-wrap ${i}`},e.createElement(D,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(st,{role:"dialog",reversed:l,className:`${i}-basic-dropdown ${i}`},r))),l&&t)},ct=f.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${A.colors.neutral.grey.base};color:${e=>e.textColor};background-color:${e=>e.bgColor};cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center;background-size:cover;span{font-family:${A.text.bodySmallBold.fontFamily};font-weight:${A.text.bodySmallBold.fontWeight};font-size:${A.text.bodySmallBold.fontSize};line-height:${A.text.bodySmallBold.lineHeight};}`,ut=({width:t="40px",name:n="Veeqo",bgColor:a=A.colors.secondary.blue.base,textColor:r="#ffffff"})=>{const i=n.toUpperCase().match(/\b(\w)/g);return e.createElement(ct,{width:t,bgColor:a,textColor:r,className:"avatar"},null==i?void 0:i.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},mt=f.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,pt=f(mt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,ht=f(K).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${A.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,gt=f.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,ft=f.div.withConfig({displayName:"vui--Tip",componentId:"vui--143ip1u"})`transition:${({duration:e})=>`opacity ${e}ms`};&.tip-enter{opacity:0;}&.tip-enter-active{opacity:1;}&[data-popper-placement^='top-start'] > #veeqo-components-triangle{left:8px;bottom:0px;}&[data-popper-placement^='top-end'] > #veeqo-components-triangle{right:8px;bottom:0px;}&[data-popper-placement^='bottom-start'] > #veeqo-components-triangle{left:8px;top:-4px;}&[data-popper-placement^='bottom-end'] > #veeqo-components-triangle{right:8px;top:-4px;}`,vt=f(mt).withConfig({displayName:"vui--Wrap",componentId:"vui--e33d0s"})`font-size:14px;overflow:hidden;padding:16px 20px;border-radius:4px;box-shadow:0 6px 1em -0.5em rgba(0, 0, 0, 0.35);background:#333;color:#fff;z-index:10;min-width:${({tipMinWidth:e})=>e}px;max-width:${({tipMaxWidth:e})=>e}px;`;var yt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(yt||(yt={}));const bt={duration:400,side:yt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},wt=({content:n,text:a,hoverableElement:r,config:i,reversed:o,withTriangle:l,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},bt),i),{duration:m,side:p,triangleOffset:h,tipMinWidth:g,tipMaxWidth:f}=u,{styles:v,attributes:y}=b(r,d,{placement:`${p}-${o?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),w=Object.assign(Object.assign({},v.popper),{zIndex:A.layers.tooltip});return e.createElement(ft,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:h,style:w},y.popper,{role:"tooltip"}),e.createElement(vt,{className:s.wrap,tipMinWidth:g,tipMaxWidth:f},null!=n?n:e.createElement(ht,null,a)),l&&e.createElement(gt,{id:"veeqo-components-triangle",className:s.triangle}))},xt=({children:n,text:a,content:r,config:i,reversed:o=!1,className:l,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,h]=t(null),g=!!a&&a.trim().length>0,f={container:l&&`${l} ${l}-container`,tip:l&&`${l}-tip`,wrap:l&&`${l}-wrap`,triangle:l&&`${l}-triangle`,hoverable:l&&`${l}-hoverable`},v=!(!r&&!g);if(!v)return n;const y=u&&v&&e.createElement(wt,{classNames:f,hoverableElement:p,config:i,reversed:o,withTriangle:s,text:a,content:r});return e.createElement(mt,{className:f.container},c?x.createPortal(y,document.body):y,e.createElement(pt,{ref:h,className:f.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},$t=f(I).withConfig({displayName:"vui--BaseBadge",componentId:"vui--1l3fzu"})`display:inline-flex;align-items:center;vertical-align:middle;gap:4px;padding:0.35em 0.65em;font-family:${B.bodySmall.fontFamily};font-weight:${B.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${j.base};height:${j.base};}`,Dt={default:f($t).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${R.secondary.blue.base};color:${R.secondary.blue.base};`,primary:f($t).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${R.secondary.blue.base};background-color:${R.secondary.blue.lightest};color:${R.secondary.blue.base};`,warning:f($t).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${R.secondary.yellow.base};background-color:${R.secondary.yellow.lightest};color:${R.secondary.orange.dark};`},Et=({variant:t="default",hideBorder:n=!1,iconSlot:a,tooltip:r,className:i,e2eClassName:o,children:l})=>{const s=Dt[t];return e.createElement(xt,{text:r},e.createElement(s,{className:le([i,o]),hideBorder:n},a&&a,l&&e.createElement("span",null,l)))},kt=f(I).withConfig({displayName:"vui--BannerLayout",componentId:"vui--c6sp3u"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:20px 24px 24px 24px;border-radius:4px;${({accentColor:e})=>e&&`\n box-shadow: 0px 1px 3px rgba(55, 66, 77, 0.15), inset 4px 0px 0px ${e};\n `} background-color:${({backgroundColor:e})=>e||"white"};`,Ct=f(I).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,St=f(I).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,It=f(St).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${j.md};height:${j.md};color:${({accentColor:e})=>e};}`,Nt=f(I).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Pt=f(St).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Rt=f(K).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Lt={help:R.secondary.blue.base,info:R.neutral.ink.base,error:R.secondary.red.base,success:R.secondary.green.base},Tt=t=>{var{type:n="info",text:a,icon:r,onClose:i,className:o,header:l,children:s,backgroundColor:d="white"}=t,c=ne(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Lt[n];return e.createElement(kt,Object.assign({accentColor:u,className:o,backgroundColor:d},c),e.createElement(Ct,null,r&&e.createElement(It,{style:{marginRight:j.md},accentColor:u},r),s?e.createElement(Nt,null,s):e.createElement(e.Fragment,null,e.createElement(Pt,null,l||e.createElement(Rt,{variant:"headingSmall"},a)),e.createElement(St,null,i&&e.createElement(Re,{variant:"flat","aria-label":"Close",icon:e.createElement(Fe,null),onClick:i})))))},zt=f.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${B.body.fontFamily};font-weight:${B.body.fontWeight};font-size:${B.body.fontSize};line-height:${B.body.lineHeight};`,Ft=f.li.withConfig({displayName:"vui--BreadcrumbSC",componentId:"vui--17agc2w"})`display:flex;align-items:center;.separator{display:flex;align-items:center;padding:0px 0.4rem;}a{color:inherit;text-decoration:none;text-transform:capitalize;}a:hover{text-decoration:underline;}span{font-weight:600;text-transform:capitalize;}`,Mt=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99994 11.06L9.05327 8L5.99994 4.94L6.93994 4L10.9399 8L6.93994 12L5.99994 11.06Z",fill:"currentColor"})),Vt=({children:t,title:n,LinkComponent:a,href:r})=>a?e.createElement(Ft,{className:"breadcrumb"},e.createElement(a,{href:r},n),t):e.createElement(Ft,{className:"breadcrumb"},n,t),jt=()=>e.createElement(Mt,{className:"separator",width:j.base,height:j.base}),Ot=({children:t,href:n})=>e.createElement("a",{href:n},t),Bt=({children:t})=>e.createElement("span",null,t),At=({items:t,Separator:n=e.createElement(jt,null),LinkComponent:a=Ot})=>e.createElement(zt,{className:"breadcrumbs"},t.map(((r,i)=>e.createElement(Vt,{key:r.title,title:r.title,href:r.pathname,LinkComponent:i!==t.length-1?a:Bt},t.length!==i+1&&n))));function Ht(e,t){return e-t*Math.floor(e/t)}const Wt=1721426;function Zt(e,t,n,a){let r=(t=Ut(e,t))-1,i=-2;return n<=2?i=0:Kt(t)&&(i=-1),1721425+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*n-362)/12+i+a)}function Kt(e){return e%4==0&&(e%100!=0||e%400==0)}function Ut(e,t){return"BC"===e?1-t:t}function qt(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Gt={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Yt{fromJulianDay(e){let t=e,n=t-Wt,a=Math.floor(n/146097),r=Ht(n,146097),i=Math.floor(r/36524),o=Ht(r,36524),l=Math.floor(o/1461),s=Ht(o,1461),d=Math.floor(s/365),c=400*a+100*i+4*l+d+(4!==i&&4!==d?1:0),[u,m]=qt(c),p=t-Zt(u,m,1,1),h=2;t<Zt(u,m,3,1)?h=0:Kt(m)&&(h=1);let g=Math.floor((12*(p+h)+373)/367),f=t-Zt(u,m,g,1)+1;return new Xn(u,m,g,f)}toJulianDay(e){return Zt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Gt[Kt(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Kt(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const Jt={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function _t(e,t){return t=Nn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Xt(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Qt(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-function(e){let t=pn(e);return t&&Jt[t]||0}(t))%7;return a<0&&(a+=7),a}function en(e){return Cn(Date.now(),e)}function tn(e){return Sn(en(e))}function nn(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function an(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let rn=null;function on(){return null==rn&&(rn=(new Intl.DateTimeFormat).resolvedOptions().timeZone),rn}function ln(e){return e.subtract({days:e.day-1})}function sn(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function dn(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function cn(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function un(e,t){let n=Qt(e,t);return e.subtract({days:n})}const mn=new Map;function pn(e){if(Intl.Locale){let t=mn.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&mn.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function hn(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function gn(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const fn={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function vn(e){return yn(Ut((e=Nn(e,new Yt)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function yn(e,t,n,a,r,i,o){let l=new Date;return l.setUTCHours(a,r,i,o),l.setUTCFullYear(e,t-1,n),l.getTime()}function bn(e,t){if("UTC"===t)return 0;if(e>0&&t===on())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:a,day:r,hour:i,minute:o,second:l}=xn(e,t);return yn(n,a,r,i,o,l,0)-1e3*Math.floor(e/1e3)}const wn=new Map;function xn(e,t){let n=wn.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),wn.set(t,n));let a=n.formatToParts(new Date(e)),r={};for(let e of a)"literal"!==e.type&&(r[e.type]=e.value);return{year:"BC"===r.era||"B"===r.era?1-r.year:+r.year,month:+r.month,day:+r.day,hour:"24"===r.hour?0:+r.hour,minute:+r.minute,second:+r.second}}const $n=864e5;function Dn(e,t,n,a){return(n===a?[n]:[n,a]).filter((n=>function(e,t,n){let a=xn(n,t);return e.year===a.year&&e.month===a.month&&e.day===a.day&&e.hour===a.hour&&e.minute===a.minute&&e.second===a.second}(e,t,n)))}function En(e,t,n="compatible"){let a=In(e);if("UTC"===t)return vn(a);if(t===on()&&"compatible"===n){a=Nn(a,new Yt);let e=new Date,t=Ut(a.era,a.year);return e.setFullYear(t,a.month-1,a.day),e.setHours(a.hour,a.minute,a.second,a.millisecond),e.getTime()}let r=vn(a),i=bn(r-$n,t),o=bn(r+$n,t),l=Dn(a,t,r-i,r-o);if(1===l.length)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(r-i,r-o);case"compatible":case"later":return Math.max(r-i,r-o);case"reject":throw new RangeError("No such absolute time found")}}function kn(e,t,n="compatible"){return new Date(En(e,t,n))}function Cn(e,t){let n=bn(e,t),a=new Date(e+n),r=a.getUTCFullYear(),i=a.getUTCMonth()+1,o=a.getUTCDate(),l=a.getUTCHours(),s=a.getUTCMinutes(),d=a.getUTCSeconds(),c=a.getUTCMilliseconds();return new na(r,i,o,t,n,l,s,d,c)}function Sn(e){return new Xn(e.calendar,e.era,e.year,e.month,e.day)}function In(e,t){let n=0,a=0,r=0,i=0;if("timeZone"in e)({hour:n,minute:a,second:r,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:r,millisecond:i}=t),new ea(e.calendar,e.era,e.year,e.month,e.day,n,a,r,i)}function Nn(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),a=e.copy();return a.calendar=t,a.era=n.era,a.year=n.year,a.month=n.month,a.day=n.day,Mn(a),a}function Pn(e,t,n){if(e instanceof na)return e.timeZone===t?e:function(e,t){let n=vn(e)-e.offset;return Nn(Cn(n,t),e.calendar)}(e,t);return Cn(En(e,t,n),t)}const Rn=36e5;function Ln(e,t){let n=e.copy(),a="hour"in n?function(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=An(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=An(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=An(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=An(e.hour,24),t}(e)}(n,t):0;Tn(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,zn(n),Fn(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=a,function(e){for(;e.day<1;)e.month--,zn(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,zn(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let r=n.calendar.getYearsInEra(n);if(n.year>r){var i,o;let e=null===(i=(o=n.calendar).isInverseEra)||void 0===i?void 0:i.call(o,n);n.year=r,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Tn(e,t){var n,a;(null===(n=(a=e.calendar).isInverseEra)||void 0===n?void 0:n.call(a,e))&&(t=-t),e.year+=t}function zn(e){for(;e.month<1;)Tn(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Tn(e,1)}function Fn(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Mn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Fn(e)}function Vn(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function jn(e,t){return Ln(e,Vn(t))}function On(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),Mn(n),n}function Bn(e,t){let n=e.copy();var a;return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),(a=n).millisecond=Math.max(0,Math.min(a.millisecond,1e3)),a.second=Math.max(0,Math.min(a.second,59)),a.minute=Math.max(0,Math.min(a.minute,59)),a.hour=Math.max(0,Math.min(a.hour,23)),n}function An(e,t){let n=e%t;return n<0&&(n+=t),n}function Hn(e,t,n,a){let r=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=Zn(i,n,0,t.length-1,null==a?void 0:a.round),r.era=t[i],Mn(r);break}case"year":var i,o;(null===(i=(o=r.calendar).isInverseEra)||void 0===i?void 0:i.call(o,r))&&(n=-n),r.year=Zn(e.year,n,-1/0,9999,null==a?void 0:a.round),r.year===-1/0&&(r.year=1),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e);break;case"month":r.month=Zn(e.month,n,1,e.calendar.getMonthsInYear(e),null==a?void 0:a.round);break;case"day":r.day=Zn(e.day,n,1,e.calendar.getDaysInMonth(e),null==a?void 0:a.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(r),Mn(r),r}function Wn(e,t,n,a){let r=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(12===(null==a?void 0:a.hourCycle)){let e=t>=12;i=e?12:0,o=e?23:11}r.hour=Zn(t,n,i,o,null==a?void 0:a.round);break}case"minute":r.minute=Zn(e.minute,n,0,59,null==a?void 0:a.round);break;case"second":r.second=Zn(e.second,n,0,59,null==a?void 0:a.round);break;case"millisecond":r.millisecond=Zn(e.millisecond,n,0,999,null==a?void 0:a.round);break;default:throw new Error("Unsupported field "+t)}return r}function Zn(e,t,n,a,r=!1){if(r){(e+=Math.sign(t))<n&&(e=a);let r=Math.abs(t);(e=t>0?Math.ceil(e/r)*r:Math.floor(e/r)*r)>a&&(e=n)}else(e+=t)<n?e=a-(n-e-1):e>a&&(e=n+(e-a-1));return e}function Kn(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){n=En(Ln(In(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else n=vn(e)-e.offset;return n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),Nn(Cn(n,e.timeZone),e.calendar)}function Un(e){let t=Nn(e,new Yt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function qn(e){return`${Un(e)}T${t=e,`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}`;var t}function Gn(e){return`${qn(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),a=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Yn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function Jn(e){let t,n="object"==typeof e[0]?e.shift():new Yt;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var _n=new WeakMap;class Xn{copy(){return this.era?new Xn(this.calendar,this.era,this.year,this.month,this.day):new Xn(this.calendar,this.year,this.month,this.day)}add(e){return Ln(this,e)}subtract(e){return jn(this,e)}set(e){return On(this,e)}cycle(e,t,n){return Hn(this,e,t,n)}toDate(e){return kn(this,e)}toString(){return Un(this)}compare(e){return nn(this,e)}constructor(...e){Yn(this,_n,{writable:!0,value:void 0});let[t,n,a,r,i]=Jn(e);this.calendar=t,this.era=n,this.year=a,this.month=r,this.day=i,Mn(this)}}var Qn=new WeakMap;class ea{copy(){return this.era?new ea(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ea(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ln(this,e)}subtract(e){return jn(this,e)}set(e){return On(Bn(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return Hn(this,e,t,n);default:return Wn(this,e,t,n)}}toDate(e,t){return kn(this,e,t)}toString(){return qn(this)}compare(e){let t=nn(this,e);return 0===t?function(e,t){return an(e)-an(t)}(this,In(e)):t}constructor(...e){Yn(this,Qn,{writable:!0,value:void 0});let[t,n,a,r,i]=Jn(e);this.calendar=t,this.era=n,this.year=a,this.month=r,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Mn(this)}}var ta=new WeakMap;class na{copy(){return this.era?new na(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new na(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Kn(this,e)}subtract(e){return function(e,t){return Kn(e,Vn(t))}(this,e)}set(e,t){return function(e,t,n){let a=In(e),r=Bn(On(a,t),t);return 0===r.compare(a)?e:Nn(Cn(En(r,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,a){switch(t){case"hour":{let t=0,r=23;if(12===(null==a?void 0:a.hourCycle)){let n=e.hour>=12;t=n?12:0,r=n?23:11}let i=In(e),o=Nn(Bn(i,{hour:t}),new Yt),l=[En(o,e.timeZone,"earlier"),En(o,e.timeZone,"later")].filter((t=>Cn(t,e.timeZone).day===o.day))[0],s=Nn(Bn(i,{hour:r}),new Yt),d=[En(s,e.timeZone,"earlier"),En(s,e.timeZone,"later")].filter((t=>Cn(t,e.timeZone).day===s.day)).pop(),c=vn(e)-e.offset,u=Math.floor(c/Rn),m=c%Rn;return c=Zn(u,n,Math.floor(l/Rn),Math.floor(d/Rn),null==a?void 0:a.round)*Rn+m,Nn(Cn(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Wn(e,t,n,a);case"era":case"year":case"month":case"day":return Nn(Cn(En(Hn(In(e),t,n,a),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=vn(e)-e.offset;return new Date(t)}(this)}toString(){return Gn(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Pn(e,this.timeZone).toDate().getTime()}constructor(...e){Yn(this,ta,{writable:!0,value:void 0});let[t,n,a,r,i]=Jn(e),o=e.shift(),l=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=r,this.day=i,this.timeZone=o,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Mn(this)}}const aa=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],ra=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ia=[1867,1911,1925,1988,2018],oa=["meiji","taisho","showa","heisei","reiwa"];function la(e){const t=aa.findIndex((([t,n,a])=>e.year<t||(e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<a)));return-1===t?aa.length-1:0===t?0:t-1}function sa(e){let t=ia[oa.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Xn(e.year+t,e.month,e.day)}class da extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=la(t);return new Xn(this,oa[n],t.year-ia[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(sa(e))}balanceDate(e){let t=sa(e),n=la(t);oa[n]!==e.era&&(e.era=oa[n],e.year=t.year-ia[n]),this.constrainDate(e)}constrainDate(e){let t=oa.indexOf(e.era),n=ra[t];if(null!=n){let[a,r,i]=n,o=a-ia[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(r,e.month),e.month===r&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,a]=aa[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(a,e.day))}}getEras(){return oa}getYearsInEra(e){let t=oa.indexOf(e.era),n=aa[t],a=aa[t+1];if(null==a)return 9999-n[0]+1;let r=a[0]-n[0];return(e.month<a[1]||e.month===a[1]&&e.day<a[2])&&r++,r}getDaysInMonth(e){return super.getDaysInMonth(sa(e))}getMinimumMonthInYear(e){let t=ca(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=ca(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ca(e){if(1===e.year){let t=oa.indexOf(e.era);return aa[t]}}class ua extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Ut(t.era,t.year);return new Xn(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(ma(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(ma(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function ma(e){let[t,n]=qt(e.year+-543);return new Xn(t,n,e.month,e.day)}const pa=1911;function ha(e){return"minguo"===e.era?e.year+pa:1-e.year+pa}function ga(e){let t=e-pa;return t>0?["minguo",t]:["before_minguo",1-t]}class fa extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Ut(t.era,t.year),[a,r]=ga(n);return new Xn(this,a,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(va(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=ga(ha(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(va(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-pa}constructor(...e){super(...e),this.identifier="roc"}}function va(e){let[t,n]=qt(ha(e));return new Xn(t,n,e.month,e.day)}const ya=1948320,ba=[0,31,62,93,124,155,186,216,246,276,306,336];class wa{fromJulianDay(e){let t=e-ya,n=1+Math.floor((33*t+3)/12053),a=t-(365*(n-1)+Math.floor((8*n+21)/33)),r=a<216?Math.floor(a/31):Math.floor((a-6)/30);return new Xn(this,n,r+1,a-ba[r]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=ba[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){if(e.month<=6)return 31;if(e.month<=11)return 30;return Ht(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class xa extends Yt{fromJulianDay(e){let t,n,a,r=super.fromJulianDay(e),i=r.year-78,o=e-Zt(r.era,r.year,1,1);if(o<80?(i--,t=Kt(r.year-1)?31:30,o+=t+155+90+10):(t=Kt(r.year)?31:30,o-=80),o<t)n=1,a=o+1;else{let e=o-t;e<155?(n=Math.floor(e/31)+2,a=e%31+1):(e-=155,n=Math.floor(e/30)+7,a=e%30+1)}return new Xn(this,i,n,a)}toJulianDay(e){let t,n,a=e.year+78,[r,i]=qt(a);return Kt(i)?(t=31,n=Zt(r,i,3,21)):(t=30,n=Zt(r,i,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&Kt(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const $a=1948440,Da=1948439,Ea=1300,ka=1600,Ca=460322;function Sa(e,t,n,a){return a+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function Ia(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),r=Math.min(12,Math.ceil((n-(29+Sa(t,a,1,1)))/29.5)+1),i=n-Sa(t,a,r,1)+1;return new Xn(e,a,r,i)}function Na(e){return(14+11*e)%30<11}class Pa{fromJulianDay(e){return Ia(this,$a,e)}toJulianDay(e){return Sa($a,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Na(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Na(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Ra extends Pa{fromJulianDay(e){return Ia(this,Da,e)}toJulianDay(e){return Sa(Da,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let La,Ta;function za(e){return Ca+Ta[e-Ea]}function Fa(e,t){let n=1<<11-(t-1);return 0==(La[e-Ea]&n)?29:30}function Ma(e,t){let n=za(e);for(let a=1;a<t;a++)n+=Fa(e,a);return n}function Va(e){return Ta[e+1-Ea]-Ta[e-Ea]}class ja extends Pa{fromJulianDay(e){let t=e-$a,n=za(Ea),a=za(ka);if(t<n||t>a)return super.fromJulianDay(e);{let e=Ea-1,n=1,a=1;for(;a>0;){e++,a=t-za(e)+1;let r=Va(e);if(a===r){n=12;break}if(a<r){let t=Fa(e,n);for(n=1;a>t;)a-=t,n++,t=Fa(e,n);break}}return new Xn(this,e,n,t-Ma(e,n)+1)}}toJulianDay(e){return e.year<Ea||e.year>ka?super.toJulianDay(e):$a+Ma(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<Ea||e.year>ka?super.getDaysInMonth(e):Fa(e.year,e.month)}getDaysInYear(e){return e.year<Ea||e.year>ka?super.getDaysInYear(e):Va(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",La||(La=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Ta){Ta=new Uint32Array(ka-Ea+1);let e=0;for(let t=Ea;t<=ka;t++){Ta[t-Ea]=e;for(let n=1;n<=12;n++)e+=Fa(t,n)}}}}const Oa=347997;function Ba(e){return Ht(7*e+1,19)<7}function Aa(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=29*t+Math.floor(n/25920);return Ht(3*(a+1),7)<3&&(a+=1),a}function Ha(e){return Aa(e)+function(e){let t=Aa(e-1),n=Aa(e);return Aa(e+1)-n==356?2:n-t==382?1:0}(e)}function Wa(e){return Ha(e+1)-Ha(e)}function Za(e,t){if(t>=6&&!Ba(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=Wa(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Ba(e)?30:0:30}class Ka{fromJulianDay(e){let t=e-Oa,n=25920*t/765433,a=Math.floor((19*n+234)/235)+1,r=Ha(a),i=Math.floor(t-r);for(;i<1;)a--,r=Ha(a),i=Math.floor(t-r);let o=1,l=0;for(;l<i;)l+=Za(a,o),o++;return o--,l-=Za(a,o),new Xn(this,a,o,i-l)}toJulianDay(e){let t=Ha(e.year);for(let n=1;n<e.month;n++)t+=Za(e.year,n);return t+e.day+Oa}getDaysInMonth(e){return Za(e.year,e.month)}getMonthsInYear(e){return Ba(e.year)?13:12}getDaysInYear(e){return Wa(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Ba(t.year)&&!Ba(e.year)&&t.month>6?e.month--:!Ba(t.year)&&Ba(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Ua=1723856,qa=1824665,Ga=5500;function Ya(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function Ja(e,t){let n=Math.floor(4*(t-e)/1461),a=1+Math.floor((t-Ya(e,n,1,1))/30);return[n,a,t+1-Ya(e,n,a,1)]}function _a(e){return Math.floor(e%4/3)}function Xa(e,t){return t%13!=0?30:_a(e)+5}class Qa{fromJulianDay(e){let[t,n,a]=Ja(Ua,e),r="AM";return t<=0&&(r="AA",t+=Ga),new Xn(this,r,t,n,a)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Ga),Ya(Ua,t,e.month,e.day)}getDaysInMonth(e){return Xa(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+_a(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class er extends Qa{fromJulianDay(e){let[t,n,a]=Ja(Ua,e);return t+=Ga,new Xn(this,"AA",t,n,a)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class tr extends Qa{fromJulianDay(e){let[t,n,a]=Ja(qa,e),r="CE";return t<=0&&(r="BCE",t=1-t),new Xn(this,r,t,n,a)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Ya(qa,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Xa(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function nr(e){switch(e){case"buddhist":return new ua;case"ethiopic":return new Qa;case"ethioaa":return new er;case"coptic":return new tr;case"hebrew":return new Ka;case"indian":return new xa;case"islamic-civil":return new Pa;case"islamic-tbla":return new Ra;case"islamic-umalqura":return new ja;case"japanese":return new da;case"persian":return new wa;case"roc":return new fa;default:return new Yt}}let ar=new Map;class rr{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),a=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...a.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==sr&&(sr="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return sr}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=or(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),a=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),r=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===a&&23===r)return"h23";if(24===a&&23===r)return"h24";if(0===a&&11===r)return"h11";if(12===a&&11===r)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=or(e,t),this.options=t}}const ir={true:{ja:"h11"},false:{}};function or(e,t={}){if("boolean"==typeof t.hour12&&function(){null==lr&&(lr="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return lr}()){t={...t};let n=ir[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:a,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ar.has(n))return ar.get(n);let a=new Intl.DateTimeFormat(e,t);return ar.set(n,a),a}let lr=null;let sr=null;l(null),l(null),l(null),l(null),l(null);const dr=l({}),cr="undefined"!=typeof document?e.useLayoutEffect:()=>{};function ur(e){const t=o(null);return cr((()=>{t.current=e}),[e]),s(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}const mr={prefix:String(Math.round(1e10*Math.random())),current:0},pr=e.createContext(mr),hr=e.createContext(!1);let gr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),fr=new WeakMap;const vr="function"==typeof e.useId?function(n){let a=e.useId(),[r]=t(xr()),i=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${mr.prefix}`;return n||`${i}-${a}`}:function(t){let n=d(pr);n!==mr||gr||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let a=function(t=!1){let n=d(pr),a=o(null);if(null===a.current&&!t){var r,i;let t=null===(i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(t){let e=fr.get(t);null==e?fr.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,fr.delete(t))}a.current=++n.current}return a.current}(!!t),r=n===mr&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return t||`${r}-${a}`};function yr(){return!1}function br(){return!0}function wr(e){return()=>{}}function xr(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(wr,yr,br):d(hr)}let $r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Dr=new Map;function Er(e){let[n,r]=t(e),i=o(null),l=vr(n),d=s((e=>{i.current=e}),[]);return $r&&Dr.set(l,d),cr((()=>{let e=l;return()=>{Dr.delete(e)}}),[l]),a((()=>{let e=i.current;e&&(i.current=null,r(e))})),l}function kr(e,t){if(e===t)return e;let n=Dr.get(e);if(n)return n(t),t;let a=Dr.get(t);return a?(a(e),e):t}function Cr(e=[]){let n=Er(),[a,r]=function(e){let[n,a]=t(e),r=o(null),i=ur((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:n===e.value?i():a(e.value)}));cr((()=>{r.current&&i()}));let l=ur((e=>{r.current=e(n),i()}));return[n,l]}(n),i=s((()=>{r((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,r]);return cr(i,[n,i,...e]),a}function Sr(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const Ir=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Nr=e=>{if(e&&"window"in e&&e.window===e)return e;return Ir(e).defaultView||window};function Pr(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Pr(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Rr(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Pr(e))&&(a&&(a+=" "),a+=t);return a}function Lr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let e in a){let n=t[e],r=a[e];"function"==typeof n&&"function"==typeof r&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Sr(n,r):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof r?"id"===e&&n&&r?t.id=kr(n,r):t[e]=void 0!==r?r:n:t[e]=Rr(n,r)}}return t}const Tr=new Set(["id"]),zr=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Fr=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Mr=/^(data-.*)$/;function Vr(e,t={}){let{labelable:n,isLink:a,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Tr.has(t)||n&&zr.has(t)||a&&Fr.has(t)||(null==r?void 0:r.has(t))||Mr.test(t))&&(i[t]=e[t]);return i}function jr(e){if(function(){if(null==Or){Or=!1;try{document.createElement("div").focus({get preventScroll(){return Or=!0,!0}})}catch(e){}}return Or}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}(t)}}let Or=null;function Br(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Ar(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Hr(){return Ar(/^Mac/i)}function Wr(){return Ar(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}function Zr(){return Ar(/^iPhone/i)||Wr()}function Kr(){return Br(/AppleWebKit/i)&&!Br(/Chrome/i)}function Ur(){return Br(/Android/i)}function qr(e,t,n=!0){var a,r;let{metaKey:i,ctrlKey:o,altKey:l,shiftKey:s}=t;Br(/Firefox/i)&&(null===(r=window.event)||void 0===r||null===(a=r.type)||void 0===a?void 0:a.startsWith("key"))&&"_blank"===e.target&&(Hr()?i=!0:o=!0);let d=Kr()&&Hr()&&!Wr()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});qr.isOpening=n,jr(e),e.dispatchEvent(d),qr.isOpening=!1}qr.isOpening=!1;let Gr=new Map,Yr=new Set;function Jr(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let a=Gr.get(n.target);if(a&&(a.delete(n.propertyName),0===a.size&&(n.target.removeEventListener("transitioncancel",t),Gr.delete(n.target)),0===Gr.size)){for(let e of Yr)e();Yr.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let a=Gr.get(n.target);a||(a=new Set,Gr.set(n.target,a),n.target.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function _r(e){requestAnimationFrame((()=>{0===Gr.size?e():Yr.add(e)}))}function Xr(){let e=o(new Map),t=s(((t,n,a,r)=>{let i=(null==r?void 0:r.once)?(...t)=>{e.current.delete(a),a(...t)}:a;e.current.set(a,{type:n,eventTarget:t,fn:i,options:r}),t.addEventListener(n,a,r)}),[]),n=s(((t,n,a,r)=>{var i;let o=(null===(i=e.current.get(a))||void 0===i?void 0:i.fn)||a;t.removeEventListener(n,o,r),e.current.delete(a)}),[]),r=s((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return a((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Qr(e,t){let{id:n,"aria-label":a,"aria-labelledby":r}=e;if(n=Er(n),r&&a){let e=new Set([n,...r.trim().split(/\s+/)]);r=[...e].join(" ")}else r&&(r=r.trim().split(/\s+/).join(" "));return a||r||!t||(a=t),{id:n,"aria-label":a,"aria-labelledby":r}}function ei(e){const t=o(null);return r((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function ti(e,t){const n=o(!0),r=o(null);a((()=>(n.current=!0,()=>{n.current=!1})),[]),a((()=>{n.current?n.current=!1:r.current&&!t.some(((e,t)=>!Object.is(e,r[t])))||e(),r.current=t}),t)}function ni(e,t){cr((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function ai(e,t){let n=window.getComputedStyle(e),a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function ri(e,t){let n=e;for(ai(n,t)&&(n=n.parentElement);n&&!ai(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?Jr():document.addEventListener("DOMContentLoaded",Jr));let ii=0;const oi=new Map;function li(e){let[n,a]=t();return cr((()=>{if(!e)return;let t=oi.get(e);if(t)a(t.element.id);else{let n="react-aria-description-"+ii++;a(n);let r=document.createElement("div");r.id=n,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},oi.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),oi.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function si(e,t,n,r){let i=ur(n),o=null==n;a((()=>{if(o||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,o,i])}function di(e,t){let n=ci(e,t,"left"),a=ci(e,t,"top"),r=t.offsetWidth,i=t.offsetHeight,o=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),u=e.scrollTop+parseInt(s,10),m=c+e.clientWidth,p=u+e.clientHeight;n<=o?o=n-parseInt(d,10):n+r>m&&(o+=n+r-m),a<=u?l=a-parseInt(s,10):a+i>p&&(l+=a+i-p),e.scrollLeft=o,e.scrollTop=l}function ci(e,t,n){const a="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[a],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[a];break}t=t.offsetParent}return r}function ui(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(o).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)ai(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)di(n,e)}else{var n;let{left:o,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:s,top:d}=e.getBoundingClientRect();var a,r,i;if(Math.abs(o-s)>1||Math.abs(l-d)>1)null==t||null===(r=t.containingElement)||void 0===r||null===(a=r.scrollIntoView)||void 0===a||a.call(r,{block:"center",inline:"center"}),null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"})}}}function mi(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ur()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function pi(e,t){let n=o(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function hi(e,n,r){let[i,l]=t(e||n),d=o(void 0!==e),c=void 0!==e;a((()=>{let e=d.current;e!==c&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),d.current=c}),[c]);let u=c?e:i,m=s(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(u,e)||r(e,...t)),c||(u=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l(((a,...r)=>{let i=e(c?u:a,...r);return n(i,...t),c?a:i}))}else c||l(e),n(e,...t)}),[c,u,r]);return[u,m]}let gi="default",fi="",vi=new WeakMap;function yi(e){if(Zr()){if("default"===gi){const t=Ir(e);fi=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}gi="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(vi.set(e,e.style.userSelect),e.style.userSelect="none")}function bi(e){if(Zr()){if("disabled"!==gi)return;gi="restoring",setTimeout((()=>{_r((()=>{if("restoring"===gi){const t=Ir(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=fi||""),fi="",gi="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&vi.has(e)){let t=vi.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),vi.delete(e)}}const wi=e.createContext({register:()=>{}});function xi(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function $i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,xi(e,t,"set"),n),n}wi.displayName="PressResponderContext";var Di=new WeakMap;class Ei{continuePropagation(){$i(this,Di,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,xi(e,Di,"get"));var e}constructor(e,t,n){Yn(this,Di,{writable:!0,value:void 0}),$i(this,Di,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const ki=Symbol("linkClicked");function Ci(e){let{onPress:n,onPressChange:i,onPressStart:l,onPressEnd:s,onPressUp:c,isDisabled:u,isPressed:m,preventFocusOnPress:p,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:g,ref:f,...v}=function(e){let t=d(wi);if(t){let{register:n,...a}=t;e=Lr(a,e),n()}return ni(t,e.ref),e}(e),[y,b]=t(!1),w=o({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:x,removeAllGlobalListeners:$}=Xr(),D=ur(((e,t)=>{let n=w.current;if(u||n.didFirePressStart)return!1;let a=!0;if(n.isTriggeringEvent=!0,l){let n=new Ei("pressstart",t,e);l(n),a=n.shouldStopPropagation}return i&&i(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,b(!0),a})),E=ur(((e,t,a=!0)=>{let r=w.current;if(!r.didFirePressStart)return!1;r.ignoreClickAfterPress=!0,r.didFirePressStart=!1,r.isTriggeringEvent=!0;let o=!0;if(s){let n=new Ei("pressend",t,e);s(n),o=n.shouldStopPropagation}if(i&&i(!1),b(!1),n&&a&&!u){let a=new Ei("press",t,e);n(a),o&&(o=a.shouldStopPropagation)}return r.isTriggeringEvent=!1,o})),k=ur(((e,t)=>{let n=w.current;if(u)return!1;if(c){n.isTriggeringEvent=!0;let a=new Ei("pressup",t,e);return c(a),n.isTriggeringEvent=!1,a.shouldStopPropagation}return!0})),C=ur((e=>{let t=w.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&E(Pi(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,$(),g||bi(t.target))})),S=ur((e=>{h&&C(e)})),I=r((()=>{let e=w.current,t={onKeyDown(t){if(Ii(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var a;Ti(t.target,t.key)&&t.preventDefault();let r=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,r=D(t,"keyboard");let a=t.currentTarget,i=t=>{Ii(t,a)&&!t.repeat&&a.contains(t.target)&&e.target&&k(Pi(e.target,t),"keyboard")};x(Ir(t.currentTarget),"keyup",Sr(i,n),!0)}r&&t.stopPropagation(),t.metaKey&&Hr()&&(null===(a=e.metaKeyEvents)||void 0===a||a.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!qr.isOpening){let n=!0;if(u&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||mi(t.nativeEvent))){u||p||jr(t.currentTarget);let e=D(t,"virtual"),a=k(t,"virtual"),r=E(t,"virtual");n=e&&a&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Ii(t,e.target)){var a;Ti(t.target,t.key)&&t.preventDefault();let n=t.target;E(Pi(e.target,t),"keyboard",e.target.contains(n)),$(),"Enter"!==t.key&&Si(e.target)&&e.target.contains(n)&&!t[ki]&&(t[ki]=!0,qr(e.target,t,!1)),e.isPressed=!1,null===(a=e.metaKeyEvents)||void 0===a||a.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(i=t.nativeEvent,!Ur()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;Li(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let o=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,u||p||jr(t.currentTarget),g||yi(e.target),o=D(t,e.pointerType),x(Ir(t.currentTarget),"pointermove",n,!1),x(Ir(t.currentTarget),"pointerup",a,!1),x(Ir(t.currentTarget),"pointercancel",r,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Li(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Ri(t,t.currentTarget)&&k(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&Ri(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,D(Pi(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,E(Pi(e.target,t),e.pointerType,!1),S(t)))},a=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(Ri(t,e.target)&&null!=e.pointerType?E(Pi(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&E(Pi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),g||bi(e.target))},r=e=>{C(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&C(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(Li(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=mi(t.nativeEvent)?"virtual":"mouse",u||p||jr(t.currentTarget),D(t,e.pointerType)&&t.stopPropagation(),x(Ir(t.currentTarget),"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=D(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=E(t,e.pointerType,!1),S(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||k(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&Ri(t,e.target)&&null!=e.pointerType?E(Pi(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&E(Pi(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",u||p||jr(t.currentTarget),g||yi(e.target),D(t,e.pointerType)&&t.stopPropagation(),x(Nr(t.currentTarget),"scroll",a,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Ni(t.nativeEvent,e.activePointerId),a=!0;n&&Ri(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,a=D(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,a=E(t,e.pointerType,!1),S(t)),a&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Ni(t.nativeEvent,e.activePointerId),a=!0;n&&Ri(n,t.currentTarget)&&null!=e.pointerType?(k(t,e.pointerType),a=E(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(a=E(t,e.pointerType,!1)),a&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!g&&bi(e.target),$()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&C(t))};let a=t=>{e.isPressed&&t.target.contains(e.target)&&C({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&C(e)}}return t}),[x,u,p,$,g,C,S,E,D,k]);return a((()=>()=>{var e;g||bi(null!==(e=w.current.target)&&void 0!==e?e:void 0)}),[g]),{isPressed:m||y,pressProps:Lr(v,I)}}function Si(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ii(e,t){const{key:n,code:a}=e,r=t,i=r.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==a||r instanceof Nr(r).HTMLInputElement&&!Fi(r,n)||r instanceof Nr(r).HTMLTextAreaElement||r.isContentEditable||("link"===i||!i&&Si(r))&&"Enter"!==n)}function Ni(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const a=n[e];if(a.identifier===t)return a}return null}function Pi(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ri(e,t){let n=t.getBoundingClientRect(),a=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=a,!((r=n).left>i.right||i.left>r.right||r.top>i.bottom||i.top>r.bottom);var r,i}function Li(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function Ti(e,t){return e instanceof HTMLInputElement?!Fi(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!Si(e)}const zi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fi(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:zi.has(e.type)}class Mi{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Vi(e){let t=o({isFocused:!1,observer:null});cr((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=ur((t=>{null==e||e(t)}));return s((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=e.target,r=e=>{t.current.isFocused=!1,a.disabled&&n(new Mi("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&a.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function ji(e){let{isDisabled:t,onFocus:n,onBlur:a,onFocusChange:r}=e;const i=s((e=>{if(e.target===e.currentTarget)return a&&a(e),r&&r(!1),!0}),[a,r]),o=Vi(i),l=s((e=>{const t=Ir(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),r&&r(!0),o(e))}),[r,n,o]);return{focusProps:{onFocus:!t&&(n||r||a)?l:void 0,onBlur:t||!a&&!r?void 0:i}}}let Oi=null,Bi=new Set,Ai=new Map,Hi=!1,Wi=!1;const Zi={Tab:!0,Escape:!0};function Ki(e,t){for(let n of Bi)n(e,t)}function Ui(e){Hi=!0,function(e){return!(e.metaKey||!Hr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Oi="keyboard",Ki("keyboard",e))}function qi(e){Oi="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Hi=!0,Ki("pointer",e))}function Gi(e){mi(e)&&(Hi=!0,Oi="virtual")}function Yi(e){e.target!==window&&e.target!==document&&(Hi||Wi||(Oi="virtual",Ki("virtual",e)),Hi=!1,Wi=!1)}function Ji(){Hi=!1,Wi=!0}function _i(e){if("undefined"==typeof window||Ai.get(Nr(e)))return;const t=Nr(e),n=Ir(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Hi=!0,a.apply(this,arguments)},n.addEventListener("keydown",Ui,!0),n.addEventListener("keyup",Ui,!0),n.addEventListener("click",Gi,!0),t.addEventListener("focus",Yi,!0),t.addEventListener("blur",Ji,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",qi,!0),n.addEventListener("pointermove",qi,!0),n.addEventListener("pointerup",qi,!0)):(n.addEventListener("mousedown",qi,!0),n.addEventListener("mousemove",qi,!0),n.addEventListener("mouseup",qi,!0)),t.addEventListener("beforeunload",(()=>{Xi(e)}),{once:!0}),Ai.set(t,{focus:a})}const Xi=(e,t)=>{const n=Nr(e),a=Ir(e);t&&a.removeEventListener("DOMContentLoaded",t),Ai.has(n)&&(n.HTMLElement.prototype.focus=Ai.get(n).focus,a.removeEventListener("keydown",Ui,!0),a.removeEventListener("keyup",Ui,!0),a.removeEventListener("click",Gi,!0),n.removeEventListener("focus",Yi,!0),n.removeEventListener("blur",Ji,!1),"undefined"!=typeof PointerEvent?(a.removeEventListener("pointerdown",qi,!0),a.removeEventListener("pointermove",qi,!0),a.removeEventListener("pointerup",qi,!0)):(a.removeEventListener("mousedown",qi,!0),a.removeEventListener("mousemove",qi,!0),a.removeEventListener("mouseup",qi,!0)),Ai.delete(n))};function Qi(){return"pointer"!==Oi}function eo(){return Oi}"undefined"!=typeof document&&function(e){const t=Ir(e);let n;"loading"!==t.readyState?_i(e):(n=()=>{_i(e)},t.addEventListener("DOMContentLoaded",n))}();const to=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function no(e,t,n){_i(),a((()=>{let t=(t,a)=>{(function(e,t,n){var a;const r="undefined"!=typeof window?Nr(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?Nr(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?Nr(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Nr(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof r&&!to.has(null==n||null===(a=n.target)||void 0===a?void 0:a.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof o&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!Zi[n.key])})(!!(null==n?void 0:n.isTextInput),t,a)&&e(Qi())};return Bi.add(t),()=>{Bi.delete(t)}}),t)}function ao(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:a,onFocusWithinChange:r}=e,i=o({isFocusWithin:!1}),l=s((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),r&&r(!1))}),[n,r,i]),d=Vi(l),c=s((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(a&&a(e),r&&r(!0),i.current.isFocusWithin=!0,d(e))}),[a,r,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let ro=!1,io=0;function oo(){ro=!0,setTimeout((()=>{ro=!1}),50)}function lo(e){"touch"===e.pointerType&&oo()}function so(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",lo):document.addEventListener("touchend",oo),io++,()=>{io--,io>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",lo):document.removeEventListener("touchend",oo))}}function co(e){let{onHoverStart:n,onHoverChange:i,onHoverEnd:l,isDisabled:s}=e,[d,c]=t(!1),u=o({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(so,[]);let{hoverProps:m,triggerHoverEnd:p}=r((()=>{let e=(e,t)=>{if(u.pointerType=t,s||"touch"===t||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let a=e.currentTarget;u.target=a,n&&n({type:"hoverstart",target:a,pointerType:t}),i&&i(!0),c(!0)},t=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let n=e.currentTarget;l&&l({type:"hoverend",target:n,pointerType:t}),i&&i(!1),c(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{ro&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(a.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||ro||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:a,triggerHoverEnd:t}}),[n,i,l,s,u]);return a((()=>{s&&p({currentTarget:u.target},u.pointerType)}),[s]),{hoverProps:m,isHovered:d}}function uo(e){if(!e)return;let t=!0;return n=>{let a={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(a),t&&n.stopPropagation()}}function mo(e){const t=Ir(e);if("virtual"===eo()){let n=t.activeElement;_r((()=>{t.activeElement===n&&e.isConnected&&jr(e)}))}else jr(e)}function po(e,t){return"#comment"!==e.nodeName&&function(e){const t=Nr(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:a}=e.style,r="none"!==n&&"hidden"!==a&&"collapse"!==a;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:a}=t(e);r="none"!==n&&"hidden"!==a&&"collapse"!==a}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||po(e.parentElement,e))}const ho=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],go=ho.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ho.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fo=ho.join(':not([hidden]):not([tabindex="-1"]),');function vo(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function yo(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{mo(e)}catch(e){}}function bo(e,t,n){let a=(null==t?void 0:t.tabbable)?fo:go,r=Ir(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(a)||!po(e)||n&&!vo(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}function wo(e,t={}){return{focusNext(n={}){let a=e.current;if(!a)return null;let{from:r,tabbable:i=t.tabbable,wrap:o=t.wrap,accept:l=t.accept}=n,s=r||Ir(a).activeElement,d=bo(a,{tabbable:i,accept:l});a.contains(s)&&(d.currentNode=s);let c=d.nextNode();return!c&&o&&(d.currentNode=a,c=d.nextNode()),c&&yo(c,!0),c},focusPrevious(n=t){let a=e.current;if(!a)return null;let{from:r,tabbable:i=t.tabbable,wrap:o=t.wrap,accept:l=t.accept}=n,s=r||Ir(a).activeElement,d=bo(a,{tabbable:i,accept:l});if(!a.contains(s)){let e=xo(d);return e&&yo(e,!0),null!=e?e:null}d.currentNode=s;let c=d.previousNode();if(!c&&o){d.currentNode=a;let e=xo(d);if(!e)return null;c=e}return c&&yo(c,!0),null!=c?c:null},focusFirst(n=t){let a=e.current;if(!a)return null;let{tabbable:r=t.tabbable,accept:i=t.accept}=n,o=bo(a,{tabbable:r,accept:i}).nextNode();return o&&yo(o,!0),o},focusLast(n=t){let a=e.current;if(!a)return null;let{tabbable:r=t.tabbable,accept:i=t.accept}=n,o=xo(bo(a,{tabbable:r,accept:i}));return o&&yo(o,!0),null!=o?o:null}}}function xo(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class $o{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let a=this.fastMap.get(null!=t?t:null);if(!a)return;let r=new Do({scopeRef:e});a.addChild(r),r.parent=a,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&vo(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let a=t.children;n&&(n.removeChild(t),a.size>0&&a.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new $o;var n;for(let a of this.traverse())t.addTreeNode(a.scopeRef,null!==(n=null===(e=a.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,a.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new Do({scopeRef:null}),this.fastMap.set(null,this.root)}}class Do{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}function Eo(e={}){let{autoFocus:n=!1,isTextInput:a,within:r}=e,i=o({isFocused:!1,isFocusVisible:n||Qi()}),[l,d]=t(!1),[c,u]=t((()=>i.current.isFocused&&i.current.isFocusVisible)),m=s((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),p=s((e=>{i.current.isFocused=e,d(e),m()}),[m]);no((e=>{i.current.isFocusVisible=e,m()}),[],{isTextInput:a});let{focusProps:h}=ji({isDisabled:r,onFocusChange:p}),{focusWithinProps:g}=ao({isDisabled:!r,onFocusWithinChange:p});return{isFocused:l,isFocusVisible:c,focusProps:r?g:h}}new $o;let ko=e.createContext(null);function Co(e,t){let{focusProps:n}=ji(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:uo(e.onKeyDown),onKeyUp:uo(e.onKeyUp)}}}(e),i=Lr(n,r),l=function(e){let t=d(ko)||{};ni(t,e);let{ref:n,...a}=t;return a}(t),s=e.isDisabled?{}:l,c=o(e.autoFocus);return a((()=>{c.current&&t.current&&mo(t.current),c.current=!1}),[t]),{focusableProps:Lr({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const So=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Io=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function No(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return So.has(t.script)}let t=e.split("-")[0];return Io.has(t)}const Po=Symbol.for("react-aria.i18n.locale");function Ro(){let e="undefined"!=typeof window&&window[Po]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:No(e)?"rtl":"ltr"}}let Lo=Ro(),To=new Set;function zo(){Lo=Ro();for(let e of To)e(Lo)}const Fo=e.createContext(null);function Mo(){let e=function(){let e=xr(),[n,r]=t(Lo);return a((()=>(0===To.size&&window.addEventListener("languagechange",zo),To.add(r),()=>{To.delete(r),0===To.size&&window.removeEventListener("languagechange",zo)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return d(Fo)||e}const Vo=Symbol.for("react-aria.i18n.locale"),jo=Symbol.for("react-aria.i18n.strings");let Oo;class Bo{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let a=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[a])return t[a];for(let e in t)if(e.startsWith(a+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Vo];if(void 0===Oo){let e=window[jo];if(!e)return null;Oo={};for(let n in e)Oo[n]=new Bo({[t]:e[n]},t)}let n=null==Oo?void 0:Oo[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const Ao=new Map,Ho=new Map;class Wo{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let a=t["="+e];if(a)return"function"==typeof a?a():a;let r=this.locale+":"+n,i=Ao.get(r);return i||(i=new Intl.PluralRules(this.locale,{type:n}),Ao.set(r,i)),a=t[i.select(e)]||t.other,"function"==typeof a?a():a}number(e){let t=Ho.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Ho.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Zo=new WeakMap;function Ko(e,t){return t&&Bo.getGlobalDictionaryForPackage(t)||function(e){let t=Zo.get(e);return t||(t=new Bo(e),Zo.set(e,t)),t}(e)}function Uo(e,t){let{locale:n}=Mo(),a=Ko(e,t);return r((()=>new Wo(n,a)),[n,a])}function qo(e){e=pi(null!=e?e:{},Go);let{locale:t}=Mo();return r((()=>new rr(t,e)),[t,e])}function Go(e,t){if(e===t)return!0;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let a of n)if(t[a]!==e[a])return!1;return!0}let Yo=new Map,Jo=!1;try{Jo="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let _o=!1;try{_o="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Xo={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Qo{format(e){let t="";if(t=Jo||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let a=!1;if("always"===t?a=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):a=n>0),a){let t=e.format(-n),a=e.format(n),r=t.replace(a,"").replace(/\u200e|\u061C/,"");return 1!==[...r].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(a,"!!!").replace(r,"+").replace("!!!",a)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!_o){var n;let{unit:e,unitDisplay:a="short",locale:r}=this.resolvedOptions();if(!e)return t;let i=null===(n=Xo[e])||void 0===n?void 0:n[a];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),a=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...a.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Jo||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),_o||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`);if("unit"===t.style&&!_o){var a;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(a=Xo[e])||void 0===a?void 0:a[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Yo.has(r))return Yo.get(r);let i=new Intl.NumberFormat(e,t);return Yo.set(r,i),i}(e,t),this.options=t}}const el=new RegExp("^.*\\(.*\\).*$"),tl=["latn","arab","hanidec"];class nl{parse(e){return rl(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return rl(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return rl(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const al=new Map;function rl(e,t,n){let a=il(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(n))for(let r of tl)if(r!==a.options.numberingSystem){let a=il(e+(e.includes("-u-")?"-nu-":"-u-nu-")+r,t);if(a.isValidPartialNumber(n))return a}return a}function il(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),a=al.get(n);return a||(a=new ol(e,t),al.set(n,a)),a}class ol{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=dl(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var a,r;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(a=this.options.minimumFractionDigits)&&void 0!==a?a:0)+2,20),maximumFractionDigits:Math.min((null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)+2,20)};return new nl(this.locale,e).parse(new Qo(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&el.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=dl(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=dl(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),(!this.symbols.group||!e.startsWith(this.symbols.group))&&(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=dl(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length))}constructor(e,t={}){var n,a;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,a){var r,i,o,l;let s=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=s.formatToParts(-10000.111),c=s.formatToParts(10000.111),u=sl.map((e=>s.formatToParts(e)));var m;let p=null!==(m=null===(r=d.find((e=>"minusSign"===e.type)))||void 0===r?void 0:r.value)&&void 0!==m?m:"-",h=null===(i=c.find((e=>"plusSign"===e.type)))||void 0===i?void 0:i.value;h||"exceptZero"!==(null==a?void 0:a.signDisplay)&&"always"!==(null==a?void 0:a.signDisplay)||(h="+");let g=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),f=null===(o=g.find((e=>"decimal"===e.type)))||void 0===o?void 0:o.value,v=null===(l=d.find((e=>"group"===e.type)))||void 0===l?void 0:l.value,y=d.filter((e=>!ll.has(e.type))).map((e=>cl(e.value))),b=u.flatMap((e=>e.filter((e=>!ll.has(e.type))).map((e=>cl(e.value))))),w=[...new Set([...y,...b])].sort(((e,t)=>t.length-e.length)),x=0===w.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),$=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),D=new Map($.map(((e,t)=>[e,t]))),E=new RegExp(`[${$.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:f,group:v,literals:x,numeral:E,index:e=>String(D.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(a=this.options.maximumFractionDigits)&&void 0!==a?a:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const ll=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),sl=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function dl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function cl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let ul=new Map;function ml(e){let t=function(e){let{locale:t}=Mo(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ul.has(n))return ul.get(n);let a=new Intl.Collator(t,e);return ul.set(n,a),a}({usage:"search",...e}),n=s(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n))),[t]),a=s(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n))),[t]),i=s(((e,n)=>{if(0===n.length)return!0;e=e.normalize("NFC");let a=0,r=(n=n.normalize("NFC")).length;for(;a+r<=e.length;a++){let i=e.slice(a,a+r);if(0===t.compare(n,i))return!0}return!1}),[t]);return r((()=>({startsWith:n,endsWith:a,contains:i})),[n,a,i])}var pl={};function hl(e){return e&&e.__esModule?e.default:e}pl={"ar-AE":{dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`},"bg-BG":{dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`},"cs-CZ":{dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`},"el-GR":{dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`},"he-IL":{dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`},"ru-RU":{dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`},"uk-UA":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`}};const gl=new WeakMap;function fl(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function vl(e,t,n,a){let i=Uo(hl(pl),"@react-aria/calendar"),o=fl(e)||fl(t),l=qo({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=qo({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return r((()=>{if(_t(e,ln(e))){if(_t(t,sn(e)))return l.format(e.toDate(n));if(_t(t,sn(t)))return a?yl(l,i,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))}return a?yl(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}),[e,t,l,s,i,n,a])}function yl(e,t,n,a,r){let i=e.formatRangeToParts(n.toDate(r),a.toDate(r)),o=-1;for(let e=0;e<i.length;e++){let t=i[e];if("shared"===t.source&&"literal"===t.type)o=e;else if("endRange"===t.source)break}let l="",s="";for(let e=0;e<i.length;e++)e<o?l+=i[e].value:e>o&&(s+=i[e].value);return t.format("dateRange",{startDate:l,endDate:s})}const bl=7e3;let wl=null;function xl(e,t="assertive",n=bl){wl||(wl=new $l),wl.announce(e,t,n)}class $l{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=bl){if(!this.node)return;let a=document.createElement("div");a.textContent=e,"assertive"===t?this.assertiveLog.appendChild(a):this.politeLog.appendChild(a),""!==e&&setTimeout((()=>{a.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Dl(e,n){let a=Uo((i=pl)&&i.__esModule?i.default:i,"@react-aria/calendar");var i;let o=Vr(e),l=vl(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),s=vl(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);ti((()=>{n.isFocused||xl(s)}),[s]);let d=function(e){let t,n,a=Uo(hl(pl),"@react-aria/calendar");"highlightedRange"in e?({start:t,end:n}=e.highlightedRange||{}):t=n=e.value;let i=qo({weekday:"long",month:"long",year:"numeric",day:"numeric",era:fl(t)||fl(n),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return r((()=>{if(!o&&t&&n){if(_t(t,n)){let n=i.format(t.toDate(e.timeZone));return a.format("selectedDateDescription",{date:n})}{let r=yl(i,a,t,n,e.timeZone);return a.format("selectedRangeDescription",{dateRange:r})}}return""}),[t,n,o,e.timeZone,a,i])}(n);ti((()=>{d&&xl(d,"polite",4e3)}),[d]);let c=Cr([Boolean(e.errorMessage),e.isInvalid,e.validationState]);gl.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:c,selectedDateDescription:d});let[u,m]=t(!1),p=e.isDisabled||n.isNextVisibleRangeInvalid();p&&u&&(m(!1),n.setFocused(!0));let[h,g]=t(!1),f=e.isDisabled||n.isPreviousVisibleRangeInvalid();return f&&h&&(g(!1),n.setFocused(!0)),{calendarProps:Lr(o,Qr({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":a.format("next"),isDisabled:p,onFocusChange:m},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:f,onFocusChange:g},errorMessageProps:{id:c},title:l}}function El(e,t,n){let{date:i,isDisabled:l}=e,{errorMessageId:s,selectedDateDescription:d}=gl.get(t),c=Uo((u=pl)&&u.__esModule?u.default:u,"@react-aria/calendar");var u;let m=qo({weekday:"long",day:"numeric",month:"long",year:"numeric",era:fl(i),timeZone:t.timeZone}),p=t.isSelected(i),h=t.isCellFocused(i);l=l||t.isCellDisabled(i);let g=t.isCellUnavailable(i),f=!l&&!g,v=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&i.compare(t.highlightedRange.start)>=0&&i.compare(t.highlightedRange.end)<=0:t.value&&_t(t.value,i));v&&(p=!0),i=pi(i,Xt);let y=r((()=>i.toDate(t.timeZone)),[i,t.timeZone]),b=function(e,t){return _t(e,tn(t))}(i,t.timeZone),w=r((()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(_t(i,t.value.start)||_t(i,t.value.end))&&(e=d+", "),e+=m.format(y),b?e=c.format(p?"todayDateSelected":"todayDate",{date:e}):p&&(e=c.format("dateSelected",{date:e})),t.minValue&&_t(i,t.minValue)?e+=", "+c.format("minimumDate"):t.maxValue&&_t(i,t.maxValue)&&(e+=", "+c.format("maximumDate")),e}),[m,y,c,p,b,i,t,d]),x="";"anchorDate"in t&&h&&!t.isReadOnly&&f&&(x=t.anchorDate?c.format("finishRangeSelectionPrompt"):c.format("startRangeSelectionPrompt"));let $=li(x),D=o(!1),E=o(!1),k=o(null),{pressProps:C,isPressed:S}=Ci({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(e){if(t.isReadOnly)t.setFocusedDate(i);else if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!v){if(_t(i,t.highlightedRange.start))return t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(i),t.setDragging(!0),void(E.current=!0);if(_t(i,t.highlightedRange.end))return t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setDragging(!0),void(E.current=!0)}let n=()=>{t.setDragging(!0),k.current=null,t.selectDate(i),t.setFocusedDate(i),D.current=!0};"touch"===e.pointerType?k.current=setTimeout(n,200):n()}},onPressEnd(){E.current=!1,D.current=!1,clearTimeout(k.current),k.current=null},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(i),t.setFocusedDate(i))},onPressUp(e){if(!t.isReadOnly&&("anchorDate"in t&&k.current&&(t.selectDate(i),t.setFocusedDate(i)),"anchorDate"in t))if(E.current)t.setAnchorDate(i);else if(t.anchorDate&&!D.current)t.selectDate(i),t.setFocusedDate(i);else if("keyboard"!==e.pointerType||t.anchorDate)"virtual"===e.pointerType&&(t.selectDate(i),t.setFocusedDate(i));else{t.selectDate(i);let e=i.add({days:1});t.isInvalid(e)&&(e=i.subtract({days:1})),t.isInvalid(e)||t.setFocusedDate(e)}}}),I=null;l||(I=_t(i,t.focusedDate)?0:-1),a((()=>{h&&n.current&&(jr(n.current),"pointer"!==eo()&&document.activeElement===n.current&&ui(n.current,{containingElement:ri(n.current)}))}),[h,n]);let N=qo({day:"numeric",timeZone:t.timeZone,calendar:i.calendar.identifier}),P=r((()=>N.formatToParts(y).find((e=>"day"===e.type)).value),[N,y]);return{cellProps:{role:"gridcell","aria-disabled":!f||null,"aria-selected":p||null,"aria-invalid":v||null},buttonProps:Lr(C,{onFocus(){l||t.setFocusedDate(i)},tabIndex:I,role:"button","aria-disabled":!f||null,"aria-label":w,"aria-invalid":v||null,"aria-describedby":[v?s:null,$["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&f&&t.highlightDate(i)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:S,isFocused:h,isSelected:p,isDisabled:l,isUnavailable:g,isOutsideVisibleRange:i.compare(t.visibleRange.start)<0||i.compare(t.visibleRange.end)>0,isInvalid:v,formattedDate:P}}function kl(e,t,n){let{validationBehavior:r,focus:i}=e;cr((()=>{if("native"===r&&(null==n?void 0:n.current)){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:Cl(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let o=ur((()=>{t.resetValidation()})),l=ur((e=>{var a;t.displayValidation.isInvalid||t.commitValidation();let r=null==n||null===(a=n.current)||void 0===a?void 0:a.form;var o,l;!e.defaultPrevented&&n&&r&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(r)===n.current&&(i?i():null===(o=n.current)||void 0===o||o.focus(),Oi=l="keyboard",Ki(l,null));e.preventDefault()})),s=ur((()=>{t.commitValidation()}));a((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",l),e.addEventListener("change",s),null==t||t.addEventListener("reset",o),()=>{e.removeEventListener("invalid",l),e.removeEventListener("change",s),null==t||t.removeEventListener("reset",o)}}),[n,l,s,o,r])}function Cl(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}const Sl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Il={...Sl,customError:!0,valid:!1},Nl={isInvalid:!1,validationDetails:Sl,validationErrors:[]},Pl=l({}),Rl="__formValidationState"+Date.now();function Ll(e){if(e[Rl]){let{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:r,commitValidation:i}=e[Rl];return{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:r,commitValidation:i}}return function(e){let{isInvalid:n,validationState:i,name:l,value:s,builtinValidation:c,validate:u,validationBehavior:m="aria"}=e;i&&(n||(n="invalid"===i));let p=void 0!==n?{isInvalid:n,validationErrors:[],validationDetails:Il}:null,h=r((()=>zl(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return Tl(n)}return[]}(u,s))),[u,s]);(null==c?void 0:c.validationDetails.valid)&&(c=null);let g=d(Pl),f=r((()=>l?Array.isArray(l)?l.flatMap((e=>Tl(g[e]))):Tl(g[l]):[]),[g,l]),[v,y]=t(g),[b,w]=t(!1);g!==v&&(y(g),w(!1));let x=r((()=>zl(b?[]:f)),[b,f]),$=o(Nl),[D,E]=t(Nl),k=o(Nl),C=()=>{if(!S)return;I(!1);let e=h||c||$.current;Fl(e,k.current)||(k.current=e,E(e))},[S,I]=t(!1);return a(C),{realtimeValidation:p||x||h||c||Nl,displayValidation:"native"===m?p||x||D:p||x||h||c||D,updateValidation(e){"aria"!==m||Fl(D,e)?$.current=e:E(e)},resetValidation(){let e=Nl;Fl(e,k.current)||(k.current=e,E(e)),"native"===m&&I(!1),w(!0)},commitValidation(){"native"===m&&I(!0),w(!0)}}}(e)}function Tl(e){return e?Array.isArray(e)?e:[e]:[]}function zl(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Il}:null}function Fl(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function Ml(e){let{description:t,errorMessage:n,isInvalid:a,validationState:r}=e,{labelProps:i,fieldProps:o}=function(e){let{id:t,label:n,"aria-labelledby":a,"aria-label":r,labelElementType:i="label"}=e;t=Er(t);let o=Er(),l={};return n?(a=a?`${o} ${a}`:o,l={id:o,htmlFor:"label"===i?t:void 0}):a||r||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:Qr({id:t,"aria-label":r,"aria-labelledby":a})}}(e),l=Cr([Boolean(t),Boolean(n),a,r]),s=Cr([Boolean(t),Boolean(n),a,r]);return o=Lr(o,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:o,descriptionProps:{id:l},errorMessageProps:{id:s}}}const Vl={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function jl(n){let{children:a,elementType:i="div",isFocusable:o,style:l,...s}=n,{visuallyHiddenProps:d}=function(e={}){let{style:n,isFocusable:a}=e,[i,o]=t(!1),{focusWithinProps:l}=ao({isDisabled:!a,onFocusWithinChange:e=>o(e)});return{visuallyHiddenProps:{...l,style:r((()=>i?n:n?{...Vl,...n}:Vl),[i])}}}(n);return e.createElement(i,Lr(s,d),a)}var Ol={};Ol={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"},"et-EE":{calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"},"tr-TR":{calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};const Bl=new WeakMap,Al="__role_"+Date.now(),Hl="__focusManager_"+Date.now();function Wl(e,t,n){var i;let{isInvalid:l,validationErrors:s,validationDetails:d}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:m,errorMessageProps:p}=Ml({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),h=o(null),{focusWithinProps:g}=ao({...e,onFocusWithin(n){var a;h.current=t.value,null===(a=e.onFocus)||void 0===a||a.call(e,n)},onBlurWithin:n=>{var a;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),null===(a=e.onBlur)||void 0===a||a.call(e,n)},onFocusWithinChange:e.onFocusChange}),f=Uo((v=Ol)&&v.__esModule?v.default:v,"@react-aria/datepicker");var v;let y="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",b="hour"===t.maxGranularity?"time":"date",w=li(t.value?f.format(y,{[b]:t.formatValue({month:"long"})}):""),x="presentation"===e[Al]?u["aria-describedby"]:[w["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,$=e[Hl],D=r((()=>$||wo(n)),[$,n]),E=function(e,t,n){let{direction:a}=Mo(),i=r((()=>wo(t)),[t]),o=()=>{var e;let n=null===(e=window.event)||void 0===e?void 0:e.target,a=bo(t.current,{tabbable:!0});if(n&&(a.currentNode=n,n=a.previousNode()),!n){let e;do{e=a.lastChild(),e&&(n=e)}while(e)}for(;null==n?void 0:n.hasAttribute("data-placeholder");){let e=a.previousNode();if(!e||!e.hasAttribute("data-placeholder"))break;n=e}n&&n.focus()},{pressProps:l}=Ci({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){"mouse"!==e.pointerType&&o()}});return Lr(l,{onKeyDown:t=>{if(t.currentTarget.contains(t.target)&&(t.altKey&&("ArrowDown"===t.key||"ArrowUp"===t.key)&&"setOpen"in e&&(t.preventDefault(),t.stopPropagation(),e.setOpen(!0)),!n))switch(t.key){case"ArrowLeft":t.preventDefault(),t.stopPropagation(),"rtl"===a?i.focusNext():i.focusPrevious();break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),"rtl"===a?i.focusPrevious():i.focusNext()}}})}(t,n,"presentation"===e[Al]);Bl.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:x,focusManager:D});let k,C=o(e.autoFocus);k="presentation"===e[Al]?{role:"presentation"}:Lr(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":x}),a((()=>{C.current&&D.focusFirst(),C.current=!1}),[D]),function(e,t,n){let r=o(t),i=ur((()=>{n&&n(r.current)}));a((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",i),()=>{null==n||n.removeEventListener("reset",i)}}),[e,i])}(e.inputRef,t.value,t.setValue),kl({...e,focus(){D.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:(null===(i=t.value)||void 0===i?void 0:i.toString())||""};"native"===e.validationBehavior&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let I=Vr(e);return{labelProps:{...c,onClick:()=>{D.focusFirst()}},fieldProps:Lr(I,k,E,g,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:S,descriptionProps:m,errorMessageProps:p,isInvalid:l,validationErrors:s,validationDetails:d}}class Zl{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}var Kl={};function Ul(e){const t=o();let{value:n,textValue:r,minValue:i,maxValue:l,isDisabled:s,isReadOnly:d,isRequired:c,onIncrement:u,onIncrementPage:m,onDecrement:p,onDecrementPage:h,onDecrementToMin:g,onIncrementToMax:f}=e;const v=Uo((y=Kl)&&y.__esModule?y.default:y,"@react-aria/spinbutton");var y;const b=()=>clearTimeout(t.current);a((()=>()=>b()),[]);let w=o(!1),x=()=>{w.current=!0},$=()=>{w.current=!1},D=""===r?v.format("Empty"):(r||`${n}`).replace("-","−");a((()=>{var e;w.current&&(e="assertive",wl&&wl.clear(e),xl(D,"assertive"))}),[D]);const E=ur((e=>{b(),null==u||u(),t.current=window.setTimeout((()=>{(void 0===l||isNaN(l)||void 0===n||isNaN(n)||n<l)&&E(60)}),e)})),k=ur((e=>{b(),null==p||p(),t.current=window.setTimeout((()=>{(void 0===i||isNaN(i)||void 0===n||isNaN(n)||n>i)&&k(60)}),e)}));let C=e=>{e.preventDefault()},{addGlobalListener:S,removeAllGlobalListeners:I}=Xr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":D,"aria-valuemin":i,"aria-valuemax":l,"aria-disabled":s||void 0,"aria-readonly":d||void 0,"aria-required":c||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||d))switch(e.key){case"PageUp":if(m){e.preventDefault(),null==m||m();break}case"ArrowUp":case"Up":u&&(e.preventDefault(),null==u||u());break;case"PageDown":if(h){e.preventDefault(),null==h||h();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),null==p||p());break;case"Home":g&&(e.preventDefault(),null==g||g());break;case"End":f&&(e.preventDefault(),null==f||f())}},onFocus:x,onBlur:$},incrementButtonProps:{onPressStart:()=>{E(400),S(window,"contextmenu",C)},onPressEnd:()=>{b(),I()},onFocus:x,onBlur:$},decrementButtonProps:{onPressStart:()=>{k(400),S(window,"contextmenu",C)},onPressEnd:()=>{b(),I()},onFocus:x,onBlur:$}}}function ql(t,n,a){let i=o(""),{locale:l}=Mo(),s=function(){let{locale:e}=Mo(),t=Ko((n=Ol)&&n.__esModule?n.default:n,"@react-aria/datepicker");var n;return r((()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch(n){return new Zl(e,t)}}),[e,t])}(),{ariaLabel:d,ariaLabelledBy:c,ariaDescribedBy:u,focusManager:m}=Bl.get(n),p=t.isPlaceholder?"":t.text,h=r((()=>n.dateFormatter.resolvedOptions()),[n.dateFormatter]),g=qo({month:"long",timeZone:h.timeZone}),f=qo({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if("month"!==t.type||t.isPlaceholder)"hour"!==t.type||t.isPlaceholder||(p=f.format(n.dateValue));else{let e=g.format(n.dateValue);p=e!==p?`${p} – ${e}`:e}let{spinButtonProps:v}=Ul({value:t.value,textValue:p,minValue:t.minValue,maxValue:t.maxValue,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly||!t.isEditable,isRequired:n.isRequired,onIncrement:()=>{i.current="",n.increment(t.type)},onDecrement:()=>{i.current="",n.decrement(t.type)},onIncrementPage:()=>{i.current="",n.incrementPage(t.type)},onDecrementPage:()=>{i.current="",n.decrementPage(t.type)},onIncrementToMax:()=>{i.current="",n.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{i.current="",n.setSegment(t.type,t.minValue)}}),y=r((()=>new nl(l,{maximumFractionDigits:0})),[l]),b=()=>{if(t.text===t.placeholder&&m.focusPrevious(),!y.isValidPartialNumber(t.text)||n.isReadOnly||t.isPlaceholder)"dayPeriod"===t.type&&n.clearSegment(t.type);else{let e=t.text.slice(0,-1),a=y.parse(e);e=0===a?"":e,0===e.length||0===a?n.clearSegment(t.type):n.setSegment(t.type,a),i.current=e}},{startsWith:w}=ml({sensitivity:"base"}),x=qo({hour:"numeric",hour12:!0}),$=r((()=>{let e=new Date;return e.setHours(0),x.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[x]),D=r((()=>{let e=new Date;return e.setHours(12),x.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[x]),E=qo({year:"numeric",era:"narrow",timeZone:"UTC"}),k=r((()=>{if("era"!==t.type)return[];let e=Nn(new Xn(1,1,1),n.calendar),a=n.calendar.getEras().map((t=>{let n=e.set({year:1,month:1,day:1,era:t}).toDate("UTC");return{era:t,formatted:E.formatToParts(n).find((e=>"era"===e.type)).value}})),r=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(a.map((e=>e.formatted)));if(r)for(let e of a)e.formatted=e.formatted.slice(r);return a}),[E,n.calendar,t.type]),C=e=>{if(n.isDisabled||n.isReadOnly)return;let a=i.current+e;switch(t.type){case"dayPeriod":if(w($,e))n.setSegment("dayPeriod",0);else{if(!w(D,e))break;n.setSegment("dayPeriod",12)}m.focusNext();break;case"era":{let t=k.find((t=>w(t.formatted,e)));t&&(n.setSegment("era",t.era),m.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(a))return;let r=y.parse(a),o=r,l=0===t.minValue;if("hour"===t.type&&n.dateFormatter.resolvedOptions().hour12){switch(n.dateFormatter.resolvedOptions().hourCycle){case"h11":r>11&&(o=y.parse(e));break;case"h12":l=!1,r>12&&(o=y.parse(e))}t.value>=12&&r>1&&(r+=12)}else r>t.maxValue&&(o=y.parse(e));if(isNaN(r))return;let s=0!==o||l;s&&n.setSegment(t.type,o),Number(r+"0")>t.maxValue||a.length>=String(t.maxValue).length?(i.current="",s&&m.focusNext()):i.current=a;break}}},S=o("");si(a,"beforeinput",(e=>{switch(e.preventDefault(),e.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(t.text)&&!n.isReadOnly&&b();break;case"insertCompositionText":S.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:null!=e.data&&C(e.data)}})),si(a,"input",(e=>{let{inputType:t,data:n}=e;if("insertCompositionText"===t)a.current.textContent=S.current,(w($,n)||w(D,n))&&C(n)})),cr((()=>{let e=a.current;return()=>{if(document.activeElement===e){m.focusPrevious()||m.focusNext()}}}),[a,m]);let I=Zr()||"timeZoneName"===t.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},N=r((()=>n.segments.find((e=>e.isEditable))),[n.segments]);t===N||n.isInvalid||(u=void 0);let P=Er(),R=!n.isDisabled&&!n.isReadOnly&&t.isEditable,L=Qr({"aria-label":`${"literal"===t.type?"":s.of(t.type)}${d?`, ${d}`:""}${c?", ":""}`,"aria-labelledby":c});return"literal"===t.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:Lr(v,L,{id:P,...I,"aria-invalid":n.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":n.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:R,suppressContentEditableWarning:R,spellCheck:R?"false":void 0,autoCapitalize:R?"off":void 0,autoCorrect:R?"off":void 0,[parseInt(e.version,10)>=17?"enterKeyHint":"enterkeyhint"]:R?"next":void 0,inputMode:n.isDisabled||"dayPeriod"===t.type||"era"===t.type||!R?void 0:"numeric",tabIndex:n.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(Hr()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),b()}},onFocus:()=>{i.current="",ui(a.current,{containingElement:ri(a.current)}),window.getSelection().collapse(a.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}Kl={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};const Gl=Symbol("default");function Yl({values:t,children:n}){for(let[a,r]of t)n=e.createElement(a.Provider,{value:r},n);return n}function Jl(e){let{className:t,style:n,children:a,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s}=e;return r((()=>{let e,r,d;return e="function"==typeof t?t({...s,defaultClassName:i}):t,r="function"==typeof n?n({...s,defaultStyle:l||{}}):n,d="function"==typeof a?a({...s,defaultChildren:o}):null==a?o:a,{className:null!=e?e:i,style:r||l?{...l,...r}:void 0,children:null!=d?d:o,"data-rac":""}}),[t,n,a,i,o,l,s])}function _l(e,t){let n=d(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));if(!t&&!n.slots[Gl])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let a=t||Gl;if(!n.slots[a])throw new Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return n.slots[a]}return n}function Xl(e,t,n){let a=_l(n,e.slot)||{},{ref:i,...o}=a,l=ei(r((()=>function(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(t,i)),[t,i])),s=Lr(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?s.style=t=>{let n="function"==typeof o.style?o.style(t):o.style,a={...t.defaultStyle,...n},r="function"==typeof e.style?e.style({...t,defaultStyle:a}):e.style;return{...a,...r}}:s.style={...o.style,...e.style}),[s,l]}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Ql=l(!1);function es(t){let n=(e,n)=>d(Ql)?null:t(e,n);return n.displayName=t.displayName||t.name,e.forwardRef(n)}function ts(e){const t=/^(data-.*)$/;let n={};for(const a in e)t.test(a)||(n[a]=e[a]);return n}"undefined"!=typeof DocumentFragment&&new DocumentFragment;const ns=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),as=l({});function rs(t,n){[t,n]=Xl(t,n,as);let a=t,{buttonProps:r,isPressed:i}=function(e,t){let n,{elementType:a="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:m,href:p,target:h,rel:g,type:f="button"}=e;n="button"===a?{type:f,disabled:r}:{role:"button",tabIndex:r?void 0:0,href:"a"===a&&r?void 0:p,target:"a"===a?h:void 0,type:"input"===a?f:void 0,disabled:"input"===a?r:void 0,"aria-disabled":r&&"input"!==a?r:void 0,rel:"a"===a?g:void 0};let{pressProps:v,isPressed:y}=Ci({onPressStart:o,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:b}=Co(e,t);u&&(b.tabIndex=r?-1:b.tabIndex);let w=Lr(b,v,Vr(e,{labelable:!0}));return{isPressed:y,buttonProps:Lr(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}(t,n),{focusProps:o,isFocused:l,isFocusVisible:s}=Eo(t),{hoverProps:d,isHovered:c}=co(t),u=Jl({...t,values:{isHovered:c,isPressed:i,isFocused:l,isFocusVisible:s,isDisabled:t.isDisabled||!1},defaultClassName:"react-aria-Button"});return e.createElement("button",{...Vr(t,{propNames:ns}),...Lr(r,o,d),...u,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-pressed":a.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-focus-visible":s||void 0})}const is=es(rs),os=l({});function ls(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function ss(e,t,n,a,r){let i={};for(let e in t)i[e]=Math.floor(t[e]/2),i[e]>0&&t[e]%2==0&&i[e]--;return us(e,ds(e,t,n).subtract(i),t,n,a,r)}function ds(e,t,n,a,r){let i=e;return t.years?i=function(e){return ln(e.subtract({months:e.month-1}))}(e):t.months?i=ln(e):t.weeks&&(i=un(e,n)),us(e,i,t,n,a,r)}function cs(e,t,n,a,r){let i={...t};return t.days?i.days--:t.weeks?i.weeks--:t.months?i.months--:t.years&&i.years--,us(e,ds(e,t,n).subtract(i),t,n,a,r)}function us(e,t,n,a,r,i){return r&&e.compare(r)>=0&&(t=gn(t,ds(Sn(r),n,a))),i&&e.compare(i)<=0&&(t=hn(t,cs(Sn(i),n,a))),t}function ms(e,t,n){return t&&(e=gn(e,Sn(t))),n&&(e=hn(e,Sn(n))),e}function ps(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:void 0}function hs(e){let n=r((()=>new rr(e.locale)),[e.locale]),a=r((()=>n.resolvedOptions()),[n]),{locale:i,createCalendar:o,visibleDuration:l={months:1},minValue:s,maxValue:d,selectionAlignment:c,isDateUnavailable:u,pageBehavior:m="visible"}=e,p=r((()=>o(a.calendar)),[o,a.calendar]),[h,g]=hi(e.value,e.defaultValue,e.onChange),f=r((()=>h?Nn(Sn(h),p):null),[h,p]),v=r((()=>h&&"timeZone"in h?h.timeZone:a.timeZone),[h,a.timeZone]),y=r((()=>e.focusedValue?ms(Nn(Sn(e.focusedValue),p),s,d):void 0),[e.focusedValue,p,s,d]),b=r((()=>ms(e.defaultFocusedValue?Nn(Sn(e.defaultFocusedValue),p):f||Nn(tn(v),p),s,d)),[e.defaultFocusedValue,f,v,p,s,d]),[w,x]=hi(y,b,e.onFocusChange),[$,D]=t((()=>{switch(c){case"start":return ds(w,l,i,s,d);case"end":return cs(w,l,i,s,d);default:return ss(w,l,i,s,d)}})),[E,k]=t(e.autoFocus||!1),C=r((()=>{let e={...l};return e.days?e.days--:e.days=-1,$.add(e)}),[$,l]),[S,I]=t(p.identifier);if(p.identifier!==S){let e=Nn(w,p);D(ss(e,l,i,s,d)),x(e),I(p.identifier)}function N(e){e=ms(e,s,d),x(e)}function P(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void g(null);if(!(t=ps(t=ms(t,s,d),$,u)))return;t=Nn(t,(null==h?void 0:h.calendar)||new Yt),g(h&&"hour"in h?h.set(t):t)}}ls(w,s,d)?x(ms(w,s,d)):w.compare($)<0?D(cs(w,l,i,s,d)):w.compare(C)>0&&D(ds(w,l,i,s,d));let R=r((()=>!!f&&(!(!u||!u(f))||ls(f,s,d))),[f,u,s,d]),L=e.isInvalid||"invalid"===e.validationState||R,T=L?"invalid":null,z=r((()=>"visible"===m?l:gs(l)),[m,l]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:f,setValue:P,visibleRange:{start:$,end:C},minValue:s,maxValue:d,focusedDate:w,timeZone:v,validationState:T,isValueInvalid:L,setFocusedDate(e){N(e),k(!0)},focusNextDay(){N(w.add({days:1}))},focusPreviousDay(){N(w.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&N(w.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&N(w.subtract({weeks:1}))},focusNextPage(){let e=$.add(z);x(ms(w.add(z),s,d)),D(ds(us(w,e,z,i,s,d),z,i))},focusPreviousPage(){let e=$.subtract(z);x(ms(w.subtract(z),s,d)),D(ds(us(w,e,z,i,s,d),z,i))},focusSectionStart(){l.days?N($):l.weeks?N(un(w,i)):(l.months||l.years)&&N(ln(w))},focusSectionEnd(){l.days?N(C):l.weeks?N(function(e,t){return un(e,t).add({days:6})}(w,i)):(l.months||l.years)&&N(sn(w))},focusNextSection(e){e||l.days?l.days?this.focusNextPage():l.weeks?N(w.add({months:1})):(l.months||l.years)&&N(w.add({years:1})):N(w.add(gs(l)))},focusPreviousSection(e){e||l.days?l.days?this.focusPreviousPage():l.weeks?N(w.subtract({months:1})):(l.months||l.years)&&N(w.subtract({years:1})):N(w.subtract(gs(l)))},selectFocusedDate(){P(w)},selectDate(e){P(e)},isFocused:E,setFocused:k,isInvalid:e=>ls(e,s,d),isSelected(e){return null!=f&&_t(e,f)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>E&&w&&_t(e,w),isCellDisabled(t){return e.isDisabled||t.compare($)<0||t.compare(C)>0||this.isInvalid(t,s,d)},isCellUnavailable:t=>e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=$.subtract({days:1});return _t(e,$)||this.isInvalid(e,s,d)},isNextVisibleRangeInvalid(){let e=C.add({days:1});return _t(e,C)||this.isInvalid(e,s,d)},getDatesInWeek(e,t=$){let n=t.add({weeks:e}),a=[];n=un(n,i);let r=Qt(n,i);for(let e=0;e<r;e++)a.push(null);for(;a.length<7;){a.push(n);let e=n.add({days:1});if(_t(n,e))break;n=e}for(;a.length<7;)a.push(null);return a}}}function gs(e){let t={...e};for(let n in e)t[n]=1;return t}function fs(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:Sn(e),end:Sn(t)}):null}function vs(e,t){return e=Nn(e,(null==t?void 0:t.calendar)||new Yt),t&&"hour"in t?t.set(e):e}function ys(e,t,n){let a=e.add({days:n});for(;(n<0?a.compare(t.visibleRange.start)>=0:a.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(a);)a=a.add({days:n});return t.isCellUnavailable(a)?a.add({days:-n}):null}const bs=new Bo((ws={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}})&&ws.__esModule?ws.default:ws);var ws;function xs(e,t,n,a,r){let i=null!=e&&null!=n&&e.compare(n)>0,o=null!=e&&null!=t&&e.compare(t)<0,l=null!=e&&(null==a?void 0:a(e))||!1,s=i||o||l,d=[];if(s){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US",a=Bo.getGlobalDictionaryForPackage("@react-stately/datepicker")||bs,s=new Wo(e,a),c=new rr(e,Es({},r)),u=c.resolvedOptions().timeZone;o&&d.push(s.format("rangeUnderflow",{minValue:c.format(t.toDate(u))})),i&&d.push(s.format("rangeOverflow",{maxValue:c.format(n.toDate(u))})),l&&d.push(s.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const $s={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Ds={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Es(e,t){let n=t.shouldForceLeadingZeros?Ds:$s;e={...n,...e};let a=t.granularity||"minute",r=Object.keys(e);var i;let o=r.indexOf(null!==(i=t.maxGranularity)&&void 0!==i?i:"year");o<0&&(o=0);let l=r.indexOf(a);if(l<0&&(l=2),o>l)throw new Error("maxGranularity must be greater than granularity");let s=r.slice(o,l+1).reduce(((t,n)=>(t[n]=e[n],t)),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===a||"minute"===a||"second"===a)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===o&&(s.era="short"),s}function ks(e,t){return null===e?null:e?Nn(e,t):void 0}function Cs(e,t,n,a){if(e)return ks(e,n);let r=Nn(en(a).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?Sn(r):a?r:In(r)}const Ss=new Bo({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");const Is={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Ns={year:5,month:2,day:7,hour:2,minute:15,second:15},Ps={dayperiod:"dayPeriod"};function Rs(e){let{locale:n,createCalendar:i,hideTimeZone:l,isDisabled:s,isReadOnly:d,isRequired:c,minValue:u,maxValue:m,isDateUnavailable:p}=e,h=e.value||e.defaultValue||e.placeholderValue,[g,f]=function(e,n){let a=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&n&&!(n in e))throw new Error("Invalid granularity "+n+" for value "+e.toString());let[i,o]=t([r,a]);return!e||i[0]===r&&i[1]===a||o([r,a]),n||(n=e?r:i[0]),[n,e?a:i[1]]}(h,e.granularity),v=f||"UTC";if(h&&!(g in h))throw new Error("Invalid granularity "+g+" for value "+h.toString());let y=r((()=>new rr(n)),[n]),b=r((()=>i(y.resolvedOptions().calendar)),[i,y]),[w,x]=hi(e.value,e.defaultValue,e.onChange),$=r((()=>ks(w,b)),[w,b]),[D,E]=t((()=>Cs(e.placeholderValue,g,b,f))),k=$||D,C="gregory"===b.identifier&&"BC"===k.era,S=r((()=>{var t;return{granularity:g,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:f,hideTimeZone:l,hourCycle:e.hourCycle,showEra:C,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,g,e.hourCycle,e.shouldForceLeadingZeros,f,l,C]),I=r((()=>Es({},S)),[S]),N=r((()=>new rr(n,I)),[n,I]),P=r((()=>N.resolvedOptions()),[N]),R=r((()=>N.formatToParts(new Date).filter((e=>Is[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[N]),[L,T]=t((()=>e.value||e.defaultValue?{...R}:{})),z=o(),F=o(b.identifier);a((()=>{b.identifier!==F.current&&(F.current=b.identifier,E((t=>Object.keys(L).length>0?Nn(t,b):Cs(e.placeholderValue,g,b,f))))}),[b,g,L,f,e.placeholderValue]),w&&Object.keys(L).length<Object.keys(R).length&&(L={...R},T(L)),null==w&&Object.keys(L).length===Object.keys(R).length&&(L={},T(L),E(Cs(e.placeholderValue,g,b,f)));let M=$&&Object.keys(L).length>=Object.keys(R).length?$:D,V=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(L),a=Object.keys(R);null==t?(x(null),E(Cs(e.placeholderValue,g,b,f)),T({})):n.length>=a.length||n.length===a.length-1&&R.dayPeriod&&!L.dayPeriod&&"dayPeriod"!==z.current?(t=Nn(t,(null==h?void 0:h.calendar)||new Yt),x(t)):E(t),z.current=null},j=r((()=>M.toDate(v)),[M,v]),O=r((()=>N.formatToParts(j).map((e=>{let t=Is[e.type];"era"===e.type&&1===b.getEras().length&&(t=!1);let a=Is[e.type]&&!L[e.type],r=Is[e.type]?function(e,t,n){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?Ss.getStringForLocale(e,n):"––"}(e.type,e.value,n):null;return{type:Ps[e.type]||e.type,text:a?r:e.value,...Ls(M,e.type,P),isPlaceholder:a,placeholder:r,isEditable:t}}))),[j,L,N,P,M,b,n]);R.era&&L.year&&!L.era?(L.era=!0,T({...L})):!R.era&&L.era&&(delete L.era,T({...L}));let B=e=>{L[e]=!0,"year"===e&&R.era&&(L.era=!0),T({...L})},A=(e,t)=>{if(L[e])V(function(e,t,n,a){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return e.set({hour:n?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:a.hour12?12:24})}}(M,e,t,P));else{B(e);let t=Object.keys(L),n=Object.keys(R);(t.length>=n.length||t.length===n.length-1&&R.dayPeriod&&!L.dayPeriod)&&V(M)}},H=r((()=>xs(w,u,m,p,S)),[w,u,m,p,S]),W=Ll({...e,value:w,builtinValidation:H}),Z=W.displayValidation.isInvalid,K=e.validationState||(Z?"invalid":null);var U;return{...W,value:$,dateValue:j,calendar:b,setValue:V,segments:O,dateFormatter:N,validationState:K,isInvalid:Z,granularity:g,maxGranularity:null!==(U=e.maxGranularity)&&void 0!==U?U:"year",isDisabled:s,isReadOnly:d,isRequired:c,increment(e){A(e,1)},decrement(e){A(e,-1)},incrementPage(e){A(e,Ns[e]||1)},decrementPage(e){A(e,-(Ns[e]||1))},setSegment(e,t){B(e),V(function(e,t,n,a){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,a=t>=12;return n>=12===a?e:e.set({hour:a?t-12:t+12})}case"hour":if(a.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}(M,e,t,P))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(L),n=Object.keys(R);t.length===n.length-1&&R.dayPeriod&&!L.dayPeriod&&(L={...R},T(L),V(M.copy()))},clearSegment(t){delete L[t],z.current=t,T({...L});let n=Cs(e.placeholderValue,g,b,f),a=M;if("dayPeriod"===t&&"hour"in M&&"hour"in n){let e=M.hour>=12,t=n.hour>=12;e&&!t?a=M.set({hour:M.hour-12}):!e&&t&&(a=M.set({hour:M.hour+12}))}else t in M&&(a=M.set({[t]:n[t]}));x(null),V(a)},formatValue(e){if(!$)return"";let t=Es(e,S);return new rr(n,t).format(j)}}}function Ls(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:dn(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:cn(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}const Ts=l({}),zs=l(null),Fs=l(null);function Ms(n,a){[n,a]=Xl(n,a,Ts);let{locale:i}=Mo(),l=function(e){let{value:n,defaultValue:a,onChange:i,createCalendar:l,locale:s,visibleDuration:d={months:1},minValue:c,maxValue:u,...m}=e,[p,h]=hi(n,a||null,i),[g,f]=t(null),v="center";if(p&&p.start&&p.end){let e=ss(Sn(p.start),d,s,c,u).add(d).subtract({days:1});p.end.compare(e)>0&&(v="start")}let y=o(null),[b,w]=t(null),x=r((()=>gn(c,null==b?void 0:b.start)),[c,b]),$=r((()=>hn(u,null==b?void 0:b.end)),[u,b]),D=hs({...m,value:p&&p.start,createCalendar:l,locale:s,visibleDuration:d,minValue:x,maxValue:$,selectionAlignment:v}),E=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(y.current={start:ys(t,D,-1),end:ys(t,D,1)},w(y.current)):(y.current=null,w(null))},[k,C]=t(D.visibleRange);Xt(D.visibleRange.start,k.start)&&Xt(D.visibleRange.end,k.end)||(E(g),C(D.visibleRange));let S=e=>{e?(f(e),E(e)):(f(null),E(null))},I=g?fs(g,D.focusedDate):p&&fs(p.start,p.end),N=t=>{if(!e.isReadOnly&&(t=ps(t=ms(t,x,$),D.visibleRange.start,e.isDateUnavailable)))if(g){let e=fs(g,t);h({start:vs(e.start,null==p?void 0:p.start),end:vs(e.end,null==p?void 0:p.end)}),S(null)}else S(t)},[P,R]=t(!1),{isDateUnavailable:L}=e,T=r((()=>!(!p||g)&&(!(!L||!L(p.start)&&!L(p.end))||ls(p.start,c,u)||ls(p.end,c,u))),[L,p,g,c,u]),z=e.isInvalid||"invalid"===e.validationState||T,F=z?"invalid":null;return{...D,value:p,setValue:h,anchorDate:g,setAnchorDate:S,highlightedRange:I,validationState:F,isValueInvalid:z,selectFocusedDate(){N(D.focusedDate)},selectDate:N,highlightDate(e){g&&D.setFocusedDate(e)},isSelected:e=>I&&e.compare(I.start)>=0&&e.compare(I.end)<=0&&!D.isCellDisabled(e)&&!D.isCellUnavailable(e),isInvalid(e){var t,n;return D.isInvalid(e)||ls(e,null===(t=y.current)||void 0===t?void 0:t.start,null===(n=y.current)||void 0===n?void 0:n.end)},isDragging:P,setDragging:R}}({...n,locale:i,createCalendar:nr}),{calendarProps:s,prevButtonProps:d,nextButtonProps:c,errorMessageProps:u,title:m}=function(e,t,n){let a=Dl(e,t),r=o(!1),i=o("undefined"!=typeof window?window:null);return si(i,"pointerdown",(e=>{r.current=0===e.width&&0===e.height})),si(i,"pointerup",(e=>{if(r.current)return void(r.current=!1);if(t.setDragging(!1),!t.anchorDate)return;let a=e.target;!n.current||!n.current.contains(document.activeElement)||n.current.contains(a)&&a.closest('button, [role="button"]')||t.selectFocusedDate()})),a.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&n.current.contains(e.relatedTarget)||!t.anchorDate||t.selectFocusedDate())},si(n,"touchmove",(e=>{t.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),a}(n,l,a),p=Jl({...n,values:{state:l,isDisabled:n.isDisabled||!1,isInvalid:l.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return e.createElement("div",{...p,...s,ref:a,slot:n.slot||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":l.isValueInvalid||void 0},e.createElement(Yl,{values:[[as,{slots:{previous:d,next:c}}],[dr,{"aria-hidden":!0,level:2,children:m}],[Fs,l],[os,{slots:{errorMessage:u}}]]},e.createElement(jl,null,e.createElement("h2",null,s["aria-label"])),p.children,e.createElement(jl,null,e.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>l.focusNextPage(),tabIndex:-1}))))}const Vs=i(Ms),js=l(null);function Os(t,n){let a=d(zs),i=d(Fs),o=null!=a?a:i,l=o.visibleRange.start;t.offset&&(l=l.add(t.offset));let{gridProps:s,headerProps:c,weekDays:u}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:a=t.visibleRange.end}=e,{direction:i}=Mo(),o=vl(n,a,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=gl.get(t),d=Qr({"aria-label":[l,o].filter(Boolean).join(", "),"aria-labelledby":s}),c=qo({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:u}=Mo(),m=r((()=>{let e=un(tn(t.timeZone),u);return[...new Array(7).keys()].map((n=>{let a=e.add({days:n}).toDate(t.timeZone);return c.format(a)}))}),[u,t.timeZone,c]);return{gridProps:Lr(d,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===i?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===i?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}({startDate:l,endDate:sn(l),weekdayStyle:t.weekdayStyle},o);var m;return e.createElement(js.Provider,{value:{headerProps:c,weekDays:u,startDate:l}},e.createElement("table",{...Vr(t),...s,ref:n,style:t.style,className:null!==(m=t.className)&&void 0!==m?m:"react-aria-CalendarGrid"},"function"!=typeof t.children?t.children:e.createElement(e.Fragment,null,e.createElement(Hs,null,(t=>e.createElement(Zs,null,t))),e.createElement(Us,null,t.children))))}const Bs=i(Os);function As(t,n){let{children:a,style:r,className:i}=t,{headerProps:o,weekDays:l}=d(js);return e.createElement("thead",{...Vr(t),...o,ref:n,style:r,className:i||"react-aria-CalendarGridHeader"},e.createElement("tr",null,l.map(((t,n)=>e.cloneElement(a(t),{key:n})))))}const Hs=i(As);function Ws(t,n){let{children:a,style:r,className:i}=t;return e.createElement("th",{...Vr(t),ref:n,style:r,className:i||"react-aria-CalendarHeaderCell"},a)}const Zs=i(Ws);function Ks(t,n){let{children:a,style:r,className:i}=t,o=d(zs),l=d(Fs),s=null!=o?o:l,{startDate:c}=d(js),{locale:u}=Mo(),m=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Qt(ln(e),t)+n)/7)}(c,u);return e.createElement("tbody",{...Vr(t),ref:n,style:r,className:i||"react-aria-CalendarGridBody"},[...new Array(m).keys()].map((t=>e.createElement("tr",{key:t},s.getDatesInWeek(t,c).map(((t,n)=>t?e.cloneElement(a(t),{key:n}):e.createElement("td",{key:n})))))))}const Us=i(Ks);function qs({date:t,...n},a){let r=d(zs),i=d(Fs),l=null!=r?r:i;var s;let{startDate:c}=null!==(s=d(js))&&void 0!==s?s:{startDate:l.visibleRange.start},u=o(null),{cellProps:m,buttonProps:p,...h}=El({date:t},l,u),{hoverProps:g,isHovered:f}=co({...n,isDisabled:h.isDisabled}),{focusProps:v,isFocusVisible:y}=Eo();y&&(y=h.isFocused);let b=!function(e,t){return t=Nn(t,e.calendar),e=ln(e),t=ln(t),e.era===t.era&&e.year===t.year&&e.month===t.month}(c,t),w=!1,x=!1;"highlightedRange"in l&&l.highlightedRange&&(w=_t(t,l.highlightedRange.start),x=_t(t,l.highlightedRange.end));let $=Jl({...n,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:f,isOutsideMonth:b,isFocusVisible:y,isSelectionStart:w,isSelectionEnd:x,...h}}),D={"data-focused":h.isFocused||void 0,"data-hovered":f||void 0,"data-pressed":h.isPressed||void 0,"data-unavailable":h.isUnavailable||void 0,"data-disabled":h.isDisabled||void 0,"data-focus-visible":y||void 0,"data-outside-visible-range":h.isOutsideVisibleRange||void 0,"data-outside-month":b||void 0,"data-selected":h.isSelected||void 0,"data-selection-start":w||void 0,"data-selection-end":x||void 0,"data-invalid":h.isInvalid||void 0};return e.createElement("td",{...m,ref:a},e.createElement("div",{...Lr(Vr(n),p,v,g,D,$),ref:u}))}const Gs=i(qs),Ys=l(null),Js=l(null),_s=l({}),Xs=l({});let Qs=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,...r}=e;return r};function ed(t,n){[t,n]=Xl(t,n,Xs);let{hoverProps:a,isHovered:r}=co(t),{isFocused:i,isFocusVisible:o,focusProps:l}=Eo({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&"false"!==t["aria-invalid"],d=Jl({...t,values:{isHovered:r,isFocused:i,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return e.createElement("input",{...Lr(Qs(t),l,a),...d,ref:n,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})}const td=es(ed),nd=l({});function ad(t,n){[t,n]=Xl(t,n,nd);let{isDisabled:a,isInvalid:r,onHoverStart:i,onHoverChange:o,onHoverEnd:l,...s}=t,{hoverProps:d,isHovered:c}=co({onHoverStart:i,onHoverChange:o,onHoverEnd:l,isDisabled:a}),{isFocused:u,isFocusVisible:m,focusProps:p}=Eo({within:!0});null!=a||(a=!!t["aria-disabled"]&&"false"!==t["aria-disabled"]),null!=r||(r=!!t["aria-invalid"]&&"false"!==t["aria-invalid"]);let h=Jl({...t,values:{isHovered:c,isFocusWithin:u,isFocusVisible:m,isDisabled:a,isInvalid:r},defaultClassName:"react-aria-Group"});var g,f;return e.createElement("div",{...Lr(s,p,d),...h,ref:n,role:null!==(g=t.role)&&void 0!==g?g:"group",slot:null!==(f=t.slot)&&void 0!==f?f:void 0,"data-focus-within":u||void 0,"data-hovered":c||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-invalid":r||void 0},h.children)}const rd=i(ad),id=l(null),od=l(null),ld=l(null);function sd(n,a){[n,a]=Xl(n,a,id);let{validationBehavior:r}=_l(Js)||{};var i,l;let d=null!==(l=null!==(i=n.validationBehavior)&&void 0!==i?i:r)&&void 0!==l?l:"native",{locale:c}=Mo(),u=Rs({...n,locale:c,createCalendar:nr,validationBehavior:d}),m=o(null),[p,h]=function(){let[e,n]=t(!0),a=o(!1),r=s((e=>{a.current=!0,n(!!e)}),[]);return cr((()=>{a.current||n(!1)}),[]),[r,e]}(),g=o(null),{labelProps:f,fieldProps:v,inputProps:y,descriptionProps:b,errorMessageProps:w,...x}=Wl({...ts(n),label:h,inputRef:g,validationBehavior:d},u,m),$=Jl({...ts(n),values:{state:u,isInvalid:u.isInvalid,isDisabled:u.isDisabled},defaultClassName:"react-aria-DateField"}),D=Vr(n);return delete D.id,e.createElement(Yl,{values:[[od,u],[nd,{...v,ref:m,isInvalid:u.isInvalid}],[Xs,{...y,ref:g}],[_s,{...f,ref:p,elementType:"span"}],[os,{slots:{description:b,errorMessage:w}}],[Ys,x]]},e.createElement("div",{...D,...$,ref:a,slot:n.slot||void 0,"data-invalid":u.isInvalid||void 0}))}const dd=i(sd);function cd(t,n){let a=d(od),r=d(ld);return a||r?e.createElement(md,{...t,ref:n}):e.createElement(ud,{...t,ref:n})}const ud=i(((t,n)=>{let[a,r]=Xl({slot:t.slot},n,id),{locale:i}=Mo(),l=Rs({...a,locale:i,createCalendar:nr}),s=o(null),{fieldProps:d,inputProps:c}=Wl({...a,inputRef:s},l,r);return e.createElement(Yl,{values:[[od,l],[Xs,{...c,ref:s}],[nd,{...d,ref:r,isInvalid:l.isInvalid}]]},e.createElement(md,t))})),md=i(((t,n)=>{let{className:a,children:r}=t,i=d(od),o=d(ld),l=null!=i?i:o;return e.createElement(e.Fragment,null,e.createElement(rd,{...t,ref:n,slot:t.slot||void 0,className:null!=a?a:"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map(((e,t)=>c(r(e),{key:t})))),e.createElement(td,null))})),pd=i(cd);function hd({segment:t,...n},a){let r=d(od),i=d(ld),o=null!=r?r:i,l=ei(a),{segmentProps:s}=ql(t,o,l),{focusProps:c,isFocused:u,isFocusVisible:m}=Eo(),{hoverProps:p,isHovered:h}=co({...n,isDisabled:o.isDisabled||"literal"===t.type}),g=Jl({...n,values:{...t,isReadOnly:!t.isEditable,isInvalid:o.isInvalid,isDisabled:o.isDisabled,isHovered:h,isFocused:u,isFocusVisible:m},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return e.createElement("div",{...Lr(Vr(n),s,c,p),...g,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":o.isInvalid||void 0,"data-readonly":!t.isEditable||void 0,"data-disabled":o.isDisabled||void 0,"data-type":t.type,"data-hovered":h||void 0,"data-focused":u||void 0,"data-focus-visible":m||void 0})}const gd=i(hd);function fd(t,n){[t,n]=Xl(t,n,dr);let{children:a,level:r=3,className:i,...o}=t,l=`h${r}`;return e.createElement(l,{...o,ref:n,className:null!=i?i:"react-aria-Heading"},a)}const vd=i(fd),yd=t=>e.createElement(Bs,Object.assign({weekdayStyle:"short"},t),e.createElement(Hs,null,(t=>e.createElement(Zs,null,t.slice(0,2)))),e.createElement(Us,null,(t=>e.createElement(Gs,{date:t})))),bd=v`.react-aria-Button{color:${A.colors.neutral.ink.base};background-color:transparent;border-color:transparent;box-shadow:none;cursor:pointer;height:40px;padding:0 8px;border-radius:8px;font-size:16px;line-height:16px;outline:0;--outline-width:4px;svg{width:${A.sizes.base};height:${A.sizes.base};}&:not[disabled]:active,&:not[disabled]:focus-visible{box-shadow:0 0 0 var(--outline-width)${A.colors.secondary.blue.light};}&:not[disabled]:active,&:not[disabled]:hover{background-color:${A.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${A.colors.neutral.grey.base};cursor:default;}}`,wd=v`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${A.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${A.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${A.colors.secondary.blue.light};}&[data-selected]{background:${A.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${A.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:default;}&[data-unavailable]{text-decoration:line-through;color:${A.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${A.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${A.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${A.colors.secondary.blue.base};}&[data-selection-start]{border-start-start-radius:6px;border-end-start-radius:6px;}&[data-selection-end]{border-start-end-radius:6px;border-end-end-radius:6px;}}`,xd=e=>`\n font-family: ${e.fontFamily};\n font-style: ${e.fontStyle};\n font-weight: ${e.fontWeight};\n font-size: ${e.fontSize};\n line-height: ${e.lineHeight};\n color: ${e.color};\n text-decoration: ${e.textDecoration};\n letter-spacing: ${e.letterSpacing};\n`,$d=v`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${xd(A.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${A.sizes.sm};}`,Dd=f(Vs).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${A.colors.neutral.ink.base};font-size:14px;font-family:${A.fontFamily};${$d} ${bd} ${wd} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Ed=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.44 11.06L7.38667 8L10.44 4.94L9.5 4L5.5 8L9.5 12L10.44 11.06Z",fill:"currentColor"})),kd=t=>{var{disabledRanges:n=[],disallowWeekends:a=!1,isMultiMonth:r=!1}=t,i=ne(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const{locale:o}=Mo(),l=s((e=>!!a&&function(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1)%7;a<0&&(a+=7);let r=pn(t),[i,o]=fn[r]||[6,0];return a===i||a===o}(e,o)||n.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[n,a,o]);return e.createElement(Dd,Object.assign({isDateUnavailable:l,visibleDuration:r?{months:2}:void 0},i),e.createElement("header",null,e.createElement(is,{slot:"previous"},e.createElement(Ed,null)),e.createElement(vd,null),e.createElement(is,{slot:"next"},e.createElement(Mt,null))),r?e.createElement("div",{style:{display:"flex",gap:A.sizes.sm,overflow:"auto"}},e.createElement(yd,null),e.createElement(yd,{offset:{months:1}})):e.createElement(yd,null))};var Cd;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Cd||(Cd={}));const Sd=f.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:a="start",spacing:r="base"}=e;let i,o,l,s,d="",c="";return"vertical"===t?(i=n&&Cd[n],o=a&&Cd[a],d=A.sizes[r],l="column"):(i=a&&Cd[a],o=n&&Cd[n],c=A.sizes[r],l="row"),("vertical"===t&&"stretch"===a||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${i};\n justify-content: ${o};\n flex-direction: ${l};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;Sd.displayName="Stack";const Id={top:"flex-start",center:"center"},Nd=f.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${A.sizes.base};}`,Pd=f.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>Id[e.align]};width:24px;height:24px;`,Rd=f.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Ld=f.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${A.sizes.sm};}`,Td=f.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${A.text.body.fontFamily};font-size:${A.text.body.fontSize};font-weight:${A.text.body.fontWeight};line-height:${A.sizes.md};color:${A.text.body.color};`,zd=f.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${A.fontFamily};font-size:${A.sizes[3]};line-height:${A.sizes[4]};color:${A.colors.neutral.ink.light};`,Fd=f.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${A.text.error.fontFamily};font-size:${A.text.error.fontSize};font-weight:${A.text.error.fontWeight};line-height:${A.text.error.lineHeight};color:${A.text.error.color};`,Md=f.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,Vd=f(Md).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${A.colors.neutral.grey.dark};border-radius:${A.radius.md};padding:${A.sizes.base} 0.75rem;&:hover{border-color:${A.colors.secondary.blue.base};}& ${Td}{font-weight:${A.text.bodyBold.fontWeight};}`,jd=f(xt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Od=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})),Bd=({id:t,label:n,hint:a,tooltip:r,error:i,bordered:o,Badge:l,Accessory:s,Footer:d,children:c,disabled:u=!1})=>{const m=e.createElement(Nd,null,e.createElement(Pd,{align:s?"center":"top"},c),s&&e.createElement(Rd,null,s),n||a||i||l||d?e.createElement(Ld,null,e.createElement(Sd,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&e.createElement(Td,null,n),r&&e.createElement(jd,{text:r},e.createElement(Od,{name:"help",width:A.sizes.base,color:A.colors.neutral.ink.lightest}))),a&&e.createElement(zd,null,a),i&&e.createElement(Fd,null,i),d):null);return o?e.createElement(Vd,{disabled:u,htmlFor:t},m):e.createElement(Md,{disabled:u,htmlFor:t},m)},{colors:Ad,sizes:Hd,radius:Wd}=A,Zd=f.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Ad.neutral.ink.lightest};border-radius:${Wd.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Ad.secondary.blue.base};border-color:${Ad.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='white' /></svg>");background-repeat:no-repeat;background-size:${Hd[4]};background-position:center;}&:hover{border-color:${Ad.secondary.blue.base};}&:active{border-color:${Ad.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Ad.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Ad.secondary.blue.base};border-color:${Ad.secondary.blue.base};background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='white'/></svg>");background-repeat:no-repeat;background-size:${Hd[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Ad.neutral.grey.base};border-color:${Ad.neutral.grey.base};color:${Ad.neutral.ink.light};cursor:default;}&:checked:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.56846 16.3657L3.86697 11.6642L2.2998 13.2313L8.56846 19.5L22.0013 6.06716L20.4341 4.5L8.56846 16.3657Z' fill='%23637381' /></svg>");}&:indeterminate:disabled{background-image:url("data:image/svg+xml;utf-8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5' y='11' width='14' height='3' fill='%23637381'/></svg>");}`,Kd=t=>{var{checked:n,indeterminate:i,value:l,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,h=ne(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const g=r((()=>ae("checkbox")),[]),f=o(null),v=s((e=>{p(e.currentTarget.checked,l)}),[p,l]);return a((()=>{f.current&&(f.current.indeterminate=!0===i)}),[i]),e.createElement(Bd,Object.assign({id:g,disabled:c},h),e.createElement(Zd,{ref:f,id:g,type:"checkbox",checked:n,value:l,name:d,disabled:c,"aria-label":u,className:m,onChange:v}))},Ud=f.input.withConfig({displayName:"vui--Input",componentId:"vui--1e1oks4"})`appearance:none;box-sizing:border-box;flex-shrink:0;width:18px;height:18px;margin:3px;background-color:transparent;border:2px solid #637381;border-radius:50%;outline:none;cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s;&:checked{position:relative;border-color:#0079d1;}&:checked::before{content:'';width:10px;height:10px;position:absolute;top:2px;left:2px;background-color:#0079d1;border-radius:50%;}&:hover{border-color:#0079d1;}&:active{border-color:#0079d1;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{box-shadow:none;background-color:#dfe3e8;border-color:#959fa8;cursor:default;}&:disabled::before{background-color:#637381;}`,qd=i(((t,n)=>{var{checked:a,value:r,name:i,disabled:o,onChange:l,id:d}=t,c=ne(t,["checked","value","name","disabled","onChange","id"]);const u=s((e=>{l(e.currentTarget.checked,r)}),[l,r]),m=null!=d?d:ae("radio");return e.createElement(Bd,Object.assign({id:m,disabled:o},c),e.createElement(Ud,{id:m,type:"radio",checked:a,value:r,name:i,disabled:o,onChange:u,ref:n}))})),Gd=f.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Yd=f.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${A.text.inputLabel.fontFamily};font-size:${A.text.inputLabel.fontSize};font-style:${A.text.inputLabel.fontStyle};font-weight:${A.text.inputLabel.fontWeight};line-height:${A.text.inputLabel.lineHeight};text-decoration:${A.text.inputLabel.textDecoration};color:${A.text.inputLabel.color};`;class Jd extends u{constructor(){super(...arguments),this.handleChange=(e,t)=>{const{allowMultiple:n}=this.props;n?this.handleChangeMultiple(e,t):this.handleChangeSingle(e,t)},this.handleChangeSingle=(e,t)=>{const{onChange:n}=this.props;t&&n([e])},this.handleChangeMultiple=(e,t)=>{const{selected:n,onChange:a}=this.props;let r=[];r=t?[...n,e]:n.filter((t=>t!==e)),a(r)}}render(){const{allowMultiple:t,options:n,selected:a,title:r,disabled:i,bordered:o}=this.props,l=t?Kd:qd;return e.createElement(Gd,{disabled:i},r&&e.createElement(Yd,null,r),n.map((t=>e.createElement(l,Object.assign({key:t.value,bordered:o,checked:a.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const _d=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM14.7708 8L10.0856 13.2468L8.22925 11.1679L7 12.5445L10.0856 16L16 9.37661L14.7708 8ZM20.1818 12C20.1818 16.5187 16.5187 20.1818 12 20.1818C7.48131 20.1818 3.81818 16.5187 3.81818 12C3.81818 7.48131 7.48131 3.81818 12 3.81818C16.5187 3.81818 20.1818 7.48131 20.1818 12Z",fill:"currentColor"})),Xd=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM19 21H5V5H7V8H17V5H19V21Z",fill:"currentColor"})),Qd={width:j.base,height:j.base},ec=f(Re).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${j.base};width:${j.base};top:unset;}`,tc=({className:t,text:n,onCopy:a})=>{const[r,i]=e.useState(!1),o=s((()=>{navigator.clipboard.writeText(n),a&&a(),i(!0),setTimeout((()=>i(!1)),2500)}),[a,n]);return e.createElement(xt,{text:r?"Copied!":"Copy to clipboard"},e.createElement(ec,{variant:"flat",size:"sm",className:t,"aria-label":`${r?"Copied":"Copy"} "${n}" to clipboard`,icon:r?e.createElement(_d,Object.assign({color:R.secondary.green.base},Qd)):e.createElement(Xd,Object.assign({color:R.secondary.blue.base},Qd)),onClick:o}))},nc=f.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${A.text.inputLabel.fontFamily};font-size:${A.text.inputLabel.fontSize};font-weight:${A.text.inputLabel.fontWeight};line-height:${A.text.inputLabel.lineHeight};color:${A.text.inputLabel.color};`,ac=f.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${A.fontFamily};font-size:${A.sizes[3]};line-height:${A.sizes[4]};color:${A.colors.neutral.ink.light};`,rc=f.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${A.text.error.fontFamily};font-size:${A.text.error.fontSize};font-weight:${A.text.error.fontWeight};line-height:${A.text.error.lineHeight};color:${A.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${A.sizes[2]} * -1);width:2px;background-color:${A.colors.secondary.red.base};}`,ic=f(Sd).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,oc=f(xt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,lc=t=>n=>{var{label:a,hint:i,error:o,tooltip:l}=n,s=ne(n,["label","hint","error","tooltip"]);const d=r((()=>ae(t.name)),[]);return a?e.createElement(ic,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(Sd,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(nc,{id:`${d}-label`,htmlFor:d},a),l&&e.createElement(oc,{text:l},e.createElement(Od,{width:A.sizes.base,height:A.sizes.base,color:A.colors.neutral.ink.light}))),i&&e.createElement(ac,null,i)),e.createElement(t,Object.assign({id:d,hasError:!!o},s)),o&&e.createElement(rc,null,o)):e.createElement(t,Object.assign({hasError:!!o},s))},sc=t=>n=>(a((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),dc=f(rd).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${xd(A.text.body)} display:flex;align-items:center;border:1px solid ${A.colors.neutral.ink.lightest};border-radius:${A.radius.base};gap:${A.sizes.xs};padding:${A.sizes.sm};margin-top:${A.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${A.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${A.colors.secondary.red.light};border:1px solid ${A.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${A.colors.secondary.red.light};\n border: 1px solid ${A.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${A.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${A.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${A.colors.neutral.ink.light};}}.react-aria-DateInput{display:flex;align-items:center;cursor:text;caret-color:transparent;.react-aria-DateSegment{padding:0 1px;border-radius:${A.radius.base};&[data-invalid]{color:${A.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${A.colors.secondary.blue.dark};&[data-invalid]{background-color:${A.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${A.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,cc=lc((({id:t,className:n,style:a,shouldForceLeadingZeros:r=!0,hasError:i,minValue:o,maxvalue:l,startValue:s,endValue:d,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":p,"aria-labelledby":h,onChangeStartDate:g,onChangeEndDate:f})=>e.createElement(dc,{style:a,className:n,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=h?h:`${t}-label`,$hasError:i,isDisabled:c},e.createElement(dd,{shouldForceLeadingZeros:r,onChange:g,value:s,minValue:o,maxValue:l,"aria-describedby":p,"aria-labelledby":null!=h?h:`${t}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},e.createElement(pd,{slot:"start"},(t=>e.createElement(gd,{segment:t})))),e.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),e.createElement(dd,{shouldForceLeadingZeros:r,onChange:f,value:d,minValue:o,maxValue:l,"aria-describedby":p,"aria-labelledby":null!=h?h:`${t}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},e.createElement(pd,{slot:"end"},(t=>e.createElement(gd,{segment:t})))))));function uc(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function mc(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${mc(e.min,"max-content")}, ${mc(e.max)})`;default:return t||"1fr"}}function pc({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:a,visible:r,stripingMode:i}){const o=e.map(((e,t)=>`\n th:nth-child(${t+1}),\n td:nth-child(${t+1}) {\n position: sticky;\n left: ${n?function(e,t){return e.slice(0,t-1).reduce(((e,t)=>e+t),0)}(n,t+1):0}px;\n z-index: 2;\n }\n `)),l=t.map(((e,t)=>`\n th:nth-last-child(${t+1}),\n td:nth-last-child(${t+1}) {\n position: sticky;\n right: ${n?function(e,t){return e.slice(t).reduce(((e,t)=>e+t),0)}(n,n.length-t):0}px;\n }\n `)),s="start"!==a&&"none"!==a,d=`\n th:nth-child(${e.length})::after,\n td:nth-child(${e.length})::after {\n position: absolute;\n transform: translate(100%);\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${s?"inset 10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,c="end"!==a&&"none"!==a,u=`\n th:nth-last-child(${t.length})::after,\n td:nth-last-child(${t.length})::after {\n position: absolute;\n transform: translate(-100%);\n top: 0;\n left: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n box-shadow: ${c?"inset -10px 0 10px -8px rgb(0 0 0 / 25%)":"none"};\n }\n `,m=`\n tr:nth-child(odd) > td {\n background-color: ${A.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${A.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${A.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${A.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${r.map((e=>mc(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?o:""}\n ${t.length>0?l:""}\n\n ${d}\n ${u}\n\n ${"nested"===i?p:m}\n `}var hc;!function(e){e.ascending="ascending",e.descending="descending"}(hc||(hc={}));const gc=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"currentColor"})),fc=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",fill:"currentColor"})),vc=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),yc=({sortState:t,columnId:n,size:a})=>t&&t.columnId===n?t.direction===hc.ascending?e.createElement(fc,{color:A.colors.neutral.ink.dark,size:a}):e.createElement(vc,{color:A.colors.neutral.ink.dark,size:a}):e.createElement(gc,{size:a});function bc(e,n){const[r,i]=t([]),o=()=>{if(!e.current)return;const t=e.current.querySelectorAll("tbody tr:first-child td"),n=Array.from(t).map((e=>e.getBoundingClientRect().width));i(n)};return a((()=>{o()}),[e.current]),a((()=>{if(!n.current)return;const e=k(o,50),t=new w(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),r}function wc(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),a=t.filter((e=>"right"===e.pinned)),r=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...r,...a],pinnedLeft:n,pinnedRight:a}}function xc(e){a((()=>{if(!e.current)return;let t=!1;const n=e.current,a={left:0,x:0},r=e=>{if(!n)return;const r=e.clientX-a.x;n.scrollLeft=a.left-r,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},i=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},o=e=>{n&&(a.left=n.scrollLeft,a.x=e.clientX,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i))};return n.addEventListener("mousedown",o),()=>null==n?void 0:n.removeEventListener("mousedown",o)}),[e.current])}function $c(){const[e,n]=t([]);return{nestedTableProps:{expandedRowIds:e,setExpanded:(t,a)=>{if(a)if(t){if(e.includes(a))return;const t=[...e,a];n(t)}else{const t=e.findIndex((e=>e===a));if(t<0)return;const r=[...e];r.splice(t,1),n(r)}}}}}function Dc(e){const[n,r]=t("start"),i=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:a}=e.current;r(a<t?"none":0!==n?n+t>=a?"end":"middle":"start")};return a((()=>{if(e.current)return e.current.addEventListener("scroll",i),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("scroll",i)}}),[e.current]),a((()=>{if(!e.current)return;const t=k(i,50),n=new w(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Ec="56px",kc=f.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Ec};display:flex;align-items:center;justify-content:${({align:e="left"})=>uc(e)};background-color:white;padding-left:${({spacing:e=3})=>A.sizes[e]};padding-right:${({spacing:e=3})=>A.sizes[e]};border-bottom:1px solid ${A.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Cc(t){var{selected:n,indeterminate:a,onChange:r,selectionMode:i}=t,o=ne(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===i?e.createElement(kc,Object.assign({},o)):e.createElement(kc,Object.assign({},o),e.createElement(Kd,{checked:n,indeterminate:a,onChange:r}))}const Sc=f.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>uc(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>A.sizes[e]};padding-right:${({spacing:e=3})=>A.sizes[e]};color:${A.text.bodySmall.color};font-family:${A.text.bodySmall.fontFamily};font-size:${A.text.bodySmall.fontSize};font-style:${A.text.bodySmall.fontStyle};font-weight:${A.text.bodySmall.fontWeight};line-height:${A.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${A.colors.secondary.blue.base};background-color:${A.colors.neutral.grey.lightest};}`;function Ic(t){var{selected:n,rowId:a,onChange:r,selectionMode:i,disabled:o}=t,l=ne(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===i?e.createElement(Sc,Object.assign({},l),e.createElement(qd,{value:a,checked:n,disabled:o,onChange:r})):e.createElement(Sc,Object.assign({},l),e.createElement(Kd,{value:a,checked:n,disabled:o,onChange:r}))}const Nc=[[],()=>{}];function Pc({selectionMode:t="multiple",selectionState:n,enabledRowIds:a}){const r=!!n,[i,o]=n||Nc,l=()=>{i.length!==a.length?o(a):o([])};return{selectionEnabled:r,selectedRowIds:i,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,r)=>e.createElement(Cc,Object.assign({},r,{selected:i.length===a.length,indeterminate:i.length>0&&i.length<a.length,onChange:l,selectionMode:t})),renderCell:(n,a,r,i)=>e.createElement(Ic,Object.assign({},a,{rowId:n.id,selected:i.selected,onChange:r.setSelected,selectionMode:t,disabled:i.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)o([n]);else if(e){if(i.includes(n))return;const e=[...i,n];o(e)}else{const e=i.findIndex((e=>e===n));if(e<0)return;const t=[...i];t.splice(e,1),o(t)}}}}const Rc=f.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${A.colors.neutral.ink.lightest};`,Lc=f.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${A.text.headingTable.color};font-family:${A.text.headingTable.fontFamily};font-size:${A.text.headingTable.fontSize};font-style:${A.text.headingTable.fontStyle};font-weight:${A.text.headingTable.fontWeight};line-height:${A.text.headingTable.lineHeight};`,Tc=f(Lc).attrs((()=>({as:"button",type:"button"}))).withConfig({displayName:"vui--ClickableHeaderContent",componentId:"vui--xbox8h"})`appearance:none;padding:0;border:0;border-radius:4px;background-color:transparent;&:not(:disabled):hover{cursor:pointer;}&:hover ${Rc}{background-color:${A.colors.neutral.grey.light};color:${A.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${A.colors.secondary.blue.light};}`;function zc({column:t,sortState:n,onChangeSort:a}){if(t.sortable&&!n)throw new Error(`Column '${t.id}' is configured to be sortable but the 'sortState' prop is missing.`);if(t.hidden)return null;const r={key:t.id.toString(),id:`datatable-header-${t.id}`,role:"columnheader",align:t.align,spacing:t.spacing,className:t.sortable?"sortable":void 0};if(t.renderHeader)return t.renderHeader(t,r);const i=t.sortable?Tc:Lc,o=t.sortable?{onClick:()=>{if(!n)return void console.log("DataGrid::renderHeader::handleClickSort - sortState is not defined");const e=function({sortState:e,columnId:t}){const n=e.columnId===t,a=e.direction===hc.ascending;let r=hc.ascending;return n&&a&&(r=hc.descending),{columnId:t,direction:r}}({sortState:n,columnId:t.id});a?a(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(kc,Object.assign({},r),e.createElement(xt,{text:t.tooltip},e.createElement(i,Object.assign({},o),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(Rc,null,e.createElement(yc,{sortState:n,columnId:t.id,size:5})))))}const Fc=A.colors.neutral.grey.base,Mc=A.colors.neutral.grey.dark,Vc=f.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${A.radius.base};background:${Fc};background-image:linear-gradient(\n to right,\n ${Fc} 0%,\n ${Mc} 20%,\n ${Fc} 40%,\n ${Fc} 100%\n );background-repeat:no-repeat;background-size:800px 104px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear;@keyframes placeholderShimmer{0%{background-position:-468px 0;}100%{background-position:468px 0;}}`;const jc=f.div.withConfig({displayName:"vui--Container",componentId:"vui--1feqxrw"})`display:grid;grid-template-columns:auto 1fr;align-items:center;position:absolute;top:0;left:0;right:0;z-index:50;height:${Ec};background-color:white;`,Oc=f.div.withConfig({displayName:"vui--Content",componentId:"vui--dbz7t3"})`width:100%;height:100%;display:flex;align-items:center;padding:0 0.5rem;border-bottom:1px solid ${A.colors.neutral.grey.base};& > *{flex:1;}`;function Bc({selectionColumn:n,intersectionTargetRef:r,containerRef:i,children:o}){var l;const[s,d]=t(!1);a((()=>{if(!r.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(r.current),()=>e.disconnect()}),[r.current]);const c=null===(l=i.current)||void 0===l?void 0:l.getBoundingClientRect(),u={position:"fixed",top:0,left:null==c?void 0:c.left,width:null==c?void 0:c.width},m=s?u:{position:"absolute",top:0,left:0,right:0};return e.createElement(jc,{style:m},zc({column:n}),e.createElement(Oc,null,o))}const Ac=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"})),Hc=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M12 7C14.76 7 17 9.24 17 12C17 12.65 16.87 13.26 16.64 13.83L19.56 16.75C21.07 15.49 22.26 13.86 22.99 12C21.26 7.61 16.99 4.5 11.99 4.5C10.59 4.5 9.25 4.75 8.01 5.2L10.17 7.36C10.74 7.13 11.35 7 12 7ZM2 4.27L4.28 6.55L4.74 7.01C3.08 8.3 1.78 10.02 1 12C2.73 16.39 7 19.5 12 19.5C13.55 19.5 15.03 19.2 16.38 18.66L16.8 19.08L19.73 22L21 20.73L3.27 3L2 4.27ZM7.53 9.8L9.08 11.35C9.03 11.56 9 11.78 9 12C9 13.66 10.34 15 12 15C12.22 15 12.44 14.97 12.65 14.92L14.2 16.47C13.53 16.8 12.79 17 12 17C9.24 17 7 14.76 7 12C7 11.21 7.2 10.47 7.53 9.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"})),Wc=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"}));const Zc=f.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${A.sizes.lg};padding-bottom:${A.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${A.sizes.md};`,Kc=f.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${A.sizes.md};background-color:${A.colors.neutral.grey.light};border-radius:${A.radius.full};`,Uc=f.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,qc=f.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${A.colors.brand.blue.lightest};\n }\n `};${({accentColor:e})=>e&&`\n &> *:first-child {\n position: relative;\n }\n\n & > *:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e};\n }\n `}`,Gc=f.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,Yc=f.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${A.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Jc=f.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,_c={full:`border-width: 1px; border-radius: ${A.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Xc=f.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${A.colors.neutral.grey.dark};${({borderMode:e="full"})=>_c[e]} &,& *{box-sizing:border-box;}`;function Qc({children:n,intersectionTargetRef:r,containerRef:i,cellWidths:l,tableCss:s}){const d=o(null),[c,u]=t(!1),[m,p]=t({top:0,left:0,width:0,height:0}),h=()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.getBoundingClientRect(),n={left:(null==t?void 0:t.left)||0,width:(null==t?void 0:t.width)||0,top:0,height:48};p(n)},g=()=>{var e;if(!i.current)return;const t=i.current.scrollLeft;null===(e=d.current)||void 0===e||e.scrollTo(t,0)};if(a((()=>{if(!r.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(r.current),()=>e.disconnect()}),[r.current]),a((()=>{c&&i.current&&h()}),[i.current,c]),a((()=>{if(!c)return;if(!i.current)return;const e=k(h,33),t=new w(e);return t.observe(i.current),()=>t.disconnect()}),[i.current,c]),a((()=>{g()}),[c]),a((()=>{var e;return null===(e=i.current)||void 0===e||e.addEventListener("scroll",g),()=>{var e;null===(e=i.current)||void 0===e||e.removeEventListener("scroll",g)}}),[i.current]),!c)return null;const f=Object.assign(Object.assign({},m),{height:Ec,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${A.colors.neutral.grey.base}`}),v=s+l.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:f,ref:d},e.createElement(Yc,{css:v},e.createElement("thead",null,n)))}const eu=(e,{selectedRowIds:t,expandedRowIds:n,disabledRowIds:a})=>({selected:(null==t?void 0:t.includes(e))||!1,expanded:(null==n?void 0:n.includes(e))||!1,disabled:(null==a?void 0:a.includes(e))||!1}),tu=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12Z",fill:"currentColor"}),e.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"}),e.createElement("path",{d:"M10 16H11V11H10V10H13V16H14V17H10V16Z",fill:"currentColor"})),nu={icon:e.createElement(tu,{width:48,height:48}),heading:"No results"},au=()=>{},ru=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:r=nu,expandedRowIds:i,loading:l,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:h,sortState:g,stripingMode:f,enableStickyHeader:v})=>{const y=o(null),b=o(null),w=o(null);xc(y);const x=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:$,selectedRowIds:D,selectionColumn:E,setSelected:k}=Pc({selectionMode:m,selectionState:p,enabledRowIds:x}),C={setSelected:k||au,setExpanded:h||au},S=[E,...a],I=$?S:a,N=bc(b,y),{visible:P,pinnedLeft:R,pinnedRight:L}=wc(I),{scrollPosition:T}=Dc(y),z=pc({pinnedLeft:R,pinnedRight:L,cellWidths:N,scrollPosition:T,visible:P,stripingMode:f});if(l){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(Xc,{borderMode:n},e.createElement(Gc,{ref:y},e.createElement(Yc,{css:z,ref:b,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(qc,{role:"row"},P.map((e=>zc({column:e,sortState:g,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(qc,{key:t.id},P.map((n=>function(t,n){if(!0===n.hidden)return null;const a={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return e.createElement(Sc,Object.assign({},a),e.createElement(Vc,null))}(t,n))))))))))}if(0===c.length)return e.createElement(Xc,{borderMode:n},e.createElement(Gc,{ref:y},e.createElement(Yc,{css:z,ref:b,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(qc,{role:"row"},P.map((e=>zc({column:e,sortState:g,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(Zc,{columnCount:P.length},e.createElement(Kc,null,r.icon),e.createElement(Sd,{spacing:"sm",alignX:"center"},e.createElement(K,{variant:"headingMedium"},r.heading),r.subheading&&e.createElement(K,{variant:"subheadingMedium"},r.subheading)))))));const F=t=>{const{e2eClassName:n="",accentColor:a}=t,r=eu(t.id,{selectedRowIds:D,expandedRowIds:i,disabledRowIds:u});return e.createElement(qc,Object.assign({role:"row",key:t.id,accentColor:a,className:n},r),P.map((e=>function(e,t,n,a){if(t.hidden)return null;const r={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,r,n,a)}(t,e,C,r))))},M=(t,n)=>{var a,r;const o=null===(r=null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.e2eClassNames)||void 0===r?void 0:r.row,l=eu(n,{selectedRowIds:D,expandedRowIds:i,disabledRowIds:u});return e.createElement(qc,{role:"row",key:t.id,className:o},P.map((n=>function(t,n,a){if(n.hidden)return null;const r={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,r,a):e.createElement(Sc,Object.assign({},r))}(t,n,l))))},V=t=>{var n;const a=null==i?void 0:i.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},F(t),a&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>M(e,t.id)))))},j=e.createElement(qc,{role:"row"},P.map((e=>zc({column:e,sortState:g,onChangeSort:d})))),O=a.some((e=>!!e.renderFooter)),B=D.length>0&&!!t;return e.createElement(Xc,{borderMode:n},B&&e.createElement(Bc,{selectionColumn:E,intersectionTargetRef:w,containerRef:y},t),e.createElement(Gc,{ref:y},v&&e.createElement(Qc,{tableCss:z,intersectionTargetRef:w,containerRef:y,cellWidths:N},j),e.createElement("div",{ref:w,style:{height:0}}),e.createElement(Yc,{css:z,ref:b,role:"table"},e.createElement("thead",{role:"rowgroup"},j),(()=>{const t=!!i;return t&&"nested"===f?c.map(V):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[F(e),...(null==i?void 0:i.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>M(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(F))})(),O&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(qc,{role:"row"},P.map((t=>function({column:t}){if(t.hidden)return null;const n={key:t.id,role:"cell",align:t.align,spacing:t.spacing};return t.renderFooter?t.renderFooter(t,n):e.createElement(Sc,Object.assign({},n))}({column:t}))))))))};ru.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},ru.Cell=Sc,ru.ColumnMenu=function({columns:n,columnGroups:a,setColumns:r}){const[i,o]=t(null),[l,s]=t(!1),d=n.map((e=>[e.id,e])),c=Object.fromEntries(d),u=a.map((e=>e.map((e=>c[e])))),m=(e,t)=>{const a=u[e].map((e=>e.id)),i=[...n];a.forEach((e=>{const n=i.findIndex((t=>t.id===e));n<0||(i[n]=Object.assign(Object.assign({},i[n]),{hidden:t}))})),r(i)};return e.createElement(e.Fragment,null,e.createElement(Re,{ref:o,dropdown:!0,onClick:()=>s(!0)},"Columns"),l&&e.createElement(he,{anchorElement:i,onShouldClose:()=>s(!1)},e.createElement(Ue,{style:{width:600}},e.createElement(Sd,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(Sd,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Re,{variant:"flat",icon:e.createElement(Wc,null)}),e.createElement(Sd,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(Sd,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Re,{variant:"flat",icon:e.createElement(Hc,null),onClick:()=>m(n,!1),style:{color:A.colors.neutral.ink.lightest}}):e.createElement(Re,{variant:"flat",icon:e.createElement(Ac,null),onClick:()=>m(n,!0)})))))))))},ru.SelectionCell=Ic,ru.SelectionHeader=Cc,ru.Header=kc,ru.Truncate=Jc,ru.NoWrap=Uc;const iu=f.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${A.sizes.base};}`,ou=f.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${A.sizes.xs};}`,lu=f.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${A.sizes.base};}`,su=f.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${A.sizes.xs};}`,du=f.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${A.text.bodyBold.fontFamily};font-size:${A.text.bodyBold.fontSize};font-weight:${A.text.bodyBold.fontWeight};line-height:${A.text.bodyBold.lineHeight};color:${A.text.bodyBold.color};`,cu=f.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${A.text.body.fontFamily};font-size:${A.text.body.fontSize};font-weight:${A.text.body.fontWeight};line-height:${A.text.body.lineHeight};color:${A.text.body.color};`,uu=({items:t,horizontal:n})=>{const a=t=>Array.isArray(t)?t.map((t=>e.createElement(cu,{key:t},t))):e.createElement(cu,null,t);return e.createElement(iu,null,t.map((t=>n?e.createElement(lu,{key:t.term},e.createElement(du,null,t.term),e.createElement(su,null,a(t.description))):e.createElement(ou,{key:t.term},e.createElement(du,null,t.term),a(t.description)))))},{sizes:mu,colors:pu}=A,hu=f.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${mu.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${mu.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,gu=f.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${mu.md};overflow-x:hidden;background-color:${pu.neutral.grey.lightest};`,fu=({renderHeader:n,children:a})=>{const[r,i]=t(!0);return e.createElement("main",null,n((()=>i(!r)),r),e.createElement(gu,null,e.createElement(hu,{showSidebar:r},a)))},vu=f.div.withConfig({displayName:"vui--InputGroup",componentId:"vui--1w0e9jz"})`display:flex;& > *{margin-left:0;margin-right:0;box-shadow:none;}& > *:not(:last-child){border-right-width:0 !important;}& > *:hover{}& > *:focus,& > *:active{z-index:5;border-right-width:1px !important;}& > *:focus + *,& > *:active + *{border-left-width:0 !important;}& > *:not(:first-child):not(:last-child){border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:first-child{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}& > *:last-child{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}`;var yu;!function(e){e.base="base",e.sm="sm"}(yu||(yu={}));const bu=({hasError:e,inputSize:t})=>v`&{--outline-size:${"sm"===t?"2px":"4px"};}&:focus{border-color:#0079d1;box-shadow:0 0 0 var(--outline-size)#80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 var(--outline-size)#f7bcbc;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}${e&&"\n &,\n &:focus {\n border-color: #EB5757;\n }\n\n &:focus {\n box-shadow: 0 0 0 var(--outline-size) #F7BCBC;\n }\n "}`,wu=f.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${A.fontFamily};box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${({inputSize:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} ${bu} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,xu=f.textarea.withConfig({displayName:"vui--Textarea",componentId:"vui--1k04ik"})`box-sizing:border-box;width:100%;padding:8px;border-radius:4px;border:1px solid #959fa8;color:#1b2126;${bu}`,$u=/^-?[0-9]*\.?[0-9]+$/,Du=lc(i(((t,n)=>{var{id:a,className:r,disabled:i=!1,hasError:o,max:l,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:h,rows:g="3",size:f=yu.base,step:v,type:y="text",value:b,spellCheck:w=!1}=t,x=ne(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const $=s((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==y)return void m(t);new RegExp($u).test(t)&&m(t)}),[m,y]),D=null!=a?a:ae("textfield");return"text"===y&&c?e.createElement(xu,Object.assign({className:r,disabled:i,hasError:o,id:D,name:u,onChange:$,placeholder:h,rows:g,value:b,spellCheck:w,ref:n},x)):e.createElement(wu,Object.assign({className:r,disabled:i,hasError:o,id:D,inputSize:f,max:l,min:d,name:u,"aria-label":u,onChange:$,placeholder:h,step:v,type:y,value:b,spellCheck:w,ref:n},x))})));Du.displayName="TextField";const Eu=f(I).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,ku=f(I).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Cu=f(Du).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${A.colors.neutral.ink.lightest};}`,Su=f(Re).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${A.colors.neutral.ink.lightest};`;f(K).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,f.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${A.text.error.fontFamily};font-size:${A.text.error.fontSize};font-weight:${A.text.error.fontWeight};line-height:${A.text.error.lineHeight};color:${A.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${A.sizes[2]} * -1);width:2px;background-color:${A.colors.secondary.red.base};}`,f.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${A.fontFamily};font-size:${A.sizes[3]};line-height:${A.sizes[4]};color:${A.colors.neutral.ink.light};`;const Iu=(e,t)=>{t.includes(e.key)&&e.preventDefault()},Nu=["-","+","E","e"],Pu=e=>Iu(e,Nu),Ru=lc((t=>{var{size:n=yu.base,handleChangeHeight:a,handleChangeWidth:r,handleChangeLength:i,className:o,height:l,width:s,length:d,unit:c}=t,u=ne(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(Eu,{className:o},e.createElement(ku,null,e.createElement(Cu,Object.assign({onChange:i,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Pu},u)),e.createElement(Fe,{height:A.sizes.base,width:A.sizes.base}),e.createElement(Cu,Object.assign({onChange:r,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Pu},u)),e.createElement(Fe,{height:A.sizes.base,width:A.sizes.base}),e.createElement(vu,null,e.createElement(Cu,Object.assign({onChange:a,size:n,name:"height",type:"number",placeholder:"H",value:l,min:"0",step:"any",onKeyDown:Pu},u)),e.createElement(Su,{size:n},c))))}));Ru.displayName="DimensionsInput";const Lu=(e,t)=>{const n=o(null),r=s((e=>{"Escape"===e.key&&(null==t||t())}),[t]),i=s((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return a((()=>{if(e)return document.addEventListener("click",i),document.addEventListener("keyup",r),()=>{document.removeEventListener("click",i),document.removeEventListener("keyup",r)}}),[i,r,e]),n},Tu=(e,n)=>{const[r,i]=t(e);return a((()=>{const t=setTimeout((()=>i(e)),n);return()=>clearTimeout(t)}),[e,n]),r};function zu(){const[e,n]=t(!1),a=s((()=>n(!e)),[e,n]),r=s((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:a,setShouldShowDropdown:n,closeDropdown:r}}const Fu=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function Mu({children:n}){const[r,i]=t(!0);return a((()=>{function e(){i(!1)}function t(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(i(!1),a())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function a(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function r(e){e.metaKey||e.altKey||e.ctrlKey||i(!0)}function o(){"hidden"===document.visibilityState&&(i(!0),n())}return document.addEventListener("keydown",r,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",o,!0),n(),()=>{document.removeEventListener("keydown",r,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",o,!0),a()}}),[i]),e.createElement(Fu.Provider,{value:{hadKeyboardEvent:r,isInitialized:!0}},n)}function Vu(){const[t,n]=e.useState(!1),{hadKeyboardEvent:a,isInitialized:r}=e.useContext(Fu),i=e.useCallback((()=>{t||n(!0)}),[t]),o=e.useCallback((()=>{t&&n(!1)}),[t]);let l;return l=r?a&&t:t,e.useMemo((()=>({focusVisible:l,onFocus:i,onBlur:o})),[l,o,i])}const ju=(e=!1)=>{const[n,a]=t(e);return[n,s((()=>a(!0)),[a]),s((()=>a(!1)),[a])]},Ou=e=>{const[n,r]=t(!1),[i,o]=t(!1);a((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;r(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!i,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:a,clientHeight:r}=t.target;o(a-n-r<=0)}}},Bu=(e,n)=>{const{defaultActiveIndex:a=0}=n||{},[r]=t(e),[i,o]=t(r[a]);return[i,e=>{const t=r.find((t=>t.key===e));t&&o(t)}]},Au=f(I).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${R.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${j.base};height:${j.base};}`,Hu=f(K).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,Wu=f(Hu).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,Zu=f(ze).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,Ku=f(Fe).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,Uu=f(I).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,qu=f(I).withConfig({displayName:"vui--Header",componentId:"vui--n9war0"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 18px;border-bottom:1px solid ${R.neutral.grey.base};svg{color:${({color:e})=>e};width:${j[5]};height:${j[5]};margin-right:10px;}`,Gu=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),Yu=({className:t,e2eClassName:n,label:a,text:r,iconSlot:i,fill:o=R.secondary.blue.base,content:l,footer:d,header:c,onClickAway:u,onClick:m,shouldCloseOnClickAway:p=!0})=>{const h=Gu(t),g=Gu(n),{shouldShowDropdown:f,toggleShouldShowDropdown:v,closeDropdown:y}=zu(),b=s((e=>{v(),u&&f&&u(e)}),[v,u,f]),w=s((e=>{u&&u(e,y),p&&y()}),[y,u,p]);return!l?e.createElement(Au,{className:le([null==h?void 0:h.container,null==g?void 0:g.container]),onClick:m},a&&e.createElement(Wu,{variant:"subheadingSmallBold"},`${a}:`),e.createElement(K,null,r),e.createElement(Ku,{className:le([null==h?void 0:h.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:R.neutral.ink.base})):e.createElement(dt,{className:h.filterTagDropdown,shouldShowDropdown:f,onClickAway:w,cta:e.createElement(Au,{className:h.container,onClick:b},a&&e.createElement(Wu,{variant:"subheadingSmallBold"},`${a}:`),e.createElement(K,null,r),e.createElement(Zu,{color:R.neutral.ink.base,name:"downArrow",$shouldShow:f}))},e.createElement(Uu,null,e.createElement(qu,{color:o},c||e.createElement(e.Fragment,null,i,e.createElement(K,{variant:"bodyBold"},a))),l,d))},Ju=f(I).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?j[e]:0};`,_u=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3333 0C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0H21.3333ZM10.6667 18.0133L7.33333 14L2.66667 20H21.3333L15.3333 12L10.6667 18.0133Z",fill:"#CDD1D5"})),Xu=f.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Qu=f.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,em=f.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,tm=f.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,nm=e=>({container:e?`${e}-image-container`:void 0,image:e?`${e}-image`:void 0,placeholder:e?`${e}-image-placeholder`:void 0,previewImageContainer:e?`${e}-image-preview-container`:void 0}),am=({src:n,alt:a="",className:r,e2eClassName:i,width:o,height:l,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:h,placeholderHeight:g,disablePlaceholder:f=!1})=>{const v=nm(r),y=nm(i),[w,x]=t(!1),[D,E]=t({isLoaded:!1,isError:!1}),[k,C]=e.useState(null),[S,I]=e.useState(null),{styles:N,attributes:P}=b(k,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),R=s((()=>m?x(!0):{}),[m]),L=s((()=>m?x(!1):{}),[m]),T=!D.isLoaded||D.isError;return e.createElement(Xu,{className:le([null==v?void 0:v.container,null==y?void 0:y.container,r])},e.createElement(Qu,{src:n,alt:a,className:le([null==v?void 0:v.image,null==y?void 0:y.image]),width:o,height:l,onLoad:()=>E({isLoaded:!0,isError:!1}),onError:()=>E({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:R,onMouseLeave:L,style:T?{display:"none"}:{},ref:C}),!f&&T&&(p||e.createElement(_u,{className:le([null==v?void 0:v.placeholder,null==y?void 0:y.placeholder]),width:h||o,height:g||l})),w&&$(e.createElement(em,Object.assign({ref:I,style:N.popper},P.popper,{className:le([null==v?void 0:v.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(tm,{src:n,alt:"",width:d,height:c})),document.body))},rm={width:64,height:64},im={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 5.7H17.5V4H15.8333V5.7H9.16667V4H7.5V5.7H6.66667C5.74167 5.7 5.00833 6.465 5.00833 7.4L5 19.3C5 20.235 5.74167 21 6.66667 21H18.3333C19.25 21 20 20.235 20 19.3V7.4C20 6.465 19.25 5.7 18.3333 5.7ZM10.0002 11.65H8.3335V13.35H10.0002V11.65ZM13.3332 11.65H11.6665V13.35H13.3332V11.65ZM15 11.65H16.6667V13.35H15V11.65ZM6.6665 19.3H18.3332V9.94998H6.6665V19.3Z",fill:"currentColor"}))),Object.assign({},rm)),title:"No data found"},om={icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12.0001 20.1818C16.5187 20.1818 20.1819 16.5187 20.1819 12C20.1819 7.4813 16.5187 3.81818 12.0001 3.81818C7.48136 3.81818 3.81824 7.4813 3.81824 12C3.81824 16.5187 7.48136 20.1818 12.0001 20.1818ZM16.3536 8.80575L13.1593 12L16.3536 15.1943L15.1943 16.3536L12 13.1593L8.80575 16.3536L7.64648 15.1943L10.8408 12L7.64648 8.80575L8.80575 7.64648L12 10.8408L15.1943 7.64648L16.3536 8.80575ZM8.80571 16L8.80575 16L12 12.8058L12 12.8057L8.80571 16ZM15.1943 16L15.1943 16L16 15.1943L16 15.1943L15.1943 16ZM16 8.80575L12.8058 12L12.8057 12L16 8.80571L16 8.80575Z",fill:"currentColor"}))),Object.assign({},rm)),title:"An error occurred when creating the table",subTitle:"Please, try reloading the page once. If this doesn't solve the problem, contact support"};var lm;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(lm||(lm={}));const{text:sm,sizes:dm}=A,{blue:cm}=A.colors.secondary,{grey:um}=A.colors.neutral,{scrollbar:mm}=A.colors.system,pm='\n position: absolute;\n top: 0;\n bottom: -1px;\n width: 30px;\n content: "";\n pointer-events: none;\n box-sizing: border-box;\n transition: box-shadow .3s;\n',hm=f.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,gm=f.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--1g4i0cu"})`width:100%;overflow-x:${e=>e.scrollDisabled?"hidden":"auto"};overflow-y:hidden;position:relative;border-top:1px solid ${um.dark};border-bottom:1px solid ${um.dark};${({showScrollbar:e})=>e?`\n scrollbar-width: auto;\n\n &::-webkit-scrollbar {\n margin-top: 10px;\n width: 6px;\n height: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: ${mm.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${mm.thumb};\n border-radius: 4px; \n }\n `:""} ${({scrollDisabled:e,lastStartFixedColumnsIndex:t,firstEndFixedColumnsIndex:n,scrollPosition:a})=>e?"":`\n td:nth-child(${t}):after,\n th:nth-child(${t}):after {\n right: 0;\n transform: translate(100%);\n ${pm};\n\n ${a===lm.middle||a===lm.end?"\n box-shadow: inset 10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n\n td:nth-last-child(${n}):after,\n th:nth-last-child(${n}):after {\n left: 0;\n transform: translate(-100%);\n ${pm};\n\n ${a===lm.start||a===lm.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,fm=f(gm).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${um.dark};border-radius:4px;`,vm=f.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,ym=f.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${um.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;f.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${um.lightest};padding:1.5rem 1rem;border-top:1px solid ${cm.base};}`;const bm=f.tr.withConfig({displayName:"vui--Row",componentId:"vui--10drh9k"})`&.hidden{visibility:collapse;}${({accentColor:e})=>e&&`\n & > td:first-child::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n background-color: ${e}; \n }\n `}`,wm=f.td.withConfig({displayName:"vui--Cell",componentId:"vui--tljl4p"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${sm.bodySmall.fontFamily};font-size:${sm.bodySmall.fontSize};font-weight:${sm.bodySmall.fontWeight};color:${sm.bodySmall.color};line-height:${dm.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,xm=f(wm).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${um.dark};font-family:${sm.bodySmallBold.fontFamily};font-size:${sm.bodySmallBold.fontSize};font-weight:${sm.bodySmallBold.fontWeight};color:${sm.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${um.light};}`,$m={left:"flex-start",center:"center",right:"flex-end"},Dm=f.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?$m[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Em=f.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${ym}:nth-child(even) td {\n background-color: ${um.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${xm}, & ${xm} span {\n white-space: nowrap;\n }\n `}`,km=f.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${wm}{border-top:1px solid ${um.dark};background-color:${um.lightest};padding-top:${dm.base};padding-bottom:${dm.base};line-height:2rem;}`,Cm=f.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Sm=f(Em).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Im=f(I).withConfig({displayName:"vui--SpecificStateContainer",componentId:"vui--991hgo"})`display:flex;flex-direction:column;justify-content:center;align-items:center;height:${e=>e.height}px;background:white;`,Nm=f(I).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${A.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Pm=f(K).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Rm=f(K).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Lm=({height:t,icon:n,title:a,subTitle:r})=>e.createElement(Im,{height:t},e.createElement(Nm,null,n),e.createElement(Pm,{variant:"headingLarge"},a),r&&e.createElement(Rm,{variant:"subheadingMedium"},r)),Tm=f.button.withConfig({displayName:"vui--CellButton",componentId:"vui--1w0np52"})`appearance:none;border:0;background-color:transparent;font:inherit;display:inline-block;box-sizing:border-box;width:calc(100% + 1.5rem);margin:-0.75rem -0.75rem;padding:0.75rem 0.75rem;text-align:inherit;line-height:${A.sizes.base};border-radius:${A.radius.base};&:hover{cursor:pointer;background-color:${A.colors.secondary.blue.lightest};}`,zm=f(Tm).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${A.text.link.color};text-decoration:${A.text.link.textDecoration};`,Fm=f.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:Mm}=A.colors.neutral,Vm=f.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,jm=f.div.withConfig({displayName:"vui--SkeletonContentComponent",componentId:"vui--dbfg3y"})`display:inline-block;color:transparent;border-radius:4px;animation-duration:${({isLoading:e=!0})=>e?"1s":0};animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, ${Mm.base} 8%, ${Mm.dark} 15%, ${Mm.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,Om=({isLoading:t,style:n})=>e.createElement(Vm,{style:n},e.createElement(jm,{isLoading:t})),Bm=t=>{var{style:n}=t,a=ne(t,["style"]);return e.createElement(wm,Object.assign({},a),e.createElement(Om,{style:n}))};Bm.defaultProps={style:{}};const Am=({renderHeader:n,tableRef:r,wrapperRef:i,isFixedLayout:o,wrapperStyle:l})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[r,i]=t(!1),o=s((({top:e,bottom:t})=>{let a=r;a=e<=(n||0)&&t>0?!r||a:!r&&a,a!==r&&i(a)}),[r,n]);return a((()=>{const t=()=>{var t;e.current&&o(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[o,e]),{isSticky:r}})(r,parseInt("string"==typeof(null==l?void 0:l.top)?null==l?void 0:l.top:`${null==l?void 0:l.top}`,10)),p=((null===(d=i.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;C(i);const h=e=>{var t;const n=(null===(t=i.current)||void 0===t?void 0:t.scrollLeft)||0;e?e.scrollLeft=n:c&&(c.scrollLeft=n)};return h(),m?e.createElement(Cm,{ref:e=>{u(e),h(e)},style:Object.assign({width:p},l)},e.createElement(Sm,{style:{tableLayout:o?"fixed":"auto"}},n())):null},Hm=e=>{const t=[];return e.forEach((({index:e,style:n})=>t.push(`\n > td:${void 0!==n.left?"nth-child":"nth-last-child"}(${Math.abs(e)}) {\n position: sticky;\n ${void 0!==n.left?"left":"right"}: ${void 0!==n.left?n.left:n.right}px;\n z-index: ${n.zIndex};\n }\n `))),t.join("\n\n")},Wm=t=>{var{style:n,width:a,isLoading:r}=t,i=ne(t,["style","width","isLoading"]);return e.createElement(xm,Object.assign({},i,{style:{width:a}}),e.createElement(Om,{style:n,isLoading:r}))},Zm=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#959FA8"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#0079D1"})),Km=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L8 13L11 10H5Z",fill:"#0079D1"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6L8 3L5 6L11 6Z",fill:"#959FA8"})),Um=()=>e.createElement(gc,{width:A.sizes.base,height:A.sizes.base,color:"lightgrey"}),qm=()=>e.createElement(Zm,{width:A.sizes.base,height:A.sizes.base,color:"lightgrey"}),Gm=()=>e.createElement(Km,{width:A.sizes.base,height:A.sizes.base,color:"lightgrey"}),Ym=({borderless:n=!1,striped:i=!0,noWrap:l=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:h,renderLoadingRow:g,renderFooterRow:f,renderFooterLoadingRow:v,omitFooterSelectionCell:y=!1,selectedRowIds:b,disabledSelectionInputRowIds:w,selectionMode:x="multiple",onChangeSelectedRowIds:$,sortColumnId:D,sortDirection:E,onChangeSort:k,isError:C=!1,isLoading:S=!1,skeletonRowsNumber:I=5,isHeaderSticky:N=!0,stickyHeaderStyle:P,customSpecificState:R,bodyHeightInSpecificStates:L=375,startFixedColumnsNumber:T,endFixedColumnsNumber:z})=>{const F=n?gm:fm,M=!!u&&0===u.length,V=Boolean(T||z),j=!T&&!z,O=o(null),B=o(null),[A,H]=t(lm.none);a((()=>{var e;let t=null;const n=()=>{if(!B.current||j)return;const e=B.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),r=n+a;t===a?H(lm.none):0===n?H(lm.start):n>0&&r<t?H(lm.middle):r===t&&H(lm.end)};return B.current&&(t=B.current,n(),null===(e=B.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[O,j]);const W=s((e=>"string"==typeof e?(console.error("You can only use a numeric value in the 'width' property when you use fixed columns"),null):void 0===e?(console.error("You should provide numeric value in the 'width' attribute in all fixed columns when you use fixed columns"),null):e),[]),Z=s(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),K=s((()=>{if(!c||S)return null;const e=[],t=[];let n=0,a=0;if(T){b&&(e.push(Z(1,n,"left")),n+=58);for(let t=0;t<T;t+=1){const a=W(c[t].width);a&&(e.push(Z(b?t+2:t+1,n,"left")),n+=a)}}if(z)for(let e=0;e<z;e+=1){const n=W(c.slice(-e-1)[0].width);n&&(t.push(Z(e+1,a,"right")),a+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[S,W,z,Z,c,T,b]),U=r((()=>K()),[K]),q=s(((e,t)=>{if(!b||!$)return;if(e)return"single"===x?void $([t.id]):void $([...b,t.id]);const n=[...b],a=n.findIndex((e=>e===t.id));n.splice(a,1),$(n)}),[$,b,x]),G=s((()=>{if(!b||!$)return;if(b.length===u.length)return void $([]);const e=u.map((e=>e.id));$(e)}),[$,u,b]),Y=s((e=>{if(void 0===D||void 0===k)return;let t=D,n="ascending";"ascending"===E&&(n="descending"),e!==D&&(t=e,n="ascending"),k(t,n)}),[k,D,E]),J=s(((t,n)=>{let a="",r=()=>{},i=e.createElement(Um,null);const{tooltip:o,align:l,icon:s,title:d,sortable:c,id:u}=t;c&&(a="sortable",r=()=>Y(u),D===u&&(i="ascending"===E?e.createElement(qm,null):e.createElement(Gm,null)));const m=e.createElement(Dm,{align:l},s&&s,d&&e.createElement("span",null,d),c&&i);return e.createElement(xm,{key:u,id:`data-table-header-${u}`,className:a,onClick:r,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},o?e.createElement(xt,{text:o},e.createElement(hm,null,m)):m)}),[Y,D,E]),_=s(((t,n)=>e.createElement(Wm,{key:t.id,width:t.width||"auto",style:n,isLoading:S})),[S]),X=s((()=>{if(!c)return null;const t=K(),n=t?t[0].style:{};return e.createElement(vm,null,e.createElement(bm,null,b&&e.createElement(xm,{style:Object.assign({width:58},n)},"multiple"===x&&e.createElement(Kd,{checked:u.length>0&&(null==b?void 0:b.length)===u.length||!1,onChange:G,disabled:w&&w.length>0||S||M,ariaLabel:"Select all"})),c.map(((e,n)=>{const a=b?n+2:n+1,r=n-c.length,i=null==t?void 0:t.find((e=>e.index===a||e.index===r));return e.skeleton&&(S||C||M)?_(e,e.skeletonStyle||{}):J(e,(null==i?void 0:i.style)||{})}))))}),[K,G,c,M,C,S,_,J,u.length,b,x,w]),Q=s(((t,n)=>{const a={checked:t,onChange:e=>q(e,n),disabled:(null==w?void 0:w.includes(n.id))||!1};return"single"===x?e.createElement(qd,Object.assign({},a)):e.createElement(Kd,Object.assign({},a))}),[q,x,w]),ee=s((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===x?e.createElement(Bm,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(Bm,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[x]),te=s(((t,n)=>{var a,r;if(!p)return null;const i=p(t);if(!i)return null;const o=(null===(r=null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.e2eClassNames)||void 0===r?void 0:r.row)||"";return e.createElement(bm,{key:t.id,className:`${o} ${n?"hidden":""}`},b&&e.createElement(wm,null),i)}),[p,b]),ne=s((t=>{if(!c)return e.createElement(Bm,null);const n=c.map((n=>e.createElement(Bm,{key:`${t}-${n.id}`})));return b&&n.unshift(ee(t)),n}),[c,ee,b]),ae=()=>f?S&&!v||!S&&M?null:e.createElement(km,{fixedColumnsStyle:Hm(U||[])},e.createElement(bm,null,b&&!y&&e.createElement(wm,null),!S&&f(u),S&&v&&v())):null;let re=T;b&&re&&(re+=1);const ie=r((()=>u.map((t=>{var n,a,r;const{data:i}=t,o=!!b&&b.includes(t.id),l=!h||h.includes(t.id),s=null===(n=null==i?void 0:i.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(r=null===(a=null==i?void 0:i.e2eClassNames)||void 0===a?void 0:a.row)&&void 0!==r?r:"",c=o?`selected ${d}`:`${d}`;return e.createElement(ym,{key:t.id,className:s,fixedColumnsStyle:Hm(U||[])},e.createElement(bm,{key:t.id,className:c,accentColor:t.accentColor},b&&e.createElement(wm,null,Q(o,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!l))))}))),[u,h,U,te,m,Q,b]);if(S){const t=[];for(let n=0;n<I;n+=1)t.push(e.createElement(ym,{key:`loading-row-${n}`,fixedColumnsStyle:Hm(U||[])},e.createElement(bm,null,g?e.createElement(e.Fragment,null,b&&ee(),g()):ne(n))));return e.createElement(F,{ref:B,scrollDisabled:!0,scrollPosition:A,lastStartFixedColumnsIndex:re,firstEndFixedColumnsIndex:z},N&&c&&e.createElement(Am,{renderHeader:X,tableRef:O,wrapperRef:B,isFixedLayout:V,wrapperStyle:P}),e.createElement(Em,{ref:O,striped:i,noWrap:l,tableLoading:!0,isFixedLayout:V},X(),t,ae()))}if(M||C){let t=im;return R?t=R:C&&(t=om),e.createElement(F,{scrollDisabled:!0},e.createElement(Em,{ref:O,striped:i,noWrap:l,tableLoading:!1,isFixedLayout:V},X(),ae()),e.createElement(Lm,Object.assign({height:L},t)))}return e.createElement(F,{scrollDisabled:!1,ref:B,scrollPosition:A,lastStartFixedColumnsIndex:re,firstEndFixedColumnsIndex:z,showScrollbar:d},N&&c&&e.createElement(Am,{renderHeader:X,tableRef:O,wrapperRef:B,isFixedLayout:V,wrapperStyle:P}),e.createElement(Em,{ref:O,striped:i,noWrap:l,tableLoading:!1,isFixedLayout:V},X(),ie,ae()))};Ym.Cell=wm,Ym.ClickableCell=t=>{var{onClick:n,children:a}=t,r=ne(t,["onClick","children"]);return e.createElement(wm,Object.assign({},r),e.createElement(zm,{onClick:n},a))},Ym.EditableCell=t=>{var{onClick:n,children:a}=t,r=ne(t,["onClick","children"]);return e.createElement(wm,Object.assign({},r),e.createElement(Tm,{onClick:n},e.createElement(Fm,null,a)))},Ym.SkeletonCell=Bm,Ym.SkeletonContent=Om;const Jm=f.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,_m="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Xm="Log in with Amazon",Qm=n=>{const[a,r]=t(_m);return e.createElement(Jm,Object.assign({onMouseDown:()=>{r("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{r(_m)},"aria-label":Xm},n),e.createElement("img",{src:a,alt:Xm}))},ep=y`body{overflow:hidden;scrollbar-gutter:stable;}`,tp=f.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${A.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${Ue.Footer} {\n box-shadow: 0px 10px 15px 0px ${A.colors.neutral.ink.dark};\n }\n `}`,np=e=>!!e.footerSlot,ap={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},rp={[L.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[L.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[L.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[L.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},ip={xs:L.mobile,sm:L.mobile,base:L.tablet,lg:L.lgTablet},{breakpoints:op}=A,lp=f(h.dialog).attrs({initial:{opacity:0,y:-50,bounce:0},exit:{opacity:0,y:-50,bounce:0},animate:{opacity:1,y:0,bounce:0},transition:{type:"tween",duration:.25}}).withConfig({displayName:"vui--StyledDialog",componentId:"vui--1ohvs0u"})`padding:0;border:none;border-radius:${A.sizes.sm};box-shadow:${A.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${Ue.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${ap[e]};`} ${tp}{padding-bottom:${A.sizes.md};}${Ue.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${op.mobile} + 1px))and (max-width: ${op.tablet}){max-width:${({variant:e})=>rp[op.tablet][e]};}@media (min-width: ${op.tablet})and (max-width: ${op.lgTablet}){max-width:${({variant:e})=>rp[op.lgTablet][e]};}@media (min-width: ${op.lgTablet})and (max-width: ${op.desktop}){max-width:${({variant:e})=>rp[op.desktop][e]};}@media (min-width: ${op.desktop}){max-width:${({variant:e})=>rp[op.lgDesktop][e]};}@media (max-width: ${({variant:e})=>ip[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Ue.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${de(A.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,sp=e.forwardRef(((t,n)=>{var a=ne(t,[]);return e.createElement(lp,Object.assign({ref:n},a))})),dp=n=>{const{shouldShow:r,showHeaderCloseButton:i=!0,fullBleed:l=!1,variant:s="base",onClose:d,children:c}=n,u=o(null),[m,p]=t(null);a((()=>{var e,t;r&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[r]);const{isOverflowing:h,onScroll:f}=Ou(m),v=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(g,null,r&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(ep,null),e.createElement(sp,{ref:u,onClose:v,variant:s,"aria-describedby":"modal_title"},e.createElement(Ue.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Me,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},i&&{onClickClose:v})),e.createElement(tp,{onScroll:f,ref:p,isScrollable:h,fullBleed:l},c),np(n)&&n.footerSlot,!np(n)&&(n.leftActions||n.rightActions)&&e.createElement(Ue.Footer,null,e.createElement(Sd,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(Sd,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,a=ne(t,["label"]);return e.createElement(Re,Object.assign({key:n,type:"button"},a),n)}))),n.rightActions&&e.createElement(Sd,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,a=ne(t,["label"]);return e.createElement(Re,Object.assign({key:n,type:"button"},a),n)})))))))))},{sizes:cp,text:up,shadows:mp}=A,{grey:pp}=A.colors.neutral,hp=f.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${cp.base} ${cp.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&mp[e]};`,gp=f.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${up.headingXL.fontFamily};font-size:${up.headingXL.fontSize};font-weight:${up.headingXL.fontWeight};margin:unset;line-height:1;`,fp=f.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${up.subheadingLarge.fontFamily};font-weight:${up.subheadingLarge.fontWeight};font-size:${up.subheadingLarge.fontSize};line-height:${up.subheadingLarge.lineHeight};`,vp=f.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${A.radius.base};border:${cp.line} solid ${pp.base};object-fit:cover;`,yp=f.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,bp=f(Re).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${A.text.link.fontFamily};font-size:${A.text.link.fontSize};font-weight:${A.text.link.fontWeight};line-height:${A.text.link.lineHeight};color:${A.text.link.color};&:hover{text-decoration:${A.text.link.textDecoration};}& > * + *{margin-left:${A.sizes.xs};}`,wp=f.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--1fmdpk3"})`width:100%;display:grid;grid-template-columns:1fr minmax(312px, auto);align-items:flex-start;grid-gap:${cp.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,xp=({title:t,subtitle:n,imageSrc:a,actions:r,quickActions:i,backAction:o,Accessory:l,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:u})=>{const m=r&&e.createElement(tt,{buttonVariant:i?"default":"primary",title:"Actions",sections:r}),p=null==i?void 0:i.map((t=>e.createElement(Re,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),h=o&&e.createElement(Re,{onClick:o.onClick,icon:e.createElement(Ed,null),variant:"link"},o.title),g=u&&e.createElement(Sd,{direction:"horizontal",alignX:"end"},e.createElement(bp,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(Mt,{width:j.md})));return e.createElement(hp,{shadow:s},e.createElement(Sd,null,h,e.createElement(wp,null,e.createElement(Sd,{direction:"horizontal",spacing:"md"},a&&e.createElement(vp,{src:a,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(Sd,{alignX:"stretch"},e.createElement(gp,null,t),l,n&&e.createElement(fp,null,n)))),e.createElement(yp,null,e.createElement(Sd,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Re,{icon:e.createElement(Ed,null),onClick:d}),c&&e.createElement(Re,{icon:e.createElement(Mt,null),onClick:c})),g))))},$p=f(Sd).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${A.sizes.lg};height:30px;background-color:${A.colors.neutral.grey.light};border:1px solid ${A.colors.neutral.grey.base};border-radius:${A.sizes.xs};`,Dp=f(Re).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${A.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Ep=f(Du).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,kp=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(K,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement($p,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(K,{variant:"bodySmall"},t))),Cp=({currentPage:e,totalPagesCount:n,handleChangePage:r})=>{const[i,o]=t(`${e}`);a((()=>{o(`${e}`)}),[e]);const l=e=>e>=1&&e<=n,s=()=>{if(i||o(`${e}`),i===`${e}`)return;const t=parseInt(i,10);l(t)&&r(t)};return{pageInputValue:i,handleIncrement:()=>{l(e+1)&&r(e+1)},handleDecrement:()=>{l(e-1)&&r(e-1)},handleInputChange:e=>{e||o(e);const t=parseInt(e,10);var n;l(n=t)&&o(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Sp=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M11.6434 11.06L8.59004 8L11.6434 4.94L10.7034 4L6.70337 8L10.7034 12L11.6434 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.37004 12L4.37004 4L5.70337 4L5.70337 12L4.37004 12Z",fill:"currentColor"})),Ip=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33661 11.06L7.38994 8L4.33661 4.94L5.27661 4L9.27661 8L5.27661 12L4.33661 11.06Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.67 4L11.67 12L10.3367 12L10.3367 4L11.67 4Z",fill:"currentColor"})),Np=({testId:t,e2eClassName:n,currentPage:a,totalPagesCount:r,handleChangePage:i})=>{const{pageInputValue:o,handleIncrement:l,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=Cp({currentPage:a,totalPagesCount:r,handleChangePage:i});return e.createElement(Sd,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Dp,{onClick:()=>{1!==a&&i(1)},icon:e.createElement(Sp,null),size:"sm","aria-label":"go to first page"}),e.createElement(Dp,{onClick:s,icon:e.createElement(Ed,null),size:"sm","aria-label":"go to previous page","aria-disabled":a<=1}),e.createElement("form",{onSubmit:d},e.createElement(Ep,{"aria-live":"polite","aria-label":`page ${a} of ${r}`,size:yu.sm,type:"number",value:o,min:"1",max:`${r}`,onChange:c,onBlur:u})),e.createElement(kp,{count:r}),e.createElement(Dp,{onClick:l,icon:e.createElement(Mt,null),size:"sm","aria-label":"go to next page","aria-disabled":a>=r}),e.createElement(Dp,{onClick:()=>{a!==r&&i(r)},icon:e.createElement(Ip,null),size:"sm","aria-label":"go to last page","aria-disabled":a>=r}))},Pp=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Rp=f(I).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Lp=f(dt).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Tp=f.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${R.neutral.grey.base};box-sizing:border-box;border-radius:4px;justify-content:space-between;background:white;cursor:pointer;svg{padding-left:8px;padding-top:2px;}`,zp=f(I).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Fp=f(K).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${R.secondary.blue.base};background:${R.neutral.grey.lightest};}`,Mp=({item:t,handleRangeListChange:n})=>{const a=s((()=>n(t)),[n,t]);return e.createElement(zp,{onClick:a},e.createElement(Fp,{variant:"bodySmall"},t.label))},Vp=t=>{const{handleRangeListChange:n,paginationRange:a=Pp}=t;return e.createElement(e.Fragment,null,a.map((t=>e.createElement(m,{key:t.label},e.createElement(Mp,{item:t,handleRangeListChange:n})))))};class jp extends u{constructor(e){super(e),this.handleRangeListChange=e=>{const{onPaginationRangeChange:t}=this.props;this.setDropdownValue(e),t(e)},this.setDropdownValue=e=>this.setState({shouldShowDropdown:!1,dropdownValue:e}),this.toggleShouldShow=()=>{const{shouldShowDropdown:e}=this.state;this.setState({shouldShowDropdown:!e})};const{dropdownValue:t=Pp[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Pp,reversedDropdown:a}=this.props,{shouldShowDropdown:r,dropdownValue:i}=this.state;return e.createElement(Rp,{className:t},e.createElement(Lp,{cta:e.createElement(Tp,{onClick:this.toggleShouldShow},e.createElement(K,{variant:"bodySmall"},i.label),e.createElement(Ne,{color:A.colors.neutral.ink.base})),shouldShowDropdown:r,onClickAway:this.toggleShouldShow,reversed:a},e.createElement(Vp,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const Op=f.div.withConfig({displayName:"vui--Container",componentId:"vui--1y4bw67"})`box-sizing:border-box;display:inline-flex;flex-direction:column;height:${({size:e})=>"sm"===e?"32px":"40px"};border-radius:4px;${({size:e})=>"sm"===e?"svg { width: 14px !important; height: 14px !important; };\n\n > button { padding: 0 6px };":""};& > *:first-child{border-bottom-width:0;}& > *:active,& > *:focus{border-width:1px;}& > *:active + *,& > *:focus + *{border-top-width:0;}& > *:focus,& > *:active{z-index:5;}& > *:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;}& > *:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;}`,Bp=f.button.withConfig({displayName:"vui--StepButton",componentId:"vui--z17r9v"})`appearance:none;flex:1;border:0;display:flex;justify-content:center;align-items:center;padding:0 8px;background-color:white;border:1px solid #959fa8;&:hover{cursor:pointer;background-color:#fafafb;}&:active:not(:disabled){background-color:#fafafb;border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;}&:focus{box-shadow:0 0 0 4px #80bce8;outline:0;}&:disabled{background-color:#f2f3f5;border-color:#959fa8;color:#637381;cursor:not-allowed;}`,Ap=({onIncrement:t,onDecrement:n,disabled:a=!1,size:r})=>e.createElement(Op,{size:r},e.createElement(Bp,{type:"button",onClick:t,disabled:a},e.createElement(ee,{height:A.sizes.base,width:A.sizes.base,color:A.colors.neutral.ink.base})),e.createElement(Bp,{type:"button",onClick:n,disabled:a},e.createElement(ze,{height:A.sizes.base,width:A.sizes.base,color:A.colors.neutral.ink.base}))),Hp=f(Du).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${A.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${A.colors.neutral.ink.lightest};}`,Wp=f(I).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${A.colors.neutral.ink.lightest};border-radius:4px;display:flex;align-items:center;justify-content:center;width:${({size:e})=>"sm"===e?"30px":"36px"};background-color:${({disabled:e})=>e?A.colors.neutral.grey.light:"white"};flex-shrink:0;${({size:e})=>"sm"===e?"> span { font-size: 12px }":""};&:active{z-index:0;border-right-width:0;+ input{z-index:0;border-left-width:1px;}}`,Zp=f(K).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,Kp=f(vu).withConfig({displayName:"vui--PriceInputGroup",componentId:"vui--jpuoo1"})`display:inline-flex;border-radius:4px;min-width:125px;width:100%;${({hasError:e})=>e&&`\n box-shadow: 0 0 0 4px ${A.colors.secondary.red.light};\n\n > * {\n border-top-color: ${A.colors.secondary.red.base};\n border-bottom-color: ${A.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${A.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${A.colors.secondary.red.base};\n border-right-color: ${A.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${A.colors.secondary.red.base};\n border-bottom-color: ${A.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${A.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?A.colors.secondary.red.base:A.colors.secondary.blue.base};}}`;const Up=lc((t=>{var{className:n="",hasError:a,currency:r,disabled:i=!1,onChange:o,onPriceChange:l,priceValue:s,step:d="0.1",size:c=yu.base}=t,u=ne(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=l)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=l)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(Kp,{className:n,hasError:a},e.createElement(Wp,{disabled:i,size:c},e.createElement(Zp,{variant:"hintText"},r)),e.createElement(Hp,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>o(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void l("");const a=parseFloat(n.replace(",",".")).toFixed(2);l(a)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(o),"ArrowDown"===t&&p(o)},disabled:i,size:c},u)),e.createElement(Ap,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:i,size:c}))}));Up.displayName="PriceInput";const qp=f.span.withConfig({displayName:"vui--ScreenReaderOnlyElement",componentId:"vui--ejkp56"})`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;`,Gp=({children:t})=>e.createElement(qp,null,t),Yp=f(Du).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Jp=f.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,_p=f(I).withConfig({displayName:"vui--Container",componentId:"vui--18q9h8i"})`position:relative;display:flex;justify-content:flex-start;align-items:center;border-radius:0.25rem;${({iconPosition:e})=>{let t="padding-right: 2.5rem;",n="right: 0.5rem;";return"left"===e&&(t="padding-left: 2.5rem",n="left: 0.5rem;"),`\n & ${Yp} {\n ${t}\n }\n\n & ${Jp} {\n ${n}\n }\n `}}`,Xp=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 13.6918H15.1498L20 18.5517L18.5517 20L13.6918 15.1498V14.3819L13.4294 14.1098C12.3213 15.0623 10.8828 15.6358 9.3179 15.6358C5.82847 15.6358 3 12.8073 3 9.3179C3 5.82847 5.82847 3 9.3179 3C12.8073 3 15.6358 5.82847 15.6358 9.3179C15.6358 10.8828 15.0623 12.3213 14.1098 13.4294L14.3819 13.6918ZM4.94397 9.3179C4.94397 11.7381 6.89766 13.6918 9.3179 13.6918C11.7381 13.6918 13.6918 11.7381 13.6918 9.3179C13.6918 6.89766 11.7381 4.94397 9.3179 4.94397C6.89766 4.94397 4.94397 6.89766 4.94397 9.3179Z",fill:"currentColor"})),Qp=({type:t="text",disabled:n=!1,onClearClick:a,onChange:r,onBlur:i,onFocus:o,onKeyUp:l,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:h,isLoading:g=!1,fill:f,reversed:v=!1,autoComplete:y="on",size:b="base"})=>{const w=c&&c.length>0;return e.createElement(_p,{className:p,iconPosition:v?"left":"right"},e.createElement(Yp,{size:b,type:t,value:c,onChange:r,onBlur:i,onFocus:o,onKeyUp:l,onKeyDown:s,onKeyPress:d,placeholder:m,name:h,disabled:n,error:u,autoComplete:y}),e.createElement(Jp,null,g?e.createElement(ye,{height:24,color:f||A.colors.secondary.blue.base}):w&&a?e.createElement(Re,{variant:"unstyled",onClick:a,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(Fe,{color:f||A.colors.neutral.ink.dark})):e.createElement(Re,{variant:"unstyled",onClick:()=>r(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(Xp,{color:f||A.colors.neutral.ink.dark,height:j.md,width:j.md}))))},eh=A.colors.neutral.grey.lightest,th=A.colors.neutral.grey.dark,nh=A.colors.secondary.blue.dark,ah=f(I).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${eh};border-color:${th};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${nh};border-color:${nh};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${A.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,rh=({options:t,selected:n,className:a,onChange:r})=>e.createElement(ah,{className:a?`${a}-container`:void 0},t.map((t=>e.createElement(Re,{variant:t.value===n?"primary":"default",key:t.key,onClick:()=>r(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),ih=f.select.withConfig({displayName:"vui--SelectInput",componentId:"vui--1v4mu6a"})`box-sizing:border-box;appearance:none;display:flex;align-items:center;justify-content:center;padding:0 2.5rem 0 0.5rem;border-radius:4px;background-color:white;border:1px solid #959fa8;color:#1b2126;background-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M4 6L8 10L12 6H4Z' fill='currentColor' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5em top 50%,0 0;${({sizeVariant:e})=>{let t="40px",n="14px";return"sm"===e&&(t="32px",n="12px"),`\n height: ${t};\n font-size: ${n};\n `}} &:focus{border-color:#0079d1;box-shadow:0 0 0 4px #80bce8;outline:0;}&:invalid{border-color:#eb5757;box-shadow:0 0 0 4px #f7bcbc;outline:0;}&:disabled{box-shadow:none;background-color:#f2f3f5;border-color:#959fa8;color:#637381;}`,oh=lc(i(((t,n)=>{var{className:a,options:r,value:i,onChange:o,size:l,disabled:d,hasError:c}=t,u=ne(t,["className","options","value","onChange","size","disabled","hasError"]);const m=s((e=>{o&&o(e.currentTarget.value)}),[o]);return e.createElement(ih,Object.assign({className:a,sizeVariant:l,value:null!=i?i:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!r&&r.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled},t.label))))})));oh.displayName="Select";const lh=f.div.withConfig({displayName:"vui--ShortcutKeysContainer",componentId:"vui--t1odf6"})`--kbdTextColor:${e=>e.$inverse?"#ffffff":""};box-sizing:border-box;display:flex;align-items:center;gap:4px;color:var(--kbdTextColor, ${A.colors.neutral.ink.base});font-family:${A.text.bodySmall.fontFamily};font-style:${A.text.bodySmall.fontStyle};font-size:${A.text.bodySmall.fontSize};line-height:${A.text.bodySmall.lineHeight};font-weight:${A.text.bodySmall.fontWeight};text-decoration:${A.text.bodySmall.textDecoration};letter-spacing:${A.text.bodySmall.letterSpacing};`,sh=f.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${A.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${A.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${A.text.bodySmall.fontFamily};font-style:${A.text.bodySmall.fontStyle};`,dh={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},ch={command:"Command",windows:"Windows",shift:"Shift",ctrl:"Control",option:"Option",alt:"Alt",enter:"Enter",delete:"Delete",escape:"Escape",up:"Up",right:"Right",down:"Down",left:"Left",space:"Space"},uh=t=>{var{shortcut:n,label:a,inverse:r=!1,displayLabel:i=!1}=t,o=ne(t,["shortcut","label","inverse","displayLabel"]);const l=n.split("+").map((t=>dh[t]?e.createElement(sh,{key:`Key: ${t}`,"aria-label":ch[t]},dh[t]):e.createElement(sh,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(lh,Object.assign({"aria-label":a,$inverse:r},o),l," ",i?e.createElement("span",null,a):null)},{blue:mh}=R.secondary,{grey:ph}=R.neutral,hh=f.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,gh=f.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${mh.lightest};}`,fh=f.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,vh=f.td.withConfig({displayName:"vui--TableCell",componentId:"vui--s41x8b"})`position:relative;padding:1.25rem 1rem;text-align:${({align:e})=>e||"left"};background-color:white;font-family:${B.bodySmall.fontFamily};font-size:${B.bodySmall.fontSize};font-weight:${B.bodySmall.fontWeight};color:${B.bodySmall.color};line-height:${j.base};& > *{vertical-align:middle;}`,yh=f(vh).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${ph.dark};font-family:${B.bodySmallBold.fontFamily};font-size:${B.bodySmallBold.fontSize};font-weight:${B.bodySmallBold.fontWeight};color:${B.bodySmallBold.color};`,bh=f.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${gh} tr:nth-child(even) td {\n background-color: ${ph.lightest};\n }\n `}`,wh=({striped:t=!0,className:n,children:a})=>e.createElement(bh,{striped:t,className:n},a);wh.Header=hh,wh.Body=gh,wh.Row=fh,wh.HeaderCell=yh,wh.Cell=vh;const xh=f(I).attrs((()=>({"aria-hidden":!0}))).withConfig({displayName:"vui--Skeleton",componentId:"vui--7bl1ak"})`display:block;background:#f6f7f8;background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:2500px 104px;cursor:progress;border-radius:4px;${({width:e="",height:t=""})=>`\n width: ${e||"100%"};\n min-width: ${e};\n height: ${t||"20px"};\n min-height: ${t};\n `};@media (prefers-reduced-motion: no-preference){animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;}@keyframes placeHolderShimmer{0%{background-position:-1080px 0;}100%{background-position:1080px 0;}}`;xh.displayName="Skeleton";const $h=f.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,Dh=f.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${A.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Eh=f.div.withConfig({displayName:"vui--SliderDiv",componentId:"vui--1tltjvk"})`position:absolute;top:-${0}px;left:${e=>`${e.left}%`};width:${12}px;height:${12}px;background:white;border:${4}px solid ${A.colors.secondary.blue.base};border-radius:50%;touch-action:none;cursor:pointer;margin-left:-${12}px;&:active,&:focus,&:focus-visible,&:focus-within{box-shadow:0 0 0 4px ${A.colors.secondary.blue.light};}`,kh=f(Dh).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${A.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Ch=e=>({container:e?`${e}-slider-container`:void 0,sliderRange:e?`${e}-slider-range`:void 0,slider:e?`${e}-slider`:void 0,startSlider:e?`${e}-start-slider`:void 0,endSlider:e?`${e}-end-slider`:void 0}),Sh=({id:n,value:r,min:i,max:l,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:h=(()=>{})})=>{const[g,f]=t(!1),[v,y]=t(-1),b=o(null),w=o(null),x=o(null),$=Ch(u),D=Ch(m),E=s((e=>{var t;if(!g||!b.current)return;const n=v>-1?r[v]:r,a=b.current.getBoundingClientRect();let o=100*(e.pageX-a.x)/a.width/100*(l-i)+i;const s=n-o;if(s>0&&(o=n+Math.ceil(o/d-n/d)*d),s<0&&(o=n+Math.floor(o/d-n/d)*d),n===o)return;o>l&&(o=l),o<i&&(o=i),Array.isArray(r)&&(0===v&&o>r[1]&&([,o]=r),1===v&&o<r[0]&&([o]=r));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;o=Number(o.toFixed(u)),m=Array.isArray(r)?0===v?[o,r[1]]:[r[0],o]:o,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===v&&y(1),1===v&&y(0))}),[v,g,l,i,c,d,r]),k=s((()=>{f(!1),h()}),[h]),C=s(((e,t)=>{f(!0),p(),"number"==typeof t&&y(t),e.preventDefault()}),[p]);a((()=>{const e=e=>C(e,Array.isArray(r)?0:1),t=e=>C(e,1),n=w.current,a=x.current;return null==n||n.addEventListener("mousedown",e),null==a||a.addEventListener("mousedown",t),document.addEventListener("mousemove",E),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==a||a.removeEventListener("mousedown",t),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k)}}),[C,E,k,r]);const S=(t,n,a)=>{let r;return r=le("number"==typeof a?0===a?[null==$?void 0:$.startSlider,null==D?void 0:D.startSlider]:[null==$?void 0:$.endSlider,null==D?void 0:D.endSlider]:[null==$?void 0:$.slider,null==D?void 0:D.slider]),e.createElement(Eh,{role:"slider",ref:1===a?x:w,className:r,left:t,"aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":n})},I=t=>{const n=100*(t[0]<i?0:t[0]-i)/(l-i),a=100*(t[1]>l?100:t[1]-i)/(l-i),r=a-n;return e.createElement(e.Fragment,null,e.createElement(kh,{className:le([null==$?void 0:$.sliderRange,null==D?void 0:D.sliderRange]),left:n,width:r}),S(n,t[0],0),S(a,t[1],1))};let N;return N=Array.isArray(r)?I(r):(e=>{if(Array.isArray(r))return I(r);let t;return t=r>l?100:r<i?0:100*(e-i)/(l-i),S(t,e)})(r),e.createElement($h,{className:le([null==$?void 0:$.container,null==D?void 0:D.container]),id:n,ref:b},e.createElement(Dh,null),N)},Ih=f(I).withConfig({displayName:"vui--Tag",componentId:"vui--1rdo7hk"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:4px 8px;${({backgroundColor:e,color:t})=>`\n color: ${null!=t?t:R.neutral.ink.base};\n background-color: ${null!=e?e:R.neutral.grey.base};\n `}`,Nh=f(Sd).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Ph=f(Sd).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${A.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${A.shadows.lg};border-radius:${A.radius.md};pointer-events:auto;z-index:40;min-width:${({minWidth:e})=>e};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({last:e})=>e?"translateY(0)":"translateX(0)"};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({last:e})=>e?"translateY(12px)":"translateX(12px)"};opacity:0;transition:500ms ease;}`,Rh=f(I).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${A.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${j.md};height:${j.md};}`,Lh=f(Sd).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Th=f(K).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,zh={info:{accentColor:R.brand.blue.base,icon:e.createElement(tu,null)},success:{accentColor:R.secondary.green.base,icon:e.createElement(_d,null)},error:{accentColor:R.secondary.red.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}))),null)},merge:{accentColor:R.secondary.purple.base,icon:e.createElement((t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9887 6.82229H6.84911L12.1714 1.5L17.4937 6.82229H13.3541V14.4036L6.25774 21.5L4.59009 19.8323L10.9887 13.4338V6.82229ZM19.7527 19.8323L18.0851 21.5L14.0519 17.4669L15.7196 15.7992L19.7527 19.8323Z",fill:"currentColor"}))),null)}},Fh=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Mh=({className:t,e2eClassName:n,type:a,iconSlot:r,text:i,last:o,minWidth:l,cta:s,onClose:d})=>{const c=Fh(t),u=Fh(n);return e.createElement(Ph,{className:le([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:o},e.createElement(Rh,{color:zh[a].accentColor,className:le([c.icon,u.icon])},null!=r?r:zh[a].icon),e.createElement(Lh,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Th,{variant:"body"},i),s),e.createElement(Re,{variant:"flat",icon:e.createElement(Fe,{color:"white"}),onClick:d,"aria-label":"Close"}))},Vh=({className:t,e2eClassName:n,toasts:r,minWidth:i="50vw",max:o=3,onClose:l})=>(a((()=>{o&&r.length>o&&l(r[0].key)}),[r,o,l]),$(e.createElement(Nh,{direction:"vertical",alignX:"center",spacing:4},e.createElement(E,{component:null},[...r].reverse().map(((a,o)=>e.createElement(D,{key:a.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Mh,Object.assign({className:t,e2eClassName:n,minWidth:i,last:o===r.length-1,onClose:()=>l(a.key)},a))))))),document.body)),jh=f.span.withConfig({displayName:"vui--Slider",componentId:"vui--x03mdi"})`content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;background-color:#cdd1d5;-webkit-transition:0.3s;transition:0.3s;&:after{content:'';position:absolute;border-radius:50%;background-color:${({disabled:e,switched:t})=>e&&t?A.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Oh=f.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${jh}{box-shadow:0 0 0 4px ${A.colors.brand.blue.light};}&:checked + ${jh}{background-color:#0079d1;}&:disabled + ${jh}{background-color:${A.colors.neutral.grey.base};}&:checked:disabled + ${jh}{background-color:${A.colors.secondary.blue.light};}`,Bh=f.label.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:inline-block;position:relative;cursor:${({disabled:e})=>e?"default":"pointer"};height:${({small:e})=>e?"28px":"36px"};width:${({small:e})=>e?"56px":"72px"};input{position:absolute;opacity:0;}${jh}:after{height:${({small:e})=>e?"22px":"28px"};width:${({small:e})=>e?"22px":"28px"};left:${({small:e})=>e?"3px":"4px"};bottom:${({small:e})=>e?"3px":"4px"};}${Oh}:checked + ${jh}{&:after,svg{-webkit-transform:translateX(${({small:e})=>e?"28px":"36px"});-ms-transform:translateX(${({small:e})=>e?"28px":"36px"});transform:translateX(${({small:e})=>e?"28px":"36px"});}}`,Ah=f(I).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Hh=i((({id:t,className:n,name:a,switched:r,small:i,onClick:o=(()=>{}),disabled:l,ariaLabel:s},d)=>e.createElement(Ah,{className:n,disabled:l},e.createElement(Bh,{small:i,disabled:l,role:"switch"},e.createElement(Oh,{id:t,type:"checkbox",name:a,"aria-label":s,checked:!!r,onChange:l?void 0:o,disabled:l,ref:d}),e.createElement(jh,{switched:r,disabled:l}))))),Wh=f.button.withConfig({displayName:"vui--StyledButton",componentId:"vui--x718nd"})`user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:${A.fontFamily};font-weight:400;border:1px solid;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);${({size:e,checked:t})=>{let n="40px",a="24px",r="24px",i="8px",o="16px",l="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",a="16px",r="16px",i="4px",o="14px",l="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${l};\n\n height: ${n};\n padding-left: ${a};\n padding-right: ${r};\n border-radius: ${i};\n font-size: ${o};\n\n background-color: ${s};\n border-color: ${d};\n color: ${c};\n `}} & > * + *{margin-left:8px;}&:hover{cursor:pointer;background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};}&:active{background-color:${({checked:e})=>e?"#005A9C":"#FAFAFB"};border-color:${({checked:e})=>e?"#005A9C":"#0079D1"};box-shadow:0 0 0 var(--outline-width)#80bce8;}&:focus{box-shadow:0 0 0 var(--outline-width)#80bce8;outline:0;}&:disabled{cursor:unset;box-shadow:none;background-color:#dfe3e8;border-color:#dfe3e8;color:#637381;}& > span{position:relative;top:-1px;}`,Zh=({children:t,checked:n,size:a="base",disabled:r=!1,onChange:i})=>e.createElement(Wh,{type:"button",checked:n,size:a,disabled:r,"aria-pressed":n,tabIndex:"0",onClick:()=>i(!n)},t),Kh=f.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${j.md};border-radius:${T.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${R.neutral.ink.lightest};background-color:${R.neutral.grey.lightest};:hover{border:2px dashed ${R.secondary.blue.base};background-color:${R.secondary.blue.lightest};}:active{border:2px dashed ${R.secondary.blue.base};box-shadow:0 0 0 4px ${R.secondary.blue.light};background-color:${R.secondary.blue.lightest};}:focus-within{border:2px dashed ${R.secondary.blue.base};box-shadow:0 0 0 4px ${R.secondary.blue.light};background-color:${R.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${R.secondary.red.base};:hover{border:2px dashed ${R.secondary.red.base};background-color:${R.secondary.red.lightest};}:active{border:2px dashed ${R.secondary.red.base};box-shadow:0 0 0 4px ${R.secondary.red.light};background-color:${R.secondary.red.lightest};}:focus-within{border:2px dashed ${R.secondary.red.base};box-shadow:0 0 0 4px ${R.secondary.red.light};background-color:${R.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${R.neutral.grey.light};border-color:${R.neutral.ink.lightest};color:${R.neutral.ink.light};}`;var Uh,qh,Gh;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(Uh||(Uh={})),function(e){e.KB="KB",e.MB="MB"}(qh||(qh={})),function(e){e.VALID="",e.INVALID_FORMAT="File is incorrect format",e.INVALID_SIZE="File size is too big",e.INVALID_FORMAT_AND_SIZE="File is incorrect format and too big"}(Gh||(Gh={}));const Yh=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",fill:"none",role:"presentation"},e.createElement("path",{fill:"#fff",d:"M0 28C0 12.536 12.536 0 28 0s28 12.536 28 28-12.536 28-28 28S0 43.464 0 28"}),e.createElement("path",{fill:"#37424D",d:"M22.5 36c-1.517 0-2.812-.525-3.887-1.575-1.075-1.05-1.613-2.333-1.613-3.85 0-1.3.392-2.458 1.175-3.475s1.808-1.667 3.075-1.95c.417-1.533 1.25-2.775 2.5-3.725C25 20.475 26.417 20 28 20c1.95 0 3.604.68 4.962 2.038C34.322 23.396 35 25.05 35 27c1.15.133 2.104.63 2.862 1.488A4.407 4.407 0 0 1 39 31.5c0 1.25-.437 2.313-1.312 3.188C36.812 35.562 35.75 36 34.5 36H29c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 27 34v-5.15l-1.6 1.55L24 29l4-4 4 4-1.4 1.4-1.6-1.55V34h5.5c.7 0 1.292-.242 1.775-.725.483-.483.725-1.075.725-1.775s-.242-1.292-.725-1.775C35.792 29.242 35.2 29 34.5 29H33v-2c0-1.383-.487-2.562-1.462-3.538C30.562 22.489 29.383 22 28 22s-2.562.488-3.538 1.462C23.489 24.438 23 25.618 23 27h-.5c-.967 0-1.792.342-2.475 1.025A3.372 3.372 0 0 0 19 30.5c0 .967.342 1.792 1.025 2.475A3.372 3.372 0 0 0 22.5 34H25v2z"})),Jh=()=>e.createElement(Sd,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(Yh,null),e.createElement(K,{variant:"subheadingSmall",style:{paddingTop:j.sm}},"Browse files or drag them here")),_h=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(Sd,{alignX:"start",spacing:"xs"},t&&e.createElement(K,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(K,{variant:"errorSmall"},"File is too big (",n,")")):null,Xh=f(K).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,Qh=f(Sd).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${R.neutral.ink.lightest};border-radius:${T.base};padding:${j.xs};${K}{padding-left:${j.xs};}`,eg=({file:t,resetSelection:n,disabled:a})=>t?e.createElement(Qh,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(Xh,{variant:"body"},null==t?void 0:t.name),e.createElement(Re,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(Fe,null),"aria-label":"Remove file",disabled:a})):null,tg=i(((n,r)=>{var{id:i,name:l,maxBytes:d=1e6,format:c=qh.MB,fileTypes:u,label:m="Upload file",required:h,disabled:g}=n,f=ne(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const v=o(null);p(r,(()=>v.current),[]);const[y,b]=t(),[w,x]=t(Gh.VALID),$=w===Gh.INVALID_FORMAT||w===Gh.INVALID_FORMAT_AND_SIZE,D=w===Gh.INVALID_SIZE||w===Gh.INVALID_FORMAT_AND_SIZE,E=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case qh.KB:return`${a}${Number(e)/1e3} KB`;case qh.MB:return`${a}${Number(e)/1e6} MB`;default:return`${a}${Number(e)/1e3} KB`}})({maxBytes:d,format:c}),k=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,a)=>{const r=a.length>1,i=t===a.length-1&&r,o=t===a.length-2&&r;switch(i&&(n+=" and "),e){case Uh.CSV:n+="CSV";break;case Uh.GIF:n+="GIF";break;case Uh.JPEG:n+="JPEG";break;case Uh.JPG:n+="JPG";break;case Uh.PNG:n+="PNG"}!o&&!i&&a.length>2&&(n+=", ")})),n})({fileTypes:u}),C=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,a)=>{const r=a.length-1===n&&a.length>1;t+=r?`${e}`:`${e}, `})),t.trim()})({fileTypes:u}),S=()=>{var e;(null===(e=v.current)||void 0===e?void 0:e.value)&&(v.current.value="")},I=({overMaxSize:e,invalidFormat:t})=>{var n;let a=Gh.VALID;t&&!e?a=Gh.INVALID_FORMAT:!t&&e?a=Gh.INVALID_SIZE:t&&e&&(a=Gh.INVALID_FORMAT_AND_SIZE),null===(n=v.current)||void 0===n||n.setCustomValidity(a),x(a)},N=s((e=>{if(!e.length)return void I({invalidFormat:!0});const[t]=e,n=t.size>d,[,a]=t.type.split("/"),r=!u.find((e=>e.substring(1)===a));n||r?S():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:i}),I({invalidFormat:r,overMaxSize:n}),b(t)}),[u,i,d]),P=s((()=>{S(),b(void 0),I({invalidFormat:!1,overMaxSize:!1})}),[]),R=s((()=>{var e;const t=null===(e=null==v?void 0:v.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?N(t):P()}),[P,N]);return a((()=>{const e=null==v?void 0:v.current;return null==e||e.addEventListener("change",R),null==e||e.addEventListener("cancel",P),()=>{null==e||e.removeEventListener("change",R),null==e||e.removeEventListener("cancel",P)}}),[R,P]),e.createElement(ic,{spacing:"sm",alignX:"stretch"},e.createElement(nc,{htmlFor:i},m,e.createElement(Sd,{spacing:3,alignX:"stretch",style:{paddingTop:j.sm}},e.createElement(ac,null,e.createElement("div",null,k),e.createElement("div",null,E)),e.createElement(Kh,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&N(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.blur()}},e.createElement(Jh,null),e.createElement("input",Object.assign({ref:v,id:i,type:"file",accept:C,name:l,required:h,disabled:g},f))))),e.createElement(Sd,{alignX:"stretch",spacing:"sm"},e.createElement(eg,{file:y,resetSelection:P,disabled:g}),e.createElement(_h,{acceptedTypesCopy:$?k:void 0,maxSizeCopy:D?E:void 0})))})),ng="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",ag=f(I).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${ng} display:${e=>e.shouldShow?"initial":"none"};z-index:${A.layers.modal};`,rg=f(I).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${ng} background-color:rgba(55,66,77,0.5);`,ig=f(I).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,og=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(re,null,n):n),lg=({className:t,children:n=null,shouldShow:a=!1,usePortal:r=!0})=>e.createElement(og,{usePortal:r},e.createElement(ag,{className:le([`${t}-container`,t]),shouldShow:a},e.createElement(rg,null),e.createElement(S,{isActive:a},e.createElement(ig,{className:le([`${t}-wrap`,t])},n)))),sg=f.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,dg=f.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,cg=f(Re).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,ug=({id:t,youtubeVideoId:n,showVideoModal:a,handleCloseClick:r})=>{const i=Lu(a,r);return e.createElement(lg,{shouldShow:a,className:`${t}-video`},e.createElement(sg,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(a?"visible":"hidden")},e.createElement(dg,{ref:i},e.createElement("iframe",{title:`${t}-video`,src:`https://www.youtube.com/embed/${n}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e.createElement(cg,{variant:"flat",onClick:r,"data-testid":"video-modal--close",icon:e.createElement(Fe,{color:"white"})}))))};var mg;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(mg||(mg={}));const pg=f(I).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,hg=f(K).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,gg=f(I).withConfig({displayName:"vui--Contour",componentId:"vui--zy3oaf"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:0 12px;border:1px solid transparent;cursor:pointer;${({colourPalette:e,customTextColour:t})=>`\n &:hover {\n border: 1px solid ${e.base};\n background-color: ${e.lightest};\n }\n\n ${K} {\n color: ${null!=t?t:R.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,fg=f(K).withConfig({displayName:"vui--CounterContainer",componentId:"vui--chq9kr"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.base};\n\n & > ${hg} {\n color: #fff;\n }\n `}`,vg={style:{marginLeft:j.xs,padding:j.xs,height:j.base,width:j.base}},yg=f.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${j.sm};svg{height:${j.base};width:${j.base};}`,bg=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18.0418V21.9996H6.95778L18.6306 10.3273L14.6728 6.36952L3 18.0418ZM21.6913 7.2661C22.1029 6.85501 22.1029 6.19011 21.6913 5.7785L19.2216 3.30831C18.81 2.89723 18.1451 2.89723 17.7335 3.30831L15.8021 5.23971L19.7599 9.19749L21.6913 7.2661Z",fill:"currentColor"})),wg=e=>({delete:e?`${e}-delete`:void 0,options:e?`${e}-options`:void 0,edit:e?`${e}-edit`:void 0,container:e?`${e}-container`:void 0,active:e?`${e}-active`:void 0,counter:e?`${e}-counter`:void 0}),xg=({id:t,iconSlot:n,name:a,type:r,className:i,colourPalette:o=R.secondary.blue,customTextColour:l,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:h})=>{const g=wg(i),f=wg(h),[v,y,b]=ju(),w=s((()=>u(t)),[t,u]),x=s((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),$=s((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),D=r===mg.draft,E=r===mg.saved,k=c?R.neutral.ink.dark:R.neutral.ink.base;return e.createElement(pg,{className:`${le([null==g?void 0:g.container,null==f?void 0:f.container])} ${c&&(null==f?void 0:f.active)||""}`,onClick:w},e.createElement(gg,{active:c,onMouseEnter:y,onMouseLeave:b,colourPalette:o,customTextColour:l},n&&e.createElement(yg,null,n),e.createElement(K,{variant:"bodyBold"},a),d&&e.createElement(fg,{active:c||v,colourPalette:o,customTextColour:l},e.createElement(hg,{className:null==f?void 0:f.counter,variant:"subheadingSmall"},d)),D&&e.createElement(Fe,Object.assign({},vg,{color:k,className:null==f?void 0:f.delete,onClick:x})),E&&c&&e.createElement(bg,Object.assign({},vg,{color:k,className:null==f?void 0:f.edit,onClick:$}))))};var $g;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}($g||($g={}));const Dg=t=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"4",fill:"none",viewBox:"0 -4 12 12",role:"presentation"},t),e.createElement("path",{fill:"currentColor",d:"M2 .667C1.267.667.667 1.267.667 2S1.267 3.333 2 3.333c.734 0 1.334-.6 1.334-1.333S2.734.667 2 .667m8 0c-.733 0-1.333.6-1.333 1.333s.6 1.333 1.333 1.333c.734 0 1.334-.6 1.334-1.333S10.734.667 10 .667m-4 0c-.733 0-1.333.6-1.333 1.333S5.267 3.333 6 3.333c.734 0 1.334-.6 1.334-1.333S6.734.667 6 .667"})),Eg=f(K).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,kg=f(Dg).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Cg=f(Fe).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Sg=f(K).withConfig({displayName:"vui--CounterContainer",componentId:"vui--1nbpnol"})`display:inline-flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;padding:2px 4px;min-width:20px;height:20px;margin-left:8px;${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.dark};\n\n & > ${Eg} {\n color: ${R.neutral.grey.lightest};\n }\n `}`,Ig=f(I).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:8px 12px;border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${R.neutral.grey.base};\n & > ${Sg} {\n background-color: ${R.neutral.grey.base};\n & > ${Eg} {\n color: ${R.neutral.ink.base};\n }\n }\n & > ${K} {\n color: ${null!=e?e:R.neutral.ink.dark};\n }\n & > ${kg} {\n color: ${R.neutral.ink.dark};\n }\n & > ${Cg} {\n color: ${R.neutral.ink.dark};\n }\n }\n\n & > ${K} {\n color: ${null!=e?e:R.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${kg} {\n color: ${t.dark};\n }\n & > ${Cg} {\n color: ${t.dark};\n }\n\n & > ${K} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Ng=f(ke).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:8px 12px;box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${Ig} {\n background-color: ${R.neutral.grey.base};\n & > ${Sg} {\n background-color: ${R.neutral.grey.base};\n & > ${Eg} {\n color: ${R.neutral.ink.base};\n }\n }\n & > ${K} {\n color: ${null!=e?e:R.neutral.ink.dark};\n }\n & > ${kg} {\n color: ${R.neutral.ink.dark};\n }\n & > ${Cg} {\n color: ${R.neutral.ink.dark};\n }\n }\n `}`,Pg={style:{marginLeft:j.xs,padding:j.xs,height:j.base,width:j.base}},Rg=f.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${j.sm};svg{height:${j.base};width:${j.base};}`,Lg=e.forwardRef(((t,n)=>{var{id:a,iconSlot:r,name:i,type:o,className:l,colourPalette:s=R.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:h}=t,g=ne(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const f={delete:(v=l)?`${v}-delete`:void 0,edit:v?`${v}-edit`:void 0,container:v?`${v}-view`:void 0,active:v?`${v}-active`:void 0,counter:v?`${v}-counter`:void 0};var v;const[y,b,w]=ju(),x=u&&p?p:m,$=o===$g.draft,D=o===$g.saved;return e.createElement(Ng,Object.assign({className:le([null==f?void 0:f.container]),onClick:()=>x(a),role:"tab","aria-selected":u,"aria-label":`${u&&$?"Delete":u&&D?"Edit":""} ${i} view ${c?`with ${c} ${h}`:""}`,customTextColour:d,ref:n},g),e.createElement(Ig,{active:u,onMouseEnter:b,onMouseLeave:w,colourPalette:s,customTextColour:d},r&&e.createElement(Rg,null,r),e.createElement(K,{variant:"bodyBold"},i),null!=c&&e.createElement(Sg,{"data-testid":"countContainer",active:u||y,colourPalette:s,customTextColour:d},e.createElement(Eg,{variant:"subheadingSmall"},c)),$&&e.createElement(Cg,Object.assign({},Pg,{"aria-label":"delete icon"})),D&&u&&e.createElement(kg,Object.assign({},Pg,{"aria-label":"edit icon"}))))})),Tg=f(Sd).withConfig({displayName:"vui--ViewsWrapper",componentId:"vui--x8ukf0"})`overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}gap:8px;height:inherit;padding:8px 6px 8px 12px;margin-left:0;`,zg=f(Sd).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${R.neutral.grey.lightest};`,Fg=f(Ed).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${R.neutral.ink.base};`,Mg=f(Mt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${R.neutral.ink.base};`,Vg=f(Dg).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${R.neutral.ink.base};`,jg=f(Re).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${R.neutral.grey.lightest};}`,Og=f(Re).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Fg}{color:${R.neutral.ink.lightest};}}&:hover{background-color:${R.neutral.grey.lightest};}`,Bg=f(Re).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${Mg}{color:${R.neutral.ink.lightest};}}&:hover{background-color:${R.neutral.grey.lightest};}`,Ag=f(vu).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,Hg=(e,n)=>{const[r,i]=t(!0),[o,l]=t(!1),[d,c]=t([]),u=s((()=>{var t,n;e.current.scrollLeft>0?i(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),i(!0));const a=e.current.scrollWidth-e.current.clientWidth;e.current.scrollLeft>=a-10?(document.getElementById("right-arrow")===document.activeElement&&(null===(n=document.getElementById("left-arrow"))||void 0===n||n.focus()),l(!0)):l(!1)}),[e]),m=s((()=>{e.current.scrollWidth-e.current.getBoundingClientRect().width<5?l(!0):l(!1)}),[e]),p=s((()=>{const t=((e,t,n)=>{for(let a=0;a<e.length;a++){if(void 0===e[a+3])return t-n;if(e[a]>=t)return e[a+3]}return t-n})(d,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]),h=s((()=>{const t=((e,t)=>{const n=e.slice().reverse();for(let a=0;a<e.length;a++){if(void 0===n[a+3])return 0;if(n[a]<t)return n[a+3]}return 0})(d,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,d]);return a((()=>{var t,a,r,i,o,l,s,p;if(e)return(null===(a=null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.children)||void 0===a?void 0:a.length)&&(null===(i=null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.children)||void 0===i?void 0:i.length)!==d.length&&d.length>0&&d.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),c([...d,d[d.length-1]+(null!==(l=null===(o=e.current.children[d.length-1])||void 0===o?void 0:o.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(p=null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.children)||void 0===p?void 0:p.length)&&0===d.length&&c((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m(),window.addEventListener("resize",(()=>m())),e.current.addEventListener("scroll",(()=>u())),()=>{window.removeEventListener("resize",(()=>m()))}}),[e,n,m,u,d]),{rightDisabled:o,leftDisabled:r,toNextScrollPosition:p,toPrevScrollPosition:h}},Wg=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:r},i)=>{const l=o(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=Hg(l,t);return e.createElement(zg,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Tg,{ref:l,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(Ag,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Og,{id:"left-arrow",icon:e.createElement(Fg,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Bg,{id:"right-arrow",icon:e.createElement(Mg,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(jg,{icon:e.createElement(Vg,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":r,"aria-haspopup":a?"dialog":void 0,ref:i})))})),Zg=f(I).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,Kg=f(I).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,Ug=f(Du).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,qg=f(Re).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${A.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${A.colors.secondary.red.base};\n `};`,Gg=e=>Iu(e,Nu),Yg=lc((t=>{var{size:n=yu.base,hasError:a,className:r}=t,i=ne(t,["size","hasError","className"]);return e.createElement(Zg,{className:r},e.createElement(Kg,null,"g"===i.weightUnit&&e.createElement(vu,null,e.createElement(Ug,Object.assign({size:n,onChange:i.handleChangeGram,name:"gram",type:"number",value:i.gram,hasError:a,min:"0",step:"any",onKeyDown:Gg},i)),e.createElement(qg,{hasError:a,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(i)&&e.createElement(e.Fragment,null,e.createElement(vu,null,e.createElement(Ug,Object.assign({size:n,onChange:i.handleChangePound,name:"pound",type:"number",value:i.pound,hasError:a,step:"any",min:"0",onKeyDown:Gg},i)),e.createElement(qg,{hasError:a,size:n},"lb")),e.createElement(vu,null,e.createElement(Ug,Object.assign({size:n,onChange:i.handleChangeOunce,name:"ounce",type:"number",value:i.ounce,hasError:a,min:"0",step:"any",onKeyDown:Gg},i)),e.createElement(qg,{hasError:a,size:n},"oz")))))}));Yg.displayName="WeightInput",Yg.defaultProps={weightUnit:"lb"};export{Uh as AcceptedFileTypes,te as Accordion,tt as ActionList,at as Anchor,dt as AnimatedDropdown,ut as Avatar,Et as Badge,Tt as Banner,I as BaseContainer,At as Breadcrumbs,Re as Button,Ue as Card,Me as CardHeader,Kd as Checkbox,Bd as Choice,Jd as ChoiceList,tc as CopyToClipboard,ru as DataTable,cc as DateRangeInput,uu as DescriptionList,fu as DetailPage,Ru as DimensionsInput,qh as FileSizeUnit,Yu as FilterTag,Mu as FocusVisibleManager,Ju as Grid,am as Image,vu as InputGroup,Ym as LegacyDataTable,ye as Loader,Qm as LoginWithAmazonButton,dp as Modal,xp as PageHeader,Np as Pagination,jp as PaginationRange,he as Popover,lg as Popup,re as Portal,Up as PriceInput,qd as Radio,kd as RangeCalendar,Gp as ScreenReaderOnly,Qp as Search,rh as SegmentedControl,oh as Select,uh as ShortcutKeys,wh as SimpleTable,xh as Skeleton,Sh as Slider,Sd as Stack,Ap as Stepper,Ih as Tag,K as Text,Du as TextField,Vh as ToastsLayout,Hh as Toggle,Zh as ToggleButton,xt as Tooltip,tg as UploadFile,ug as VideoModal,xg as View,Lg as ViewTab,Wg as ViewsContainer,Yg as WeightInput,le as buildClassnames,ae as generateId,de as getOpaqueHexColor,se as hexToRgb,ue as isExternalLink,A as theme,bc as useCellWidths,Lu as useClickOutside,wc as useColumns,Tu as useDebounce,xc as useDragToScroll,zu as useDropdown,Vu as useFocusVisible,ju as useHover,Ou as useIsOverflowing,$c as useNested,Dc as useScrollPosition,Pc as useSelection,Bu as useTabs,sc as withDeprecated,lc as withLabels};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|