@veeqo/ui 5.12.0 → 5.12.2
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/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/package.json +5 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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 E}from"react-dom";import{CSSTransition as $,TransitionGroup as D}from"react-transition-group";import k from"lodash.throttle";import{useScroll as C,usePrevious as S}from"react-use";import I from"react-scrolllock-configurable";const N=f.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,L={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},P=(e,t)=>e||(t?L[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"}}},T={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 M,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)"}(M||(M={})),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 V=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}),O={[F.none]:"0",[F.line]:"1px",[F.xs]:V[1],[F.sm]:V[2],[F.base]:V[4],[F.md]:V[6],[F.lg]:V[8],[F.xl]:V[12],[F.xxl]:V[16]},A=Object.assign(Object.assign({},O),V),j={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},B={headingXXL:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:R.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:R.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:R.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:j.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:R.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},H=Object.assign(Object.assign({},j),{breakpoints:T,colors:R,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:z,shadows:M,sizes:A,text:B}),{text:W,colors:Z,fontFamily:K}=H,U=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:${K};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?Z.neutral.ink.lightest:W[e].color;return`\n font-family: ${W[e].fontFamily};\n font-style: ${W[e].fontStyle};\n font-weight: ${W[e].fontWeight};\n font-size: ${W[e].fontSize};\n line-height: ${W[e].lineHeight};\n color: ${n};\n text-decoration: ${W[e].textDecoration};\n letter-spacing: ${W[e].letterSpacing};\n `}}`,_=f(N).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,Y=f(_).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${A.base};width:${A.base};color:${({glyphColor:e})=>e};}`,q=f(_).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,G=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 ${H.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${H.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${H.colors.secondary.blue.light};}`,J=f(N).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,X=f(U).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,Q=f(h(N)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,ee=f.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,te=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:A.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"})),ne=({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(ee,{open:!!d,className:n},e.createElement(G,{onClick:()=>u(!c)},e.createElement(J,null,e.createElement(Y,{glyphColor:o},i,e.createElement(U,{variant:"body"},r)),e.createElement(q,null,e.createElement(h.span,{animate:{rotate:c?180:0}},e.createElement(te,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(X,{variant:"hintText"},s)),c&&e.createElement(Q,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:l/1e3}},a))};function ae(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 re=e=>`${e}-${Math.floor(1e3*Math.random())}`;class ie extends n{constructor(e){super(e),this.id=re("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(e,this.portalNode):null}}const oe=f.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,le=f.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,se=e=>e.filter(Boolean).join(" "),de=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},ce=(e,t)=>{const n=de(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ue=["app.veeqo.com"];function me(e,t=ue){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 pe='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])',he=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:r=!1})=>{a((()=>{if(!e||r)return;const t=e.querySelectorAll(pe);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(pe);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(pe),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))}}},ge=n=>{var{id:i,children:o,zIndex:l=H.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:h=!1,useAnchorWidth:g}=n,f=ae(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[v,y]=t(null),{styles:x,attributes:E,update:$}=b(d,v,{placement:s}),D=r((()=>i||re("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 k=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:C}=he({popperElement:v,anchorElement:d,onClose:k,disableFocusLock:p});return a((()=>{if(!$||!v)return;const e=new w($);return e.observe(v),()=>e.disconnect()}),[$,v]),a((()=>{if($)return window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)}),[$]),e.createElement(ie,{rootElementRef:c},!h&&e.createElement(le,{onClick:k,zIndex:l,"data-testid":"popover-backdrop"}),e.createElement(oe,Object.assign({open:!0,id:D,zIndex:l,ref:y,style:Object.assign(Object.assign(Object.assign({},x.popper),m),g?{width:null==d?void 0:d.clientWidth}:{}),onKeyDown:C},E.popper,f),o))},fe=({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"}))))),ve=({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"}))),ye=({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"}))),be=({className:t,height:n=24,width:a=24,color:r="#588CB0",type:i="TailSpin"})=>{switch(i){case"Grid":return e.createElement(ve,{className:t,height:n,width:a,color:r});case"ThreeDots":return e.createElement(ye,{className:t,height:n,width:a,color:r});default:return e.createElement(fe,{className:t,height:n,width:a,color:r})}},we=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})=>A[e]};height:${({size:e})=>A[e]};}`,xe=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:${H.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;}`,Ee=f(xe).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${H.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?H.colors.neutral.ink.base:H.colors.secondary.blue.base};&:hover{background-color:${H.colors.neutral.grey.lightest};}&:active{background-color:${H.colors.neutral.grey.lightest};border-color:${H.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${H.colors.neutral.grey.base} !important;border-color:${H.colors.neutral.grey.base} !important;color:${H.colors.neutral.ink.light} !important;}`,$e=f(Ee).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${H.colors.secondary.red.base};&:hover{color:${H.colors.secondary.red.dark};}&:active{border-color:${H.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};color:${H.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};}`,De=f(Ee).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${H.colors.secondary.blue.base};border-color:${H.colors.secondary.blue.base};color:white;&:hover{background-color:${H.colors.secondary.blue.dark};border-color:${H.colors.secondary.blue.dark};}&:active{background-color:${H.colors.secondary.blue.dark};border-color:${H.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}`,ke=f(De).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${H.colors.secondary.red.base};border-color:${H.colors.secondary.red.base};color:white;&:hover{background-color:${H.colors.secondary.red.dark};border-color:${H.colors.secondary.red.dark};}&:active{background-color:${H.colors.secondary.red.dark};border-color:${H.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.red.light};}`,Ce=f(xe).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${H.colors.neutral.ink.base};&:hover{background-color:${H.colors.neutral.grey.light};}&:active{background-color:${H.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,Se=f.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,Ie=f(Se).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${H.text.link.fontFamily};font-size:${H.text.link.fontSize};line-height:${H.text.link.fontSize};font-weight:${H.text.link.fontWeight};line-height:${H.text.link.lineHeight};text-decoration:${H.text.link.textDecoration};color:${H.colors.secondary.blue.base};&:hover{color:${H.colors.secondary.blue.dark};}& > * + *{margin-left:${H.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${H.colors.secondary.blue.light};border-radius:4px;}`,Ne=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;`,Le=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:Ee,primary:De,destructive:$e,primaryDestructive:ke,flat:Ce,link:Ie,unstyled:Se},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=ae(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===o)return e.createElement(Se,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(we,{$loading:d,hasText:!!r,size:r||"sm"===l?"base":"md"},i&&i,void 0!==r&&r,s&&e.createElement(Le,null)),d&&e.createElement(Ne,null,e.createElement(be,null)))})),Te=f.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${A.md};padding-right:${A.md};padding-left:${A.md};margin-bottom:${A.md};& > * + *{margin-top:${A.xs};}`,ze=f.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${A.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,Me=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:A.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"})),Ve=({id:t,title:n,subtitle:a,headerVariant:r="headingSmall",action:i,ActionSlot:o,isCollapsed:l,onClickCollapse:s,onClickClose:d})=>e.createElement(Te,null,e.createElement(ze,null,e.createElement(U,{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(Me,null):e.createElement(te,null),onClick:s}),d&&e.createElement(Re,{variant:"flat",icon:e.createElement(Fe,null),onClick:d,"aria-label":"Close"})),a&&e.createElement(U,{variant:"subheadingSmall"},a)),{grey:Oe}=R.neutral,Ae={0:"none",1:M.sm,2:M.base,3:M.md,4:M.lg},je={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:${A.base};padding:${A.md};z-index:2;`,He=f.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${A.md};padding-left:${A.md};margin-top:${A.md};margin-bottom:${A.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:${A.line} solid ${Oe.base};padding-top:${A.md};}`,We=f.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${A.md};margin-right:-${A.md};`,Ze=f(h.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${He}:first-child{margin-top:0;}`,Ke=f.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${A.line} solid ${Oe.base};box-shadow:${e=>void 0!==e.elevation?Ae[e.elevation]:M.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: ${A.xs};\n background-color: ${je[e]};\n }\n `}`,Ue={expanded:{height:"auto"},collapsed:{height:0}},_e=({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(Ve,{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(Ze,{animate:v?"expanded":"collapsed",variants:Ue,transition:{duration:.3,ease:"easeOut"}},e.createElement(He,null,u)),b=void 0!==p&&e.createElement(Be,null,p());return e.createElement(Ke,{className:n,style:a,elevation:d,accent:c},f,y,b)};_e.Surface=Ke,_e.Section=He,_e.FullBleed=We,_e.Footer=Be;const{sizes:Ye,colors:qe,text:Ge}=H,Je=f(_e.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${Ye.base} 0;display:flex;flex-direction:column;`,Xe=f.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${qe.neutral.grey.base};margin-top:${Ye.base};padding-top:${Ye.base};}`,Qe=f(U).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${Ye.sm} ${Ye.base} ${Ye.sm};`,et=f(Re).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${Ye.lg};padding:${Ye.xs} ${Ye.base};display:flex;align-items:center;white-space:nowrap;font-family:${Ge.body.fontFamily};font-size:${Ge.body.fontSize};font-weight:${Ge.body.fontWeight};&:hover{background-color:${qe.neutral.grey.light};color:${qe.secondary.blue.base};}& > * + *{margin-left:${Ye[3]};}`,tt={item:et,action:f(et).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${qe.secondary.blue.base};`,link:f(et).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${qe.secondary.blue.base};text-decoration:underline;`},nt=({title:n,items:a=[],sections:r,buttonVariant:i,buttonSize:o})=>{const[l,s]=t(!1),[d,c]=t(null),u=t=>{const n=tt[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(Xe,{key:t.title},t.title&&e.createElement(Qe,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(ge,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(Je,null,m)))};var at;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(at||(at={}));const rt=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&&at[n],o=a&&at[a],d=H.sizes[r],l="column"):(i=a&&at[a],o=n&&at[n],c=H.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 `}}`;rt.displayName="Stack";const it=f(rt).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${H.radius.base};background-color:${({colours:{background:e}})=>e};`,ot=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"})),lt=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"})),st=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"})),dt=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"})),ct={base:H.sizes.base,sm:H.sizes[3],xs:H.sizes.sm},ut={base:H.sizes.md,sm:H.sizes[5],xs:H.sizes[5]},mt={default:st,error:ot,success:dt,info:lt,warning:t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:t=>e.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),e.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),e.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},pt={default:{primary:H.colors.neutral.ink.base,background:H.colors.neutral.grey.lightest},error:{primary:H.colors.secondary.red.base,background:H.colors.secondary.red.lightest},success:{primary:H.colors.secondary.green.base,background:H.colors.secondary.green.lightest},info:{primary:H.colors.secondary.blue.base,background:H.colors.secondary.blue.lightest},warning:{primary:H.colors.secondary.orange.base,background:H.colors.secondary.orange.lightest},recommend:{primary:H.colors.secondary.purple.dark,background:H.colors.secondary.purple.lightest}},ht=t=>{var{size:n="base",variant:a="default",colours:r,rightActions:i,title:o,titleSlot:l,message:s,children:d,iconSlot:c,onClickClose:u}=t,m=ae(t,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const p=null!=r?r:pt[a],h=c||mt[a],g="xs"===n;return e.createElement(it,Object.assign({colours:p,direction:"horizontal",alignX:"between",spacing:"0"},m),e.createElement(rt,{direction:"horizontal",alignY:g?"center":"start",style:{margin:ct[n],gap:ct[n]},spacing:0},e.createElement(h,{"aria-hidden":!0,style:{minWidth:ut[n],minHeight:ut[n],width:ut[n],height:ut[n]},color:p.primary}),e.createElement(rt,{direction:"vertical",spacing:g?0:"xs"},l||e.createElement(U,{variant:g?"bodySmallBold":"bodyBold",style:"base"===n?{lineHeight:"24px"}:{}},o),d||e.createElement(U,{variant:g?"bodySmall":"body"},s))),e.createElement(rt,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:g?void 0:H.sizes[3],gap:g?void 0:ct[n],alignItems:"center"}},i&&e.createElement(rt,{alignY:"center",spacing:0,style:{gap:ct[n]}},i.map((t=>{var{label:n}=t,a=ae(t,["label"]);return e.createElement(Re,Object.assign({key:n,type:"button",size:"sm"},a),n)}))),u&&e.createElement(rt,{alignY:g?"center":"start",style:{height:"100%",padding:g?H.sizes.xs:void 0}},e.createElement(Re,{variant:"flat",icon:e.createElement(Fe,null),onClick:u,"aria-label":"Close",size:"sm"}))))},gt=f.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${H.text.link.fontFamily};font-style:${H.text.link.fontStyle};font-weight:${H.text.link.fontWeight};font-size:${H.text.link.fontSize};line-height:${H.text.link.lineHeight};color:${H.colors.secondary.blue.base};text-decoration:${H.text.link.textDecoration};&:hover{color:${H.colors.secondary.blue.dark};}`,ft=t=>{var{children:n,href:a,rel:r,allowedHostnames:i=ue}=t,o=ae(t,["children","href","rel","allowedHostnames"]);const l=me(a,i),s=r||(l?"noopener noreferrer":void 0);return e.createElement(gt,Object.assign({href:a,rel:s},o),n)},vt=f(N).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;`,yt=i(((t,n)=>{const{children:a,className:r,role:i}=t;return e.createElement(vt,{className:r,ref:n,role:i},a)})),bt=f(N).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,wt=f(N).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,xt=f(yt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${H.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);}`,Et=({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(bt,{className:`${i}-container ${i}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:h},!l&&t,e.createElement(wt,{className:`${i}-wrap ${i}`},e.createElement($,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(xt,{role:"dialog",reversed:l,className:`${i}-basic-dropdown ${i}`},r))),l&&t)},$t=f.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${H.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:${H.text.bodySmallBold.fontFamily};font-weight:${H.text.bodySmallBold.fontWeight};font-size:${H.text.bodySmallBold.fontSize};line-height:${H.text.bodySmallBold.lineHeight};}`,Dt=({width:t="40px",name:n="Veeqo",bgColor:a=H.colors.secondary.blue.base,textColor:r="#ffffff"})=>{const i=n.toUpperCase().match(/\b(\w)/g);return e.createElement($t,{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))))},kt=f.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,Ct=f(kt).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,St=f(U).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${H.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,It=f.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Nt=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;}`,Lt=f(kt).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 Pt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(Pt||(Pt={}));const Rt={duration:400,side:Pt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},Tt=({content:n,text:a,hoverableElement:r,config:i,reversed:o,withTriangle:l,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},Rt),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:H.layers.tooltip});return e.createElement(Nt,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:h,style:w},y.popper,{role:"tooltip"}),e.createElement(Lt,{className:s.wrap,tipMinWidth:g,tipMaxWidth:f},null!=n?n:e.createElement(St,null,a)),l&&e.createElement(It,{id:"veeqo-components-triangle",className:s.triangle}))},zt=({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(Tt,{classNames:f,hoverableElement:p,config:i,reversed:o,withTriangle:s,text:a,content:r});return e.createElement(kt,{className:f.container},c?x.createPortal(y,document.body):y,e.createElement(Ct,{ref:h,className:f.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},Mt=f(N).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:${A.base};height:${A.base};}`,Ft={default:f(Mt).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${R.secondary.blue.base};color:${R.secondary.blue.base};`,primary:f(Mt).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(Mt).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${R.secondary.yellow.base};background-color:${R.secondary.yellow.lightest};color:${R.secondary.orange.dark};`},Vt=({variant:t="default",hideBorder:n=!1,iconSlot:a,tooltip:r,className:i,e2eClassName:o,children:l})=>{const s=Ft[t];return e.createElement(zt,{text:r},e.createElement(s,{className:se([i,o]),hideBorder:n},a&&a,l&&e.createElement("span",null,l)))},Ot=f(N).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"};`,At=f(N).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,jt=f(N).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,Bt=f(jt).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${A.md};height:${A.md};color:${({accentColor:e})=>e};}`,Ht=f(N).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,Wt=f(jt).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,Zt=f(U).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,Kt={help:R.secondary.blue.base,info:R.neutral.ink.base,error:R.secondary.red.base,success:R.secondary.green.base},Ut=t=>{var{type:n="info",text:a,icon:r,onClose:i,className:o,header:l,children:s,backgroundColor:d="white"}=t,c=ae(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=Kt[n];return e.createElement(Ot,Object.assign({accentColor:u,className:o,backgroundColor:d},c),e.createElement(At,null,r&&e.createElement(Bt,{style:{marginRight:A.md},accentColor:u},r),s?e.createElement(Ht,null,s):e.createElement(e.Fragment,null,e.createElement(Wt,null,l||e.createElement(Zt,{variant:"headingSmall"},a)),e.createElement(jt,null,i&&e.createElement(Re,{variant:"flat","aria-label":"Close",icon:e.createElement(Fe,null),onClick:i})))))},_t=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};`,Yt=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;}`,qt=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"})),Gt=({children:t,title:n,LinkComponent:a,href:r})=>a?e.createElement(Yt,{className:"breadcrumb"},e.createElement(a,{href:r},n),t):e.createElement(Yt,{className:"breadcrumb"},n,t),Jt=()=>e.createElement(qt,{className:"separator",width:A.base,height:A.base}),Xt=({children:t,href:n})=>e.createElement("a",{href:n},t),Qt=({children:t})=>e.createElement("span",null,t),en=({items:t,Separator:n=e.createElement(Jt,null),LinkComponent:a=Xt})=>e.createElement(_t,{className:"breadcrumbs"},t.map(((r,i)=>e.createElement(Gt,{key:r.title,title:r.title,href:r.pathname,LinkComponent:i!==t.length-1?a:Qt},t.length!==i+1&&n))));function tn(e,t){return e-t*Math.floor(e/t)}const nn=1721426;function an(e,t,n,a){let r=(t=on(e,t))-1,i=-2;return n<=2?i=0:rn(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 rn(e){return e%4==0&&(e%100!=0||e%400==0)}function on(e,t){return"BC"===e?1-t:t}function ln(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const sn={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 dn{fromJulianDay(e){let t=e,n=t-nn,a=Math.floor(n/146097),r=tn(n,146097),i=Math.floor(r/36524),o=tn(r,36524),l=Math.floor(o/1461),s=tn(o,1461),d=Math.floor(s/365),c=400*a+100*i+4*l+d+(4!==i&&4!==d?1:0),[u,m]=ln(c),p=t-an(u,m,1,1),h=2;t<an(u,m,3,1)?h=0:rn(m)&&(h=1);let g=Math.floor((12*(p+h)+373)/367),f=t-an(u,m,g,1)+1;return new ma(u,m,g,f)}toJulianDay(e){return an(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return sn[rn(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return rn(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 cn={"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 un(e,t){return t=Wn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function mn(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 pn(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-function(e){let t=Sn(e);return t&&cn[t]||0}(t))%7;return a<0&&(a+=7),a}function hn(e){return jn(Date.now(),e)}function gn(e){return Bn(hn(e))}function fn(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function vn(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let yn=null;function bn(){return null==yn&&(yn=(new Intl.DateTimeFormat).resolvedOptions().timeZone),yn}function wn(e){return e.subtract({days:e.day-1})}function xn(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function En(e){return wn(e.subtract({months:e.month-1}))}function $n(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Dn(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function kn(e,t){let n=pn(e,t);return e.subtract({days:n})}const Cn=new Map;function Sn(e){if(Intl.Locale){let t=Cn.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&Cn.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function In(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Nn(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const Ln={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 Rn(on((e=Wn(e,new dn)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Rn(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 Tn(e,t){if("UTC"===t)return 0;if(e>0&&t===bn())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:a,day:r,hour:i,minute:o,second:l}=Mn(e,t);return Rn(n,a,r,i,o,l,0)-1e3*Math.floor(e/1e3)}const zn=new Map;function Mn(e,t){let n=zn.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"}),zn.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 Fn=864e5;function Vn(e,t,n,a){return(n===a?[n]:[n,a]).filter((n=>function(e,t,n){let a=Mn(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 On(e,t,n="compatible"){let a=Hn(e);if("UTC"===t)return Pn(a);if(t===bn()&&"compatible"===n){a=Wn(a,new dn);let e=new Date,t=on(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=Pn(a),i=Tn(r-Fn,t),o=Tn(r+Fn,t),l=Vn(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 An(e,t,n="compatible"){return new Date(On(e,t,n))}function jn(e,t){let n=Tn(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 fa(r,i,o,t,n,l,s,d,c)}function Bn(e){return new ma(e.calendar,e.era,e.year,e.month,e.day)}function Hn(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 ha(e.calendar,e.era,e.year,e.month,e.day,n,a,r,i)}function Wn(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,Gn(a),a}function Zn(e,t,n){if(e instanceof fa)return e.timeZone===t?e:function(e,t){let n=Pn(e)-e.offset;return Wn(jn(n,t),e.calendar)}(e,t);return jn(On(e,t,n),t)}const Kn=36e5;function Un(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=ta(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ta(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ta(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ta(e.hour,24),t}(e)}(n,t):0;_n(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Yn(n),qn(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=a,function(e){for(;e.day<1;)e.month--,Yn(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Yn(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 _n(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 Yn(e){for(;e.month<1;)_n(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,_n(e,1)}function qn(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 Gn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),qn(e)}function Jn(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function Xn(e,t){return Un(e,Jn(t))}function Qn(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),Gn(n),n}function ea(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 ta(e,t){let n=e%t;return n<0&&(n+=t),n}function na(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=ra(i,n,0,t.length-1,null==a?void 0:a.round),r.era=t[i],Gn(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=ra(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=ra(e.month,n,1,e.calendar.getMonthsInYear(e),null==a?void 0:a.round);break;case"day":r.day=ra(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),Gn(r),r}function aa(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=ra(t,n,i,o,null==a?void 0:a.round);break}case"minute":r.minute=ra(e.minute,n,0,59,null==a?void 0:a.round);break;case"second":r.second=ra(e.second,n,0,59,null==a?void 0:a.round);break;case"millisecond":r.millisecond=ra(e.millisecond,n,0,999,null==a?void 0:a.round);break;default:throw new Error("Unsupported field "+t)}return r}function ra(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 ia(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=On(Un(Hn(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),Wn(jn(n,e.timeZone),e.calendar)}function oa(e){let t=Wn(e,new dn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function la(e){return`${oa(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 sa(e){return`${la(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 da(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 ca(e){let t,n="object"==typeof e[0]?e.shift():new dn;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 ua=new WeakMap;class ma{copy(){return this.era?new ma(this.calendar,this.era,this.year,this.month,this.day):new ma(this.calendar,this.year,this.month,this.day)}add(e){return Un(this,e)}subtract(e){return Xn(this,e)}set(e){return Qn(this,e)}cycle(e,t,n){return na(this,e,t,n)}toDate(e){return An(this,e)}toString(){return oa(this)}compare(e){return fn(this,e)}constructor(...e){da(this,ua,{writable:!0,value:void 0});let[t,n,a,r,i]=ca(e);this.calendar=t,this.era=n,this.year=a,this.month=r,this.day=i,Gn(this)}}var pa=new WeakMap;class ha{copy(){return this.era?new ha(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ha(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Un(this,e)}subtract(e){return Xn(this,e)}set(e){return Qn(ea(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return na(this,e,t,n);default:return aa(this,e,t,n)}}toDate(e,t){return An(this,e,t)}toString(){return la(this)}compare(e){let t=fn(this,e);return 0===t?function(e,t){return vn(e)-vn(t)}(this,Hn(e)):t}constructor(...e){da(this,pa,{writable:!0,value:void 0});let[t,n,a,r,i]=ca(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,Gn(this)}}var ga=new WeakMap;class fa{copy(){return this.era?new fa(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new fa(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return ia(this,e)}subtract(e){return function(e,t){return ia(e,Jn(t))}(this,e)}set(e,t){return function(e,t,n){let a=Hn(e),r=ea(Qn(a,t),t);return 0===r.compare(a)?e:Wn(jn(On(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=Hn(e),o=Wn(ea(i,{hour:t}),new dn),l=[On(o,e.timeZone,"earlier"),On(o,e.timeZone,"later")].filter((t=>jn(t,e.timeZone).day===o.day))[0],s=Wn(ea(i,{hour:r}),new dn),d=[On(s,e.timeZone,"earlier"),On(s,e.timeZone,"later")].filter((t=>jn(t,e.timeZone).day===s.day)).pop(),c=Pn(e)-e.offset,u=Math.floor(c/Kn),m=c%Kn;return c=ra(u,n,Math.floor(l/Kn),Math.floor(d/Kn),null==a?void 0:a.round)*Kn+m,Wn(jn(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return aa(e,t,n,a);case"era":case"year":case"month":case"day":return Wn(jn(On(na(Hn(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=Pn(e)-e.offset;return new Date(t)}(this)}toString(){return sa(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Zn(e,this.timeZone).toDate().getTime()}constructor(...e){da(this,ga,{writable:!0,value:void 0});let[t,n,a,r,i]=ca(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,Gn(this)}}const va=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],ya=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ba=[1867,1911,1925,1988,2018],wa=["meiji","taisho","showa","heisei","reiwa"];function xa(e){const t=va.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?va.length-1:0===t?0:t-1}function Ea(e){let t=ba[wa.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ma(e.year+t,e.month,e.day)}class $a extends dn{fromJulianDay(e){let t=super.fromJulianDay(e),n=xa(t);return new ma(this,wa[n],t.year-ba[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(Ea(e))}balanceDate(e){let t=Ea(e),n=xa(t);wa[n]!==e.era&&(e.era=wa[n],e.year=t.year-ba[n]),this.constrainDate(e)}constrainDate(e){let t=wa.indexOf(e.era),n=ya[t];if(null!=n){let[a,r,i]=n,o=a-ba[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]=va[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(a,e.day))}}getEras(){return wa}getYearsInEra(e){let t=wa.indexOf(e.era),n=va[t],a=va[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(Ea(e))}getMinimumMonthInYear(e){let t=Da(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Da(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function Da(e){if(1===e.year){let t=wa.indexOf(e.era);return va[t]}}class ka extends dn{fromJulianDay(e){let t=super.fromJulianDay(e),n=on(t.era,t.year);return new ma(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Ca(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Ca(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Ca(e){let[t,n]=ln(e.year+-543);return new ma(t,n,e.month,e.day)}const Sa=1911;function Ia(e){return"minguo"===e.era?e.year+Sa:1-e.year+Sa}function Na(e){let t=e-Sa;return t>0?["minguo",t]:["before_minguo",1-t]}class La extends dn{fromJulianDay(e){let t=super.fromJulianDay(e),n=on(t.era,t.year),[a,r]=Na(n);return new ma(this,a,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Pa(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Na(Ia(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Pa(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-Sa}constructor(...e){super(...e),this.identifier="roc"}}function Pa(e){let[t,n]=ln(Ia(e));return new ma(t,n,e.month,e.day)}const Ra=1948320,Ta=[0,31,62,93,124,155,186,216,246,276,306,336];class za{fromJulianDay(e){let t=e-Ra,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 ma(this,n,r+1,a-Ta[r]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=Ta[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 tn(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class Ma extends dn{fromJulianDay(e){let t,n,a,r=super.fromJulianDay(e),i=r.year-78,o=e-an(r.era,r.year,1,1);if(o<80?(i--,t=rn(r.year-1)?31:30,o+=t+155+90+10):(t=rn(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 ma(this,i,n,a)}toJulianDay(e){let t,n,a=e.year+78,[r,i]=ln(a);return rn(i)?(t=31,n=an(r,i,3,21)):(t=30,n=an(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&&rn(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 Fa=1948440,Va=1948439,Oa=1300,Aa=1600,ja=460322;function Ba(e,t,n,a){return a+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function Ha(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),r=Math.min(12,Math.ceil((n-(29+Ba(t,a,1,1)))/29.5)+1),i=n-Ba(t,a,r,1)+1;return new ma(e,a,r,i)}function Wa(e){return(14+11*e)%30<11}class Za{fromJulianDay(e){return Ha(this,Fa,e)}toJulianDay(e){return Ba(Fa,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Wa(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Wa(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Ka extends Za{fromJulianDay(e){return Ha(this,Va,e)}toJulianDay(e){return Ba(Va,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Ua,_a;function Ya(e){return ja+_a[e-Oa]}function qa(e,t){let n=1<<11-(t-1);return 0==(Ua[e-Oa]&n)?29:30}function Ga(e,t){let n=Ya(e);for(let a=1;a<t;a++)n+=qa(e,a);return n}function Ja(e){return _a[e+1-Oa]-_a[e-Oa]}class Xa extends Za{fromJulianDay(e){let t=e-Fa,n=Ya(Oa),a=Ya(Aa);if(t<n||t>a)return super.fromJulianDay(e);{let e=Oa-1,n=1,a=1;for(;a>0;){e++,a=t-Ya(e)+1;let r=Ja(e);if(a===r){n=12;break}if(a<r){let t=qa(e,n);for(n=1;a>t;)a-=t,n++,t=qa(e,n);break}}return new ma(this,e,n,t-Ga(e,n)+1)}}toJulianDay(e){return e.year<Oa||e.year>Aa?super.toJulianDay(e):Fa+Ga(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<Oa||e.year>Aa?super.getDaysInMonth(e):qa(e.year,e.month)}getDaysInYear(e){return e.year<Oa||e.year>Aa?super.getDaysInYear(e):Ja(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ua||(Ua=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!_a){_a=new Uint32Array(Aa-Oa+1);let e=0;for(let t=Oa;t<=Aa;t++){_a[t-Oa]=e;for(let n=1;n<=12;n++)e+=qa(t,n)}}}}const Qa=347997;function er(e){return tn(7*e+1,19)<7}function tr(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=29*t+Math.floor(n/25920);return tn(3*(a+1),7)<3&&(a+=1),a}function nr(e){return tr(e)+function(e){let t=tr(e-1),n=tr(e);return tr(e+1)-n==356?2:n-t==382?1:0}(e)}function ar(e){return nr(e+1)-nr(e)}function rr(e,t){if(t>=6&&!er(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=ar(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?er(e)?30:0:30}class ir{fromJulianDay(e){let t=e-Qa,n=25920*t/765433,a=Math.floor((19*n+234)/235)+1,r=nr(a),i=Math.floor(t-r);for(;i<1;)a--,r=nr(a),i=Math.floor(t-r);let o=1,l=0;for(;l<i;)l+=rr(a,o),o++;return o--,l-=rr(a,o),new ma(this,a,o,i-l)}toJulianDay(e){let t=nr(e.year);for(let n=1;n<e.month;n++)t+=rr(e.year,n);return t+e.day+Qa}getDaysInMonth(e){return rr(e.year,e.month)}getMonthsInYear(e){return er(e.year)?13:12}getDaysInYear(e){return ar(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(er(t.year)&&!er(e.year)&&t.month>6?e.month--:!er(t.year)&&er(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const or=1723856,lr=1824665,sr=5500;function dr(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function cr(e,t){let n=Math.floor(4*(t-e)/1461),a=1+Math.floor((t-dr(e,n,1,1))/30);return[n,a,t+1-dr(e,n,a,1)]}function ur(e){return Math.floor(e%4/3)}function mr(e,t){return t%13!=0?30:ur(e)+5}class pr{fromJulianDay(e){let[t,n,a]=cr(or,e),r="AM";return t<=0&&(r="AA",t+=sr),new ma(this,r,t,n,a)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=sr),dr(or,t,e.month,e.day)}getDaysInMonth(e){return mr(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+ur(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class hr extends pr{fromJulianDay(e){let[t,n,a]=cr(or,e);return t+=sr,new ma(this,"AA",t,n,a)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class gr extends pr{fromJulianDay(e){let[t,n,a]=cr(lr,e),r="CE";return t<=0&&(r="BCE",t=1-t),new ma(this,r,t,n,a)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),dr(lr,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),mr(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 fr(e){switch(e){case"buddhist":return new ka;case"ethiopic":return new pr;case"ethioaa":return new hr;case"coptic":return new gr;case"hebrew":return new ir;case"indian":return new Ma;case"islamic-civil":return new Za;case"islamic-tbla":return new Ka;case"islamic-umalqura":return new Xa;case"japanese":return new $a;case"persian":return new za;case"roc":return new La;default:return new dn}}let vr=new Map;class yr{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==Er&&(Er="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return Er}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=wr(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=wr(e,t),this.options=t}}const br={true:{ja:"h11"},false:{}};function wr(e,t={}){if("boolean"==typeof t.hour12&&function(){null==xr&&(xr="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return xr}()){t={...t};let n=br[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(vr.has(n))return vr.get(n);let a=new Intl.DateTimeFormat(e,t);return vr.set(n,a),a}let xr=null;let Er=null;l(null),l(null),l(null),l(null),l(null);const $r=l({}),Dr="undefined"!=typeof document?e.useLayoutEffect:()=>{};function kr(e){const t=o(null);return Dr((()=>{t.current=e}),[e]),s(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}const Cr={prefix:String(Math.round(1e10*Math.random())),current:0},Sr=e.createContext(Cr),Ir=e.createContext(!1);let Nr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Lr=new WeakMap;const Pr="function"==typeof e.useId?function(n){let a=e.useId(),[r]=t(Mr()),i=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${Cr.prefix}`;return n||`${i}-${a}`}:function(t){let n=d(Sr);n!==Cr||Nr||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(Sr),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=Lr.get(t);null==e?Lr.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,Lr.delete(t))}a.current=++n.current}return a.current}(!!t),r=n===Cr&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return t||`${r}-${a}`};function Rr(){return!1}function Tr(){return!0}function zr(e){return()=>{}}function Mr(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(zr,Rr,Tr):d(Ir)}let Fr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Vr=new Map;function Or(e){let[n,r]=t(e),i=o(null),l=Pr(n),d=s((e=>{i.current=e}),[]);return Fr&&Vr.set(l,d),Dr((()=>{let e=l;return()=>{Vr.delete(e)}}),[l]),a((()=>{let e=i.current;e&&(i.current=null,r(e))})),l}function Ar(e,t){if(e===t)return e;let n=Vr.get(e);if(n)return n(t),t;let a=Vr.get(t);return a?(a(e),e):t}function jr(e=[]){let n=Or(),[a,r]=function(e){let[n,a]=t(e),r=o(null),i=kr((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:n===e.value?i():a(e.value)}));Dr((()=>{r.current&&i()}));let l=kr((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 Dr(i,[n,i,...e]),a}function Br(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const Hr=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Wr=e=>{if(e&&"window"in e&&e.window===e)return e;return Hr(e).defaultView||window};function Zr(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=Zr(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Kr(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Zr(e))&&(a&&(a+=" "),a+=t);return a}function Ur(...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]=Br(n,r):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof r?"id"===e&&n&&r?t.id=Ar(n,r):t[e]=void 0!==r?r:n:t[e]=Kr(n,r)}}return t}const _r=new Set(["id"]),Yr=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),qr=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Gr=/^(data-.*)$/;function Jr(e,t={}){let{labelable:n,isLink:a,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(_r.has(t)||n&&Yr.has(t)||a&&qr.has(t)||(null==r?void 0:r.has(t))||Gr.test(t))&&(i[t]=e[t]);return i}function Xr(e){if(function(){if(null==Qr){Qr=!1;try{document.createElement("div").focus({get preventScroll(){return Qr=!0,!0}})}catch(e){}}return Qr}())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 Qr=null;function ei(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 ti(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 ni(){return ti(/^Mac/i)}function ai(){return ti(/^iPad/i)||ni()&&navigator.maxTouchPoints>1}function ri(){return ti(/^iPhone/i)||ai()}function ii(){return ei(/AppleWebKit/i)&&!ei(/Chrome/i)}function oi(){return ei(/Android/i)}function li(e,t,n=!0){var a,r;let{metaKey:i,ctrlKey:o,altKey:l,shiftKey:s}=t;ei(/Firefox/i)&&(null===(r=window.event)||void 0===r||null===(a=r.type)||void 0===a?void 0:a.startsWith("key"))&&"_blank"===e.target&&(ni()?i=!0:o=!0);let d=ii()&&ni()&&!ai()?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});li.isOpening=n,Xr(e),e.dispatchEvent(d),li.isOpening=!1}li.isOpening=!1;let si=new Map,di=new Set;function ci(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let a=si.get(n.target);if(a&&(a.delete(n.propertyName),0===a.size&&(n.target.removeEventListener("transitioncancel",t),si.delete(n.target)),0===si.size)){for(let e of di)e();di.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let a=si.get(n.target);a||(a=new Set,si.set(n.target,a),n.target.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function ui(e){requestAnimationFrame((()=>{0===si.size?e():di.add(e)}))}function mi(){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 pi(e,t){let{id:n,"aria-label":a,"aria-labelledby":r}=e;if(n=Or(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 hi(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 gi(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 fi(e,t){Dr((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function vi(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 yi(e,t){let n=e;for(vi(n,t)&&(n=n.parentElement);n&&!vi(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?ci():document.addEventListener("DOMContentLoaded",ci));let bi=0;const wi=new Map;function xi(e){let[n,a]=t();return Dr((()=>{if(!e)return;let t=wi.get(e);if(t)a(t.element.id);else{let n="react-aria-description-"+bi++;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},wi.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),wi.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function Ei(e,t,n,r){let i=kr(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 $i(e,t){let n=Di(e,t,"left"),a=Di(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 Di(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 ki(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;)vi(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)$i(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 Ci(e){return!(0!==e.mozInputSource||!e.isTrusted)||(oi()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Si(e,t){let n=o(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Ii(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 Ni="default",Li="",Pi=new WeakMap;function Ri(e){if(ri()){if("default"===Ni){const t=Hr(e);Li=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ni="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Pi.set(e,e.style.userSelect),e.style.userSelect="none")}function Ti(e){if(ri()){if("disabled"!==Ni)return;Ni="restoring",setTimeout((()=>{ui((()=>{if("restoring"===Ni){const t=Hr(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Li||""),Li="",Ni="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Pi.has(e)){let t=Pi.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Pi.delete(e)}}const zi=e.createContext({register:()=>{}});function Mi(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Fi(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,Mi(e,t,"set"),n),n}zi.displayName="PressResponderContext";var Vi=new WeakMap;class Oi{continuePropagation(){Fi(this,Vi,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,Mi(e,Vi,"get"));var e}constructor(e,t,n){da(this,Vi,{writable:!0,value:void 0}),Fi(this,Vi,!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 Ai=Symbol("linkClicked");function ji(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(zi);if(t){let{register:n,...a}=t;e=Ur(a,e),n()}return fi(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:E}=mi(),$=kr(((e,t)=>{let n=w.current;if(u||n.didFirePressStart)return!1;let a=!0;if(n.isTriggeringEvent=!0,l){let n=new Oi("pressstart",t,e);l(n),a=n.shouldStopPropagation}return i&&i(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,b(!0),a})),D=kr(((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 Oi("pressend",t,e);s(n),o=n.shouldStopPropagation}if(i&&i(!1),b(!1),n&&a&&!u){let a=new Oi("press",t,e);n(a),o&&(o=a.shouldStopPropagation)}return r.isTriggeringEvent=!1,o})),k=kr(((e,t)=>{let n=w.current;if(u)return!1;if(c){n.isTriggeringEvent=!0;let a=new Oi("pressup",t,e);return c(a),n.isTriggeringEvent=!1,a.shouldStopPropagation}return!0})),C=kr((e=>{let t=w.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&D(Zi(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,E(),g||Ti(t.target))})),S=kr((e=>{h&&C(e)})),I=r((()=>{let e=w.current,t={onKeyDown(t){if(Hi(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var a;_i(t.target,t.key)&&t.preventDefault();let r=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,r=$(t,"keyboard");let a=t.currentTarget,i=t=>{Hi(t,a)&&!t.repeat&&a.contains(t.target)&&e.target&&k(Zi(e.target,t),"keyboard")};x(Hr(t.currentTarget),"keyup",Br(i,n),!0)}r&&t.stopPropagation(),t.metaKey&&ni()&&(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&&!li.isOpening){let n=!0;if(u&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||Ci(t.nativeEvent))){u||p||Xr(t.currentTarget);let e=$(t,"virtual"),a=k(t,"virtual"),r=D(t,"virtual");n=e&&a&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Hi(t,e.target)){var a;_i(t.target,t.key)&&t.preventDefault();let n=t.target;D(Zi(e.target,t),"keyboard",e.target.contains(n)),E(),"Enter"!==t.key&&Bi(e.target)&&e.target.contains(n)&&!t[Ai]&&(t[Ai]=!0,li(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,!oi()&&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;Ui(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||Xr(t.currentTarget),g||Ri(e.target),o=$(t,e.pointerType),x(Hr(t.currentTarget),"pointermove",n,!1),x(Hr(t.currentTarget),"pointerup",a,!1),x(Hr(t.currentTarget),"pointercancel",r,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ui(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Ki(t,t.currentTarget)&&k(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&Ki(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,$(Zi(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,D(Zi(e.target,t),e.pointerType,!1),S(t)))},a=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(Ki(t,e.target)&&null!=e.pointerType?D(Zi(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&D(Zi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),g||Ti(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(Ui(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=Ci(t.nativeEvent)?"virtual":"mouse",u||p||Xr(t.currentTarget),$(t,e.pointerType)&&t.stopPropagation(),x(Hr(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=$(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=D(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(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&Ki(t,e.target)&&null!=e.pointerType?D(Zi(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&D(Zi(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||Xr(t.currentTarget),g||Ri(e.target),$(t,e.pointerType)&&t.stopPropagation(),x(Wr(t.currentTarget),"scroll",a,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Wi(t.nativeEvent,e.activePointerId),a=!0;n&&Ki(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,a=$(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,a=D(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=Wi(t.nativeEvent,e.activePointerId),a=!0;n&&Ki(n,t.currentTarget)&&null!=e.pointerType?(k(t,e.pointerType),a=D(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(a=D(t,e.pointerType,!1)),a&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!g&&Ti(e.target),E()},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,E,g,C,S,D,$,k]);return a((()=>()=>{var e;g||Ti(null!==(e=w.current.target)&&void 0!==e?e:void 0)}),[g]),{isPressed:m||y,pressProps:Ur(v,I)}}function Bi(e){return"A"===e.tagName&&e.hasAttribute("href")}function Hi(e,t){const{key:n,code:a}=e,r=t,i=r.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==a||r instanceof Wr(r).HTMLInputElement&&!qi(r,n)||r instanceof Wr(r).HTMLTextAreaElement||r.isContentEditable||("link"===i||!i&&Bi(r))&&"Enter"!==n)}function Wi(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 Zi(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ki(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 Ui(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function _i(e,t){return e instanceof HTMLInputElement?!qi(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!Bi(e)}const Yi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qi(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Yi.has(e.type)}class Gi{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 Ji(e){let t=o({isFocused:!1,observer:null});Dr((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=kr((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 Gi("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 Xi(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=Ji(i),l=s((e=>{const t=Hr(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 Qi=null,eo=new Set,to=new Map,no=!1,ao=!1;const ro={Tab:!0,Escape:!0};function io(e,t){for(let n of eo)n(e,t)}function oo(e){no=!0,function(e){return!(e.metaKey||!ni()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Qi="keyboard",io("keyboard",e))}function lo(e){Qi="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(no=!0,io("pointer",e))}function so(e){Ci(e)&&(no=!0,Qi="virtual")}function co(e){e.target!==window&&e.target!==document&&(no||ao||(Qi="virtual",io("virtual",e)),no=!1,ao=!1)}function uo(){no=!1,ao=!0}function mo(e){if("undefined"==typeof window||to.get(Wr(e)))return;const t=Wr(e),n=Hr(e);let a=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){no=!0,a.apply(this,arguments)},n.addEventListener("keydown",oo,!0),n.addEventListener("keyup",oo,!0),n.addEventListener("click",so,!0),t.addEventListener("focus",co,!0),t.addEventListener("blur",uo,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",lo,!0),n.addEventListener("pointermove",lo,!0),n.addEventListener("pointerup",lo,!0)):(n.addEventListener("mousedown",lo,!0),n.addEventListener("mousemove",lo,!0),n.addEventListener("mouseup",lo,!0)),t.addEventListener("beforeunload",(()=>{po(e)}),{once:!0}),to.set(t,{focus:a})}const po=(e,t)=>{const n=Wr(e),a=Hr(e);t&&a.removeEventListener("DOMContentLoaded",t),to.has(n)&&(n.HTMLElement.prototype.focus=to.get(n).focus,a.removeEventListener("keydown",oo,!0),a.removeEventListener("keyup",oo,!0),a.removeEventListener("click",so,!0),n.removeEventListener("focus",co,!0),n.removeEventListener("blur",uo,!1),"undefined"!=typeof PointerEvent?(a.removeEventListener("pointerdown",lo,!0),a.removeEventListener("pointermove",lo,!0),a.removeEventListener("pointerup",lo,!0)):(a.removeEventListener("mousedown",lo,!0),a.removeEventListener("mousemove",lo,!0),a.removeEventListener("mouseup",lo,!0)),to.delete(n))};function ho(){return"pointer"!==Qi}function go(){return Qi}"undefined"!=typeof document&&function(e){const t=Hr(e);let n;"loading"!==t.readyState?mo(e):(n=()=>{mo(e)},t.addEventListener("DOMContentLoaded",n))}();const fo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vo(e,t,n){mo(),a((()=>{let t=(t,a)=>{(function(e,t,n){var a;const r="undefined"!=typeof window?Wr(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?Wr(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?Wr(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Wr(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof r&&!fo.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&&!ro[n.key])})(!!(null==n?void 0:n.isTextInput),t,a)&&e(ho())};return eo.add(t),()=>{eo.delete(t)}}),t)}function yo(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=Ji(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 bo=!1,wo=0;function xo(){bo=!0,setTimeout((()=>{bo=!1}),50)}function Eo(e){"touch"===e.pointerType&&xo()}function $o(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Eo):document.addEventListener("touchend",xo),wo++,()=>{wo--,wo>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Eo):document.removeEventListener("touchend",xo))}}function Do(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($o,[]);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=>{bo&&"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||bo||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 ko(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 Co(e){const t=Hr(e);if("virtual"===go()){let n=t.activeElement;ui((()=>{t.activeElement===n&&e.isConnected&&Xr(e)}))}else Xr(e)}function So(e,t){return"#comment"!==e.nodeName&&function(e){const t=Wr(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||So(e.parentElement,e))}const Io=["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]"],No=Io.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Io.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Lo=Io.join(':not([hidden]):not([tabindex="-1"]),');function Po(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function Ro(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Co(e)}catch(e){}}function To(e,t,n){let a=(null==t?void 0:t.tabbable)?Lo:No,r=Hr(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)||!So(e)||n&&!Po(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 zo(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||Hr(a).activeElement,d=To(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&&Ro(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||Hr(a).activeElement,d=To(a,{tabbable:i,accept:l});if(!a.contains(s)){let e=Mo(d);return e&&Ro(e,!0),null!=e?e:null}d.currentNode=s;let c=d.previousNode();if(!c&&o){d.currentNode=a;let e=Mo(d);if(!e)return null;c=e}return c&&Ro(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=To(a,{tabbable:r,accept:i}).nextNode();return o&&Ro(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=Mo(To(a,{tabbable:r,accept:i}));return o&&Ro(o,!0),null!=o?o:null}}}function Mo(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class Fo{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 Vo({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&&Po(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 Fo;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 Vo({scopeRef:null}),this.fastMap.set(null,this.root)}}class Vo{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 Oo(e={}){let{autoFocus:n=!1,isTextInput:a,within:r}=e,i=o({isFocused:!1,isFocusVisible:n||ho()}),[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]);vo((e=>{i.current.isFocusVisible=e,m()}),[],{isTextInput:a});let{focusProps:h}=Xi({isDisabled:r,onFocusChange:p}),{focusWithinProps:g}=yo({isDisabled:!r,onFocusWithinChange:p});return{isFocused:l,isFocusVisible:c,focusProps:r?g:h}}new Fo;let Ao=e.createContext(null);function jo(e,t){let{focusProps:n}=Xi(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ko(e.onKeyDown),onKeyUp:ko(e.onKeyUp)}}}(e),i=Ur(n,r),l=function(e){let t=d(Ao)||{};fi(t,e);let{ref:n,...a}=t;return a}(t),s=e.isDisabled?{}:l,c=o(e.autoFocus);return a((()=>{c.current&&t.current&&Co(t.current),c.current=!1}),[t]),{focusableProps:Ur({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const Bo=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ho=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Wo(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 Bo.has(t.script)}let t=e.split("-")[0];return Ho.has(t)}const Zo=Symbol.for("react-aria.i18n.locale");function Ko(){let e="undefined"!=typeof window&&window[Zo]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Wo(e)?"rtl":"ltr"}}let Uo=Ko(),_o=new Set;function Yo(){Uo=Ko();for(let e of _o)e(Uo)}const qo=e.createContext(null);function Go(){let e=function(){let e=Mr(),[n,r]=t(Uo);return a((()=>(0===_o.size&&window.addEventListener("languagechange",Yo),_o.add(r),()=>{_o.delete(r),0===_o.size&&window.removeEventListener("languagechange",Yo)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return d(qo)||e}const Jo=Symbol.for("react-aria.i18n.locale"),Xo=Symbol.for("react-aria.i18n.strings");let Qo;class el{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[Jo];if(void 0===Qo){let e=window[Xo];if(!e)return null;Qo={};for(let n in e)Qo[n]=new el({[t]:e[n]},t)}let n=null==Qo?void 0:Qo[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 tl=new Map,nl=new Map;class al{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=tl.get(r);return i||(i=new Intl.PluralRules(this.locale,{type:n}),tl.set(r,i)),a=t[i.select(e)]||t.other,"function"==typeof a?a():a}number(e){let t=nl.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),nl.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 rl=new WeakMap;function il(e,t){return t&&el.getGlobalDictionaryForPackage(t)||function(e){let t=rl.get(e);return t||(t=new el(e),rl.set(e,t)),t}(e)}function ol(e,t){let{locale:n}=Go(),a=il(e,t);return r((()=>new al(n,a)),[n,a])}function ll(e){e=Si(null!=e?e:{},sl);let{locale:t}=Go();return r((()=>new yr(t,e)),[t,e])}function sl(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 dl=new Map,cl=!1;try{cl="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let ul=!1;try{ul="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const ml={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class pl{format(e){let t="";if(t=cl||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&&!ul){var n;let{unit:e,unitDisplay:a="short",locale:r}=this.resolvedOptions();if(!e)return t;let i=null===(n=ml[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 cl||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),ul||"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&&!ul){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=ml[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(dl.has(r))return dl.get(r);let i=new Intl.NumberFormat(e,t);return dl.set(r,i),i}(e,t),this.options=t}}const hl=new RegExp("^.*\\(.*\\).*$"),gl=["latn","arab","hanidec"];class fl{parse(e){return yl(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return yl(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return yl(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const vl=new Map;function yl(e,t,n){let a=bl(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(n))for(let r of gl)if(r!==a.options.numberingSystem){let a=bl(e+(e.includes("-u-")?"-nu-":"-u-nu-")+r,t);if(a.isValidPartialNumber(n))return a}return a}function bl(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),a=vl.get(n);return a||(a=new wl(e,t),vl.set(n,a)),a}class wl{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=$l(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 fl(this.locale,e).parse(new pl(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&hl.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=$l(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=$l(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=$l(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=El.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=>!xl.has(e.type))).map((e=>Dl(e.value))),b=u.flatMap((e=>e.filter((e=>!xl.has(e.type))).map((e=>Dl(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"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),$=new Map(E.map(((e,t)=>[e,t]))),D=new RegExp(`[${E.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:f,group:v,literals:x,numeral:D,index:e=>String($.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 xl=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),El=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $l(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Dl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let kl=new Map;function Cl(e){let t=function(e){let{locale:t}=Go(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(kl.has(n))return kl.get(n);let a=new Intl.Collator(t,e);return kl.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 Sl={};function Il(e){return e&&e.__esModule?e.default:e}Sl={"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 Nl=new WeakMap;function Ll(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function Pl(e,t,n,a){let i=ol(Il(Sl),"@react-aria/calendar"),o=Ll(e)||Ll(t),l=ll({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),s=ll({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return r((()=>{if(un(e,wn(e))){if(un(t,xn(e)))return l.format(e.toDate(n));if(un(t,xn(t)))return a?Rl(l,i,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))}return a?Rl(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}),[e,t,l,s,i,n,a])}function Rl(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 Tl=7e3;let zl=null;function Ml(e,t="assertive",n=Tl){zl||(zl=new Fl),zl.announce(e,t,n)}class Fl{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=Tl){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 Vl(e,n){let a=ol((i=Sl)&&i.__esModule?i.default:i,"@react-aria/calendar");var i;let o=Jr(e),l=Pl(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),s=Pl(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);gi((()=>{n.isFocused||Ml(s)}),[s]);let d=function(e){let t,n,a=ol(Il(Sl),"@react-aria/calendar");"highlightedRange"in e?({start:t,end:n}=e.highlightedRange||{}):t=n=e.value;let i=ll({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ll(t)||Ll(n),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return r((()=>{if(!o&&t&&n){if(un(t,n)){let n=i.format(t.toDate(e.timeZone));return a.format("selectedDateDescription",{date:n})}{let r=Rl(i,a,t,n,e.timeZone);return a.format("selectedRangeDescription",{dateRange:r})}}return""}),[t,n,o,e.timeZone,a,i])}(n);gi((()=>{d&&Ml(d,"polite",4e3)}),[d]);let c=jr([Boolean(e.errorMessage),e.isInvalid,e.validationState]);Nl.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:Ur(o,pi({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 Ol(e,t,n){let{date:i,isDisabled:l}=e,{errorMessageId:s,selectedDateDescription:d}=Nl.get(t),c=ol((u=Sl)&&u.__esModule?u.default:u,"@react-aria/calendar");var u;let m=ll({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ll(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&&un(t.value,i));v&&(p=!0),i=Si(i,mn);let y=r((()=>i.toDate(t.timeZone)),[i,t.timeZone]),b=function(e,t){return un(e,gn(t))}(i,t.timeZone),w=r((()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(un(i,t.value.start)||un(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&&un(i,t.minValue)?e+=", "+c.format("minimumDate"):t.maxValue&&un(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 E=xi(x),$=o(!1),D=o(!1),k=o(null),{pressProps:C,isPressed:S}=ji({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(un(i,t.highlightedRange.start))return t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(i),t.setDragging(!0),void(D.current=!0);if(un(i,t.highlightedRange.end))return t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setDragging(!0),void(D.current=!0)}let n=()=>{t.setDragging(!0),k.current=null,t.selectDate(i),t.setFocusedDate(i),$.current=!0};"touch"===e.pointerType?k.current=setTimeout(n,200):n()}},onPressEnd(){D.current=!1,$.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(D.current)t.setAnchorDate(i);else if(t.anchorDate&&!$.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=un(i,t.focusedDate)?0:-1),a((()=>{h&&n.current&&(Xr(n.current),"pointer"!==go()&&document.activeElement===n.current&&ki(n.current,{containingElement:yi(n.current)}))}),[h,n]);let N=ll({day:"numeric",timeZone:t.timeZone,calendar:i.calendar.identifier}),L=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:Ur(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,E["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:L}}function Al(e,t,n){let{validationBehavior:r,focus:i}=e;Dr((()=>{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:jl(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let o=kr((()=>{t.resetValidation()})),l=kr((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(),Qi=l="keyboard",io(l,null));e.preventDefault()})),s=kr((()=>{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 jl(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 Bl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Hl={...Bl,customError:!0,valid:!1},Wl={isInvalid:!1,validationDetails:Bl,validationErrors:[]},Zl=l({}),Kl="__formValidationState"+Date.now();function Ul(e){if(e[Kl]){let{realtimeValidation:t,displayValidation:n,updateValidation:a,resetValidation:r,commitValidation:i}=e[Kl];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:Hl}:null,h=r((()=>Yl(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return _l(n)}return[]}(u,s))),[u,s]);(null==c?void 0:c.validationDetails.valid)&&(c=null);let g=d(Zl),f=r((()=>l?Array.isArray(l)?l.flatMap((e=>_l(g[e]))):_l(g[l]):[]),[g,l]),[v,y]=t(g),[b,w]=t(!1);g!==v&&(y(g),w(!1));let x=r((()=>Yl(b?[]:f)),[b,f]),E=o(Wl),[$,D]=t(Wl),k=o(Wl),C=()=>{if(!S)return;I(!1);let e=h||c||E.current;ql(e,k.current)||(k.current=e,D(e))},[S,I]=t(!1);return a(C),{realtimeValidation:p||x||h||c||Wl,displayValidation:"native"===m?p||x||$:p||x||h||c||$,updateValidation(e){"aria"!==m||ql($,e)?E.current=e:D(e)},resetValidation(){let e=Wl;ql(e,k.current)||(k.current=e,D(e)),"native"===m&&I(!1),w(!0)},commitValidation(){"native"===m&&I(!0),w(!0)}}}(e)}function _l(e){return e?Array.isArray(e)?e:[e]:[]}function Yl(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Hl}:null}function ql(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 Gl(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=Or(t);let o=Or(),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:pi({id:t,"aria-label":r,"aria-labelledby":a})}}(e),l=jr([Boolean(t),Boolean(n),a,r]),s=jr([Boolean(t),Boolean(n),a,r]);return o=Ur(o,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:o,descriptionProps:{id:l},errorMessageProps:{id:s}}}const Jl={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 Xl(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}=yo({isDisabled:!a,onFocusWithinChange:e=>o(e)});return{visuallyHiddenProps:{...l,style:r((()=>i?n:n?{...Jl,...n}:Jl),[i])}}}(n);return e.createElement(i,Ur(s,d),a)}var Ql={};Ql={"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 es=new WeakMap,ts="__role_"+Date.now(),ns="__focusManager_"+Date.now();function as(e,t,n){var i;let{isInvalid:l,validationErrors:s,validationDetails:d}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:m,errorMessageProps:p}=Gl({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),h=o(null),{focusWithinProps:g}=yo({...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=ol((v=Ql)&&v.__esModule?v.default:v,"@react-aria/datepicker");var v;let y="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",b="hour"===t.maxGranularity?"time":"date",w=xi(t.value?f.format(y,{[b]:t.formatValue({month:"long"})}):""),x="presentation"===e[ts]?u["aria-describedby"]:[w["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=e[ns],$=r((()=>E||zo(n)),[E,n]),D=function(e,t,n){let{direction:a}=Go(),i=r((()=>zo(t)),[t]),o=()=>{var e;let n=null===(e=window.event)||void 0===e?void 0:e.target,a=To(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}=ji({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){"mouse"!==e.pointerType&&o()}});return Ur(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[ts]);es.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:x,focusManager:$});let k,C=o(e.autoFocus);k="presentation"===e[ts]?{role:"presentation"}:Ur(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":x}),a((()=>{C.current&&$.focusFirst(),C.current=!1}),[$]),function(e,t,n){let r=o(t),i=kr((()=>{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),Al({...e,focus(){$.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=Jr(e);return{labelProps:{...c,onClick:()=>{$.focusFirst()}},fieldProps:Ur(I,k,D,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 rs{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}var is={};function os(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=ol((y=is)&&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},E=()=>{w.current=!1},$=""===r?v.format("Empty"):(r||`${n}`).replace("-","−");a((()=>{var e;w.current&&(e="assertive",zl&&zl.clear(e),Ml($,"assertive"))}),[$]);const D=kr((e=>{b(),null==u||u(),t.current=window.setTimeout((()=>{(void 0===l||isNaN(l)||void 0===n||isNaN(n)||n<l)&&D(60)}),e)})),k=kr((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}=mi();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":$,"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:E},incrementButtonProps:{onPressStart:()=>{D(400),S(window,"contextmenu",C)},onPressEnd:()=>{b(),I()},onFocus:x,onBlur:E},decrementButtonProps:{onPressStart:()=>{k(400),S(window,"contextmenu",C)},onPressEnd:()=>{b(),I()},onFocus:x,onBlur:E}}}function ls(t,n,a){let i=o(""),{locale:l}=Go(),s=function(){let{locale:e}=Go(),t=il((n=Ql)&&n.__esModule?n.default:n,"@react-aria/datepicker");var n;return r((()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch(n){return new rs(e,t)}}),[e,t])}(),{ariaLabel:d,ariaLabelledBy:c,ariaDescribedBy:u,focusManager:m}=es.get(n),p=t.isPlaceholder?"":t.text,h=r((()=>n.dateFormatter.resolvedOptions()),[n.dateFormatter]),g=ll({month:"long",timeZone:h.timeZone}),f=ll({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}=os({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 fl(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}=Cl({sensitivity:"base"}),x=ll({hour:"numeric",hour12:!0}),E=r((()=>{let e=new Date;return e.setHours(0),x.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[x]),$=r((()=>{let e=new Date;return e.setHours(12),x.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[x]),D=ll({year:"numeric",era:"narrow",timeZone:"UTC"}),k=r((()=>{if("era"!==t.type)return[];let e=Wn(new ma(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:D.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}),[D,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,e))n.setSegment("dayPeriod",0);else{if(!w($,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("");Ei(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)}})),Ei(a,"input",(e=>{let{inputType:t,data:n}=e;if("insertCompositionText"===t)a.current.textContent=S.current,(w(E,n)||w($,n))&&C(n)})),Dr((()=>{let e=a.current;return()=>{if(document.activeElement===e){m.focusPrevious()||m.focusNext()}}}),[a,m]);let I=ri()||"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 L=Or(),P=!n.isDisabled&&!n.isReadOnly&&t.isEditable,R=pi({"aria-label":`${"literal"===t.type?"":s.of(t.type)}${d?`, ${d}`:""}${c?", ":""}`,"aria-labelledby":c});return"literal"===t.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:Ur(v,R,{id:L,...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:P,suppressContentEditableWarning:P,spellCheck:P?"false":void 0,autoCapitalize:P?"off":void 0,autoCorrect:P?"off":void 0,[parseInt(e.version,10)>=17?"enterKeyHint":"enterkeyhint"]:P?"next":void 0,inputMode:n.isDisabled||"dayPeriod"===t.type||"era"===t.type||!P?void 0:"numeric",tabIndex:n.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(ni()?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="",ki(a.current,{containingElement:yi(a.current)}),window.getSelection().collapse(a.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}is={"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 ss=Symbol("default");function ds({values:t,children:n}){for(let[a,r]of t)n=e.createElement(a.Provider,{value:r},n);return n}function cs(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 us(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[ss])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let a=t||ss;if(!n.slots[a])throw new Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return n.slots[a]}return n}function ms(e,t,n){let a=us(n,e.slot)||{},{ref:i,...o}=a,l=hi(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=Ur(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 ps=l(!1);function hs(t){let n=(e,n)=>d(ps)?null:t(e,n);return n.displayName=t.displayName||t.name,e.forwardRef(n)}function gs(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 fs=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),vs=l({});function ys(t,n){[t,n]=ms(t,n,vs);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}=ji({onPressStart:o,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:b}=jo(e,t);u&&(b.tabIndex=r?-1:b.tabIndex);let w=Ur(b,v,Jr(e,{labelable:!0}));return{isPressed:y,buttonProps:Ur(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}=Oo(t),{hoverProps:d,isHovered:c}=Do(t),u=cs({...t,values:{isHovered:c,isPressed:i,isFocused:l,isFocusVisible:s,isDisabled:t.isDisabled||!1},defaultClassName:"react-aria-Button"});return e.createElement("button",{...Jr(t,{propNames:fs}),...Ur(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 bs=hs(ys),ws=l({});function xs(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function Es(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 ks(e,$s(e,t,n).subtract(i),t,n,a,r)}function $s(e,t,n,a,r){let i=e;return t.years?i=En(e):t.months?i=wn(e):t.weeks&&(i=kn(e,n)),ks(e,i,t,n,a,r)}function Ds(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--,ks(e,$s(e,t,n).subtract(i),t,n,a,r)}function ks(e,t,n,a,r,i){return r&&e.compare(r)>=0&&(t=Nn(t,$s(Bn(r),n,a))),i&&e.compare(i)<=0&&(t=In(t,Ds(Bn(i),n,a))),t}function Cs(e,t,n){return t&&(e=Nn(e,Bn(t))),n&&(e=In(e,Bn(n))),e}function Ss(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 Is(e){let n=r((()=>new yr(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]=Ii(e.value,e.defaultValue,e.onChange),f=r((()=>h?Wn(Bn(h),p):null),[h,p]),v=r((()=>h&&"timeZone"in h?h.timeZone:a.timeZone),[h,a.timeZone]),y=r((()=>e.focusedValue?Cs(Wn(Bn(e.focusedValue),p),s,d):void 0),[e.focusedValue,p,s,d]),b=r((()=>Cs(e.defaultFocusedValue?Wn(Bn(e.defaultFocusedValue),p):f||Wn(gn(v),p),s,d)),[e.defaultFocusedValue,f,v,p,s,d]),[w,x]=Ii(y,b,e.onFocusChange),[E,$]=t((()=>{switch(c){case"start":return $s(w,l,i,s,d);case"end":return Ds(w,l,i,s,d);default:return Es(w,l,i,s,d)}})),[D,k]=t(e.autoFocus||!1),C=r((()=>{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=Wn(w,p);$(Es(e,l,i,s,d)),x(e),I(p.identifier)}function N(e){e=Cs(e,s,d),x(e)}function L(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void g(null);if(!(t=Ss(t=Cs(t,s,d),E,u)))return;t=Wn(t,(null==h?void 0:h.calendar)||new dn),g(h&&"hour"in h?h.set(t):t)}}xs(w,s,d)?x(Cs(w,s,d)):w.compare(E)<0?$(Ds(w,l,i,s,d)):w.compare(C)>0&&$($s(w,l,i,s,d));let P=r((()=>!!f&&(!(!u||!u(f))||xs(f,s,d))),[f,u,s,d]),R=e.isInvalid||"invalid"===e.validationState||P,T=R?"invalid":null,z=r((()=>"visible"===m?l:Ns(l)),[m,l]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:f,setValue:L,visibleRange:{start:E,end:C},minValue:s,maxValue:d,focusedDate:w,timeZone:v,validationState:T,isValueInvalid:R,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=E.add(z);x(Cs(w.add(z),s,d)),$($s(ks(w,e,z,i,s,d),z,i))},focusPreviousPage(){let e=E.subtract(z);x(Cs(w.subtract(z),s,d)),$($s(ks(w,e,z,i,s,d),z,i))},focusSectionStart(){l.days?N(E):l.weeks?N(kn(w,i)):(l.months||l.years)&&N(wn(w))},focusSectionEnd(){l.days?N(C):l.weeks?N(function(e,t){return kn(e,t).add({days:6})}(w,i)):(l.months||l.years)&&N(xn(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(Ns(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(Ns(l)))},selectFocusedDate(){L(w)},selectDate(e){L(e)},isFocused:D,setFocused:k,isInvalid:e=>xs(e,s,d),isSelected(e){return null!=f&&un(e,f)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>D&&w&&un(e,w),isCellDisabled(t){return e.isDisabled||t.compare(E)<0||t.compare(C)>0||this.isInvalid(t,s,d)},isCellUnavailable:t=>e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=E.subtract({days:1});return un(e,E)||this.isInvalid(e,s,d)},isNextVisibleRangeInvalid(){let e=C.add({days:1});return un(e,C)||this.isInvalid(e,s,d)},getDatesInWeek(e,t=E){let n=t.add({weeks:e}),a=[];n=kn(n,i);let r=pn(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(un(n,e))break;n=e}for(;a.length<7;)a.push(null);return a}}}function Ns(e){let t={...e};for(let n in e)t[n]=1;return t}function Ls(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:Bn(e),end:Bn(t)}):null}function Ps(e,t){return e=Wn(e,(null==t?void 0:t.calendar)||new dn),t&&"hour"in t?t.set(e):e}function Rs(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 Ts=new el((zs={"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:"所選日期無法使用。"}})&&zs.__esModule?zs.default:zs);var zs;function Ms(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=el.getGlobalDictionaryForPackage("@react-stately/datepicker")||Ts,s=new al(e,a),c=new yr(e,Os({},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 Fs={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Vs={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Os(e,t){let n=t.shouldForceLeadingZeros?Vs:Fs;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 As(e,t){return null===e?null:e?Wn(e,t):void 0}function js(e,t,n,a){if(e)return As(e,n);let r=Wn(hn(a).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?Bn(r):a?r:Hn(r)}const Bs=new el({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 Hs={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Ws={year:5,month:2,day:7,hour:2,minute:15,second:15},Zs={dayperiod:"dayPeriod"};function Ks(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 yr(n)),[n]),b=r((()=>i(y.resolvedOptions().calendar)),[i,y]),[w,x]=Ii(e.value,e.defaultValue,e.onChange),E=r((()=>As(w,b)),[w,b]),[$,D]=t((()=>js(e.placeholderValue,g,b,f))),k=E||$,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((()=>Os({},S)),[S]),N=r((()=>new yr(n,I)),[n,I]),L=r((()=>N.resolvedOptions()),[N]),P=r((()=>N.formatToParts(new Date).filter((e=>Hs[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[N]),[R,T]=t((()=>e.value||e.defaultValue?{...P}:{})),z=o(),M=o(b.identifier);a((()=>{b.identifier!==M.current&&(M.current=b.identifier,D((t=>Object.keys(R).length>0?Wn(t,b):js(e.placeholderValue,g,b,f))))}),[b,g,R,f,e.placeholderValue]),w&&Object.keys(R).length<Object.keys(P).length&&(R={...P},T(R)),null==w&&Object.keys(R).length===Object.keys(P).length&&(R={},T(R),D(js(e.placeholderValue,g,b,f)));let F=E&&Object.keys(R).length>=Object.keys(P).length?E:$,V=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(R),a=Object.keys(P);null==t?(x(null),D(js(e.placeholderValue,g,b,f)),T({})):n.length>=a.length||n.length===a.length-1&&P.dayPeriod&&!R.dayPeriod&&"dayPeriod"!==z.current?(t=Wn(t,(null==h?void 0:h.calendar)||new dn),x(t)):D(t),z.current=null},O=r((()=>F.toDate(v)),[F,v]),A=r((()=>N.formatToParts(O).map((e=>{let t=Hs[e.type];"era"===e.type&&1===b.getEras().length&&(t=!1);let a=Hs[e.type]&&!R[e.type],r=Hs[e.type]?function(e,t,n){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?Bs.getStringForLocale(e,n):"––"}(e.type,e.value,n):null;return{type:Zs[e.type]||e.type,text:a?r:e.value,...Us(F,e.type,L),isPlaceholder:a,placeholder:r,isEditable:t}}))),[O,R,N,L,F,b,n]);P.era&&R.year&&!R.era?(R.era=!0,T({...R})):!P.era&&R.era&&(delete R.era,T({...R}));let j=e=>{R[e]=!0,"year"===e&&P.era&&(R.era=!0),T({...R})},B=(e,t)=>{if(R[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})}}(F,e,t,L));else{j(e);let t=Object.keys(R),n=Object.keys(P);(t.length>=n.length||t.length===n.length-1&&P.dayPeriod&&!R.dayPeriod)&&V(F)}},H=r((()=>Ms(w,u,m,p,S)),[w,u,m,p,S]),W=Ul({...e,value:w,builtinValidation:H}),Z=W.displayValidation.isInvalid,K=e.validationState||(Z?"invalid":null);var U;return{...W,value:E,dateValue:O,calendar:b,setValue:V,segments:A,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){B(e,1)},decrement(e){B(e,-1)},incrementPage(e){B(e,Ws[e]||1)},decrementPage(e){B(e,-(Ws[e]||1))},setSegment(e,t){j(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})}}(F,e,t,L))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(R),n=Object.keys(P);t.length===n.length-1&&P.dayPeriod&&!R.dayPeriod&&(R={...P},T(R),V(F.copy()))},clearSegment(t){delete R[t],z.current=t,T({...R});let n=js(e.placeholderValue,g,b,f),a=F;if("dayPeriod"===t&&"hour"in F&&"hour"in n){let e=F.hour>=12,t=n.hour>=12;e&&!t?a=F.set({hour:F.hour-12}):!e&&t&&(a=F.set({hour:F.hour+12}))}else t in F&&(a=F.set({[t]:n[t]}));x(null),V(a)},formatValue(e){if(!E)return"";let t=Os(e,S);return new yr(n,t).format(O)}}}function Us(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:$n(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Dn(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 _s=l({}),Ys=l(null),qs=l(null);function Gs(n,a){[n,a]=ms(n,a,_s);let{locale:i}=Go(),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]=Ii(n,a||null,i),[g,f]=t(null),v="center";if(p&&p.start&&p.end){let e=Es(Bn(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((()=>Nn(c,null==b?void 0:b.start)),[c,b]),E=r((()=>In(u,null==b?void 0:b.end)),[u,b]),$=Is({...m,value:p&&p.start,createCalendar:l,locale:s,visibleDuration:d,minValue:x,maxValue:E,selectionAlignment:v}),D=t=>{t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(y.current={start:Rs(t,$,-1),end:Rs(t,$,1)},w(y.current)):(y.current=null,w(null))},[k,C]=t($.visibleRange);mn($.visibleRange.start,k.start)&&mn($.visibleRange.end,k.end)||(D(g),C($.visibleRange));let S=e=>{e?(f(e),D(e)):(f(null),D(null))},I=g?Ls(g,$.focusedDate):p&&Ls(p.start,p.end),N=t=>{if(!e.isReadOnly&&(t=Ss(t=Cs(t,x,E),$.visibleRange.start,e.isDateUnavailable)))if(g){let e=Ls(g,t);h({start:Ps(e.start,null==p?void 0:p.start),end:Ps(e.end,null==p?void 0:p.end)}),S(null)}else S(t)},[L,P]=t(!1),{isDateUnavailable:R}=e,T=r((()=>!(!p||g)&&(!(!R||!R(p.start)&&!R(p.end))||xs(p.start,c,u)||xs(p.end,c,u))),[R,p,g,c,u]),z=e.isInvalid||"invalid"===e.validationState||T,M=z?"invalid":null;return{...$,value:p,setValue:h,anchorDate:g,setAnchorDate:S,highlightedRange:I,validationState:M,isValueInvalid:z,selectFocusedDate(){N($.focusedDate)},selectDate:N,highlightDate(e){g&&$.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)||xs(e,null===(t=y.current)||void 0===t?void 0:t.start,null===(n=y.current)||void 0===n?void 0:n.end)},isDragging:L,setDragging:P}}({...n,locale:i,createCalendar:fr}),{calendarProps:s,prevButtonProps:d,nextButtonProps:c,errorMessageProps:u,title:m}=function(e,t,n){let a=Vl(e,t),r=o(!1),i=o("undefined"!=typeof window?window:null);return Ei(i,"pointerdown",(e=>{r.current=0===e.width&&0===e.height})),Ei(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())},Ei(n,"touchmove",(e=>{t.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),a}(n,l,a),p=cs({...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(ds,{values:[[vs,{slots:{previous:d,next:c}}],[$r,{"aria-hidden":!0,level:2,children:m}],[qs,l],[ws,{slots:{errorMessage:u}}]]},e.createElement(Xl,null,e.createElement("h2",null,s["aria-label"])),p.children,e.createElement(Xl,null,e.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>l.focusNextPage(),tabIndex:-1}))))}const Js=i(Gs),Xs=l(null);function Qs(t,n){let a=d(Ys),i=d(qs),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}=Go(),o=Pl(n,a,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=Nl.get(t),d=pi({"aria-label":[l,o].filter(Boolean).join(", "),"aria-labelledby":s}),c=ll({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:u}=Go(),m=r((()=>{let e=kn(gn(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:Ur(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:xn(l),weekdayStyle:t.weekdayStyle},o);var m;return e.createElement(Xs.Provider,{value:{headerProps:c,weekDays:u,startDate:l}},e.createElement("table",{...Jr(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(nd,null,(t=>e.createElement(rd,null,t))),e.createElement(od,null,t.children))))}const ed=i(Qs);function td(t,n){let{children:a,style:r,className:i}=t,{headerProps:o,weekDays:l}=d(Xs);return e.createElement("thead",{...Jr(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 nd=i(td);function ad(t,n){let{children:a,style:r,className:i}=t;return e.createElement("th",{...Jr(t),ref:n,style:r,className:i||"react-aria-CalendarHeaderCell"},a)}const rd=i(ad);function id(t,n){let{children:a,style:r,className:i}=t,o=d(Ys),l=d(qs),s=null!=o?o:l,{startDate:c}=d(Xs),{locale:u}=Go(),m=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((pn(wn(e),t)+n)/7)}(c,u);return e.createElement("tbody",{...Jr(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 od=i(id);function ld({date:t,...n},a){let r=d(Ys),i=d(qs),l=null!=r?r:i;var s;let{startDate:c}=null!==(s=d(Xs))&&void 0!==s?s:{startDate:l.visibleRange.start},u=o(null),{cellProps:m,buttonProps:p,...h}=Ol({date:t},l,u),{hoverProps:g,isHovered:f}=Do({...n,isDisabled:h.isDisabled}),{focusProps:v,isFocusVisible:y}=Oo();y&&(y=h.isFocused);let b=!function(e,t){return t=Wn(t,e.calendar),e=wn(e),t=wn(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=un(t,l.highlightedRange.start),x=un(t,l.highlightedRange.end));let E=cs({...n,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:f,isOutsideMonth:b,isFocusVisible:y,isSelectionStart:w,isSelectionEnd:x,...h}}),$={"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",{...Ur(Jr(n),p,v,g,$,E),ref:u}))}const sd=i(ld),dd=l(null),cd=l(null),ud=l({}),md=l({});let pd=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,...r}=e;return r};function hd(t,n){[t,n]=ms(t,n,md);let{hoverProps:a,isHovered:r}=Do(t),{isFocused:i,isFocusVisible:o,focusProps:l}=Oo({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&"false"!==t["aria-invalid"],d=cs({...t,values:{isHovered:r,isFocused:i,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return e.createElement("input",{...Ur(pd(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 gd=hs(hd),fd=l({});function vd(t,n){[t,n]=ms(t,n,fd);let{isDisabled:a,isInvalid:r,onHoverStart:i,onHoverChange:o,onHoverEnd:l,...s}=t,{hoverProps:d,isHovered:c}=Do({onHoverStart:i,onHoverChange:o,onHoverEnd:l,isDisabled:a}),{isFocused:u,isFocusVisible:m,focusProps:p}=Oo({within:!0});null!=a||(a=!!t["aria-disabled"]&&"false"!==t["aria-disabled"]),null!=r||(r=!!t["aria-invalid"]&&"false"!==t["aria-invalid"]);let h=cs({...t,values:{isHovered:c,isFocusWithin:u,isFocusVisible:m,isDisabled:a,isInvalid:r},defaultClassName:"react-aria-Group"});var g,f;return e.createElement("div",{...Ur(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 yd=i(vd),bd=l(null),wd=l(null),xd=l(null);function Ed(n,a){[n,a]=ms(n,a,bd);let{validationBehavior:r}=us(cd)||{};var i,l;let d=null!==(l=null!==(i=n.validationBehavior)&&void 0!==i?i:r)&&void 0!==l?l:"native",{locale:c}=Go(),u=Ks({...n,locale:c,createCalendar:fr,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 Dr((()=>{a.current||n(!1)}),[]),[r,e]}(),g=o(null),{labelProps:f,fieldProps:v,inputProps:y,descriptionProps:b,errorMessageProps:w,...x}=as({...gs(n),label:h,inputRef:g,validationBehavior:d},u,m),E=cs({...gs(n),values:{state:u,isInvalid:u.isInvalid,isDisabled:u.isDisabled},defaultClassName:"react-aria-DateField"}),$=Jr(n);return delete $.id,e.createElement(ds,{values:[[wd,u],[fd,{...v,ref:m,isInvalid:u.isInvalid}],[md,{...y,ref:g}],[ud,{...f,ref:p,elementType:"span"}],[ws,{slots:{description:b,errorMessage:w}}],[dd,x]]},e.createElement("div",{...$,...E,ref:a,slot:n.slot||void 0,"data-invalid":u.isInvalid||void 0}))}const $d=i(Ed);function Dd(t,n){let a=d(wd),r=d(xd);return a||r?e.createElement(Cd,{...t,ref:n}):e.createElement(kd,{...t,ref:n})}const kd=i(((t,n)=>{let[a,r]=ms({slot:t.slot},n,bd),{locale:i}=Go(),l=Ks({...a,locale:i,createCalendar:fr}),s=o(null),{fieldProps:d,inputProps:c}=as({...a,inputRef:s},l,r);return e.createElement(ds,{values:[[wd,l],[md,{...c,ref:s}],[fd,{...d,ref:r,isInvalid:l.isInvalid}]]},e.createElement(Cd,t))})),Cd=i(((t,n)=>{let{className:a,children:r}=t,i=d(wd),o=d(xd),l=null!=i?i:o;return e.createElement(e.Fragment,null,e.createElement(yd,{...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(gd,null))})),Sd=i(Dd);function Id({segment:t,...n},a){let r=d(wd),i=d(xd),o=null!=r?r:i,l=hi(a),{segmentProps:s}=ls(t,o,l),{focusProps:c,isFocused:u,isFocusVisible:m}=Oo(),{hoverProps:p,isHovered:h}=Do({...n,isDisabled:o.isDisabled||"literal"===t.type}),g=cs({...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",{...Ur(Jr(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 Nd=i(Id);function Ld(t,n){[t,n]=ms(t,n,$r);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 Pd=i(Ld),Rd=t=>e.createElement(ed,Object.assign({weekdayStyle:"short"},t),e.createElement(nd,null,(t=>e.createElement(rd,null,t.slice(0,2)))),e.createElement(od,null,(t=>e.createElement(sd,{date:t})))),Td=v`.react-aria-Button{color:${H.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:${H.sizes.base};height:${H.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${H.colors.secondary.blue.light};}&:active,&:hover{background-color:${H.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${H.colors.neutral.grey.base};cursor:default;}}`,zd=v`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${H.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${H.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${H.colors.secondary.blue.light};}&[data-selected]{background:${H.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${H.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${H.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${H.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${H.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${H.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;}}`,Md=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`,Fd=v`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Md(H.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${H.sizes.sm};}`,Vd=f(Js).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${H.colors.neutral.ink.base};font-size:14px;font-family:${H.fontFamily};${Fd} ${Td} ${zd} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Od=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"})),Ad=t=>{var n,{disabledRanges:r=[],disallowWeekends:i=!1,isMultiMonth:o=!1}=t,l=ae(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[d,c]=e.useState(null===(n=l.value)||void 0===n?void 0:n.start),{locale:u}=Go(),m=s((e=>!!i&&function(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1)%7;a<0&&(a+=7);let r=Sn(t),[i,o]=Ln[r]||[6,0];return a===i||a===o}(e,u)||r.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[r,i,u]);return a((()=>{var e;c(null===(e=l.value)||void 0===e?void 0:e.start)}),[l.value]),e.createElement(Vd,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:m,visibleDuration:o?{months:2}:void 0},l),e.createElement("header",null,e.createElement(bs,{slot:"previous"},e.createElement(Od,null)),e.createElement(Pd,null),e.createElement(bs,{slot:"next"},e.createElement(qt,null))),o?e.createElement("div",{style:{display:"flex",gap:H.sizes.sm,overflow:"auto"}},e.createElement(Rd,null),e.createElement(Rd,{offset:{months:1}})):e.createElement(Rd,null))},jd={top:"flex-start",center:"center"},Bd=f.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${H.sizes.base};}`,Hd=f.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>jd[e.align]};width:24px;height:24px;`,Wd=f.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Zd=f.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${H.sizes.sm};}`,Kd=f.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${H.text.body.fontFamily};font-size:${H.text.body.fontSize};font-weight:${H.text.body.fontWeight};line-height:${H.sizes.md};color:${H.text.body.color};`,Ud=f.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${H.fontFamily};font-size:${H.sizes[3]};line-height:${H.sizes[4]};color:${H.colors.neutral.ink.light};`,_d=f.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${H.text.error.fontFamily};font-size:${H.text.error.fontSize};font-weight:${H.text.error.fontWeight};line-height:${H.text.error.lineHeight};color:${H.text.error.color};`,Yd=f.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,qd=f(Yd).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${H.colors.neutral.grey.dark};border-radius:${H.radius.md};padding:${H.sizes.base} 0.75rem;&:hover{border-color:${H.colors.secondary.blue.base};}& ${Kd}{font-weight:${H.text.bodyBold.fontWeight};}`,Gd=f(zt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Jd=({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(Bd,null,e.createElement(Hd,{align:s?"center":"top"},c),s&&e.createElement(Wd,null,s),n||a||i||l||d?e.createElement(Zd,null,e.createElement(rt,{direction:"horizontal",alignY:"center",spacing:"sm"},l,n&&e.createElement(Kd,null,n),r&&e.createElement(Gd,{text:r},e.createElement(lt,{name:"help",width:H.sizes.base,color:H.colors.neutral.ink.lightest}))),a&&e.createElement(Ud,null,a),i&&e.createElement(_d,null,i),d):null);return o?e.createElement(qd,{disabled:u,htmlFor:t},m):e.createElement(Yd,{disabled:u,htmlFor:t},m)},{colors:Xd,sizes:Qd,radius:ec}=H,tc=f.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Xd.neutral.ink.lightest};border-radius:${ec.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Xd.secondary.blue.base};border-color:${Xd.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:${Qd[4]};background-position:center;}&:hover{border-color:${Xd.secondary.blue.base};}&:active{border-color:${Xd.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Xd.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Xd.secondary.blue.base};border-color:${Xd.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:${Qd[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Xd.neutral.grey.base};border-color:${Xd.neutral.grey.base};color:${Xd.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>");}`,nc=t=>{var{checked:n,indeterminate:i,value:l,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,h=ae(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const g=r((()=>re("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(Jd,Object.assign({id:g,disabled:c},h),e.createElement(tc,{ref:f,id:g,type:"checkbox",checked:n,value:l,name:d,disabled:c,"aria-label":u,className:m,onChange:v}))},ac=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;}`,rc=i(((t,n)=>{var{checked:a,value:r,name:i,disabled:o,onChange:l,id:d}=t,c=ae(t,["checked","value","name","disabled","onChange","id"]);const u=s((e=>{l(e.currentTarget.checked,r)}),[l,r]),m=null!=d?d:re("radio");return e.createElement(Jd,Object.assign({id:m,disabled:o},c),e.createElement(ac,{id:m,type:"radio",checked:a,value:r,name:i,disabled:o,onChange:u,ref:n}))})),ic=f.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,oc=f.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${H.text.inputLabel.fontFamily};font-size:${H.text.inputLabel.fontSize};font-style:${H.text.inputLabel.fontStyle};font-weight:${H.text.inputLabel.fontWeight};line-height:${H.text.inputLabel.lineHeight};text-decoration:${H.text.inputLabel.textDecoration};color:${H.text.inputLabel.color};`;class lc 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?nc:rc;return e.createElement(ic,{disabled:i},r&&e.createElement(oc,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 sc=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"})),dc={width:A.base,height:A.base},cc=f(Re).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${A.base};width:${A.base};top:unset;}`,uc=({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(zt,{text:r?"Copied!":"Copy to clipboard"},e.createElement(cc,{variant:"flat",size:"sm",className:t,"aria-label":`${r?"Copied":"Copy"} "${n}" to clipboard`,icon:r?e.createElement(dt,Object.assign({color:R.secondary.green.base},dc)):e.createElement(sc,Object.assign({color:R.secondary.blue.base},dc)),onClick:o}))},mc=f.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${H.text.inputLabel.fontFamily};font-size:${H.text.inputLabel.fontSize};font-weight:${H.text.inputLabel.fontWeight};line-height:${H.text.inputLabel.lineHeight};color:${H.text.inputLabel.color};`,pc=f.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${H.fontFamily};font-size:${H.sizes[3]};line-height:${H.sizes[4]};color:${H.colors.neutral.ink.light};`,hc=f.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${H.text.error.fontFamily};font-size:${H.text.error.fontSize};font-weight:${H.text.error.fontWeight};line-height:${H.text.error.lineHeight};color:${H.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${H.sizes[2]} * -1);width:2px;background-color:${H.colors.secondary.red.base};}`,gc=f(rt).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,fc=f(zt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,vc=t=>n=>{var{label:a,hint:i,error:o,tooltip:l}=n,s=ae(n,["label","hint","error","tooltip"]);const d=r((()=>re(t.name)),[]);return a?e.createElement(gc,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement(rt,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(mc,{id:`${d}-label`,htmlFor:d},a),l&&e.createElement(fc,{text:l},e.createElement(lt,{width:H.sizes.base,height:H.sizes.base,color:H.colors.neutral.ink.light}))),i&&e.createElement(pc,null,i)),e.createElement(t,Object.assign({id:d,hasError:!!o},s)),o&&e.createElement(hc,null,o)):e.createElement(t,Object.assign({hasError:!!o},s))},yc=t=>n=>(a((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),bc=f(yd).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${Md(H.text.body)} display:flex;align-items:center;border:1px solid ${H.colors.neutral.ink.lightest};border-radius:${H.radius.base};gap:${H.sizes.xs};padding:${H.sizes.sm};margin-top:${H.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${H.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${H.colors.secondary.red.light};border:1px solid ${H.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${H.colors.secondary.red.light};\n border: 1px solid ${H.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${H.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${H.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${H.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:${H.radius.base};&[data-invalid]{color:${H.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${H.colors.secondary.blue.dark};&[data-invalid]{background-color:${H.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${H.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,wc=vc((({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(bc,{style:a,className:n,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=h?h:`${t}-label`,$hasError:i,isDisabled:c},e.createElement($d,{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(Sd,{slot:"start"},(t=>e.createElement(Nd,{segment:t})))),e.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),e.createElement($d,{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(Sd,{slot:"end"},(t=>e.createElement(Nd,{segment:t}))))))),xc=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;cursor:not-allowed;}`,Ec=vc(i(((t,n)=>{var{className:a,options:r,value:i,onChange:o,size:l,disabled:d,hasError:c}=t,u=ae(t,["className","options","value","onChange","size","disabled","hasError"]);const m=s((e=>{o&&o(e.currentTarget.value)}),[o]);return e.createElement(xc,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,hidden:t.hidden},t.label))))})));Ec.displayName="Select";const $c=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?H.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,Dc=f.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${$c}{box-shadow:0 0 0 4px ${H.colors.brand.blue.light};}&:checked + ${$c}{background-color:#0079d1;}&:disabled + ${$c}{background-color:${H.colors.neutral.grey.base};}&:checked:disabled + ${$c}{background-color:${H.colors.secondary.blue.light};}`,kc=f.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;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;}${$c}: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"};}${Dc}:checked + ${$c}{&: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"});}}`,Cc=f(N).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,Sc=i((({id:t,className:n,name:a,switched:r,small:i,onClick:o=(()=>{}),disabled:l,ariaLabel:s},d)=>e.createElement(Cc,{className:n,disabled:l},e.createElement(kc,{small:i,disabled:l},e.createElement(Dc,{id:t,role:"switch",type:"checkbox",name:a,"aria-label":s,checked:!!r,onChange:l?void 0:o,disabled:l,ref:d}),e.createElement($c,{switched:r,disabled:l}))))),Ic=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],Nc=({options:n=Ic,selectedPreviousPeriod:r,setSelectedPreviousPeriod:i})=>{const[o,l]=t(!!r);return a((()=>{r||null==i||i(n[0])}),[r,i,n]),e.createElement(e.Fragment,null,e.createElement(U,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:H.sizes.sm,whiteSpace:"nowrap"}},e.createElement(Sc,{small:!0,switched:o,onClick:()=>{o&&(null==i||i(null)),l(!o)}}),"Compare previous period"),o&&e.createElement(Ec,{"aria-label":"Period to compare against",options:n,value:(null==r?void 0:r.value)||n[0].value,onChange:e=>{const t=n.find((({value:t})=>t===e));t&&(null==i||i(t))}}))};var Lc;!function(e){e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS",e.LAST_90_DAYS="LAST_90_DAYS",e.LAST_MONTH="LAST_MONTH",e.LAST_12_MONTHS="LAST_12_MONTHS",e.WEEK_TO_DATE="WEEK_TO_DATE",e.MONTH_TO_DATE="MONTH_TO_DATE",e.YEAR_TO_DATE="YEAR_TO_DATE"}(Lc||(Lc={}));const Pc=e=>{const t=hn(bn());let n;switch(e){case Lc.TODAY:n={start:t,end:t};break;case Lc.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case Lc.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case Lc.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case Lc.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case Lc.LAST_MONTH:{const e=wn(t.subtract({months:1}));n={start:e,end:xn(e)};break}case Lc.LAST_12_MONTHS:{const e=wn(t.subtract({months:1}));n={start:wn(e).subtract({months:12}),end:xn(e)};break}case Lc.WEEK_TO_DATE:n={start:kn(t,navigator.language),end:t};break;case Lc.MONTH_TO_DATE:n={start:wn(t),end:t};break;case Lc.YEAR_TO_DATE:n={start:En(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new ma(t.year,t.month,t.day),end:new ma(n.year,n.month,n.day)}})(n)},Rc=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:Lc.TODAY},{label:"Yesterday",value:Lc.YESTERDAY},{label:"Last 7 Days",value:Lc.LAST_7_DAYS},{label:"Last 30 Days",value:Lc.LAST_30_DAYS},{label:"Last 90 Days",value:Lc.LAST_90_DAYS},{label:"Last Month",value:Lc.LAST_MONTH},{label:"Last 12 Months",value:Lc.LAST_12_MONTHS},{label:"Week to Date",value:Lc.WEEK_TO_DATE},{label:"Month to Date",value:Lc.MONTH_TO_DATE},{label:"Year to Date",value:Lc.YEAR_TO_DATE}],Tc=Lc.LAST_30_DAYS;Pc(Tc),Rc.find((({value:e})=>e===Tc));const zc=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:a}=t,[r,i]=[n,a].sort();return e.some((([e,t])=>r>=e&&r<=t||i>=e&&i<=t||r<=e&&i>=t))},Mc=f.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${H.sizes.base};border-top:1px solid ${H.colors.neutral.grey.base};`,Fc=t=>{var{className:n,style:i,isDisabled:o,isMultiMonth:l=!1,showDatePresets:d=!0,onReset:c,disabledRanges:u,selectedPreset:m,setSelectedPreset:p,selectedRange:h,setSelectedRange:g,"aria-describedby":f,"aria-label":v}=t,y=ae(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const b=s((e=>t=>{const n={start:"start"===e?t:null==h?void 0:h.start,end:"end"===e?t:null==h?void 0:h.end};g(n)}),[null==h?void 0:h.end,null==h?void 0:h.start,g]),w=r((()=>zc({disabledRanges:u,selectedRange:h})),[u,h]),x=r((()=>h?(e=>Rc.reduce(((t,n)=>{if(n.hidden||t)return t;const a=Pc(n.value);if(!a)return t;const{start:r,end:i}=a;return 0===e.start.compare(r)&&0===e.end.compare(i)?n:t}),void 0))(h):null),[h]);return a((()=>{p(x||Rc[0])}),[x,p]),e.createElement(rt,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:H.sizes.base},i),className:n,"aria-describedby":f,"aria-label":v},d&&e.createElement(Ec,{disabled:o,label:"Date Range",options:Rc,value:null==m?void 0:m.value,onChange:e=>{g(Pc(Lc[e])),p(Rc.find((({value:t})=>t===e))||Rc[0])}}),e.createElement(wc,{isDisabled:o,label:"Start date - End date",onChangeStartDate:b("start"),onChangeEndDate:b("end"),startValue:h&&h.start,endValue:h&&h.end,error:w?"Range contains invalid dates":void 0}),y.showPreviousPeriod&&e.createElement(Nc,Object.assign({},y)),e.createElement(Mc,null),e.createElement(rt,{alignX:"center"},e.createElement(Ad,{"aria-label":"Selected Date Range",isDisabled:o,isMultiMonth:l,value:h,onChange:g,disabledRanges:u})),!!c&&e.createElement(e.Fragment,null,e.createElement(Mc,null),e.createElement(_e.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},e.createElement(Re,{variant:"default",size:"sm",onClick:c,disabled:o},"Reset"))))};function Vc(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Oc(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Oc(e.min,"max-content")}, ${Oc(e.max)})`;default:return t||"1fr"}}function Ac({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: ${H.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${H.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${H.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${H.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${r.map((e=>Oc(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 jc;!function(e){e.ascending="ascending",e.descending="descending"}(jc||(jc={}));const Bc=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"})),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:"M13 20V7.83L18.59 13.42L20 12L12 4L4 12L5.41 13.41L11 7.83L11 20H13Z",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:"M11 4V16.17L5.41 10.58L4 12L12 20L20 12L18.59 10.59L13 16.17L13 4H11Z",fill:"currentColor"})),Zc=({sortState:t,columnId:n,size:a})=>t&&t.columnId===n?t.direction===jc.ascending?e.createElement(Hc,{color:H.colors.neutral.ink.dark,size:a}):e.createElement(Wc,{color:H.colors.neutral.ink.dark,size:a}):e.createElement(Bc,{size:a});function Kc(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 Uc(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 _c(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 Yc(){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 qc(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 Gc="56px",Jc=f.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Gc};display:flex;align-items:center;justify-content:${({align:e="left"})=>Vc(e)};background-color:white;padding-left:${({spacing:e=3})=>H.sizes[e]};padding-right:${({spacing:e=3})=>H.sizes[e]};border-bottom:1px solid ${H.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Xc(t){var{selected:n,indeterminate:a,onChange:r,selectionMode:i}=t,o=ae(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===i?e.createElement(Jc,Object.assign({},o)):e.createElement(Jc,Object.assign({},o),e.createElement(nc,{checked:n,indeterminate:a,onChange:r}))}const Qc=f.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>Vc(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>H.sizes[e]};padding-right:${({spacing:e=3})=>H.sizes[e]};color:${H.text.bodySmall.color};font-family:${H.text.bodySmall.fontFamily};font-size:${H.text.bodySmall.fontSize};font-style:${H.text.bodySmall.fontStyle};font-weight:${H.text.bodySmall.fontWeight};line-height:${H.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${H.colors.secondary.blue.base};background-color:${H.colors.neutral.grey.lightest};}`;function eu(t){var{selected:n,rowId:a,onChange:r,selectionMode:i,disabled:o}=t,l=ae(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===i?e.createElement(Qc,Object.assign({},l),e.createElement(rc,{value:a,checked:n,disabled:o,onChange:r})):e.createElement(Qc,Object.assign({},l),e.createElement(nc,{value:a,checked:n,disabled:o,onChange:r}))}const tu=[[],()=>{}];function nu({selectionMode:t="multiple",selectionState:n,enabledRowIds:a}){const r=!!n,[i,o]=n||tu,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(Xc,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(eu,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 au=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:${H.colors.neutral.ink.lightest};`,ru=f.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${H.text.headingTable.color};font-family:${H.text.headingTable.fontFamily};font-size:${H.text.headingTable.fontSize};font-style:${H.text.headingTable.fontStyle};font-weight:${H.text.headingTable.fontWeight};line-height:${H.text.headingTable.lineHeight};`,iu=f(ru).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 ${au}{background-color:${H.colors.neutral.grey.light};color:${H.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${H.colors.secondary.blue.light};}`;function ou({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?iu:ru,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===jc.ascending;let r=jc.ascending;return n&&a&&(r=jc.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(Jc,Object.assign({},r),e.createElement(zt,{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(au,null,e.createElement(Zc,{sortState:n,columnId:t.id,size:5})))))}const lu=H.colors.neutral.grey.base,su=H.colors.neutral.grey.dark,du=f.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${H.radius.base};background:${lu};background-image:linear-gradient(\n to right,\n ${lu} 0%,\n ${su} 20%,\n ${lu} 40%,\n ${lu} 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 cu=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:${Gc};background-color:white;`,uu=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 ${H.colors.neutral.grey.base};& > *{flex:1;}`;function mu({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(cu,{style:m},ou({column:n}),e.createElement(uu,null,o))}const pu=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"})),hu=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"})),gu=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 fu=f.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${H.sizes.lg};padding-bottom:${H.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${H.sizes.md};`,vu=f.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${H.sizes.md};background-color:${H.colors.neutral.grey.light};border-radius:${H.radius.full};`,yu=f.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,bu=f.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${H.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 `}`,wu=f.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,xu=f.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${H.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,Eu=f.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,$u={full:`border-width: 1px; border-radius: ${H.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},Du=f.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${H.colors.neutral.grey.dark};${({borderMode:e="full"})=>$u[e]} &,& *{box-sizing:border-box;}`;function ku({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:Gc,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${H.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(xu,{css:v},e.createElement("thead",null,n)))}const Cu=(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}),Su={icon:e.createElement(st,{width:48,height:48}),heading:"No results"},Iu=()=>{},Nu=({ActionBarSlot:t,borderMode:n,columns:a,emptyState:r=Su,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);_c(y);const x=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:$,selectionColumn:D,setSelected:k}=nu({selectionMode:m,selectionState:p,enabledRowIds:x}),C={setSelected:k||Iu,setExpanded:h||Iu},S=[D,...a],I=E?S:a,N=Kc(b,y),{visible:L,pinnedLeft:P,pinnedRight:R}=Uc(I),{scrollPosition:T}=qc(y),z=Ac({pinnedLeft:P,pinnedRight:R,cellWidths:N,scrollPosition:T,visible:L,stripingMode:f});if(l){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(Du,{borderMode:n},e.createElement(wu,{ref:y},e.createElement(xu,{css:z,ref:b,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(bu,{role:"row"},L.map((e=>ou({column:e,sortState:g,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(bu,{key:t.id},L.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(Qc,Object.assign({},a),e.createElement(du,null))}(t,n))))))))))}if(0===c.length)return e.createElement(Du,{borderMode:n},e.createElement(wu,{ref:y},e.createElement(xu,{css:z,ref:b,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(bu,{role:"row"},L.map((e=>ou({column:e,sortState:g,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(fu,{columnCount:L.length},e.createElement(vu,null,r.icon),e.createElement(rt,{spacing:"sm",alignX:"center"},e.createElement(U,{variant:"headingMedium"},r.heading),r.subheading&&e.createElement(U,{variant:"subheadingMedium"},r.subheading)))))));const M=t=>{const{e2eClassName:n="",accentColor:a}=t,r=Cu(t.id,{selectedRowIds:$,expandedRowIds:i,disabledRowIds:u});return e.createElement(bu,Object.assign({role:"row",key:t.id,accentColor:a,className:n},r),L.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))))},F=(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=Cu(n,{selectedRowIds:$,expandedRowIds:i,disabledRowIds:u});return e.createElement(bu,{role:"row",key:t.id,className:o},L.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(Qc,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},M(t),a&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>F(e,t.id)))))},O=e.createElement(bu,{role:"row"},L.map((e=>ou({column:e,sortState:g,onChangeSort:d})))),A=a.some((e=>!!e.renderFooter)),j=$.length>0&&!!t;return e.createElement(Du,{borderMode:n},j&&e.createElement(mu,{selectionColumn:D,intersectionTargetRef:w,containerRef:y},t),e.createElement(wu,{ref:y},v&&e.createElement(ku,{tableCss:z,intersectionTargetRef:w,containerRef:y,cellWidths:N},O),e.createElement("div",{ref:w,style:{height:0}}),e.createElement(xu,{css:z,ref:b,role:"table"},e.createElement("thead",{role:"rowgroup"},O),(()=>{const t=!!i;return t&&"nested"===f?c.map(V):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[M(e),...(null==i?void 0:i.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))})(),A&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(bu,{role:"row"},L.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(Qc,Object.assign({},n))}({column:t}))))))))};Nu.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},Nu.Cell=Qc,Nu.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(ge,{anchorElement:i,onShouldClose:()=>s(!1)},e.createElement(_e,{style:{width:600}},e.createElement(rt,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement(rt,{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(gu,null)}),e.createElement(rt,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement(rt,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Re,{variant:"flat",icon:e.createElement(hu,null),onClick:()=>m(n,!1),style:{color:H.colors.neutral.ink.lightest}}):e.createElement(Re,{variant:"flat",icon:e.createElement(pu,null),onClick:()=>m(n,!0)})))))))))},Nu.SelectionCell=eu,Nu.SelectionHeader=Xc,Nu.Header=Jc,Nu.Truncate=Eu,Nu.NoWrap=yu;const Lu=f.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${H.sizes.base};}`,Pu=f.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${H.sizes.xs};}`,Ru=f.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${H.sizes.base};}`,Tu=f.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${H.sizes.xs};}`,zu=f.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${H.text.bodyBold.fontFamily};font-size:${H.text.bodyBold.fontSize};font-weight:${H.text.bodyBold.fontWeight};line-height:${H.text.bodyBold.lineHeight};color:${H.text.bodyBold.color};`,Mu=f.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${H.text.body.fontFamily};font-size:${H.text.body.fontSize};font-weight:${H.text.body.fontWeight};line-height:${H.text.body.lineHeight};color:${H.text.body.color};`,Fu=({items:t,horizontal:n})=>{const a=t=>Array.isArray(t)?t.map((t=>e.createElement(Mu,{key:t},t))):e.createElement(Mu,null,t);return e.createElement(Lu,null,t.map((t=>n?e.createElement(Ru,{key:t.term},e.createElement(zu,null,t.term),e.createElement(Tu,null,a(t.description))):e.createElement(Pu,{key:t.term},e.createElement(zu,null,t.term),a(t.description)))))},{sizes:Vu,colors:Ou}=H,Au=f.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Vu.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Vu.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,ju=f.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Vu.md};overflow-x:hidden;background-color:${Ou.neutral.grey.lightest};`,Bu=({renderHeader:n,children:a})=>{const[r,i]=t(!0);return e.createElement("main",null,n((()=>i(!r)),r),e.createElement(ju,null,e.createElement(Au,{showSidebar:r},a)))},Hu=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 Wu;!function(e){e.base="base",e.sm="sm"}(Wu||(Wu={}));const Zu=({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 "}`,Ku=f.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${H.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 `}} ${Zu} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Uu=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;${Zu}`,_u=/^-?[0-9]*\.?[0-9]+$/,Yu=vc(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=Wu.base,step:v,type:y="text",value:b,spellCheck:w=!1}=t,x=ae(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"!==y)return void m(t);new RegExp(_u).test(t)&&m(t)}),[m,y]),$=null!=a?a:re("textfield");return"text"===y&&c?e.createElement(Uu,Object.assign({className:r,disabled:i,hasError:o,id:$,name:u,onChange:E,placeholder:h,rows:g,value:b,spellCheck:w,ref:n},x)):e.createElement(Ku,Object.assign({className:r,disabled:i,hasError:o,id:$,inputSize:f,max:l,min:d,name:u,"aria-label":u,onChange:E,placeholder:h,step:v,type:y,value:b,spellCheck:w,ref:n},x))})));Yu.displayName="TextField";const qu=f(N).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Gu=f(N).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Ju=f(Yu).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${H.colors.neutral.ink.lightest};}`,Xu=f(Re).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${H.colors.neutral.ink.lightest};`;f(U).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,f.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${H.text.error.fontFamily};font-size:${H.text.error.fontSize};font-weight:${H.text.error.fontWeight};line-height:${H.text.error.lineHeight};color:${H.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${H.sizes[2]} * -1);width:2px;background-color:${H.colors.secondary.red.base};}`,f.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${H.fontFamily};font-size:${H.sizes[3]};line-height:${H.sizes[4]};color:${H.colors.neutral.ink.light};`;const Qu=(e,t)=>{t.includes(e.key)&&e.preventDefault()},em=["-","+","E","e"],tm=e=>Qu(e,em),nm=vc((t=>{var{size:n=Wu.base,handleChangeHeight:a,handleChangeWidth:r,handleChangeLength:i,className:o,height:l,width:s,length:d,unit:c}=t,u=ae(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(qu,{className:o},e.createElement(Gu,null,e.createElement(Ju,Object.assign({onChange:i,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:tm},u)),e.createElement(Fe,{height:H.sizes.base,width:H.sizes.base}),e.createElement(Ju,Object.assign({onChange:r,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:tm},u)),e.createElement(Fe,{height:H.sizes.base,width:H.sizes.base}),e.createElement(Hu,null,e.createElement(Ju,Object.assign({onChange:a,size:n,name:"height",type:"number",placeholder:"H",value:l,min:"0",step:"any",onKeyDown:tm},u)),e.createElement(Xu,{size:n},c))))}));nm.displayName="DimensionsInput";const am=f(h(_e.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${H.colors.neutral.grey.base};border-radius:${H.radius.base};padding:${H.sizes.base};`,rm=t=>{var{id:n,children:r,className:i,style:o,reversed:l,anchorElement:s,useAnchorWidth:d,onShouldClose:c}=t,u=ae(t,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return a((()=>()=>null==s?void 0:s.focus()),[s]),e.createElement(ge,Object.assign({id:n,"data-testid":n,anchorElement:s,onShouldClose:c,useAnchorWidth:d,placement:"bottom-start"},u),e.createElement(g,null,e.createElement(am,{className:i,style:o,useAnchorWidth:d,reversed:l,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},r)))},im=t=>{var{id:n,shouldShow:a,setShouldShow:r,ctaIconSlot:i,ctaProps:l}=t,s=ae(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=o(null);return e.createElement(e.Fragment,null,e.createElement(Re,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":n,onClick:()=>null==r?void 0:r(!a),icon:i,dropdown:!0},l)),a&&e.createElement(rm,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==r?void 0:r(!1)},s)))},om=(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},lm=(e,n)=>{const[r,i]=t(e);return a((()=>{const t=setTimeout((()=>i(e)),n);return()=>clearTimeout(t)}),[e,n]),r};function sm(){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 dm=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function cm({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(dm.Provider,{value:{hadKeyboardEvent:r,isInitialized:!0}},n)}function um(){const[t,n]=e.useState(!1),{hadKeyboardEvent:a,isInitialized:r}=e.useContext(dm),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 mm=(e=!1)=>{const[n,a]=t(e);return[n,s((()=>a(!0)),[a]),s((()=>a(!1)),[a])]},pm=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)}}},hm=(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)}]},gm=f(N).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:${A.base};height:${A.base};}`,fm=f(U).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,vm=f(fm).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,ym=f(Me).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,bm=f(Fe).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,wm=f(N).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,xm=f(N).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:${A[5]};height:${A[5]};margin-right:10px;}`,Em=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),$m=({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=Em(t),g=Em(n),{shouldShowDropdown:f,toggleShouldShowDropdown:v,closeDropdown:y}=sm(),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(gm,{className:se([null==h?void 0:h.container,null==g?void 0:g.container]),onClick:m},a&&e.createElement(vm,{variant:"subheadingSmallBold"},`${a}:`),e.createElement(U,null,r),e.createElement(bm,{className:se([null==h?void 0:h.cross,null==g?void 0:g.cross]),name:"cross",size:"base",color:R.neutral.ink.base})):e.createElement(Et,{className:h.filterTagDropdown,shouldShowDropdown:f,onClickAway:w,cta:e.createElement(gm,{className:h.container,onClick:b},a&&e.createElement(vm,{variant:"subheadingSmallBold"},`${a}:`),e.createElement(U,null,r),e.createElement(ym,{color:R.neutral.ink.base,name:"downArrow",$shouldShow:f}))},e.createElement(wm,null,e.createElement(xm,{color:o},c||e.createElement(e.Fragment,null,i,e.createElement(U,{variant:"bodyBold"},a))),l,d))},Dm=f(N).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?A[e]:0};`,km=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"})),Cm=f.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,Sm=f.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,Im=f.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,Nm=f.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,Lm=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}),Pm=({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=Lm(r),y=Lm(i),[w,x]=t(!1),[$,D]=t({isLoaded:!1,isError:!1}),[k,C]=e.useState(null),[S,I]=e.useState(null),{styles:N,attributes:L}=b(k,S,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),P=s((()=>m?x(!0):{}),[m]),R=s((()=>m?x(!1):{}),[m]),T=!$.isLoaded||$.isError;return e.createElement(Cm,{className:se([null==v?void 0:v.container,null==y?void 0:y.container,r])},e.createElement(Sm,{src:n,alt:a,className:se([null==v?void 0:v.image,null==y?void 0:y.image]),width:o,height:l,onLoad:()=>D({isLoaded:!0,isError:!1}),onError:()=>D({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:P,onMouseLeave:R,style:T?{display:"none"}:{},ref:C}),!f&&T&&(p||e.createElement(km,{className:se([null==v?void 0:v.placeholder,null==y?void 0:y.placeholder]),width:h||o,height:g||l})),w&&E(e.createElement(Im,Object.assign({ref:I,style:N.popper},L.popper,{className:se([null==v?void 0:v.previewImageContainer,null==y?void 0:y.previewImageContainer])}),e.createElement(Nm,{src:n,alt:"",width:d,height:c})),document.body))},Rm={width:64,height:64},Tm={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"},zm={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 Mm;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(Mm||(Mm={}));const{text:Fm,sizes:Vm}=H,{blue:Om}=H.colors.secondary,{grey:Am}=H.colors.neutral,{scrollbar:jm}=H.colors.system,Bm='\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;`,Wm=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 ${Am.dark};border-bottom:1px solid ${Am.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: ${jm.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${jm.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 ${Bm};\n\n ${a===Mm.middle||a===Mm.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 ${Bm};\n\n ${a===Mm.start||a===Mm.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Zm=f(Wm).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Am.dark};border-radius:4px;`,Km=f.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Um=f.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Am.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:${Am.lightest};padding:1.5rem 1rem;border-top:1px solid ${Om.base};}`;const _m=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 `}`,Ym=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:${Fm.bodySmall.fontFamily};font-size:${Fm.bodySmall.fontSize};font-weight:${Fm.bodySmall.fontWeight};color:${Fm.bodySmall.color};line-height:${Vm.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,qm=f(Ym).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Am.dark};font-family:${Fm.bodySmallBold.fontFamily};font-size:${Fm.bodySmallBold.fontSize};font-weight:${Fm.bodySmallBold.fontWeight};color:${Fm.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Am.light};}`,Gm={left:"flex-start",center:"center",right:"flex-end"},Jm=f.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Gm[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Xm=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 & ${Um}:nth-child(even) td {\n background-color: ${Am.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${qm}, & ${qm} span {\n white-space: nowrap;\n }\n `}`,Qm=f.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Ym}{border-top:1px solid ${Am.dark};background-color:${Am.lightest};padding-top:${Vm.base};padding-bottom:${Vm.base};line-height:2rem;}`,ep=f.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,tp=f(Xm).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,np=f(N).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;`,ap=f(N).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${H.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,rp=f(U).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,ip=f(U).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,op=({height:t,icon:n,title:a,subTitle:r})=>e.createElement(np,{height:t},e.createElement(ap,null,n),e.createElement(rp,{variant:"headingLarge"},a),r&&e.createElement(ip,{variant:"subheadingMedium"},r)),lp=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:${H.sizes.base};border-radius:${H.radius.base};&:hover{cursor:pointer;background-color:${H.colors.secondary.blue.lightest};}`,sp=f(lp).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${H.text.link.color};text-decoration:${H.text.link.textDecoration};`,dp=f.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:cp}=H.colors.neutral,up=f.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,mp=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, ${cp.base} 8%, ${cp.dark} 15%, ${cp.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,pp=({isLoading:t,style:n})=>e.createElement(up,{style:n},e.createElement(mp,{isLoading:t})),hp=t=>{var{style:n}=t,a=ae(t,["style"]);return e.createElement(Ym,Object.assign({},a),e.createElement(pp,{style:n}))};hp.defaultProps={style:{}};const gp=({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(ep,{ref:e=>{u(e),h(e)},style:Object.assign({width:p},l)},e.createElement(tp,{style:{tableLayout:o?"fixed":"auto"}},n())):null},fp=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")},vp=t=>{var{style:n,width:a,isLoading:r}=t,i=ae(t,["style","width","isLoading"]);return e.createElement(qm,Object.assign({},i,{style:{width:a}}),e.createElement(pp,{style:n,isLoading:r}))},yp=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"})),bp=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"})),wp=()=>e.createElement(Bc,{width:H.sizes.base,height:H.sizes.base,color:"lightgrey"}),xp=()=>e.createElement(yp,{width:H.sizes.base,height:H.sizes.base,color:"lightgrey"}),Ep=()=>e.createElement(bp,{width:H.sizes.base,height:H.sizes.base,color:"lightgrey"}),$p=({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:E,sortColumnId:$,sortDirection:D,onChangeSort:k,isError:C=!1,isLoading:S=!1,skeletonRowsNumber:I=5,isHeaderSticky:N=!0,stickyHeaderStyle:L,customSpecificState:P,bodyHeightInSpecificStates:R=375,startFixedColumnsNumber:T,endFixedColumnsNumber:z})=>{const M=n?Wm:Zm,F=!!u&&0===u.length,V=Boolean(T||z),O=!T&&!z,A=o(null),j=o(null),[B,H]=t(Mm.none);a((()=>{var e;let t=null;const n=()=>{if(!j.current||O)return;const e=j.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:a}=e.getBoundingClientRect(),r=n+a;t===a?H(Mm.none):0===n?H(Mm.start):n>0&&r<t?H(Mm.middle):r===t&&H(Mm.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)}}),[A,O]);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]),_=s(((e,t)=>{if(!b||!E)return;if(e)return"single"===x?void E([t.id]):void E([...b,t.id]);const n=[...b],a=n.findIndex((e=>e===t.id));n.splice(a,1),E(n)}),[E,b,x]),Y=s((()=>{if(!b||!E)return;if(b.length===u.length)return void E([]);const e=u.map((e=>e.id));E(e)}),[E,u,b]),q=s((e=>{if(void 0===$||void 0===k)return;let t=$,n="ascending";"ascending"===D&&(n="descending"),e!==$&&(t=e,n="ascending"),k(t,n)}),[k,$,D]),G=s(((t,n)=>{let a="",r=()=>{},i=e.createElement(wp,null);const{tooltip:o,align:l,icon:s,title:d,sortable:c,id:u}=t;c&&(a="sortable",r=()=>q(u),$===u&&(i="ascending"===D?e.createElement(xp,null):e.createElement(Ep,null)));const m=e.createElement(Jm,{align:l},s&&s,d&&e.createElement("span",null,d),c&&i);return e.createElement(qm,{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(zt,{text:o},e.createElement(Hm,null,m)):m)}),[q,$,D]),J=s(((t,n)=>e.createElement(vp,{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(Km,null,e.createElement(_m,null,b&&e.createElement(qm,{style:Object.assign({width:58},n)},"multiple"===x&&e.createElement(nc,{checked:u.length>0&&(null==b?void 0:b.length)===u.length||!1,onChange:Y,disabled:w&&w.length>0||S||F,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||F)?J(e,e.skeletonStyle||{}):G(e,(null==i?void 0:i.style)||{})}))))}),[K,Y,c,F,C,S,J,G,u.length,b,x,w]),Q=s(((t,n)=>{const a={checked:t,onChange:e=>_(e,n),disabled:(null==w?void 0:w.includes(n.id))||!1};return"single"===x?e.createElement(rc,Object.assign({},a)):e.createElement(nc,Object.assign({},a))}),[_,x,w]),ee=s((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===x?e.createElement(hp,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(hp,{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(_m,{key:t.id,className:`${o} ${n?"hidden":""}`},b&&e.createElement(Ym,null),i)}),[p,b]),ne=s((t=>{if(!c)return e.createElement(hp,null);const n=c.map((n=>e.createElement(hp,{key:`${t}-${n.id}`})));return b&&n.unshift(ee(t)),n}),[c,ee,b]),ae=()=>f?S&&!v||!S&&F?null:e.createElement(Qm,{fixedColumnsStyle:fp(U||[])},e.createElement(_m,null,b&&!y&&e.createElement(Ym,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(Um,{key:t.id,className:s,fixedColumnsStyle:fp(U||[])},e.createElement(_m,{key:t.id,className:c,accentColor:t.accentColor},b&&e.createElement(Ym,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(Um,{key:`loading-row-${n}`,fixedColumnsStyle:fp(U||[])},e.createElement(_m,null,g?e.createElement(e.Fragment,null,b&&ee(),g()):ne(n))));return e.createElement(M,{ref:j,scrollDisabled:!0,scrollPosition:B,lastStartFixedColumnsIndex:re,firstEndFixedColumnsIndex:z},N&&c&&e.createElement(gp,{renderHeader:X,tableRef:A,wrapperRef:j,isFixedLayout:V,wrapperStyle:L}),e.createElement(Xm,{ref:A,striped:i,noWrap:l,tableLoading:!0,isFixedLayout:V},X(),t,ae()))}if(F||C){let t=Tm;return P?t=P:C&&(t=zm),e.createElement(M,{scrollDisabled:!0},e.createElement(Xm,{ref:A,striped:i,noWrap:l,tableLoading:!1,isFixedLayout:V},X(),ae()),e.createElement(op,Object.assign({height:R},t)))}return e.createElement(M,{scrollDisabled:!1,ref:j,scrollPosition:B,lastStartFixedColumnsIndex:re,firstEndFixedColumnsIndex:z,showScrollbar:d},N&&c&&e.createElement(gp,{renderHeader:X,tableRef:A,wrapperRef:j,isFixedLayout:V,wrapperStyle:L}),e.createElement(Xm,{ref:A,striped:i,noWrap:l,tableLoading:!1,isFixedLayout:V},X(),ie,ae()))};$p.Cell=Ym,$p.ClickableCell=t=>{var{onClick:n,children:a}=t,r=ae(t,["onClick","children"]);return e.createElement(Ym,Object.assign({},r),e.createElement(sp,{onClick:n},a))},$p.EditableCell=t=>{var{onClick:n,children:a}=t,r=ae(t,["onClick","children"]);return e.createElement(Ym,Object.assign({},r),e.createElement(lp,{onClick:n},e.createElement(dp,null,a)))},$p.SkeletonCell=hp,$p.SkeletonContent=pp;const Dp=f.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,kp="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",Cp="Log in with Amazon",Sp=n=>{const[a,r]=t(kp);return e.createElement(Dp,Object.assign({onMouseDown:()=>{r("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{r(kp)},"aria-label":Cp},n),e.createElement("img",{src:a,alt:Cp}))},Ip=y`body{overflow:hidden;scrollbar-gutter:stable;}`,Np=f.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${H.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${_e.Footer} {\n box-shadow: 0px 10px 15px 0px ${H.colors.neutral.ink.dark};\n }\n `}`,Lp=e=>!!e.footerSlot,Pp={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},Rp={[T.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[T.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[T.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[T.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[T.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},Tp={xs:T.mobile,sm:T.mobile,base:T.tablet,lg:T.lgTablet},{breakpoints:zp}=H,Mp=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:${H.sizes.sm};box-shadow:${H.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${_e.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${Pp[e]};`} ${Np}{padding-bottom:${H.sizes.md};}${_e.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${zp.mobile} + 1px))and (max-width: ${zp.tablet}){max-width:${({variant:e})=>Rp[zp.tablet][e]};}@media (min-width: ${zp.tablet})and (max-width: ${zp.lgTablet}){max-width:${({variant:e})=>Rp[zp.lgTablet][e]};}@media (min-width: ${zp.lgTablet})and (max-width: ${zp.desktop}){max-width:${({variant:e})=>Rp[zp.desktop][e]};}@media (min-width: ${zp.desktop}){max-width:${({variant:e})=>Rp[zp.lgDesktop][e]};}@media (max-width: ${({variant:e})=>Tp[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${_e.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${ce(H.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Fp=e.forwardRef(((t,n)=>{var a=ae(t,[]);return e.createElement(Mp,Object.assign({ref:n},a))})),Vp=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}=pm(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(Ip,null),e.createElement(Fp,{ref:u,onClose:v,variant:s,"aria-describedby":"modal_title"},e.createElement(_e.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(Ve,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},i&&{onClickClose:v})),e.createElement(Np,{onScroll:f,ref:p,isScrollable:h,fullBleed:l},c),Lp(n)&&n.footerSlot,!Lp(n)&&(n.leftActions||n.rightActions)&&e.createElement(_e.Footer,null,e.createElement(rt,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement(rt,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,a=ae(t,["label"]);return e.createElement(Re,Object.assign({key:n,type:"button"},a),n)}))),n.rightActions&&e.createElement(rt,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,a=ae(t,["label"]);return e.createElement(Re,Object.assign({key:n,type:"button"},a),n)})))))))))},{sizes:Op,text:Ap,shadows:jp}=H,{grey:Bp}=H.colors.neutral,Hp=f.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Op.base} ${Op.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&jp[e]};`,Wp=f.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Ap.headingXL.fontFamily};font-size:${Ap.headingXL.fontSize};font-weight:${Ap.headingXL.fontWeight};margin:unset;line-height:1;`,Zp=f.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Ap.subheadingLarge.fontFamily};font-weight:${Ap.subheadingLarge.fontWeight};font-size:${Ap.subheadingLarge.fontSize};line-height:${Ap.subheadingLarge.lineHeight};`,Kp=f.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${H.radius.base};border:${Op.line} solid ${Bp.base};object-fit:cover;`,Up=f.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,_p=f(Re).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${H.text.link.fontFamily};font-size:${H.text.link.fontSize};font-weight:${H.text.link.fontWeight};line-height:${H.text.link.lineHeight};color:${H.text.link.color};&:hover{text-decoration:${H.text.link.textDecoration};}& > * + *{margin-left:${H.sizes.xs};}`,Yp=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:${Op.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,qp=({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(nt,{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(Od,null),variant:"link"},o.title),g=u&&e.createElement(rt,{direction:"horizontal",alignX:"end"},e.createElement(_p,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(qt,{width:A.md})));return e.createElement(Hp,{shadow:s},e.createElement(rt,null,h,e.createElement(Yp,null,e.createElement(rt,{direction:"horizontal",spacing:"md"},a&&e.createElement(Kp,{src:a,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement(rt,{alignX:"stretch"},e.createElement(Wp,null,t),l,n&&e.createElement(Zp,null,n)))),e.createElement(Up,null,e.createElement(rt,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Re,{icon:e.createElement(Od,null),onClick:d}),c&&e.createElement(Re,{icon:e.createElement(qt,null),onClick:c})),g))))},Gp=f(rt).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${H.sizes.lg};height:30px;background-color:${H.colors.neutral.grey.light};border:1px solid ${H.colors.neutral.grey.base};border-radius:${H.sizes.xs};`,Jp=f(Re).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${H.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Xp=f(Yu).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Qp=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(U,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Gp,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(U,{variant:"bodySmall"},t))),eh=({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()}}},th=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"})),nh=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"})),ah=({testId:t,e2eClassName:n,currentPage:a,totalPagesCount:r,handleChangePage:i})=>{const{pageInputValue:o,handleIncrement:l,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=eh({currentPage:a,totalPagesCount:r,handleChangePage:i});return e.createElement(rt,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Jp,{onClick:()=>{1!==a&&i(1)},icon:e.createElement(th,null),size:"sm","aria-label":"go to first page"}),e.createElement(Jp,{onClick:s,icon:e.createElement(Od,null),size:"sm","aria-label":"go to previous page","aria-disabled":a<=1}),e.createElement("form",{onSubmit:d},e.createElement(Xp,{"aria-live":"polite","aria-label":`page ${a} of ${r}`,size:Wu.sm,type:"number",value:o,min:"1",max:`${r}`,onChange:c,onBlur:u})),e.createElement(Qp,{count:r}),e.createElement(Jp,{onClick:l,icon:e.createElement(qt,null),size:"sm","aria-label":"go to next page","aria-disabled":a>=r}),e.createElement(Jp,{onClick:()=>{a!==r&&i(r)},icon:e.createElement(nh,null),size:"sm","aria-label":"go to last page","aria-disabled":a>=r}))},rh=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],ih=f(N).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,oh=f(Et).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,lh=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;}`,sh=f(N).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,dh=f(U).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};}`,ch=({item:t,handleRangeListChange:n})=>{const a=s((()=>n(t)),[n,t]);return e.createElement(sh,{onClick:a},e.createElement(dh,{variant:"bodySmall"},t.label))},uh=t=>{const{handleRangeListChange:n,paginationRange:a=rh}=t;return e.createElement(e.Fragment,null,a.map((t=>e.createElement(m,{key:t.label},e.createElement(ch,{item:t,handleRangeListChange:n})))))};class mh 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=rh[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=rh,reversedDropdown:a}=this.props,{shouldShowDropdown:r,dropdownValue:i}=this.state;return e.createElement(ih,{className:t},e.createElement(oh,{cta:e.createElement(lh,{onClick:this.toggleShouldShow},e.createElement(U,{variant:"bodySmall"},i.label),e.createElement(Le,{color:H.colors.neutral.ink.base})),shouldShowDropdown:r,onClickAway:this.toggleShouldShow,reversed:a},e.createElement(uh,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const ph=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;}`,hh=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;}`,gh=({onIncrement:t,onDecrement:n,disabled:a=!1,size:r})=>e.createElement(ph,{size:r},e.createElement(hh,{type:"button",onClick:t,disabled:a},e.createElement(te,{height:H.sizes.base,width:H.sizes.base,color:H.colors.neutral.ink.base})),e.createElement(hh,{type:"button",onClick:n,disabled:a},e.createElement(Me,{height:H.sizes.base,width:H.sizes.base,color:H.colors.neutral.ink.base}))),fh=f(Yu).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${H.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${H.colors.neutral.ink.lightest};}`,vh=f(N).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${H.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?H.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;}}`,yh=f(U).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,bh=f(Hu).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 ${H.colors.secondary.red.light};\n\n > * {\n border-top-color: ${H.colors.secondary.red.base};\n border-bottom-color: ${H.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${H.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${H.colors.secondary.red.base};\n border-right-color: ${H.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${H.colors.secondary.red.base};\n border-bottom-color: ${H.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${H.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?H.colors.secondary.red.base:H.colors.secondary.blue.base};}}`;const wh=vc((t=>{var{className:n="",hasError:a,currency:r,disabled:i=!1,onChange:o,onPriceChange:l,priceValue:s,step:d="0.1",size:c=Wu.base}=t,u=ae(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(bh,{className:n,hasError:a},e.createElement(vh,{disabled:i,size:c},e.createElement(yh,{variant:"hintText"},r)),e.createElement(fh,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(gh,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:i,size:c}))}));wh.displayName="PriceInput";const xh=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;`,Eh=({children:t})=>e.createElement(xh,null,t),$h=f(Yu).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,Dh=f.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,kh=f(N).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 & ${$h} {\n ${t}\n }\n\n & ${Dh} {\n ${n}\n }\n `}}`,Ch=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"})),Sh=({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(kh,{className:p,iconPosition:v?"left":"right"},e.createElement($h,{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(Dh,null,g?e.createElement(be,{height:24,color:f||H.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||H.colors.neutral.ink.dark})):e.createElement(Re,{variant:"unstyled",onClick:()=>r(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(Ch,{color:f||H.colors.neutral.ink.dark,height:A.md,width:A.md}))))},Ih=H.colors.neutral.grey.lightest,Nh=H.colors.neutral.grey.dark,Lh=H.colors.secondary.blue.dark,Ph=f(N).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:focus,:active{background-color:${Ih};border-color:${Nh};box-shadow:none;}}> .veeqo-components-active-button{:focus,:active{background-color:${Lh};border-color:${Lh};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${H.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(Ph,{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)))),Th=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, ${H.colors.neutral.ink.base});font-family:${H.text.bodySmall.fontFamily};font-style:${H.text.bodySmall.fontStyle};font-size:${H.text.bodySmall.fontSize};line-height:${H.text.bodySmall.lineHeight};font-weight:${H.text.bodySmall.fontWeight};text-decoration:${H.text.bodySmall.textDecoration};letter-spacing:${H.text.bodySmall.letterSpacing};`,zh=f.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${H.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${H.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${H.text.bodySmall.fontFamily};font-style:${H.text.bodySmall.fontStyle};`,Mh={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Fh={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"},Vh=t=>{var{shortcut:n,label:a,inverse:r=!1,displayLabel:i=!1}=t,o=ae(t,["shortcut","label","inverse","displayLabel"]);const l=n.split("+").map((t=>Mh[t]?e.createElement(zh,{key:`Key: ${t}`,"aria-label":Fh[t]},Mh[t]):e.createElement(zh,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement(Th,Object.assign({"aria-label":a,$inverse:r},o),l," ",i?e.createElement("span",null,a):null)},{blue:Oh}=R.secondary,{grey:Ah}=R.neutral,jh=f.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Bh=f.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${Oh.lightest};}`,Hh=f.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Wh=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:${A.base};& > *{vertical-align:middle;}`,Zh=f(Wh).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Ah.dark};font-family:${B.bodySmallBold.fontFamily};font-size:${B.bodySmallBold.fontSize};font-weight:${B.bodySmallBold.fontWeight};color:${B.bodySmallBold.color};`,Kh=f.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Bh} tr:nth-child(even) td {\n background-color: ${Ah.lightest};\n }\n `}`,Uh=({striped:t=!0,className:n,children:a})=>e.createElement(Kh,{striped:t,className:n},a);Uh.Header=jh,Uh.Body=Bh,Uh.Row=Hh,Uh.HeaderCell=Zh,Uh.Cell=Wh;const _h=f(N).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;}}`;_h.displayName="Skeleton";const Yh=f.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,qh=f.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${H.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Gh=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 ${H.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 ${H.colors.secondary.blue.light};}`,Jh=f(qh).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${H.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Xh=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}),Qh=({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),E=Xh(u),$=Xh(m),D=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",D),document.addEventListener("mouseup",k),()=>{null==n||n.removeEventListener("mousedown",e),null==a||a.removeEventListener("mousedown",t),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",k)}}),[C,D,k,r]);const S=(t,n,a)=>{let r;return r=se("number"==typeof a?0===a?[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(Gh,{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(Jh,{className:se([null==E?void 0:E.sliderRange,null==$?void 0:$.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(Yh,{className:se([null==E?void 0:E.container,null==$?void 0:$.container]),id:n,ref:b},e.createElement(qh,null),N)},eg=f(N).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 `}`,tg=f(rt).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,ng=f(rt).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${H.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${H.shadows.lg};border-radius:${H.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;}`,ag=f(N).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${H.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${A.md};height:${A.md};}`,rg=f(rt).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,ig=f(U).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,og={info:{accentColor:R.brand.blue.base,icon:e.createElement(st,null)},success:{accentColor:R.secondary.green.base,icon:e.createElement(dt,null)},error:{accentColor:R.secondary.red.base,icon:e.createElement(ot,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)}},lg=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),sg=({className:t,e2eClassName:n,type:a,iconSlot:r,text:i,last:o,minWidth:l,cta:s,onClose:d})=>{const c=lg(t),u=lg(n);return e.createElement(ng,{className:se([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:l,last:o},e.createElement(ag,{color:og[a].accentColor,className:se([c.icon,u.icon])},null!=r?r:og[a].icon),e.createElement(rg,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(ig,{variant:"body"},i),s),e.createElement(Re,{variant:"flat",icon:e.createElement(Fe,{color:"white"}),onClick:d,"aria-label":"Close"}))},dg=({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(e.createElement(tg,{direction:"vertical",alignX:"center",spacing:4},e.createElement(D,{component:null},[...r].reverse().map(((a,o)=>e.createElement($,{key:a.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(sg,Object.assign({className:t,e2eClassName:n,minWidth:i,last:o===r.length-1,onClose:()=>l(a.key)},a))))))),document.body)),cg=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:${H.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;}`,ug=({children:t,checked:n,size:a="base",disabled:r=!1,onChange:i})=>e.createElement(cg,{type:"button",checked:n,size:a,disabled:r,"aria-pressed":n,tabIndex:"0",onClick:()=>i(!n)},t),mg=f.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${A.md};border-radius:${z.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 pg,hg,gg;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(pg||(pg={})),function(e){e.KB="KB",e.MB="MB"}(hg||(hg={})),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"}(gg||(gg={}));const fg=()=>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"})),vg=()=>e.createElement(rt,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(fg,null),e.createElement(U,{variant:"subheadingSmall",style:{paddingTop:A.sm}},"Browse files or drag them here")),yg=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement(rt,{alignX:"start",spacing:"xs"},t&&e.createElement(U,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(U,{variant:"errorSmall"},"File is too big (",n,")")):null,bg=f(U).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,wg=f(rt).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${R.neutral.ink.lightest};border-radius:${z.base};padding:${A.xs};${U}{padding-left:${A.xs};}`,xg=({file:t,resetSelection:n,disabled:a})=>t?e.createElement(wg,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(bg,{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,Eg=i(((n,r)=>{var{id:i,name:l,maxBytes:d=1e6,format:c=hg.MB,fileTypes:u,label:m="Upload file",required:h,disabled:g}=n,f=ae(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const v=o(null);p(r,(()=>v.current),[]);const[y,b]=t(),[w,x]=t(gg.VALID),E=w===gg.INVALID_FORMAT||w===gg.INVALID_FORMAT_AND_SIZE,$=w===gg.INVALID_SIZE||w===gg.INVALID_FORMAT_AND_SIZE,D=(({maxBytes:e,format:t,baseString:n})=>{const a=null==n?"Max size: ":n;switch(t){case hg.KB:return`${a}${Number(e)/1e3} KB`;case hg.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 pg.CSV:n+="CSV";break;case pg.GIF:n+="GIF";break;case pg.JPEG:n+="JPEG";break;case pg.JPG:n+="JPG";break;case pg.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=gg.VALID;t&&!e?a=gg.INVALID_FORMAT:!t&&e?a=gg.INVALID_SIZE:t&&e&&(a=gg.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]),L=s((()=>{S(),b(void 0),I({invalidFormat:!1,overMaxSize:!1})}),[]),P=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):L()}),[L,N]);return a((()=>{const e=null==v?void 0:v.current;return null==e||e.addEventListener("change",P),null==e||e.addEventListener("cancel",L),()=>{null==e||e.removeEventListener("change",P),null==e||e.removeEventListener("cancel",L)}}),[P,L]),e.createElement(gc,{spacing:"sm",alignX:"stretch"},e.createElement(mc,{htmlFor:i},m,e.createElement(rt,{spacing:3,alignX:"stretch",style:{paddingTop:A.sm}},e.createElement(pc,null,e.createElement("div",null,k),e.createElement("div",null,D)),e.createElement(mg,{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(vg,null),e.createElement("input",Object.assign({ref:v,id:i,type:"file",accept:C,name:l,required:h,disabled:g},f))))),e.createElement(rt,{alignX:"stretch",spacing:"sm"},e.createElement(xg,{file:y,resetSelection:L,disabled:g}),e.createElement(yg,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:$?D:void 0})))})),$g="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",Dg=f(N).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${$g} display:${e=>e.shouldShow?"initial":"none"};z-index:${H.layers.modal};`,kg=f(N).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${$g} background-color:rgba(55,66,77,0.5);`,Cg=f(N).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,Sg=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(ie,null,n):n),Ig=({className:t,children:n=null,shouldShow:a=!1,usePortal:r=!0})=>e.createElement(Sg,{usePortal:r},e.createElement(Dg,{className:se([`${t}-container`,t]),shouldShow:a},e.createElement(kg,null),e.createElement(I,{isActive:a},e.createElement(Cg,{className:se([`${t}-wrap`,t])},n)))),Ng=f.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,Lg=f.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,Pg=f(Re).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,Rg=({id:t,youtubeVideoId:n,showVideoModal:a,handleCloseClick:r})=>{const i=om(a,r);return e.createElement(Ig,{shouldShow:a,className:`${t}-video`},e.createElement(Ng,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(a?"visible":"hidden")},e.createElement(Lg,{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(Pg,{variant:"flat",onClick:r,"data-testid":"video-modal--close",icon:e.createElement(Fe,{color:"white"})}))))};var Tg;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Tg||(Tg={}));const zg=f(N).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,Mg=f(U).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Fg=f(N).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 ${U} {\n color: ${null!=t?t:R.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Vg=f(U).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 & > ${Mg} {\n color: #fff;\n }\n `}`,Og={style:{marginLeft:A.xs,padding:A.xs,height:A.base,width:A.base}},Ag=f.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${A.sm};svg{height:${A.base};width:${A.base};}`,jg=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"})),Bg=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}),Hg=({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=Bg(i),f=Bg(h),[v,y,b]=mm(),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]),$=r===Tg.draft,D=r===Tg.saved,k=c?R.neutral.ink.dark:R.neutral.ink.base;return e.createElement(zg,{className:`${se([null==g?void 0:g.container,null==f?void 0:f.container])} ${c&&(null==f?void 0:f.active)||""}`,onClick:w},e.createElement(Fg,{active:c,onMouseEnter:y,onMouseLeave:b,colourPalette:o,customTextColour:l},n&&e.createElement(Ag,null,n),e.createElement(U,{variant:"bodyBold"},a),d&&e.createElement(Vg,{active:c||v,colourPalette:o,customTextColour:l},e.createElement(Mg,{className:null==f?void 0:f.counter,variant:"subheadingSmall"},d)),$&&e.createElement(Fe,Object.assign({},Og,{color:k,className:null==f?void 0:f.delete,onClick:x})),D&&c&&e.createElement(jg,Object.assign({},Og,{color:k,className:null==f?void 0:f.edit,onClick:E}))))};var Wg;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Wg||(Wg={}));const Zg=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"})),Kg=f(U).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Ug=f(Zg).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,_g=f(Fe).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Yg=f(U).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 & > ${Kg} {\n color: ${R.neutral.grey.lightest};\n }\n `}`,qg=f(N).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${H.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${R.neutral.grey.base};\n & > ${Yg} {\n background-color: ${R.neutral.grey.base};\n & > ${Kg} {\n color: ${R.neutral.ink.base};\n }\n }\n & > ${U} {\n color: ${null!=e?e:R.neutral.ink.dark};\n }\n & > ${Ug} {\n color: ${R.neutral.ink.dark};\n }\n & > ${_g} {\n color: ${R.neutral.ink.dark};\n }\n }\n\n & > ${U} {\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 & > ${Ug} {\n color: ${t.dark};\n }\n & > ${_g} {\n color: ${t.dark};\n }\n\n & > ${U} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Gg=f(Ce).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${H.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${qg} {\n background-color: ${R.neutral.grey.base};\n & > ${Yg} {\n background-color: ${R.neutral.grey.base};\n & > ${Kg} {\n color: ${R.neutral.ink.base};\n }\n }\n & > ${U} {\n color: ${null!=e?e:R.neutral.ink.dark};\n }\n & > ${Ug} {\n color: ${R.neutral.ink.dark};\n }\n & > ${_g} {\n color: ${R.neutral.ink.dark};\n }\n }\n `}`,Jg={style:{marginLeft:A.xs,padding:A.xs,height:A.base,width:A.base}},Xg=f.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${A.sm};svg{height:${A.base};width:${A.base};}`,Qg=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=ae(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]=mm(),x=u&&p?p:m,E=o===Wg.draft,$=o===Wg.saved;return e.createElement(Gg,Object.assign({className:se([null==f?void 0:f.container]),onClick:()=>x(a),role:"tab","aria-selected":u,"aria-label":`${u&&E?"Delete":u&&$?"Edit":""} ${i} view ${c?`with ${c} ${h}`:""}`,customTextColour:d,ref:n},g),e.createElement(qg,{active:u,onMouseEnter:b,onMouseLeave:w,colourPalette:s,customTextColour:d},r&&e.createElement(Xg,null,r),e.createElement(U,{variant:"bodyBold"},i),null!=c&&e.createElement(Yg,{"data-testid":"countContainer",active:u||y,colourPalette:s,customTextColour:d},e.createElement(Kg,{variant:"subheadingSmall"},c)),E&&e.createElement(_g,Object.assign({},Jg,{"aria-label":"delete icon"})),$&&u&&e.createElement(Ug,Object.assign({},Jg,{"aria-label":"edit icon"}))))})),ef=f(rt).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;`,tf=f(rt).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${R.neutral.grey.lightest};`,nf=f(Od).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${R.neutral.ink.base};`,af=f(qt).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${R.neutral.ink.base};`,rf=f(Zg).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${R.neutral.ink.base};`,of=f(Re).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${R.neutral.grey.lightest};}`,lf=f(Re).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${nf}{color:${R.neutral.ink.lightest};}}&:hover{background-color:${R.neutral.grey.lightest};}`,sf=f(Re).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${af}{color:${R.neutral.ink.lightest};}}&:hover{background-color:${R.neutral.grey.lightest};}`,df=f(Hu).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,cf=(e,n)=>{var r;const[i,o]=t(!0),[l,d]=t(!1),[c,u]=t([]),m=null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.querySelector("[aria-selected = true]"),p=S(m),h=s((()=>{var t,n;e.current.scrollLeft>0?o(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),o(!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()),d(!0)):d(!1)}),[e]),g=s((()=>{var t;void 0!==typeof(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.scrollWidth)&&(e.current.scrollWidth-e.current.getBoundingClientRect().width<5?d(!0):d(!1))}),[e]),f=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})(c,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,c]),v=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})(c,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,c]);return a((()=>{var t,a,r,i,o,l,s,d,f,v;if(e){if((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)!==c.length&&c.length>0&&c.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),u([...c,c[c.length-1]+(null!==(l=null===(o=e.current.children[c.length-1])||void 0===o?void 0:o.getBoundingClientRect().x)&&void 0!==l?l:0)-20])),(null===(d=null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.children)||void 0===d?void 0:d.length)&&0===c.length&&u((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m!==p&&null!==m&&(null===(v=null===(f=null==e?void 0:e.current)||void 0===f?void 0:f.children)||void 0===v?void 0:v.length)===c.length){const t=Array.from(e.current.children).indexOf(m);e.current.scrollTo({left:c[t],top:0,behavior:"smooth"})}return g(),window.addEventListener("resize",(()=>g())),e.current.addEventListener("scroll",(()=>h())),()=>{window.removeEventListener("resize",(()=>g()))}}}),[e,n,g,h,c,m,p]),{rightDisabled:l,leftDisabled:i,toNextScrollPosition:f,toPrevScrollPosition:v}},uf=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:a,ariaMenuExpanded:r},i)=>{const l=o(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=cf(l,t);return e.createElement(tf,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(ef,{ref:l,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(df,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(lf,{id:"left-arrow",icon:e.createElement(nf,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(sf,{id:"right-arrow",icon:e.createElement(af,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(of,{icon:e.createElement(rf,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":a,"aria-expanded":r,"aria-haspopup":a?"dialog":void 0,ref:i})))})),mf=f(N).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,pf=f(N).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,hf=f(Yu).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,gf=f(Re).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${H.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${H.colors.secondary.red.base};\n `};`,ff=e=>Qu(e,em),vf=vc((t=>{var{size:n=Wu.base,hasError:a,className:r}=t,i=ae(t,["size","hasError","className"]);return e.createElement(mf,{className:r},e.createElement(pf,null,"g"===i.weightUnit&&e.createElement(Hu,null,e.createElement(hf,Object.assign({size:n,onChange:i.handleChangeGram,name:"gram",type:"number",value:i.gram,hasError:a,min:"0",step:"any",onKeyDown:ff},i)),e.createElement(gf,{hasError:a,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(i)&&e.createElement(e.Fragment,null,e.createElement(Hu,null,e.createElement(hf,Object.assign({size:n,onChange:i.handleChangePound,name:"pound",type:"number",value:i.pound,hasError:a,step:"any",min:"0",onKeyDown:ff},i)),e.createElement(gf,{hasError:a,size:n},"lb")),e.createElement(Hu,null,e.createElement(hf,Object.assign({size:n,onChange:i.handleChangeOunce,name:"ounce",type:"number",value:i.ounce,hasError:a,min:"0",step:"any",onKeyDown:ff},i)),e.createElement(gf,{hasError:a,size:n},"oz")))))}));vf.displayName="WeightInput",vf.defaultProps={weightUnit:"lb"};export{pg as AcceptedFileTypes,ne as Accordion,nt as ActionList,ht as Alert,ft as Anchor,Et as AnimatedDropdown,Dt as Avatar,Vt as Badge,Ut as Banner,N as BaseContainer,en as Breadcrumbs,Re as Button,_e as Card,Ve as CardHeader,nc as Checkbox,Jd as Choice,lc as ChoiceList,uc as CopyToClipboard,Nu as DataTable,wc as DateRangeInput,Fc as DateRangePicker,Fu as DescriptionList,Bu as DetailPage,nm as DimensionsInput,im as Dropdown,hg as FileSizeUnit,$m as FilterTag,cm as FocusVisibleManager,Dm as Grid,Pm as Image,Hu as InputGroup,$p as LegacyDataTable,be as Loader,Sp as LoginWithAmazonButton,Vp as Modal,qp as PageHeader,ah as Pagination,mh as PaginationRange,ge as Popover,Ig as Popup,ie as Portal,wh as PriceInput,rc as Radio,Ad as RangeCalendar,Eh as ScreenReaderOnly,Sh as Search,Rh as SegmentedControl,Ec as Select,Vh as ShortcutKeys,Uh as SimpleTable,_h as Skeleton,Qh as Slider,rt as Stack,gh as Stepper,eg as Tag,U as Text,Yu as TextField,dg as ToastsLayout,Sc as Toggle,ug as ToggleButton,zt as Tooltip,Eg as UploadFile,Rg as VideoModal,Hg as View,Qg as ViewTab,uf as ViewsContainer,vf as WeightInput,se as buildClassnames,zc as checkIfDateRangeInvalid,re as generateId,ce as getOpaqueHexColor,de as hexToRgb,me as isExternalLink,H as theme,Kc as useCellWidths,om as useClickOutside,Uc as useColumns,lm as useDebounce,_c as useDragToScroll,sm as useDropdown,um as useFocusVisible,mm as useHover,pm as useIsOverflowing,Yc as useNested,qc as useScrollPosition,nu as useSelection,hm as useTabs,yc as withDeprecated,vc as withLabels};
|
|
1
|
+
import e,{useState as t,PureComponent as n,useEffect as o,useMemo as i,forwardRef as r,useRef as l,useCallback as a,Component as s,Fragment as d,useImperativeHandle as c}from"react";import{motion as u,AnimatePresence as m}from"framer-motion";import p,{css as g,createGlobalStyle as h}from"styled-components";import{usePopper as b}from"react-popper";import f from"resize-observer-polyfill";import v,{createPortal as y}from"react-dom";import{uid as x}from"uid/secure";import{CSSTransition as w,TransitionGroup as E}from"react-transition-group";import{isWeekend as $,now as C,getLocalTimeZone as k,startOfYear as S,startOfMonth as N,startOfWeek as L,endOfMonth as I,CalendarDate as z}from"@internationalized/date";import{CalendarGrid as F,CalendarGridHeader as D,CalendarHeaderCell as T,CalendarGridBody as M,CalendarCell as A,RangeCalendar as R,useLocale as B,Button as O,Heading as j,Group as H,DateField as W,DateInput as P,DateSegment as V}from"react-aria-components";import _ from"lodash.throttle";import{useScroll as Z,usePrevious as Y}from"react-use";import q from"react-scrolllock-configurable";const X=p.div.withConfig({displayName:"vui--BaseContainer",componentId:"vui--jtpszk"})`box-sizing:border-box;position:relative;margin:0;padding:0;`,K={inputLabel:"label",inputLabelSmall:"label",headingSmall:"h3",headingMedium:"h3",headingLarge:"h2",headingXL:"h1",headingXXL:"h1",button:"button",buttonSmall:"button"},G=(e,t)=>e||(t?K[t]:void 0),U={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"}}},J={mobile:"640px",tablet:"720px",lgTablet:"960px",desktop:"1280px",lgDesktop:"1440px"},Q={sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.75rem",full:"50%"};var ee,te;!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)"}(ee||(ee={})),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"}(te||(te={}));const ne=function({increment:e,unit:t,count:n}){const o={};for(let i=0;i<=n;i++){const n=i*e;o[i]=`${n}${t}`}return o}({increment:.25,unit:"rem",count:20}),oe={[te.none]:"0",[te.line]:"1px",[te.xs]:ne[1],[te.sm]:ne[2],[te.base]:ne[4],[te.md]:ne[6],[te.lg]:ne[8],[te.xl]:ne[12],[te.xxl]:ne[16]},ie=Object.assign(Object.assign({},oe),ne),re={fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"},le={headingXXL:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"40px",lineHeight:"56px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.022rem"},headingXL:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"28px",lineHeight:"40px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.02rem"},headingLarge:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"32px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.019rem"},headingMedium:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"28px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.017rem"},headingSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"20px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.011rem"},headingTable:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},subheadingLarge:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:U.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.017rem"},subheadingMedium:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:U.neutral.ink.light,textDecoration:"none",letterSpacing:"-0.011rem"},subheadingSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},subheadingSmallBold:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},body:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodySmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},bodyBold:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},bodyBoldDark:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:U.neutral.ink.dark,textDecoration:"none",letterSpacing:"0"},bodySmallBold:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},button:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"16px",lineHeight:"24px",color:U.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.011rem"},buttonSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:U.secondary.blue.base,textDecoration:"none",letterSpacing:"-0.006rem"},linkLarge:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"20px",lineHeight:"28px",color:U.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.017rem"},linkMedium:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"24px",color:U.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.011rem"},link:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:U.secondary.blue.base,textDecoration:"underline",letterSpacing:"-0.006rem"},linkSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:U.secondary.blue.base,textDecoration:"underline",letterSpacing:"0"},inputLabel:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"-0.006rem"},inputLabelSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.base,textDecoration:"none",letterSpacing:"0"},hintText:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.light,textDecoration:"none",letterSpacing:"0"},placeholder:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:U.neutral.ink.lightest,textDecoration:"none",letterSpacing:"-0.006rem"},placeholderSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0"},placeholderCode:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"14px",lineHeight:"20px",color:U.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.5rem"},placeholderCodeSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"16px",color:U.neutral.ink.lightest,textDecoration:"none",letterSpacing:"0.375rem"},error:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"20px",color:U.secondary.red.base,textDecoration:"none",letterSpacing:"-0.006rem"},errorSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:U.secondary.red.base,textDecoration:"none",letterSpacing:"0"},successSmall:{fontFamily:re.fontFamily,fontStyle:"normal",fontWeight:600,fontSize:"12px",lineHeight:"16px",color:U.secondary.green.base,textDecoration:"none",letterSpacing:"0"}},ae=Object.assign(Object.assign({},re),{breakpoints:J,colors:U,layers:{base:0,popup:1e3,modal:2e3,tooltip:3e3},radius:Q,shadows:ee,sizes:ie,text:le}),{text:se,colors:de,fontFamily:ce}=ae,ue=p.span.attrs((({as:e,variant:t})=>({as:G(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:${ce};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?de.neutral.ink.lightest:se[e].color;return`\n font-family: ${se[e].fontFamily};\n font-style: ${se[e].fontStyle};\n font-weight: ${se[e].fontWeight};\n font-size: ${se[e].fontSize};\n line-height: ${se[e].lineHeight};\n color: ${n};\n text-decoration: ${se[e].textDecoration};\n letter-spacing: ${se[e].letterSpacing};\n `}}`,me=p(X).withConfig({displayName:"vui--TapBarChild",componentId:"vui--3ngcs3"})`display:flex;flex-direction:row;align-items:center;`,pe=p(me).withConfig({displayName:"vui--Left",componentId:"vui--sjvmul"})`svg{margin-right:12px;height:${ie.base};width:${ie.base};color:${({glyphColor:e})=>e};}`,ge=p(me).withConfig({displayName:"vui--Right",componentId:"vui--1mm1lxm"})`justify-content:flex-end;flex-grow:2;`,he=p.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 ${ae.colors.neutral.grey.dark};:focus{outline:none;box-shadow:0 0 0 2px ${ae.colors.secondary.blue.light};}:active{box-shadow:0 0 0 2px ${ae.colors.secondary.blue.light};}`,be=p(X).withConfig({displayName:"vui--Top",componentId:"vui--7euo6s"})`display:flex;flex-direction:row;align-items:center;height:16px;`,fe=p(ue).withConfig({displayName:"vui--Description",componentId:"vui--1snn6nn"})`margin-top:8px;`,ve=p(u(X)).withConfig({displayName:"vui--AccordionContent",componentId:"vui--to1g7a"})`margin-top:4px;background:rgba(217, 235, 248, 0.5);padding:10px 26px;`,ye=p.details.withConfig({displayName:"vui--AccordionDetails",componentId:"vui--g3berv"})`summary{list-style-type:none;::-webkit-details-marker{display:none;}}`,xe=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:ie.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"})),we=({className:n,children:o,label:i,iconSlot:r,glyphColor:l=U.neutral.ink.lightest,timeout:a=350,description:s,shouldOpenOnMount:d})=>{const[c,m]=t(!!d);return e.createElement(ye,{open:!!d,className:n},e.createElement(he,{onClick:()=>m(!c)},e.createElement(be,null,e.createElement(pe,{glyphColor:l},r,e.createElement(ue,{variant:"body"},i)),e.createElement(ge,null,e.createElement(u.span,{animate:{rotate:c?180:0}},e.createElement(xe,{name:c?"downArrow":"upArrow"})))),!!s&&e.createElement(fe,{variant:"hintText"},s)),c&&e.createElement(ve,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{from:0,type:"tween",duration:a/1e3}},o))};function Ee(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 i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const $e=e=>`${e}-${x()}`;class Ce extends n{constructor(e){super(e),this.id=$e("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?y(e,this.portalNode):null}}const ke=p.dialog.withConfig({displayName:"vui--PopoverDialog",componentId:"vui--kmoo2l"})`z-index:${({zIndex:e})=>e+1};padding:0;margin:0;border:none;background:transparent;`,Se=p.div.withConfig({displayName:"vui--Backdrop",componentId:"vui--9esryp"})`position:fixed;top:0;right:0;bottom:0;left:0;z-index:${({zIndex:e})=>e};`,Ne=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},Ie=(e,t)=>{const n=Le(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e},ze=["app.veeqo.com"];function Fe(e,t=ze){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 De='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])',Te=({popperElement:e,anchorElement:t,onClose:n,disableFocusLock:i=!1})=>{o((()=>{if(!e||i)return;const t=e.querySelectorAll(De);t.length<1||setTimeout((()=>{t[0].focus()}),0)}),[e,i]),o((()=>{if(!e||!e)return;const o=t=>{if("Tab"===t.key&&!t.shiftKey){const o=e.querySelectorAll(De);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():i||"Tab"!==t.key||(t=>{const n=e.querySelectorAll(De),o=n[0],i=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),i.focus()):t.shiftKey||document.activeElement!==i||(t.preventDefault(),o.focus())})(t))}}},Me=n=>{var{id:r,children:l,zIndex:a=ae.layers.popup,placement:s="bottom",anchorElement:d,rootElementRef:c,onShouldClose:u,style:m,disableFocusLock:p,removeBackdrop:g=!1,useAnchorWidth:h}=n,v=Ee(n,["id","children","zIndex","placement","anchorElement","rootElementRef","onShouldClose","style","disableFocusLock","removeBackdrop","useAnchorWidth"]);const[y,x]=t(null),{styles:w,attributes:E,update:$}=b(d,y,{placement:s}),C=i((()=>r||$e("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:C});const k=()=>{null==d||d.focus(),null==u||u()},{handleKeyDown:S}=Te({popperElement:y,anchorElement:d,onClose:k,disableFocusLock:p});return o((()=>{if(!$||!y)return;const e=new f($);return e.observe(y),()=>e.disconnect()}),[$,y]),o((()=>{if($)return window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)}),[$]),e.createElement(Ce,{rootElementRef:c},!g&&e.createElement(Se,{onClick:k,zIndex:a,"data-testid":"popover-backdrop"}),e.createElement(ke,Object.assign({open:!0,id:C,zIndex:a,ref:x,style:Object.assign(Object.assign(Object.assign({},w.popper),m),h?{width:null==d?void 0:d.clientWidth}:{}),onKeyDown:S},E.popper,v),l))},Ae=({width:t,height:n,className:o,color:i,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:i,stopOpacity:"0",offset:"0%"}),e.createElement("stop",{stopColor:i,stopOpacity:".631",offset:"63.146%"}),e.createElement("stop",{stopColor:i,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:i,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"}))))),Re=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 105 105",fill:i,"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"}))),Be=({width:t,height:n,className:o,color:i,label:r})=>e.createElement("svg",{width:t,height:n,className:o,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:i,"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"}))),Oe=({className:t,height:n=24,width:o=24,color:i="#588CB0",type:r="TailSpin"})=>{switch(r){case"Grid":return e.createElement(Re,{className:t,height:n,width:o,color:i});case"ThreeDots":return e.createElement(Be,{className:t,height:n,width:o,color:i});default:return e.createElement(Ae,{className:t,height:n,width:o,color:i})}},je=p.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})=>ie[e]};height:${({size:e})=>ie[e]};}`,He=p.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:${ae.fontFamily};font-weight:400;border:1px solid;background-color:transparent;white-space:nowrap;${e=>{let t="40px",n="24px",o="24px",i="8px",r="16px",l="4px";return e.hasIcon&&(n="16px"),e.hasDropdown&&(o="16px"),"sm"===e.size&&(t="32px",n="16px",o="16px",i="4px",r="14px",l="2px",e.hasIcon&&(n="8px"),e.hasDropdown&&(o="8px")),e.hasText||(n="8px",o="8px"),`\n --outline-width: ${l};\n\n height: ${t};\n padding-left: ${n};\n padding-right: ${o};\n border-radius: ${i};\n font-size: ${r};\n line-height: ${r};\n `}} &:hover{cursor:pointer;}&:disabled{pointer-events:none;cursor:unset !important;}`,We=p(He).withConfig({displayName:"vui--DefaultButton",componentId:"vui--1xzjfje"})`border-color:${ae.colors.neutral.grey.dark};background-color:white;box-shadow:0 1px 3px rgba(55, 66, 77, 0.15);color:${({hasText:e})=>e?ae.colors.neutral.ink.base:ae.colors.secondary.blue.base};&:hover{background-color:${ae.colors.neutral.grey.lightest};}&:active{background-color:${ae.colors.neutral.grey.lightest};border-color:${ae.colors.secondary.blue.base};box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};outline:0;}&:disabled{box-shadow:none !important;background-color:${ae.colors.neutral.grey.base} !important;border-color:${ae.colors.neutral.grey.base} !important;color:${ae.colors.neutral.ink.light} !important;}`,Pe=p(We).withConfig({displayName:"vui--DefaultDestructiveButton",componentId:"vui--1ixaf03"})`color:${ae.colors.secondary.red.base};&:hover{color:${ae.colors.secondary.red.dark};}&:active{border-color:${ae.colors.secondary.red.base};box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.red.light};color:${ae.colors.secondary.red.dark};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.red.light};}`,Ve=p(We).withConfig({displayName:"vui--PrimaryButton",componentId:"vui--16w0ufk"})`background-color:${ae.colors.secondary.blue.base};border-color:${ae.colors.secondary.blue.base};color:white;&:hover{background-color:${ae.colors.secondary.blue.dark};border-color:${ae.colors.secondary.blue.dark};}&:active{background-color:${ae.colors.secondary.blue.dark};border-color:${ae.colors.secondary.blue.dark};box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};}`,_e=p(Ve).withConfig({displayName:"vui--PrimaryDestructiveButton",componentId:"vui--1w3lv3r"})`background-color:${ae.colors.secondary.red.base};border-color:${ae.colors.secondary.red.base};color:white;&:hover{background-color:${ae.colors.secondary.red.dark};border-color:${ae.colors.secondary.red.dark};}&:active{background-color:${ae.colors.secondary.red.dark};border-color:${ae.colors.secondary.red.dark};box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.red.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.red.light};}`,Ze=p(He).withConfig({displayName:"vui--FlatButton",componentId:"vui--fqczse"})`border-color:transparent;box-shadow:none;color:${ae.colors.neutral.ink.base};&:hover{background-color:${ae.colors.neutral.grey.light};}&:active{background-color:${ae.colors.neutral.grey.light};box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};}&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};outline:0;}&:disabled{background-color:transparent;border-color:transparent;}`,Ye=p.button.withConfig({displayName:"vui--UnstyledButton",componentId:"vui--1fxilc"})`appearance:none;border:0;background-color:transparent;padding:0;font:inherit;&:hover{cursor:pointer;}`,qe=p(Ye).withConfig({displayName:"vui--LinkButton",componentId:"vui--z932nb"})`display:inline-flex;flex-direction:row;align-items:center;font-family:${ae.text.link.fontFamily};font-size:${ae.text.link.fontSize};line-height:${ae.text.link.fontSize};font-weight:${ae.text.link.fontWeight};line-height:${ae.text.link.lineHeight};text-decoration:${ae.text.link.textDecoration};color:${ae.colors.secondary.blue.base};&:hover{color:${ae.colors.secondary.blue.dark};}& > * + *{margin-left:${ae.sizes.xs};}&:focus-visible{outline:0;box-shadow:0 0 0 4px white,0 0 0 8px ${ae.colors.secondary.blue.light};border-radius:4px;}`,Xe=p.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;`,Ke=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"})),Ge={default:We,primary:Ve,destructive:Pe,primaryDestructive:_e,flat:Ze,link:qe,unstyled:Ye},Ue=r(((t,n)=>{var{className:o,children:i,icon:r,variant:l="default",size:a="base",dropdown:s=!1,loading:d=!1}=t,c=Ee(t,["className","children","icon","variant","size","dropdown","loading"]);if("unstyled"===l)return e.createElement(Ye,Object.assign({ref:n,className:o},c),i);const u=Ge[l],m=void 0!==i,p=!!r;return e.createElement(u,Object.assign({ref:n,className:o,size:a,hasText:m,hasIcon:p,hasDropdown:s},c),(m||p)&&e.createElement(je,{$loading:d,hasText:!!i,size:i||"sm"===a?"base":"md"},r&&r,void 0!==i&&i,s&&e.createElement(Ke,null)),d&&e.createElement(Xe,null,e.createElement(Oe,null)))})),Je=p.header.withConfig({displayName:"vui--Header",componentId:"vui--oa1a54"})`padding-top:${ie.md};padding-right:${ie.md};padding-left:${ie.md};margin-bottom:${ie.md};& > * + *{margin-top:${ie.xs};}`,Qe=p.div.withConfig({displayName:"vui--HeaderGrid",componentId:"vui--129vg5d"})`/*${ie.base}*/display:flex;justify-content:flex-end;align-items:center;& > *:first-child{flex:1;}`,et=t=>e.createElement("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",height:ie.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"})),tt=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"})),nt=({id:t,title:n,subtitle:o,headerVariant:i="headingSmall",action:r,ActionSlot:l,isCollapsed:a,onClickCollapse:s,onClickClose:d})=>e.createElement(Je,null,e.createElement(Qe,null,e.createElement(ue,{id:t,variant:i},n),r&&e.createElement(Ue,{variant:"link",onClick:r.onClick},r.title),l,s&&e.createElement(Ue,{variant:"flat",icon:a?e.createElement(et,null):e.createElement(xe,null),onClick:s}),d&&e.createElement(Ue,{variant:"flat",icon:e.createElement(tt,null),onClick:d,"aria-label":"Close"})),o&&e.createElement(ue,{variant:"subheadingSmall"},o)),{grey:ot}=U.neutral,it={0:"none",1:ee.sm,2:ee.base,3:ee.md,4:ee.lg},rt={info:U.secondary.blue.base,success:U.secondary.green.base,error:U.secondary.red.base},lt=p.footer.withConfig({displayName:"vui--Footer",componentId:"vui--livrdi"})`margin-top:${ie.base};padding:${ie.md};z-index:2;`,at=p.section.withConfig({displayName:"vui--Section",componentId:"vui--z99ese"})`padding-right:${ie.md};padding-left:${ie.md};margin-top:${ie.md};margin-bottom:${ie.md};font-family:${le.body.fontFamily};font-size:${le.body.fontSize};font-weight:${le.body.fontWeight};line-height:${le.body.lineHeight};color:${le.body.color};& + &{border-top:${ie.line} solid ${ot.base};padding-top:${ie.md};}`,st=p.div.withConfig({displayName:"vui--FullBleed",componentId:"vui--1lgjeo7"})`margin-left:-${ie.md};margin-right:-${ie.md};`,dt=p(u.div).withConfig({displayName:"vui--Body",componentId:"vui--pfgeh3"})`overflow-y:hidden;&:not(:first-child)> ${at}:first-child{margin-top:0;}`,ct=p.div.withConfig({displayName:"vui--Surface",componentId:"vui--g1wpqa"})`position:relative;width:100%;background-color:white;border:${ie.line} solid ${ot.base};box-shadow:${e=>void 0!==e.elevation?it[e.elevation]:ee.sm};border-radius:${Q.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: ${ie.xs};\n background-color: ${rt[e]};\n }\n `}`,ut={expanded:{height:"auto"},collapsed:{height:0}},mt=({className:n,style:o,title:i,subtitle:r,HeaderActionSlot:l,action:a,collapsable:s,elevation:d,accent:c,children:u,onClose:m,renderFooter:p})=>{const[g,h]=t(!1),b=i&&e.createElement(nt,{title:i,subtitle:r,ActionSlot:l,action:a,onClickClose:m,isCollapsed:g,onClickCollapse:s?()=>{h(!g)}:void 0}),f=s&&!g||!s,v=e.createElement(dt,{animate:f?"expanded":"collapsed",variants:ut,transition:{duration:.3,ease:"easeOut"}},e.createElement(at,null,u)),y=void 0!==p&&e.createElement(lt,null,p());return e.createElement(ct,{className:n,style:o,elevation:d,accent:c},b,v,y)};mt.Surface=ct,mt.Section=at,mt.FullBleed=st,mt.Footer=lt;const{sizes:pt,colors:gt,text:ht}=ae,bt=p(mt.Surface).withConfig({displayName:"vui--ListCard",componentId:"vui--kw21jd"})`min-width:280px;padding:${pt.base} 0;display:flex;flex-direction:column;`,ft=p.section.withConfig({displayName:"vui--Section",componentId:"vui--1s2yh62"})`display:flex;flex-direction:column;& + &{border-top:1px solid ${gt.neutral.grey.base};margin-top:${pt.base};padding-top:${pt.base};}`,vt=p(ue).attrs({variant:"subheadingSmall"}).withConfig({displayName:"vui--SectionHeading",componentId:"vui--pmpwvh"})`margin:${pt.sm} ${pt.base} ${pt.sm};`,yt=p(Ue).attrs({variant:"unstyled"}).withConfig({displayName:"vui--Item",componentId:"vui--16t44ko"})`box-sizing:border-box;min-height:${pt.lg};padding:${pt.xs} ${pt.base};display:flex;align-items:center;white-space:nowrap;font-family:${ht.body.fontFamily};font-size:${ht.body.fontSize};font-weight:${ht.body.fontWeight};&:hover{background-color:${gt.neutral.grey.light};color:${gt.secondary.blue.base};}& > * + *{margin-left:${pt[3]};}`,xt={item:yt,action:p(yt).withConfig({displayName:"vui--ActionItem",componentId:"vui--18nrzt0"})`color:${gt.secondary.blue.base};`,link:p(yt).withConfig({displayName:"vui--LinkItem",componentId:"vui--1vta1xq"})`color:${gt.secondary.blue.base};text-decoration:underline;`},wt=({title:n,items:o=[],sections:i,buttonVariant:r,buttonSize:l})=>{const[a,s]=t(!1),[d,c]=t(null),u=t=>{const n=xt[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=i?i.map((t=>e.createElement(ft,{key:t.title},t.title&&e.createElement(vt,null,t.title),t.items.map(u)))):o.map(u);return e.createElement(e.Fragment,null,e.createElement(Ue,{dropdown:!0,variant:r,size:l,onClick:()=>s(!a),ref:c},n),a&&e.createElement(Me,{anchorElement:d,placement:"bottom-start",onShouldClose:()=>s(!1)},e.createElement(bt,null,m)))};var Et;!function(e){e.start="flex-start",e.center="center",e.end="flex-end",e.stretch="stretch",e.between="space-between",e.around="space-around"}(Et||(Et={}));const $t=p.div.withConfig({displayName:"vui--Stack",componentId:"vui--1mxdupo"})`display:flex;${e=>{const{direction:t="vertical",alignX:n="start",alignY:o="start",spacing:i="base"}=e;let r,l,a,s,d="",c="";return"vertical"===t?(r=n&&Et[n],l=o&&Et[o],d=ae.sizes[i],a="column"):(r=o&&Et[o],l=n&&Et[n],c=ae.sizes[i],a="row"),("vertical"===t&&"stretch"===o||"horizontal"===t&&"stretch"===n)&&(s=1),`\n align-items: ${r};\n justify-content: ${l};\n flex-direction: ${a};\n\n & > * {\n flex: ${s};\n }\n\n & > * + * {\n margin-top: ${d};\n margin-left: ${c};\n }\n `}}`;$t.displayName="Stack";const Ct=p($t).attrs({direction:"horizontal",alignX:"between",alignY:"top",spacing:0}).withConfig({displayName:"vui--AlertContainer",componentId:"vui--u8ngai"})`border:1px solid ${({colours:{primary:e}})=>e};border-radius:${ae.radius.base};background-color:${({colours:{background:e}})=>e};`,kt=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"})),St=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"})),Nt=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"})),Lt=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"})),It={base:ae.sizes.base,sm:ae.sizes[3],xs:ae.sizes.sm},zt={base:ae.sizes.md,sm:ae.sizes[5],xs:ae.sizes[5]},Ft={default:Nt,error:kt,success:Lt,info:St,warning:t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),recommend:t=>e.createElement("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M18 8L19.25 5.25L22 4L19.25 2.75L18 0L16.75 2.75L14 4L16.75 5.25L18 8Z",fill:"#694090"}),e.createElement("path",{d:"M18 14L16.75 16.75L14 18L16.75 19.25L18 22L19.25 19.25L22 18L19.25 16.75L18 14Z",fill:"#694090"}),e.createElement("path",{d:"M10.5 8.5L8 3L5.5 8.5L0 11L5.5 13.5L8 19L10.5 13.5L16 11L10.5 8.5ZM8.99 11.99L8 14.17L7.01 11.99L4.83 11L7.01 10.01L8 7.83L8.99 10.01L11.17 11L8.99 11.99Z",fill:"#694090"}))},Dt={default:{primary:ae.colors.neutral.ink.base,background:ae.colors.neutral.grey.lightest},error:{primary:ae.colors.secondary.red.base,background:ae.colors.secondary.red.lightest},success:{primary:ae.colors.secondary.green.base,background:ae.colors.secondary.green.lightest},info:{primary:ae.colors.secondary.blue.base,background:ae.colors.secondary.blue.lightest},warning:{primary:ae.colors.secondary.orange.base,background:ae.colors.secondary.orange.lightest},recommend:{primary:ae.colors.secondary.purple.dark,background:ae.colors.secondary.purple.lightest}},Tt=t=>{var{size:n="base",variant:o="default",colours:i,rightActions:r,title:l,titleSlot:a,message:s,children:d,iconSlot:c,onClickClose:u}=t,m=Ee(t,["size","variant","colours","rightActions","title","titleSlot","message","children","iconSlot","onClickClose"]);const p=null!=i?i:Dt[o],g=c||Ft[o],h="xs"===n;return e.createElement(Ct,Object.assign({colours:p,direction:"horizontal",alignX:"between",spacing:"0"},m),e.createElement($t,{direction:"horizontal",alignY:h?"center":"start",style:{margin:It[n],gap:It[n]},spacing:0},e.createElement(g,{"aria-hidden":!0,style:{minWidth:zt[n],minHeight:zt[n],width:zt[n],height:zt[n]},color:p.primary}),e.createElement($t,{direction:"vertical",spacing:h?0:"xs"},a||e.createElement(ue,{variant:h?"bodySmallBold":"bodyBold",style:"base"===n?{lineHeight:"24px"}:{}},l),d||e.createElement(ue,{variant:h?"bodySmall":"body"},s))),e.createElement($t,{direction:"horizontal",alignX:"end",spacing:0,style:{margin:h?void 0:ae.sizes[3],gap:h?void 0:It[n],alignItems:"center"}},r&&e.createElement($t,{alignY:"center",spacing:0,style:{gap:It[n]}},r.map((t=>{var{label:n}=t,o=Ee(t,["label"]);return e.createElement(Ue,Object.assign({key:n,type:"button",size:"sm"},o),n)}))),u&&e.createElement($t,{alignY:h?"center":"start",style:{height:"100%",padding:h?ae.sizes.xs:void 0}},e.createElement(Ue,{variant:"flat",icon:e.createElement(tt,null),onClick:u,"aria-label":"Close",size:"sm"}))))},Mt=p.a.withConfig({displayName:"vui--CommonAnchor",componentId:"vui--14i39s8"})`box-sizing:border-box;display:inline-flex;margin:0;padding:0;font-family:${ae.text.link.fontFamily};font-style:${ae.text.link.fontStyle};font-weight:${ae.text.link.fontWeight};font-size:${ae.text.link.fontSize};line-height:${ae.text.link.lineHeight};color:${ae.colors.secondary.blue.base};text-decoration:${ae.text.link.textDecoration};&:hover{color:${ae.colors.secondary.blue.dark};}`,At=t=>{var{children:n,href:o,rel:i,allowedHostnames:r=ze}=t,l=Ee(t,["children","href","rel","allowedHostnames"]);const a=Fe(o,r),s=i||(a?"noopener noreferrer":void 0);return e.createElement(Mt,Object.assign({href:o,rel:s},l),n)},Rt=p(X).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;`,Bt=r(((t,n)=>{const{children:o,className:i,role:r}=t;return e.createElement(Rt,{className:i,ref:n,role:r},o)})),Ot=p(X).withConfig({displayName:"vui--Container",componentId:"vui--q4276w"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;`,jt=p(X).withConfig({displayName:"vui--Wrap",componentId:"vui--cfebb1"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;min-width:100%;`,Ht=p(Bt).withConfig({displayName:"vui--Dropdown",componentId:"vui--u4w0zl"})`flex-direction:column;position:absolute;z-index:${ae.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);}`,Wt=({cta:t,shouldShowDropdown:n,children:i,className:r="animated-dropdown",reversed:a=!1,onClickAway:s=(()=>{}),timeout:d=350,transitionClassnames:c="dropdown",onClick:u,onMouseEnter:m,onMouseLeave:p})=>{const g=l(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(Ot,{className:`${r}-container ${r}`,onClick:u,onMouseEnter:m,onMouseLeave:p,ref:g},!a&&t,e.createElement(jt,{className:`${r}-wrap ${r}`},e.createElement(w,{in:n,timeout:d,classNames:c,unmountOnExit:!0},e.createElement(Ht,{role:"dialog",reversed:a,className:`${r}-basic-dropdown ${r}`},i))),a&&t)},Pt=p.div.withConfig({displayName:"vui--AvatarSC",componentId:"vui--1gxc5tv"})`width:${e=>e.width};height:${e=>e.width};border:3px solid ${ae.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:${ae.text.bodySmallBold.fontFamily};font-weight:${ae.text.bodySmallBold.fontWeight};font-size:${ae.text.bodySmallBold.fontSize};line-height:${ae.text.bodySmallBold.lineHeight};}`,Vt=({width:t="40px",name:n="Veeqo",bgColor:o=ae.colors.secondary.blue.base,textColor:i="#ffffff"})=>{const r=n.toUpperCase().match(/\b(\w)/g);return e.createElement(Pt,{width:t,bgColor:o,textColor:i,className:"avatar"},null==r?void 0:r.slice(0,2).map(((t,n)=>e.createElement("span",{key:`${t}-${n}`},t))))},_t=p.div.withConfig({displayName:"vui--Container",componentId:"vui--1exlfc5"})`display:inline-block;`,Zt=p(_t).withConfig({displayName:"vui--Hoverable",componentId:"vui--up3fpq"})``,Yt=p(ue).withConfig({displayName:"vui--TooltipText",componentId:"vui--gpqzg1"})`color:${ae.colors.neutral.grey.lightest};white-space:pre-line;overflow-wrap:break-word;display:inline;`,qt=p.div.withConfig({displayName:"vui--Triangle",componentId:"vui--1f7lcs5"})`background-color:#333;height:16px;width:16px;position:absolute;transform:rotate(45deg);z-index:12;`,Xt=p.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;}`,Kt=p(_t).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 Gt;!function(e){e.BOTTOM="bottom",e.TOP="top"}(Gt||(Gt={}));const Ut={duration:400,side:Gt.TOP,triangleOffset:8,tipMinWidth:60,tipMaxWidth:340},Jt=({content:n,text:o,hoverableElement:i,config:r,reversed:l,withTriangle:a,classNames:s})=>{const[d,c]=t(null),u=Object.assign(Object.assign({},Ut),r),{duration:m,side:p,triangleOffset:g,tipMinWidth:h,tipMaxWidth:f}=u,{styles:v,attributes:y}=b(i,d,{placement:`${p}-${l?"end":"start"}`,modifiers:[{name:"offset",options:{offset:[0,10]}}]}),x=Object.assign(Object.assign({},v.popper),{zIndex:ae.layers.tooltip});return e.createElement(Xt,Object.assign({className:s.tip,ref:c,duration:m,triangleOffsetSize:g,style:x},y.popper,{role:"tooltip"}),e.createElement(Kt,{className:s.wrap,tipMinWidth:h,tipMaxWidth:f},null!=n?n:e.createElement(Yt,null,o)),a&&e.createElement(qt,{id:"veeqo-components-triangle",className:s.triangle}))},Qt=({children:n,text:o,content:i,config:r,reversed:l=!1,className:a,withTriangle:s,initialShouldShow:d=!1,useReactPortal:c=!0})=>{const[u,m]=t(d),[p,g]=t(null),h=!!o&&o.trim().length>0,b={container:a&&`${a} ${a}-container`,tip:a&&`${a}-tip`,wrap:a&&`${a}-wrap`,triangle:a&&`${a}-triangle`,hoverable:a&&`${a}-hoverable`},f=!(!i&&!h);if(!f)return n;const y=u&&f&&e.createElement(Jt,{classNames:b,hoverableElement:p,config:r,reversed:l,withTriangle:s,text:o,content:i});return e.createElement(_t,{className:b.container},c?v.createPortal(y,document.body):y,e.createElement(Zt,{ref:g,className:b.hoverable,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},n))},en=p(X).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:${le.bodySmall.fontFamily};font-weight:${le.bodySmall.fontWeight};font-size:75%;line-height:16px;border-radius:0.75rem;border:${e=>e.hideBorder?"none":"1px solid transparent"};cursor:default;svg{width:${ie.base};height:${ie.base};}`,tn={default:p(en).withConfig({displayName:"vui--DefaultBadge",componentId:"vui--rwc6j0"})`background-color:inherit;border-color:${U.secondary.blue.base};color:${U.secondary.blue.base};`,primary:p(en).withConfig({displayName:"vui--PrimaryBadge",componentId:"vui--1fakkjy"})`border-color:${U.secondary.blue.base};background-color:${U.secondary.blue.lightest};color:${U.secondary.blue.base};`,warning:p(en).withConfig({displayName:"vui--WarningBadge",componentId:"vui--1r2egf1"})`border-color:${U.secondary.yellow.base};background-color:${U.secondary.yellow.lightest};color:${U.secondary.orange.dark};`},nn=({variant:t="default",hideBorder:n=!1,iconSlot:o,tooltip:i,className:r,e2eClassName:l,children:a})=>{const s=tn[t];return e.createElement(Qt,{text:i},e.createElement(s,{className:Ne([r,l]),hideBorder:n},o&&o,a&&e.createElement("span",null,a)))},on=p(X).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"};`,rn=p(X).withConfig({displayName:"vui--Row",componentId:"vui--1rdjrmx"})`display:flex;flex-direction:row;`,ln=p(X).withConfig({displayName:"vui--Col",componentId:"vui--1ttgibs"})`display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;`,an=p(ln).withConfig({displayName:"vui--IconCol",componentId:"vui--1z6c5f"})`svg{width:${ie.md};height:${ie.md};color:${({accentColor:e})=>e};}`,sn=p(X).withConfig({displayName:"vui--ChildContainer",componentId:"vui--kn3qcr"})`width:100%;`,dn=p(ln).withConfig({displayName:"vui--HeaderCol",componentId:"vui--1nlkkdb"})`flex-grow:2;margin-right:12px;`,cn=p(ue).withConfig({displayName:"vui--StyledText",componentId:"vui--1ioilg"})`position:relative;top:-2px;`,un={help:U.secondary.blue.base,info:U.neutral.ink.base,error:U.secondary.red.base,success:U.secondary.green.base},mn=t=>{var{type:n="info",text:o,icon:i,onClose:r,className:l,header:a,children:s,backgroundColor:d="white"}=t,c=Ee(t,["type","text","icon","onClose","className","header","children","backgroundColor"]);const u=un[n];return e.createElement(on,Object.assign({accentColor:u,className:l,backgroundColor:d},c),e.createElement(rn,null,i&&e.createElement(an,{style:{marginRight:ie.md},accentColor:u},i),s?e.createElement(sn,null,s):e.createElement(e.Fragment,null,e.createElement(dn,null,a||e.createElement(cn,{variant:"headingSmall"},o)),e.createElement(ln,null,r&&e.createElement(Ue,{variant:"flat","aria-label":"Close",icon:e.createElement(tt,null),onClick:r})))))},pn=p.ul.withConfig({displayName:"vui--BreadcrumbsSC",componentId:"vui--1kzms7s"})`list-style:none;padding:0;margin:0;display:flex;align-items:center;font-family:${le.body.fontFamily};font-weight:${le.body.fontWeight};font-size:${le.body.fontSize};line-height:${le.body.lineHeight};`,gn=p.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;}`,hn=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"})),bn=({children:t,title:n,LinkComponent:o,href:i})=>o?e.createElement(gn,{className:"breadcrumb"},e.createElement(o,{href:i},n),t):e.createElement(gn,{className:"breadcrumb"},n,t),fn=()=>e.createElement(hn,{className:"separator",width:ie.base,height:ie.base}),vn=({children:t,href:n})=>e.createElement("a",{href:n},t),yn=({children:t})=>e.createElement("span",null,t),xn=({items:t,Separator:n=e.createElement(fn,null),LinkComponent:o=vn})=>e.createElement(pn,{className:"breadcrumbs"},t.map(((i,r)=>e.createElement(bn,{key:i.title,title:i.title,href:i.pathname,LinkComponent:r!==t.length-1?o:yn},t.length!==r+1&&n)))),wn=t=>e.createElement(F,Object.assign({weekdayStyle:"short"},t),e.createElement(D,null,(t=>e.createElement(T,null,t.slice(0,2)))),e.createElement(M,null,(t=>e.createElement(A,{date:t})))),En=g`.react-aria-Button{color:${ae.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:${ae.sizes.base};height:${ae.sizes.base};}&:active,&:focus-visible{box-shadow:0 0 0 var(--outline-width)${ae.colors.secondary.blue.light};}&:active,&:hover{background-color:${ae.colors.neutral.grey.light};}&:disabled{background-color:transparent;border-color:transparent;user-select:none;color:${ae.colors.neutral.grey.base};cursor:default;}}`,$n=g`.react-aria-CalendarCell{width:32px;line-height:32px;border-radius:${ae.radius.base};cursor:pointer;text-align:center;&[data-hovered]{background-color:${ae.colors.neutral.grey.base};}&[data-focus-visible],&:focus-visible{outline:2px solid ${ae.colors.secondary.blue.light};}&[data-selected]{background:${ae.colors.secondary.blue.base};color:white;border-radius:0;&[data-focus-visible]{outline-color:${ae.colors.secondary.blue.light};outline-offset:-3px;}}&[data-unavailable]{cursor:not-allowed;}&[data-outside-month],&[data-disabled]{cursor:not-allowed;}&[data-unavailable]{text-decoration:line-through;color:${ae.colors.secondary.red.base};&:hover{background-color:inherit;}}&[data-outside-month],&[data-disabled]{color:${ae.colors.neutral.ink.lightest};}&[data-selection-start],&[data-selection-end]{background:${ae.colors.secondary.blue.dark};}&[data-selection-start][data-selection-end]{background-color:${ae.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;}}`,Cn=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`,kn=g`& header{display:flex;align-items:center;margin:0 4px 0.5rem 4px;.react-aria-Heading{flex:1;margin:0;text-align:center;${Cn(ae.text.headingSmall)}}}.react-aria-CalendarHeaderCell{padding-bottom:${ae.sizes.sm};}`,Sn=p(R).withConfig({displayName:"vui--StyledRangeCalendar",componentId:"vui--1nu8m35"})`width:fit-content;max-width:100%;color:${ae.colors.neutral.ink.base};font-size:14px;font-family:${ae.fontFamily};${kn} ${En} ${$n} & table{border-collapse:collapse;height:fit-content;& td{padding:0;}}`,Nn=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"})),Ln=t=>{var n,{disabledRanges:i=[],disallowWeekends:r=!1,isMultiMonth:l=!1}=t,s=Ee(t,["disabledRanges","disallowWeekends","isMultiMonth"]);const[d,c]=e.useState(null===(n=s.value)||void 0===n?void 0:n.start),{locale:u}=B(),m=a((e=>!!r&&$(e,u)||i.some((t=>e.compare(t[0])>=0&&e.compare(t[1])<=0))),[i,r,u]);return o((()=>{var e;c(null===(e=s.value)||void 0===e?void 0:e.start)}),[s.value]),e.createElement(Sn,Object.assign({focusedValue:d,onFocusChange:c,isDateUnavailable:m,visibleDuration:l?{months:2}:void 0},s),e.createElement("header",null,e.createElement(O,{slot:"previous"},e.createElement(Nn,null)),e.createElement(j,null),e.createElement(O,{slot:"next"},e.createElement(hn,null))),l?e.createElement("div",{style:{display:"flex",gap:ae.sizes.sm,overflow:"auto"}},e.createElement(wn,null),e.createElement(wn,{offset:{months:1}})):e.createElement(wn,null))},In={top:"flex-start",center:"center"},zn=p.div.withConfig({displayName:"vui--RootLayout",componentId:"vui--11nf17l"})`display:flex;align-items:center;& > * + *{margin-left:${ae.sizes.base};}`,Fn=p.div.withConfig({displayName:"vui--InputLayout",componentId:"vui--1yac6kr"})`align-self:stretch;display:flex;align-items:${e=>In[e.align]};width:24px;height:24px;`,Dn=p.div.withConfig({displayName:"vui--AccessoryLayout",componentId:"vui--qbgrc7"})`align-self:center;display:flex;align-items:center;`,Tn=p.div.withConfig({displayName:"vui--TextLayout",componentId:"vui--1uu3ed5"})`flex:1;& > * + *{margin-top:${ae.sizes.sm};}`,Mn=p.span.withConfig({displayName:"vui--LabelText",componentId:"vui--xampag"})`font-family:${ae.text.body.fontFamily};font-size:${ae.text.body.fontSize};font-weight:${ae.text.body.fontWeight};line-height:${ae.sizes.md};color:${ae.text.body.color};`,An=p.div.withConfig({displayName:"vui--HintText",componentId:"vui--nu56mb"})`font-family:${ae.fontFamily};font-size:${ae.sizes[3]};line-height:${ae.sizes[4]};color:${ae.colors.neutral.ink.light};`,Rn=p.div.withConfig({displayName:"vui--ErrorText",componentId:"vui--k1l2b9"})`font-family:${ae.text.error.fontFamily};font-size:${ae.text.error.fontSize};font-weight:${ae.text.error.fontWeight};line-height:${ae.text.error.lineHeight};color:${ae.text.error.color};`,Bn=p.label.withConfig({displayName:"vui--Wrapper",componentId:"vui--124eta7"})`box-sizing:border-box;&:hover{cursor:${e=>e.disabled?"default":"pointer"};}`,On=p(Bn).withConfig({displayName:"vui--BorderedWrapper",componentId:"vui--1g99902"})`border:2px solid ${ae.colors.neutral.grey.dark};border-radius:${ae.radius.md};padding:${ae.sizes.base} 0.75rem;&:hover{border-color:${ae.colors.secondary.blue.base};}& ${Mn}{font-weight:${ae.text.bodyBold.fontWeight};}`,jn=p(Qt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1ycxtt7"})`display:block;&-hoverable{display:block;}`,Hn=({id:t,label:n,hint:o,tooltip:i,error:r,bordered:l,Badge:a,Accessory:s,Footer:d,children:c,disabled:u=!1})=>{const m=e.createElement(zn,null,e.createElement(Fn,{align:s?"center":"top"},c),s&&e.createElement(Dn,null,s),n||o||r||a||d?e.createElement(Tn,null,e.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},a,n&&e.createElement(Mn,null,n),i&&e.createElement(jn,{text:i},e.createElement(St,{name:"help",width:ae.sizes.base,color:ae.colors.neutral.ink.lightest}))),o&&e.createElement(An,null,o),r&&e.createElement(Rn,null,r),d):null);return l?e.createElement(On,{disabled:u,htmlFor:t},m):e.createElement(Bn,{disabled:u,htmlFor:t},m)},{colors:Wn,sizes:Pn,radius:Vn}=ae,_n=p.input.withConfig({displayName:"vui--Input",componentId:"vui--hippn5"})`appearance:none;width:18px;height:18px;background-color:transparent;border:2px solid ${Wn.neutral.ink.lightest};border-radius:${Vn.base};cursor:pointer;flex-shrink:0;transition:box-shadow 0.1s,background-color 0.1s;&:checked{background-color:${Wn.secondary.blue.base};border-color:${Wn.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:${Pn[4]};background-position:center;}&:hover{border-color:${Wn.secondary.blue.base};}&:active{border-color:${Wn.secondary.blue.base};}&:focus{box-shadow:0 0 0 4px ${Wn.secondary.blue.light};outline:0;}&:indeterminate{background-color:${Wn.secondary.blue.base};border-color:${Wn.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:${Pn[4]};background-position:center;}&:disabled{box-shadow:none;background-color:${Wn.neutral.grey.base};border-color:${Wn.neutral.grey.base};color:${Wn.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>");}`,Zn=t=>{var{checked:n,indeterminate:r,value:s,name:d,disabled:c,ariaLabel:u,className:m,onChange:p}=t,g=Ee(t,["checked","indeterminate","value","name","disabled","ariaLabel","className","onChange"]);const h=i((()=>$e("checkbox")),[]),b=l(null),f=a((e=>{p(e.currentTarget.checked,s)}),[p,s]);return o((()=>{b.current&&(b.current.indeterminate=!0===r)}),[r]),e.createElement(Hn,Object.assign({id:h,disabled:c},g),e.createElement(_n,{ref:b,id:h,type:"checkbox",checked:n,value:s,name:d,disabled:c,"aria-label":u,className:m,onChange:f}))},Yn=p.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;}`,qn=r(((t,n)=>{var{checked:o,value:i,name:r,disabled:l,onChange:s,id:d}=t,c=Ee(t,["checked","value","name","disabled","onChange","id"]);const u=a((e=>{s(e.currentTarget.checked,i)}),[s,i]),m=null!=d?d:$e("radio");return e.createElement(Hn,Object.assign({id:m,disabled:l},c),e.createElement(Yn,{id:m,type:"radio",checked:o,value:i,name:r,disabled:l,onChange:u,ref:n}))})),Xn=p.fieldset.withConfig({displayName:"vui--Fieldset",componentId:"vui--bygv6o"})`padding:0;display:flex;flex-direction:column;border:0;& > * + *{margin-top:16px;}`,Kn=p.legend.withConfig({displayName:"vui--Legend",componentId:"vui--18baj4v"})`font-family:${ae.text.inputLabel.fontFamily};font-size:${ae.text.inputLabel.fontSize};font-style:${ae.text.inputLabel.fontStyle};font-weight:${ae.text.inputLabel.fontWeight};line-height:${ae.text.inputLabel.lineHeight};text-decoration:${ae.text.inputLabel.textDecoration};color:${ae.text.inputLabel.color};`;class Gn extends s{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 i=[];i=t?[...n,e]:n.filter((t=>t!==e)),o(i)}}render(){const{allowMultiple:t,options:n,selected:o,title:i,disabled:r,bordered:l}=this.props,a=t?Zn:qn;return e.createElement(Xn,{disabled:r},i&&e.createElement(Kn,null,i),n.map((t=>e.createElement(a,Object.assign({key:t.value,bordered:l,checked:o.includes(t.value),onChange:e=>this.handleChange(t.value,e)},t)))))}}const Un=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"})),Jn={width:ie.base,height:ie.base},Qn=p(Ue).withConfig({displayName:"vui--XSButton",componentId:"vui--e6p1xr"})`padding:1px;height:unset;span{height:${ie.base};width:${ie.base};top:unset;}`,eo=({className:t,text:n,onCopy:o})=>{const[i,r]=e.useState(!1),l=a((()=>{navigator.clipboard.writeText(n),o&&o(),r(!0),setTimeout((()=>r(!1)),2500)}),[o,n]);return e.createElement(Qt,{text:i?"Copied!":"Copy to clipboard"},e.createElement(Qn,{variant:"flat",size:"sm",className:t,"aria-label":`${i?"Copied":"Copy"} "${n}" to clipboard`,icon:i?e.createElement(Lt,Object.assign({color:U.secondary.green.base},Jn)):e.createElement(Un,Object.assign({color:U.secondary.blue.base},Jn)),onClick:l}))},to=p.label.withConfig({displayName:"vui--Label",componentId:"vui--qydg5r"})`display:block;font-family:${ae.text.inputLabel.fontFamily};font-size:${ae.text.inputLabel.fontSize};font-weight:${ae.text.inputLabel.fontWeight};line-height:${ae.text.inputLabel.lineHeight};color:${ae.text.inputLabel.color};`,no=p.span.withConfig({displayName:"vui--Hint",componentId:"vui--1p3i1v3"})`display:block;font-family:${ae.fontFamily};font-size:${ae.sizes[3]};line-height:${ae.sizes[4]};color:${ae.colors.neutral.ink.light};`,oo=p.span.withConfig({displayName:"vui--Error",componentId:"vui--9vxkaw"})`display:block;font-family:${ae.text.error.fontFamily};font-size:${ae.text.error.fontSize};font-weight:${ae.text.error.fontWeight};line-height:${ae.text.error.lineHeight};color:${ae.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${ae.sizes[2]} * -1);width:2px;background-color:${ae.colors.secondary.red.base};}`,io=p($t).withConfig({displayName:"vui--RootStack",componentId:"vui--10dmq2i"})`position:relative;`,ro=p(Qt).withConfig({displayName:"vui--BlockTooltip",componentId:"vui--1haf85r"})`display:block;&-hoverable{display:flex;}`,lo=t=>n=>{var{label:o,hint:r,error:l,tooltip:a}=n,s=Ee(n,["label","hint","error","tooltip"]);const d=i((()=>$e(t.name)),[]);return o?e.createElement(io,{spacing:"sm",alignX:"stretch"},e.createElement("div",null,e.createElement($t,{direction:"horizontal",alignY:"center",spacing:"sm"},e.createElement(to,{id:`${d}-label`,htmlFor:d},o),a&&e.createElement(ro,{text:a},e.createElement(St,{width:ae.sizes.base,height:ae.sizes.base,color:ae.colors.neutral.ink.light}))),r&&e.createElement(no,null,r)),e.createElement(t,Object.assign({id:d,hasError:!!l},s)),l&&e.createElement(oo,null,l)):e.createElement(t,Object.assign({hasError:!!l},s))},ao=t=>n=>(o((()=>{console.warn(`${t.name} is deprecated.`)}),[]),e.createElement(t,Object.assign({},n))),so=p(H).withConfig({displayName:"vui--DateRangeGroup",componentId:"vui--hv19xg"})`${Cn(ae.text.body)} display:flex;align-items:center;border:1px solid ${ae.colors.neutral.ink.lightest};border-radius:${ae.radius.base};gap:${ae.sizes.xs};padding:${ae.sizes.sm};margin-top:${ae.sizes.sm};&[data-focus-within]{box-shadow:0 0 0 4px ${ae.colors.secondary.blue.light};}&:has(*[data-invalid]){box-shadow:0 0 0 4px ${ae.colors.secondary.red.light};border:1px solid ${ae.colors.secondary.red.base};}${({$hasError:e})=>!!e&&`\n box-shadow: 0 0 0 4px ${ae.colors.secondary.red.light};\n border: 1px solid ${ae.colors.secondary.red.base};\n `} *[data-placeholder],*[data-placeholder] + div,*:has(*[data-placeholder])~ .date-range-input-splitter{color:${ae.colors.neutral.ink.lightest};}&[data-disabled]{cursor:not-allowed;background-color:${ae.colors.neutral.grey.light};.react-aria-DateInput .react-aria-DateSegment,.date-range-input-splitter{cursor:not-allowed;color:${ae.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:${ae.radius.base};&[data-invalid]{color:${ae.colors.secondary.red.base};}&[data-focused]{color:white;background-color:${ae.colors.secondary.blue.dark};&[data-invalid]{background-color:${ae.colors.secondary.red.lightest};}}&[data-invalid]{font-weight:bold;color:${ae.colors.secondary.red.dark};}&:focus-visible{outline:none;}}}`,co=lo((({id:t,className:n,style:o,shouldForceLeadingZeros:i=!0,hasError:r,minValue:l,maxvalue:a,startValue:s,endValue:d,isDisabled:c,isReadOnly:u,"aria-label":m,"aria-describedby":p,"aria-labelledby":g,onChangeStartDate:h,onChangeEndDate:b})=>e.createElement(so,{style:o,className:n,"aria-label":m,"aria-describedby":p,"aria-labelledby":null!=g?g:`${t}-label`,$hasError:r,isDisabled:c},e.createElement(W,{shouldForceLeadingZeros:i,onChange:h,value:s,minValue:l,maxValue:a,"aria-describedby":p,"aria-labelledby":null!=g?g:`${t}-label`,"aria-label":"start date",isDisabled:c,isReadOnly:u},e.createElement(P,{slot:"start"},(t=>e.createElement(V,{segment:t})))),e.createElement("span",{className:"date-range-input-splitter","aria-hidden":"true"},"-"),e.createElement(W,{shouldForceLeadingZeros:i,onChange:b,value:d,minValue:l,maxValue:a,"aria-describedby":p,"aria-labelledby":null!=g?g:`${t}-label`,"aria-label":"end date",isDisabled:c,isReadOnly:u},e.createElement(P,{slot:"end"},(t=>e.createElement(V,{segment:t}))))))),uo=p.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;cursor:not-allowed;}`,mo=lo(r(((t,n)=>{var{className:o,options:i,value:r,onChange:l,size:s,disabled:d,hasError:c}=t,u=Ee(t,["className","options","value","onChange","size","disabled","hasError"]);const m=a((e=>{l&&l(e.currentTarget.value)}),[l]);return e.createElement(uo,Object.assign({className:o,sizeVariant:s,value:null!=r?r:void 0,onChange:m,disabled:d,hasError:c,ref:n},u),!!i&&i.map((t=>e.createElement("option",{key:t.label,value:t.value,disabled:t.disabled,hidden:t.hidden},t.label))))})));mo.displayName="Select";const po=p.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?ae.colors.secondary.blue.lightest:"white"};-webkit-transition:0.3s;transition:0.3s;}`,go=p.input.withConfig({displayName:"vui--Input",componentId:"vui--1ccelw2"})`&:focus-visible + ${po}{box-shadow:0 0 0 4px ${ae.colors.brand.blue.light};}&:checked + ${po}{background-color:#0079d1;}&:disabled + ${po}{background-color:${ae.colors.neutral.grey.base};}&:checked:disabled + ${po}{background-color:${ae.colors.secondary.blue.light};}`,ho=p.span.withConfig({displayName:"vui--Switch",componentId:"vui--13yy1uj"})`display:flex;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;}${po}: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"};}${go}:checked + ${po}{&: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"});}}`,bo=p(X).withConfig({displayName:"vui--Wrapper",componentId:"vui--69792q"})`cursor:${({disabled:e})=>e?"not-allowed":"pointer"};display:inline-block;user-select:none;`,fo=r((({id:t,className:n,name:o,switched:i,small:r,onClick:l=(()=>{}),disabled:a,ariaLabel:s},d)=>e.createElement(bo,{className:n,disabled:a},e.createElement(ho,{small:r,disabled:a},e.createElement(go,{id:t,role:"switch",type:"checkbox",name:o,"aria-label":s,checked:!!i,onChange:a?void 0:l,disabled:a,ref:d}),e.createElement(po,{switched:i,disabled:a}))))),vo=[{label:"Previous Day",value:"PREVIOUS_DAY"},{label:"Previous Week",value:"PREVIOUS_WEEK"},{label:"Previous Month",value:"PREVIOUS_MONTH"},{label:"Previous Year",value:"PREVIOUS_YEAR"}],yo=({options:n=vo,selectedPreviousPeriod:i,setSelectedPreviousPeriod:r})=>{const[l,a]=t(!!i);return o((()=>{i||null==r||r(n[0])}),[i,r,n]),e.createElement(e.Fragment,null,e.createElement(ue,{variant:"inputLabel",style:{display:"flex",alignItems:"center",gap:ae.sizes.sm,whiteSpace:"nowrap"}},e.createElement(fo,{small:!0,switched:l,onClick:()=>{l&&(null==r||r(null)),a(!l)}}),"Compare previous period"),l&&e.createElement(mo,{"aria-label":"Period to compare against",options:n,value:(null==i?void 0:i.value)||n[0].value,onChange:e=>{const t=n.find((({value:t})=>t===e));t&&(null==r||r(t))}}))};var xo;!function(e){e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS",e.LAST_90_DAYS="LAST_90_DAYS",e.LAST_MONTH="LAST_MONTH",e.LAST_12_MONTHS="LAST_12_MONTHS",e.WEEK_TO_DATE="WEEK_TO_DATE",e.MONTH_TO_DATE="MONTH_TO_DATE",e.YEAR_TO_DATE="YEAR_TO_DATE"}(xo||(xo={}));const wo=e=>{const t=C(k());let n;switch(e){case xo.TODAY:n={start:t,end:t};break;case xo.YESTERDAY:n={start:t.subtract({days:1}),end:t.subtract({days:1})};break;case xo.LAST_7_DAYS:n={start:t.subtract({days:7}),end:t};break;case xo.LAST_30_DAYS:n={start:t.subtract({days:30}),end:t};break;case xo.LAST_90_DAYS:n={start:t.subtract({days:90}),end:t};break;case xo.LAST_MONTH:{const e=N(t.subtract({months:1}));n={start:e,end:I(e)};break}case xo.LAST_12_MONTHS:{const e=N(t.subtract({months:1}));n={start:N(e).subtract({months:12}),end:I(e)};break}case xo.WEEK_TO_DATE:n={start:L(t,navigator.language),end:t};break;case xo.MONTH_TO_DATE:n={start:N(t),end:t};break;case xo.YEAR_TO_DATE:n={start:S(t),end:t};break;default:return null}return(e=>{const{start:t,end:n}=e;return{start:new z(t.year,t.month,t.day),end:new z(n.year,n.month,n.day)}})(n)},Eo=[{label:"Custom",value:"CUSTOM",disabled:!0},{label:"Today",value:xo.TODAY},{label:"Yesterday",value:xo.YESTERDAY},{label:"Last 7 Days",value:xo.LAST_7_DAYS},{label:"Last 30 Days",value:xo.LAST_30_DAYS},{label:"Last 90 Days",value:xo.LAST_90_DAYS},{label:"Last Month",value:xo.LAST_MONTH},{label:"Last 12 Months",value:xo.LAST_12_MONTHS},{label:"Week to Date",value:xo.WEEK_TO_DATE},{label:"Month to Date",value:xo.MONTH_TO_DATE},{label:"Year to Date",value:xo.YEAR_TO_DATE}],$o=xo.LAST_30_DAYS;wo($o),Eo.find((({value:e})=>e===$o));const Co=({disabledRanges:e,selectedRange:t})=>{if(!t||!e||0===e.length)return!1;const{start:n,end:o}=t,[i,r]=[n,o].sort();return e.some((([e,t])=>i>=e&&i<=t||r>=e&&r<=t||i<=e&&r>=t))},ko=p.div.withConfig({displayName:"vui--Divider",componentId:"vui--ssvmxc"})`margin:0 -${ae.sizes.base};border-top:1px solid ${ae.colors.neutral.grey.base};`,So=t=>{var{className:n,style:r,isDisabled:l,isMultiMonth:s=!1,showDatePresets:d=!0,onReset:c,disabledRanges:u,selectedPreset:m,setSelectedPreset:p,selectedRange:g,setSelectedRange:h,"aria-describedby":b,"aria-label":f}=t,v=Ee(t,["className","style","isDisabled","isMultiMonth","showDatePresets","onReset","disabledRanges","selectedPreset","setSelectedPreset","selectedRange","setSelectedRange","aria-describedby","aria-label"]);const y=a((e=>t=>{const n={start:"start"===e?t:null==g?void 0:g.start,end:"end"===e?t:null==g?void 0:g.end};h(n)}),[null==g?void 0:g.end,null==g?void 0:g.start,h]),x=i((()=>Co({disabledRanges:u,selectedRange:g})),[u,g]),w=i((()=>g?(e=>Eo.reduce(((t,n)=>{if(n.hidden||t)return t;const o=wo(n.value);if(!o)return t;const{start:i,end:r}=o;return 0===e.start.compare(i)&&0===e.end.compare(r)?n:t}),void 0))(g):null),[g]);return o((()=>{p(w||Eo[0])}),[w,p]),e.createElement($t,{direction:"vertical",alignX:"stretch",spacing:"0",style:Object.assign({gap:ae.sizes.base},r),className:n,"aria-describedby":b,"aria-label":f},d&&e.createElement(mo,{disabled:l,label:"Date Range",options:Eo,value:null==m?void 0:m.value,onChange:e=>{h(wo(xo[e])),p(Eo.find((({value:t})=>t===e))||Eo[0])}}),e.createElement(co,{isDisabled:l,label:"Start date - End date",onChangeStartDate:y("start"),onChangeEndDate:y("end"),startValue:g&&g.start,endValue:g&&g.end,error:x?"Range contains invalid dates":void 0}),v.showPreviousPeriod&&e.createElement(yo,Object.assign({},v)),e.createElement(ko,null),e.createElement($t,{alignX:"center"},e.createElement(Ln,{"aria-label":"Selected Date Range",isDisabled:l,isMultiMonth:s,value:g,onChange:h,disabledRanges:u})),!!c&&e.createElement(e.Fragment,null,e.createElement(ko,null),e.createElement(mt.Footer,{style:{display:"flex",justifyContent:"end",padding:0,margin:0}},e.createElement(Ue,{variant:"default",size:"sm",onClick:c,disabled:l},"Reset"))))};function No(e){switch(e){case"left":default:return"flex-start";case"center":return"center";case"right":return"flex-end"}}function Lo(e,t){switch(typeof e){case"string":return e;case"number":return`${e}px`;case"object":return`minmax(${Lo(e.min,"max-content")}, ${Lo(e.max)})`;default:return t||"1fr"}}function Io({pinnedLeft:e,pinnedRight:t,cellWidths:n,scrollPosition:o,visible:i,stripingMode:r}){const l=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 `)),a=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: ${ae.colors.neutral.grey.lightest};\n }\n\n tr + tr > td {\n border-top: 1px solid ${ae.colors.neutral.grey.base};\n }\n `,p=`\n tbody:nth-of-type(odd) > tr > td {\n background-color: ${ae.colors.neutral.grey.lightest};\n }\n\n tbody + tbody > tr:first-child > td {\n border-top: 1px solid ${ae.colors.neutral.grey.base};\n }\n `;return`\n grid-template-columns: ${i.map((e=>Lo(e.width))).join(" ")};\n\n th::after, td::after {\n transition: box-shadow .3s;\n }\n\n ${e.length>0?l:""}\n ${t.length>0?a:""}\n\n ${d}\n ${u}\n\n ${"nested"===r?p:m}\n `}var zo;!function(e){e.ascending="ascending",e.descending="descending"}(zo||(zo={}));const Fo=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"})),Do=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"})),To=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"})),Mo=({sortState:t,columnId:n,size:o})=>t&&t.columnId===n?t.direction===zo.ascending?e.createElement(Do,{color:ae.colors.neutral.ink.dark,size:o}):e.createElement(To,{color:ae.colors.neutral.ink.dark,size:o}):e.createElement(Fo,{size:o});function Ao(e,n){const[i,r]=t([]),l=()=>{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((()=>{l()}),[e.current]),o((()=>{if(!n.current)return;const e=_(l,50),t=new f(e);return t.observe(n.current),()=>t.disconnect()}),[n.current]),i}function Ro(e){const t=e.filter((e=>!0!==e.hidden)),n=t.filter((e=>"left"===e.pinned)),o=t.filter((e=>"right"===e.pinned)),i=t.filter((e=>"none"===e.pinned||!e.pinned));return{visible:[...n,...i,...o],pinnedLeft:n,pinnedRight:o}}function Bo(e){o((()=>{if(!e.current)return;let t=!1;const n=e.current,o={left:0,x:0},i=e=>{if(!n)return;const i=e.clientX-o.x;n.scrollLeft=o.left-i,t||(n.style.cursor="grabbing",n.style.userSelect="none"),t=!0},r=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),t=!1,n&&(n.style.removeProperty("cursor"),n.style.removeProperty("user-select"))},l=e=>{n&&(o.left=n.scrollLeft,o.x=e.clientX,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r))};return n.addEventListener("mousedown",l),()=>null==n?void 0:n.removeEventListener("mousedown",l)}),[e.current])}function Oo(){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 i=[...e];i.splice(t,1),n(i)}}}}}function jo(e){const[n,i]=t("start"),r=()=>{if(!e.current)return;const{width:t}=e.current.getBoundingClientRect(),{scrollLeft:n,scrollWidth:o}=e.current;i(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=_(r,50),n=new f(t);return n.observe(e.current),()=>n.disconnect()}),[e.current]),{scrollPosition:n,containerRef:e}}const Ho="56px",Wo=p.th.withConfig({displayName:"vui--Header",componentId:"vui--12e6ib8"})`height:${Ho};display:flex;align-items:center;justify-content:${({align:e="left"})=>No(e)};background-color:white;padding-left:${({spacing:e=3})=>ae.sizes[e]};padding-right:${({spacing:e=3})=>ae.sizes[e]};border-bottom:1px solid ${ae.colors.neutral.grey.base};grid-column-end:${({span:e=1})=>`span ${e}`};`;function Po(t){var{selected:n,indeterminate:o,onChange:i,selectionMode:r}=t,l=Ee(t,["selected","indeterminate","onChange","selectionMode"]);return"single"===r?e.createElement(Wo,Object.assign({},l)):e.createElement(Wo,Object.assign({},l),e.createElement(Zn,{checked:n,indeterminate:o,onChange:i}))}const Vo=p.td.withConfig({displayName:"vui--Cell",componentId:"vui--1oz46st"})`display:flex;align-items:center;justify-content:${({align:e="left"})=>No(e)};background-color:white;padding-bottom:var(--density);padding-top:var(--density);padding-left:${({spacing:e=3})=>ae.sizes[e]};padding-right:${({spacing:e=3})=>ae.sizes[e]};color:${ae.text.bodySmall.color};font-family:${ae.text.bodySmall.fontFamily};font-size:${ae.text.bodySmall.fontSize};font-style:${ae.text.bodySmall.fontStyle};font-weight:${ae.text.bodySmall.fontWeight};line-height:${ae.text.bodySmall.lineHeight};grid-column-end:${({span:e=1})=>`span ${e}`};tfoot &{min-height:${"56px"};border-top:1px solid ${ae.colors.secondary.blue.base};background-color:${ae.colors.neutral.grey.lightest};}`;function _o(t){var{selected:n,rowId:o,onChange:i,selectionMode:r,disabled:l}=t,a=Ee(t,["selected","rowId","onChange","selectionMode","disabled"]);return"single"===r?e.createElement(Vo,Object.assign({},a),e.createElement(qn,{value:o,checked:n,disabled:l,onChange:i})):e.createElement(Vo,Object.assign({},a),e.createElement(Zn,{value:o,checked:n,disabled:l,onChange:i}))}const Zo=[[],()=>{}];function Yo({selectionMode:t="multiple",selectionState:n,enabledRowIds:o}){const i=!!n,[r,l]=n||Zo,a=()=>{r.length!==o.length?l(o):l([])};return{selectionEnabled:i,selectedRowIds:r,selectionColumn:{id:"selection",title:"Selection",width:"40px",align:"center",pinned:"left",renderHeader:(n,i)=>e.createElement(Po,Object.assign({},i,{selected:r.length===o.length,indeterminate:r.length>0&&r.length<o.length,onChange:a,selectionMode:t})),renderCell:(n,o,i,r)=>e.createElement(_o,Object.assign({},o,{rowId:n.id,selected:r.selected,onChange:i.setSelected,selectionMode:t,disabled:r.disabled}))},setSelected:(e,n)=>{if(null!=n)if(e&&"single"===t)l([n]);else if(e){if(r.includes(n))return;const e=[...r,n];l(e)}else{const e=r.findIndex((e=>e===n));if(e<0)return;const t=[...r];t.splice(e,1),l(t)}}}}const qo=p.div.withConfig({displayName:"vui--SortIndicator",componentId:"vui--o7masx"})`width:20px;height:20px;display:flex;align-items:center;justify-content:center;background-color:white;color:${ae.colors.neutral.ink.lightest};`,Xo=p.span.withConfig({displayName:"vui--HeaderContent",componentId:"vui--vlccds"})`display:flex;height:28px;align-items:center;gap:4px;white-space:nowrap;color:${ae.text.headingTable.color};font-family:${ae.text.headingTable.fontFamily};font-size:${ae.text.headingTable.fontSize};font-style:${ae.text.headingTable.fontStyle};font-weight:${ae.text.headingTable.fontWeight};line-height:${ae.text.headingTable.lineHeight};`,Ko=p(Xo).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 ${qo}{background-color:${ae.colors.neutral.grey.light};color:${ae.colors.neutral.ink.base};}&:focus-visible{outline:0;box-shadow:0px 0px 0px 2px ${ae.colors.secondary.blue.light};}`;function Go({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 i={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,i);const r=t.sortable?Ko:Xo,l=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===zo.ascending;let i=zo.ascending;return n&&o&&(i=zo.descending),{columnId:t,direction:i}}({sortState:n,columnId:t.id});o?o(e):console.log("DataGrid::renderHeader::handleClickSort - onChangeSort is not defined")}}:{};return e.createElement(Wo,Object.assign({},i),e.createElement(Qt,{text:t.tooltip},e.createElement(r,Object.assign({},l),t.icon&&t.icon,t.title&&e.createElement("span",null,t.title),t.sortable&&e.createElement(qo,null,e.createElement(Mo,{sortState:n,columnId:t.id,size:5})))))}const Uo=ae.colors.neutral.grey.base,Jo=ae.colors.neutral.grey.dark,Qo=p.div.withConfig({displayName:"vui--LoadingCellContent",componentId:"vui--1mf4ayh"})`height:20px;width:75%;border-radius:${ae.radius.base};background:${Uo};background-image:linear-gradient(\n to right,\n ${Uo} 0%,\n ${Jo} 20%,\n ${Uo} 40%,\n ${Uo} 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 ei=p.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:${Ho};background-color:white;`,ti=p.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 ${ae.colors.neutral.grey.base};& > *{flex:1;}`;function ni({selectionColumn:n,intersectionTargetRef:i,containerRef:r,children:l}){var a;const[s,d]=t(!1);o((()=>{if(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{d(!e.isIntersecting)}))}));return e.observe(i.current),()=>e.disconnect()}),[i.current]);const c=null===(a=r.current)||void 0===a?void 0:a.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(ei,{style:m},Go({column:n}),e.createElement(ti,null,l))}const oi=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"})),ii=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"})),ri=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 li=p.div.withConfig({displayName:"vui--EmptyBodyContent",componentId:"vui--grzgy2"})`padding-top:${ae.sizes.lg};padding-bottom:${ae.sizes.lg};grid-column:${({columnCount:e})=>`1 / span ${e}`};display:flex;flex-direction:column;align-items:center;justify-content:center;gap:${ae.sizes.md};`,ai=p.div.withConfig({displayName:"vui--EmptyBodyGlyphWrapper",componentId:"vui--1uqall4"})`padding:${ae.sizes.md};background-color:${ae.colors.neutral.grey.light};border-radius:${ae.radius.full};`,si=p.div.withConfig({displayName:"vui--NoWrap",componentId:"vui--208yv4"})`white-space:nowrap;`,di=p.tr.withConfig({displayName:"vui--Row",componentId:"vui--ryxbs1"})`display:contents;${({selected:e})=>e&&`\n &&&& > td {\n background-color: ${ae.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 `}`,ci=p.div.withConfig({displayName:"vui--ScrollContainer",componentId:"vui--1bx96p0"})`position:relative;width:100%;overflow-x:auto;overflow-y:hidden;`,ui=p.table.withConfig({displayName:"vui--TableGrid",componentId:"vui--1fsix8g"})`min-width:100%;width:max-content;display:grid;& thead,& tbody,& tfoot{display:contents;}--density:${ae.sizes.base};&& tr:hover td{background-color:#f2f8fc;}${({css:e})=>e}`,mi=p.div.withConfig({displayName:"vui--Truncate",componentId:"vui--14fzkum"})`overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`,pi={full:`border-width: 1px; border-radius: ${ae.radius.base};`,vertical:"border-width: 0; border-top-width: 1px; border-bottom-width: 1px;",none:"border-width: 0;"},gi=p.div.withConfig({displayName:"vui--Wrapper",componentId:"vui--5gfhdd"})`width:100%;position:relative;border-style:solid;border-color:${ae.colors.neutral.grey.dark};${({borderMode:e="full"})=>pi[e]} &,& *{box-sizing:border-box;}`;function hi({children:n,intersectionTargetRef:i,containerRef:r,cellWidths:a,tableCss:s}){const d=l(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(!i.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{u(!e.isIntersecting)}))}),{threshold:1});return e.observe(i.current),()=>e.disconnect()}),[i.current]),o((()=>{c&&r.current&&g()}),[r.current,c]),o((()=>{if(!c)return;if(!r.current)return;const e=_(g,33),t=new f(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 b=Object.assign(Object.assign({},m),{height:Ho,position:"fixed",zIndex:5,overflowX:"hidden",overflowY:"hidden",borderBottom:`1px solid ${ae.colors.neutral.grey.base}`}),v=s+a.map(((e,t)=>`\n & th:nth-child(${t+1}) {\n width: ${e}px;\n }\n `)).join("");return e.createElement("div",{style:b,ref:d},e.createElement(ui,{css:v},e.createElement("thead",null,n)))}const bi=(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}),fi={icon:e.createElement(Nt,{width:48,height:48}),heading:"No results"},vi=()=>{},yi=({ActionBarSlot:t,borderMode:n,columns:o,emptyState:i=fi,expandedRowIds:r,loading:a,loadingRowCount:s,onChangeSort:d,rows:c,disabledRowIds:u,selectionMode:m,selectionState:p,setExpanded:g,sortState:h,stripingMode:b,enableStickyHeader:f})=>{const v=l(null),y=l(null),x=l(null);Bo(v);const w=c.map((e=>e.id)).filter((e=>!(null==u?void 0:u.includes(e)))),{selectionEnabled:E,selectedRowIds:$,selectionColumn:C,setSelected:k}=Yo({selectionMode:m,selectionState:p,enabledRowIds:w}),S={setSelected:k||vi,setExpanded:g||vi},N=[C,...o],L=E?N:o,I=Ao(y,v),{visible:z,pinnedLeft:F,pinnedRight:D}=Ro(L),{scrollPosition:T}=jo(v),M=Io({pinnedLeft:F,pinnedRight:D,cellWidths:I,scrollPosition:T,visible:z,stripingMode:b});if(a){const t=new Array(s).fill(!0).map((()=>({id:1e3*Math.random(),data:null})));return e.createElement(gi,{borderMode:n},e.createElement(ci,{ref:v},e.createElement(ui,{css:M,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(di,{role:"row"},z.map((e=>Go({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},t.map((t=>e.createElement(di,{key:t.id},z.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(Vo,Object.assign({},o),e.createElement(Qo,null))}(t,n))))))))))}if(0===c.length)return e.createElement(gi,{borderMode:n},e.createElement(ci,{ref:v},e.createElement(ui,{css:M,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},e.createElement(di,{role:"row"},z.map((e=>Go({column:e,sortState:h,onChangeSort:d}))))),e.createElement("tbody",{role:"rowgroup"},e.createElement(li,{columnCount:z.length},e.createElement(ai,null,i.icon),e.createElement($t,{spacing:"sm",alignX:"center"},e.createElement(ue,{variant:"headingMedium"},i.heading),i.subheading&&e.createElement(ue,{variant:"subheadingMedium"},i.subheading)))))));const A=t=>{const{e2eClassName:n="",accentColor:o}=t,i=bi(t.id,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(di,Object.assign({role:"row",key:t.id,accentColor:o,className:n},i),z.map((e=>function(e,t,n,o){if(t.hidden)return null;const i={align:t.align,key:`${e.id}-${t.id}`,role:"cell",spacing:t.spacing,span:t.span};return t.renderCell(e,i,n,o)}(t,e,S,i))))},R=(t,n)=>{var o,i;const l=null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row,a=bi(n,{selectedRowIds:$,expandedRowIds:r,disabledRowIds:u});return e.createElement(di,{role:"row",key:t.id,className:l},z.map((n=>function(t,n,o){if(n.hidden)return null;const i={align:n.align,key:`${t.id}-${n.id}`,role:"cell",spacing:n.spacing};return n.renderNestedCell?n.renderNestedCell(t,i,o):e.createElement(Vo,Object.assign({},i))}(t,n,a))))},B=t=>{var n;const o=null==r?void 0:r.includes(t.id);return e.createElement("tbody",{role:"rowgroup",key:t.id},A(t),o&&(null===(n=t.nestedRows)||void 0===n?void 0:n.map((e=>R(e,t.id)))))},O=e.createElement(di,{role:"row"},z.map((e=>Go({column:e,sortState:h,onChangeSort:d})))),j=o.some((e=>!!e.renderFooter)),H=$.length>0&&!!t;return e.createElement(gi,{borderMode:n},H&&e.createElement(ni,{selectionColumn:C,intersectionTargetRef:x,containerRef:v},t),e.createElement(ci,{ref:v},f&&e.createElement(hi,{tableCss:M,intersectionTargetRef:x,containerRef:v,cellWidths:I},O),e.createElement("div",{ref:x,style:{height:0}}),e.createElement(ui,{css:M,ref:y,role:"table"},e.createElement("thead",{role:"rowgroup"},O),(()=>{const t=!!r;return t&&"nested"===b?c.map(B):t?e.createElement("tbody",{role:"rowgroup"},c.map((e=>{var t;return[A(e),...(null==r?void 0:r.includes(e.id))&&(null===(t=e.nestedRows)||void 0===t?void 0:t.map((t=>R(t,e.id))))||[]]}))):e.createElement("tbody",{role:"rowgroup"},c.map(A))})(),j&&e.createElement("tfoot",{role:"rowgroup"},e.createElement(di,{role:"row"},z.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(Vo,Object.assign({},n))}({column:t}))))))))};yi.defaultProps={loading:!1,loadingRowCount:5,selectionMode:"multiple",stripingMode:"row",enableStickyHeader:!0},yi.Cell=Vo,yi.ColumnMenu=function({columns:n,columnGroups:o,setColumns:i}){const[r,l]=t(null),[a,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}))})),i(r)};return e.createElement(e.Fragment,null,e.createElement(Ue,{ref:l,dropdown:!0,onClick:()=>s(!0)},"Columns"),a&&e.createElement(Me,{anchorElement:r,onShouldClose:()=>s(!1)},e.createElement(mt,{style:{width:600}},e.createElement($t,{alignX:"stretch",spacing:"sm"},u.map(((t,n)=>e.createElement($t,{key:t[0].id,direction:"horizontal",alignY:"center",spacing:"sm",style:{border:"1px solid black",padding:8}},e.createElement(Ue,{variant:"flat",icon:e.createElement(ri,null)}),e.createElement($t,{spacing:"sm",style:{flex:1}},t.map((t=>e.createElement("div",{key:t.id},t.title)))),e.createElement($t,{direction:"horizontal",spacing:"sm"},t[0].hidden?e.createElement(Ue,{variant:"flat",icon:e.createElement(ii,null),onClick:()=>m(n,!1),style:{color:ae.colors.neutral.ink.lightest}}):e.createElement(Ue,{variant:"flat",icon:e.createElement(oi,null),onClick:()=>m(n,!0)})))))))))},yi.SelectionCell=_o,yi.SelectionHeader=Po,yi.Header=Wo,yi.Truncate=mi,yi.NoWrap=si;const xi=p.dl.withConfig({displayName:"vui--List",componentId:"vui--syirga"})`margin:unset;& > * + *{margin-top:${ae.sizes.base};}`,wi=p.div.withConfig({displayName:"vui--Item",componentId:"vui--dz7dgm"})`& > * + *{margin-top:${ae.sizes.xs};}`,Ei=p.div.withConfig({displayName:"vui--ItemRow",componentId:"vui--1b0o5wp"})`display:flex;justify-content:space-between;& > * + *{margin-left:${ae.sizes.base};}`,$i=p.div.withConfig({displayName:"vui--DescriptionContainer",componentId:"vui--foltw8"})`text-align:right;& > * + *{margin-top:${ae.sizes.xs};}`,Ci=p.dt.withConfig({displayName:"vui--Term",componentId:"vui--s2cfux"})`font-family:${ae.text.bodyBold.fontFamily};font-size:${ae.text.bodyBold.fontSize};font-weight:${ae.text.bodyBold.fontWeight};line-height:${ae.text.bodyBold.lineHeight};color:${ae.text.bodyBold.color};`,ki=p.dd.withConfig({displayName:"vui--Description",componentId:"vui--1915ejg"})`margin-left:unset;font-family:${ae.text.body.fontFamily};font-size:${ae.text.body.fontSize};font-weight:${ae.text.body.fontWeight};line-height:${ae.text.body.lineHeight};color:${ae.text.body.color};`,Si=({items:t,horizontal:n})=>{const o=t=>Array.isArray(t)?t.map((t=>e.createElement(ki,{key:t},t))):e.createElement(ki,null,t);return e.createElement(xi,null,t.map((t=>n?e.createElement(Ei,{key:t.term},e.createElement(Ci,null,t.term),e.createElement($i,null,o(t.description))):e.createElement(wi,{key:t.term},e.createElement(Ci,null,t.term),o(t.description)))))},{sizes:Ni,colors:Li}=ae,Ii=p.div.withConfig({displayName:"vui--ColumnGrid",componentId:"vui--2wnu9m"})`width:100%;display:grid;grid-template-columns:${({showSidebar:e=!0})=>e?`calc(100% - 312px - ${Ni.md}) 312px`:"100% 312px"};align-items:flex-start;grid-gap:${Ni.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,zi=p.div.withConfig({displayName:"vui--ContentContainer",componentId:"vui--nvukr5"})`width:100%;box-sizing:border-box;padding:${Ni.md};overflow-x:hidden;background-color:${Li.neutral.grey.lightest};`,Fi=({renderHeader:n,children:o})=>{const[i,r]=t(!0);return e.createElement("main",null,n((()=>r(!i)),i),e.createElement(zi,null,e.createElement(Ii,{showSidebar:i},o)))},Di=p.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 Ti;!function(e){e.base="base",e.sm="sm"}(Ti||(Ti={}));const Mi=({hasError:e,inputSize:t})=>g`&{--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 "}`,Ai=p.input.withConfig({displayName:"vui--Input",componentId:"vui--3jt15a"})`font-family:${ae.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 `}} ${Mi} &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;width:8ch;text-align:right;}`,Ri=p.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;${Mi}`,Bi=/^-?[0-9]*\.?[0-9]+$/,Oi=lo(r(((t,n)=>{var{id:o,className:i,disabled:r=!1,hasError:l,max:s,min:d,multiline:c=!1,name:u,onChange:m,pattern:p,placeholder:g,rows:h="3",size:b=Ti.base,step:f,type:v="text",value:y,spellCheck:x=!1}=t,w=Ee(t,["id","className","disabled","hasError","max","min","multiline","name","onChange","pattern","placeholder","rows","size","step","type","value","spellCheck"]);const E=a((e=>{if(!m)return;const t=e.currentTarget.value;if(""===t)return void m(t);if("number"!==v)return void m(t);new RegExp(Bi).test(t)&&m(t)}),[m,v]),$=null!=o?o:$e("textfield");return"text"===v&&c?e.createElement(Ri,Object.assign({className:i,disabled:r,hasError:l,id:$,name:u,onChange:E,placeholder:g,rows:h,value:y,spellCheck:x,ref:n},w)):e.createElement(Ai,Object.assign({className:i,disabled:r,hasError:l,id:$,inputSize:b,max:s,min:d,name:u,"aria-label":u,onChange:E,placeholder:g,step:f,type:v,value:y,spellCheck:x,ref:n},w))})));Oi.displayName="TextField";const ji=p(X).withConfig({displayName:"vui--Container",componentId:"vui--oxhxoy"})`display:flex;flex-direction:column;position:relative;`,Hi=p(X).withConfig({displayName:"vui--Row",componentId:"vui--w9sg63"})`display:flex;align-items:center;margin-top:4px;gap:8px;`,Wi=p(Oi).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1dp86fg"})`width:52px;margin:0;padding:0 6px;&&&{text-align:left;border-color:${ae.colors.neutral.ink.lightest};}`,Pi=p(Ue).withConfig({displayName:"vui--StyledButton",componentId:"vui--1h9einl"})`padding:0 6px;border-color:${ae.colors.neutral.ink.lightest};`;p(ue).withConfig({displayName:"vui--Label",componentId:"vui--2iwwsg"})``,p.span.withConfig({displayName:"vui--Error",componentId:"vui--1ln478r"})`display:block;font-family:${ae.text.error.fontFamily};font-size:${ae.text.error.fontSize};font-weight:${ae.text.error.fontWeight};line-height:${ae.text.error.lineHeight};color:${ae.text.error.color};&::before{content:'';position:absolute;top:0;bottom:0;left:calc(${ae.sizes[2]} * -1);width:2px;background-color:${ae.colors.secondary.red.base};}`,p.span.withConfig({displayName:"vui--Hint",componentId:"vui--5lfadq"})`display:block;font-family:${ae.fontFamily};font-size:${ae.sizes[3]};line-height:${ae.sizes[4]};color:${ae.colors.neutral.ink.light};`;const Vi=(e,t)=>{t.includes(e.key)&&e.preventDefault()},_i=["-","+","E","e"],Zi=e=>Vi(e,_i),Yi=lo((t=>{var{size:n=Ti.base,handleChangeHeight:o,handleChangeWidth:i,handleChangeLength:r,className:l,height:a,width:s,length:d,unit:c}=t,u=Ee(t,["size","handleChangeHeight","handleChangeWidth","handleChangeLength","className","height","width","length","unit"]);return e.createElement(ji,{className:l},e.createElement(Hi,null,e.createElement(Wi,Object.assign({onChange:r,size:n,name:"length",type:"number",placeholder:"L",value:d,min:"0",step:"any",onKeyDown:Zi},u)),e.createElement(tt,{height:ae.sizes.base,width:ae.sizes.base}),e.createElement(Wi,Object.assign({onChange:i,size:n,name:"width",type:"number",placeholder:"W",value:s,min:"0",step:"any",onKeyDown:Zi},u)),e.createElement(tt,{height:ae.sizes.base,width:ae.sizes.base}),e.createElement(Di,null,e.createElement(Wi,Object.assign({onChange:o,size:n,name:"height",type:"number",placeholder:"H",value:a,min:"0",step:"any",onKeyDown:Zi},u)),e.createElement(Pi,{size:n},c))))}));Yi.displayName="DimensionsInput";const qi=p(u(mt.Surface)).withConfig({displayName:"vui--DropdownContainer",componentId:"vui--1yrw4mw"})`display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:1px 4px 15px ${ae.colors.neutral.grey.base};border-radius:${ae.radius.base};padding:${ae.sizes.base};`,Xi=t=>{var{id:n,children:i,className:r,style:l,reversed:a,anchorElement:s,useAnchorWidth:d,onShouldClose:c}=t,u=Ee(t,["id","children","className","style","reversed","anchorElement","useAnchorWidth","onShouldClose"]);return o((()=>()=>null==s?void 0:s.focus()),[s]),e.createElement(Me,Object.assign({id:n,"data-testid":n,anchorElement:s,onShouldClose:c,useAnchorWidth:d,placement:"bottom-start"},u),e.createElement(m,null,e.createElement(qi,{className:r,style:l,useAnchorWidth:d,reversed:a,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2}},i)))},Ki=t=>{var{id:n,shouldShow:o,setShouldShow:i,ctaIconSlot:r,ctaProps:a}=t,s=Ee(t,["id","shouldShow","setShouldShow","ctaIconSlot","ctaProps"]);const d=l(null);return e.createElement(e.Fragment,null,e.createElement(Ue,Object.assign({ref:d,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":n,onClick:()=>null==i?void 0:i(!o),icon:r,dropdown:!0},a)),o&&e.createElement(Xi,Object.assign({id:n,anchorElement:d.current,onShouldClose:()=>null==i?void 0:i(!1)},s)))},Gi=(e,t)=>{const n=l(null),i=a((e=>{"Escape"===e.key&&(null==t||t())}),[t]),r=a((e=>{n.current.contains(e.target)||null==t||t()}),[t]);return o((()=>{if(e)return document.addEventListener("click",r),document.addEventListener("keyup",i),()=>{document.removeEventListener("click",r),document.removeEventListener("keyup",i)}}),[r,i,e]),n},Ui=(e,n)=>{const[i,r]=t(e);return o((()=>{const t=setTimeout((()=>r(e)),n);return()=>clearTimeout(t)}),[e,n]),i};function Ji(){const[e,n]=t(!1),o=a((()=>n(!e)),[e,n]),i=a((()=>n(!1)),[n]);return{shouldShowDropdown:e,toggleShouldShowDropdown:o,setShouldShowDropdown:n,closeDropdown:i}}const Qi=e.createContext({hadKeyboardEvent:!0,isInitialized:!1});function er({children:n}){const[i,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 i(e){e.metaKey||e.altKey||e.ctrlKey||r(!0)}function l(){"hidden"===document.visibilityState&&(r(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",l,!0),n(),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",l,!0),o()}}),[r]),e.createElement(Qi.Provider,{value:{hadKeyboardEvent:i,isInitialized:!0}},n)}function tr(){const[t,n]=e.useState(!1),{hadKeyboardEvent:o,isInitialized:i}=e.useContext(Qi),r=e.useCallback((()=>{t||n(!0)}),[t]),l=e.useCallback((()=>{t&&n(!1)}),[t]);let a;return a=i?o&&t:t,e.useMemo((()=>({focusVisible:a,onFocus:r,onBlur:l})),[a,l,r])}const nr=(e=!1)=>{const[n,o]=t(e);return[n,a((()=>o(!0)),[o]),a((()=>o(!1)),[o])]},or=e=>{const[n,i]=t(!1),[r,l]=t(!1);o((()=>{if(!e)return;const t=new ResizeObserver((()=>{const t=e.scrollHeight>e.clientHeight;i(t)}));return t.observe(e),()=>{t.disconnect()}}),[e]);return{isOverflowing:n&&!r,onScroll:t=>{if(!e)return;const{scrollTop:n,scrollHeight:o,clientHeight:i}=t.target;l(o-n-i<=0)}}},ir=(e,n)=>{const{defaultActiveIndex:o=0}=n||{},[i]=t(e),[r,l]=t(i[o]);return[r,e=>{const t=i.find((t=>t.key===e));t&&l(t)}]},rr=p(X).withConfig({displayName:"vui--Container",componentId:"vui--1tebbdi"})`display:inline-flex;flex-direction:row;align-items:center;background-color:${U.neutral.grey.base};border-radius:4px;padding:4px 8px;cursor:pointer;svg{width:${ie.base};height:${ie.base};}`,lr=p(ue).withConfig({displayName:"vui--NonSelectableText",componentId:"vui--qz697a"})`user-select:none;`,ar=p(lr).withConfig({displayName:"vui--GroupLabel",componentId:"vui--17i198i"})`margin-right:4px;`,sr=p(et).withConfig({displayName:"vui--MainIcon",componentId:"vui--rxq762"})`margin-left:4px;transform:rotate(${e=>e.$shouldShow?"180deg":"0"});width:10px;height:10px;`,dr=p(tt).withConfig({displayName:"vui--StyledCrossIcon",componentId:"vui--1o2zyml"})`margin-left:4px;height:10px;width:10px;`,cr=p(X).withConfig({displayName:"vui--Content",componentId:"vui--6n2anv"})`display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;`,ur=p(X).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 ${U.neutral.grey.base};svg{color:${({color:e})=>e};width:${ie[5]};height:${ie[5]};margin-right:10px;}`,mr=e=>({filterTagDropdown:e?`${e}-filter-tag-dropdown`:void 0,container:e?`${e}-container`:void 0,cross:e?`${e}-cross`:void 0}),pr=({className:t,e2eClassName:n,label:o,text:i,iconSlot:r,fill:l=U.secondary.blue.base,content:s,footer:d,header:c,onClickAway:u,onClick:m,shouldCloseOnClickAway:p=!0})=>{const g=mr(t),h=mr(n),{shouldShowDropdown:b,toggleShouldShowDropdown:f,closeDropdown:v}=Ji(),y=a((e=>{f(),u&&b&&u(e)}),[f,u,b]),x=a((e=>{u&&u(e,v),p&&v()}),[v,u,p]);return!s?e.createElement(rr,{className:Ne([null==g?void 0:g.container,null==h?void 0:h.container]),onClick:m},o&&e.createElement(ar,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(ue,null,i),e.createElement(dr,{className:Ne([null==g?void 0:g.cross,null==h?void 0:h.cross]),name:"cross",size:"base",color:U.neutral.ink.base})):e.createElement(Wt,{className:g.filterTagDropdown,shouldShowDropdown:b,onClickAway:x,cta:e.createElement(rr,{className:g.container,onClick:y},o&&e.createElement(ar,{variant:"subheadingSmallBold"},`${o}:`),e.createElement(ue,null,i),e.createElement(sr,{color:U.neutral.ink.base,name:"downArrow",$shouldShow:b}))},e.createElement(cr,null,e.createElement(ur,{color:l},c||e.createElement(e.Fragment,null,r,e.createElement(ue,{variant:"bodyBold"},o))),s,d))},gr=p(X).withConfig({displayName:"vui--Grid",componentId:"vui--12w0ynf"})`display:grid;grid-template-columns:repeat(${({columns:e})=>e}, 1fr);grid-gap:${({spacing:e="base"})=>e?ie[e]:0};`,hr=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"})),br=p.div.withConfig({displayName:"vui--Container",componentId:"vui--yyvmx7"})``,fr=p.img.withConfig({displayName:"vui--CommonImage",componentId:"vui--exntyx"})`box-sizing:border-box;cursor:${({previewEnabled:e})=>e?"zoom-in":"default"};`,vr=p.div.withConfig({displayName:"vui--PreviewImageContainer",componentId:"vui--jt8oew"})`z-index:10;background-color:transparent;`,yr=p.img.withConfig({displayName:"vui--PreviewImage",componentId:"vui--xulm2g"})`box-shadow:0 4px 12px rgba(27, 33, 38, 0.2);`,xr=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}),wr=({src:n,alt:o="",className:i,e2eClassName:r,width:l,height:s,previewWidth:d,previewHeight:c,previewPlacement:u="right",previewEnabled:m=!1,placeholder:p,placeholderWidth:g,placeholderHeight:h,disablePlaceholder:f=!1})=>{const v=xr(i),x=xr(r),[w,E]=t(!1),[$,C]=t({isLoaded:!1,isError:!1}),[k,S]=e.useState(null),[N,L]=e.useState(null),{styles:I,attributes:z}=b(k,N,{placement:u,modifiers:[{name:"offset",options:{offset:[0,12]}}]}),F=a((()=>m?E(!0):{}),[m]),D=a((()=>m?E(!1):{}),[m]),T=!$.isLoaded||$.isError;return e.createElement(br,{className:Ne([null==v?void 0:v.container,null==x?void 0:x.container,i])},e.createElement(fr,{src:n,alt:o,className:Ne([null==v?void 0:v.image,null==x?void 0:x.image]),width:l,height:s,onLoad:()=>C({isLoaded:!0,isError:!1}),onError:()=>C({isLoaded:!0,isError:!0}),previewEnabled:m,onMouseEnter:F,onMouseLeave:D,style:T?{display:"none"}:{},ref:S}),!f&&T&&(p||e.createElement(hr,{className:Ne([null==v?void 0:v.placeholder,null==x?void 0:x.placeholder]),width:g||l,height:h||s})),w&&y(e.createElement(vr,Object.assign({ref:L,style:I.popper},z.popper,{className:Ne([null==v?void 0:v.previewImageContainer,null==x?void 0:x.previewImageContainer])}),e.createElement(yr,{src:n,alt:"",width:d,height:c})),document.body))},Er={width:64,height:64},$r={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({},Er)),title:"No data found"},Cr={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({},Er)),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 kr;!function(e){e.start="start",e.middle="middle",e.end="End",e.none="none"}(kr||(kr={}));const{text:Sr,sizes:Nr}=ae,{blue:Lr}=ae.colors.secondary,{grey:Ir}=ae.colors.neutral,{scrollbar:zr}=ae.colors.system,Fr='\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',Dr=p.div.withConfig({displayName:"vui--TooltipContent",componentId:"vui--11ytygc"})`display:flex;flex-direction:row;align-items:center;`,Tr=p.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 ${Ir.dark};border-bottom:1px solid ${Ir.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: ${zr.background}; \n }\n \n &::-webkit-scrollbar-thumb {\n background: ${zr.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 ${Fr};\n\n ${o===kr.middle||o===kr.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 ${Fr};\n\n ${o===kr.start||o===kr.middle?"\n box-shadow: inset -10px 0 10px -8px rgb(0 0 0 / 25%);\n":""};\n };\n `}`,Mr=p(Tr).withConfig({displayName:"vui--WrapperBordered",componentId:"vui--wtdkab"})`border:1px solid ${Ir.dark};border-radius:4px;`,Ar=p.thead.withConfig({displayName:"vui--Head",componentId:"vui--1j5avrf"})`background-color:white;`,Rr=p.tbody.withConfig({displayName:"vui--Body",componentId:"vui--n8uysg"})`tr{${({fixedColumnsStyle:e})=>e};}& + & > tr:first-child > td{border-top:1px solid ${Ir.base};}tr:not(:first-child)> td{border-top:1px solid transparent;}&&& tr:hover td{background-color:#ebf4fb;}`;p.tfoot.withConfig({displayName:"vui--Foot",componentId:"vui--qckqty"})`& td{background-color:${Ir.lightest};padding:1.5rem 1rem;border-top:1px solid ${Lr.base};}`;const Br=p.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 `}`,Or=p.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:${Sr.bodySmall.fontFamily};font-size:${Sr.bodySmall.fontSize};font-weight:${Sr.bodySmall.fontWeight};color:${Sr.bodySmall.color};line-height:${Nr.base};width:${({grow:e})=>e?"100%":"auto"};& > *{vertical-align:middle;}`,jr=p(Or).attrs({as:"th"}).withConfig({displayName:"vui--HeaderCell",componentId:"vui--10p2duv"})`user-select:none;border-bottom:1px solid ${Ir.dark};font-family:${Sr.bodySmallBold.fontFamily};font-size:${Sr.bodySmallBold.fontSize};font-weight:${Sr.bodySmallBold.fontWeight};color:${Sr.bodySmallBold.color};& span{white-space:pre-line;}&.sortable:hover{cursor:pointer;background-color:${Ir.light};}`,Hr={left:"flex-start",center:"center",right:"flex-end"},Wr=p.div.withConfig({displayName:"vui--HeaderCellLayout",componentId:"vui--13i0t50"})`display:flex;align-items:center;justify-content:${({align:e})=>e?Hr[e]:"flex-start"};& > * + *{margin-left:0.25rem;}`,Pr=p.table.withConfig({displayName:"vui--Table",componentId:"vui--1bp83gy"})`width:100%;border-spacing:0;table-layout:${({isFixedLayout:e})=>e?"fixed":"auto"};${({striped:e})=>e&&`\n & ${Rr}:nth-child(even) td {\n background-color: ${Ir.lightest};\n }\n `} & *{box-sizing:border-box;${({tableLoading:e})=>e&&"\n user-select: none;\n pointer-events: none;\n "}}${({noWrap:e})=>e&&`\n & ${jr}, & ${jr} span {\n white-space: nowrap;\n }\n `}`,Vr=p.tfoot.withConfig({displayName:"vui--Footer",componentId:"vui--44p3gi"})`tr{${({fixedColumnsStyle:e})=>e};}& ${Or}{border-top:1px solid ${Ir.dark};background-color:${Ir.lightest};padding-top:${Nr.base};padding-bottom:${Nr.base};line-height:2rem;}`,_r=p.div.withConfig({displayName:"vui--StickyHeaderWrapper",componentId:"vui--wokb93"})`position:fixed;top:0;z-index:2;overflow-x:hidden;`,Zr=p(Pr).withConfig({displayName:"vui--FakeHeaderTable",componentId:"vui--6s4d56"})``,Yr=p(X).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;`,qr=p(X).withConfig({displayName:"vui--EllipseContainer",componentId:"vui--1oi4ebm"})`display:flex;justify-content:center;align-items:center;width:120px;height:120px;border-radius:100px;background:${ae.colors.neutral.grey.base};svg{width:64px !important;height:64px !important;}`,Xr=p(ue).withConfig({displayName:"vui--TitleText",componentId:"vui--pj8i0k"})`margin-top:24px;`,Kr=p(ue).withConfig({displayName:"vui--SubTitleText",componentId:"vui--19x6udv"})`margin-top:8px;`,Gr=({height:t,icon:n,title:o,subTitle:i})=>e.createElement(Yr,{height:t},e.createElement(qr,null,n),e.createElement(Xr,{variant:"headingLarge"},o),i&&e.createElement(Kr,{variant:"subheadingMedium"},i)),Ur=p.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:${ae.sizes.base};border-radius:${ae.radius.base};&:hover{cursor:pointer;background-color:${ae.colors.secondary.blue.lightest};}`,Jr=p(Ur).withConfig({displayName:"vui--ClickableButton",componentId:"vui--1b7t5il"})`color:${ae.text.link.color};text-decoration:${ae.text.link.textDecoration};`,Qr=p.div.withConfig({displayName:"vui--Content",componentId:"vui--n24x0f"})`text-align:inherit;border-bottom:1px dotted black;`,{grey:el}=ae.colors.neutral,tl=p.div.withConfig({displayName:"vui--SkeletonContentWrapper",componentId:"vui--oakirc"})`height:16px;width:100%;`,nl=p.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, ${el.base} 8%, ${el.dark} 15%, ${el.base} 33%);background-size:800px 104px;border:0;width:100%;height:100%;@keyframes placeHolderShimmer{0%{background-position:-380px 0;}100%{background-position:380px 0;}}`,ol=({isLoading:t,style:n})=>e.createElement(tl,{style:n},e.createElement(nl,{isLoading:t})),il=t=>{var{style:n}=t,o=Ee(t,["style"]);return e.createElement(Or,Object.assign({},o),e.createElement(ol,{style:n}))};il.defaultProps={style:{}};const rl=({renderHeader:n,tableRef:i,wrapperRef:r,isFixedLayout:l,wrapperStyle:s})=>{var d;const[c,u]=t(null),{isSticky:m}=((e,n)=>{const[i,r]=t(!1),l=a((({top:e,bottom:t})=>{let o=i;o=e<=(n||0)&&t>0?!i||o:!i&&o,o!==i&&r(o)}),[i,n]);return o((()=>{const t=()=>{var t;e.current&&l(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect())};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}),[l,e]),{isSticky:i}})(i,parseInt("string"==typeof(null==s?void 0:s.top)?null==s?void 0:s.top:`${null==s?void 0:s.top}`,10)),p=((null===(d=r.current)||void 0===d?void 0:d.getBoundingClientRect().width)||0)-2;Z(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(_r,{ref:e=>{u(e),g(e)},style:Object.assign({width:p},s)},e.createElement(Zr,{style:{tableLayout:l?"fixed":"auto"}},n())):null},ll=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")},al=t=>{var{style:n,width:o,isLoading:i}=t,r=Ee(t,["style","width","isLoading"]);return e.createElement(jr,Object.assign({},r,{style:{width:o}}),e.createElement(ol,{style:n,isLoading:i}))},sl=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"})),dl=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"})),cl=()=>e.createElement(Fo,{width:ae.sizes.base,height:ae.sizes.base,color:"lightgrey"}),ul=()=>e.createElement(sl,{width:ae.sizes.base,height:ae.sizes.base,color:"lightgrey"}),ml=()=>e.createElement(dl,{width:ae.sizes.base,height:ae.sizes.base,color:"lightgrey"}),pl=({borderless:n=!1,striped:r=!0,noWrap:s=!1,showScrollbar:d=!1,headers:c,rows:u,renderRow:m,renderNestedRow:p,expandedRowIds:g,renderLoadingRow:h,renderFooterRow:b,renderFooterLoadingRow:f,omitFooterSelectionCell:v=!1,selectedRowIds:y,disabledSelectionInputRowIds:x,selectionMode:w="multiple",onChangeSelectedRowIds:E,sortColumnId:$,sortDirection:C,onChangeSort:k,isError:S=!1,isLoading:N=!1,skeletonRowsNumber:L=5,isHeaderSticky:I=!0,stickyHeaderStyle:z,customSpecificState:F,bodyHeightInSpecificStates:D=375,startFixedColumnsNumber:T,endFixedColumnsNumber:M})=>{const A=n?Tr:Mr,R=!!u&&0===u.length,B=Boolean(T||M),O=!T&&!M,j=l(null),H=l(null),[W,P]=t(kr.none);o((()=>{var e;let t=null;const n=()=>{if(!H.current||O)return;const e=H.current,t=e.scrollWidth+2,{scrollLeft:n}=e,{width:o}=e.getBoundingClientRect(),i=n+o;t===o?P(kr.none):0===n?P(kr.start):n>0&&i<t?P(kr.middle):i===t&&P(kr.end)};return H.current&&(t=H.current,n(),null===(e=H.current)||void 0===e||e.addEventListener("scroll",n)),()=>{null==t||t.removeEventListener("scroll",n)}}),[j,O]);const V=a((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),[]),_=a(((e,t,n)=>({index:"left"===n?e:-e,style:{position:"sticky",[n]:t,zIndex:1}})),[]),Z=a((()=>{if(!c||N)return null;const e=[],t=[];let n=0,o=0;if(T){y&&(e.push(_(1,n,"left")),n+=58);for(let t=0;t<T;t+=1){const o=V(c[t].width);o&&(e.push(_(y?t+2:t+1,n,"left")),n+=o)}}if(M)for(let e=0;e<M;e+=1){const n=V(c.slice(-e-1)[0].width);n&&(t.push(_(e+1,o,"right")),o+=n)}return 0===e.length&&0===t.length?null:[...e,...t]}),[N,V,M,_,c,T,y]),Y=i((()=>Z()),[Z]),q=a(((e,t)=>{if(!y||!E)return;if(e)return"single"===w?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,w]),X=a((()=>{if(!y||!E)return;if(y.length===u.length)return void E([]);const e=u.map((e=>e.id));E(e)}),[E,u,y]),K=a((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=a(((t,n)=>{let o="",i=()=>{},r=e.createElement(cl,null);const{tooltip:l,align:a,icon:s,title:d,sortable:c,id:u}=t;c&&(o="sortable",i=()=>K(u),$===u&&(r="ascending"===C?e.createElement(ul,null):e.createElement(ml,null)));const m=e.createElement(Wr,{align:a},s&&s,d&&e.createElement("span",null,d),c&&r);return e.createElement(jr,{key:u,id:`data-table-header-${u}`,className:o,onClick:i,align:t.align,grow:t.grow,style:Object.assign({width:t.width||"auto"},n)},l?e.createElement(Qt,{text:l},e.createElement(Dr,null,m)):m)}),[K,$,C]),U=a(((t,n)=>e.createElement(al,{key:t.id,width:t.width||"auto",style:n,isLoading:N})),[N]),J=a((()=>{if(!c)return null;const t=Z(),n=t?t[0].style:{};return e.createElement(Ar,null,e.createElement(Br,null,y&&e.createElement(jr,{style:Object.assign({width:58},n)},"multiple"===w&&e.createElement(Zn,{checked:u.length>0&&(null==y?void 0:y.length)===u.length||!1,onChange:X,disabled:x&&x.length>0||N||R,ariaLabel:"Select all"})),c.map(((e,n)=>{const o=y?n+2:n+1,i=n-c.length,r=null==t?void 0:t.find((e=>e.index===o||e.index===i));return e.skeleton&&(N||S||R)?U(e,e.skeletonStyle||{}):G(e,(null==r?void 0:r.style)||{})}))))}),[Z,X,c,R,S,N,U,G,u.length,y,w,x]),Q=a(((t,n)=>{const o={checked:t,onChange:e=>q(e,n),disabled:(null==x?void 0:x.includes(n.id))||!1};return"single"===w?e.createElement(qn,Object.assign({},o)):e.createElement(Zn,Object.assign({},o))}),[q,w,x]),ee=a((t=>{const n={width:18,height:18,margin:3,animationDuration:"0s"};return"single"===w?e.createElement(il,{key:void 0===t?null:`radio-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"50%"})}):e.createElement(il,{key:void 0===t?null:`checkbox-skeleton-${t}`,style:Object.assign(Object.assign({},n),{borderRadius:"0.25rem"})})}),[w]),te=a(((t,n)=>{var o,i;if(!p)return null;const r=p(t);if(!r)return null;const l=(null===(i=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.e2eClassNames)||void 0===i?void 0:i.row)||"";return e.createElement(Br,{key:t.id,className:`${l} ${n?"hidden":""}`},y&&e.createElement(Or,null),r)}),[p,y]),ne=a((t=>{if(!c)return e.createElement(il,null);const n=c.map((n=>e.createElement(il,{key:`${t}-${n.id}`})));return y&&n.unshift(ee(t)),n}),[c,ee,y]),oe=()=>b?N&&!f||!N&&R?null:e.createElement(Vr,{fixedColumnsStyle:ll(Y||[])},e.createElement(Br,null,y&&!v&&e.createElement(Or,null),!N&&b(u),N&&f&&f())):null;let ie=T;y&&ie&&(ie+=1);const re=i((()=>u.map((t=>{var n,o,i;const{data:r}=t,l=!!y&&y.includes(t.id),a=!g||g.includes(t.id),s=null===(n=null==r?void 0:r.e2eClassNames)||void 0===n?void 0:n.body,d=null!==(i=null===(o=null==r?void 0:r.e2eClassNames)||void 0===o?void 0:o.row)&&void 0!==i?i:"",c=l?`selected ${d}`:`${d}`;return e.createElement(Rr,{key:t.id,className:s,fixedColumnsStyle:ll(Y||[])},e.createElement(Br,{key:t.id,className:c,accentColor:t.accentColor},y&&e.createElement(Or,null,Q(l,t)),m(t)),t.nestedRows&&t.nestedRows.map((e=>te(e,!a))))}))),[u,g,Y,te,m,Q,y]);if(N){const t=[];for(let n=0;n<L;n+=1)t.push(e.createElement(Rr,{key:`loading-row-${n}`,fixedColumnsStyle:ll(Y||[])},e.createElement(Br,null,h?e.createElement(e.Fragment,null,y&&ee(),h()):ne(n))));return e.createElement(A,{ref:H,scrollDisabled:!0,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M},I&&c&&e.createElement(rl,{renderHeader:J,tableRef:j,wrapperRef:H,isFixedLayout:B,wrapperStyle:z}),e.createElement(Pr,{ref:j,striped:r,noWrap:s,tableLoading:!0,isFixedLayout:B},J(),t,oe()))}if(R||S){let t=$r;return F?t=F:S&&(t=Cr),e.createElement(A,{scrollDisabled:!0},e.createElement(Pr,{ref:j,striped:r,noWrap:s,tableLoading:!1,isFixedLayout:B},J(),oe()),e.createElement(Gr,Object.assign({height:D},t)))}return e.createElement(A,{scrollDisabled:!1,ref:H,scrollPosition:W,lastStartFixedColumnsIndex:ie,firstEndFixedColumnsIndex:M,showScrollbar:d},I&&c&&e.createElement(rl,{renderHeader:J,tableRef:j,wrapperRef:H,isFixedLayout:B,wrapperStyle:z}),e.createElement(Pr,{ref:j,striped:r,noWrap:s,tableLoading:!1,isFixedLayout:B},J(),re,oe()))};pl.Cell=Or,pl.ClickableCell=t=>{var{onClick:n,children:o}=t,i=Ee(t,["onClick","children"]);return e.createElement(Or,Object.assign({},i),e.createElement(Jr,{onClick:n},o))},pl.EditableCell=t=>{var{onClick:n,children:o}=t,i=Ee(t,["onClick","children"]);return e.createElement(Or,Object.assign({},i),e.createElement(Ur,{onClick:n},e.createElement(Qr,null,o)))},pl.SkeletonCell=il,pl.SkeletonContent=ol;const gl=p.button.withConfig({displayName:"vui--LoginButton",componentId:"vui--9ns5xb"})`background:none;border:none;padding:0;cursor:pointer;img{width:156px;height:32px;}`,hl="https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64.png",bl="Log in with Amazon",fl=n=>{const[o,i]=t(hl);return e.createElement(gl,Object.assign({onMouseDown:()=>{i("https://images-na.ssl-images-amazon.com/images/G/01/lwa/btnLWA_gold_312x64_pressed.png")},onMouseUp:()=>{i(hl)},"aria-label":bl},n),e.createElement("img",{src:o,alt:bl}))},vl=h`body{overflow:hidden;scrollbar-gutter:stable;}`,yl=p.section.withConfig({displayName:"vui--MainSection",componentId:"vui--1ox4j2c"})`flex:1;overflow-y:auto;${({fullBleed:e})=>!e&&`padding: 0 ${ae.sizes.md};`} ${({isScrollable:e})=>e&&`\n & + ${mt.Footer} {\n box-shadow: 0px 10px 15px 0px ${ae.colors.neutral.ink.dark};\n }\n `}`,xl=e=>!!e.footerSlot,wl={xs:"84vh",sm:"72vh",base:"84vh",lg:"96vh"},El={[J.mobile]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[J.tablet]:{xs:"60vw",sm:"72vw",base:"100vw",lg:"100vw"},[J.lgTablet]:{xs:"48vw",sm:"56vw",base:"88vw",lg:"100vw"},[J.desktop]:{xs:"36vw",sm:"44vw",base:"72vw",lg:"88vw"},[J.lgDesktop]:{xs:"32vw",sm:"40vw",base:"52vw",lg:"80vw"}},$l={xs:J.mobile,sm:J.mobile,base:J.tablet,lg:J.lgTablet},{breakpoints:Cl}=ae,kl=p(u.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:${ae.sizes.sm};box-shadow:${ae.shadows.lg};min-width:464px;&::backdrop{animation:fadeIn 0.25s ease forwards;}& > ${mt.Surface}{display:flex;flex-direction:column;${({variant:e})=>`max-height: ${wl[e]};`} ${yl}{padding-bottom:${ae.sizes.md};}${mt.Footer}{margin-top:0;}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}@media (min-width: calc(${Cl.mobile} + 1px))and (max-width: ${Cl.tablet}){max-width:${({variant:e})=>El[Cl.tablet][e]};}@media (min-width: ${Cl.tablet})and (max-width: ${Cl.lgTablet}){max-width:${({variant:e})=>El[Cl.lgTablet][e]};}@media (min-width: ${Cl.lgTablet})and (max-width: ${Cl.desktop}){max-width:${({variant:e})=>El[Cl.desktop][e]};}@media (min-width: ${Cl.desktop}){max-width:${({variant:e})=>El[Cl.lgDesktop][e]};}@media (max-width: ${({variant:e})=>$l[e]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${mt.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}&::backdrop{background-color:${Ie(ae.colors.neutral.ink.base,.5)};}&:not([open]){display:block;position:fixed;top:0;left:0;right:0;bottom:0;transform:translate(-50%, -50%);}`,Sl=e.forwardRef(((t,n)=>{var o=Ee(t,[]);return e.createElement(kl,Object.assign({ref:n},o))})),Nl=n=>{const{shouldShow:i,showHeaderCloseButton:r=!0,fullBleed:a=!1,variant:s="base",onClose:d,children:c}=n,u=l(null),[p,g]=t(null);o((()=>{var e,t;i&&(null===(e=u.current)||void 0===e||e.removeAttribute("open"),null===(t=u.current)||void 0===t||t.showModal())}),[i]);const{isOverflowing:h,onScroll:b}=or(p),f=()=>{var e;null===(e=u.current)||void 0===e||e.close(),d()};return e.createElement(m,null,i&&e.createElement("div",{"data-testid":"dialog-wrapper"},e.createElement(vl,null),e.createElement(Sl,{ref:u,onClose:f,variant:s,"aria-describedby":"modal_title"},e.createElement(mt.Surface,null,(e=>!!e.headerSlot)(n)?n.headerSlot:e.createElement(nt,Object.assign({id:"modal_title",headerVariant:"headingLarge",title:n.headerTitle,subtitle:n.headerSubtitle},r&&{onClickClose:f})),e.createElement(yl,{onScroll:b,ref:g,isScrollable:h,fullBleed:a},c),xl(n)&&n.footerSlot,!xl(n)&&(n.leftActions||n.rightActions)&&e.createElement(mt.Footer,null,e.createElement($t,{direction:"horizontal",alignX:n.leftActions?"between":"end"},n.leftActions&&e.createElement($t,{direction:"horizontal",alignX:"start","data-testid":"left-actions-container"},n.leftActions.map((t=>{var{label:n}=t,o=Ee(t,["label"]);return e.createElement(Ue,Object.assign({key:n,type:"button"},o),n)}))),n.rightActions&&e.createElement($t,{direction:"horizontal",alignX:"end","data-testid":"right-actions-container"},n.rightActions.map((t=>{var{label:n}=t,o=Ee(t,["label"]);return e.createElement(Ue,Object.assign({key:n,type:"button"},o),n)})))))))))},{sizes:Ll,text:Il,shadows:zl}=ae,{grey:Fl}=ae.colors.neutral,Dl=p.header.withConfig({displayName:"vui--Header",componentId:"vui--1x6mrf4"})`padding:${Ll.base} ${Ll.md};background-color:white;box-shadow:${({shadow:e})=>"none"!==e&&zl[e]};`,Tl=p.h1.withConfig({displayName:"vui--Title",componentId:"vui--1rcauam"})`font-family:${Il.headingXL.fontFamily};font-size:${Il.headingXL.fontSize};font-weight:${Il.headingXL.fontWeight};margin:unset;line-height:1;`,Ml=p.p.withConfig({displayName:"vui--Subtitle",componentId:"vui--1w1czl4"})`margin:0.75rem 0 0;font-family:${Il.subheadingLarge.fontFamily};font-weight:${Il.subheadingLarge.fontWeight};font-size:${Il.subheadingLarge.fontSize};line-height:${Il.subheadingLarge.lineHeight};`,Al=p.img.withConfig({displayName:"vui--Image",componentId:"vui--6akliy"})`border-radius:${ae.radius.base};border:${Ll.line} solid ${Fl.base};object-fit:cover;`,Rl=p.div.withConfig({displayName:"vui--ActionsContainer",componentId:"vui--eer17r"})`height:100%;display:grid;grid-template-rows:1fr auto;gap:1rem;`,Bl=p(Ue).attrs({variant:"unstyled"}).withConfig({displayName:"vui--SidebarToggleButton",componentId:"vui--17ubnor"})`display:flex;align-items:center;font-family:${ae.text.link.fontFamily};font-size:${ae.text.link.fontSize};font-weight:${ae.text.link.fontWeight};line-height:${ae.text.link.lineHeight};color:${ae.text.link.color};&:hover{text-decoration:${ae.text.link.textDecoration};}& > * + *{margin-left:${ae.sizes.xs};}`,Ol=p.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:${Ll.md};transition:all 0.2s ease-in-out;& > *:nth-child(2){opacity:${({showSidebar:e=!0})=>e?"1.0":"0"};transition:opacity 0.2s;}`,jl=({title:t,subtitle:n,imageSrc:o,actions:i,quickActions:r,backAction:l,Accessory:a,shadow:s="none",onClickPrevious:d,onClickNext:c,onClickToggleSidebar:u})=>{const m=i&&e.createElement(wt,{buttonVariant:r?"default":"primary",title:"Actions",sections:i}),p=null==r?void 0:r.map((t=>e.createElement(Ue,{key:t.title,variant:t.variant,icon:t.icon,onClick:t.onClick},t.title))),g=l&&e.createElement(Ue,{onClick:l.onClick,icon:e.createElement(Nn,null),variant:"link"},l.title),h=u&&e.createElement($t,{direction:"horizontal",alignX:"end"},e.createElement(Bl,{onClick:u},e.createElement("span",null,"Toggle sidebar"),e.createElement(hn,{width:ie.md})));return e.createElement(Dl,{shadow:s},e.createElement($t,null,g,e.createElement(Ol,null,e.createElement($t,{direction:"horizontal",spacing:"md"},o&&e.createElement(Al,{src:o,alt:"",width:"72",height:"72"}),e.createElement("div",{style:{flex:1}},e.createElement($t,{alignX:"stretch"},e.createElement(Tl,null,t),a,n&&e.createElement(Ml,null,n)))),e.createElement(Rl,null,e.createElement($t,{direction:"horizontal",alignX:"end",spacing:"sm"},p,m,d&&e.createElement(Ue,{icon:e.createElement(Nn,null),onClick:d}),c&&e.createElement(Ue,{icon:e.createElement(hn,null),onClick:c})),h))))},Hl=p($t).withConfig({displayName:"vui--PageLimitContainer",componentId:"vui--11yg0z2"})`width:${ae.sizes.lg};height:30px;background-color:${ae.colors.neutral.grey.light};border:1px solid ${ae.colors.neutral.grey.base};border-radius:${ae.sizes.xs};`,Wl=p(Ue).withConfig({displayName:"vui--PaginationButton",componentId:"vui--1xoa6c5"})`color:${ae.colors.neutral.ink.base};width:32px;height:32px;svg{width:24px;height:24px;}`,Pl=p(Oi).withConfig({displayName:"vui--PageInput",componentId:"vui--vpfeol"})`&[type='number']{width:5.5ch;}`,Vl=({count:t})=>e.createElement(e.Fragment,null,e.createElement("div",null,e.createElement(ue,{variant:"bodySmall","aria-hidden":!0},"/")),e.createElement(Hl,{alignX:"center",alignY:"center","aria-hidden":!0},e.createElement(ue,{variant:"bodySmall"},t))),_l=({currentPage:e,totalPagesCount:n,handleChangePage:i})=>{const[r,l]=t(`${e}`);o((()=>{l(`${e}`)}),[e]);const a=e=>e>=1&&e<=n,s=()=>{if(r||l(`${e}`),r===`${e}`)return;const t=parseInt(r,10);a(t)&&i(t)};return{pageInputValue:r,handleIncrement:()=>{a(e+1)&&i(e+1)},handleDecrement:()=>{a(e-1)&&i(e-1)},handleInputChange:e=>{e||l(e);const t=parseInt(e,10);var n;a(n=t)&&l(`${n}`)},handleSubmit:s,handleFormSubmit:e=>{e.preventDefault(),s()}}},Zl=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"})),Yl=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"})),ql=({testId:t,e2eClassName:n,currentPage:o,totalPagesCount:i,handleChangePage:r})=>{const{pageInputValue:l,handleIncrement:a,handleDecrement:s,handleFormSubmit:d,handleInputChange:c,handleSubmit:u}=_l({currentPage:o,totalPagesCount:i,handleChangePage:r});return e.createElement($t,{direction:"horizontal",alignY:"center",spacing:"xs","data-testid":t,className:n},e.createElement(Wl,{onClick:()=>{1!==o&&r(1)},icon:e.createElement(Zl,null),size:"sm","aria-label":"go to first page"}),e.createElement(Wl,{onClick:s,icon:e.createElement(Nn,null),size:"sm","aria-label":"go to previous page","aria-disabled":o<=1}),e.createElement("form",{onSubmit:d},e.createElement(Pl,{"aria-live":"polite","aria-label":`page ${o} of ${i}`,size:Ti.sm,type:"number",value:l,min:"1",max:`${i}`,onChange:c,onBlur:u})),e.createElement(Vl,{count:i}),e.createElement(Wl,{onClick:a,icon:e.createElement(hn,null),size:"sm","aria-label":"go to next page","aria-disabled":o>=i}),e.createElement(Wl,{onClick:()=>{o!==i&&r(i)},icon:e.createElement(Yl,null),size:"sm","aria-label":"go to last page","aria-disabled":o>=i}))},Xl=[{label:"10 / page",value:10},{label:"25 / page",value:25},{label:"50 / page",value:50},{label:"100 / page",value:100}],Kl=p(X).withConfig({displayName:"vui--Container",componentId:"vui--vvvb5w"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Gl=p(Wt).withConfig({displayName:"vui--Dropdown",componentId:"vui--1762fp7"})`&-container{width:100%;}`,Ul=p.button.withConfig({displayName:"vui--Button",componentId:"vui--18oel89"})`width:100%;height:32px;padding:6px 8px 8px 8px;display:flex;border:1px solid ${U.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;}`,Jl=p(X).withConfig({displayName:"vui--Container",componentId:"vui--yx82xe"})`display:flex;flex-direction:row;justify-content:flex-start;align-items:center;`,Ql=p(ue).withConfig({displayName:"vui--StyledText",componentId:"vui--gffv6m"})`width:100%;padding:8px 16px;cursor:pointer;&:hover{color:${U.secondary.blue.base};background:${U.neutral.grey.lightest};}`,ea=({item:t,handleRangeListChange:n})=>{const o=a((()=>n(t)),[n,t]);return e.createElement(Jl,{onClick:o},e.createElement(Ql,{variant:"bodySmall"},t.label))},ta=t=>{const{handleRangeListChange:n,paginationRange:o=Xl}=t;return e.createElement(e.Fragment,null,o.map((t=>e.createElement(d,{key:t.label},e.createElement(ea,{item:t,handleRangeListChange:n})))))};class na extends s{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=Xl[1]}=this.props;this.state={dropdownValue:t,shouldShowDropdown:!1}}render(){const{className:t,paginationRange:n=Xl,reversedDropdown:o}=this.props,{shouldShowDropdown:i,dropdownValue:r}=this.state;return e.createElement(Kl,{className:t},e.createElement(Gl,{cta:e.createElement(Ul,{onClick:this.toggleShouldShow},e.createElement(ue,{variant:"bodySmall"},r.label),e.createElement(Ke,{color:ae.colors.neutral.ink.base})),shouldShowDropdown:i,onClickAway:this.toggleShouldShow,reversed:o},e.createElement(ta,{paginationRange:n,handleRangeListChange:this.handleRangeListChange})))}}const oa=p.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;}`,ia=p.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;}`,ra=({onIncrement:t,onDecrement:n,disabled:o=!1,size:i})=>e.createElement(oa,{size:i},e.createElement(ia,{type:"button",onClick:t,disabled:o},e.createElement(xe,{height:ae.sizes.base,width:ae.sizes.base,color:ae.colors.neutral.ink.base})),e.createElement(ia,{type:"button",onClick:n,disabled:o},e.createElement(et,{height:ae.sizes.base,width:ae.sizes.base,color:ae.colors.neutral.ink.base}))),la=p(Oi).withConfig({displayName:"vui--StyledTextField",componentId:"vui--8gyz01"})`color:${ae.colors.neutral.ink.dark};width:100%;&:focus{box-shadow:none;border-color:none;border-right-width:0;border-color:${ae.colors.neutral.ink.lightest};}`,aa=p(X).withConfig({displayName:"vui--PrefixContainer",componentId:"vui--fsc9el"})`user-select:none;border:1px solid ${ae.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?ae.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;}}`,sa=p(ue).withConfig({displayName:"vui--PrefixText",componentId:"vui--w81sf"})`font-size:14px;`,da=p(Di).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 ${ae.colors.secondary.red.light};\n\n > * {\n border-top-color: ${ae.colors.secondary.red.base};\n border-bottom-color: ${ae.colors.secondary.red.base};\n }\n\n > *:first-child {\n border-left-color: ${ae.colors.secondary.red.base};\n }\n\n > div:last-child {\n > button:first-child {\n border-top-color: ${ae.colors.secondary.red.base};\n border-right-color: ${ae.colors.secondary.red.base};\n }\n\n > button:last-child {\n border-right-color: ${ae.colors.secondary.red.base};\n border-bottom-color: ${ae.colors.secondary.red.base};\n }\n }\n `} &:focus-within{outline:0;box-shadow:${({hasError:e})=>e?"":`0 0 0 4px ${ae.colors.secondary.blue.light}`};}&:focus-within > *{border-top-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};}&:focus-within > *:first-child{border-left-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};}&:focus-within > div:last-child{> button:first-child{border-top-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};border-right-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};}> button:last-child{border-right-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};border-bottom-color:${({hasError:e})=>e?ae.colors.secondary.red.base:ae.colors.secondary.blue.base};}}`;const ca=lo((t=>{var{className:n="",hasError:o,currency:i,disabled:r=!1,onChange:l,onPriceChange:a,priceValue:s,step:d="0.1",size:c=Ti.base}=t,u=Ee(t,["className","hasError","currency","disabled","onChange","onPriceChange","priceValue","step","size"]);const m=(e=a)=>{e(((parseFloat(s)||0)+parseFloat(d)).toFixed(2))},p=(e=a)=>{e(((parseFloat(s)||0)-parseFloat(d)).toFixed(2))};return e.createElement(da,{className:n,hasError:o},e.createElement(aa,{disabled:r,size:c},e.createElement(sa,{variant:"hintText"},i)),e.createElement(la,Object.assign({placeholder:"0.00",type:"currency",value:s,step:d,onChange:e=>l(e.replace(/[a-zA-Z]/g,"").replace(",",".")),onBlur:e=>{const t=e.target,{value:n}=t;if(!n)return void a("");const o=parseFloat(n.replace(",",".")).toFixed(2);a(o)},onKeyDown:e=>{const{key:t}=e,n=e.target;n.form||"Enter"===t&&n.blur(),"ArrowUp"===t&&m(l),"ArrowDown"===t&&p(l)},disabled:r,size:c},u)),e.createElement(ra,{onIncrement:()=>m(),onDecrement:()=>p(),disabled:r,size:c}))}));ca.displayName="PriceInput";const ua=p.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;`,ma=({children:t})=>e.createElement(ua,null,t),pa=p(Oi).withConfig({displayName:"vui--Input",componentId:"vui--je6y84"})`flex-grow:2;margin-top:0;margin-bottom:0;`,ga=p.div.withConfig({displayName:"vui--IconContainer",componentId:"vui--113gfe8"})`position:absolute;`,ha=p(X).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 & ${pa} {\n ${t}\n }\n\n & ${ga} {\n ${n}\n }\n `}}`,ba=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"})),fa=({type:t="text",disabled:n=!1,onClearClick:o,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,value:c="",error:u,placeholder:m="",className:p="",name:g,isLoading:h=!1,fill:b,reversed:f=!1,autoComplete:v="on",size:y="base"})=>{const x=c&&c.length>0;return e.createElement(ha,{className:p,iconPosition:f?"left":"right"},e.createElement(pa,{size:y,type:t,value:c,onChange:i,onBlur:r,onFocus:l,onKeyUp:a,onKeyDown:s,onKeyPress:d,placeholder:m,name:g,disabled:n,error:u,autoComplete:v}),e.createElement(ga,null,h?e.createElement(Oe,{height:24,color:b||ae.colors.secondary.blue.base}):x&&o?e.createElement(Ue,{variant:"unstyled",onClick:o,style:{display:"flex"},"aria-label":"Clear text",type:"button"},e.createElement(tt,{color:b||ae.colors.neutral.ink.dark})):e.createElement(Ue,{variant:"unstyled",onClick:()=>i(c),style:{display:"flex"},"aria-label":"Search",type:"button"},e.createElement(ba,{color:b||ae.colors.neutral.ink.dark,height:ie.md,width:ie.md}))))},va=ae.colors.neutral.grey.lightest,ya=ae.colors.neutral.grey.dark,xa=ae.colors.secondary.blue.dark,wa=p(X).withConfig({displayName:"vui--SegmentedControlContainer",componentId:"vui--s4yyqq"})`display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${va};border-color:${ya};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${ae.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${xa};border-color:${xa};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${ae.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`,Ea=({options:t,selected:n,className:o,onChange:i})=>e.createElement(wa,{className:o?`${o}-container`:void 0},t.map((t=>e.createElement(Ue,{type:"button","aria-pressed":t.value===n,variant:t.value===n?"primary":"default",key:t.key,onClick:()=>i(t.value),disabled:t.disabled,className:t.value===n?"veeqo-components-active-button":""},t.label)))),$a=p.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, ${ae.colors.neutral.ink.base});font-family:${ae.text.bodySmall.fontFamily};font-style:${ae.text.bodySmall.fontStyle};font-size:${ae.text.bodySmall.fontSize};line-height:${ae.text.bodySmall.lineHeight};font-weight:${ae.text.bodySmall.fontWeight};text-decoration:${ae.text.bodySmall.textDecoration};letter-spacing:${ae.text.bodySmall.letterSpacing};`,Ca=p.kbd.withConfig({displayName:"vui--Kbd",componentId:"vui--651mmm"})`box-sizing:border-box;color:var(--kbdTextColor, ${ae.colors.neutral.ink.base});display:grid;place-items:center;text-transform:capitalize;border:1px solid var(--kbdTextColor, ${ae.colors.neutral.ink.base});border-radius:3px;padding:1px 3px;font-size:inherit;line-height:inherit;min-width:20px;font-family:${ae.text.bodySmall.fontFamily};font-style:${ae.text.bodySmall.fontStyle};`,ka={command:"⌘",windows:"⊞",shift:"⇧",ctrl:"⌃",option:"⌥",alt:"alt",enter:"↵",delete:"⌫",escape:"esc",up:"↑",right:"→",down:"↓",left:"←",space:"space"},Sa={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"},Na=t=>{var{shortcut:n,label:o,inverse:i=!1,displayLabel:r=!1}=t,l=Ee(t,["shortcut","label","inverse","displayLabel"]);const a=n.split("+").map((t=>ka[t]?e.createElement(Ca,{key:`Key: ${t}`,"aria-label":Sa[t]},ka[t]):e.createElement(Ca,{key:`Key: ${t}`},t))).reduce(((t,n)=>e.createElement(e.Fragment,null,t,"+",n)));return e.createElement($a,Object.assign({"aria-label":o,$inverse:i},l),a," ",r?e.createElement("span",null,o):null)},{blue:La}=U.secondary,{grey:Ia}=U.neutral,za=p.thead.withConfig({displayName:"vui--TableHeader",componentId:"vui--o0sot"})`background-color:white;`,Fa=p.tbody.withConfig({displayName:"vui--TableBody",componentId:"vui--nuzcgp"})`&&& tr:hover td{background-color:${La.lightest};}`,Da=p.tr.withConfig({displayName:"vui--TableRow",componentId:"vui--1uhgfx1"})``,Ta=p.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:${le.bodySmall.fontFamily};font-size:${le.bodySmall.fontSize};font-weight:${le.bodySmall.fontWeight};color:${le.bodySmall.color};line-height:${ie.base};& > *{vertical-align:middle;}`,Ma=p(Ta).attrs({as:"th"}).withConfig({displayName:"vui--TableHeaderCell",componentId:"vui--2nps2x"})`border-bottom:1px solid ${Ia.dark};font-family:${le.bodySmallBold.fontFamily};font-size:${le.bodySmallBold.fontSize};font-weight:${le.bodySmallBold.fontWeight};color:${le.bodySmallBold.color};`,Aa=p.table.withConfig({displayName:"vui--Table",componentId:"vui--lcbl46"})`width:100%;border-spacing:0;${({striped:e})=>e&&`\n & ${Fa} tr:nth-child(even) td {\n background-color: ${Ia.lightest};\n }\n `}`,Ra=({striped:t=!0,className:n,children:o})=>e.createElement(Aa,{striped:t,className:n},o);Ra.Header=za,Ra.Body=Fa,Ra.Row=Da,Ra.HeaderCell=Ma,Ra.Cell=Ta;const Ba=p(X).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;}}`;Ba.displayName="Skeleton";const Oa=p.div.withConfig({displayName:"vui--SliderContainer",componentId:"vui--103oce3"})`min-width:128px;display:inline-block;position:relative;padding:${8}px 0px;`,ja=p.div.withConfig({displayName:"vui--SliderTrack",componentId:"vui--1ctzbzj"})`background:${ae.colors.neutral.grey.base};height:${4}px;border-radius:20px;`,Ha=p.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 ${ae.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 ${ae.colors.secondary.blue.light};}`,Wa=p(ja).withConfig({displayName:"vui--SliderRange",componentId:"vui--t3v3py"})`position:relative;width:${e=>`${e.width}%`};left:${e=>`${e.left}%`};background:${ae.colors.secondary.blue.light};bottom:${4}px;border-radius:0;`,Pa=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}),Va=({id:n,value:i,min:r,max:s,step:d=1,onChange:c,className:u,e2eClassName:m,onSlideStart:p=(()=>{}),onSlideEnd:g=(()=>{})})=>{const[h,b]=t(!1),[f,v]=t(-1),y=l(null),x=l(null),w=l(null),E=Pa(u),$=Pa(m),C=a((e=>{var t;if(!h||!y.current)return;const n=f>-1?i[f]:i,o=y.current.getBoundingClientRect();let l=100*(e.pageX-o.x)/o.width/100*(s-r)+r;const a=n-l;if(a>0&&(l=n+Math.ceil(l/d-n/d)*d),a<0&&(l=n+Math.floor(l/d-n/d)*d),n===l)return;l>s&&(l=s),l<r&&(l=r),Array.isArray(i)&&(0===f&&l>i[1]&&([,l]=i),1===f&&l<i[0]&&([l]=i));const u=d.toString().includes(".")?null===(t=d.toString().split(".").pop())||void 0===t?void 0:t.length:0;let m;l=Number(l.toFixed(u)),m=Array.isArray(i)?0===f?[l,i[1]]:[i[0],l]:l,c(m),Array.isArray(m)&&m[0]===m[1]&&(0===f&&v(1),1===f&&v(0))}),[f,h,s,r,c,d,i]),k=a((()=>{b(!1),g()}),[g]),S=a(((e,t)=>{b(!0),p(),"number"==typeof t&&v(t),e.preventDefault()}),[p]);o((()=>{const e=e=>S(e,Array.isArray(i)?0:1),t=e=>S(e,1),n=x.current,o=w.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)}}),[S,C,k,i]);const N=(t,n,o)=>{let i;return i=Ne("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(Ha,{role:"slider",ref:1===o?w:x,className:i,left:t,"aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":n})},L=t=>{const n=100*(t[0]<r?0:t[0]-r)/(s-r),o=100*(t[1]>s?100:t[1]-r)/(s-r),i=o-n;return e.createElement(e.Fragment,null,e.createElement(Wa,{className:Ne([null==E?void 0:E.sliderRange,null==$?void 0:$.sliderRange]),left:n,width:i}),N(n,t[0],0),N(o,t[1],1))};let I;return I=Array.isArray(i)?L(i):(e=>{if(Array.isArray(i))return L(i);let t;return t=i>s?100:i<r?0:100*(e-r)/(s-r),N(t,e)})(i),e.createElement(Oa,{className:Ne([null==E?void 0:E.container,null==$?void 0:$.container]),id:n,ref:y},e.createElement(ja,null),I)},_a=p(X).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:U.neutral.ink.base};\n background-color: ${null!=e?e:U.neutral.grey.base};\n `}`,Za=p($t).withConfig({displayName:"vui--ToastsLayoutContainer",componentId:"vui--1iztsl9"})`position:fixed;bottom:24px;width:100%;pointer-events:none;`,Ya=p($t).withConfig({displayName:"vui--Toast",componentId:"vui--1o64628"})`background-color:${ae.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${ae.shadows.lg};border-radius:${ae.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;}`,qa=p(X).withConfig({displayName:"vui--IconWrap",componentId:"vui--1nmtetq"})`display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${ae.radius.md};background-color:${({color:e})=>e};color:#fff;svg{width:${ie.md};height:${ie.md};}`,Xa=p($t).withConfig({displayName:"vui--ContentStack",componentId:"vui--fvpujj"})`flex-grow:1;`,Ka=p(ue).withConfig({displayName:"vui--StyledText",componentId:"vui--ppieao"})`color:white;font-size:16px;`,Ga={info:{accentColor:U.brand.blue.base,icon:e.createElement(Nt,null)},success:{accentColor:U.secondary.green.base,icon:e.createElement(Lt,null)},error:{accentColor:U.secondary.red.base,icon:e.createElement(kt,null)},merge:{accentColor:U.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)}},Ua=e=>({container:e?`${e}-toast-container`:void 0,icon:e?`${e}-toast-icon`:void 0,closeIcon:e?`${e}-toast-close-icon`:void 0}),Ja=({className:t,e2eClassName:n,type:o,iconSlot:i,text:r,last:l,minWidth:a,cta:s,onClose:d})=>{const c=Ua(t),u=Ua(n);return e.createElement(Ya,{className:Ne([null==c?void 0:c.container,null==u?void 0:u.container]),direction:"horizontal",alignY:"center",minWidth:a,last:l},e.createElement(qa,{color:Ga[o].accentColor,className:Ne([c.icon,u.icon])},null!=i?i:Ga[o].icon),e.createElement(Xa,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(Ka,{variant:"body"},r),s),e.createElement(Ue,{variant:"flat",icon:e.createElement(tt,{color:"white"}),onClick:d,"aria-label":"Close"}))},Qa=({className:t,e2eClassName:n,toasts:i,minWidth:r="50vw",max:l=3,onClose:a})=>(o((()=>{l&&i.length>l&&a(i[0].key)}),[i,l,a]),y(e.createElement(Za,{direction:"vertical",alignX:"center",spacing:4},e.createElement(E,{component:null},[...i].reverse().map(((o,l)=>e.createElement(w,{key:o.key,timeout:500,classNames:"veeqo-components-toast"},e.createElement(Ja,Object.assign({className:t,e2eClassName:n,minWidth:r,last:l===i.length-1,onClose:()=>a(o.key)},o))))))),document.body)),es=p.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:${ae.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",i="24px",r="8px",l="16px",a="4px",s="white",d="#CDD1D5",c="#37424D";return"sm"===e&&(n="32px",o="16px",i="16px",r="4px",l="14px",a="2px"),t&&(s="#0079D1",d="#0079D1",c="white"),`\n --outline-width: ${a};\n\n height: ${n};\n padding-left: ${o};\n padding-right: ${i};\n border-radius: ${r};\n font-size: ${l};\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;}`,ts=({children:t,checked:n,size:o="base",disabled:i=!1,onChange:r})=>e.createElement(es,{type:"button",checked:n,size:o,disabled:i,"aria-pressed":n,tabIndex:"0",onClick:()=>r(!n)},t),ns=p.div.withConfig({displayName:"vui--DropZoneContainer",componentId:"vui--17v0v3c"})`display:flex;align-items:center;justify-content:center;padding:${ie.md};border-radius:${Q.base};input[type='file']{position:absolute;opacity:0;width:1px;height:1px;cursor:pointer;}cursor:pointer;border:2px dashed ${U.neutral.ink.lightest};background-color:${U.neutral.grey.lightest};:hover{border:2px dashed ${U.secondary.blue.base};background-color:${U.secondary.blue.lightest};}:active{border:2px dashed ${U.secondary.blue.base};box-shadow:0 0 0 4px ${U.secondary.blue.light};background-color:${U.secondary.blue.lightest};}:focus-within{border:2px dashed ${U.secondary.blue.base};box-shadow:0 0 0 4px ${U.secondary.blue.light};background-color:${U.secondary.blue.lightest};}&:has(input:invalid){border:2px dashed ${U.secondary.red.base};:hover{border:2px dashed ${U.secondary.red.base};background-color:${U.secondary.red.lightest};}:active{border:2px dashed ${U.secondary.red.base};box-shadow:0 0 0 4px ${U.secondary.red.light};background-color:${U.secondary.red.lightest};}:focus-within{border:2px dashed ${U.secondary.red.base};box-shadow:0 0 0 4px ${U.secondary.red.light};background-color:${U.secondary.red.lightest};}}&:has(input:disabled){cursor:not-allowed;box-shadow:none;background-color:${U.neutral.grey.light};border-color:${U.neutral.ink.lightest};color:${U.neutral.ink.light};}`;var os,is,rs;!function(e){e.CSV=".csv",e.JPEG=".jpeg",e.JPG=".jpg",e.GIF=".gif",e.PNG=".png"}(os||(os={})),function(e){e.KB="KB",e.MB="MB"}(is||(is={})),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"}(rs||(rs={}));const ls=()=>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"})),as=()=>e.createElement($t,{alignX:"center",alignY:"center",spacing:"sm",style:{pointerEvents:"none"}},e.createElement(ls,null),e.createElement(ue,{variant:"subheadingSmall",style:{paddingTop:ie.sm}},"Browse files or drag them here")),ss=({acceptedTypesCopy:t,maxSizeCopy:n})=>t||n?e.createElement($t,{alignX:"start",spacing:"xs"},t&&e.createElement(ue,{variant:"errorSmall"},"Invalid format (",t,")"),n&&e.createElement(ue,{variant:"errorSmall"},"File is too big (",n,")")):null,ds=p(ue).withConfig({displayName:"vui--SingleLineText",componentId:"vui--1aguyhc"})`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;`,cs=p($t).withConfig({displayName:"vui--UploadedFilesListStack",componentId:"vui--1g0ca18"})`border:1px solid ${U.neutral.ink.lightest};border-radius:${Q.base};padding:${ie.xs};${ue}{padding-left:${ie.xs};}`,us=({file:t,resetSelection:n,disabled:o})=>t?e.createElement(cs,{alignX:"between",direction:"horizontal",alignY:"center"},e.createElement(ds,{variant:"body"},null==t?void 0:t.name),e.createElement(Ue,{size:"sm",variant:"flat",onClick:n,icon:e.createElement(tt,null),"aria-label":"Remove file",disabled:o})):null,ms=r(((n,i)=>{var{id:r,name:s,maxBytes:d=1e6,format:u=is.MB,fileTypes:m,label:p="Upload file",required:g,disabled:h}=n,b=Ee(n,["id","name","maxBytes","format","fileTypes","label","required","disabled"]);const f=l(null);c(i,(()=>f.current),[]);const[v,y]=t(),[x,w]=t(rs.VALID),E=x===rs.INVALID_FORMAT||x===rs.INVALID_FORMAT_AND_SIZE,$=x===rs.INVALID_SIZE||x===rs.INVALID_FORMAT_AND_SIZE,C=(({maxBytes:e,format:t,baseString:n})=>{const o=null==n?"Max size: ":n;switch(t){case is.KB:return`${o}${Number(e)/1e3} KB`;case is.MB:return`${o}${Number(e)/1e6} MB`;default:return`${o}${Number(e)/1e3} KB`}})({maxBytes:d,format:u}),k=(({fileTypes:e,baseString:t})=>{let n=null==t?"Valid types: ":t;return e.forEach(((e,t,o)=>{const i=o.length>1,r=t===o.length-1&&i,l=t===o.length-2&&i;switch(r&&(n+=" and "),e){case os.CSV:n+="CSV";break;case os.GIF:n+="GIF";break;case os.JPEG:n+="JPEG";break;case os.JPG:n+="JPG";break;case os.PNG:n+="PNG"}!l&&!r&&o.length>2&&(n+=", ")})),n})({fileTypes:m}),S=(({fileTypes:e})=>{if(1===e.length)return e[0];let t="";return e.forEach(((e,n,o)=>{const i=o.length-1===n&&o.length>1;t+=i?`${e}`:`${e}, `})),t.trim()})({fileTypes:m}),N=()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.value)&&(f.current.value="")},L=({overMaxSize:e,invalidFormat:t})=>{var n;let o=rs.VALID;t&&!e?o=rs.INVALID_FORMAT:!t&&e?o=rs.INVALID_SIZE:t&&e&&(o=rs.INVALID_FORMAT_AND_SIZE),null===(n=f.current)||void 0===n||n.setCustomValidity(o),w(o)},I=a((e=>{if(!e.length)return void L({invalidFormat:!0});const[t]=e,n=t.size>d,[,o]=t.type.split("/"),i=!m.find((e=>e.substring(1)===o));n||i?N():(({fileList:e,elementId:t})=>{const n=document.getElementById(t);e.length&&(n.files=e)})({fileList:e,elementId:r}),L({invalidFormat:i,overMaxSize:n}),y(t)}),[m,r,d]),z=a((()=>{N(),y(void 0),L({invalidFormat:!1,overMaxSize:!1})}),[]),F=a((()=>{var e;const t=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&(null==t?void 0:t.length)>0?I(t):z()}),[z,I]);return o((()=>{const e=null==f?void 0:f.current;return null==e||e.addEventListener("change",F),null==e||e.addEventListener("cancel",z),()=>{null==e||e.removeEventListener("change",F),null==e||e.removeEventListener("cancel",z)}}),[F,z]),e.createElement(io,{spacing:"sm",alignX:"stretch"},e.createElement(to,{htmlFor:r},p,e.createElement($t,{spacing:3,alignX:"stretch",style:{paddingTop:ie.sm}},e.createElement(no,null,e.createElement("div",null,k),e.createElement("div",null,C)),e.createElement(ns,{onDrop:e=>{e.preventDefault(),e.dataTransfer.files.length&&I(e.dataTransfer.files)},onDragEnter:e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.focus()},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.blur()}},e.createElement(as,null),e.createElement("input",Object.assign({ref:f,id:r,type:"file",accept:S,name:s,required:g,disabled:h},b))))),e.createElement($t,{alignX:"stretch",spacing:"sm"},e.createElement(us,{file:v,resetSelection:z,disabled:h}),e.createElement(ss,{acceptedTypesCopy:E?k:void 0,maxSizeCopy:$?C:void 0})))})),ps="\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n",gs=p(X).withConfig({displayName:"vui--Container",componentId:"vui--1xg3v52"})`${ps} display:${e=>e.shouldShow?"initial":"none"};z-index:${ae.layers.modal};`,hs=p(X).withConfig({displayName:"vui--Shadow",componentId:"vui--nz3cc"})`${ps} background-color:rgba(55,66,77,0.5);`,bs=p(X).withConfig({displayName:"vui--Wrap",componentId:"vui--1pbqe6"})`position:relative;height:100%;width:100%;z-index:1;`,fs=({usePortal:t,children:n})=>e.createElement(e.Fragment,null,t?e.createElement(Ce,null,n):n),vs=({className:t,children:n=null,shouldShow:o=!1,usePortal:i=!0})=>e.createElement(fs,{usePortal:i},e.createElement(gs,{className:Ne([`${t}-container`,t]),shouldShow:o},e.createElement(hs,null),e.createElement(q,{isActive:o},e.createElement(bs,{className:Ne([`${t}-wrap`,t])},n)))),ys=p.div.withConfig({displayName:"vui--PopupContent",componentId:"vui--17gmyeh"})`display:flex;justify-content:center;align-items:center;height:100%;`,xs=p.div.withConfig({displayName:"vui--VideoWrapper",componentId:"vui--rcrl58"})`position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`,ws=p(Ue).withConfig({displayName:"vui--ButtonSC",componentId:"vui--srigr3"})`position:absolute;top:0px;right:-45px;`,Es=({id:t,youtubeVideoId:n,showVideoModal:o,handleCloseClick:i})=>{const r=Gi(o,i);return e.createElement(vs,{shouldShow:o,className:`${t}-video`},e.createElement(ys,{"data-testid":"video-modal_popup-content",className:"video-modal--"+(o?"visible":"hidden")},e.createElement(xs,{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(ws,{variant:"flat",onClick:i,"data-testid":"video-modal--close",icon:e.createElement(tt,{color:"white"})}))))};var $s;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}($s||($s={}));const Cs=p(X).withConfig({displayName:"vui--Container",componentId:"vui--1vyyfhh"})`padding:14px 24px;`,ks=p(ue).withConfig({displayName:"vui--CounterText",componentId:"vui--ycgtn6"})`line-height:1;`,Ss=p(X).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 ${ue} {\n color: ${null!=t?t:U.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t})=>e&&`\n background-color: ${t.lightest};\n `}`,Ns=p(ue).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 & > ${ks} {\n color: #fff;\n }\n `}`,Ls={style:{marginLeft:ie.xs,padding:ie.xs,height:ie.base,width:ie.base}},Is=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--yu7dwm"})`display:flex;align-items:center;margin-right:${ie.sm};svg{height:${ie.base};width:${ie.base};}`,zs=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"})),Fs=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}),Ds=({id:t,iconSlot:n,name:o,type:i,className:r,colourPalette:l=U.secondary.blue,customTextColour:s,count:d,active:c=!1,onClick:u,onDelete:m,onEdit:p,e2eClassName:g})=>{const h=Fs(r),b=Fs(g),[f,v,y]=nr(),x=a((()=>u(t)),[t,u]),w=a((e=>{e.stopPropagation(),m&&m(t)}),[m,t]),E=a((e=>{e.stopPropagation(),p&&p(t)}),[p,t]),$=i===$s.draft,C=i===$s.saved,k=c?U.neutral.ink.dark:U.neutral.ink.base;return e.createElement(Cs,{className:`${Ne([null==h?void 0:h.container,null==b?void 0:b.container])} ${c&&(null==b?void 0:b.active)||""}`,onClick:x},e.createElement(Ss,{active:c,onMouseEnter:v,onMouseLeave:y,colourPalette:l,customTextColour:s},n&&e.createElement(Is,null,n),e.createElement(ue,{variant:"bodyBold"},o),d&&e.createElement(Ns,{active:c||f,colourPalette:l,customTextColour:s},e.createElement(ks,{className:null==b?void 0:b.counter,variant:"subheadingSmall"},d)),$&&e.createElement(tt,Object.assign({},Ls,{color:k,className:null==b?void 0:b.delete,onClick:w})),C&&c&&e.createElement(zs,Object.assign({},Ls,{color:k,className:null==b?void 0:b.edit,onClick:E}))))};var Ts;!function(e){e.saved="saved",e.fixed="fixed",e.draft="draft"}(Ts||(Ts={}));const Ms=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"})),As=p(ue).withConfig({displayName:"vui--CounterText",componentId:"vui--13z4q4k"})`line-height:1;`,Rs=p(Ms).withConfig({displayName:"vui--ThreeDotsIconStyling",componentId:"vui--lo8tpb"})``,Bs=p(tt).withConfig({displayName:"vui--CrossIconStyling",componentId:"vui--u5oj4b"})``,Os=p(ue).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 & > ${As} {\n color: ${U.neutral.grey.lightest};\n }\n `}`,js=p(X).withConfig({displayName:"vui--Contour",componentId:"vui--1fc3r48"})`position:relative;display:flex;flex-direction:row;align-items:center;height:40px;border-radius:4px;padding:${ae.sizes.sm};border:1px solid transparent;cursor:pointer;background-color:transparent;${({customTextColour:e})=>`\n\n &:hover {\n background-color: ${U.neutral.grey.base};\n & > ${Os} {\n background-color: ${U.neutral.grey.base};\n & > ${As} {\n color: ${U.neutral.ink.base};\n }\n }\n & > ${ue} {\n color: ${null!=e?e:U.neutral.ink.dark};\n }\n & > ${Rs} {\n color: ${U.neutral.ink.dark};\n }\n & > ${Bs} {\n color: ${U.neutral.ink.dark};\n }\n }\n\n & > ${ue} {\n color: ${null!=e?e:U.neutral.ink.dark};\n }\n `} ${({active:e,colourPalette:t,customTextColour:n})=>e&&`\n background-color: ${t.lightest};\n\n & > ${Rs} {\n color: ${t.dark};\n }\n & > ${Bs} {\n color: ${t.dark};\n }\n\n & > ${ue} {\n color: ${null!=n?n:t.dark};\n }\n `}`,Hs=p(Ze).withConfig({displayName:"vui--ViewButton",componentId:"vui--i4ro1b"})`padding:${ae.sizes.sm};box-sizing:border-box;border-radius:4px;border:none;position:relative;margin:0;padding:0;${({customTextColour:e})=>`\n &:focus-visible {\n ${js} {\n background-color: ${U.neutral.grey.base};\n & > ${Os} {\n background-color: ${U.neutral.grey.base};\n & > ${As} {\n color: ${U.neutral.ink.base};\n }\n }\n & > ${ue} {\n color: ${null!=e?e:U.neutral.ink.dark};\n }\n & > ${Rs} {\n color: ${U.neutral.ink.dark};\n }\n & > ${Bs} {\n color: ${U.neutral.ink.dark};\n }\n }\n `}`,Ws={style:{marginLeft:ie.xs,padding:ie.xs,height:ie.base,width:ie.base}},Ps=p.div.withConfig({displayName:"vui--CustomIconWrapper",componentId:"vui--1cuc9yu"})`display:flex;align-items:center;margin-right:${ie.sm};svg{height:${ie.base};width:${ie.base};}`,Vs=e.forwardRef(((t,n)=>{var{id:o,iconSlot:i,name:r,type:l,className:a,colourPalette:s=U.secondary.blue,customTextColour:d,count:c,active:u=!1,onClick:m,subAction:p,ariaContext:g}=t,h=Ee(t,["id","iconSlot","name","type","className","colourPalette","customTextColour","count","active","onClick","subAction","ariaContext"]);const b={delete:(f=a)?`${f}-delete`:void 0,edit:f?`${f}-edit`:void 0,container:f?`${f}-view`:void 0,active:f?`${f}-active`:void 0,counter:f?`${f}-counter`:void 0};var f;const[v,y,x]=nr(),w=u&&p?p:m,E=l===Ts.draft,$=l===Ts.saved;return e.createElement(Hs,Object.assign({className:Ne([null==b?void 0:b.container]),onClick:()=>w(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(js,{active:u,onMouseEnter:y,onMouseLeave:x,colourPalette:s,customTextColour:d},i&&e.createElement(Ps,null,i),e.createElement(ue,{variant:"bodyBold"},r),null!=c&&e.createElement(Os,{"data-testid":"countContainer",active:u||v,colourPalette:s,customTextColour:d},e.createElement(As,{variant:"subheadingSmall"},c)),E&&e.createElement(Bs,Object.assign({},Ws,{"aria-label":"delete icon"})),$&&u&&e.createElement(Rs,Object.assign({},Ws,{"aria-label":"edit icon"}))))})),_s=p($t).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;`,Zs=p($t).withConfig({displayName:"vui--Container",componentId:"vui--mlh8wa"})`background-color:${U.neutral.grey.lightest};`,Ys=p(Nn).withConfig({displayName:"vui--StyledLeftIcon",componentId:"vui--193620d"})`color:${U.neutral.ink.base};`,qs=p(hn).withConfig({displayName:"vui--StyledRightIcon",componentId:"vui--erlipg"})`color:${U.neutral.ink.base};`,Xs=p(Ms).withConfig({displayName:"vui--StyledMenuIcon",componentId:"vui--eg23b0"})`color:${U.neutral.ink.base};`,Ks=p(Ue).withConfig({displayName:"vui--StyledMenuButton",componentId:"vui--1o9jbht"})`background-color:white;&:hover{background-color:${U.neutral.grey.lightest};}`,Gs=p(Ue).withConfig({displayName:"vui--StyledLeftButton",componentId:"vui--wtwmiz"})`background-color:white;&:disabled{background-color:white;${Ys}{color:${U.neutral.ink.lightest};}}&:hover{background-color:${U.neutral.grey.lightest};}`,Us=p(Ue).withConfig({displayName:"vui--StyledRightButton",componentId:"vui--1ycuwov"})`background-color:white;&:disabled{background-color:white;${qs}{color:${U.neutral.ink.lightest};}}&:hover{background-color:${U.neutral.grey.lightest};}`,Js=p(Di).withConfig({displayName:"vui--StyledInputGroup",componentId:"vui--l3ez4z"})`padding-right:8px;margin-left:0;& > *:first-child:last-child{border-radius:4px !important;}`,Qs=(e,n)=>{var i;const[r,l]=t(!0),[s,d]=t(!1),[c,u]=t([]),m=null===(i=null==e?void 0:e.current)||void 0===i?void 0:i.querySelector("[aria-selected = true]"),p=Y(m),g=a((()=>{var t,n;e.current.scrollLeft>0?l(!1):(document.getElementById("left-arrow")===document.activeElement&&(null===(t=document.getElementById("right-arrow"))||void 0===t||t.focus()),l(!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()),d(!0)):d(!1)}),[e]),h=a((()=>{var t;void 0!==typeof(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.scrollWidth)&&(e.current.scrollWidth-e.current.getBoundingClientRect().width<5?d(!0):d(!1))}),[e]),b=a((()=>{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})(c,e.current.scrollLeft,e.current.clientWidth);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,c]),f=a((()=>{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})(c,e.current.scrollLeft);e.current.scrollTo({left:t,top:0,behavior:"smooth"})}),[e,c]);return o((()=>{var t,o,i,r,l,a,s,d,b,f;if(e){if((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===(i=null==e?void 0:e.current)||void 0===i?void 0:i.children)||void 0===r?void 0:r.length)!==c.length&&c.length>0&&c.length<n.length&&(e.current.scrollTo({left:e.current.scrollWidth-e.current.clientWidth,top:0,behavior:"smooth"}),u([...c,c[c.length-1]+(null!==(a=null===(l=e.current.children[c.length-1])||void 0===l?void 0:l.getBoundingClientRect().x)&&void 0!==a?a:0)-20])),(null===(d=null===(s=null==e?void 0:e.current)||void 0===s?void 0:s.children)||void 0===d?void 0:d.length)&&0===c.length&&u((e=>Object.values(e.children).map((e=>e.getBoundingClientRect().x-20)))(e.current)),m!==p&&null!==m&&(null===(f=null===(b=null==e?void 0:e.current)||void 0===b?void 0:b.children)||void 0===f?void 0:f.length)===c.length){const t=Array.from(e.current.children).indexOf(m);e.current.scrollTo({left:c[t],top:0,behavior:"smooth"})}return h(),window.addEventListener("resize",(()=>h())),e.current.addEventListener("scroll",(()=>g())),()=>{window.removeEventListener("resize",(()=>h()))}}}),[e,n,h,g,c,m,p]),{rightDisabled:s,leftDisabled:r,toNextScrollPosition:b,toPrevScrollPosition:f}},ed=e.forwardRef((({children:t,onClickMenu:n,ariaMenuControls:o,ariaMenuExpanded:i},r)=>{const a=l(null),{rightDisabled:s,leftDisabled:d,toNextScrollPosition:c,toPrevScrollPosition:u}=Qs(a,t);return e.createElement(Zs,{direction:"horizontal",alignY:"center",alignX:"between"},e.createElement(_s,{ref:a,id:"views",role:"tablist",alignY:"center",direction:"horizontal"},t),e.createElement(Js,null,(!d||!s)&&e.createElement(e.Fragment,null,e.createElement(Gs,{id:"left-arrow",icon:e.createElement(Ys,null),disabled:d,onClick:u,variant:"flat","aria-label":"move views to the left"}),e.createElement(Us,{id:"right-arrow",icon:e.createElement(qs,null),disabled:s,onClick:c,variant:"flat","aria-label":"move views to the right"})),e.createElement(Ks,{icon:e.createElement(Xs,null),variant:"flat",onClick:n,"aria-label":"open menu","aria-controls":o,"aria-expanded":i,"aria-haspopup":o?"dialog":void 0,ref:r})))})),td=p(X).withConfig({displayName:"vui--Container",componentId:"vui--18asccd"})`display:flex;flex-direction:column;position:relative;`,nd=p(X).withConfig({displayName:"vui--Row",componentId:"vui--hefld1"})`display:flex;flex-direction:row;`,od=p(Oi).withConfig({displayName:"vui--StyledTextField",componentId:"vui--1w2y0ok"})`&&&{text-align:left;width:52px;}`,id=p(Ue).withConfig({displayName:"vui--StyledButton",componentId:"vui--fqwvpz"})`padding:0 4px;border-color:${ae.colors.neutral.ink.lightest};margin-right:4px;${e=>e.hasError&&`\n border-color: ${ae.colors.secondary.red.base};\n `};`,rd=e=>Vi(e,_i),ld=lo((t=>{var{size:n=Ti.base,hasError:o,className:i}=t,r=Ee(t,["size","hasError","className"]);return e.createElement(td,{className:i},e.createElement(nd,null,"g"===r.weightUnit&&e.createElement(Di,null,e.createElement(od,Object.assign({size:n,onChange:r.handleChangeGram,name:"gram",type:"number",value:r.gram,hasError:o,min:"0",step:"any",onKeyDown:rd},r)),e.createElement(id,{hasError:o,size:n},"g")),(e=>"lb"===e.weightUnit||"oz"===e.weightUnit)(r)&&e.createElement(e.Fragment,null,e.createElement(Di,null,e.createElement(od,Object.assign({size:n,onChange:r.handleChangePound,name:"pound",type:"number",value:r.pound,hasError:o,step:"any",min:"0",onKeyDown:rd},r)),e.createElement(id,{hasError:o,size:n},"lb")),e.createElement(Di,null,e.createElement(od,Object.assign({size:n,onChange:r.handleChangeOunce,name:"ounce",type:"number",value:r.ounce,hasError:o,min:"0",step:"any",onKeyDown:rd},r)),e.createElement(id,{hasError:o,size:n},"oz")))))}));ld.displayName="WeightInput",ld.defaultProps={weightUnit:"lb"};export{os as AcceptedFileTypes,we as Accordion,wt as ActionList,Tt as Alert,At as Anchor,Wt as AnimatedDropdown,Vt as Avatar,nn as Badge,mn as Banner,X as BaseContainer,xn as Breadcrumbs,Ue as Button,mt as Card,nt as CardHeader,Zn as Checkbox,Hn as Choice,Gn as ChoiceList,eo as CopyToClipboard,yi as DataTable,co as DateRangeInput,So as DateRangePicker,Si as DescriptionList,Fi as DetailPage,Yi as DimensionsInput,Ki as Dropdown,is as FileSizeUnit,pr as FilterTag,er as FocusVisibleManager,gr as Grid,wr as Image,Di as InputGroup,pl as LegacyDataTable,Oe as Loader,fl as LoginWithAmazonButton,Nl as Modal,jl as PageHeader,ql as Pagination,na as PaginationRange,Me as Popover,vs as Popup,Ce as Portal,ca as PriceInput,qn as Radio,Ln as RangeCalendar,ma as ScreenReaderOnly,fa as Search,Ea as SegmentedControl,mo as Select,Na as ShortcutKeys,Ra as SimpleTable,Ba as Skeleton,Va as Slider,$t as Stack,ra as Stepper,_a as Tag,ue as Text,Oi as TextField,Qa as ToastsLayout,fo as Toggle,ts as ToggleButton,Qt as Tooltip,ms as UploadFile,Es as VideoModal,Ds as View,Vs as ViewTab,ed as ViewsContainer,ld as WeightInput,Ne as buildClassnames,Co as checkIfDateRangeInvalid,$e as generateId,Ie as getOpaqueHexColor,Le as hexToRgb,Fe as isExternalLink,ae as theme,Ao as useCellWidths,Gi as useClickOutside,Ro as useColumns,Ui as useDebounce,Bo as useDragToScroll,Ji as useDropdown,tr as useFocusVisible,nr as useHover,or as useIsOverflowing,Oo as useNested,jo as useScrollPosition,Yo as useSelection,ir as useTabs,ao as withDeprecated,lo as withLabels};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|