@ctlyst.id/voila-ui 1.61.1 → 1.61.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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ Check the render method of \``+_+"`."}return""}}function an(_){{if(_!==void 0){v
|
|
|
50
50
|
|
|
51
51
|
Check your code at `+V+":"+Q+"."}return""}}var Mn={};function Rn(_){{var V=kn();if(!V){var Q=typeof _=="string"?_:_.displayName||_.name;Q&&(V=`
|
|
52
52
|
|
|
53
|
-
Check the top-level render call using <`+Q+">.")}return V}}function en(_,V){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var Q=Rn(V);if(Mn[Q])return;Mn[Q]=!0;var fe="";_&&_._owner&&_._owner!==ze.current&&(fe=" It was passed a child from "+h(_._owner.type)+"."),_t(_),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,fe),_t(null)}}function tn(_,V){{if(typeof _!="object")return;if(Et(_))for(var Q=0;Q<_.length;Q++){var fe=_[Q];Jt(fe)&&en(fe,V)}else if(Jt(_))_._store&&(_._store.validated=!0);else if(_){var Se=$(_);if(typeof Se=="function"&&Se!==_.entries)for(var Pe=Se.call(_),_e;!(_e=Pe.next()).done;)Jt(_e.value)&&en(_e.value,V)}}}function nn(_){{var V=_.type;if(V==null||typeof V=="string")return;var Q;if(typeof V=="function")Q=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===d))Q=V.propTypes;else return;if(Q){var fe=h(V);at(Q,_.props,"prop",fe,_)}else if(V.PropTypes!==void 0&&!Qt){Qt=!0;var Se=h(V);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function En(_){{for(var V=Object.keys(_.props),Q=0;Q<V.length;Q++){var fe=V[Q];if(fe!=="children"&&fe!=="key"){_t(_),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),_t(null);break}}_.ref!==null&&(_t(_),v("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function fn(_,V,Q,fe,Se,Pe){{var _e=B(_);if(!_e){var we="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(we+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ot=an(Se);ot?we+=ot:we+=kn();var Fe;_===null?Fe="null":Et(_)?Fe="array":_!==void 0&&_.$$typeof===t?(Fe="<"+(h(_.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof _,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,we)}var Be=ve(_,V,Q,Se,Pe);if(Be==null)return Be;if(_e){var Ze=V.children;if(Ze!==void 0)if(fe)if(Et(Ze)){for(var Kt=0;Kt<Ze.length;Kt++)tn(Ze[Kt],_);Object.freeze&&Object.freeze(Ze)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tn(Ze,_)}return _===r?En(Be):nn(Be),Be}}function Wt(_,V,Q){return fn(_,V,Q,!0)}function nr(_,V,Q){return fn(_,V,Q,!1)}var zt=nr,rr=Wt;Vi.Fragment=r,Vi.jsx=zt,Vi.jsxs=rr}()),Vi}process.env.NODE_ENV==="production"?Sc.exports=v0():Sc.exports=m0();var ft=Sc.exports;const g0=e=>{const t="currentColor";return{...e,color:(()=>e.color?Pt.theme.colors[e.color]?Pt.theme.colors[e.color]:e.color:"inherit")(),fill:(e==null?void 0:e.fill)||t,width:(e==null?void 0:e.size)||24,height:(e==null?void 0:e.size)||24}},ln=g0,y0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m19.02 6.96-8.62 8.9-5.28-5.27L3 12.71l7.43 7.43 10.74-11.1-2.15-2.08Z",fill:t})})},wu=y0,b0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m21.59 9.03-2.12-2.12-6.94 6.94-6.94-6.94-2.12 2.12 9.06 9.06 9.06-9.06Z",fill:t})})},Ca=b0,w0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0304 16.1531C12.7375 16.446 12.2626 16.446 11.9697 16.1531L4.72421 8.90756C4.43132 8.61466 4.43132 8.13979 4.72421 7.8469C5.0171 7.554 5.49198 7.554 5.78487 7.8469L12.5001 14.5621L19.2153 7.8469C19.5082 7.554 19.983 7.554 20.2759 7.8469C20.5688 8.13979 20.5688 8.61467 20.2759 8.90756L13.0304 16.1531Z",fill:t})})},E0=w0,x0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m16 21.56 2.12-2.12-6.94-6.94 6.94-6.94L16 3.44 6.94 12.5 16 21.56Z",fill:t})})},_0=x0,S0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m3.47 15.97 2.12 2.12 6.94-6.94 6.94 6.94 2.12-2.12-9.06-9.06-9.06 9.06Z",fill:t})})},Oh=S0,C0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6685 7.8469C11.9614 7.554 12.4362 7.55401 12.7291 7.8469L19.9746 15.0924C20.2675 15.3853 20.2675 15.8602 19.9746 16.1531C19.6818 16.446 19.2069 16.446 18.914 16.1531L12.1988 9.43789L5.48358 16.1531C5.19068 16.446 4.71581 16.446 4.42292 16.1531C4.13002 15.8602 4.13002 15.3853 4.42292 15.0924L11.6685 7.8469Z",fill:t})})},$0=C0,T0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m21.06 19.44-6.98-6.98 6.9-6.9-2.12-2.12-6.9 6.9-6.82-6.82-2.12 2.12 6.82 6.82-6.9 6.9 2.12 2.12 6.9-6.9 6.98 6.98 2.12-2.12Z",fill:t})})},Eu=T0,I0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7793 5.28155C20.0722 4.98866 20.0722 4.51378 19.7793 4.22089C19.4864 3.928 19.0115 3.928 18.7186 4.22089L11.9939 10.9456L5.26926 4.22095C4.97637 3.92806 4.50149 3.92806 4.2086 4.22095C3.91571 4.51385 3.91571 4.98872 4.2086 5.28161L10.9333 12.0063L4.20856 18.731C3.91567 19.0239 3.91567 19.4988 4.20856 19.7917C4.50146 20.0846 4.97633 20.0846 5.26922 19.7917L11.9939 13.0669L18.7187 19.7917C19.0116 20.0846 19.4865 20.0846 19.7794 19.7917C20.0723 19.4988 20.0723 19.0239 19.7794 18.731L13.0546 12.0063L19.7793 5.28155Z",fill:t})})},R0=I0,O0=e=>{const{color:t,...n}=ln(e);return ft.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ft.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ft.jsx("path",{d:"m16.67 9.21-1.42-1.42-3.27 3.28-3.23-3.24-1.42 1.42 3.24 3.23-3.28 3.27 1.42 1.42 3.27-3.28 3.31 3.32 1.42-1.42-3.32-3.31 3.28-3.27Z",fill:t})]})},P0=O0,A0=e=>{const{color:t,...n}=ln(e);return ft.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ft.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ft.jsx("path",{d:"M12 9.62a1.12 1.12 0 1 0 0-2.24 1.12 1.12 0 0 0 0 2.24ZM13 11.5h-2v6h2v-6Z",fill:t})]})},D0=A0,N0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"M21 11H3v3h18v-3Z",fill:t})})},k0=N0,M0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m22 21.67-4.86-4.86a8.474 8.474 0 0 0 1.86-5.3c0-4.69-3.81-8.5-8.5-8.5-4.69 0-8.5 3.81-8.5 8.5 0 4.69 3.81 8.5 8.5 8.5 2.01 0 3.85-.7 5.3-1.86l4.86 4.86 1.33-1.33.01-.01ZM10.5 18C6.92 18 4 15.08 4 11.5S6.92 5 10.5 5 17 7.92 17 11.5 14.08 18 10.5 18Z",fill:t})})},j0=M0,L0=e=>{const{color:t,...n}=ln(e);return ft.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ft.jsx("path",{d:"M13 11h-2v4h2v-4ZM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:t}),ft.jsx("path",{d:"M12 3 2 21h20L12 3Zm0 4.12L18.6 19H5.4L12 7.12Z",fill:t})]})},F0=L0,V0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm1.37-4.24c-.22.08-.37.27-.37.47v.77h-2v-.77c0-1.06.66-1.98 1.68-2.35.78-.29 1.48-1.15 1.28-2.25-.14-.79-.81-1.46-1.6-1.6a2.003 2.003 0 0 0-2.37 1.97h-2c0-1.18.52-2.3 1.43-3.06.91-.76 2.1-1.08 3.29-.87 1.61.28 2.94 1.61 3.22 3.22.34 1.93-.74 3.81-2.57 4.48l.01-.01Z",fill:t})})},B0=V0,H0=l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(Ob,{className:"accordion-header",id:"vds-accordion-header",children:M.jsxs(Pb,{id:"vds-accordion-trigger",className:$e(d0,t),...n,ref:r,children:[M.jsx(rt,{className:f0,children:e}),M.jsx(Ca,{className:s0,size:24,color:Pt.theme.colors.black})]})}));var W0="_7q2fqh7",z0={info:"var(--_1qe00b2y)",warning:"var(--_1qe00b211)",neutral:"var(--_1qe00b2c)",error:"var(--_1qe00b214)"},U0=Ke({defaultClassName:"_7q2fqh0",variantClassNames:{variant:{info:"_7q2fqh1",warning:"_7q2fqh2",neutral:"_7q2fqh3",error:"_7q2fqh4"},size:{full:"_7q2fqh5",default:"_7q2fqh6"}},defaultVariants:{variant:"neutral",size:"default"},compoundVariants:[]});const Y0=16,Ph=l.forwardRef(({className:e,title:t,children:n,withClose:r,variant:o,size:i,onClose:a,...s},c)=>{const u="div",f=l.useRef(null),[d,m]=l.useState(null),b=(()=>{switch(o){case"error":return P0;case"warning":return F0;default:return D0}})(),y=l.useCallback($=>{$.forEach(E=>{const{height:v}=E.contentRect;m(v>Y0)})},[]);return l.useEffect(()=>{const $=f.current;if(!$)return;const E=new ResizeObserver(y);return E.observe($),()=>E.disconnect()},[y]),M.jsxs(u,{ref:c,className:$e(U0({variant:o,size:i}),e),"data-test-id":s["data-test-id"],...s,children:[M.jsxs(Bt,{gap:"$12",alignItems:d?"flex-start":"center",visibility:d===null?"hidden":"visible",children:[M.jsx(rt,{display:"flex",w:Pt.theme.space[24],children:M.jsx(b,{size:24,color:z0[o||"neutral"]})}),M.jsxs(Ar,{gap:"$4",children:[t&&M.jsx(Xt,{textStyle:"caption",as:"span",fontWeight:"$medium",children:t}),M.jsx(rt,{ref:f,className:W0,children:n})]})]}),r&&M.jsx(Bt,{children:M.jsx(Eu,{"data-test-id":"CT_Component-Alert-Close",onClick:a,cursor:"pointer",color:Pt.theme.colors.black,size:16})})]})});Ph.defaultProps={"data-test-id":void 0,title:void 0,withClose:void 0,onClose:void 0};const K0=l.forwardRef((e,t)=>{const{ratio:n=1,style:r,...o}=e;return l.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":""},l.createElement(Ue.div,ae({},o,{ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})))}),xu=({children:e,...t})=>M.jsx(K0,{...t,children:e});xu.defaultProps={children:void 0};xu.displayName="AspectRatio";var q0=Ke({defaultClassName:"_1er7sj40",variantClassNames:{colorScheme:{primary:"_1er7sj41",disabled:"_1er7sj42",yellow:"_1er7sj43",red:"_1er7sj44",blue:"_1er7sj45",neutral:"_1er7sj46"},size:{large:"_1er7sj47 _15r4f4d1oz _15r4f4d1il _15r4f4d15e _15r4f4d1bs",medium:"_1er7sj48 _15r4f4d1op _15r4f4d1ib _15r4f4d15e _15r4f4d1bs",small:"_1er7sj49 _15r4f4d1op _15r4f4d1ib _15r4f4d154 _15r4f4d1bi"},isRounded:{true:"_1er7sj4a",false:"_1er7sj4b"},variant:{primary:"_1er7sj4c",secondary:"_1er7sj4d"}},defaultVariants:{colorScheme:"primary",size:"large",variant:"primary",isRounded:!1},compoundVariants:[[{colorScheme:"primary",variant:"secondary"},"_1er7sj4e"],[{colorScheme:"disabled",variant:"secondary"},"_1er7sj4f"],[{colorScheme:"yellow",variant:"secondary"},"_1er7sj4g"],[{colorScheme:"red",variant:"secondary"},"_1er7sj4h"],[{colorScheme:"blue",variant:"secondary"},"_1er7sj4i"]]});const _u=l.forwardRef(({as:e,children:t,colorScheme:n,size:r,variant:o,isRounded:i,className:a,style:s,...c},u)=>{const f=e||"span";return M.jsx(f,{ref:u,"data-test-id":c["data-test-id"],className:$e(q0({colorScheme:n,variant:o,size:r,isRounded:i}),a),style:s,...c,children:t})});_u.defaultProps={as:"span",colorScheme:"primary",size:"large",children:void 0,"data-test-id":void 0};_u.displayName="Badge";function Yd(e,[t,n]){return Math.min(n,Math.max(t,e))}function X0(e,t=globalThis==null?void 0:globalThis.document){const n=un(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Cc="dismissableLayer.update",G0="dismissableLayer.pointerDownOutside",Z0="dismissableLayer.focusOutside";let Kd;const Ah=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rs=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,f=l.useContext(Ah),[d,m]=l.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=l.useState({}),y=ut(t,F=>m(F)),$=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=$.indexOf(E),w=d?$.indexOf(d):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,I=w>=v,D=J0(F=>{const k=F.target,B=[...f.branches].some(R=>R.contains(k));!I||B||(i==null||i(F),s==null||s(F),F.defaultPrevented||c==null||c())},p),A=ew(F=>{const k=F.target;[...f.branches].some(R=>R.contains(k))||(a==null||a(F),s==null||s(F),F.defaultPrevented||c==null||c())},p);return X0(F=>{w===f.layers.size-1&&(o==null||o(F),!F.defaultPrevented&&c&&(F.preventDefault(),c()))},p),l.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Kd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),qd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Kd)}},[d,p,r,f]),l.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),qd())},[d,f]),l.useEffect(()=>{const F=()=>b({});return document.addEventListener(Cc,F),()=>document.removeEventListener(Cc,F)},[]),l.createElement(Ue.div,ae({},u,{ref:y,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,D.onPointerDownCapture)}))}),Q0=l.forwardRef((e,t)=>{const n=l.useContext(Ah),r=l.useRef(null),o=ut(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.createElement(Ue.div,ae({},e,{ref:o}))});function J0(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Dh(G0,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ew(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Dh(Z0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qd(){const e=new CustomEvent(Cc);document.dispatchEvent(e)}function Dh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wh(o,i):o.dispatchEvent(i)}const tw=rs,nw=Q0;let Hs=0;function Nh(){l.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xd()),Hs++,()=>{Hs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Hs--}},[])}function Xd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ws="focusScope.autoFocusOnMount",zs="focusScope.autoFocusOnUnmount",Gd={bubbles:!1,cancelable:!0},kh=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),u=un(o),f=un(i),d=l.useRef(null),m=ut(t,y=>c(y)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let y=function(w){if(p.paused||!s)return;const T=w.target;s.contains(T)?d.current=T:ar(d.current,{select:!0})},$=function(w){if(p.paused||!s)return;const T=w.relatedTarget;T!==null&&(s.contains(T)||ar(d.current,{select:!0}))},E=function(w){const T=document.activeElement;for(const I of w)I.removedNodes.length>0&&(s!=null&&s.contains(T)||ar(s))};document.addEventListener("focusin",y),document.addEventListener("focusout",$);const v=new MutationObserver(E);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",$),v.disconnect()}}},[r,s,p.paused]),l.useEffect(()=>{if(s){Qd.add(p);const y=document.activeElement;if(!s.contains(y)){const E=new CustomEvent(Ws,Gd);s.addEventListener(Ws,u),s.dispatchEvent(E),E.defaultPrevented||(rw(cw(Mh(s)),{select:!0}),document.activeElement===y&&ar(s))}return()=>{s.removeEventListener(Ws,u),setTimeout(()=>{const E=new CustomEvent(zs,Gd);s.addEventListener(zs,f),s.dispatchEvent(E),E.defaultPrevented||ar(y??document.body,{select:!0}),s.removeEventListener(zs,f),Qd.remove(p)},0)}}},[s,u,f,p]);const b=l.useCallback(y=>{if(!n&&!r||p.paused)return;const $=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,E=document.activeElement;if($&&E){const v=y.currentTarget,[w,T]=ow(v);w&&T?!y.shiftKey&&E===T?(y.preventDefault(),n&&ar(w,{select:!0})):y.shiftKey&&E===w&&(y.preventDefault(),n&&ar(T,{select:!0})):E===v&&y.preventDefault()}},[n,r,p.paused]);return l.createElement(Ue.div,ae({tabIndex:-1},a,{ref:m,onKeyDown:b}))});function rw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ar(r,{select:t}),document.activeElement!==n)return}function ow(e){const t=Mh(e),n=Zd(t,e),r=Zd(t.reverse(),e);return[n,r]}function Mh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zd(e,t){for(const n of e)if(!iw(n,{upTo:t}))return n}function iw(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aw(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aw(e)&&t&&e.select()}}const Qd=sw();function sw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jd(e,t),e.unshift(t)},remove(t){var n;e=Jd(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Jd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cw(e){return e.filter(t=>t.tagName!=="A")}const uw=["top","right","bottom","left"],vr=Math.min,vn=Math.max,$a=Math.round,Bi=Math.floor,mr=e=>({x:e,y:e}),lw={left:"right",right:"left",bottom:"top",top:"bottom"},dw={start:"end",end:"start"};function $c(e,t,n){return vn(e,vr(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function go(e){return e.split("-")[1]}function Su(e){return e==="x"?"y":"x"}function Cu(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(Qn(e))?"y":"x"}function $u(e){return Su(yo(e))}function fw(e,t,n){n===void 0&&(n=!1);const r=go(e),o=$u(e),i=Cu(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ta(a)),[a,Ta(a)]}function pw(e){const t=Ta(e);return[Tc(e),t,Tc(t)]}function Tc(e){return e.replace(/start|end/g,t=>dw[t])}function hw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function vw(e,t,n,r){const o=go(e);let i=hw(Qn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Tc)))),i}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>lw[t])}function mw(e){return{top:0,right:0,bottom:0,left:0,...e}}function jh(e){return typeof e!="number"?mw(e):{top:e,right:e,bottom:e,left:e}}function Ia(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ef(e,t,n){let{reference:r,floating:o}=e;const i=yo(t),a=$u(t),s=Cu(a),c=Qn(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(go(t)){case"start":p[a]-=m*(n&&u?-1:1);break;case"end":p[a]+=m*(n&&u?-1:1);break}return p}const gw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=ef(u,r,c),m=r,p={},b=0;for(let y=0;y<s.length;y++){const{name:$,fn:E}=s[y],{x:v,y:w,data:T,reset:I}=await E({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=v??f,d=w??d,p={...p,[$]:{...p[$],...T}},I&&b<=50){b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(u=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:f,y:d}=ef(u,m,c)),y=-1;continue}}return{x:f,y:d,placement:m,strategy:o,middlewareData:p}};async function si(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Zn(t,e),b=jh(p),$=s[m?d==="floating"?"reference":"floating":d],E=Ia(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement($)))==null||n?$:$.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),v=d==="floating"?{...a.floating,x:r,y:o}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:c}):v);return{top:(E.top-I.top+b.top)/T.y,bottom:(I.bottom-E.bottom+b.bottom)/T.y,left:(E.left-I.left+b.left)/T.x,right:(I.right-E.right+b.right)/T.x}}const tf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:c,padding:u=0}=Zn(e,t)||{};if(c==null)return{};const f=jh(u),d={x:n,y:r},m=$u(o),p=Cu(m),b=await a.getDimensions(c),y=m==="y",$=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[m]-d[m]-i.floating[p],T=d[m]-i.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=I?I[v]:0;(!D||!await(a.isElement==null?void 0:a.isElement(I)))&&(D=s.floating[v]||i.floating[p]);const A=w/2-T/2,F=D/2-b[p]/2-1,k=vr(f[$],F),B=vr(f[E],F),R=k,x=D-b[p]-B,h=D/2-b[p]/2+A,C=$c(R,h,x),j=go(o)!=null&&h!=C&&i.reference[p]/2-(h<R?k:B)-b[p]/2<0?h<R?R-h:x-h:0;return{[m]:d[m]-j,data:{[m]:C,centerOffset:h-C+j}}}}),yw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...y}=Zn(e,t),$=Qn(r),E=Qn(a)===a,v=await(s.isRTL==null?void 0:s.isRTL(c.floating)),w=d||(E||!b?[Ta(a)]:pw(a));!d&&p!=="none"&&w.push(...vw(a,b,p,v));const T=[a,...w],I=await si(t,y),D=[];let A=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&D.push(I[$]),f){const R=fw(r,i,v);D.push(I[R[0]],I[R[1]])}if(A=[...A,{placement:r,overflows:D}],!D.every(R=>R<=0)){var F,k;const R=(((F=o.flip)==null?void 0:F.index)||0)+1,x=T[R];if(x)return{data:{index:R,overflows:A},reset:{placement:x}};let h=(k=A.filter(C=>C.overflows[0]<=0).sort((C,P)=>C.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!h)switch(m){case"bestFit":{var B;const C=(B=A.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:B[0];C&&(h=C);break}case"initialPlacement":h=a;break}if(r!==h)return{reset:{placement:h}}}return{}}}};function nf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rf(e){return uw.some(t=>e[t]>=0)}const bw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zn(e,t);switch(r){case"referenceHidden":{const i=await si(t,{...o,elementContext:"reference"}),a=nf(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:rf(a)}}}case"escaped":{const i=await si(t,{...o,altBoundary:!0}),a=nf(i,n.floating);return{data:{escapedOffsets:a,escaped:rf(a)}}}default:return{}}}}};async function ww(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Qn(n),s=go(n),c=yo(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,d=Zn(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof b=="number"&&(p=s==="end"?b*-1:b),c?{x:p*f,y:m*u}:{x:m*u,y:p*f}}const Ew=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await ww(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},xw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:$=>{let{x:E,y:v}=$;return{x:E,y:v}}},...c}=Zn(e,t),u={x:n,y:r},f=await si(t,c),d=yo(Qn(o)),m=Su(d);let p=u[m],b=u[d];if(i){const $=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=p+f[$],w=p-f[E];p=$c(v,p,w)}if(a){const $=d==="y"?"top":"left",E=d==="y"?"bottom":"right",v=b+f[$],w=b-f[E];b=$c(v,b,w)}const y=s.fn({...t,[m]:p,[d]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}},_w=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Zn(e,t),f={x:n,y:r},d=yo(o),m=Su(d);let p=f[m],b=f[d];const y=Zn(s,t),$=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=m==="y"?"height":"width",T=i.reference[m]-i.floating[w]+$.mainAxis,I=i.reference[m]+i.reference[w]-$.mainAxis;p<T?p=T:p>I&&(p=I)}if(u){var E,v;const w=m==="y"?"width":"height",T=["top","left"].includes(Qn(o)),I=i.reference[d]-i.floating[w]+(T&&((E=a.offset)==null?void 0:E[d])||0)+(T?0:$.crossAxis),D=i.reference[d]+i.reference[w]+(T?0:((v=a.offset)==null?void 0:v[d])||0)-(T?$.crossAxis:0);b<I?b=I:b>D&&(b=D)}return{[m]:p,[d]:b}}}},Sw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Zn(e,t),c=await si(t,s),u=Qn(n),f=go(n),d=yo(n)==="y",{width:m,height:p}=r.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const $=p-c[b],E=m-c[y],v=!t.middlewareData.shift;let w=$,T=E;if(d){const D=m-c.left-c.right;T=f||v?vr(E,D):D}else{const D=p-c.top-c.bottom;w=f||v?vr($,D):D}if(v&&!f){const D=vn(c.left,0),A=vn(c.right,0),F=vn(c.top,0),k=vn(c.bottom,0);d?T=m-2*(D!==0||A!==0?D+A:vn(c.left,c.right)):w=p-2*(F!==0||k!==0?F+k:vn(c.top,c.bottom))}await a({...t,availableWidth:T,availableHeight:w});const I=await o.getDimensions(i.floating);return m!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function gr(e){return Lh(e)?(e.nodeName||"").toLowerCase():"#document"}function yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Lh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lh(e){return e instanceof Node||e instanceof yn(e).Node}function Jn(e){return e instanceof Element||e instanceof yn(e).Element}function Bn(e){return e instanceof HTMLElement||e instanceof yn(e).HTMLElement}function of(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yn(e).ShadowRoot}function Ci(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Cw(e){return["table","td","th"].includes(gr(e))}function Tu(e){const t=Iu(),n=In(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $w(e){let t=fo(e);for(;Bn(t)&&!os(t);){if(Tu(t))return t;t=fo(t)}return null}function Iu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function os(e){return["html","body","#document"].includes(gr(e))}function In(e){return yn(e).getComputedStyle(e)}function is(e){return Jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fo(e){if(gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||of(e)&&e.host||er(e);return of(t)?t.host:t}function Fh(e){const t=fo(e);return os(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bn(t)&&Ci(t)?t:Fh(t)}function Ra(e,t){var n;t===void 0&&(t=[]);const r=Fh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yn(r);return o?t.concat(i,i.visualViewport||[],Ci(r)?r:[]):t.concat(r,Ra(r))}function Vh(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=$a(n)!==i||$a(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Ru(e){return Jn(e)?e:e.contextElement}function oo(e){const t=Ru(e);if(!Bn(t))return mr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Vh(t);let a=(i?$a(n.width):n.width)/r,s=(i?$a(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Tw=mr(0);function Bh(e){const t=yn(e);return!Iu()||!t.visualViewport?Tw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Iw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yn(e)?!1:t}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ru(e);let a=mr(1);t&&(r?Jn(r)&&(a=oo(r)):a=oo(e));const s=Iw(i,n,r)?Bh(i):mr(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const m=yn(i),p=r&&Jn(r)?yn(r):r;let b=m.frameElement;for(;b&&r&&p!==m;){const y=oo(b),$=b.getBoundingClientRect(),E=In(b),v=$.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=$.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,d*=y.y,c+=v,u+=w,b=yn(b).frameElement}}return Ia({width:f,height:d,x:c,y:u})}function Rw(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Bn(n),i=er(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=mr(1);const c=mr(0);if((o||!o&&r!=="fixed")&&((gr(n)!=="body"||Ci(i))&&(a=is(n)),Bn(n))){const u=Mr(n);s=oo(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}}function Ow(e){return Array.from(e.getClientRects())}function Hh(e){return Mr(er(e)).left+is(e).scrollLeft}function Pw(e){const t=er(e),n=is(e),r=e.ownerDocument.body,o=vn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hh(e);const s=-n.scrollTop;return In(r).direction==="rtl"&&(a+=vn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Aw(e,t){const n=yn(e),r=er(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Iu();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Dw(e,t){const n=Mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bn(e)?oo(e):mr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function af(e,t,n){let r;if(t==="viewport")r=Aw(e,n);else if(t==="document")r=Pw(er(e));else if(Jn(t))r=Dw(t,n);else{const o=Bh(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ia(r)}function Wh(e,t){const n=fo(e);return n===t||!Jn(n)||os(n)?!1:In(n).position==="fixed"||Wh(n,t)}function Nw(e,t){const n=t.get(e);if(n)return n;let r=Ra(e).filter(s=>Jn(s)&&gr(s)!=="body"),o=null;const i=In(e).position==="fixed";let a=i?fo(e):e;for(;Jn(a)&&!os(a);){const s=In(a),c=Tu(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ci(a)&&!c&&Wh(e,a))?r=r.filter(f=>f!==a):o=s,a=fo(a)}return t.set(e,r),r}function kw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Nw(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const d=af(t,f,o);return u.top=vn(d.top,u.top),u.right=vr(d.right,u.right),u.bottom=vr(d.bottom,u.bottom),u.left=vn(d.left,u.left),u},af(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mw(e){return Vh(e)}function jw(e,t,n){const r=Bn(t),o=er(t),i=n==="fixed",a=Mr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=mr(0);if(r||!r&&!i)if((gr(t)!=="body"||Ci(o))&&(s=is(t)),r){const u=Mr(t,!0,i,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else o&&(c.x=Hh(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function sf(e,t){return!Bn(e)||In(e).position==="fixed"?null:t?t(e):e.offsetParent}function zh(e,t){const n=yn(e);if(!Bn(e))return n;let r=sf(e,t);for(;r&&Cw(r)&&In(r).position==="static";)r=sf(r,t);return r&&(gr(r)==="html"||gr(r)==="body"&&In(r).position==="static"&&!Tu(r))?n:r||$w(e)||n}const Lw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||zh,i=this.getDimensions;return{reference:jw(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function Fw(e){return In(e).direction==="rtl"}const Vw={convertOffsetParentRelativeRectToViewportRelativeRect:Rw,getDocumentElement:er,getClippingRect:kw,getOffsetParent:zh,getElementRects:Lw,getClientRects:Ow,getDimensions:Mw,getScale:oo,isElement:Jn,isRTL:Fw};function Bw(e,t){let n=null,r;const o=er(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:d,height:m}=e.getBoundingClientRect();if(s||t(),!d||!m)return;const p=Bi(f),b=Bi(o.clientWidth-(u+d)),y=Bi(o.clientHeight-(f+m)),$=Bi(u),v={rootMargin:-p+"px "+-b+"px "+-y+"px "+-$+"px",threshold:vn(0,vr(1,c))||1};let w=!0;function T(I){const D=I[0].intersectionRatio;if(D!==c){if(!w)return a();D?a(!1,D):r=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(T,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,v)}n.observe(e)}return a(!0),i}function Hw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ru(e),f=o||i?[...u?Ra(u):[],...Ra(t)]:[];f.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const d=u&&s?Bw(u,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(E=>{let[v]=E;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let b,y=c?Mr(e):null;c&&$();function $(){const E=Mr(e);y&&(E.x!==y.x||E.y!==y.y||E.width!==y.width||E.height!==y.height)&&n(),y=E,b=requestAnimationFrame($)}return n(),()=>{f.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const Ww=(e,t,n)=>{const r=new Map,o={platform:Vw,...n},i={...o.platform,_c:r};return gw(e,t,{...o,platform:i})},zw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?tf({element:r.current,padding:o}).fn(n):{}:r?tf({element:r,padding:o}).fn(n):{}}}};var la=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Oa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Oa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cf(e,t){const n=Uh(e);return Math.round(t*n)/n}function uf(e){const t=Oe.useRef(e);return la(()=>{t.current=e}),t}function Uw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=Oe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=Oe.useState(r);Oa(m,r)||p(r);const[b,y]=Oe.useState(null),[$,E]=Oe.useState(null),v=Oe.useCallback(j=>{j!=D.current&&(D.current=j,y(j))},[y]),w=Oe.useCallback(j=>{j!==A.current&&(A.current=j,E(j))},[E]),T=i||b,I=a||$,D=Oe.useRef(null),A=Oe.useRef(null),F=Oe.useRef(f),k=uf(c),B=uf(o),R=Oe.useCallback(()=>{if(!D.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),Ww(D.current,A.current,j).then(H=>{const U={...H,isPositioned:!0};x.current&&!Oa(F.current,U)&&(F.current=U,Hy.flushSync(()=>{d(U)}))})},[m,t,n,B]);la(()=>{u===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[u]);const x=Oe.useRef(!1);la(()=>(x.current=!0,()=>{x.current=!1}),[]),la(()=>{if(T&&(D.current=T),I&&(A.current=I),T&&I){if(k.current)return k.current(T,I,R);R()}},[T,I,R,k]);const h=Oe.useMemo(()=>({reference:D,floating:A,setReference:v,setFloating:w}),[v,w]),C=Oe.useMemo(()=>({reference:T,floating:I}),[T,I]),P=Oe.useMemo(()=>{const j={position:n,left:0,top:0};if(!C.floating)return j;const H=cf(C.floating,f.x),U=cf(C.floating,f.y);return s?{...j,transform:"translate("+H+"px, "+U+"px)",...Uh(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,C.floating,f.x,f.y]);return Oe.useMemo(()=>({...f,update:R,refs:h,elements:C,floatingStyles:P}),[f,R,h,C,P])}const Yw=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.createElement(Ue.svg,ae({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Kw=Yw;function as(e){const[t,n]=l.useState(void 0);return Gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Yh="Popper",[Kh,ss]=bn(Yh),[qw,qh]=Kh(Yh),Xw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return l.createElement(qw,{scope:t,anchor:r,onAnchorChange:o},n)},Gw="PopperAnchor",Zw=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=qh(Gw,n),a=l.useRef(null),s=ut(t,a);return l.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.createElement(Ue.div,ae({},o,{ref:s}))}),Xh="PopperContent",[Qw,Jw]=Kh(Xh),e1=l.forwardRef((e,t)=>{var n,r,o,i,a,s,c,u;const{__scopePopper:f,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:b=0,arrowPadding:y=0,collisionBoundary:$=[],collisionPadding:E=0,sticky:v="partial",hideWhenDetached:w=!1,avoidCollisions:T=!0,onPlaced:I,...D}=e,A=qh(Xh,f),[F,k]=l.useState(null),B=ut(t,xe=>k(xe)),[R,x]=l.useState(null),h=as(R),C=(n=h==null?void 0:h.width)!==null&&n!==void 0?n:0,P=(r=h==null?void 0:h.height)!==null&&r!==void 0?r:0,j=d+(p!=="center"?"-"+p:""),H=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},U=Array.isArray($)?$:[$],re=U.length>0,W={padding:H,boundary:U.filter(o1),altBoundary:re},{refs:L,floatingStyles:J,placement:Y,isPositioned:K,middlewareData:Z}=Uw({strategy:"fixed",placement:j,whileElementsMounted:Hw,elements:{reference:A.anchor},middleware:[Ew({mainAxis:m+P,alignmentAxis:b}),T&&xw({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?_w():void 0,...W}),T&&yw({...W}),Sw({...W,apply:({elements:xe,rects:Ee,availableWidth:Ae,availableHeight:Ie})=>{const{width:Le,height:ke}=Ee.reference,at=xe.floating.style;at.setProperty("--radix-popper-available-width",`${Ae}px`),at.setProperty("--radix-popper-available-height",`${Ie}px`),at.setProperty("--radix-popper-anchor-width",`${Le}px`),at.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),R&&zw({element:R,padding:y}),i1({arrowWidth:C,arrowHeight:P}),w&&bw({strategy:"referenceHidden"})]}),[ce,z]=Gh(Y),G=un(I);Gt(()=>{K&&(G==null||G())},[K,G]);const oe=(o=Z.arrow)===null||o===void 0?void 0:o.x,ne=(i=Z.arrow)===null||i===void 0?void 0:i.y,ie=((a=Z.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ee,pe]=l.useState();return Gt(()=>{F&&pe(window.getComputedStyle(F).zIndex)},[F]),l.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(s=Z.transformOrigin)===null||s===void 0?void 0:s.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(Qw,{scope:f,placedSide:ce,onArrowChange:x,arrowX:oe,arrowY:ne,shouldHideArrow:ie},l.createElement(Ue.div,ae({"data-side":ce,"data-align":z},D,{ref:B,style:{...D.style,animation:K?void 0:"none",opacity:(u=Z.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),t1="PopperArrow",n1={top:"bottom",right:"left",bottom:"top",left:"right"},r1=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Jw(t1,r),a=n1[i.placedSide];return l.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},l.createElement(Kw,ae({},o,{ref:n,style:{...o.style,display:"block"}})))});function o1(e){return e!==null}const i1=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[b,y]=Gh(s),$={start:"0%",center:"50%",end:"100%"}[y],E=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,v=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let w="",T="";return b==="bottom"?(w=d?$:`${E}px`,T=`${-p}px`):b==="top"?(w=d?$:`${E}px`,T=`${c.floating.height+p}px`):b==="right"?(w=`${-p}px`,T=d?$:`${v}px`):b==="left"&&(w=`${c.floating.width+p}px`,T=d?$:`${v}px`),{data:{x:w,y:T}}}});function Gh(e){const[t,n="center"]=e.split("-");return[t,n]}const Zh=Xw,Qh=Zw,Jh=e1,a1=r1,ev=l.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?mn.createPortal(l.createElement(Ue.div,ae({},o,{ref:t})),r):null}),s1=ev;function cs(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const us=l.forwardRef((e,t)=>l.createElement(Ue.span,ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),c1=us;var u1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Hi=new WeakMap,Wi={},Us=0,tv=function(e){return e&&(e.host||tv(e.parentNode))},l1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},d1=function(e,t,n,r){var o=l1(t,Array.isArray(e)?e:[e]);Wi[n]||(Wi[n]=new WeakMap);var i=Wi[n],a=[],s=new Set,c=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(s.has(m))f(m);else{var p=m.getAttribute(r),b=p!==null&&p!=="false",y=(Ur.get(m)||0)+1,$=(i.get(m)||0)+1;Ur.set(m,y),i.set(m,$),a.push(m),y===1&&b&&Hi.set(m,!0),$===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}})};return f(t),s.clear(),Us++,function(){a.forEach(function(d){var m=Ur.get(d)-1,p=i.get(d)-1;Ur.set(d,m),i.set(d,p),m||(Hi.has(d)||d.removeAttribute(r),Hi.delete(d)),p||d.removeAttribute(n)}),Us--,Us||(Ur=new WeakMap,Ur=new WeakMap,Hi=new WeakMap,Wi={})}},nv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||u1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),d1(r,o,n,"aria-hidden")):function(){return null}},Cn=function(){return Cn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Cn.apply(this,arguments)};function rv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function f1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",fa="width-before-scroll-bar",p1="with-scroll-bars-hidden",h1="--removed-body-scroll-bar-size";function v1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function m1(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function g1(e,t){return m1(t||null,function(n){return e.forEach(function(r){return v1(r,n)})})}function y1(e){return e}function b1(e,t){t===void 0&&(t=y1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function w1(e){e===void 0&&(e={});var t=b1(null);return t.options=Cn({async:!0,ssr:!1},e),t}var ov=function(e){var t=e.sideCar,n=rv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Oe.createElement(r,Cn({},n))};ov.isSideCarExport=!0;function E1(e,t){return e.useMedium(t),ov}var iv=w1(),Ys=function(){},ls=Oe.forwardRef(function(e,t){var n=Oe.useRef(null),r=Oe.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,p=e.noIsolation,b=e.inert,y=e.allowPinchZoom,$=e.as,E=$===void 0?"div":$,v=rv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,T=g1([n,t]),I=Cn(Cn({},v),o);return Oe.createElement(Oe.Fragment,null,f&&Oe.createElement(w,{sideCar:iv,removeScrollBar:u,shards:d,noIsolation:p,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:n}),a?Oe.cloneElement(Oe.Children.only(s),Cn(Cn({},I),{ref:T})):Oe.createElement(E,Cn({},I,{className:c,ref:T}),s))});ls.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ls.classNames={fullWidth:fa,zeroRight:da};var lf,x1=function(){if(lf)return lf;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=x1();return t&&e.setAttribute("nonce",t),e}function S1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function C1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_1())&&(S1(t,n),C1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},T1=function(){var e=$1();return function(t,n){Oe.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},av=function(){var e=T1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},I1={left:0,top:0,right:0,gap:0},Ks=function(e){return parseInt(e||"",10)||0},R1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ks(n),Ks(r),Ks(o)]},O1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I1;var t=R1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},P1=av(),A1=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
53
|
+
Check the top-level render call using <`+Q+">.")}return V}}function en(_,V){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var Q=Rn(V);if(Mn[Q])return;Mn[Q]=!0;var fe="";_&&_._owner&&_._owner!==ze.current&&(fe=" It was passed a child from "+h(_._owner.type)+"."),_t(_),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,fe),_t(null)}}function tn(_,V){{if(typeof _!="object")return;if(Et(_))for(var Q=0;Q<_.length;Q++){var fe=_[Q];Jt(fe)&&en(fe,V)}else if(Jt(_))_._store&&(_._store.validated=!0);else if(_){var Se=$(_);if(typeof Se=="function"&&Se!==_.entries)for(var Pe=Se.call(_),_e;!(_e=Pe.next()).done;)Jt(_e.value)&&en(_e.value,V)}}}function nn(_){{var V=_.type;if(V==null||typeof V=="string")return;var Q;if(typeof V=="function")Q=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===d))Q=V.propTypes;else return;if(Q){var fe=h(V);at(Q,_.props,"prop",fe,_)}else if(V.PropTypes!==void 0&&!Qt){Qt=!0;var Se=h(V);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function En(_){{for(var V=Object.keys(_.props),Q=0;Q<V.length;Q++){var fe=V[Q];if(fe!=="children"&&fe!=="key"){_t(_),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),_t(null);break}}_.ref!==null&&(_t(_),v("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function fn(_,V,Q,fe,Se,Pe){{var _e=B(_);if(!_e){var we="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(we+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ot=an(Se);ot?we+=ot:we+=kn();var Fe;_===null?Fe="null":Et(_)?Fe="array":_!==void 0&&_.$$typeof===t?(Fe="<"+(h(_.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof _,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,we)}var Be=ve(_,V,Q,Se,Pe);if(Be==null)return Be;if(_e){var Ze=V.children;if(Ze!==void 0)if(fe)if(Et(Ze)){for(var Kt=0;Kt<Ze.length;Kt++)tn(Ze[Kt],_);Object.freeze&&Object.freeze(Ze)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tn(Ze,_)}return _===r?En(Be):nn(Be),Be}}function Wt(_,V,Q){return fn(_,V,Q,!0)}function nr(_,V,Q){return fn(_,V,Q,!1)}var zt=nr,rr=Wt;Vi.Fragment=r,Vi.jsx=zt,Vi.jsxs=rr}()),Vi}process.env.NODE_ENV==="production"?Sc.exports=v0():Sc.exports=m0();var ft=Sc.exports;const g0=e=>{const t="currentColor";return{...e,color:(()=>e.color?Pt.theme.colors[e.color]?Pt.theme.colors[e.color]:e.color:"inherit")(),fill:(e==null?void 0:e.fill)||t,width:(e==null?void 0:e.size)||24,height:(e==null?void 0:e.size)||24}},ln=g0,y0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m19.02 6.96-8.62 8.9-5.28-5.27L3 12.71l7.43 7.43 10.74-11.1-2.15-2.08Z",fill:t})})},wu=y0,b0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m21.59 9.03-2.12-2.12-6.94 6.94-6.94-6.94-2.12 2.12 9.06 9.06 9.06-9.06Z",fill:t})})},Ca=b0,w0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0304 16.1531C12.7375 16.446 12.2626 16.446 11.9697 16.1531L4.72421 8.90756C4.43132 8.61466 4.43132 8.13979 4.72421 7.8469C5.0171 7.554 5.49198 7.554 5.78487 7.8469L12.5001 14.5621L19.2153 7.8469C19.5082 7.554 19.983 7.554 20.2759 7.8469C20.5688 8.13979 20.5688 8.61467 20.2759 8.90756L13.0304 16.1531Z",fill:t})})},E0=w0,x0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m16 21.56 2.12-2.12-6.94-6.94 6.94-6.94L16 3.44 6.94 12.5 16 21.56Z",fill:t})})},_0=x0,S0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m3.47 15.97 2.12 2.12 6.94-6.94 6.94 6.94 2.12-2.12-9.06-9.06-9.06 9.06Z",fill:t})})},Oh=S0,C0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6685 7.8469C11.9614 7.554 12.4362 7.55401 12.7291 7.8469L19.9746 15.0924C20.2675 15.3853 20.2675 15.8602 19.9746 16.1531C19.6818 16.446 19.2069 16.446 18.914 16.1531L12.1988 9.43789L5.48358 16.1531C5.19068 16.446 4.71581 16.446 4.42292 16.1531C4.13002 15.8602 4.13002 15.3853 4.42292 15.0924L11.6685 7.8469Z",fill:t})})},$0=C0,T0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m21.06 19.44-6.98-6.98 6.9-6.9-2.12-2.12-6.9 6.9-6.82-6.82-2.12 2.12 6.82 6.82-6.9 6.9 2.12 2.12 6.9-6.9 6.98 6.98 2.12-2.12Z",fill:t})})},Eu=T0,I0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7793 5.28155C20.0722 4.98866 20.0722 4.51378 19.7793 4.22089C19.4864 3.928 19.0115 3.928 18.7186 4.22089L11.9939 10.9456L5.26926 4.22095C4.97637 3.92806 4.50149 3.92806 4.2086 4.22095C3.91571 4.51385 3.91571 4.98872 4.2086 5.28161L10.9333 12.0063L4.20856 18.731C3.91567 19.0239 3.91567 19.4988 4.20856 19.7917C4.50146 20.0846 4.97633 20.0846 5.26922 19.7917L11.9939 13.0669L18.7187 19.7917C19.0116 20.0846 19.4865 20.0846 19.7794 19.7917C20.0723 19.4988 20.0723 19.0239 19.7794 18.731L13.0546 12.0063L19.7793 5.28155Z",fill:t})})},R0=I0,O0=e=>{const{color:t,...n}=ln(e);return ft.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ft.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ft.jsx("path",{d:"m16.67 9.21-1.42-1.42-3.27 3.28-3.23-3.24-1.42 1.42 3.24 3.23-3.28 3.27 1.42 1.42 3.27-3.28 3.31 3.32 1.42-1.42-3.32-3.31 3.28-3.27Z",fill:t})]})},P0=O0,A0=e=>{const{color:t,...n}=ln(e);return ft.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ft.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ft.jsx("path",{d:"M12 9.62a1.12 1.12 0 1 0 0-2.24 1.12 1.12 0 0 0 0 2.24ZM13 11.5h-2v6h2v-6Z",fill:t})]})},D0=A0,N0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"M21 11H3v3h18v-3Z",fill:t})})},k0=N0,M0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"m22 21.67-4.86-4.86a8.474 8.474 0 0 0 1.86-5.3c0-4.69-3.81-8.5-8.5-8.5-4.69 0-8.5 3.81-8.5 8.5 0 4.69 3.81 8.5 8.5 8.5 2.01 0 3.85-.7 5.3-1.86l4.86 4.86 1.33-1.33.01-.01ZM10.5 18C6.92 18 4 15.08 4 11.5S6.92 5 10.5 5 17 7.92 17 11.5 14.08 18 10.5 18Z",fill:t})})},j0=M0,L0=e=>{const{color:t,...n}=ln(e);return ft.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ft.jsx("path",{d:"M13 11h-2v4h2v-4ZM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:t}),ft.jsx("path",{d:"M12 3 2 21h20L12 3Zm0 4.12L18.6 19H5.4L12 7.12Z",fill:t})]})},F0=L0,V0=e=>{const{color:t,...n}=ln(e);return ft.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ft.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm1.37-4.24c-.22.08-.37.27-.37.47v.77h-2v-.77c0-1.06.66-1.98 1.68-2.35.78-.29 1.48-1.15 1.28-2.25-.14-.79-.81-1.46-1.6-1.6a2.003 2.003 0 0 0-2.37 1.97h-2c0-1.18.52-2.3 1.43-3.06.91-.76 2.1-1.08 3.29-.87 1.61.28 2.94 1.61 3.22 3.22.34 1.93-.74 3.81-2.57 4.48l.01-.01Z",fill:t})})},B0=V0,H0=l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(Ob,{className:"accordion-header",id:"vds-accordion-header",children:M.jsxs(Pb,{id:"vds-accordion-trigger",className:$e(d0,t),...n,ref:r,children:[M.jsx(rt,{className:f0,children:e}),M.jsx(Ca,{className:s0,size:24,color:Pt.theme.colors.black})]})}));var W0="_7q2fqh7",z0={info:"var(--_1qe00b2y)",warning:"var(--_1qe00b211)",neutral:"var(--_1qe00b2c)",error:"var(--_1qe00b214)"},U0=Ke({defaultClassName:"_7q2fqh0",variantClassNames:{variant:{info:"_7q2fqh1",warning:"_7q2fqh2",neutral:"_7q2fqh3",error:"_7q2fqh4"},size:{full:"_7q2fqh5",default:"_7q2fqh6"}},defaultVariants:{variant:"neutral",size:"default"},compoundVariants:[]});const Y0=16,Ph=l.forwardRef(({className:e,title:t,children:n,withClose:r,variant:o,size:i,onClose:a,...s},c)=>{const u="div",f=l.useRef(null),[d,m]=l.useState(null),b=(()=>{switch(o){case"error":return P0;case"warning":return F0;default:return D0}})(),y=l.useCallback($=>{$.forEach(E=>{const{height:v}=E.contentRect;m(v>Y0)})},[]);return l.useEffect(()=>{const $=f.current;if(!$)return;const E=new ResizeObserver(y);return E.observe($),()=>E.disconnect()},[y]),M.jsxs(u,{ref:c,className:$e(U0({variant:o,size:i}),e),"data-test-id":s["data-test-id"],...s,children:[M.jsxs(Bt,{gap:"$12",alignItems:d?"flex-start":"center",visibility:d===null?"hidden":"visible",children:[M.jsx(rt,{display:"flex",w:Pt.theme.space[24],children:M.jsx(b,{size:24,color:z0[o||"neutral"]})}),M.jsxs(Ar,{gap:"$4",children:[t&&M.jsx(Xt,{textStyle:"caption",as:"span",fontWeight:"$medium",children:t}),M.jsx(rt,{ref:f,className:W0,children:n})]})]}),r&&M.jsx(Bt,{children:M.jsx(Eu,{"data-test-id":"CT_Component-Alert-Close",onClick:a,cursor:"pointer",color:Pt.theme.colors.black,size:16})})]})});Ph.defaultProps={"data-test-id":void 0,title:void 0,withClose:void 0,onClose:void 0};const K0=l.forwardRef((e,t)=>{const{ratio:n=1,style:r,...o}=e;return l.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":""},l.createElement(Ue.div,ae({},o,{ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})))}),xu=({children:e,...t})=>M.jsx(K0,{...t,children:e});xu.defaultProps={children:void 0};xu.displayName="AspectRatio";var q0=Ke({defaultClassName:"_1er7sj40",variantClassNames:{colorScheme:{primary:"_1er7sj41",disabled:"_1er7sj42",yellow:"_1er7sj43",red:"_1er7sj44",blue:"_1er7sj45",neutral:"_1er7sj46"},size:{large:"_1er7sj47 _15r4f4d1oz _15r4f4d1il _15r4f4d15j _15r4f4d1bx",medium:"_1er7sj48 _15r4f4d1op _15r4f4d1ib _15r4f4d15e _15r4f4d1bs",small:"_1er7sj49 _15r4f4d1op _15r4f4d1ib _15r4f4d154 _15r4f4d1bi"},isRounded:{true:"_1er7sj4a",false:"_1er7sj4b"},variant:{primary:"_1er7sj4c",secondary:"_1er7sj4d"}},defaultVariants:{colorScheme:"primary",size:"large",variant:"primary",isRounded:!1},compoundVariants:[[{colorScheme:"primary",variant:"secondary"},"_1er7sj4e"],[{colorScheme:"disabled",variant:"secondary"},"_1er7sj4f"],[{colorScheme:"yellow",variant:"secondary"},"_1er7sj4g"],[{colorScheme:"red",variant:"secondary"},"_1er7sj4h"],[{colorScheme:"blue",variant:"secondary"},"_1er7sj4i"]]});const _u=l.forwardRef(({as:e,children:t,colorScheme:n,size:r,variant:o,isRounded:i,className:a,style:s,...c},u)=>{const f=e||"span";return M.jsx(f,{ref:u,"data-test-id":c["data-test-id"],className:$e(q0({colorScheme:n,variant:o,size:r,isRounded:i}),a),style:s,...c,children:t})});_u.defaultProps={as:"span",colorScheme:"primary",size:"large",children:void 0,"data-test-id":void 0};_u.displayName="Badge";function Yd(e,[t,n]){return Math.min(n,Math.max(t,e))}function X0(e,t=globalThis==null?void 0:globalThis.document){const n=un(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Cc="dismissableLayer.update",G0="dismissableLayer.pointerDownOutside",Z0="dismissableLayer.focusOutside";let Kd;const Ah=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rs=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,f=l.useContext(Ah),[d,m]=l.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=l.useState({}),y=ut(t,F=>m(F)),$=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=$.indexOf(E),w=d?$.indexOf(d):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,I=w>=v,D=J0(F=>{const k=F.target,B=[...f.branches].some(R=>R.contains(k));!I||B||(i==null||i(F),s==null||s(F),F.defaultPrevented||c==null||c())},p),A=ew(F=>{const k=F.target;[...f.branches].some(R=>R.contains(k))||(a==null||a(F),s==null||s(F),F.defaultPrevented||c==null||c())},p);return X0(F=>{w===f.layers.size-1&&(o==null||o(F),!F.defaultPrevented&&c&&(F.preventDefault(),c()))},p),l.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Kd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),qd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Kd)}},[d,p,r,f]),l.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),qd())},[d,f]),l.useEffect(()=>{const F=()=>b({});return document.addEventListener(Cc,F),()=>document.removeEventListener(Cc,F)},[]),l.createElement(Ue.div,ae({},u,{ref:y,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,D.onPointerDownCapture)}))}),Q0=l.forwardRef((e,t)=>{const n=l.useContext(Ah),r=l.useRef(null),o=ut(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.createElement(Ue.div,ae({},e,{ref:o}))});function J0(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Dh(G0,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ew(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Dh(Z0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qd(){const e=new CustomEvent(Cc);document.dispatchEvent(e)}function Dh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wh(o,i):o.dispatchEvent(i)}const tw=rs,nw=Q0;let Hs=0;function Nh(){l.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xd()),Hs++,()=>{Hs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Hs--}},[])}function Xd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ws="focusScope.autoFocusOnMount",zs="focusScope.autoFocusOnUnmount",Gd={bubbles:!1,cancelable:!0},kh=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),u=un(o),f=un(i),d=l.useRef(null),m=ut(t,y=>c(y)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let y=function(w){if(p.paused||!s)return;const T=w.target;s.contains(T)?d.current=T:ar(d.current,{select:!0})},$=function(w){if(p.paused||!s)return;const T=w.relatedTarget;T!==null&&(s.contains(T)||ar(d.current,{select:!0}))},E=function(w){const T=document.activeElement;for(const I of w)I.removedNodes.length>0&&(s!=null&&s.contains(T)||ar(s))};document.addEventListener("focusin",y),document.addEventListener("focusout",$);const v=new MutationObserver(E);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",$),v.disconnect()}}},[r,s,p.paused]),l.useEffect(()=>{if(s){Qd.add(p);const y=document.activeElement;if(!s.contains(y)){const E=new CustomEvent(Ws,Gd);s.addEventListener(Ws,u),s.dispatchEvent(E),E.defaultPrevented||(rw(cw(Mh(s)),{select:!0}),document.activeElement===y&&ar(s))}return()=>{s.removeEventListener(Ws,u),setTimeout(()=>{const E=new CustomEvent(zs,Gd);s.addEventListener(zs,f),s.dispatchEvent(E),E.defaultPrevented||ar(y??document.body,{select:!0}),s.removeEventListener(zs,f),Qd.remove(p)},0)}}},[s,u,f,p]);const b=l.useCallback(y=>{if(!n&&!r||p.paused)return;const $=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,E=document.activeElement;if($&&E){const v=y.currentTarget,[w,T]=ow(v);w&&T?!y.shiftKey&&E===T?(y.preventDefault(),n&&ar(w,{select:!0})):y.shiftKey&&E===w&&(y.preventDefault(),n&&ar(T,{select:!0})):E===v&&y.preventDefault()}},[n,r,p.paused]);return l.createElement(Ue.div,ae({tabIndex:-1},a,{ref:m,onKeyDown:b}))});function rw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ar(r,{select:t}),document.activeElement!==n)return}function ow(e){const t=Mh(e),n=Zd(t,e),r=Zd(t.reverse(),e);return[n,r]}function Mh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zd(e,t){for(const n of e)if(!iw(n,{upTo:t}))return n}function iw(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aw(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aw(e)&&t&&e.select()}}const Qd=sw();function sw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jd(e,t),e.unshift(t)},remove(t){var n;e=Jd(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Jd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cw(e){return e.filter(t=>t.tagName!=="A")}const uw=["top","right","bottom","left"],vr=Math.min,vn=Math.max,$a=Math.round,Bi=Math.floor,mr=e=>({x:e,y:e}),lw={left:"right",right:"left",bottom:"top",top:"bottom"},dw={start:"end",end:"start"};function $c(e,t,n){return vn(e,vr(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function go(e){return e.split("-")[1]}function Su(e){return e==="x"?"y":"x"}function Cu(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(Qn(e))?"y":"x"}function $u(e){return Su(yo(e))}function fw(e,t,n){n===void 0&&(n=!1);const r=go(e),o=$u(e),i=Cu(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ta(a)),[a,Ta(a)]}function pw(e){const t=Ta(e);return[Tc(e),t,Tc(t)]}function Tc(e){return e.replace(/start|end/g,t=>dw[t])}function hw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function vw(e,t,n,r){const o=go(e);let i=hw(Qn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Tc)))),i}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>lw[t])}function mw(e){return{top:0,right:0,bottom:0,left:0,...e}}function jh(e){return typeof e!="number"?mw(e):{top:e,right:e,bottom:e,left:e}}function Ia(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ef(e,t,n){let{reference:r,floating:o}=e;const i=yo(t),a=$u(t),s=Cu(a),c=Qn(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(go(t)){case"start":p[a]-=m*(n&&u?-1:1);break;case"end":p[a]+=m*(n&&u?-1:1);break}return p}const gw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=ef(u,r,c),m=r,p={},b=0;for(let y=0;y<s.length;y++){const{name:$,fn:E}=s[y],{x:v,y:w,data:T,reset:I}=await E({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=v??f,d=w??d,p={...p,[$]:{...p[$],...T}},I&&b<=50){b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(u=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:f,y:d}=ef(u,m,c)),y=-1;continue}}return{x:f,y:d,placement:m,strategy:o,middlewareData:p}};async function si(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Zn(t,e),b=jh(p),$=s[m?d==="floating"?"reference":"floating":d],E=Ia(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement($)))==null||n?$:$.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),v=d==="floating"?{...a.floating,x:r,y:o}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:c}):v);return{top:(E.top-I.top+b.top)/T.y,bottom:(I.bottom-E.bottom+b.bottom)/T.y,left:(E.left-I.left+b.left)/T.x,right:(I.right-E.right+b.right)/T.x}}const tf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:c,padding:u=0}=Zn(e,t)||{};if(c==null)return{};const f=jh(u),d={x:n,y:r},m=$u(o),p=Cu(m),b=await a.getDimensions(c),y=m==="y",$=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[m]-d[m]-i.floating[p],T=d[m]-i.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=I?I[v]:0;(!D||!await(a.isElement==null?void 0:a.isElement(I)))&&(D=s.floating[v]||i.floating[p]);const A=w/2-T/2,F=D/2-b[p]/2-1,k=vr(f[$],F),B=vr(f[E],F),R=k,x=D-b[p]-B,h=D/2-b[p]/2+A,C=$c(R,h,x),j=go(o)!=null&&h!=C&&i.reference[p]/2-(h<R?k:B)-b[p]/2<0?h<R?R-h:x-h:0;return{[m]:d[m]-j,data:{[m]:C,centerOffset:h-C+j}}}}),yw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...y}=Zn(e,t),$=Qn(r),E=Qn(a)===a,v=await(s.isRTL==null?void 0:s.isRTL(c.floating)),w=d||(E||!b?[Ta(a)]:pw(a));!d&&p!=="none"&&w.push(...vw(a,b,p,v));const T=[a,...w],I=await si(t,y),D=[];let A=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&D.push(I[$]),f){const R=fw(r,i,v);D.push(I[R[0]],I[R[1]])}if(A=[...A,{placement:r,overflows:D}],!D.every(R=>R<=0)){var F,k;const R=(((F=o.flip)==null?void 0:F.index)||0)+1,x=T[R];if(x)return{data:{index:R,overflows:A},reset:{placement:x}};let h=(k=A.filter(C=>C.overflows[0]<=0).sort((C,P)=>C.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!h)switch(m){case"bestFit":{var B;const C=(B=A.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:B[0];C&&(h=C);break}case"initialPlacement":h=a;break}if(r!==h)return{reset:{placement:h}}}return{}}}};function nf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rf(e){return uw.some(t=>e[t]>=0)}const bw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zn(e,t);switch(r){case"referenceHidden":{const i=await si(t,{...o,elementContext:"reference"}),a=nf(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:rf(a)}}}case"escaped":{const i=await si(t,{...o,altBoundary:!0}),a=nf(i,n.floating);return{data:{escapedOffsets:a,escaped:rf(a)}}}default:return{}}}}};async function ww(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Qn(n),s=go(n),c=yo(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,d=Zn(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof b=="number"&&(p=s==="end"?b*-1:b),c?{x:p*f,y:m*u}:{x:m*u,y:p*f}}const Ew=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await ww(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},xw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:$=>{let{x:E,y:v}=$;return{x:E,y:v}}},...c}=Zn(e,t),u={x:n,y:r},f=await si(t,c),d=yo(Qn(o)),m=Su(d);let p=u[m],b=u[d];if(i){const $=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=p+f[$],w=p-f[E];p=$c(v,p,w)}if(a){const $=d==="y"?"top":"left",E=d==="y"?"bottom":"right",v=b+f[$],w=b-f[E];b=$c(v,b,w)}const y=s.fn({...t,[m]:p,[d]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}},_w=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Zn(e,t),f={x:n,y:r},d=yo(o),m=Su(d);let p=f[m],b=f[d];const y=Zn(s,t),$=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=m==="y"?"height":"width",T=i.reference[m]-i.floating[w]+$.mainAxis,I=i.reference[m]+i.reference[w]-$.mainAxis;p<T?p=T:p>I&&(p=I)}if(u){var E,v;const w=m==="y"?"width":"height",T=["top","left"].includes(Qn(o)),I=i.reference[d]-i.floating[w]+(T&&((E=a.offset)==null?void 0:E[d])||0)+(T?0:$.crossAxis),D=i.reference[d]+i.reference[w]+(T?0:((v=a.offset)==null?void 0:v[d])||0)-(T?$.crossAxis:0);b<I?b=I:b>D&&(b=D)}return{[m]:p,[d]:b}}}},Sw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Zn(e,t),c=await si(t,s),u=Qn(n),f=go(n),d=yo(n)==="y",{width:m,height:p}=r.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const $=p-c[b],E=m-c[y],v=!t.middlewareData.shift;let w=$,T=E;if(d){const D=m-c.left-c.right;T=f||v?vr(E,D):D}else{const D=p-c.top-c.bottom;w=f||v?vr($,D):D}if(v&&!f){const D=vn(c.left,0),A=vn(c.right,0),F=vn(c.top,0),k=vn(c.bottom,0);d?T=m-2*(D!==0||A!==0?D+A:vn(c.left,c.right)):w=p-2*(F!==0||k!==0?F+k:vn(c.top,c.bottom))}await a({...t,availableWidth:T,availableHeight:w});const I=await o.getDimensions(i.floating);return m!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function gr(e){return Lh(e)?(e.nodeName||"").toLowerCase():"#document"}function yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Lh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lh(e){return e instanceof Node||e instanceof yn(e).Node}function Jn(e){return e instanceof Element||e instanceof yn(e).Element}function Bn(e){return e instanceof HTMLElement||e instanceof yn(e).HTMLElement}function of(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yn(e).ShadowRoot}function Ci(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Cw(e){return["table","td","th"].includes(gr(e))}function Tu(e){const t=Iu(),n=In(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $w(e){let t=fo(e);for(;Bn(t)&&!os(t);){if(Tu(t))return t;t=fo(t)}return null}function Iu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function os(e){return["html","body","#document"].includes(gr(e))}function In(e){return yn(e).getComputedStyle(e)}function is(e){return Jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fo(e){if(gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||of(e)&&e.host||er(e);return of(t)?t.host:t}function Fh(e){const t=fo(e);return os(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bn(t)&&Ci(t)?t:Fh(t)}function Ra(e,t){var n;t===void 0&&(t=[]);const r=Fh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yn(r);return o?t.concat(i,i.visualViewport||[],Ci(r)?r:[]):t.concat(r,Ra(r))}function Vh(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=$a(n)!==i||$a(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Ru(e){return Jn(e)?e:e.contextElement}function oo(e){const t=Ru(e);if(!Bn(t))return mr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Vh(t);let a=(i?$a(n.width):n.width)/r,s=(i?$a(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Tw=mr(0);function Bh(e){const t=yn(e);return!Iu()||!t.visualViewport?Tw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Iw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yn(e)?!1:t}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ru(e);let a=mr(1);t&&(r?Jn(r)&&(a=oo(r)):a=oo(e));const s=Iw(i,n,r)?Bh(i):mr(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const m=yn(i),p=r&&Jn(r)?yn(r):r;let b=m.frameElement;for(;b&&r&&p!==m;){const y=oo(b),$=b.getBoundingClientRect(),E=In(b),v=$.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=$.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,d*=y.y,c+=v,u+=w,b=yn(b).frameElement}}return Ia({width:f,height:d,x:c,y:u})}function Rw(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Bn(n),i=er(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=mr(1);const c=mr(0);if((o||!o&&r!=="fixed")&&((gr(n)!=="body"||Ci(i))&&(a=is(n)),Bn(n))){const u=Mr(n);s=oo(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}}function Ow(e){return Array.from(e.getClientRects())}function Hh(e){return Mr(er(e)).left+is(e).scrollLeft}function Pw(e){const t=er(e),n=is(e),r=e.ownerDocument.body,o=vn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hh(e);const s=-n.scrollTop;return In(r).direction==="rtl"&&(a+=vn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Aw(e,t){const n=yn(e),r=er(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Iu();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Dw(e,t){const n=Mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bn(e)?oo(e):mr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function af(e,t,n){let r;if(t==="viewport")r=Aw(e,n);else if(t==="document")r=Pw(er(e));else if(Jn(t))r=Dw(t,n);else{const o=Bh(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ia(r)}function Wh(e,t){const n=fo(e);return n===t||!Jn(n)||os(n)?!1:In(n).position==="fixed"||Wh(n,t)}function Nw(e,t){const n=t.get(e);if(n)return n;let r=Ra(e).filter(s=>Jn(s)&&gr(s)!=="body"),o=null;const i=In(e).position==="fixed";let a=i?fo(e):e;for(;Jn(a)&&!os(a);){const s=In(a),c=Tu(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ci(a)&&!c&&Wh(e,a))?r=r.filter(f=>f!==a):o=s,a=fo(a)}return t.set(e,r),r}function kw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Nw(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const d=af(t,f,o);return u.top=vn(d.top,u.top),u.right=vr(d.right,u.right),u.bottom=vr(d.bottom,u.bottom),u.left=vn(d.left,u.left),u},af(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mw(e){return Vh(e)}function jw(e,t,n){const r=Bn(t),o=er(t),i=n==="fixed",a=Mr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=mr(0);if(r||!r&&!i)if((gr(t)!=="body"||Ci(o))&&(s=is(t)),r){const u=Mr(t,!0,i,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else o&&(c.x=Hh(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function sf(e,t){return!Bn(e)||In(e).position==="fixed"?null:t?t(e):e.offsetParent}function zh(e,t){const n=yn(e);if(!Bn(e))return n;let r=sf(e,t);for(;r&&Cw(r)&&In(r).position==="static";)r=sf(r,t);return r&&(gr(r)==="html"||gr(r)==="body"&&In(r).position==="static"&&!Tu(r))?n:r||$w(e)||n}const Lw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||zh,i=this.getDimensions;return{reference:jw(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function Fw(e){return In(e).direction==="rtl"}const Vw={convertOffsetParentRelativeRectToViewportRelativeRect:Rw,getDocumentElement:er,getClippingRect:kw,getOffsetParent:zh,getElementRects:Lw,getClientRects:Ow,getDimensions:Mw,getScale:oo,isElement:Jn,isRTL:Fw};function Bw(e,t){let n=null,r;const o=er(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:d,height:m}=e.getBoundingClientRect();if(s||t(),!d||!m)return;const p=Bi(f),b=Bi(o.clientWidth-(u+d)),y=Bi(o.clientHeight-(f+m)),$=Bi(u),v={rootMargin:-p+"px "+-b+"px "+-y+"px "+-$+"px",threshold:vn(0,vr(1,c))||1};let w=!0;function T(I){const D=I[0].intersectionRatio;if(D!==c){if(!w)return a();D?a(!1,D):r=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(T,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,v)}n.observe(e)}return a(!0),i}function Hw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ru(e),f=o||i?[...u?Ra(u):[],...Ra(t)]:[];f.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const d=u&&s?Bw(u,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(E=>{let[v]=E;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let b,y=c?Mr(e):null;c&&$();function $(){const E=Mr(e);y&&(E.x!==y.x||E.y!==y.y||E.width!==y.width||E.height!==y.height)&&n(),y=E,b=requestAnimationFrame($)}return n(),()=>{f.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const Ww=(e,t,n)=>{const r=new Map,o={platform:Vw,...n},i={...o.platform,_c:r};return gw(e,t,{...o,platform:i})},zw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?tf({element:r.current,padding:o}).fn(n):{}:r?tf({element:r,padding:o}).fn(n):{}}}};var la=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Oa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Oa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cf(e,t){const n=Uh(e);return Math.round(t*n)/n}function uf(e){const t=Oe.useRef(e);return la(()=>{t.current=e}),t}function Uw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=Oe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=Oe.useState(r);Oa(m,r)||p(r);const[b,y]=Oe.useState(null),[$,E]=Oe.useState(null),v=Oe.useCallback(j=>{j!=D.current&&(D.current=j,y(j))},[y]),w=Oe.useCallback(j=>{j!==A.current&&(A.current=j,E(j))},[E]),T=i||b,I=a||$,D=Oe.useRef(null),A=Oe.useRef(null),F=Oe.useRef(f),k=uf(c),B=uf(o),R=Oe.useCallback(()=>{if(!D.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),Ww(D.current,A.current,j).then(H=>{const U={...H,isPositioned:!0};x.current&&!Oa(F.current,U)&&(F.current=U,Hy.flushSync(()=>{d(U)}))})},[m,t,n,B]);la(()=>{u===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[u]);const x=Oe.useRef(!1);la(()=>(x.current=!0,()=>{x.current=!1}),[]),la(()=>{if(T&&(D.current=T),I&&(A.current=I),T&&I){if(k.current)return k.current(T,I,R);R()}},[T,I,R,k]);const h=Oe.useMemo(()=>({reference:D,floating:A,setReference:v,setFloating:w}),[v,w]),C=Oe.useMemo(()=>({reference:T,floating:I}),[T,I]),P=Oe.useMemo(()=>{const j={position:n,left:0,top:0};if(!C.floating)return j;const H=cf(C.floating,f.x),U=cf(C.floating,f.y);return s?{...j,transform:"translate("+H+"px, "+U+"px)",...Uh(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,C.floating,f.x,f.y]);return Oe.useMemo(()=>({...f,update:R,refs:h,elements:C,floatingStyles:P}),[f,R,h,C,P])}const Yw=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.createElement(Ue.svg,ae({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Kw=Yw;function as(e){const[t,n]=l.useState(void 0);return Gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Yh="Popper",[Kh,ss]=bn(Yh),[qw,qh]=Kh(Yh),Xw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return l.createElement(qw,{scope:t,anchor:r,onAnchorChange:o},n)},Gw="PopperAnchor",Zw=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=qh(Gw,n),a=l.useRef(null),s=ut(t,a);return l.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.createElement(Ue.div,ae({},o,{ref:s}))}),Xh="PopperContent",[Qw,Jw]=Kh(Xh),e1=l.forwardRef((e,t)=>{var n,r,o,i,a,s,c,u;const{__scopePopper:f,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:b=0,arrowPadding:y=0,collisionBoundary:$=[],collisionPadding:E=0,sticky:v="partial",hideWhenDetached:w=!1,avoidCollisions:T=!0,onPlaced:I,...D}=e,A=qh(Xh,f),[F,k]=l.useState(null),B=ut(t,xe=>k(xe)),[R,x]=l.useState(null),h=as(R),C=(n=h==null?void 0:h.width)!==null&&n!==void 0?n:0,P=(r=h==null?void 0:h.height)!==null&&r!==void 0?r:0,j=d+(p!=="center"?"-"+p:""),H=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},U=Array.isArray($)?$:[$],re=U.length>0,W={padding:H,boundary:U.filter(o1),altBoundary:re},{refs:L,floatingStyles:J,placement:Y,isPositioned:K,middlewareData:Z}=Uw({strategy:"fixed",placement:j,whileElementsMounted:Hw,elements:{reference:A.anchor},middleware:[Ew({mainAxis:m+P,alignmentAxis:b}),T&&xw({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?_w():void 0,...W}),T&&yw({...W}),Sw({...W,apply:({elements:xe,rects:Ee,availableWidth:Ae,availableHeight:Ie})=>{const{width:Le,height:ke}=Ee.reference,at=xe.floating.style;at.setProperty("--radix-popper-available-width",`${Ae}px`),at.setProperty("--radix-popper-available-height",`${Ie}px`),at.setProperty("--radix-popper-anchor-width",`${Le}px`),at.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),R&&zw({element:R,padding:y}),i1({arrowWidth:C,arrowHeight:P}),w&&bw({strategy:"referenceHidden"})]}),[ce,z]=Gh(Y),G=un(I);Gt(()=>{K&&(G==null||G())},[K,G]);const oe=(o=Z.arrow)===null||o===void 0?void 0:o.x,ne=(i=Z.arrow)===null||i===void 0?void 0:i.y,ie=((a=Z.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ee,pe]=l.useState();return Gt(()=>{F&&pe(window.getComputedStyle(F).zIndex)},[F]),l.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(s=Z.transformOrigin)===null||s===void 0?void 0:s.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(Qw,{scope:f,placedSide:ce,onArrowChange:x,arrowX:oe,arrowY:ne,shouldHideArrow:ie},l.createElement(Ue.div,ae({"data-side":ce,"data-align":z},D,{ref:B,style:{...D.style,animation:K?void 0:"none",opacity:(u=Z.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),t1="PopperArrow",n1={top:"bottom",right:"left",bottom:"top",left:"right"},r1=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Jw(t1,r),a=n1[i.placedSide];return l.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},l.createElement(Kw,ae({},o,{ref:n,style:{...o.style,display:"block"}})))});function o1(e){return e!==null}const i1=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[b,y]=Gh(s),$={start:"0%",center:"50%",end:"100%"}[y],E=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,v=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let w="",T="";return b==="bottom"?(w=d?$:`${E}px`,T=`${-p}px`):b==="top"?(w=d?$:`${E}px`,T=`${c.floating.height+p}px`):b==="right"?(w=`${-p}px`,T=d?$:`${v}px`):b==="left"&&(w=`${c.floating.width+p}px`,T=d?$:`${v}px`),{data:{x:w,y:T}}}});function Gh(e){const[t,n="center"]=e.split("-");return[t,n]}const Zh=Xw,Qh=Zw,Jh=e1,a1=r1,ev=l.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?mn.createPortal(l.createElement(Ue.div,ae({},o,{ref:t})),r):null}),s1=ev;function cs(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const us=l.forwardRef((e,t)=>l.createElement(Ue.span,ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),c1=us;var u1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Hi=new WeakMap,Wi={},Us=0,tv=function(e){return e&&(e.host||tv(e.parentNode))},l1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},d1=function(e,t,n,r){var o=l1(t,Array.isArray(e)?e:[e]);Wi[n]||(Wi[n]=new WeakMap);var i=Wi[n],a=[],s=new Set,c=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(s.has(m))f(m);else{var p=m.getAttribute(r),b=p!==null&&p!=="false",y=(Ur.get(m)||0)+1,$=(i.get(m)||0)+1;Ur.set(m,y),i.set(m,$),a.push(m),y===1&&b&&Hi.set(m,!0),$===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}})};return f(t),s.clear(),Us++,function(){a.forEach(function(d){var m=Ur.get(d)-1,p=i.get(d)-1;Ur.set(d,m),i.set(d,p),m||(Hi.has(d)||d.removeAttribute(r),Hi.delete(d)),p||d.removeAttribute(n)}),Us--,Us||(Ur=new WeakMap,Ur=new WeakMap,Hi=new WeakMap,Wi={})}},nv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||u1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),d1(r,o,n,"aria-hidden")):function(){return null}},Cn=function(){return Cn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Cn.apply(this,arguments)};function rv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function f1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",fa="width-before-scroll-bar",p1="with-scroll-bars-hidden",h1="--removed-body-scroll-bar-size";function v1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function m1(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function g1(e,t){return m1(t||null,function(n){return e.forEach(function(r){return v1(r,n)})})}function y1(e){return e}function b1(e,t){t===void 0&&(t=y1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function w1(e){e===void 0&&(e={});var t=b1(null);return t.options=Cn({async:!0,ssr:!1},e),t}var ov=function(e){var t=e.sideCar,n=rv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Oe.createElement(r,Cn({},n))};ov.isSideCarExport=!0;function E1(e,t){return e.useMedium(t),ov}var iv=w1(),Ys=function(){},ls=Oe.forwardRef(function(e,t){var n=Oe.useRef(null),r=Oe.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,p=e.noIsolation,b=e.inert,y=e.allowPinchZoom,$=e.as,E=$===void 0?"div":$,v=rv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,T=g1([n,t]),I=Cn(Cn({},v),o);return Oe.createElement(Oe.Fragment,null,f&&Oe.createElement(w,{sideCar:iv,removeScrollBar:u,shards:d,noIsolation:p,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:n}),a?Oe.cloneElement(Oe.Children.only(s),Cn(Cn({},I),{ref:T})):Oe.createElement(E,Cn({},I,{className:c,ref:T}),s))});ls.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ls.classNames={fullWidth:fa,zeroRight:da};var lf,x1=function(){if(lf)return lf;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=x1();return t&&e.setAttribute("nonce",t),e}function S1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function C1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_1())&&(S1(t,n),C1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},T1=function(){var e=$1();return function(t,n){Oe.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},av=function(){var e=T1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},I1={left:0,top:0,right:0,gap:0},Ks=function(e){return parseInt(e||"",10)||0},R1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ks(n),Ks(r),Ks(o)]},O1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I1;var t=R1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},P1=av(),A1=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
54
54
|
.`.concat(p1,` {
|
|
55
55
|
overflow: hidden `).concat(r,`;
|
|
56
56
|
padding-right: `).concat(s,"px ").concat(r,`;
|
package/dist/index.mjs
CHANGED
|
@@ -2449,7 +2449,7 @@ $h.defaultProps = {
|
|
|
2449
2449
|
children: void 0
|
|
2450
2450
|
};
|
|
2451
2451
|
$h.displayName = "AspectRatio";
|
|
2452
|
-
var Qb = Je({ defaultClassName: "_1er7sj40", variantClassNames: { colorScheme: { primary: "_1er7sj41", disabled: "_1er7sj42", yellow: "_1er7sj43", red: "_1er7sj44", blue: "_1er7sj45", neutral: "_1er7sj46" }, size: { large: "_1er7sj47 _15r4f4d1oz _15r4f4d1il
|
|
2452
|
+
var Qb = Je({ defaultClassName: "_1er7sj40", variantClassNames: { colorScheme: { primary: "_1er7sj41", disabled: "_1er7sj42", yellow: "_1er7sj43", red: "_1er7sj44", blue: "_1er7sj45", neutral: "_1er7sj46" }, size: { large: "_1er7sj47 _15r4f4d1oz _15r4f4d1il _15r4f4d15j _15r4f4d1bx", medium: "_1er7sj48 _15r4f4d1op _15r4f4d1ib _15r4f4d15e _15r4f4d1bs", small: "_1er7sj49 _15r4f4d1op _15r4f4d1ib _15r4f4d154 _15r4f4d1bi" }, isRounded: { true: "_1er7sj4a", false: "_1er7sj4b" }, variant: { primary: "_1er7sj4c", secondary: "_1er7sj4d" } }, defaultVariants: { colorScheme: "primary", size: "large", variant: "primary", isRounded: !1 }, compoundVariants: [[{ colorScheme: "primary", variant: "secondary" }, "_1er7sj4e"], [{ colorScheme: "disabled", variant: "secondary" }, "_1er7sj4f"], [{ colorScheme: "yellow", variant: "secondary" }, "_1er7sj4g"], [{ colorScheme: "red", variant: "secondary" }, "_1er7sj4h"], [{ colorScheme: "blue", variant: "secondary" }, "_1er7sj4i"]] });
|
|
2453
2453
|
const Th = fe(
|
|
2454
2454
|
({ as: e, children: t, colorScheme: n, size: r, variant: o, isRounded: i, className: a, style: s, ...c }, u) => {
|
|
2455
2455
|
const d = e || "span";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctlyst.id/voila-ui",
|
|
3
|
-
"version": "1.61.
|
|
3
|
+
"version": "1.61.2",
|
|
4
4
|
"description": "UI library for voila user facing library.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"jest-environment-jsdom": "29.4.1",
|
|
95
95
|
"polished": "^4.2.2"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "731d4f5a36f1d933bd6a7a771d56e4fb240fd358"
|
|
98
98
|
}
|